/* =========================================================
   Droits & Détention — feuille de styles
   Polices : déposez les fichiers woff2 dans assets/fonts/
   (voir README). Sans eux, les polices système prennent le relais.
   ========================================================= */

@font-face {
  font-family: "Archivo Black";
  src: local("Archivo Black"), local("ArchivoBlack-Regular"),
       url("assets/fonts/archivo-black.woff2") format("woff2"),
       url("assets/fonts/archivo-black.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: local("Inter"), url("assets/fonts/inter-var.woff2") format("woff2"),
       url("assets/fonts/inter-var.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #101827;
  --bg2: #17263B;
  --bg3: #1E3150;
  --ink: #F5F2E9;
  --muted: #C9C6BD;
  --gold: #D9AB55;
  --gold2: #F8C050;
  --alert: #F2A07B;
  --line: rgba(245, 242, 233, .14);
  --radius: 14px;
  --max: 1120px;
  --f-title: "Archivo Black", "Bebas Neue", Impact, "Arial Black", sans-serif;
  --f-text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-text);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--f-title); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4.4vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold2); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg2); }
.eyebrow {
  display: inline-block; color: var(--gold); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 46rem; }

.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 24, 39, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(16, 24, 39, .86); backdrop-filter: blur(6px); }
}
.header-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand img { width: 40px; height: 40px; border-radius: 8px; background: var(--bg2); }
.brand span { font-family: var(--f-title); font-size: clamp(.9rem, 3.6vw, 1.05rem); letter-spacing: .02em; white-space: nowrap; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--bg2); color: var(--gold2); }
@media (min-width: 720px) { .nav { display: flex; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font: 700 1rem/1.2 var(--f-text); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--gold2); color: var(--bg); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg2); color: var(--gold2); }
.btn-call { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; background: transparent; color: var(--muted); border-color: var(--line); }
.btn-call .label-long { display: none; }
@media (min-width: 480px) { .btn-call .label-long { display: inline; } .btn-call .label-short { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; }
.hero h1 span { color: var(--gold2); }
.hero .lead { margin-bottom: 1.6rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { flex: 1 1 260px; }
@media (min-width: 720px) { .actions .btn { flex: 0 0 auto; } }
.proofs { list-style: none; display: grid; gap: 10px; margin-top: 28px; color: var(--muted); font-size: .97rem; }
.proofs li { display: flex; gap: 10px; align-items: center; }
.proofs .ic { color: var(--gold); width: 22px; height: 22px; }
@media (min-width: 720px) { .proofs { grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; } }
.msg { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--bg2); border-radius: 0 8px 8px 0; font-size: .97rem; }
.msg[hidden] { display: none; }

/* ---------- Cartes thèmes ---------- */
.cards { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg2); color: var(--ink); text-decoration: none; min-height: 44px;
}
.card:hover { border-color: var(--gold); }
.card .ic { color: var(--gold2); width: 30px; height: 30px; }
.card strong { font-size: 1.05rem; }
.card span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.card.urgent { border-color: var(--alert); }
.card.urgent .ic { color: var(--alert); }

/* ---------- Sections thématiques ---------- */
.theme { padding: 40px 0; border-top: 1px solid var(--line); }
.theme-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.theme-head .ic { width: 34px; height: 34px; color: var(--gold2); }
.theme-head h3 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); margin: 0; }
.rules { list-style: none; display: grid; gap: 10px; counter-reset: r; }
@media (min-width: 860px) { .rules { grid-template-columns: 1fr 1fr; } }
.rules li { padding: 14px 16px 12px; background: var(--bg2); border-radius: 10px; border-left: 3px solid var(--gold); }
.rules p { margin: 0 0 6px; }
.src { font-size: .85rem; color: var(--muted); margin: 0 !important; }
.verify {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--bg); background: var(--alert); border-radius: 999px; padding: 2px 8px; margin-right: 6px; vertical-align: 1px;
}
.video-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; min-height: 44px; font-weight: 700; }
.video-link[aria-disabled="true"] { color: var(--muted); text-decoration: none; cursor: not-allowed; }

