/* ==========================================================================
   Chat perdu Marseille — feuille de style
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  --brand: #6b3fb8;
  --brand-600: #5a31a0;
  --brand-50: #f3eefc;
  --lost: #e0483e;
  --lost-600: #c43a31;
  --lost-50: #fdeeec;
  --found: #16955f;
  --found-600: #0f7a4c;
  --found-50: #e7f6ee;
  --reunited: #2f6fde;
  --reunited-50: #eaf1fd;
  --sun: #ffb547;

  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f4f0ea;
  --ink: #1f1a29;
  --ink-2: #4a4357;
  --muted: #6f687c;
  --line: #e7e1d8;
  --focus: #6b3fb8;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 26, 41, .06), 0 4px 16px rgba(31, 26, 41, .06);
  --shadow-lg: 0 12px 40px rgba(31, 26, 41, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font);
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #a07ef0;
    --brand-600: #b597f5;
    --brand-50: #2a2140;
    --lost: #ff6f64;
    --lost-600: #ff8a80;
    --lost-50: #3a1f1f;
    --found: #3ccb8a;
    --found-600: #5bd9a0;
    --found-50: #16302a;
    --reunited: #6b9cff;
    --reunited-50: #1c2742;
    --bg: #15121b;
    --surface: #1e1a26;
    --surface-2: #26212f;
    --ink: #f1edf7;
    --ink-2: #cdc6d9;
    --muted: #a39cb0;
    --line: #342e3f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
small { font-size: .85em; color: var(--muted); font-weight: 400; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.icon-xl { width: 3rem; height: 3rem; color: var(--brand); }
.icon-heart { color: var(--lost); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.narrow { max-width: 760px; }
.section { padding-block: 2.5rem; }
.section-tight { margin-block: 2rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  color: #fff; background: var(--brand); white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--brand); }
.btn-primary:hover { background: var(--brand-600); }
.btn-lost { background: var(--lost); }
.btn-lost:hover { background: var(--lost-600); }
.btn-found { background: var(--found); }
.btn-found:hover { background: var(--found-600); }
.btn-danger { background: transparent; color: var(--lost); border-color: currentColor; }
.btn-danger:hover { background: var(--lost); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-wa { background: #1faa53; }
.btn-fb { background: #1877f2; }
.btn-contact { background: var(--ink); font-size: 1.1rem; padding: .95rem 1.2rem; }
.btn-contact:hover { background: var(--ink); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .7rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 600 1.1rem/1 var(--font-display); }
.brand strong { color: var(--brand); font-weight: 800; }
.brand:hover { color: var(--ink); }
.nav-toggle { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.site-nav { display: none; }
.site-nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: .5rem; padding: 1rem 16px 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav li a { display: block; padding: .7rem .5rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
.site-nav li a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; flex-direction: row; align-items: center; gap: 1rem; margin-left: auto; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav ul { flex-direction: row; gap: .1rem; }
  .site-nav li a { padding: .5rem .7rem; font-size: .95rem; }
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .35rem; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Alertes ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 1rem 0; border: 1px solid; font-size: .95rem; }
.alert .icon { margin-top: .15em; }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.alert-success { background: var(--found-50); border-color: color-mix(in srgb, var(--found) 35%, transparent); color: var(--ink); }
.alert-success .icon { color: var(--found); }
.alert-error { background: var(--lost-50); border-color: color-mix(in srgb, var(--lost) 35%, transparent); }
.alert-error .icon { color: var(--lost); }
.alert-info { background: var(--brand-50); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.alert-info .icon { color: var(--brand); }

/* ---------- Hero ---------- */
.hero { background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
  radial-gradient(700px 380px at -10% 110%, color-mix(in srgb, var(--sun) 22%, transparent), transparent 70%);
  padding: 2.5rem 0 3rem; overflow: hidden; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.25fr 1fr; padding-block: 1.5rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--brand); background: var(--brand-50); padding: .35rem .8rem; border-radius: 999px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); margin-top: .8rem; }
