/* =========================================================
   PerduRetrouvé — feuille de style
   Palette issue du logo : bleu #1E6FB9, orange #F27A1A, vert #2EAD4A
   ========================================================= */

/* ---------- 1. Variables ---------- */

:root{
  --blue-900:#0B3A63;
  --blue-700:#0F4C81;
  --blue:#1E6FB9;
  --blue-300:#6FA8DC;
  --blue-50:#EAF3FC;

  --orange:#F27A1A;
  --orange-dark:#D2620B;
  --orange-50:#FFF1E3;

  --green:#2EAD4A;
  --green-dark:#22883A;
  --green-50:#E8F7EC;

  --red:#DC2F2F;
  --red-50:#FDECEC;

  --bg:#F4F7FB;
  --surface:#FFFFFF;
  --surface-2:#F9FBFD;
  --line:#E2E9F2;
  --line-strong:#CBD8E8;

  --text:#12263F;
  --text-soft:#5A6C84;
  --text-mute:#8496AC;

  --radius-sm:10px;
  --radius:16px;
  --radius-lg:24px;
  --radius-pill:999px;

  --shadow-xs:0 1px 2px rgba(16,42,71,.06);
  --shadow-sm:0 2px 8px rgba(16,42,71,.07);
  --shadow:0 10px 30px rgba(16,42,71,.09);
  --shadow-lg:0 24px 60px rgba(16,42,71,.16);

  --container:1180px;
  --header-h:76px;

  --font:'Segoe UI',system-ui,-apple-system,'Helvetica Neue',Roboto,Arial,sans-serif;
}

html[data-theme="dark"]{
  --bg:#0B1220;
  --surface:#131C2E;
  --surface-2:#18233A;
  --line:#243349;
  --line-strong:#33455F;

  --text:#EAF1FA;
  --text-soft:#A8B8CC;
  --text-mute:#7C8EA6;

  --blue-50:#152742;
  --orange-50:#33210F;
  --green-50:#12301C;
  --red-50:#3A1717;

  --shadow-xs:0 1px 2px rgba(0,0,0,.4);
  --shadow-sm:0 2px 10px rgba(0,0,0,.4);
  --shadow:0 12px 34px rgba(0,0,0,.45);
  --shadow-lg:0 26px 60px rgba(0,0,0,.55);
}

/* ---------- 2. Base ---------- */

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px)}

body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
[hidden]{display:none !important}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}

h1,h2,h3,h4{line-height:1.2;margin:0;letter-spacing:-.02em}
p{margin:0}

.container{width:min(100% - 40px,var(--container));margin-inline:auto}

.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--blue-700);color:#fff;padding:12px 20px;border-radius:0 0 12px 0;
}
.skip-link:focus{left:0}

:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:6px}

/* ---------- 3. Boutons ---------- */

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 22px;border:1px solid transparent;border-radius:var(--radius-pill);
  font-weight:600;font-size:15px;cursor:pointer;white-space:nowrap;
  transition:transform .15s ease,box-shadow .2s ease,background .2s ease,color .2s ease;
  text-decoration:none;
}
.btn:hover{transform:translateY(-2px);text-decoration:none}
.btn:active{transform:translateY(0)}
.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.btn-lg{padding:15px 28px;font-size:16px}
.btn-sm{padding:8px 16px;font-size:13.5px}
.btn-block{width:100%}

