/* Boucan — feuille commune des pages statiques (guides, confidentialité, fiabilité, classe) */
:root {
  --bg: #0e0d12;
  --panel: #1b1922;
  --line: #2c2934;
  --text: #f4efe6;
  --muted: #9a95a3;
  --brand: #d7ff3c;
  --brand-ink: #0e0d12;
  --link: #d7ff3c;
  --c-calm: #43c6f5;
  --c-ok: #5ff0a0;
  --c-loud: #ffd23f;
  --c-warn: #ff9f1c;
  --c-danger: #ff4d5e;
  --c-extreme: #ff3df0;
  --font-cond: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f5f0;
    --panel: #ffffff;
    --line: #dcd7cf;
    --text: #17151c;
    --muted: #57525f;
    --link: #3f5200;
    --c-calm: #0a6f96;
    --c-ok: #137a45;
    --c-loud: #8a6a00;
    --c-warn: #a55a00;
    --c-danger: #c01f30;
    --c-extreme: #a3169a;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-color-scheme: light) {
  a:focus-visible, .cta:focus-visible { outline-color: var(--text); }
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: var(--brand-ink); padding: 0.5rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 1.1rem; }

/* En-tête */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-cond); font-weight: 700; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.head-link {
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.95rem; font-weight: 700;
}

/* Fil d'Ariane */
.crumbs { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.crumbs li + li::before { content: "›"; margin: 0 0.35rem 0 0.1rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

/* Titres */
h1, h2, h3 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 7vw, 2.7rem); margin: 1.2rem 0 1rem; }
h2 {
  font-size: clamp(1.35rem, 4.6vw, 1.7rem); margin: 2.6rem 0 0.8rem;
  padding-top: 0.2rem; border-top: 2px solid var(--line); padding-top: 1.2rem;
}
h3 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 700; }

.kicker {
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); font-size: 0.85rem; margin: 1.6rem 0 0;
}

/* Réponse directe en tête */
.answer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: 1.1rem;
  margin: 0 0 1.4rem;
}
.answer p:last-child { margin-bottom: 0; }
@media (prefers-color-scheme: light) {
  .answer { border-left-color: var(--c-ok); }
}

/* Encadrés */
.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  margin: 1.2rem 0;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-legal { border-left: 5px solid var(--c-warn); }
.note-date { border-left: 5px solid var(--c-calm); }
.muted { color: var(--muted); }

/* Bouton d'appel */
.cta-block { margin: 1.8rem 0; }
.cta {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; width: 100%;
  padding: 0.8rem 1.4rem;
  background: #d7ff3c; color: #0e0d12;
  border-radius: 14px;
  font-family: var(--font-cond); font-weight: 700; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none;
  border: 2px solid #0e0d12;
}
.cta:hover { background: #e6ff7a; text-decoration: none; }
.cta-sub { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 0; }
@media (min-width: 560px) { .cta { width: auto; display: inline-flex; } .cta-block { text-align: left; } .cta-sub { text-align: left; } }

/* Tableaux responsives */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 0.95rem; }
caption {
  text-align: left; padding: 0.7rem 0.9rem 0.2rem; color: var(--muted);
  font-size: 0.85rem; caption-side: top;
}
th, td { padding: 0.6rem 0.9rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th {
  border-top: 0;
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.85rem; color: var(--muted);
}
td.num, th.num {
  font-family: var(--font-cond); font-variant-numeric: tabular-nums;
  font-weight: 700; white-space: nowrap; font-size: 1.05rem;
}

/* Pastilles de tranche (couleur + libellé, jamais la couleur seule) */
.lvl { border-left: 5px solid var(--line); }
.lvl-calm { border-left-color: var(--c-calm); }
.lvl-ok { border-left-color: var(--c-ok); }
.lvl-loud { border-left-color: var(--c-loud); }
.lvl-warn { border-left-color: var(--c-warn); }
.lvl-danger { border-left-color: var(--c-danger); }
.lvl-extreme { border-left-color: var(--c-extreme); }

/* Formule */
.formula {
  font-family: var(--font-cond); font-variant-numeric: tabular-nums;
  font-size: 1.15rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.8rem 1rem; overflow-x: auto; margin: 1rem 0;
}

/* Sommaire des guides */
.cards { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.8rem; }
.cards li { margin: 0; }
.card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.1rem; text-decoration: none; color: var(--text);
}
.card:hover { border-color: var(--brand); }
.card-title {
  display: block; font-family: var(--font-cond); text-transform: uppercase;
  font-weight: 700; font-size: 1.2rem; color: var(--link); margin-bottom: 0.25rem;
}
.card-text { display: block; color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq h3 { text-transform: none; font-family: var(--font-text); font-size: 1.05rem; letter-spacing: 0; }

/* Voir aussi */
.see-also { list-style: none; padding: 0; }
.see-also li { padding: 0.45rem 0; border-top: 1px solid var(--line); margin: 0; }

/* Pied de page */
.site-foot {
  margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem;
  color: var(--muted); font-size: 0.92rem;
}
.site-foot ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.site-foot li { margin: 0; }
.site-foot a { color: var(--text); display: inline-block; padding: 0.35rem 0; }
.disclaimer {
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin: 0;
}

@media print {
  .site-head, .cta-block, .site-foot ul { display: none; }
  body { background: #fff; color: #000; }
}
