/* ZeSurvie — design system « Affiche »
 *
 * Parti pris : l'affiche. Le site reprend le langage des couvertures des vidéos : fond nuit,
 * grands titres condensés en capitales, second vers sur bandeau jaune.
 * Les outils sont traités comme une appli soignée : cartes à coins arrondis, profondeur
 * légère, états en couleur toujours doublés d'une icône et d'un libellé.
 * Le jaune porte l'action principale. Vert = prêt, orange = à compléter, bleu = eau.
 * Les étiquettes en pointillés signalent ce qui est provisoire, et rien d'autre.
 * Les quantités se comptent en éléments, jamais en score ni en pourcentage.
 *
 * Mobile d'abord. Aucun style en ligne (CSP stricte).
 */

/* --- Polices auto-hébergées (SIL OFL 1.1, voir static/fonts/) --- */

@font-face {
  font-family: "ZS Poster";
  src: url("../fonts/zs-poster-400.feb1c358ac45.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZS Text";
  src: url("../fonts/zs-text-400.a3f932922d62.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZS Text";
  src: url("../fonts/zs-text-700.896df58bfe47.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Polices de repli calées sur les proportions des polices du site :
   le texte ne saute pas quand la police arrive (CLS). */
/* Repli des titres : une police étroite et grasse déjà sur l'appareil (Windows et macOS,
   iOS, Android), réduite à la largeur d'Anton pour que les lignes coupent au même endroit. */
@font-face {
  font-family: "ZS Poster Fallback";
  src: local("Impact"), local("HelveticaNeue-CondensedBold"), local("RobotoCondensed-Bold"),
    local("Arial Narrow Bold"), local("Arial Narrow");
  size-adjust: 80%;
  ascent-override: 147%;
  descent-override: 41%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "ZS Text Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* --- Jetons --- */

:root {
  --night: #0b0f1a;
  --night-deep: #070a12;
  --surface: #151b2b;
  --surface-raised: #1e263b;
  --line: #2b3552;
  --line-strong: #6474a6;
  --paper: #f4f3ee;
  --muted: #a9b1c6;
  --yellow: #ffd13b;
  --yellow-bright: #ffdf6e;
  --ink: #0b0f1a;
  --ready: #3ecf8e;
  --ready-tint: #11271f;
  --todo: #ff9447;
  --todo-tint: #2b1d13;
  --water: #2196f3;
  --water-light: #9ad4ff;
  --error: #ff9c9c;
  --white: #fffdf5;

  --font-display: "ZS Poster", "ZS Poster Fallback", Impact, "Arial Narrow", sans-serif;
  --font-text: "ZS Text", "ZS Text Fallback", Arial, Helvetica, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 1.875rem);
  --step-3: clamp(1.9rem, 1.2rem + 3.2vw, 3rem);
  --step-4: clamp(2.2rem, 1.2rem + 5vw, 4.25rem);
  --step-5: clamp(2.7rem, 12.2vw, 5.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --gutter: clamp(1rem, 4.5vw, 2rem);
  --radius-control: 0.8rem;
  --radius-card: 1.25rem;
  --measure: 38rem;
  --wrap: 70rem;

  --shadow-card: inset 0 1px 0 rgb(255 255 255 / 5%), 0 18px 36px -24px rgb(0 0 0 / 90%);
  --focus: var(--yellow);
}

/* --- Base --- */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-5);
  background: var(--night);
}

body {
  margin: 0;
  /* Une lueur discrète en haut de page donne un peu de profondeur au fond nuit. */
  background: radial-gradient(70rem 34rem at 18% -6rem, #19233f 0%, transparent 72%) no-repeat
    var(--night);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  line-height: 1.04;
}

/* Sur deux lignes, un accent de capitale ne doit pas toucher la ligne du dessus. */
h2 {
  font-size: var(--step-3);
  line-height: 1.12;
}

h3,
h4 {
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: var(--step-1);
}

h4 {
  font-size: var(--step-0);
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 3px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

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

strong {
  font-weight: 700;
}

code {
  padding: 0.05em 0.35em;
  background: var(--surface-raised);
  border-radius: 0.35rem;
  font-size: 0.9em;
}

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -6rem;
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius-control);
}

.skip-link:focus {
  top: var(--space-3);
}

/* Icônes : tracé dans la couleur du texte (voir apps/core/icons_data.py). */
.icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

/* --- Mise en page --- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

/* Première section sous l'en-tête de page : elle le suit de près. */
.section--first {
  padding-top: var(--space-4);
}

.section--band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: var(--measure);
  margin-bottom: var(--space-5);
}

.section__head p {
  margin-top: var(--space-3);
  color: var(--muted);
}

.section__more {
  margin-top: var(--space-5);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2 {
  margin-top: var(--space-7);
  font-size: var(--step-2);
}

.prose h3 {
  margin-top: var(--space-6);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: var(--space-2);
}

.prose li::marker {
  color: var(--yellow);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 36rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: var(--step--1);
}

/* --- Titre d'affiche : un vers en clair, le second sur bandeau jaune --- */

.title__line {
  display: block;
}

.title__mark {
  display: inline-block;
  margin-top: 0.14em;
  padding: 0.04em 0.2em 0.08em;
  background: var(--yellow);
  color: var(--ink);
  /* Si le bandeau passe sur deux lignes, les accents ne touchent pas la ligne du dessus. */
  line-height: 1.12;
}

.title--hero {
  font-size: var(--step-5);
  line-height: 1.02;
  text-wrap: wrap;
}

/* --- Bandeau d'environnement (préproduction) --- */

.env-banner {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
  border-bottom: 1px dashed var(--line-strong);
}

.env-banner p {
  padding-block: var(--space-2);
}

/* --- En-tête --- */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
}

/* Sur un petit écran, le visage de Raph tient lieu de logo : le nom reste lu par les
   lecteurs d'écran. */
.brand__name {
  display: none;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__name--always {
  display: inline;
}

@media (min-width: 31rem) {
  .brand__name {
    display: inline;
  }
}

.site-nav ul {
  display: flex;
  gap: 0.1rem;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}

@media (hover: hover) {
  .site-nav a:hover {
    background: var(--surface-raised);
  }
}

.site-nav a[aria-current="page"] {
  color: var(--yellow);
}

@media (min-width: 31rem) {
  .site-nav ul {
    gap: var(--space-2);
  }

  .site-nav a {
    padding-inline: 0.8rem;
  }
}

/* Très petits écrans (320 px) : le menu se resserre pour tenir sur une ligne. */
@media (max-width: 22.4rem) {
  .brand img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .site-nav a {
    padding-inline: 0.3rem;
    font-size: 0.8125rem;
  }
}

/* --- Boutons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.5rem 1.4rem 0.55rem;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.035em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--radius-control);
  box-shadow: 0 10px 22px -12px rgb(255 209 59 / 60%);
}

@media (hover: hover) {
  .btn:hover {
    background: var(--yellow-bright);
  }
}

.btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn--quiet {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}

@media (hover: hover) {
  .btn--quiet:hover {
    background: var(--surface-raised);
    box-shadow: inset 0 0 0 2px var(--paper);
  }
}

.btn--quiet:active {
  box-shadow: inset 0 0 0 2px var(--paper);
}

.btn[aria-disabled="true"],
.btn:disabled {
  background: var(--surface-raised);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

/* --- Accueil --- */

.hero {
  padding-block: var(--space-3) var(--space-5);
}

.hero__grid {
  display: grid;
}

/* Raph est détouré : il se pose directement sur le fond nuit, sans cadre. Le bas du buste
   s'efface dans le fond, et une lueur jaune, derrière lui, rappelle le rond du logo. Sa bulle
   est à côté de lui : elle mord sur la marge transparente de son portrait, jamais sur lui.
   Sur téléphone, ils viennent en premier. */
.hero__raph {
  position: relative;
  isolation: isolate;
  order: -1;
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  align-items: center;
}

.hero__raph::before {
  content: "";
  position: absolute;
  inset: 2% 46% 12% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(255 209 59 / 26%), transparent);
}

.hero__portrait {
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 64%, transparent 92%);
}

.hero__raph .raph__bubble {
  z-index: 1;
  margin-bottom: 14%;
}

/* Le titre passe au-dessus du portrait, dont le bas s'efface derrière lui. */
.hero__text {
  position: relative;
  z-index: 1;
  margin-top: -1.5rem;
}

.hero .lead {
  margin-top: var(--space-4);
}

.hero__actions {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.hero__actions .btn {
  width: 100%;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration-color: var(--yellow);
}

.hero__link .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--yellow);
}