.btn-primary{background:var(--blue);color:#fff;box-shadow:0 6px 18px rgba(30,111,185,.32)}
.btn-primary:hover{background:var(--blue-700);box-shadow:0 12px 26px rgba(30,111,185,.38)}

.btn-lost{background:var(--orange);color:#fff;box-shadow:0 6px 18px rgba(242,122,26,.32)}
.btn-lost:hover{background:var(--orange-dark)}

.btn-found{background:var(--green);color:#fff;box-shadow:0 6px 18px rgba(46,173,74,.3)}
.btn-found:hover{background:var(--green-dark)}

.btn-ghost{background:transparent;border-color:var(--line-strong);color:var(--text-soft)}
.btn-ghost:hover{background:var(--surface-2);color:var(--text)}

.btn-outline{background:var(--surface);border-color:var(--line-strong);color:var(--text)}
.btn-outline:hover{border-color:var(--blue);color:var(--blue)}

.btn-wa{background:#25D366;color:#0A2E17;box-shadow:0 6px 18px rgba(37,211,102,.3)}
.btn-wa:hover{background:#1FBA59}

.icon-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:50%;border:1px solid var(--line);
  background:var(--surface);cursor:pointer;color:var(--text-soft);font-size:17px;
  transition:background .2s,color .2s,border-color .2s;
}
.icon-btn:hover{background:var(--surface-2);color:var(--text);border-color:var(--line-strong)}

/* ---------- 4. En-tête ---------- */

.site-header{
  position:sticky;top:0;z-index:60;
  background:color-mix(in srgb,var(--surface) 88%,transparent);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  min-height:var(--header-h);
  display:flex;align-items:center;gap:20px;
}

.brand{display:flex;align-items:center;gap:10px;color:inherit;flex:0 0 auto}
.brand:hover{text-decoration:none}
.brand-mark{height:46px;width:auto;object-fit:contain}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-name{font-size:21px;font-weight:800;letter-spacing:-.03em}
.brand-name b{color:var(--orange);font-weight:800}
.brand-name i{color:var(--green);font-style:normal;font-weight:800}
.brand-tagline{font-size:11px;color:var(--text-mute);letter-spacing:.02em}

.main-nav{display:flex;gap:6px;margin-left:auto}
.main-nav a{
  padding:9px 14px;border-radius:var(--radius-pill);white-space:nowrap;
  color:var(--text-soft);font-weight:600;font-size:14.5px;
  transition:background .2s,color .2s;
}
.main-nav a:hover{background:var(--blue-50);color:var(--blue-700);text-decoration:none}

.header-actions{display:flex;align-items:center;gap:10px}
.burger{display:none;flex-direction:column;gap:4px}
.burger span{display:block;width:18px;height:2px;background:currentColor;border-radius:2px;transition:transform .25s,opacity .2s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* ---------- 5. Hero ---------- */

.hero{position:relative;overflow:hidden;padding:72px 0 64px;background:var(--surface)}
.hero-glow{
  position:absolute;inset:-40% 20% auto -10%;height:640px;
  background:
    radial-gradient(closest-side,rgba(30,111,185,.18),transparent 70%) 20% 30%/60% 90% no-repeat,
    radial-gradient(closest-side,rgba(242,122,26,.16),transparent 70%) 80% 10%/50% 80% no-repeat,
    radial-gradient(closest-side,rgba(46,173,74,.16),transparent 70%) 95% 70%/55% 85% no-repeat;
  filter:blur(6px);pointer-events:none;
}
.hero-inner{position:relative;text-align:center}

.hero-eyebrow{
  display:inline-block;padding:7px 16px;border-radius:var(--radius-pill);
  background:var(--blue-50);color:var(--blue-700);
  font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
}
.hero h1{font-size:clamp(30px,5.2vw,54px);margin:20px 0 16px;font-weight:800}
.hero h1 .grad{
  background:linear-gradient(100deg,var(--orange),var(--green) 70%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero-sub{font-size:clamp(16px,2.1vw,19px);color:var(--text-soft);max-width:660px;margin:0 auto}
.c-lost{color:var(--orange-dark)}
.c-found{color:var(--green-dark)}
html[data-theme="dark"] .c-lost{color:var(--orange)}
html[data-theme="dark"] .c-found{color:#59D07A}

.hero-search{
  display:flex;align-items:center;gap:8px;
  max-width:660px;margin:32px auto 0;padding:8px 8px 8px 18px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-pill);box-shadow:var(--shadow);
}
.hs-icon{display:flex;color:var(--text-mute)}
.hs-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.hero-search input{
  flex:1;min-width:0;border:0;background:transparent;padding:12px 4px;font-size:16px;
}
.hero-search input:focus{outline:none}
.hero-search input::-webkit-search-cancel-button{cursor:pointer}

.hero-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:26px}

.hero-stats{
  display:flex;justify-content:center;gap:14px;flex-wrap:wrap;
  list-style:none;margin:44px 0 0;padding:0;
}
.hero-stats li{
  background:var(--surface-2);border:1px solid var(--line);
  border-radius:var(--radius);padding:16px 26px;min-width:190px;
}
.hero-stats strong{display:block;font-size:28px;font-weight:800;color:var(--blue-700)}
html[data-theme="dark"] .hero-stats strong{color:var(--blue-300)}
.hero-stats span{font-size:13.5px;color:var(--text-soft)}

/* ---------- 6. Catégories rapides ---------- */

.quick{padding:34px 0 6px}
.quick-grid{
  display:grid;gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
}
.qcard{
  display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;
  padding:20px 12px;border-radius:var(--radius);cursor:pointer;
  background:var(--surface);border:1px solid var(--line);
  box-shadow:var(--shadow-xs);transition:transform .18s,box-shadow .22s,border-color .2s;
  color:inherit;font-weight:600;font-size:14.5px;
}
.qcard:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--blue-300)}
.qcard.is-active{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-50)}
.qcard .qicon{
  display:grid;place-items:center;width:52px;height:52px;border-radius:16px;
  background:var(--tint,var(--blue-50));color:var(--accent,var(--blue));
}
.qcard .qicon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.qcard small{display:block;color:var(--text-mute);font-weight:500;font-size:12.5px}

/* ---------- 7. Titres de section ---------- */

.section-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;
  margin-bottom:22px;flex-wrap:wrap;
}
.section-head h2{font-size:clamp(22px,3vw,30px);font-weight:800;display:flex;align-items:center;gap:10px}
.section-sub{color:var(--text-soft);font-size:15px;margin-top:6px;max-width:70ch}
.link-more{font-weight:700;font-size:14.5px}

.pulse-dot{
  width:11px;height:11px;border-radius:50%;background:var(--red);flex:0 0 auto;
  box-shadow:0 0 0 0 rgba(220,47,47,.6);animation:pulse 2s infinite;
}
@keyframes pulse{
  70%{box-shadow:0 0 0 12px rgba(220,47,47,0)}
  100%{box-shadow:0 0 0 0 rgba(220,47,47,0)}
}

/* ---------- 8. Alertes personnes ---------- */

.alerts{padding:46px 0 10px}
.alerts-row{
  display:grid;gap:16px;
  grid-template-columns:repeat(auto-fill,minmax(270px,1fr));
}
.empty-inline{color:var(--text-mute);font-size:14.5px;padding:14px 0}

/* ---------- 9. Barre d'outils ---------- */

.board{padding:46px 0 10px}

.toolbar{
  display:flex;flex-wrap:wrap;gap:14px;align-items:center;
  padding:14px;margin-bottom:24px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow-xs);
}

.segmented{display:inline-flex;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-pill);padding:4px}
.seg{
  border:0;background:transparent;padding:9px 18px;border-radius:var(--radius-pill);
  font-weight:700;font-size:14px;color:var(--text-soft);cursor:pointer;transition:all .2s;
}
.seg:hover{color:var(--text)}
.seg.is-active{background:var(--blue);color:#fff;box-shadow:var(--shadow-xs)}
.seg-lost.is-active{background:var(--orange)}
.seg-found.is-active{background:var(--green)}

.chips{display:flex;gap:8px;flex-wrap:wrap;flex:1;min-width:200px}
.chip{
  padding:8px 14px;border-radius:var(--radius-pill);cursor:pointer;
  border:1px solid var(--line);background:var(--surface-2);
  font-size:13.5px;font-weight:600;color:var(--text-soft);transition:all .18s;
}
.chip:hover{border-color:var(--blue-300);color:var(--text)}
.chip.is-active{background:var(--blue-700);border-color:var(--blue-700);color:#fff}

.selects{display:flex;gap:10px;flex-wrap:wrap;margin-left:auto}
.selects select{
  padding:10px 14px;border-radius:var(--radius-pill);
  border:1px solid var(--line);background:var(--surface-2);font-size:14px;cursor:pointer;
}

/* ---------- 10. Grille + cartes ---------- */

.grid{
  display:grid;gap:20px;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
}

.card{
  position:relative;display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:var(--shadow-xs);cursor:pointer;
  transition:transform .2s ease,box-shadow .25s ease,border-color .2s;
  text-align:left;
}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:var(--line-strong)}
.card::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--accent,var(--blue));z-index:2}
.card.perdu{--accent:var(--orange)}
.card.retrouve{--accent:var(--green)}
.card.is-solved{opacity:.72}

