/* ==========================================================================
   FridgEat — charte du site (style « autocollant »)
   Mobile d'abord. Couleurs claires/sombres suivant le réglage de l'appareil.
   Aucune ressource externe : polices auto-hébergées dans /assets/fonts/ (licences OFL à côté).
   Pages : n'ajoute pas de styles ici pour une seule page, utilise /assets/css/<page>.css
   (champ « styles » de l'en-tête de la page). Voir README.md.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-400-800.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Couleurs et mesures ---------- */
:root {
  color-scheme: light dark;
  /* Charte (fixe) */
  --lavande: #F2EEFF;
  --lavande-fonce: #E3DBFF;
  --reglisse: #111111;
  --citron: #FFD84D;
  --citron-vert: #C8F169;
  --tomate: #FF5A36;
  --ciel: #8ED1FF;
  --rose: #FFA7B5;
  /* Fonds pâles des bandeaux (texte réglisse dans les deux thèmes) */
  --ciel-pale: #D4EEFF;
  --citron-pale: #FFEDAF;
  --citron-vert-pale: #E6F8BE;
  --rose-pale: #FFDCE2;
  /* Thème clair */
  --bg: #F2EEFF;
  --paper: #FFFFFF;
  --ink: #111111;
  --muted: #57506E;
  --line: #D9D2F0;
  --shadow: #111111;
  --tint: #E3DBFF;
  --focus: #111111;
  /* Typographie */
  --font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --font-text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Mise en page */
  --gutter: 16px;
  --max: 1080px;
  --max-text: 720px;
  /* Autocollant */
  --radius: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --border: 3px;
  --border-thin: 2.5px;
  --offset: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15121C;
    --paper: #231E2E;
    --ink: #F4F0FF;
    --muted: #B9B1D0;
    --line: #3A3249;
    --shadow: #06050A;
    --tint: #2C2539;
    --focus: #FFD84D;
  }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* Surfaces colorées : encre réglisse et papier blanc dans les deux thèmes (comme dans l'app). */
.on-color,
.card--citron, .card--lime, .card--ciel, .card--rose, .card--tomate,
.btn--primary, .btn--store, .btn--citron, .btn--lime,
.badge--citron, .badge--lime, .badge--ciel, .badge--rose, .badge--tomate,
.notice--info, .notice--warning, .notice--success, .notice--danger,
.banner {
  --ink: #111111;
  --paper: #FFFFFF;
  --muted: #3A3346;
  --line: #11111133;
  --shadow: #111111;
  --tint: #FFFFFF99;
  color: #111111;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: style;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; display: block; }

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem); line-height: 1.2; }
h4 { font-family: var(--font-text); font-size: 1.0625rem; letter-spacing: 0; line-height: 1.3; }

p, ul, ol, dl, blockquote, figure, pre { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 800; }
small { font-size: 0.875rem; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 2px; }
hr { border: 0; border-top: 3px dashed var(--line); margin: 2em 0; }
::selection { background: var(--citron); color: #111111; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--tomate);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 3.5px; }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--tint);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--paper);
  border: var(--border-thin) solid var(--ink);
  border-radius: var(--radius-sm);
}
pre code { background: none; padding: 0; }

/* Focus visible partout (clavier) */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Utilitaires ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 12px 16px;
  font-weight: 800;
  color: #111111;
  background: var(--citron);
  border: var(--border) solid #111111;
  border-radius: var(--radius-sm);
  box-shadow: var(--offset) var(--offset) 0 #111111;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.center { text-align: center; }
.center .cluster, .center .btn-row { justify-content: center; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); line-height: 1.5; }
.eyebrow {
  display: block;
  margin: 0 0 0.6em;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}
.nowrap { white-space: nowrap; }

/* ---------- Mise en page ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--text { max-width: calc(var(--max-text) + 2 * var(--gutter)); }

.section { padding-block: clamp(40px, 7vw, 88px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }
.section--paper { background: var(--paper); border-block: var(--border) solid var(--ink); }
.section--tint { background: var(--tint); }
.section__head { max-width: 640px; margin: 0 auto clamp(24px, 4vw, 44px); text-align: center; }
.section__head > :last-child { margin-bottom: 0; }

.stack > * { margin-block: 0; }
.stack > * + * { margin-block-start: var(--space, 16px); }
.stack--sm { --space: 8px; }
.stack--lg { --space: 28px; }

.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr));
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- En-tête ---------- */
.site-header { padding-block: 10px; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
}
.brand__mascot { width: 30px; height: 42px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--tomate);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--shadow);
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration-color: transparent;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { text-decoration-color: var(--tomate); }