@media (min-width: 36rem) {
  .hero__raph {
    grid-template-columns: minmax(0, 14rem) minmax(0, 18rem);
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-5);
  }

  .hero__actions .btn {
    width: auto;
  }
}

@media (min-width: 60rem) {
  .hero {
    padding-block: var(--space-5) var(--space-6);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-6);
  }

  .hero__raph {
    order: 0;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .hero__portrait {
    width: 122%;
  }

  .hero__text {
    margin-top: 0;
  }

  .title--hero {
    font-size: clamp(3.4rem, 5.6vw, 4.6rem);
  }

  .hero .lead {
    margin-top: var(--space-5);
  }
}

/* --- Bulle de Raph : une par page, à côté de son portrait détouré --- */

.raph__bubble {
  position: relative;
  margin: 0;
  padding: 0.75rem 0.95rem 0.8rem;
  background: var(--surface-raised);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.42;
  border: 1px solid var(--line-strong);
  border-radius: 1.1rem;
  box-shadow: 0 18px 32px -20px rgb(0 0 0 / 90%);
}

/* La pointe de la bulle, tournée vers Raph. */
.raph__bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.42rem;
  width: 0.8rem;
  height: 0.8rem;
  background: inherit;
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  border-bottom-left-radius: 0.2rem;
  transform: translateY(-50%) rotate(45deg);
}

.raph {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  max-width: 27rem;
  margin: var(--space-4) 0 0;
}

.raph__portrait {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
}

@media (min-width: 54rem) {
  /* Dans l'en-tête d'une page d'outil, Raph se place à droite de l'introduction ; le
     titre garde toute la largeur. */
  .page-head--raph {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    column-gap: var(--space-6);
  }

  .page-head--raph > * {
    grid-column: 1 / -1;
  }

  .page-head--raph > .lead {
    grid-column: 1;
  }

  .page-head--raph > .raph {
    grid-column: 2;
    align-self: center;
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .raph__bubble {
    font-size: 1rem;
  }
}

/* --- Preuve par l'audience : chiffres relevés dans l'administration --- */

.proof {
  padding-block: var(--space-2) var(--space-4);
}

.proof__text {
  max-width: var(--measure);
  padding-left: var(--space-3);
  line-height: 1.5;
  border-left: 3px solid var(--yellow);
}

.proof__text strong {
  color: var(--yellow);
  white-space: nowrap;
}

.proof__date {
  margin-top: var(--space-2);
  padding-left: calc(var(--space-3) + 3px);
  color: var(--muted);
  font-size: var(--step--1);
}

/* --- Cartes des outils --- */

.tool-cards {
  display: grid;
  gap: var(--space-4);
  list-style: none;
}

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon summary"
    "icon action";
  gap: 0.3rem var(--space-4);
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.tool-card__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 1rem;
}

.tool-card[data-tool="eau"] .tool-card__icon {
  background: var(--water);
}

.tool-card__icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.tool-card__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}

.tool-card__name a {
  text-decoration: none;
}

/* Toute la carte est cliquable. */
.tool-card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tool-card__name a:focus-visible {
  outline: none;
}

.tool-card:has(a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.tool-card__summary {
  grid-area: summary;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Le bouton de la carte : toute la carte mène à l'outil, il le dit. */
.tool-card__action {
  grid-area: action;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.95rem 0.35rem;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.15;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  border-radius: 0.7rem;
}

.tool-card__action .icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (hover: hover) {
  .tool-card:has(a:hover) {
    border-color: var(--yellow);
  }

  .tool-card:has(a:hover) .tool-card__action {
    background: var(--yellow-bright);
  }

  .tool-card:has(a:hover) .tool-card__action .icon {
    transform: translateX(3px);
  }
}

/* Outil à venir : en retrait, sans relief. */
.tool-card--soon {
  background: none;
  border-style: dashed;
  border-color: var(--line-strong);
  box-shadow: none;
}

.tool-card--soon .tool-card__icon {
  background: var(--surface-raised);
  color: var(--muted);
}

.tool-card--soon .tool-card__name {
  color: var(--muted);
}

.tool-card--soon .tool-card__action {
  min-height: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

@media (min-width: 48rem) {
  .tool-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .tool-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "icon"
      "name"
      "summary"
      "action";
    grid-template-rows: auto auto 1fr auto;
    gap: var(--space-2);
    padding: var(--space-5);
  }

  .tool-card__name {
    margin-top: var(--space-3);
    font-size: 1.875rem;
  }

  .tool-card__action {
    margin-top: var(--space-4);
  }
}

/* --- Couvertures des vidéos --- */

.covers {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(44%, 12.5rem);
  gap: 0.9rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  list-style: none;
}

.covers li {
  scroll-snap-align: start;
}

.covers:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 1rem;
}

.covers img,
.placeholder--cover {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.covers__title {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.covers__views {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.35;
}

.covers__views strong {
  color: var(--yellow);
  white-space: nowrap;
}

/* --- Notre façon de faire : quatre lignes, une icône chacune --- */

.values {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}

.values li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
}

.values .icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  background: var(--surface-raised);
  color: var(--yellow);
  border-radius: 0.85rem;
}

.values p {
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 48rem) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-6);
  }
}