.card-media{
  position:relative;height:172px;background:var(--surface-2);
  display:grid;place-items:center;overflow:hidden;border-bottom:1px solid var(--line);
}
.card-media img{width:100%;height:100%;object-fit:cover}
.card-media .ph{color:var(--accent,var(--blue));opacity:.55}
.card-media .ph svg{width:56px;height:56px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

.card-badges{position:absolute;top:12px;left:14px;right:12px;display:flex;gap:6px;flex-wrap:wrap;z-index:3}
.badge{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 11px;border-radius:var(--radius-pill);
  font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  background:var(--surface);color:var(--text-soft);border:1px solid var(--line);
  box-shadow:var(--shadow-xs);
}
.badge-lost{background:var(--orange);color:#fff;border-color:transparent}
.badge-found{background:var(--green);color:#fff;border-color:transparent}
.badge-urgent{background:var(--red);color:#fff;border-color:transparent}
.badge-solved{background:var(--blue-700);color:#fff;border-color:transparent}
.badge-demo{background:var(--surface);color:var(--text-mute)}
.badge-match{background:#FFF4CC;color:#7A5B00;border-color:#F0DCA0}
html[data-theme="dark"] .badge-match{background:#3B2F0A;color:#F6D97A;border-color:#5A4712}

.card-body{padding:18px 18px 16px;display:flex;flex-direction:column;gap:10px;flex:1}
.card-cat{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent,var(--blue))}
.card h3{font-size:17.5px;font-weight:750}
.card-desc{
  color:var(--text-soft);font-size:14.3px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.card-meta{display:flex;flex-direction:column;gap:5px;margin-top:auto;padding-top:8px;border-top:1px dashed var(--line);color:var(--text-soft);font-size:13.5px}
.card-meta span{display:flex;align-items:center;gap:8px}
.card-meta svg{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--text-mute)}
.card-foot{display:flex;gap:8px;padding:0 18px 18px}
.card-foot .btn{flex:1;padding:10px 12px;font-size:13.5px}

/* ---------- 11. État vide ---------- */

.empty-state{
  text-align:center;padding:60px 24px;
  background:var(--surface);border:1px dashed var(--line-strong);border-radius:var(--radius-lg);
}
.empty-illu{
  width:78px;height:78px;margin:0 auto 18px;border-radius:50%;
  background:var(--blue-50);color:var(--blue);display:grid;place-items:center;
}
.empty-illu svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.empty-state h3{font-size:20px;margin-bottom:8px}
.empty-state p{color:var(--text-soft);max-width:52ch;margin:0 auto 20px}

/* ---------- 12. Mes annonces ---------- */

.mine{padding:52px 0 10px}

/* ---------- 13. Comment ça marche ---------- */

.how{padding:60px 0 10px}
.steps{
  list-style:none;padding:0;margin:0;display:grid;gap:20px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));counter-reset:s;
}
.steps li{
  position:relative;padding:28px 24px;border-radius:var(--radius-lg);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-xs);
}
.step-n{
  display:grid;place-items:center;width:44px;height:44px;margin-bottom:14px;
  border-radius:14px;background:var(--blue-700);color:#fff;font-weight:800;font-size:19px;
}
.steps li:nth-child(2) .step-n{background:var(--orange)}
.steps li:nth-child(3) .step-n{background:var(--green)}
.steps h3{font-size:18px;margin-bottom:8px}
.steps p{color:var(--text-soft);font-size:14.5px}

/* ---------- 14. Sécurité ---------- */

.safety{padding:60px 0 70px}
.safety-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.safe-card{
  padding:22px;border-radius:var(--radius);background:var(--surface);
  border:1px solid var(--line);border-left:4px solid var(--blue);box-shadow:var(--shadow-xs);
}
.safe-card.urgent{border-left-color:var(--red);background:var(--red-50)}
.safe-card h3{font-size:16.5px;margin-bottom:8px}
.safe-card p{color:var(--text-soft);font-size:14.4px}

/* ---------- 15. Pied de page ---------- */

.site-footer{background:var(--blue-900);color:#D6E4F3;margin-top:20px}
html[data-theme="dark"] .site-footer{background:#070D18;border-top:1px solid var(--line)}
.footer-grid{
  display:grid;gap:32px;padding:52px 0 34px;
  grid-template-columns:1.4fr 1fr 1fr;
}
.footer-brand img{background:#fff;border-radius:12px;padding:10px 14px;max-width:230px;margin-bottom:16px}
.footer-brand p{font-size:14.3px;color:#A9C3DC;max-width:44ch}
.site-footer h4{font-size:13px;text-transform:uppercase;letter-spacing:.1em;color:#7FA6CC;margin-bottom:14px}
.site-footer nav{display:flex;flex-direction:column;gap:9px}
.site-footer a{color:#D6E4F3;font-size:14.5px}
.site-footer a:hover{color:#fff}
.foot-urgence{font-size:14.3px;color:#A9C3DC;line-height:1.9}
.foot-urgence strong{color:#fff}

.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  padding:18px 0 26px;border-top:1px solid rgba(255,255,255,.12);
  font-size:12.5px;color:#8FB0D0;
}
.sanki-signature{
  display:flex;align-items:center;gap:8px;
  font-size:12px;letter-spacing:.06em;color:#8FB0D0;
}
.sanki-signature strong{color:#E7C476;font-weight:600;letter-spacing:.12em}

/* ---------- 16. FAB ---------- */

.fab{
  display:none;position:fixed;right:18px;bottom:18px;z-index:50;
  width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;
  background:var(--blue);color:#fff;font-size:30px;line-height:1;
  box-shadow:0 12px 30px rgba(30,111,185,.45);
}

/* ---------- 17. Modales ---------- */

.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}
.modal[hidden]{display:none}
.modal-backdrop{position:absolute;inset:0;background:rgba(8,25,48,.55);backdrop-filter:blur(3px);animation:fade .2s ease}
.modal-panel{
  position:relative;width:min(100%,720px);max-height:min(90vh,900px);
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--surface);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);animation:rise .25s cubic-bezier(.2,.8,.3,1);
}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(24px) scale(.98)}to{opacity:1;transform:none}}

.modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px 22px;border-bottom:1px solid var(--line);
  background:var(--surface);position:sticky;top:0;z-index:2;
}
.modal-head h2{font-size:20px}
.modal-body{padding:22px;overflow-y:auto;display:flex;flex-direction:column;gap:18px}

/* ---------- 18. Formulaire ---------- */

.field{display:flex;flex-direction:column;gap:7px;border:0;padding:0;margin:0;min-width:0}
.field > label,.field > legend{font-weight:650;font-size:14.5px;padding:0}
.field-row{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.req{color:var(--red)}
.hint{font-size:12.5px;color:var(--text-mute)}

input[type="text"],input[type="tel"],input[type="date"],input[type="number"],
input[type="search"],input[type="file"],select,textarea{
  width:100%;padding:12px 14px;border-radius:var(--radius-sm);
  border:1px solid var(--line-strong);background:var(--surface-2);
  transition:border-color .18s,box-shadow .18s,background .18s;
}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--blue);background:var(--surface);
  box-shadow:0 0 0 4px var(--blue-50);
}
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"]{
  border-color:var(--red);box-shadow:0 0 0 4px var(--red-50);
}
textarea{resize:vertical;min-height:96px}
input[type="file"]{padding:9px 12px;cursor:pointer}

.type-toggle{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tt{position:relative;cursor:pointer}
.tt input{position:absolute;opacity:0;inset:0;cursor:pointer}
.tt span{
  display:flex;flex-direction:column;gap:2px;padding:14px 16px;
  border:2px solid var(--line-strong);border-radius:var(--radius);
  background:var(--surface-2);transition:all .18s;
}
.tt strong{font-size:15.5px}
.tt small{color:var(--text-mute);font-size:12.5px}
.tt-lost input:checked + span{border-color:var(--orange);background:var(--orange-50)}
.tt-lost input:checked + span strong{color:var(--orange-dark)}
.tt-found input:checked + span{border-color:var(--green);background:var(--green-50)}
.tt-found input:checked + span strong{color:var(--green-dark)}
.tt input:focus-visible + span{outline:3px solid var(--blue);outline-offset:2px}

.check{display:flex;align-items:flex-start;gap:11px;font-size:14px;color:var(--text-soft);cursor:pointer}
.check input{width:19px;height:19px;margin-top:2px;flex:0 0 auto;accent-color:var(--blue);cursor:pointer}

.photo-preview{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.photo-preview img{width:130px;height:130px;object-fit:cover;border-radius:var(--radius);border:1px solid var(--line)}

.form-error{
  padding:12px 16px;border-radius:var(--radius-sm);
  background:var(--red-50);color:var(--red);font-size:14px;font-weight:600;
  border:1px solid rgba(220,47,47,.28);
}

.modal-actions{
  display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;
  padding-top:6px;border-top:1px solid var(--line);margin-top:2px;padding-block-start:18px;
}

/* ---------- 19. Détail ---------- */

.detail-hero{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--surface-2);border:1px solid var(--line)}
.detail-hero img{width:100%;max-height:340px;object-fit:cover}
.detail-hero .ph{display:grid;place-items:center;height:190px;color:var(--accent,var(--blue));opacity:.5}
.detail-hero .ph svg{width:72px;height:72px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}

.detail-badges{display:flex;gap:8px;flex-wrap:wrap}
.detail h3{font-size:23px}
.detail-desc{color:var(--text-soft);white-space:pre-wrap}

.detail-facts{
  display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin:0;
}
.detail-facts div{
  background:var(--surface-2);border:1px solid var(--line);
  border-radius:var(--radius-sm);padding:13px 15px;
}
.detail-facts dt{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-mute);font-weight:700}
.detail-facts dd{margin:4px 0 0;font-size:15px;font-weight:600}

.contact-box{
  padding:18px;border-radius:var(--radius);
  background:var(--blue-50);border:1px solid var(--line);
}
.contact-box h4{font-size:15px;margin-bottom:4px}
.contact-box p{font-size:14px;color:var(--text-soft);margin-bottom:14px}
.contact-actions{display:flex;gap:10px;flex-wrap:wrap}
.contact-actions .btn{flex:1;min-width:150px}

.match-box{padding:16px 18px;border-radius:var(--radius);background:var(--surface-2);border:1px solid var(--line)}
.match-box h4{font-size:15px;margin-bottom:10px;display:flex;align-items:center;gap:8px}
.match-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.match-list button{
  width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:12px 14px;border-radius:var(--radius-sm);border:1px solid var(--line);
  background:var(--surface);cursor:pointer;transition:border-color .18s,transform .18s;
}
.match-list button:hover{border-color:var(--blue);transform:translateX(3px)}
.match-list strong{font-size:14.5px}
.match-list small{color:var(--text-mute);font-size:12.5px;display:block}
.match-score{font-size:12px;font-weight:800;color:var(--green-dark);white-space:nowrap}

.owner-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:6px;border-top:1px solid var(--line)}

/* ---------- 20. Toasts ---------- */

.toasts{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:10px;width:min(92vw,420px)}
.toast{
  display:flex;align-items:center;gap:12px;padding:14px 18px;
  border-radius:var(--radius);background:var(--text);color:var(--bg);
  box-shadow:var(--shadow-lg);font-size:14.5px;font-weight:600;
  animation:toastIn .28s cubic-bezier(.2,.8,.3,1);
}
.toast.ok{background:var(--green-dark);color:#fff}
.toast.warn{background:var(--orange-dark);color:#fff}
.toast.err{background:var(--red);color:#fff}
.toast.out{animation:toastOut .3s forwards}
@keyframes toastIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateY(14px)}}

/* ---------- 21. Responsive ---------- */

@media (max-width:1080px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .selects{margin-left:0}

  .burger{display:inline-flex}
  .btn-publish{display:none}
  .fab{display:grid;place-items:center}
  .header-actions{margin-left:auto}

  .main-nav{
    position:absolute;left:0;right:0;top:100%;
    flex-direction:column;gap:2px;padding:12px;
    background:var(--surface);border-bottom:1px solid var(--line);
    box-shadow:var(--shadow);display:none;
  }
  .main-nav.is-open{display:flex}
  .main-nav a{padding:13px 14px;font-size:16px}
}

@media (max-width:820px){
  .brand-tagline{display:none}

  .hero{padding:48px 0 44px}
  .hero-search{flex-wrap:wrap;border-radius:var(--radius);padding:12px}
  .hero-search input{flex:1 1 200px}
  .hero-search .btn{flex:1 1 100%}
  .hero-cta .btn{flex:1 1 100%}
  .hero-stats li{flex:1 1 100%;min-width:0}

  .toolbar{flex-direction:column;align-items:stretch}
  .segmented{justify-content:center}
  .selects{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
  .selects select{width:100%;min-width:0}
  .selects .btn{grid-column:1 / -1}

  .grid,.alerts-row{grid-template-columns:1fr}
  .type-toggle{grid-template-columns:1fr}
  .modal{padding:0;align-items:flex-end}
  .modal-panel{max-height:94vh;width:100%;border-radius:var(--radius-lg) var(--radius-lg) 0 0}
  .modal-actions .btn{flex:1}
  .footer-grid{grid-template-columns:1fr;padding-top:38px}
  .footer-bottom{justify-content:center;text-align:center}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}

@media print{
  .site-header,.hero,.toolbar,.fab,.modal,.toasts,.quick,.site-footer{display:none !important}
  .card{break-inside:avoid;box-shadow:none}
}
