/* ==========================================================
   Pêche Occasion — feuille de style
   Lac (vert profond), bouchon (rouge), écume (fond clair)
   ========================================================== */
:root {
  --lac: #0f4c47;
  --lac-profond: #0a302d;
  --lac-clair: #1e6b63;
  --lac-voile: #e6efec;
  --bouchon: #e2412f;
  --bouchon-fonce: #c3321f;
  --mousse: #2f7a3a;
  --ecume: #f4f6f4;
  --papier: #ffffff;
  --encre: #13201d;
  --gris: #5e6d67;
  --gris-clair: #8a9893;
  --ligne: #e2e8e5;
  --focus: #f2b632;

  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-s: 8px;
  --r: 12px;
  --r-l: 18px;
  --ombre: 0 1px 2px rgba(10, 48, 45, .06), 0 4px 14px rgba(10, 48, 45, .06);
  --ombre-haute: 0 2px 4px rgba(10, 48, 45, .08), 0 12px 28px rgba(10, 48, 45, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ecume); color: var(--encre); font: 16px/1.55 var(--texte); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lac-clair); text-underline-offset: 2px; }
a:hover { color: var(--bouchon); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 750; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--papier); padding: 8px 12px; z-index: 50; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.small { font-size: .875rem; color: var(--gris); }
.center { text-align: center; }
.hp { position: absolute; left: -5000px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ===== En-tête ===== */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--papier); border-bottom: 1px solid var(--ligne); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--lac); text-decoration: none; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.brand b { color: var(--bouchon); font-weight: 800; }
.brand:hover { color: var(--lac); }
.brand-float { width: 13px; height: 28px; color: var(--lac); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-float { color: #fff; }

.head-search { flex: 1 1 380px; display: flex; align-items: center; max-width: 560px; position: relative;
  background: var(--ecume); border: 1.5px solid var(--ligne); border-radius: 999px; padding: 3px 3px 3px 14px; transition: border-color .15s, background .15s; }
.head-search:focus-within { border-color: var(--lac-clair); background: var(--papier); }
.head-search .ico { color: var(--gris); }
.head-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 10px; font: inherit; outline: none; box-shadow: none; }
.head-search button { border: 0; background: var(--lac); color: #fff; font: 600 .92rem var(--texte); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.head-search button:hover { background: var(--lac-profond); }

.head-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-ico, .nav-link, .nav-account { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--gris); text-decoration: none; font-size: .74rem; font-weight: 600; padding: 6px 10px; border-radius: var(--r-s); }
.nav-ico .ico { width: 22px; height: 22px; color: var(--encre); }
.nav-ico:hover, .nav-account:hover, .nav-link:hover { background: var(--ecume); color: var(--encre); }
.nav-ico[aria-current="page"], .nav-ico[aria-current="page"] .ico { color: var(--lac); }
.nav-link { font-size: .9rem; color: var(--encre); flex-direction: row; }
.nav-account { flex-direction: row; gap: 8px; font-size: .9rem; color: var(--encre); }
.nav-account span:last-child { max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--bouchon); color: #fff;
  font-size: .7rem; line-height: 18px; text-align: center; font-weight: 700; }
.nav-ico .badge { position: absolute; top: 1px; right: 8px; box-shadow: 0 0 0 2px var(--papier); }
.head-nav .btn-sell { margin-left: 8px; }

.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: hsl(var(--h, 170) 40% 88%); color: hsl(var(--h, 170) 45% 28%); font-weight: 750; font-size: .9rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; }