/* Sélecteur de langue FR / EN */
.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--paper);
  border: var(--border-thin) solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--shadow);
}
.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
}
.lang__item abbr { text-decoration: none; }
.lang__item.is-current { background: var(--citron); color: #111111; }
a.lang__item:hover { background: var(--tint); }

/* ---------- Pied de page ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: var(--border) solid var(--ink);
}
.site-footer__grid { display: grid; gap: 24px; }
.site-footer__tagline { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
/* Texte aligné en haut de chaque case (un libellé sur deux lignes ne décale pas son voisin), cible de 44 px. */
.footer-links a {
  display: inline-block;
  padding-block: 11px;
  line-height: 22px;
  font-weight: 700;
  text-decoration-color: transparent;
}
.footer-links__wide { grid-column: 1 / -1; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration-color: var(--tomate); }
.site-footer__legal {
  margin: 0;
  padding-top: 20px;
  border-top: 2px dashed var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-links__wide { grid-column: span 2; }
  .site-footer__legal { grid-column: 1 / -1; }
}

/* ---------- Carte autocollant ---------- */
.card {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  color: var(--ink);
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--offset) var(--offset) 0 var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card--citron { background: var(--citron); }
.card--lime { background: var(--citron-vert); }
.card--ciel { background: var(--ciel); }
.card--rose { background: var(--rose); }
.card--tomate { background: var(--tomate); }
.card--tint { background: var(--tint); }
.card--flat { box-shadow: none; }
.card__title { font-size: 1.25rem; margin-bottom: 0.4em; }
.card__icon { display: block; width: 56px; height: 56px; margin-bottom: 12px; }
/* Carte entièrement cliquable : <a class="card card--link" href="…"> */
.card--link { display: block; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.card--link:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--offset) + 2px) calc(var(--offset) + 2px) 0 var(--shadow); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--btn-bg);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--offset) var(--offset) 0 var(--shadow);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: calc(var(--offset) + 1px) calc(var(--offset) + 1px) 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn--primary { --btn-bg: var(--tomate); font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.005em; }
.btn--secondary { --btn-bg: var(--paper); }
.btn--citron { --btn-bg: var(--citron); }
.btn--lime { --btn-bg: var(--citron-vert); }
.btn--ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: var(--tomate);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.btn--ghost:hover, .btn--ghost:active { transform: none; box-shadow: none; text-decoration-thickness: 3.5px; }
.btn--small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  border-width: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--shadow);
}
.btn--large { min-height: 58px; padding: 16px 28px; font-size: 1.25rem; }
.btn--block { display: flex; width: 100%; }
/* Bouton de téléchargement, à la charte FridgEat (autocollant tomate à bord noir). Jamais le badge officiel d'Apple ni
   son logo (règles marketing d'Apple) : un texte simple, et l'App Store cité en petit, dessous.
   Même modèle sur toutes les pages, avec une petite icône de téléphone (trait de la couleur du texte) :
   <a class="btn btn--store" href="…"><svg class="btn__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">…</svg>
   <span class="btn__text">Télécharger FridgEat <small>sur l’App Store, pour iPhone</small></span></a> */
.btn--store { --btn-bg: var(--tomate); font-family: var(--font-display); letter-spacing: -0.005em; }
.btn__text small { display: block; margin-top: 3px; font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; }
.btn__icon { width: 24px; height: 24px; flex: none; }
.btn--store .btn__icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--store .btn__text { text-align: left; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
@media (max-width: 479.98px) {
  .btn-row--stack > .btn { flex: 1 1 100%; }
}

/* ---------- Badge (pastille) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 11px;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.badge--citron { background: var(--citron); }
.badge--lime { background: var(--citron-vert); }
.badge--ciel { background: var(--ciel); }
.badge--rose { background: var(--rose); }
.badge--tomate { background: var(--tomate); }
.badge--shadow { box-shadow: 2px 2px 0 var(--shadow); }
.badge img { width: 20px; height: 20px; margin: -3px 0 -3px -4px; }

/* ---------- Bandeau d'information ---------- */
.notice {
  margin: 0 0 1.25em;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--tint);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0 var(--shadow);
}
.notice > :last-child { margin-bottom: 0; }
.notice__title { margin: 0 0 0.3em; font-weight: 800; }
.notice--info { background: var(--ciel-pale); }
.notice--warning { background: var(--citron-pale); }
.notice--success { background: var(--citron-vert-pale); }
.notice--danger { background: var(--rose-pale); }
/* Bandeau pleine largeur en haut de page : <div class="banner"><p>…</p></div> */
.banner {
  padding: 10px var(--gutter);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--citron);
  border-bottom: var(--border) solid #111111;
}
.banner > * { margin: 0; }