/* ---------- Bloc guide ---------- */
.guide {
  display: grid; gap: 24px; align-items: center;
  padding: 28px 20px; border: 1px solid var(--gold); border-radius: 20px; background: var(--bg2);
}
@media (min-width: 860px) { .guide { grid-template-columns: 1.4fr 1fr; padding: 40px; } }
.guide ul { list-style: none; display: grid; gap: 8px; margin: 0 0 1.2rem; }
.guide li { display: flex; gap: 10px; }
.guide li .ic { color: var(--gold2); width: 22px; height: 22px; margin-top: 2px; }
.stat { font-family: var(--f-title); font-size: clamp(3rem, 12vw, 5rem); color: var(--gold2); line-height: 1; }
.stat-label { color: var(--muted); }

/* ---------- Recherche établissements ---------- */
.notice {
  display: flex; gap: 12px; padding: 14px 16px; margin: 0 0 20px;
  border: 1px solid var(--alert); border-radius: 12px; background: rgba(242, 160, 123, .08);
}
.notice .ic { color: var(--alert); margin-top: 2px; }
.notice p { margin: 0; }
.search { position: relative; max-width: 560px; margin-bottom: 8px; }
.search label { display: block; font-weight: 700; margin-bottom: 8px; }
.search input {
  width: 100%; min-height: 52px; padding: 12px 16px 12px 48px;
  font: 400 1.05rem var(--f-text); color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 12px;
}
.search input:focus { border-color: var(--gold2); outline: none; }
.search .ic { position: absolute; left: 14px; bottom: 14px; color: var(--muted); }
.count { color: var(--muted); font-size: .95rem; min-height: 1.5em; }
.results { list-style: none; display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 860px) { .results { grid-template-columns: 1fr 1fr; } }
.etab { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.etab h3 { font-family: var(--f-text); font-weight: 700; font-size: 1.08rem; margin-bottom: 4px; }
.etab dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .95rem; }
.etab dt { color: var(--muted); }
.etab dd { margin: 0; }
.etab .meta { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.tag-example { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--alert); color: var(--bg); border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }

/* ---------- Contacts ---------- */
.urgent-strip { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
@media (min-width: 720px) { .urgent-strip { grid-template-columns: repeat(3, 1fr); } }
.urgent-strip a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px;
  background: var(--bg); border: 1px solid var(--alert); border-radius: 12px; color: var(--ink); text-decoration: none;
}
.urgent-strip strong { font-family: var(--f-title); font-size: 1.4rem; color: var(--gold2); display: block; font-weight: 400; }
.urgent-strip small { color: var(--muted); }
.urgent-strip .ic { color: var(--alert); }
.res-group { margin-top: 28px; }
.res-group h3 { color: var(--gold); font-family: var(--f-text); font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.res-list { list-style: none; display: grid; gap: 12px; }
@media (min-width: 720px) { .res-list { grid-template-columns: 1fr 1fr; } }
.res { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.res h4 { margin: 0 0 4px; font-size: 1.05rem; }
.res p { margin: 0 0 8px; color: var(--muted); font-size: .97rem; }
.res ul { list-style: none; display: grid; gap: 6px; font-size: .97rem; }
.res a { word-break: break-word; }

/* ---------- Bloc « bientôt » ---------- */
.soon {
  display: grid; gap: 16px; padding: 28px 20px; border-radius: 20px;
  background: repeating-linear-gradient(135deg, var(--bg2) 0 14px, var(--bg3) 14px 15px);
  border: 1px dashed var(--gold);
}
@media (min-width: 860px) { .soon { grid-template-columns: auto 1fr auto; align-items: center; padding: 32px 40px; } }
.soon > .ic { width: 44px; height: 44px; color: var(--gold2); }
.soon h2 { margin-bottom: .3em; }
.soon p { margin: 0; color: var(--muted); }
.badge-soon {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--bg); background: var(--gold); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details { background: var(--bg2); border-radius: 12px; border: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 16px; min-height: 44px; position: relative; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.5rem; color: var(--gold2); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 16px 16px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--gold); padding: 40px 0 56px; background: var(--bg); font-size: .95rem; color: var(--muted); }
.site-footer .disclaimer { color: var(--ink); font-weight: 600; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Pages secondaires ---------- */
.page { padding: 40px 0 64px; max-width: 46rem; }
.page h2 { margin-top: 1.6em; font-size: 1.3rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