@media (min-width: 54rem) {
  .covers {
    grid-auto-columns: minmax(0, 1fr);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

/* --- Emplacement d'un visuel à fournir --- */

.placeholder {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: var(--space-4);
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-card);
}

.placeholder p {
  max-width: 16rem;
  font-size: var(--step--1);
  font-weight: 700;
}

.placeholder--cover,
.placeholder--thumb {
  min-height: 0;
  border-style: dashed;
  border-color: var(--line-strong);
}

/* --- Vignettes des vidéos phares (page partenaires) --- */

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: var(--measure);
  margin-bottom: var(--space-5);
  list-style: none;
}

.thumbs img,
.placeholder--thumb {
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0.6rem;
}

.placeholder--thumb {
  padding: var(--space-1);
}

.placeholder--thumb p {
  font-size: 0.6875rem;
  line-height: 1.25;
}

/* --- Listes de liens en lignes --- */

.rows {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}

.rows > li {
  position: relative;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.rows > li:has(h3 a) {
  padding-right: 3rem;
}

.rows h3 a {
  text-decoration: none;
}

.rows h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Chevron : la ligne entière mène à la page. */
.rows > li:has(h3 a)::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 1.5rem;
  width: 0.6rem;
  height: 0.6rem;
  border-top: 2.5px solid var(--yellow);
  border-right: 2.5px solid var(--yellow);
  transform: rotate(45deg);
}

@media (hover: hover) {
  .rows > li:has(h3 a:hover) {
    border-color: var(--yellow);
  }
}