/* ===== Boutons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--ligne); background: var(--papier); color: var(--encre); font: 650 .94rem/1.2 var(--texte);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--lac-clair); color: var(--lac); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary, .btn-sell { background: var(--bouchon); border-color: var(--bouchon); color: #fff; }
.btn-primary:hover, .btn-sell:hover { background: var(--bouchon-fonce); border-color: var(--bouchon-fonce); color: #fff; box-shadow: 0 4px 12px rgba(226, 65, 47, .28); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--bouchon-fonce); }
.btn-danger:hover { background: var(--bouchon); border-color: var(--bouchon); color: #fff; }
.btn-small { padding: 6px 12px; font-size: .84rem; }
.btn-block { width: 100%; }

/* ===== Accueil : lac et montagnes ===== */
main { padding: 28px 0 64px; }
main.home { padding-top: 0; }
.hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #082a28 0%, #0d413d 62%, #145a54 100%); padding: 56px 0 170px; }
.hero-scene { position: absolute; inset: auto 0 0 0; width: 100%; height: 300px; }
.m-far { fill: #2a7d73; }
.m-snow { fill: #dfeee9; opacity: .9; }
.m-near { fill: #1a665f; }
.lake { fill: #0e4440; }
.ripple { fill: none; stroke: #4f9a90; stroke-width: 2; stroke-linecap: round; opacity: .7; }
.hero-line { fill: none; stroke: #cfe5df; stroke-width: 1.2; opacity: .7; }
.hero-float .float { color: #fff; overflow: visible; }
.hero-float > g { animation: bob 2.6s ease-out .3s 1 both; }
@keyframes bob { 0% { transform: translate(1138px, 206px); } 35% { transform: translate(1138px, 260px); } 55% { transform: translate(1138px, 248px); } 75% { transform: translate(1138px, 255px); } 100% { transform: translate(1138px, 252px); } }
@media (prefers-reduced-motion: reduce) { .hero-float > g { animation: none; } }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; margin-bottom: .35em; }
.hero-lead { color: #cfe3dd; font-size: 1.12rem; max-width: 48ch; margin-bottom: 26px; }
.hero-search { display: flex; align-items: stretch; max-width: 760px; background: var(--papier); border-radius: var(--r-l);
  padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.hero-search label { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--gris); }
.hero-search .hs-what { flex: 1 1 60%; }
.hero-search .hs-where { flex: 0 1 240px; border-left: 1px solid var(--ligne); }
.hero-search input, .hero-search select { border: 0; background-color: transparent; font: inherit; color: var(--encre); width: 100%; padding: 14px 0; outline: none; box-shadow: none; }
.hero-search select { cursor: pointer; }
.hero-search .btn { padding: 0 26px; border-radius: 13px; font-size: 1rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 22px 0 0; color: #d6e8e3; font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .ico { width: 18px; height: 18px; color: #fff; opacity: .85; }

/* Catégories en tuiles */
.cats { position: relative; z-index: 2; margin-top: -104px; }
.cats h2 { color: #fff; font-size: 1.05rem; font-weight: 650; letter-spacing: 0; margin-bottom: 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 124px;
  background: var(--papier); border-radius: var(--r); padding: 14px 14px 12px; text-decoration: none; color: var(--encre);
  box-shadow: var(--ombre); border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--ombre-haute); border-color: var(--lac-voile); color: var(--encre); }
.cat-ico { margin-bottom: 6px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--lac-voile); color: var(--lac); transition: background .15s, color .15s; }
.cat-ico .ico { width: 24px; height: 24px; }
.cat-tile:hover .cat-ico { background: var(--lac); color: #fff; }
.cat-name { font-weight: 650; font-size: .9rem; line-height: 1.25; }
.cat-count { font-size: .78rem; color: var(--gris-clair); margin-top: auto; }

/* ===== Liste + filtres ===== */
.wrap.browse { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-top: 32px; }
.filters { position: sticky; top: 88px; }
.filters-box { background: var(--papier); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--ombre); }
.filters-box summary { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; }
.filters-box summary::-webkit-details-marker { display: none; }
.filters-box[open] summary { margin-bottom: 12px; }
@media (min-width: 861px) { .filters-box summary { pointer-events: none; } }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.results-head h2, .results-head h1 { margin: 0; }
.results-head h1 { font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem); }
.sort { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--gris); }
.sort select { width: auto; border-radius: 999px; padding: 7px 34px 7px 14px; }
.seo-intro { max-width: 72ch; color: var(--gris); margin: -4px 0 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--papier); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--ombre); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--ombre-haute); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #dfe7e3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.card-price { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin: 0; color: var(--encre); }
.card-price.free, .listing-price.free { color: var(--mousse); }
.card h3 { font-size: .95rem; font-weight: 550; line-height: 1.35; letter-spacing: 0; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { color: var(--encre); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover h3 a { color: var(--lac); }
.card-meta { font-size: .8rem; color: var(--gris); margin: 0; }
.card-where { display: flex; align-items: center; gap: 4px; min-width: 0; }
.card-where .ico { width: 14px; height: 14px; }
.card-where span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-where .dot { color: var(--gris-clair); }
.card-where span { white-space: nowrap; }
.is-sold .card-img img { opacity: .5; filter: grayscale(1); }
.sold-tag, .state-tag { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sold-tag { background: var(--encre); color: #fff; }
.state-tag { background: var(--papier); color: var(--mousse); box-shadow: var(--ombre); }

/* Cœur favori */
.fav-heart-form { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; }
.card-img > a.fav-heart { position: absolute; top: 8px; right: 8px; z-index: 3; }
.fav-heart { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--encre); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transition: transform .12s, color .12s; }
.fav-heart:hover { transform: scale(1.08); color: var(--bouchon); }
.fav-heart .ico { width: 19px; height: 19px; }
.fav-heart.is-on { color: var(--bouchon); }
.fav-heart.is-on .ico, .fav-big.is-on .ico { fill: currentColor; }
.fav-heart.pop { animation: pop .3s ease-out; }
@keyframes pop { 50% { transform: scale(1.25); } }

.pager { display: flex; justify-content: center; gap: 16px; align-items: center; margin-top: 32px; }
.pager a { padding: 8px 16px; border-radius: 999px; background: var(--papier); box-shadow: var(--ombre); text-decoration: none; font-weight: 600; }
.empty { background: var(--papier); border: 1.5px dashed var(--ligne); border-radius: var(--r); padding: 32px; text-align: center; }
.crumbs { font-size: .88rem; color: var(--gris); margin-bottom: 14px; }
.crumbs a { color: var(--gris); }

/* ===== Formulaires ===== */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.form label.check { flex-direction: row; align-items: center; gap: 9px; font-weight: 450; }
input, select, textarea { font: inherit; color: inherit; width: 100%; padding: 11px 13px; border: 1.5px solid var(--ligne);
  border-radius: 10px; background: var(--papier); transition: border-color .15s, box-shadow .15s; }
select { appearance: none; padding-right: 36px; background: var(--papier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6d67' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 16px; }
.hero-search select { background-color: transparent; }
input[type=checkbox], input[type=radio] { width: 19px; height: 19px; padding: 0; accent-color: var(--lac); flex: none; }
input:focus, select:focus, textarea:focus { border-color: var(--lac-clair); outline: none; box-shadow: 0 0 0 4px rgba(30, 107, 99, .14); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 750; font-size: 1.1rem; padding: 0; margin-bottom: 4px; }
.form-listing fieldset { background: var(--papier); border-radius: var(--r); padding: 20px 22px 22px; box-shadow: var(--ombre); }
.form-listing legend { float: left; width: 100%; margin-bottom: 12px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols-3 { grid-template-columns: 1.2fr .6fr 1.2fr; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios .check { border: 1.5px solid var(--ligne); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.radios .check:has(input:checked) { border-color: var(--lac); background: var(--lac-voile); }
.price-field { max-width: 220px; }
.price-range { flex-direction: row; align-items: center; gap: 8px; }
.price-range legend { font: 600 .92rem var(--texte); width: 100%; }
.price-range label { flex: 1; }
.form-filters { gap: 12px; }
.reset { font-size: .88rem; text-align: center; }
.form-actions { display: flex; gap: 16px; align-items: center; }
.photo-edit { display: flex; flex-wrap: wrap; gap: 14px; }
.photo-item { width: 160px; display: flex; flex-direction: column; gap: 4px; }
.photo-item img { width: 160px; height: 120px; object-fit: cover; border-radius: var(--r-s); }
.photo-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-preview img { width: 110px; height: 82px; object-fit: cover; border-radius: var(--r-s); }
.checks { list-style: none; padding: 0; }
.checks .ok { color: var(--mousse); } .checks .ko { color: var(--bouchon); font-weight: 600; }

.narrow { max-width: 560px; }
.narrow.wide { max-width: 860px; }
main.wrap > .narrow { margin-inline: auto; }
main.wrap > .narrow:not(.prose):not(.wide):not(.empty-page) { background: var(--papier); padding: 28px 30px; border-radius: var(--r-l); box-shadow: var(--ombre); }
.aside-link { margin-top: 16px; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.title-row h1 { margin: 0; }
.empty-page { text-align: center; padding-top: 32px; }
.empty-float { width: 30px; height: 60px; margin: 0 auto 12px; color: var(--lac); }

.flash { padding: 12px 16px; border-radius: var(--r); border-left: 4px solid var(--lac-clair); background: var(--lac-voile); }
.flash ul { margin: 0; padding-left: 20px; }
.flash p:last-child { margin-bottom: 0; }
.flash-error { border-color: var(--bouchon); background: #fde9e6; }
.flash-info { border-color: #c4920f; background: #fcf3db; }
.flash-wrap { padding-top: 16px; }
.verify-banner { background: #fcf3db; border-bottom: 1px solid #efdca5; font-size: .92rem; }
.verify-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 10px 0; }
.verify-banner p { margin: 0; }
.verify-banner form { margin: 0; }

/* ===== Page annonce ===== */
.panel { background: var(--papier); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--ombre); }
.panel h2 { font-size: 1.1rem; }
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.listing-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.listing-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.gallery { background: var(--papier); border-radius: var(--r); padding: 8px; box-shadow: var(--ombre); }
.gallery-main { position: relative; display: block; background: #e8eeeb; border-radius: 9px; overflow: hidden; }
.gallery-main img { width: 100%; max-height: 640px; object-fit: contain; margin: 0 auto; }
.photo-count { position: absolute; right: 10px; bottom: 10px; background: rgba(19, 32, 29, .72); color: #fff; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.thumbs a { border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .75; }
.thumbs a[aria-current="true"] { border-color: var(--lac); opacity: 1; }
.thumbs img { width: 86px; height: 64px; object-fit: cover; }
.buy-box h1 { font-size: 1.45rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.listing-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.facts { list-style: none; padding: 14px 0; margin: 0 0 16px; display: grid; gap: 8px; border-block: 1px solid var(--ligne); font-size: .92rem; }
.facts li { display: flex; align-items: center; gap: 9px; color: var(--encre); }
.facts .ico { width: 18px; height: 18px; color: var(--lac); }
.contact { margin-bottom: 10px; }
.contact textarea { min-height: 110px; }
.fav-form { margin: 0; }
.fav-big { color: var(--encre); }
.fav-big.is-on { color: var(--bouchon); border-color: #f3c3bc; }
.owner-box { background: var(--ecume); border-radius: var(--r-s); padding: 12px; margin-bottom: 12px; }
.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.owner-actions form { margin: 0; }
.owner-actions .btn { padding: 8px 14px; font-size: .88rem; }
.seller { display: flex; align-items: center; gap: 14px; }
.seller p { margin: 0; }
.seller-name { font-weight: 750; font-size: 1.05rem; }
.desc-text { overflow-wrap: anywhere; line-height: 1.65; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0 0 14px; }
.specs div { background: var(--ecume); border-radius: var(--r-s); padding: 10px 12px; }
.specs dt { color: var(--gris); font-size: .8rem; }
.specs dd { margin: 0; font-weight: 600; }
.listing-ref { display: flex; align-items: center; gap: 6px; margin: 0; }
.listing-ref .ico { width: 16px; height: 16px; }
.safety { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--gris); background: #fcf6e4; border-radius: var(--r); padding: 12px 14px; margin: 0; }
.safety .ico { color: #b5860c; margin-top: 1px; }
.report summary, .danger-zone summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--gris); font-size: .9rem; }
.report summary .ico { width: 16px; height: 16px; }
.report form, .danger-zone form { margin-top: 12px; }
.danger-zone { margin-top: 32px; }
.similar { margin-top: 44px; }

/* ===== Messagerie ===== */
.conv-list { list-style: none; padding: 0; margin: 0; background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; }
.conv-list li + li { border-top: 1px solid var(--ligne); }
.conv-list a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; color: inherit; text-decoration: none; }
.conv-list a:hover { background: var(--ecume); }
.conv-list img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--r-s); flex: none; }
.conv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-title { font-size: .9rem; color: var(--lac-clair); }
.conv-last { font-size: .9rem; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread .conv-last { color: var(--encre); font-weight: 650; }
.conv-head { border-bottom: 1px solid var(--ligne); margin-bottom: 18px; }
.thread { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.thread li { max-width: 78%; display: flex; flex-direction: column; gap: 3px; }
.thread .mine { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 15px; border-radius: 18px 18px 18px 5px; background: var(--papier); box-shadow: var(--ombre); overflow-wrap: anywhere; }
.mine .bubble { background: var(--lac); color: #fff; border-radius: 18px 18px 5px 18px; }
.reply { margin-top: 20px; background: var(--papier); padding: 14px; border-radius: var(--r); box-shadow: var(--ombre); }

/* ===== Tableaux / admin ===== */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--papier); border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); font-size: .93rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: .8rem; color: var(--gris); font-weight: 650; background: #f8faf9; }
.t-main { display: flex; gap: 12px; align-items: center; }
.t-main img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--r-s); flex: none; }
.st-vendue td, .st-masquee td { color: var(--gris); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
.actions .btn { padding: 6px 12px; font-size: .84rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 0 24px; }
.stats div { background: var(--papier); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--ombre); }
.stats dt { font-size: .8rem; color: var(--gris); }
.stats dd { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; text-decoration: none; color: var(--gris); border-radius: 999px; font-weight: 600; background: var(--papier); box-shadow: var(--ombre); }
.tabs a[aria-current="page"] { color: #fff; background: var(--lac); }
.inline-search { flex-direction: row; max-width: 460px; margin-bottom: 14px; }
.inline-search label { flex: 1; }

.prose { max-width: 70ch; background: var(--papier); padding: 28px 32px; border-radius: var(--r-l); box-shadow: var(--ombre); }
.prose h2 { margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }

/* ===== Pied de page ===== */
.site-foot { color: var(--lac-profond); margin-top: 24px; }
.foot-wave { display: block; width: 100%; height: 40px; }
.foot-inner { background: var(--lac-profond); color: #b9cfc9; font-size: .9rem; }
.foot-links { display: grid; grid-template-columns: 1.1fr 1fr 1.8fr; gap: 32px; padding: 24px 0 28px; }
.foot-about p { margin: 12px 0 16px; max-width: 34ch; }
.foot-links h2 { font-size: .95rem; color: #fff; letter-spacing: 0; margin-bottom: 10px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; font-size: .86rem; }
.foot-links nav:last-child ul { columns: 3; }
.foot-links li { margin-bottom: 5px; break-inside: avoid; }
.foot-links a, .foot-row a { color: #b9cfc9; text-decoration: none; }
.foot-links a:hover, .foot-row a:hover { color: #fff; text-decoration: underline; }
.foot-links .btn-sell, .foot-links .btn-sell:hover { color: #fff; text-decoration: none; }
.foot-row { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-row p { margin: 0; }
.foot-row nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }

/* ===== Écrans moyens ===== */
@media (max-width: 1080px) {
  .nav-ico span, .nav-account span:last-child { display: none; }
  .nav-ico { padding: 8px; }
  .listing { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 860px) {
  .wrap.browse { grid-template-columns: 1fr; padding-top: 24px; }
  .filters { position: static; }
  .listing { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .listing-main, .listing-side { display: contents; }
  .listing .gallery { order: 1; }
  .listing .buy-box { order: 2; }
  .listing .seller { order: 3; }
  .listing .listing-desc { order: 4; }
  .listing-main > * { order: 5; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
/* ===== Mobile ===== */
@media (max-width: 640px) {
  .head-row { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding: 10px 0; }
  .brand { font-size: 1.15rem; }
  .head-search { order: 3; flex-basis: 100%; max-width: none; }
  .head-search button { padding: 8px 14px; }
  .nav-link { display: none; }
  .head-nav .btn-sell { padding: 8px 14px; margin-left: 4px; }
  .hero { padding: 36px 0 128px; }
  .hero-search { flex-direction: column; border-radius: var(--r); }
  .hero-search .hs-where { border-left: 0; border-top: 1px solid var(--ligne); flex-basis: auto; }
  .hero-search .btn { padding: 14px; margin-top: 4px; }
  .hero-scene { height: 220px; }
  .cats { margin-top: -64px; }
  /* Catégories : une rangée qui défile horizontalement */
  .cat-grid { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 2px 16px 10px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 128px; padding: 11px; min-height: 112px; scroll-snap-align: start; }
  .cat-name { font-size: .84rem; }
  .cat-ico { width: 36px; height: 36px; }
  .cols, .cols-3 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 11px 12px; }
  .card-price { font-size: 1.02rem; }
  .card h3 { font-size: .88rem; }
  .card-where .dot, .card-where span:last-child { display: none; }
  .thread li { max-width: 92%; }
  main.wrap > .narrow:not(.prose):not(.wide):not(.empty-page), .prose { padding: 20px 18px; }
  .panel { padding: 16px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--ligne); padding: 8px 0; }
  .table td { border: 0; padding: 4px 14px; }
  .table td[data-label]::before { content: attr(data-label) " : "; color: var(--gris); font-size: .85rem; }
  .foot-links { grid-template-columns: 1fr; }
  .foot-links ul, .foot-links nav:last-child ul { columns: 2; }
}

/* Zone d'ajout de photos */
input[type=file] { border: 2px dashed #c9d6d1; background: var(--ecume); padding: 22px 16px; cursor: pointer; border-radius: var(--r); }
input[type=file]:hover { border-color: var(--lac-clair); }
input[type=file]::file-selector-button { font: 650 .9rem var(--texte); background: var(--lac); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; margin-right: 12px; cursor: pointer; }
