/* Frigonaut, design system
   Palette : espace profond + fraîcheur végétale.
   Le nom évoque l'explorateur du frigo, la direction artistique suit. */

:root {
  --space-900: #070B14;
  --space-800: #0B1120;
  --space-700: #111A2E;
  --space-600: #18233B;
  --space-500: #22304F;
  --line: rgba(11, 17, 32, 0.1);
  --line-strong: rgba(11, 17, 32, 0.18);

  /* Le lime vif reste la couleur de marque, mais il est illisible en texte sur
     fond clair : 1,35:1 avec du blanc. Les variables de texte prennent donc une
     version foncee, et le lime d'origine survit dans --lime-vif pour les aplats
     (logo, halos, badges).
     #4E9E00 avait ete retenu pour le mode clair mais ne donne que 3,18:1 sur le
     fond de page, sous le minimum AA de 4,5. #15803D donne 4,72:1, et c'est deja
     la couleur des boutons : une seule couleur d'action pour tout le site. */
  --lime: #15803D;
  --lime-vif: #B8F04A;
  --mint: #12A15A;
  --citrus: #C2410C;
  --berry: #DB2777;

  --text: #0B1120;
  --text-soft: #46536E;
  --text-mute: #6B7A96;

  /* Le CTA porte du texte blanc. Le lime de marque est bien trop clair pour
     cela (contraste 1,35:1 avec le blanc), il faut donc un vert dedie.
     #15803D donne 5,02:1 avec le blanc, conforme au niveau AA. */
  --cta: #15803D;
  --cta-hover: #11702F;
  --on-cta: #FFFFFF;

  --ok: #3DDC84;
  --warn: #FFC53D;
  --bad: #FF6B6B;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --shadow: 0 1px 2px rgba(11, 17, 32, .06), 0 12px 28px -14px rgba(11, 17, 32, .22);
  --shadow-lift: 0 2px 6px rgba(11, 17, 32, .07), 0 24px 48px -18px rgba(11, 17, 32, .28);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font);
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #F1F4FA;
  --surface-3: #E6ECF6;

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  /* Le site n'existe qu'en version claire. Cette declaration empeche le
     navigateur de forcer ses propres couleurs sombres sur les selects et
     les champs quand le systeme est en mode sombre. */
  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.024em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--lime); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--mint); }

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

.skip {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--cta);
  color: var(--on-cta);
  padding: .8rem 1.4rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 200;
  transition: top .2s;
}
.skip:focus { top: 0; }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - (var(--gutter) * 2), 760px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: var(--text-soft);
  line-height: 1.62;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; border-radius: 8px; }

/* Le mot doit rester un seul element de flex. Sans ce conteneur, « Frigo »
   est un element anonyme et « naut » un second : le gap du .brand s'inserait
   au milieu du mot et affichait « Frigo naut ». */
.brand-name { white-space: nowrap; }
.brand b { color: var(--lime); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 550;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* `.nav-links a` est plus specifique que `.btn-primary` et lui volait sa
   couleur de texte. Le bouton du header heritait du gris des liens de nav,
   illisible sur le vert. On rend la specificite au bouton. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: var(--on-cta);
}
.nav-links a.btn-ghost,
.nav-links a.btn-ghost:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 11px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: .9rem; }
  .nav-links a { display: block; padding: .95rem 0; font-size: 1.05rem; }
  .nav .btn { width: 100%; justify-content: center; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--cta);
  color: var(--on-cta);
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--cta) 85%, transparent);
}
.btn-primary:hover {
  background: var(--cta-hover);
  color: var(--on-cta);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px color-mix(in srgb, var(--cta) 90%, transparent);
}

.btn-ghost {
  background: color-mix(in srgb, var(--surface-3) 60%, transparent);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -35%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
    color-mix(in srgb, var(--lime) 16%, transparent) 0%,
    color-mix(in srgb, var(--mint) 7%, transparent) 38%,
    transparent 66%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  /* La colonne droite grandit avec les resultats. Un alignement centre
     ferait descendre le titre au milieu de cette hauteur. */
  align-items: start;
}
/* La carte du moteur est plus haute que le discours. Plutot que de laisser
   900 px de vide a gauche, le texte accompagne le defilement. */
@media (min-width: 941px) {
  .hero-copy {
    position: sticky;
    top: 104px;
    align-self: start;
  }
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 .grad {
  background: linear-gradient(105deg, var(--lime), var(--mint) 55%, var(--citrus));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--text-mute);
}
.hero-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof svg { width: 15px; height: 15px; color: var(--mint); flex-shrink: 0; }

/* ---------- Cartes ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Grilles ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.15rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.75rem;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.feature-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--lime) 14%, transparent);
  color: var(--lime);
  margin-bottom: 1.15rem;
}
.feature-ico svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: .45rem; }
.feature p { color: var(--text-soft); font-size: .94rem; margin: 0; }

/* ---------- Comparatif ---------- */