.rows > li:has(h3 a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.rows h3 a:focus-visible {
  outline: none;
}

.rows p {
  max-width: var(--measure);
}

.rows h3 + p {
  margin-top: var(--space-2);
  color: var(--muted);
}

.rows .tags,
.rows > li > .tag {
  margin-top: var(--space-3);
}

@media (min-width: 54rem) {
  .rows--columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

/* --- Étiquettes --- */

.tag {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--surface-raised);
  border: 1.5px solid var(--line-strong);
  border-radius: 0.6rem;
  vertical-align: middle;
}

/* Provisoire : démonstration, à valider, à venir. */
.tag--provisional {
  background: none;
  border-style: dashed;
  border-color: currentcolor;
}

.tag--solid {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

a.tag {
  text-decoration: none;
}

@media (hover: hover) {
  a.tag:hover {
    border-color: var(--yellow);
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

/* --- Bandeau de brouillon --- */

.draft-note {
  max-width: var(--measure);
  padding: var(--space-4);
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: 0.9rem;
}

/* --- Mention de source, mention commerciale --- */

.source,
.disclosure-note {
  max-width: var(--measure);
  padding-left: var(--space-3);
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
  border-left: 3px solid var(--yellow);
}

.disclosure-note {
  margin-top: var(--space-5);
  border-left-color: var(--line-strong);
}

/* --- Formulaires --- */

.form {
  display: grid;
  gap: var(--space-5);
  max-width: 30rem;
}

.field label,
.field legend {
  display: block;
  font-weight: 700;
}

.field .hint {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--step--1);
}

.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field textarea,
.field select {
  display: block;
  width: 100%;
  margin-top: var(--space-2);
  padding: 0.7rem 0.9rem;
  background: var(--night-deep);
  color: var(--paper);
  font: inherit;
  font-size: 1.125rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field--error input,
.field--error textarea {
  border-color: var(--error);
  border-width: 2.5px;
}

.field .error {
  display: block;
  margin-top: var(--space-2);
  color: var(--error);
  font-weight: 700;
}

.error-summary {
  max-width: 34rem;
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 2px solid var(--error);
  border-radius: 1rem;
}

.error-summary h2 {
  font-family: var(--font-text);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.error-summary ul {
  margin-top: var(--space-2);
  padding-left: 1.25rem;
}

.error-summary p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--step--1);
}

/* --- Calculateur d'eau --- */

.calc {
  display: grid;
  gap: var(--space-5);
}

.calc__controls,
.calc__result {
  display: grid;
  gap: var(--space-4);
}

.control {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.control__label {
  display: block;
  font-weight: 700;
}

.control__hint {
  color: var(--muted);
  font-size: var(--step--1);
}

.control__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block: 0.7rem 0.6rem;
}

.control__value {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 12vw, 3.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.unit {
  font-size: 0.5em;
}

.step {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--surface-raised);
  border: 0;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 3px 0 rgb(0 0 0 / 35%);
}

@media (hover: hover) {
  .step:hover {
    box-shadow: inset 0 0 0 2px var(--yellow), 0 3px 0 rgb(0 0 0 / 35%);
  }
}

.step:active {
  transform: translateY(2px);
  box-shadow: inset 0 0 0 2px var(--yellow);
}

.step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transform: none;
}

/* Curseur : la piste se remplit jusqu'à la poignée (--ratio, de 0 à 1, est réglé par le
   script). Jaune pour le foyer, bleu pour l'eau. */
.slider {
  --ratio: 0;
  --thumb: 2.25rem;
  --track: 0.7rem;
  --fill: var(--yellow);
  --pos: calc(var(--thumb) / 2 + var(--ratio) * (100% - var(--thumb)));

  display: block;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y;
}

.control--water .slider {
  --fill: var(--water);
}

.slider::-webkit-slider-runnable-track {
  height: var(--track, 0.7rem);
  background: linear-gradient(
    to right,
    var(--fill, #ffd13b) var(--pos, 0%),
    var(--line-strong, #6474a6) var(--pos, 0%)
  );
  border-radius: 999px;
}

.slider::-moz-range-track {
  height: var(--track, 0.7rem);
  background: linear-gradient(
    to right,
    var(--fill, #ffd13b) var(--pos, 0%),
    var(--line-strong, #6474a6) var(--pos, 0%)
  );
  border-radius: 999px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb, 2.25rem);
  height: var(--thumb, 2.25rem);
  margin-top: calc((var(--track, 0.7rem) - var(--thumb, 2.25rem)) / 2);
  background: var(--paper, #f4f3ee);
  border: 0.5rem solid var(--fill, #ffd13b);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgb(0 0 0 / 50%);
}

.slider::-moz-range-thumb {
  width: var(--thumb, 2.25rem);
  height: var(--thumb, 2.25rem);
  background: var(--paper, #f4f3ee);
  border: 0.5rem solid var(--fill, #ffd13b);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgb(0 0 0 / 50%);
}

.slider:focus-visible {
  outline: none;
}

.slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--focus);
}

.slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--focus);
}

.scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8125rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.chip {
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  background: none;
  font-size: 0.9375rem;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.chip:active {
  box-shadow: inset 0 0 0 2px var(--water);
}

@media (hover: hover) {
  .chip:hover {
    box-shadow: inset 0 0 0 2px var(--water);
  }
}

.calc__note {
  color: var(--muted);
  font-size: var(--step--1);
}

/* Résultat : l'aplat jaune, le chiffre en très grand. Vert quand le repère est atteint. */
.result {
  --focus: var(--ink);

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4) 1.25rem;
  padding: var(--space-5);
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius-card);
  box-shadow: 0 26px 48px -30px rgb(255 209 59 / 70%);
}

.result[data-state="ok"] {
  background: var(--ready);
  box-shadow: 0 26px 48px -30px rgb(62 207 142 / 70%);
}

.gauge {
  width: clamp(6rem, 26vw, 8.5rem);
}

.gauge svg {
  display: block;
  width: 100%;
}

.gauge__cap {
  fill: var(--ink);
}

.gauge__body {
  fill: var(--white);
}

.gauge__fill {
  fill: var(--water);
}

.gauge__surface {
  fill: var(--water-light);
}

.gauge__handle,
.gauge__outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gauge__marks {
  fill: none;
  stroke: rgb(11 15 26 / 30%);
  stroke-width: 3;
  stroke-linecap: round;
}

/* Le niveau vient du serveur (attribut transform) puis du script (--level, de 0 à 1). */
.calc[data-live] .gauge__water {
  transform: translateY(calc((1 - var(--level, 0)) * 116px));
}

.gauge__text {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  font-weight: 700;
  text-align: center;
}

.result__label {
  font-weight: 700;
}

.result__value {
  font-family: var(--font-display);
  font-size: clamp(4rem, 20vw, 6.25rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Repère atteint : le gros chiffre devient une phrase, « le repère officiel ». */
.result[data-state="ok"] .result__value {
  font-size: clamp(2.1rem, 10vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: normal;
}

.result__detail {
  grid-column: 1 / -1;
}

/* Conseil affiché avec un résultat (règle en base, « à valider » tant qu'elle n'est pas
   validée). */
.tip {
  padding: 0.9rem 1.1rem;
  background: var(--ready-tint);
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid var(--ready);
  border-radius: 0.95rem;
}

.tip .tag {
  margin-left: 0.35rem;
  vertical-align: middle;
}

.tip__source {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 400;
}

/* Phrase d'introduction de la sélection de produits. */
.selection {
  max-width: var(--measure);
  margin-bottom: var(--space-4);
  color: var(--muted);
}

/* Jours tenus : une paire de demi-journées par jour du repère. */
.days {
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.days__text {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
}

.days__bar {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0.6rem;
  margin-top: 0.85rem;
  list-style: none;
}

.days__cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.days__cells span {
  height: 0.9rem;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.days__cells span:first-child {
  border-radius: 999px 0 0 999px;
}

.days__cells span:last-child {
  border-radius: 0 999px 999px 0;
}

.days__cells span[data-on] {
  background: var(--water);
  box-shadow: none;
}

.days__name {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.missing {
  font-size: var(--step-1);
  font-weight: 700;
}

.section__head .missing {
  color: var(--paper);
}

@media (min-width: 58rem) {
  .calc {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
    gap: var(--space-6);
  }

  .result {
    padding: var(--space-6);
    gap: var(--space-5) var(--space-6);
  }

  .gauge {
    width: 10rem;
  }
}

/* --- Volets repliables --- */

.folds {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.fold {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.fold summary,
.item__options summary {
  cursor: pointer;
  list-style: none;
}

.fold summary::-webkit-details-marker,
.item__options summary::-webkit-details-marker {
  display: none;
}

.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 1rem;
}

.fold summary .icon,
.item__options summary .icon {
  color: var(--yellow);
}

.fold[open] summary .icon,
.item__options[open] summary .icon {
  transform: rotate(180deg);
}

.fold__hint {
  display: block;
  color: var(--muted);
  font-size: var(--step--1);
}

.fold__body {
  padding: 0 1.1rem 1.1rem;
}

.fold__body > * + * {
  margin-top: var(--space-4);
}

.fold__body > p:first-child {
  color: var(--muted);
}

@media (min-width: 58rem) {
  .folds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* --- Suite du parcours (vers le kit 72 h) --- */

.next {
  display: grid;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.next__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 1rem;
}

.next h2 {
  font-size: var(--step-2);
}

.next p {
  margin-top: var(--space-2);
  color: var(--muted);
}

.next .btn {
  justify-self: start;
}

@media (min-width: 48rem) {
  .next {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-6);
  }
}

/* --- Listes de contenus sourcés (priorités, à prévoir en plus) --- */

.points {
  max-width: var(--measure);
  list-style: none;
  counter-reset: point;
}

.points > li {
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
}

.points--numbered > li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: var(--space-3);
  counter-increment: point;
}

.points--numbered > li::before {
  content: counter(point);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
}

.points h3 {
  font-size: var(--step-0);
}

.points p {
  margin-top: var(--space-1);
}

.points h3 + p {
  color: var(--muted);
}

.points .tag {
  margin-top: var(--space-2);
}

.fold__title {
  font-size: var(--step-0);
}

/* --- Checklist du kit 72 h --- */

.kit {
  display: grid;
  gap: var(--space-5);
}

/* Progression : collée en haut de l'écran sur téléphone, en colonne sur grand écran. */
.kit__progress {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.6rem var(--gutter);
  background: var(--night);
  border-bottom: 1px solid var(--line);
}

/* La barre collante ne recouvre jamais l'élément atteint au clavier ou par un lien. */
html:has(.kit__progress) {
  scroll-padding-top: 6.5rem;
}

.ring {
  position: relative;
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
}

.ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring__track,
.ring__arc {
  fill: none;
  stroke-width: 11;
}

.ring__track {
  stroke: var(--line);
}

/* Deux arcs superposés qui partent du haut : l'orange couvre « prêts + à compléter »,
   le vert, par-dessus, les seuls « prêts ». Longueurs réglées par le script. */
.ring__arc {
  stroke-linecap: round;
}

.ring__arc--todo {
  stroke: var(--todo);
  stroke-dasharray: var(--done-arc, 0) 400;
}

.ring__arc--ready {
  stroke: var(--ready);
  stroke-dasharray: var(--ready-arc, 0) 400;
}

.ring[data-ready="0"] .ring__arc--ready,
.ring[data-todo="0"] .ring__arc--todo {
  opacity: 0;
}

.ring__count {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  line-height: 1;
  text-align: center;
}

.ring__count strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}

.ring__count span {
  color: var(--muted);
  font-size: 0.6875rem;
}

.kit__headline {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.kit__detail {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.35;
}

.group {
  margin-top: var(--space-5);
}

.group__title {
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-size: 0.9375rem;
}

.items {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}

/* Élément : neutre tant que rien n'est choisi, vert « prêt », orange « à compléter ». */
.item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem 0.9rem;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.item__icon,
.recap__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--surface-raised);
  border-radius: 0.85rem;
}

.item__label {
  font-weight: 700;
  line-height: 1.35;
}

.item__choices {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding-inline: var(--space-4);
  background: none;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
  border-radius: var(--radius-control);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.choice .icon {
  width: 1.15rem;
  height: 1.15rem;
  opacity: 0.6;
}

@media (hover: hover) {
  .choice:hover {
    box-shadow: inset 0 0 0 2px var(--paper);
  }
}

.choice[aria-pressed="true"] {
  color: var(--ink);
  box-shadow: none;
}

.choice[aria-pressed="true"] .icon {
  opacity: 1;
}

.choice--ready[aria-pressed="true"] {
  background: var(--ready);
}

.choice--todo[aria-pressed="true"] {
  background: var(--todo);
}

.item[data-state="ready"] {
  background: var(--ready-tint);
  border-color: var(--ready);
}

.item[data-state="ready"] .item__icon {
  background: var(--ready);
  color: var(--ink);
}

.item[data-state="todo"] {
  background: var(--todo-tint);
  border-color: var(--todo);
}

.item[data-state="todo"] .item__icon,
.recap__icon {
  background: var(--todo);
  color: var(--ink);
}

/* « Voir des options » : seulement sous un élément marqué « à compléter ». */
.item__options {
  display: none;
  grid-column: 1 / -1;
}

.item[data-state="todo"] .item__options {
  display: block;
}

.item__options summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--todo);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  border-radius: 0.5rem;
}

.item__options summary .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--todo);
}

.options {
  display: grid;
  gap: var(--space-1);
  list-style: none;
}

.options a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

/* Récapitulatif de ce qui manque. */
.recap {
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.recap h2 {
  font-size: var(--step-2);
}

.recap__text {
  margin-top: var(--space-3);
  color: var(--muted);
}

.recap__list {
  display: grid;
  gap: 0.6rem;
  margin-top: var(--space-4);
  list-style: none;
}

.recap__list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--todo-tint);
  border: 1px solid var(--todo);
  border-radius: 0.95rem;
}

.recap__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
}

.recap__icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.recap__label {
  font-weight: 700;
  line-height: 1.35;
}

.recap .actions,
.recap .tip,
.recap .source {
  margin-top: var(--space-5);
}

.recap__privacy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.5rem;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--step--1);
}

/* Bouton présenté comme un lien, au fil d'une phrase. */
.link-button {
  min-height: 2.75rem;
  padding: 0;
  background: none;
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
  border: 0;
  cursor: pointer;
}

@media (min-width: 46rem) {
  .item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .item__choices {
    grid-column: auto;
    grid-template-columns: repeat(2, auto);
  }
}

@media (min-width: 62rem) {
  .kit {
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
    gap: var(--space-7);
  }

  .kit__progress {
    order: 2;
    top: var(--space-5);
    flex-direction: column;
    gap: var(--space-4);
    margin-inline: 0;
    padding: var(--space-6) var(--space-5);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
  }

  html:has(.kit__progress) {
    scroll-padding-top: var(--space-5);
  }

  .ring {
    width: 11rem;
    height: 11rem;
  }

  .ring__count strong {
    font-size: 4.25rem;
  }

  .ring__count span {
    font-size: 1rem;
  }

  .kit__headline {
    font-size: var(--step-0);
  }

  .group:first-of-type {
    margin-top: var(--space-4);
  }
}

/* --- Fiches du catalogue --- */

.spec {
  display: grid;
  gap: 0;
  max-width: var(--measure);
}

.spec > div {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.spec dt {
  color: var(--yellow);
  font-weight: 700;
}

.spec dd {
  margin-top: var(--space-1);
}

.spec dd ul {
  padding-left: 1.25rem;
}

.offer {
  max-width: var(--measure);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.offer + .offer {
  margin-top: var(--space-4);
}

.offer .disclosure {
  margin-top: var(--space-3);
  font-size: var(--step--1);
}

/* --- Chiffres (page partenaires) --- */

.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.figures > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--space-1);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.figures dt {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.35;
}

.figures dd {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

@media (min-width: 48rem) {
  .figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

.bars {
  display: grid;
  gap: var(--space-3);
  max-width: var(--measure);
  list-style: none;
}

.bars li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: var(--space-3);
}

.bars progress {
  display: block;
  width: 100%;
  height: 0.9rem;
  -webkit-appearance: none;
  appearance: none;
  background: var(--line);
  border: 0;
  border-radius: 999px;
  overflow: hidden;
}

.bars progress::-webkit-progress-bar {
  background: var(--line);
}

.bars progress::-webkit-progress-value {
  background: var(--yellow);
  border-radius: 999px;
}

.bars progress::-moz-progress-bar {
  background: var(--yellow);
  border-radius: 999px;
}

.bars .bars__value {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.ranked {
  max-width: var(--measure);
  list-style: none;
}

.ranked li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
}

.ranked strong {
  flex: none;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

/* --- Tableaux (pages légales) --- */

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  font-size: var(--step--1);
  border-collapse: collapse;
}

th,
td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--yellow);
  border-bottom: 2px solid var(--line-strong);
}

td .tag {
  white-space: nowrap;
}

/* --- En-tête de page intérieure --- */

.page-head {
  padding-block: var(--space-5) var(--space-5);
}

.page-head .lead {
  margin-top: var(--space-4);
}

.page-head .tags,
.page-head .source,
.page-head .stack {
  margin-top: var(--space-4);
}

.breadcrumb {
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: var(--step--1);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--line-strong);
}