.hero h1 span { color: var(--brand); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.hero-actions { display: grid; gap: .8rem; margin: 1.6rem 0; }
@media (min-width: 560px) { .hero-actions { grid-template-columns: 1fr 1fr; } }
.hero-actions.center { justify-content: center; grid-template-columns: auto auto; }
.action { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 3rem 1.1rem 1.2rem; border-radius: var(--radius); color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.action strong { font: 800 1.2rem/1.2 var(--font-display); }
.action span { font-size: .9rem; opacity: .9; }
.action .icon { position: absolute; right: 1.1rem; top: 50%; translate: 0 -50%; width: 1.4rem; height: 1.4rem; transition: translate .15s; }
.action:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.action:hover .icon { translate: 4px -50%; }
.action-lost { background: linear-gradient(135deg, var(--lost), #f0773c); }
.action-found { background: linear-gradient(135deg, var(--found), #2bb38a); }
.hero-search { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .35rem .35rem 1rem; box-shadow: var(--shadow); max-width: 560px; }
.hero-search .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: .5rem 0; box-shadow: none; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.hero-visual { display: none; position: relative; height: 420px; }
@media (min-width: 960px) { .hero-visual { display: block; } }
.hero-photo { position: absolute; width: 240px; height: 290px; object-fit: cover; border-radius: 22px; border: 6px solid var(--surface); box-shadow: var(--shadow-lg); }
.hero-photo-0 { left: 18%; top: 4%; rotate: -4deg; z-index: 2; }
.hero-photo-1 { right: 0; top: 22%; rotate: 6deg; width: 210px; height: 250px; }
.hero-photo-2 { left: 0; bottom: 0; rotate: 5deg; width: 190px; height: 220px; z-index: 3; }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: -1.5rem; position: relative; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 1rem .5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); text-align: center; }
.stat strong { font: 800 clamp(1.6rem, 4vw, 2.3rem)/1 var(--font-display); }
.stat span { font-size: .85rem; color: var(--muted); }
.stat:hover { color: var(--ink); border-color: var(--ink-2); }
.stat-lost strong { color: var(--lost); }
.stat-found strong { color: var(--found); }
.stat-reunited strong { color: var(--reunited); }
.stats-admin { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 1rem 0; }

/* ---------- Sections ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; text-decoration: none; }
.page-head { padding-block: 1.5rem 1rem; }
.page-head h1 small { font-size: .55em; }
.page-head-lost h1 { color: var(--lost); }
.page-head-found h1 { color: var(--found); }
.h-lost { color: var(--lost); }
.h-found { color: var(--found); }
.h-reunited { color: var(--reunited); }
.h-small { font-size: 1.05rem; }

/* ---------- Grille d'annonces ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.grid-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-link:hover { color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: .85rem 1rem 1rem; }
.card-title { margin: 0; font-size: 1.1rem; }
.card-sub { margin: .1rem 0 .6rem; font-size: .88rem; color: var(--muted); }
.card-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .85rem; color: var(--ink-2); }
.card-meta li { display: flex; gap: .4rem; align-items: flex-start; }
.card-meta .icon { color: var(--muted); margin-top: .15em; width: 1em; height: 1em; }
.grid-small .card-body { padding: .7rem .8rem; }
@media (max-width: 559px) {
  .grid, .grid-3, .grid-small { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .card-body { padding: .6rem .7rem .75rem; }
  .card-title { font-size: 1rem; }
  .card-sub { font-size: .8rem; margin-bottom: .4rem; }
  .card-meta { font-size: .76rem; }
  .card-meta .icon { display: none; }
  .badge { top: .45rem; left: .45rem; font-size: .66rem; padding: .2rem .5rem; }
  .section-head .more { font-size: .9rem; }
}
.grid-small .card-meta li:first-child { display: none; }

.badge { position: absolute; top: .7rem; left: .7rem; padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--muted); text-transform: uppercase; }
.badge-perdu { background: var(--lost); }
.badge-trouve { background: var(--found); }
.badge-retrouve { background: var(--reunited); }
.badge-lg { font-size: .9rem; padding: .35rem .9rem; top: 1rem; left: 1rem; }
.badge-inline { position: static; display: inline-block; font-size: .7rem; padding: .15rem .5rem; }

.no-photo { width: 100%; height: 100%; min-height: 150px; display: grid; place-content: center; justify-items: center; gap: .3rem; background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, color-mix(in srgb, var(--brand) 6%, var(--surface-2)) 14px 28px); color: var(--muted); font-size: .78rem; text-align: center; padding: .5rem; }
.no-photo svg { width: 42%; max-width: 150px; min-width: 64px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.photo .no-photo { aspect-ratio: 4 / 3; font-size: .95rem; }
.photo a { display: block; cursor: zoom-in; }
.card { border-top: 3px solid transparent; }
.card-perdu { border-top-color: var(--lost); }
.card-trouve { border-top-color: var(--found); }
.card-retrouve { border-top-color: var(--reunited); }

/* ---------- Fiche : barre d'action fixe sur mobile ---------- */
.sticky-actions { display: none; }
@media (max-width: 899px) {
  .sticky-actions { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: .5rem; padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .sticky-actions .btn { font-size: 1rem; padding: .8rem .6rem; }
  body:has(.sticky-actions) { padding-bottom: 76px; }
  body:has(.sticky-actions) .cookie-banner { bottom: 88px; }
}

/* ---------- Listes + barre latérale ---------- */
.layout-sidebar { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.sidebar { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .sidebar { position: sticky; top: 88px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.panel h2 { font-size: 1.1rem; display: flex; gap: .4rem; align-items: center; }
.panel-cta { background: linear-gradient(160deg, var(--brand-50), var(--surface)); display: grid; gap: .6rem; }
.panel-cta p { margin: 0 0 .3rem; font-size: .92rem; color: var(--ink-2); }
.panel-tip p { font-size: .92rem; color: var(--ink-2); }
.panel-pub { padding: .6rem; text-align: center; }
.panel-pub img, .panel-pub video { width: 100%; border-radius: var(--radius-sm); }
.pub-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .4rem; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.filters select, .filters input { min-width: 0; }
.count { margin: 0 0 0 auto; color: var(--muted); font-size: .9rem; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 2rem 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; }
.pagination span { border: 0; background: none; }
.pagination a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); display: grid; justify-items: center; gap: .8rem; }
.empty-page { padding-block: 5rem; }
.empty-page h1 { color: var(--ink); }

/* ---------- Comment ça marche ---------- */
.how { background: var(--surface); border-block: 1px solid var(--line); padding: 3rem 0; margin: 1.5rem 0; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps p { color: var(--ink-2); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: #fff; font: 800 1rem/1 var(--font-display); margin-bottom: .6rem; }

.arr-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.arr-grid a { display: flex; flex-direction: column; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.arr-grid a:hover { border-color: var(--brand); color: var(--ink); }
.arr-grid span { font-size: .8rem; color: var(--muted); }
.chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips a { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; text-decoration: none; color: var(--ink-2); }
.prose-teaser > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.prose-teaser p { color: var(--ink-2); max-width: 75ch; }

/* ---------- Détail d'une annonce ---------- */
.detail { padding-top: 1.2rem; }
.detail-grid { display: grid; gap: 1.8rem; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.05fr 1fr; align-items: start; } .detail-media { position: sticky; top: 88px; } }
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.photo img { width: 100%; max-height: min(640px, 62vh); object-fit: cover; }
.h1-sub { display: block; font-size: .5em; font-weight: 600; color: var(--muted); margin-top: .35rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 1.2rem 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: .75rem 1rem; }
.facts dt { font-size: .8rem; color: var(--muted); display: flex; gap: .3rem; align-items: center; }
.facts dd { margin: .1rem 0 0; font-weight: 600; }
.description { background: var(--surface); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.description p { margin: 0; }
.contact-box { background: var(--surface-2); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.2rem; }
.contact-box p { margin: 0 0 .6rem; font-weight: 600; }
.share-title { font-weight: 600; display: flex; gap: .4rem; align-items: center; }
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-buttons .btn { font-size: .88rem; padding: .55rem .9rem; }
.owner-link { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

.map { height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); z-index: 0; }
.map-picker { height: 300px; margin-top: .6rem; }
.map-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; rotate: -45deg; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); background: var(--lost); }
.map-pin.found { background: var(--found); }
.map-pin.retrouve { background: var(--reunited); }

.comments h2 { margin-bottom: .3rem; }
.comment { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment p { margin: 0; }
.comment-head { margin-bottom: .2rem !important; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 700; }
.comment-form { margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; align-content: start; }
.field > span, .field > label { font-weight: 600; font-size: .92rem; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f687c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 1.1rem; }
.filters select, .filters input { width: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
[aria-invalid="true"] { border-color: var(--lost) !important; }
.field-error { color: var(--lost); font-size: .85rem; font-weight: 600; margin: 0; }
.hint { color: var(--muted); font-size: .82rem; }
.row-2 { display: grid; gap: 0 1rem; }
.row-4 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin: .5rem 0; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--brand); flex: none; }

.form-annonce { display: grid; gap: 1.2rem; margin-bottom: 3rem; }
.form-section { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.2rem 1.2rem .4rem; margin: 0; min-width: 0; }
@media (min-width: 640px) { .form-section { padding: 1.6rem 1.8rem .6rem; } }
.form-section legend { font: 700 1.2rem/1 var(--font-display); display: flex; align-items: center; gap: .6rem; padding: 0 .4rem; }
.form-section legend .step-n { margin: 0; width: 1.9rem; height: 1.9rem; font-size: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; }

.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: .55rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.segmented input:checked + span { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); }

.chips-input { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; transition: all .12s; }
.chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.chip input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); }
.chip-color-noir i { background: #1b1b1b; }
.chip-color-blanc i { background: #fff; }
.chip-color-gris i { background: #8d8d95; }
.chip-color-marron i { background: #6b4226; }
.chip-color-beige i { background: #e3cfa9; }
.chip-color-roux i { background: #e07b2a; }
.chip-color-ecaille i { background: conic-gradient(#1b1b1b 0 33%, #e07b2a 0 66%, #6b4226 0); }

.photo-field { margin-bottom: 1.2rem; }
.photo-drop { display: grid; grid-template-columns: 120px 1fr; gap: .2rem 1rem; align-items: center; padding: 1rem; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.photo-drop:hover, .photo-drop.dragover { border-color: var(--brand); background: var(--brand-50); }
.photo-drop img { grid-row: span 2; width: 120px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.photo-drop span { font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: .4rem; }
#photo:focus-visible + .photo-drop, .photo-field:focus-within .photo-drop { outline: 3px solid var(--focus); }

.autocomplete { position: relative; }
.autocomplete-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: .25rem 0 0; padding: .3rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 260px; overflow: auto; }
.autocomplete-list li { padding: .55rem .7rem; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.autocomplete-list li small { display: block; }
.autocomplete-list li[aria-selected="true"], .autocomplete-list li:hover { background: var(--brand-50); }

/* ---------- Pages diverses ---------- */
.prose { padding-bottom: 3rem; }
.prose h2 { margin-top: 2rem; }
.prose li { margin-bottom: .5rem; }
.prose ul { padding-left: 1.2rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.4rem; margin: 1.5rem 0; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }
.cta-box { text-align: center; margin-top: 3rem; padding: 2rem 1.2rem; background: var(--brand-50); border-radius: var(--radius); }
.cta-box .hero-actions { max-width: 520px; margin: 1rem auto 0; }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1rem 0 1.5rem; }
.contact-cards a { display: grid; gap: .2rem; text-decoration: none; color: var(--ink); }
.contact-cards a:hover { border-color: var(--brand); }
.contact-cards span { color: var(--brand); }

.choice { display: grid; gap: 1.2rem; padding-bottom: 1rem; }
@media (min-width: 760px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice-card { display: grid; justify-items: start; gap: .5rem; padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.choice-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.choice-lost:hover { border-color: var(--lost); }
.choice-found:hover { border-color: var(--found); }
.choice-card p { color: var(--ink-2); }
.choice-emoji { font-size: 2.8rem; line-height: 1; }
.checklist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; }
.checklist .icon { color: var(--found); }

.manage-head { display: flex; gap: 1rem; align-items: center; padding: 1.5rem 0 1rem; }
.manage-head img { width: 96px; height: 96px; border-radius: var(--radius); object-fit: cover; flex: none; }
.manage-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .2rem; }
.manage-head p { margin: 0; }
.manage-actions { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: 1.5rem; }
.action-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: grid; align-content: start; justify-items: start; gap: .3rem; }
.action-card h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .4rem; }
.action-card p { color: var(--ink-2); font-size: .92rem; }
.action-card-good { border-color: var(--found); background: var(--found-50); }
.action-card-good h2 .icon { color: var(--lost); }

.success-page { text-align: center; padding-block: 2.5rem 4rem; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--found); color: #fff; box-shadow: 0 0 0 10px var(--found-50); }
.success-icon .icon { width: 40px; height: 40px; }
.success-page .lead { margin-inline: auto; }
.success-page .panel, .success-page .alert { text-align: left; margin-block: 1.5rem; }
.todo { margin: 0; padding-left: 1.2rem; display: grid; gap: 1rem; }
.todo .btn { margin-top: .4rem; font-size: .88rem; padding: .5rem .9rem; }
.todo li { line-height: 1.5; }
.todo li .btn { display: flex; width: fit-content; }

.search-big { display: grid; gap: 0 .8rem; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem .2rem; margin-bottom: 1.5rem; }
.search-big .btn { margin-bottom: 1rem; }
@media (min-width: 860px) { .search-big { grid-template-columns: 2fr 1fr 1fr auto; } }

.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: scale .3s; }
.gallery-item:hover img { scale: 1.05; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .7rem .6rem; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 3rem; background: #1b1724; color: #cfc8db; padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: #e8e3f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer .linklike { color: #e8e3f0; text-decoration: none; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.brand-footer { color: #fff; margin-bottom: .8rem; }
.brand-footer strong { color: #c3a8ff; }
.brand-footer:hover { color: #fff; }
.arr-links { grid-template-columns: repeat(4, 1fr); }
.footer-bottom { border-top: 1px solid #332c40; margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; color: #8f86a0; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-lg); font-size: .9rem; }
.cookie-banner p { margin-bottom: .8rem; }
.cookie-actions { display: flex; gap: .6rem; justify-content: flex-end; }
@media (max-width: 559px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: .7rem .8rem; font-size: .8rem; line-height: 1.4; }
  .cookie-banner p { margin-bottom: .5rem; }
  .cookie-actions .btn { padding: .45rem .9rem; font-size: .85rem; }
}

/* ---------- Administration ---------- */
.admin-main { padding-block: 1.5rem 3rem; }
.admin-nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; font-size: .92rem; }
.admin-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.admin-nav form { margin: 0; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.table .thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.table .actions { display: flex; gap: .3rem; }
.table form { margin: 0; }
.login-box { max-width: 400px; margin: 4rem auto; display: grid; justify-items: center; }
.login-box .field, .login-box .alert { width: 100%; }
.narrow-form { max-width: 480px; }
.pub-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pub-preview { width: 100%; max-height: 220px; object-fit: contain; background: var(--surface-2); border-radius: var(--radius-sm); margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .sidebar, .share, .comment-form, .cookie-banner, .owner-link, .breadcrumbs { display: none !important; }
}
