/* ═══════════════════════════════════════════════════════════════════════
   ANNEXES — feuille de style partagée par les pages de référence autonomes
   (annexe-securite.html, annexe-couts.html, annexe-dev.html…).
   Format DOCUMENT (lisible mobile/laptop + projetable), PAS le canvas 16:9
   des decks. Dépend de css/tokens.css pour les variables. Polices embarquées.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: block;
  src: url('../assets/fonts/InterVariable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: block;
  src: url('../assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg-cream); color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.5;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* ——— En-tête ——— */
.top { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 48px); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; background: var(--accent-bright);
  padding: 5px 11px; border-radius: 5px;
}
.top h1 {
  margin: 20px 0 12px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(34px, 6vw, 64px);
}
.top h1 em { font-style: normal; color: var(--accent-clay); }
.top .sub { font-size: clamp(17px, 2.2vw, 22px); color: var(--ink); max-width: 62ch; margin: 0; }

/* ——— Panneaux ——— */
.panel { padding: clamp(32px, 5vw, 60px) 0; border-top: 1px solid var(--neutral-2); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent-clay); margin: 0 0 14px;
}
.panel h2 {
  margin: 0 0 10px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.08;
  font-size: clamp(26px, 4vw, 42px);
}
.panel h2 em { font-style: normal; color: var(--accent-clay); }
.panel .lead { font-size: clamp(17px, 2vw, 21px); max-width: 68ch; margin: 0 0 28px; }

/* ——— Grille de cartes ——— */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: #FBFAF6; border: 1px solid var(--neutral); border-radius: 10px;
  padding: 22px 22px; display: flex; flex-direction: column; gap: 7px;
}
.card h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.card .k { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.card .big { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--accent-clay); letter-spacing: -0.01em; }

/* ——— Bande à 3 colonnes (niveaux / étapes) ——— */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.lvl { border: 1px solid var(--neutral); border-radius: 10px; padding: 18px 20px; background: #fff; }
.lvl .n { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--accent-clay); text-transform: uppercase; }
.lvl h4 { margin: 4px 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.lvl ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.lvl li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.38; }
.lvl li::before { content: "›"; position: absolute; left: 0; color: var(--accent-clay); font-weight: 700; }

/* ——— Tableau comparatif (2 colonnes idée reçue / réalité) ——— */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.compare .col { border: 1px solid var(--neutral); border-radius: 10px; padding: 20px 22px; background: #fff; }
.compare .col--myth { background: #FBFAF6; }
.compare .col h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.compare .col--myth h4 { color: var(--ink-muted); }
.compare .col--real h4 { color: var(--accent-clay); }
.compare ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.compare li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.4; }
.compare li::before { position: absolute; left: 0; font-weight: 700; }
.compare .col--myth li::before { content: "✕"; color: var(--ink-muted); }
.compare .col--real li::before { content: "✓"; color: var(--accent-clay); }

/* ——— Encart (callout) ——— */
.callout {
  margin-top: 22px; padding: 18px 24px; border: 1px solid var(--neutral);
  border-left: 3px solid var(--accent-clay); border-radius: 10px;
  background: rgba(217, 119, 87, 0.05); font-size: 17px; line-height: 1.5;
}
.callout .tag {
  display: inline; font-weight: 800; color: var(--accent-clay);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin-right: 8px;
}
.callout strong { font-weight: 700; }
.accent { color: var(--accent-clay); font-weight: 700; }

/* ——— Puces / pastilles ——— */
.certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cert {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  border: 1px solid var(--neutral-2); border-radius: 6px; padding: 8px 14px; background: #fff;
}

/* ——— Pied de page ——— */
.foot { border-top: 1px solid var(--neutral-2); padding: 36px 0 64px; font-size: 14px; color: var(--ink-muted); }
.foot a { color: var(--accent-clay); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .src { margin: 14px 0 0; line-height: 1.7; }
.back { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.back:hover { color: var(--accent-clay); }

@media (max-width: 720px) {
  .levels { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