.breadcrumb a {
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
}

/* --- Pied de page --- */

main {
  padding-bottom: var(--space-8);
}

/* Une section en bandeau en fin de page rejoint le pied de page sans vide. */
main:has(> .section--band:last-child) {
  padding-bottom: 0;
}

.site-footer {
  padding-block: var(--space-7) var(--space-6);
  background: var(--night-deep);
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-6);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-footer h2 {
  color: var(--yellow);
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.site-footer ul {
  margin-top: var(--space-3);
  list-style: none;
}

.site-footer li + li {
  margin-top: var(--space-2);
}

.site-footer a {
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
}

.site-footer a:hover {
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
}

.site-footer__about {
  max-width: 24rem;
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--step--1);
}

.site-footer ul.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  color: var(--muted);
  font-size: var(--step--1);
  border-top: 1px solid var(--line);
}

.site-footer ul.site-footer__legal li + li {
  margin-top: 0;
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Deux blocs côte à côte sur grand écran (page partenaires). */
.duo {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 60rem) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-7) var(--space-8);
  }
}

/* --- Mouvement : court, à l'appui d'un geste. Coupé si le visiteur le demande. --- */

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .step,
  .chip,
  .choice,
  .site-nav a {
    transition: background-color 150ms ease-out, box-shadow 150ms ease-out,
      color 150ms ease-out, transform 120ms ease-out;
  }

  .tool-card,
  .rows > li,
  .item,
  .item__icon,
  .result,
  .days__cells span {
    transition: background-color 200ms ease-out, border-color 200ms ease-out,
      color 200ms ease-out, box-shadow 200ms ease-out;
  }

  .tool-card__action .icon,
  .fold summary .icon,
  .item__options summary .icon {
    transition: transform 200ms ease-out;
  }

  .gauge__water {
    transition: transform 350ms ease-out;
  }

  /* L'icône de l'élément que l'on vient de marquer rebondit une fois. */
  .item.is-changing .item__icon {
    animation: pop 260ms ease-out;
  }

  .ring__arc {
    transition: stroke-dasharray 350ms ease-out, opacity 150ms ease-out;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.82);
  }

  60% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* --- Impression : fond blanc, économe en encre --- */