/* ---------- FAQ : <details class="faq"><summary>Question</summary><div class="faq__body">…</div></details> ---------- */
.faq {
  margin: 0 0 14px;
  scroll-margin-top: 20px; /* /aide/#effacer : la question ouverte ne colle pas au bord de l'écran */
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--offset) var(--offset) 0 var(--shadow);
}
.faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  border-radius: calc(var(--radius-md) - var(--border));
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  background-color: var(--citron);
  background-image: linear-gradient(#111111, #111111), linear-gradient(#111111, #111111);
  background-size: 13px 2.5px, 2.5px 13px;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.faq[open] > summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 18px 16px; }
.faq__body > :last-child { margin-bottom: 0; }
.faq-list { margin: 0 0 1.5em; }

/* ---------- Tableau ---------- */
.table-wrap { margin: 0 0 1.5em; }
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.table th { font-weight: 800; background: var(--tint); border-bottom: var(--border) solid var(--ink); }
.table td { border-top: 2px solid var(--line); }
.table tbody tr:first-child td { border-top: 0; }
.table .align-center { text-align: center; }
.table .align-right { text-align: right; }
@media (min-width: 720px) {
  .table-wrap {
    overflow-x: auto;
    background: var(--paper);
    border: var(--border) solid var(--ink);
    border-radius: var(--radius-md);
    box-shadow: var(--offset) var(--offset) 0 var(--shadow);
  }
  .table-wrap > .table { margin: 0; }
}
/* Petit écran : chaque ligne devient une carte, chaque cellule affiche son en-tête (data-label). */
@media (max-width: 719.98px) {
  .table:not(.table--scroll) thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .table:not(.table--scroll), .table:not(.table--scroll) tbody,
  .table:not(.table--scroll) tr, .table:not(.table--scroll) td { display: block; }
  .table:not(.table--scroll) tr {
    margin: 0 0 14px;
    padding: 4px 16px;
    background: var(--paper);
    border: var(--border) solid var(--ink);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--shadow);
  }
  .table:not(.table--scroll) td { padding: 10px 0; border-top: 2px dashed var(--line); text-align: left; }
  .table:not(.table--scroll) td:first-child { border-top: 0; font-weight: 800; }
  /* La 1re ligne garde aussi ses pointillés (sinon « tbody tr:first-child td » les retire). */
  .table:not(.table--scroll) tbody tr:first-child td:not(:first-child) { border-top: 2px dashed var(--line); }
  .table:not(.table--scroll) td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  /* Variante qui reste un tableau et défile dans son cadre : <div class="table-wrap table-wrap--scroll"><table class="table table--scroll"> */
  .table-wrap--scroll {
    overflow-x: auto;
    background: var(--paper);
    border: var(--border) solid var(--ink);
    border-radius: var(--radius-md);
  }
  .table--scroll { min-width: 560px; }
}

/* ---------- Texte légal et pages d'aide (gabarit « doc ») ---------- */
.doc { padding-top: clamp(20px, 5vw, 56px); }
.doc__header { max-width: var(--max-text); margin-bottom: clamp(24px, 4vw, 40px); }
.doc__header h1 { margin-bottom: 0.35em; }
.doc__header .lead { margin-bottom: 0.6em; }
.doc__updated { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.toc {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--offset) var(--offset) 0 var(--shadow);
}
.toc__title {
  margin: 0 0 6px;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc__list { margin: 0; padding-left: 1.4em; }
.toc__list li { margin: 0; }
.toc__list li::marker { font-weight: 800; color: var(--muted); }
.toc__list a {
  display: block; /* block : le numéro reste face à la 1re ligne d'un titre long (inline-block l'alignait sur la dernière) */
  padding: 7px 0;
  font-weight: 600;
  line-height: 1.3;
  text-decoration-color: transparent;
}
.toc__list a:hover { text-decoration-color: var(--tomate); }
@media (min-width: 960px) {
  .doc--toc {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
  }
  .doc--toc .doc__header { grid-column: 1 / -1; }
  .doc--toc .toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 0;
  }
}