.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .93rem;
}
.compare th, .compare td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--text-mute);
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}
.compare thead th.us { color: var(--lime); }
.compare tbody th {
  font-weight: 600;
  color: var(--text);
  width: 30%;
}
.compare td { color: var(--text-soft); }
.compare .us-col {
  background: color-mix(in srgb, var(--lime) 6%, transparent);
  color: var(--text);
  font-weight: 500;
}
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- App ---------- */

.app-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: .82rem;
  color: var(--text-mute);
}
.dots { display: flex; gap: .38rem; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }

.app-body { padding: clamp(1.25rem, 3vw, 2rem); }

.search-row { display: flex; gap: .6rem; flex-wrap: wrap; }

.field {
  flex: 1 1 240px;
  position: relative;
}
.field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: .92rem 1.15rem .92rem 2.9rem;
  transition: border-color .2s, background .2s;
}
.field input::placeholder { color: var(--text-mute); }
.field input:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--surface);
}
.field > svg {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-mute);
  pointer-events: none;
}

.suggest {
  position: absolute;
  top: calc(100% + .45rem);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
  padding: .35rem;
  display: none;
}
.suggest.is-open { display: block; }
.suggest button {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  padding: .6rem .75rem;
  border-radius: 9px;
  cursor: pointer;
}
.suggest button:hover, .suggest button.is-active { background: var(--surface-3); }
.suggest .emo { font-size: 1.1rem; }
.suggest .cat { margin-left: auto; font-size: .74rem; color: var(--text-mute); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
  min-height: 38px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: color-mix(in srgb, var(--lime) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--lime) 30%, transparent);
  color: var(--text);
  border-radius: 100px;
  padding: .42rem .55rem .42rem .85rem;
  font-size: .88rem;
  font-weight: 550;
  animation: pop .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.chip button {
  background: none;
  border: 0;
  color: var(--text-mute);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}
.chip button:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.chip button svg { width: 13px; height: 13px; }

.chips-empty { color: var(--text-mute); font-size: .89rem; align-self: center; }

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.quick-label { font-size: .8rem; color: var(--text-mute); margin-right: .3rem; }
.quick button {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: .84rem;
  padding: .4rem .8rem;
  cursor: pointer;
  transition: all .15s;
}
.quick button:hover {
  border-color: var(--lime);
  color: var(--text);
  background: color-mix(in srgb, var(--lime) 10%, transparent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  align-items: center;
}
.filter { display: inline-flex; align-items: center; gap: .55rem; font-size: .87rem; color: var(--text-soft); }
.filter select {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font);
  font-size: .87rem;
  padding: .42rem 2rem .42rem .7rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E7F9E' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .55rem center;
  background-size: 13px;
}
.filter select:focus { outline: none; border-color: var(--lime); }

/* Résultats */

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1.1rem;
  flex-wrap: wrap;
}
.results-head h3 { margin: 0; }
.results-count { font-size: .85rem; color: var(--text-mute); }

.recipes { display: grid; gap: .9rem; }

.recipe {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.recipe:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.recipe.is-perfect { border-color: color-mix(in srgb, var(--mint) 45%, transparent); }

.recipe-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  color: var(--text);
}

.score {
  --p: 0;
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--sc, var(--mint)) calc(var(--p) * 1%), var(--surface-3) 0);
}
.score::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--surface-2);
}
.score span {
  position: relative;
  z-index: 1;
  font-size: .72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--sc, var(--mint));
}

.recipe-info { flex: 1; min-width: 0; }
.recipe-info h4 {
  margin: 0 0 .2rem;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -.015em;
}
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .79rem;
  color: var(--text-mute);
}
.recipe-meta span { display: inline-flex; align-items: center; gap: .28rem; }
.recipe-meta svg { width: 13px; height: 13px; }

.nutri {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 800;
  color: #08110A;
  flex-shrink: 0;
}
.nutri-a { background: #038141; color: #fff; }
.nutri-b { background: #85BB2F; }
.nutri-c { background: #FECB02; }
.nutri-d { background: #EE8100; color: #fff; }
.nutri-e { background: #E63E11; color: #fff; }

.chev {
  width: 18px;
  height: 18px;
  color: var(--text-mute);
  flex-shrink: 0;
  transition: transform .25s;
}
.recipe.is-open .chev { transform: rotate(180deg); }

.recipe-body {
  display: none;
  padding: 0 1.25rem 1.4rem;
  border-top: 1px solid var(--line);
  margin-top: -1px;
  padding-top: 1.25rem;
}
.recipe.is-open .recipe-body { display: block; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.ing-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}
.ing-title {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-mute);
  margin-bottom: .6rem;
}
.ing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .38rem; }
.ing-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .89rem;
  color: var(--text-soft);
}
.ing-list svg { width: 14px; height: 14px; flex-shrink: 0; }
.ing-have svg { color: var(--mint); }
.ing-miss svg { color: var(--warn); }
.ing-miss li { color: var(--text-mute); }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.steps li {
  counter-increment: s;
  display: flex;
  gap: .85rem;
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.steps li::before {
  content: counter(s);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lime) 15%, transparent);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: .74rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-top: 1px;
}

.safety {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: .8rem .95rem;
  border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent);
  font-size: .84rem;
  color: var(--text-soft);
}
.safety svg { width: 16px; height: 16px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.safety strong { color: var(--text); }

.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-mute);
}
.empty svg { width: 42px; height: 42px; margin: 0 auto 1rem; color: var(--line-strong); }