.print-only {
  display: none;
}

@media print {
  :root {
    --step-0: 10.5pt;
    --paper: #000000;
    --muted: #333333;
    --line: #999999;
    --line-strong: #666666;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --yellow: #000000;
    --ready: #000000;
    --todo: #000000;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  .env-banner,
  .site-header,
  .site-footer,
  .skip-link,
  .no-print,
  .actions,
  .breadcrumb,
  .raph {
    display: none !important;
  }

  .section,
  .page-head {
    padding-block: 0.4cm;
    border: 0 !important;
  }

  .title__mark {
    padding: 0;
    background: none;
    color: #000;
  }

  .kit {
    display: block;
  }

  .kit__progress {
    position: static;
    margin: 0 0 0.4cm;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .ring {
    display: none;
  }

  .group {
    margin-top: 0.3cm;
  }

  .item,
  .item[data-state] {
    display: block;
    padding: 0.12cm 0;
    background: none;
    border: 0;
    border-radius: 0;
    break-inside: avoid;
  }

  .item__icon {
    display: none;
  }

  .item__label {
    font-weight: 400;
  }

  .item__label::before {
    content: "☐ ";
  }

  .item[data-state="ready"] .item__label::before {
    content: "☑ ";
  }

  .item[data-state="todo"] .item__label::after {
    content: " — à compléter";
    font-weight: 700;
  }

  .recap {
    margin-top: 0.5cm;
    padding: 0.3cm;
    border: 1pt solid #000;
    box-shadow: none;
  }

  .recap__list > li {
    padding: 0.08cm 0;
    background: none;
    border: 0;
  }

  .recap__icon {
    display: none;
  }

  a {
    text-decoration: none;
  }

  .print-only {
    display: block !important;
  }
}

/* Affirmations sourcées citées dans un texte ([[SEC-…]], D-054). */
.advice__source {
  font-size: var(--step--1);
  color: var(--muted);
  white-space: nowrap;
}

/* À valider : affichée en préprod seulement, marquée comme provisoire (pointillés). */
.advice--pending {
  text-decoration: underline dashed var(--line-strong);
  text-underline-offset: 0.25em;
}

/* Page « Nos sources » (/sources) : une ancre par source, citée depuis les pages. */
.sources-register {
  display: grid;
  gap: var(--space-5);
  max-width: var(--measure);
  list-style: none;
}

.sources-register li {
  padding-left: var(--space-4);
  border-left: 3px solid var(--yellow);
  scroll-margin-top: var(--space-6);
}

.sources-register__code {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sources-register__meta,
.sources-register__pages {
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--step--1);
}

/* ===== Dossiers (lot 3, D-056), repris des maquettes A9 ===== */

/* --- En-tête de dossier --- */

.dossier-head__meta {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: var(--step--1);
}

/* --- Bandeau d'urgence : du papier collé sur la nuit, comme une affiche --- */

.urgent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-card);
}

.urgent__numbers {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
}

.urgent__numbers small {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.04em;
}

.urgent__text {
  font-size: var(--step--1);
  line-height: 1.45;
}

@media (min-width: 48rem) {
  .urgent__text {
    font-size: var(--step-1);
  }
}

.urgent a {
  text-decoration-color: var(--ink);
}

/* --- Les gestes essentiels --- */

.gestes {
  display: grid;
  gap: var(--space-4);
}

.geste {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.geste h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}

.geste > p,
.geste > ul {
  margin-top: var(--space-3);
}

.geste > ul {
  padding-left: 1.1rem;
}

.geste > ul li + li {
  margin-top: var(--space-2);
}

.geste li::marker {
  color: var(--yellow);
}

.geste .source {
  margin-top: var(--space-4);
}

.geste .points {
  margin-top: var(--space-3);
}

.geste .btn {
  margin-top: var(--space-4);
}

@media (min-width: 54rem) {
  .gestes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .geste--wide {
    grid-column: 1 / -1;
  }
}

/* L'arbre du disjoncteur : la position O ou I, en lettres d'affiche. */

.switch {
  display: grid;
  margin-top: var(--space-4);
  list-style: none;
}

.switch > li {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: start;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.switch__pos {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--paper);
  background: var(--surface-raised);
  border: 2px solid var(--line-strong);
  border-radius: 1rem;
}

.switch__pos--on {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.switch__case {
  font-weight: 700;
}

.switch__then {
  margin-top: var(--space-1);
  color: var(--muted);
}

.switch__then strong {
  color: var(--paper);
}

@media (min-width: 54rem) {
  /* Quatre branches : deux par ligne. */
  .switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }
}

.alert-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  background: var(--todo-tint);
  border: 1px solid var(--todo);
  border-radius: var(--radius-control);
}

.alert-line .icon {
  color: var(--todo);
}

/* La formule de l'eau, en bleu comme dans le calculateur. */
.formula {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--water-light);
}

/* --- Corps du dossier : une colonne sur téléphone, deux sur ordinateur --- */