.prose { max-width: var(--max-text); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 {
  margin: 1.8em 0 0.5em;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  scroll-margin-top: 20px;
}
.prose h3 { margin: 1.5em 0 0.4em; font-size: 1.1875rem; scroll-margin-top: 20px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.3em 0; }
.prose li > ul, .prose li > ol { margin: 0.3em 0 0; }
.prose ul > li::marker { color: var(--tomate); }
.prose ol > li::marker { font-weight: 800; }
.prose a { overflow-wrap: anywhere; }
.prose blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 18px;
  color: var(--muted);
  border-left: 4px solid var(--tomate);
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius-sm); }
.prose .notice, .prose .faq, .prose .card, .prose .table-wrap { margin-block: 1.25em; }

/* ---------- Listes ---------- */
/* Étapes numérotées : <ol class="steps"><li>…</li></ol> */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.5em;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps > li { counter-increment: step; position: relative; min-height: 40px; padding-left: 56px; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: #111111;
  background: var(--citron);
  border: var(--border-thin) solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--shadow);
}
/* Coches : <ul class="check-list"><li>…</li></ul> */
.check-list { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 10px; }
.check-list > li { position: relative; padding-left: 36px; }
.check-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 24px;
  height: 24px;
  background: var(--citron-vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23111111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
/* Icônes d'aliments en puces : <ul class="icon-list"><li><img src="…" alt="" width="40" height="40"><span>…</span></li></ul> */
.icon-list { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 12px; }
.icon-list > li { display: flex; align-items: flex-start; gap: 12px; }
.icon-list > li > img { flex: none; width: 40px; height: 40px; }
/* Dans un texte .prose, « .prose ul » (plus spécifique) ajoutait un retrait inutile à ces listes sans puces. */
.prose .check-list, .prose .icon-list { padding-left: 0; }
.prose .check-list > li, .prose .icon-list > li { margin: 0; }

/* ---------- Images ---------- */
.mascot { display: block; height: auto; }
.mascot--sm { width: 72px; }
.mascot--md { width: 140px; }
.mascot--lg { width: min(220px, 60vw); }
.food-icon { display: inline-block; width: 48px; height: 48px; vertical-align: middle; }
/* Capture d'écran de l'app (1320 × 2868) : <img class="shot" src="…" width="300" height="652" alt="…"> */
.shot {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: 30px;
  box-shadow: 6px 6px 0 var(--shadow);
}
.figure { margin: 0 0 1.5em; }
.figure figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.tilt-left { rotate: -3deg; }
.tilt-right { rotate: 3deg; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: fridgeat-float 4.5s ease-in-out infinite; }
}
@keyframes fridgeat-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* ---------- Accueil : bloc d'ouverture ---------- */
.hero { padding-block: clamp(20px, 6vw, 72px) clamp(40px, 7vw, 88px); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.hero__lead { margin-top: 16px; }
.hero__actions { margin-top: 28px; }
.hero__media { display: flex; justify-content: center; }
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
}

/* ---------- Page 404 ---------- */
.error-page {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}
.error-page .card { width: 100%; }
.error-page .btn-row { justify-content: center; }

/* ---------- Mode sombre : surfaces colorées ---------- */
/* Elles gardent l'encre réglisse pour leur texte, mais leur contour devient clair, comme celui des cartes neutres et
   des boutons blancs : un bord noir disparaîtrait sur le fond sombre. */
@media (prefers-color-scheme: dark) {
  .card--citron, .card--lime, .card--ciel, .card--rose, .card--tomate,
  .notice--info, .notice--warning, .notice--success, .notice--danger,
  .btn--primary, .btn--store, .btn--citron, .btn--lime {
    border-color: #F4F0FF;
  }
}

/* ---------- Accessibilité et impression ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .btn:active, .card--link:hover { transform: none; }
}

@media (forced-colors: active) {
  .btn, .card, .notice, .faq, .toc, .lang, .badge { border-color: CanvasText; }
  .lang__item.is-current { outline: 2px solid CanvasText; }
}

@media print {
  :root { --bg: #FFFFFF; --paper: #FFFFFF; --ink: #000000; --muted: #333333; --shadow: transparent; --tint: #F2F2F2; }
  .site-nav, .site-footer__nav, .skip-link, .toc, .btn-row { display: none !important; }
  .card, .notice, .faq, .table-wrap, .shot { box-shadow: none !important; }
  .site-footer { border-top: 1px solid #000000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