/* ---------- Auteur ---------- */

.author-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 700px) {
  .author-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.author-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}
@media (max-width: 700px) { .author-links { justify-content: center; } }

.social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 550;
  transition: all .18s;
}
.social:hover { border-color: var(--lime); color: var(--text); transform: translateY(-2px); }
.social svg { width: 16px; height: 16px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.5rem;
  padding-left: 0;
}
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }
.timeline time {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--lime);
  font-weight: 600;
  padding-top: .15rem;
}
.timeline h4 { margin: 0 0 .3rem; font-size: 1.02rem; }
.timeline p { margin: 0; color: var(--text-soft); font-size: .93rem; }

/* ---------- Contenu long ---------- */

.prose { font-size: 1.01rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; font-size: 1.18rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--text); font-weight: 650; }

.dl {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 620px) { .dl { grid-template-columns: 1fr; } }
.dl dt {
  padding: .85rem 1.15rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
  font-weight: 650;
  color: var(--text-soft);
}
.dl dd {
  padding: .85rem 1.15rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  color: var(--text);
}
@media (max-width: 620px) { .dl dt { border-bottom: 0; padding-bottom: .2rem; } }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }

.callout {
  display: flex;
  gap: .85rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--lime) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--lime) 25%, transparent);
  margin: 1.6rem 0;
  font-size: .93rem;
}
.callout svg { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; margin-top: 3px; }
.callout p { margin: 0; color: var(--text-soft); }
.callout.warn {
  background: color-mix(in srgb, var(--warn) 9%, transparent);
  border-color: color-mix(in srgb, var(--warn) 28%, transparent);
}
.callout.warn svg { color: var(--warn); }

.updated {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--text-mute);
  font-family: var(--font-mono);
}
.updated svg { width: 14px; height: 14px; }

/* Bloc auteur réutilisable, signal E-E-A-T */
.byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 2.2rem 0;
}
.byline img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.byline-txt { font-size: .88rem; color: var(--text-mute); line-height: 1.5; }
.byline-txt a { font-weight: 650; }
.byline-txt strong { color: var(--text); display: block; font-size: .95rem; }

/* ---------- Plan du site ---------- */

.plan {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.plan li {
  background: var(--surface);
  padding: .9rem 1.15rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
  transition: background .15s;
}
.plan li:hover { background: var(--surface-2); }
.plan a {
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}
.plan a:hover { text-decoration: underline; }
.plan span {
  color: var(--text-mute);
  font-size: .85rem;
  flex: 1 1 220px;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .25s;
  margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq .faq-a { padding: 0 1.35rem 1.35rem; color: var(--text-soft); font-size: .94rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 1.5rem 1.35rem; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--lime);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat span { font-size: .85rem; color: var(--text-mute); }

/* ---------- CTA ---------- */

.cta-band {
  /* Bloc de contraste assume, pas un reste de theme sombre : c'est le seul
     endroit du site ou le fond fonce sert a faire ressortir l'appel a l'action. */
  background: linear-gradient(135deg, #0B1120, #18233B);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #F2F6FF; }
.cta-band .lead { color: #A9B6CF; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto;
  height: 200%;
  background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--lime-vif) 18%, transparent), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .lead { margin-inline: auto; max-width: 520px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* La colonne de marque tient la largeur d'une phrase lisible, puis rend la
   main aux colonnes de liens. Sous 1000 px elle reprend toute la ligne. */
.footer-brand { max-width: 320px; }
@media (max-width: 1000px) { .footer-brand { grid-column: 1 / -1; max-width: 460px; } }

.footer-tag {
  font-size: .89rem;
  color: var(--text-mute);
  margin: 1rem 0 1.25rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-mute);
  transition: color .18s, border-color .18s, transform .18s, background .18s;
}
.footer-social a:hover {
  color: var(--on-cta);
  background: var(--cta);
  border-color: var(--cta);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 550;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--mint) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--mint) 24%, transparent);
  border-radius: 100px;
  padding: .34rem .8rem;
}
.badge svg { width: 12px; height: 12px; color: var(--mint); flex-shrink: 0; }

.footer-col h4 {
  font-family: var(--font);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--text-mute);
  margin-bottom: .9rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: .89rem;
  transition: color .15s;
}
.footer-col a:hover { color: var(--lime); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-mute);
  line-height: 1.6;
}
.footer-bottom p { margin: 0; max-width: 760px; }
.footer-made { white-space: nowrap; opacity: .8; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: .82rem;
  color: var(--text-mute);
}
.breadcrumb li::after { content: "/"; margin-left: .5rem; color: var(--line-strong); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .site-header, .site-footer, .hero::before, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