.dossier-grid {
  display: grid;
  /* minmax(0, …) : le carrousel des vidéos défile dans sa colonne au lieu de l'élargir. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  grid-template-areas:
    "videos"
    "articles"
    "aside"
    "sources"
    "materiel";
}

.dossier-grid > [data-area="videos"] {
  grid-area: videos;
}

.dossier-grid > [data-area="articles"] {
  grid-area: articles;
}

.dossier-grid > [data-area="aside"] {
  grid-area: aside;
}

.dossier-grid > [data-area="sources"] {
  grid-area: sources;
}

.dossier-grid > [data-area="materiel"] {
  grid-area: materiel;
}

.dossier-grid h2 {
  font-size: var(--step-2);
}

.dossier-grid .section__head {
  margin-bottom: var(--space-4);
}

.aside-stack > * + * {
  margin-top: var(--space-5);
}

/* Dans la colonne de droite, les cartes d'outils restent l'une sous l'autre. */
.aside-stack .tool-cards {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 60rem) {
  .dossier-grid {
    grid-template-columns: minmax(0, 1fr) 21rem;
    grid-template-areas:
      "videos aside"
      "articles aside"
      "sources aside"
      "materiel aside";
    column-gap: var(--space-7);
    row-gap: var(--space-7);
  }

  .dossier-grid > [data-area="aside"] {
    position: sticky;
    top: var(--space-5);
    align-self: start;
  }

  .covers--grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5) var(--space-4);
  }
}

/* --- Façade vidéo : la couverture du site, le lecteur seulement au clic --- */

.facade {
  position: relative;
}

/* En bas à gauche : le titre de la couverture et « Image à produire » restent lisibles. */
.facade__play {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 80%);
}

.facade__play .icon {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.2rem;
  fill: currentcolor;
}

.covers__meta {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.35;
}

.covers__meta a {
  font-weight: 700;
  color: var(--paper);
}

.player-note {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--step--1);
}

/* --- Vrai ou faux --- */

.verdict {
  margin-top: var(--space-6);
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.verdict__claim {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
  text-transform: uppercase;
}

.verdict__answer {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 0.05em 0.3em 0.08em;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
}

.verdict p:last-of-type {
  margin-top: var(--space-3);
}

/* --- Fiche à télécharger : un aperçu de la page A4 --- */

.sheet {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-4);
  padding: 1.25rem;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
}

.sheet__preview {
  aspect-ratio: 210 / 297;
  padding: 0.45rem;
  background: var(--white);
  border-radius: 0.3rem;
  box-shadow: 0 10px 20px -10px rgb(0 0 0 / 90%);
}

.sheet__preview span {
  display: block;
  height: 0.22rem;
  margin-top: 0.28rem;
  background: #c9c6bd;
  border-radius: 1px;
}

.sheet__preview span:first-child {
  height: 0.55rem;
  margin-top: 0;
  background: var(--ink);
}

.sheet__preview span:nth-child(2) {
  height: 0.4rem;
  background: var(--yellow);
}

.sheet__preview span:nth-child(5n) {
  width: 70%;
}

.sheet h2 {
  font-size: 1.5rem;
}

.sheet p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--step--1);
}

.sheet .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

/* --- Sources de la page --- */

.sources-list {
  display: grid;
  gap: var(--space-3);
  max-width: var(--measure);
  list-style: none;
}

.sources-list li {
  padding-left: var(--space-3);
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
  border-left: 3px solid var(--yellow);
}

.sources-list strong {
  color: var(--paper);
}


/* Lignes d'un geste, conseil d'organisation (affiché à part, D-054), marque « à valider ». */
.geste__line {
  margin-top: var(--space-3);
}

.geste__organisation {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-size: var(--step--1);
  background: var(--surface-raised);
  border-radius: var(--radius-control);
}

.geste__pending {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--step--1);
}

.geste .alert-line .icon {
  flex-shrink: 0;
}

.covers__line {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  line-height: 1.4;
}

/* La vidéo lancée prend la place de sa couverture, au même format. */
.facade__player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: var(--radius-card);
}

.article-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}

.article-list li {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.article-list a {
  font-weight: 700;
}

.article-list span:not(.tag) {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--step--1);
}

.article-list__others {
  margin-top: var(--space-5);
  font-size: var(--step-1);
}

.dossier-tools {
  display: grid;
  gap: var(--space-2);
  list-style: none;
}

.dossier-tools .btn {
  width: 100%;
  justify-content: flex-start;
}

/* Fin d'un article : retour au dossier. */
.article-dossier {
  margin-top: var(--space-6);
}

.article-video {
  max-width: 18rem;
  margin-top: var(--space-5);
}

/* --- Menu sur téléphone (lot 3) : « Menu » replie la navigation, sans script ---
   Sur téléphone, seul le menu dépliant est affiché ; au-delà de 48rem, la navigation tient
   sur une ligne et le menu dépliant disparaît. Une seule des deux est visible à la fois. */
.site-menu {
  display: none;
}

@media (max-width: 47.99rem) {
  .site-header .site-nav {
    display: none;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-menu {
    display: block;
  }

  .site-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 3rem;
    padding: 0 0.9rem;
    font-weight: 700;
    list-style: none;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
  }

  .site-menu summary::-webkit-details-marker {
    display: none;
  }

  .site-menu[open] {
    flex-basis: 100%;
    order: 3;
  }

  .site-menu[open] summary {
    background: var(--surface-raised);
  }

  .site-menu ul {
    display: grid;
    margin-top: var(--space-3);
    list-style: none;
  }

  .site-menu a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding-inline: 0.8rem;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    border-radius: var(--radius-control);
  }

  .site-menu a[aria-current="page"] {
    color: var(--yellow);
  }
}

/* Accueil, bloc « Situations » : une carte par dossier en ligne (lot 3). */
.situations {
  display: grid;
  gap: var(--space-4);
  list-style: none;
}

.situation {
  position: relative;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-card);
}

.situation__name {
  font-size: 1.6rem;
}

.situation__name a {
  text-decoration: none;
}

/* Toute la carte est cliquable, le lien reste celui du titre. */
.situation__name a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.situation p {
  margin-top: var(--space-2);
  color: var(--muted);
}

@media (min-width: 48rem) {
  .situations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Dans un dossier, une ligne « à valider » (préprod) porte un filet en pointillés à gauche :
   un soulignement traverserait les lettres d'affiche (O, I) et les listes. */
.geste .advice--pending,
.covers__line.advice--pending {
  text-decoration: none;
  padding-left: 0.6rem;
  border-left: 2px dashed var(--line-strong);
}

.geste .alert-line.advice--pending {
  border-left: 2px dashed var(--todo);
}

.geste__list {
  margin-top: var(--space-3);
  padding-left: 1.1rem;
}

.geste__list li + li {
  margin-top: var(--space-2);
}

.geste__list li::marker {
  color: var(--yellow);
}

.geste__steps {
  margin-top: var(--space-3);
}

.geste .formula {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
}

/* ===== Kit 72 h enrichi (lot 4, A4), repris des maquettes A9 ===== */

/* --- Kit 72 h : la liste officielle et nos compléments --- */

.official-label {
  margin-bottom: var(--space-4);
}

.extras-band {
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
}

.extras-band__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  max-width: var(--measure);
}

