/* polices du site, servies localement */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/bodoni-moda-latin-ext-400-900.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/bodoni-moda-latin-400-900.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/outfit-latin-ext-400-800.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/outfit-latin-400-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --nes-bg: #F4EFF8;
  --nes-surface: #E6DAF0;
  --nes-text: #25102D;
  --nes-muted: #4E3858;
  --nes-accent: #0A6B4C;
  --nes-accent2: #5FE3B0;
  --nes-prune: #3A1247;
  --nes-clair: #F4EFF8;
  --nes-serif: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", Georgia, serif;
  --nes-sans: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --nes-largeur: 1240px;
  --nes-gouttiere: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--nes-bg);
  color: var(--nes-text);
  font-family: var(--nes-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--nes-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--nes-prune); }

:focus-visible {
  outline: 3px solid var(--nes-prune);
  outline-offset: 3px;
  background: var(--nes-accent2);
  color: var(--nes-text);
}

/* En-tête */
.nes-entete {
  background: var(--nes-bg);
  border-bottom: 6px solid var(--nes-prune);
}
.nes-entete-interieur {
  max-width: var(--nes-largeur);
  margin: 0 auto;
  padding: 1rem var(--nes-gouttiere);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.nes-marque {
  font-family: var(--nes-serif);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--nes-prune);
  text-decoration: none;
}
.nes-marque:hover { color: var(--nes-accent); }
.nes-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.nes-nav a {
  color: var(--nes-text);
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nes-nav a:hover { border-bottom-color: var(--nes-accent); color: var(--nes-text); }

/* Conteneurs */
.nes-conteneur {
  max-width: var(--nes-largeur);
  margin: 0 auto;
  padding: 0 var(--nes-gouttiere);
}

/* Premier écran */
.nes-une { padding-top: clamp(1.5rem, 4vw, 3rem); }
.nes-titre-geant {
  font-family: var(--nes-serif);
  font-weight: 900;
  font-size: clamp(3rem, 13vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(1.25rem, 3vw, 2.5rem);
  color: var(--nes-prune);
  overflow-wrap: break-word;
}
.nes-une-grille {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: stretch;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}
.nes-chapo {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  margin: 0;
  max-width: 40rem;
}
.nes-chiffre-une {
  background: var(--nes-accent2);
  color: var(--nes-text);
  border-left: 8px solid var(--nes-prune);
  padding: 1rem 1.25rem;
  margin: 0;
}
.nes-chiffre-une strong {
  display: block;
  font-family: var(--nes-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
}
.nes-chiffre-une span { display: block; margin-top: 0.4rem; }
.nes-bandeau {
  height: clamp(120px, 16vw, 230px);
  overflow: hidden;
  border-top: 6px solid var(--nes-prune);
  border-bottom: 6px solid var(--nes-prune);
  background: var(--nes-accent);
}
.nes-bandeau svg { display: block; width: 100%; height: 100%; max-width: none; }

/* Sections de texte */
.nes-corps { padding-bottom: 3rem; }
.nes-bloc { padding-top: clamp(2rem, 5vw, 3.5rem); }
.nes-bloc > h2,
.nes-bloc-titre {
  font-family: var(--nes-serif);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  padding-top: 0.9rem;
  border-top: 6px solid var(--nes-prune);
  color: var(--nes-prune);
  max-width: 48rem;
  text-wrap: balance;
}
.nes-bloc h3 {
  font-family: var(--nes-serif);
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem;
}
.nes-colonnes p { margin: 0 0 1rem; }
.nes-colonnes ul, .nes-colonnes ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.nes-colonnes li { margin-bottom: 0.4rem; }
.nes-colonnes h3 { break-after: avoid; }

@media (min-width: 900px) {
  .nes-une-grille { grid-template-columns: 1.4fr 1fr; }
  .nes-colonnes {
    column-count: 2;
    column-gap: 3rem;
    column-rule: 1px solid var(--nes-surface);
  }
  .nes-colonnes p { text-align: left; orphans: 3; widows: 3; }
}

/* Encadré de calcul */
.nes-calcul {
  background: var(--nes-accent2);
  color: var(--nes-text);
  border-left: 8px solid var(--nes-prune);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.25rem;
  break-inside: avoid;
}
.nes-calcul-titre {
  font-family: var(--nes-serif);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.nes-calcul p { margin: 0 0 0.6rem; }
.nes-calcul ul { margin: 0 0 0.6rem; padding-left: 1.1rem; }
.nes-calcul li { margin-bottom: 0.35rem; }
.nes-calcul .nes-formule {
  font-family: var(--nes-serif);
  font-weight: 700;
  font-size: 1.15rem;
}

/* Encadré neutre */
.nes-encadre {
  background: var(--nes-surface);
  border-left: 8px solid var(--nes-accent);
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
  break-inside: avoid;
}
.nes-encadre p:last-child { margin-bottom: 0; }

/* Tableau */
.nes-tableau-conteneur {
  overflow-x: auto;
  margin: 1.5rem 0 0;
  border-top: 6px solid var(--nes-prune);
  border-bottom: 2px solid var(--nes-prune);
  background: var(--nes-bg);
}
.nes-tableau {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 1rem;
}
.nes-tableau caption {
  text-align: left;
  font-weight: 600;
  color: var(--nes-muted);
  padding: 0.75rem 0.75rem 0.5rem;
}
.nes-tableau th, .nes-tableau td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--nes-surface);
}
.nes-tableau thead th {
  background: var(--nes-prune);
  color: var(--nes-clair);
  font-weight: 600;
}
.nes-tableau tbody th { font-family: var(--nes-serif); font-weight: 800; }
.nes-tableau td strong { color: var(--nes-accent); }

/* Figure */
.nes-figure { margin: 1.5rem 0; }
.nes-figure img { display: block; width: 100%; height: auto; }
.nes-figure figcaption {
  background: var(--nes-surface);
  color: var(--nes-muted);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border-left: 6px solid var(--nes-prune);
}

/* Réponses */
.nes-reponses { padding-bottom: 2rem; }
.nes-reponses-liste { display: grid; gap: 0; max-width: 60rem; }
.nes-item { padding: 1.1rem 0; border-top: 2px solid var(--nes-prune); }
.nes-item:last-child { border-bottom: 2px solid var(--nes-prune); }
.nes-question {
  font-family: var(--nes-serif);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: var(--nes-prune);
}
.nes-reponse { margin: 0; }

/* Page légale */
.nes-legal { max-width: 46rem; padding: 2.5rem 0 3rem; }
.nes-legal h1 {
  font-family: var(--nes-serif);
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1;
  margin: 0 0 1.5rem;
  color: var(--nes-prune);
}
.nes-legal h2 {
  font-family: var(--nes-serif);
  font-size: 1.4rem;
  margin: 1.75rem 0 0.5rem;
  padding-top: 0.6rem;
  border-top: 4px solid var(--nes-prune);
}

/* Pied de page */
.nes-pied {
  background: var(--nes-prune);
  color: var(--nes-clair);
  border-top: 6px solid var(--nes-accent2);
  margin-top: 2rem;
}
.nes-pied-interieur {
  max-width: var(--nes-largeur);
  margin: 0 auto;
  padding: 1.75rem var(--nes-gouttiere);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.nes-pied-nom { font-family: var(--nes-serif); font-weight: 800; font-size: 1.3rem; }
.nes-pied a { color: var(--nes-accent2); }
.nes-pied a:hover { color: var(--nes-clair); }
.nes-pied :focus-visible { outline-color: var(--nes-accent2); background: var(--nes-prune); color: var(--nes-clair); }
.nes-credits { margin: 0; font-size: 0.9rem; color: var(--nes-surface); }

@media (max-width: 599px) {
  body { font-size: 1rem; }
  .nes-entete-interieur { flex-direction: column; align-items: flex-start; }
}

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