.extras-band__head img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}

.extras-band__head p {
  margin-top: var(--space-1);
  color: var(--muted);
}

.extras-band .tags {
  margin-top: var(--space-5);
}

.extra {
  max-width: var(--measure);
  padding-left: var(--space-4);
  border-left: 3px solid var(--yellow);
}

.extra + .extra,
.facts + .extra,
.extra + .facts {
  margin-top: var(--space-7);
}

.extra h2,
.facts-title {
  font-size: var(--step-2);
}

.extra > * + * {
  margin-top: var(--space-3);
}

.extra .source {
  border-left: 0;
  padding-left: 0;
}

.facts {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 48rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.next-steps {
  margin-top: var(--space-5);
}

.cta-line {
  margin-top: var(--space-4);
}

.extras-band > .extra:first-of-type {
  margin-top: var(--space-6);
}

.extras-toc {
  margin-top: var(--space-5);
}

.extras-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.extras-toc a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  padding: 0 0.8rem;
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.extra p + p,
.extra p + .source {
  margin-top: var(--space-3);
}

.extra .advice--pending {
  padding-left: 0.6rem;
  border-left: 2px dashed var(--line-strong);
}

.kit-why-link {
  margin-top: var(--space-4);
  font-weight: 700;
}

.kit-video {
  max-width: 14rem;
}

.kit-videos {
  margin-top: var(--space-7);
}

.kit-videos h3 {
  margin-bottom: var(--space-4);
  font-size: var(--step-2);
}

.extra .advice--pending {
  text-decoration: none;
}

/* ===== Mon kit v4 (lot 5, D-059) ===== */

.mon-kit__count {
  margin-top: var(--space-4);
  font-weight: 700;
}

.needs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  list-style: none;
}

.need {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 5.5rem;
  padding: var(--space-3) var(--space-2);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  cursor: pointer;
}

.need .need__icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--yellow);
}

.need[aria-expanded="true"] {
  border-color: var(--yellow);
  background: var(--surface-raised);
}

.need__check {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: none;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
}

.need__check .icon {
  width: 1rem;
  height: 1rem;
  margin: 0.2rem;
}

.need.is-covered .need__check {
  display: block;
}

.need-panels {
  display: grid;
  /* minmax(0, …) : une longue ligne passe à la ligne au lieu d'élargir le panneau. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.mon-kit.is-enhanced .need-panels {
  margin-top: var(--space-5);
}

.need-panel {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.need-panel h2 {
  font-size: var(--step-2);
}

.need-panel__free {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--ready-tint);
  border-left: 3px solid var(--ready);
  border-radius: var(--radius-control);
}

.need-panel__label {
  color: var(--ready);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.need-panel__price {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--step--1);
}

.kit-choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  list-style: none;
}

.kit-choice {
  padding: var(--space-4);
  background: var(--night-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.kit-choice__tier {
  color: var(--yellow);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.kit-choice[data-tier="essentiel"] .kit-choice__tier {
  color: var(--ready);
}

.kit-choice__name {
  margin-top: var(--space-1);
  font-family: var(--font-text);
  font-size: var(--step-1);
  text-transform: none;
}

.kit-choice__why {
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--step--1);
}

.kit-choice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.kit-choice__pick,
.need-panel__own {
  min-height: 2.75rem;
  padding: 0 1rem;
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}

.kit-choice__pick[aria-pressed="true"],
.need-panel__own[aria-pressed="true"] {
  color: var(--yellow);
  border-color: var(--yellow);
}

.need-panel__own {
  width: 100%;
  margin-top: var(--space-4);
}

.need-panel__own[aria-pressed="true"] {
  color: var(--ready);
  border-color: var(--ready);
}

.mon-kit__note {
  max-width: var(--measure);
}

@media (min-width: 60rem) {
  .mon-kit.is-enhanced {
    display: grid;
    grid-template-columns: 22rem minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
  }

  .mon-kit.is-enhanced .need-panels {
    margin-top: 0;
  }
}

/* ===== Fiche « L'avis de ZE Survie » (lot 5, D-059) ===== */

.avis-kicker {
  margin-top: var(--space-3);
  color: var(--yellow);
  font-size: var(--step--1);
  font-weight: 700;
}

.avis-grid {
  display: grid;
  gap: var(--space-6);
}

.avis-headline {
  max-width: var(--measure);
}

.avis-video {
  max-width: 12rem;
  margin-top: var(--space-5);
}

.avis-columns {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.avis-columns h3,
.avis-block h3 {
  font-size: var(--step-1);
}

.avis-columns ul,
.avis-others {
  margin-top: var(--space-3);
  padding-left: 1.1rem;
}

.avis-columns li + li,
.avis-others li + li {
  margin-top: var(--space-2);
}

.avis-block {
  margin-top: var(--space-6);
  max-width: var(--measure);
}

.avis-block > * + * {
  margin-top: var(--space-3);
}

.avis-free {
  padding: var(--space-4);
  background: var(--ready-tint);
  border-left: 3px solid var(--ready);
  border-radius: var(--radius-control);
}

.avis-tier {
  color: var(--yellow);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.avis-pictogram {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 16rem;
  color: var(--yellow);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.avis-pictogram .icon {
  width: 40%;
  height: 40%;
  stroke-width: 1.5;
}

.avis-illustration {
  width: 100%;
  max-width: 20rem;
  height: auto;
  border-radius: var(--radius-card);
}

.avis-documentary {
  max-width: var(--measure);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  font-size: var(--step--1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

@media (min-width: 48rem) {
  .avis-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .avis-grid {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }
}

/* ===== Page du guide (lot 6, D-060) ===== */
.guide-grid {
  display: grid;
  gap: var(--space-6);
}

.guide-section {
  margin-top: var(--space-6);
}

.guide-list {
  margin-top: var(--space-3);
  padding-left: 1.1rem;
}

.guide-buy {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
}

.guide-buy .form {
  margin-top: var(--space-4);
}

.guide-price {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  text-transform: uppercase;
}

.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.field--check input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  accent-color: var(--yellow);
}

.field--check label {
  font-weight: 400;
}

.field--check .hint,
.field--check .error {
  grid-column: 2;
}

@media (min-width: 60rem) {
  .guide-grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: start;
  }
}
