/* =====================================================================
   Learn With Ade — feuille de style
   Charte LWA v1.0 : trois bleus, deux neutres, un seul accent (Signal).
   Inter pour le texte, JetBrains Mono pour les étiquettes.
   ===================================================================== */

:root {
  /* Palette LWA */
  --bleu: #1C398E;      /* Bleu LWA : titres, logo, éléments forts */
  --median: #4866AF;    /* Bleu Médian : mosaïque, icônes */
  --ciel: #BEDBFF;      /* Bleu Ciel : surligneur, texte sur Nuit */
  --nuit: #0F1D4A;      /* Nuit : fonds sombres */
  --brume: #F3F7FF;     /* Brume : fonds clairs */
  --blanc: #FFFFFF;
  --signal: #F8992D;    /* Signal : accent unique, appel à l'action (5 % max) */
  --signal-fonce: #E9861A;
  --gris: #5B6478;      /* Gris texte */
  --ligne: #DEE5F2;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1160px;
  --prose: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --header-h: 68px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--nuit);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--median); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--bleu); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--nuit); color: var(--blanc); padding: 10px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--brume { background: var(--brume); }
.section--nuit { background: var(--nuit); color: var(--blanc); position: relative; overflow: hidden; }
.section--nuit h1, .section--nuit h2, .section--nuit h3 { color: var(--blanc); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--gris); font-size: 1.1rem; }
.section--nuit .section-head p { color: var(--ciel); }
.row-between { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- signature LWA */
.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--median);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
}
.section--nuit .label, .on-dark .label, .hero .label { color: var(--ciel); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--bleu); }
.dots i:nth-child(2) { background: var(--median); }
.dots i:nth-child(3) { background: var(--ciel); }
.section--nuit .dots i:nth-child(1), .on-dark .dots i:nth-child(1), .hero .dots i:nth-child(1) { background: var(--blanc); }
.section--nuit .dots i:nth-child(2), .on-dark .dots i:nth-child(2), .hero .dots i:nth-child(2) { background: var(--ciel); }
.section--nuit .dots i:nth-child(3), .on-dark .dots i:nth-child(3), .hero .dots i:nth-child(3) { background: var(--median); }
mark, .hl { background: var(--ciel); color: var(--nuit); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* coins pixel : 1 ou 2 coins opposés, jamais derrière un texte */
.px-corners::before, .px-corners::after {
  content: ""; position: absolute; width: 192px; height: 144px; pointer-events: none;
  background-repeat: no-repeat; background-size: contain;
}
.px-corners::before { top: 0; left: 0; background-image: url("../img/pixels-tl.svg"); }
.px-corners::after { bottom: 0; right: 0; background-image: url("../img/pixels-br.svg"); }
@media (max-width: 700px) { .px-corners::before, .px-corners::after { width: 112px; height: 84px; } }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 700 1rem/1.2 var(--font);
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
/* Signal = l'appel à l'action principal. Texte toujours en Nuit sur Signal. */
.btn--signal { background: var(--signal); color: var(--nuit); }
.btn--signal:hover { background: var(--signal-fonce); color: var(--nuit); }
.btn--bleu { background: var(--bleu); color: var(--blanc); }
.btn--bleu:hover { background: var(--nuit); color: var(--blanc); }
.btn--ghost { border-color: var(--ligne); color: var(--bleu); background: transparent; }
.btn--ghost:hover { border-color: var(--bleu); color: var(--bleu); }
.on-dark .btn--ghost, .section--nuit .btn--ghost { border-color: rgba(190, 219, 255, .45); color: var(--blanc); }
.on-dark .btn--ghost:hover, .section--nuit .btn--ghost:hover { border-color: var(--ciel); color: var(--blanc); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- en-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ligne);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); } }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--nuit); text-decoration: none; font-weight: 500; font-size: .96rem;
}
.nav a:hover { background: var(--brume); color: var(--bleu); }
.nav a[aria-current="page"] { color: var(--bleu); font-weight: 700; }
.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--ligne); border-radius: var(--radius);
  background: var(--blanc); color: var(--nuit); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .header-in { gap: 10px; }
  .brand img { height: 32px; }
  .menu-btn { display: inline-flex; }
  .header-cta { order: 2; }
  .menu-btn { order: 3; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--blanc); border-bottom: 1px solid var(--ligne);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--brume); border-radius: 0; font-size: 1.05rem; }
}
@media (max-width: 600px) { .header-cta .txt-long { display: none; } }

/* ---------------------------------------------------------------- héros */
.hero { background: var(--nuit); color: var(--blanc); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: stretch; min-height: 560px; }
.hero-text { padding: clamp(56px, 8vw, 104px) 0; padding-right: clamp(16px, 4vw, 56px); align-self: center; position: relative; z-index: 1; }
.hero h1 { color: var(--blanc); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 mark { padding: 0 .14em; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ciel); max-width: 34em; margin-bottom: 28px; }
.hero-next { margin-top: 26px; font-size: .95rem; color: var(--ciel); max-width: 34em; }
.hero-next .dots { margin-right: 10px; vertical-align: 1px; }
.hero-next strong { color: var(--blanc); font-weight: 500; }
.hero-visual {
  position: relative; background: var(--median);
  margin-right: calc(-1 * var(--gutter));
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 120px;
  background: url("../img/pixels-strip.svg") left top / 120px auto repeat-y;
}
.hero-visual img { position: relative; width: min(420px, 82%); margin-top: 48px; }
@media (min-width: 1240px) { .hero-visual { margin-right: calc((100vw - var(--max)) / -2 - var(--gutter)); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding-right: 0; padding-bottom: 40px; }
  .hero-visual { margin-left: calc(-1 * var(--gutter)); height: 340px; align-items: flex-start; }
  .hero-visual::before { width: 80px; background-size: 80px auto; }
  .hero-visual img { width: 250px; margin-top: 32px; }
}

/* ---------------------------------------------------------------- vidéo (chargée au clic) */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--nuit); border-radius: var(--radius); overflow: hidden;
}
.video > a, .video > button {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0; background: none; cursor: pointer; color: var(--blanc);
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--signal); color: var(--nuit);
  box-shadow: 0 6px 24px rgba(15, 29, 74, .35);
}
.play svg { width: 28px; height: 28px; margin-left: 4px; }
@media (max-width: 600px) { .play { width: 60px; height: 60px; } }
.video > *:hover .play { background: var(--signal-fonce); }
.video-note { font-size: .88rem; color: var(--gris); margin-top: 10px; }

/* ---------------------------------------------------------------- dernier épisode */
.latest { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.latest h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.latest p { color: var(--gris); }
.latest .btn-row { margin-top: 22px; }
@media (max-width: 860px) { .latest { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- cartes épisodes */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .15s;
}
a.card:hover { border-color: var(--median); color: inherit; }
a.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.card-media { aspect-ratio: 16 / 9; background: var(--nuit); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-ph {
  position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  color: var(--blanc);
  background: var(--nuit) url("../img/pixels-br.svg") right bottom / 120px auto no-repeat;
}
.card-ph .label { margin: 0; color: var(--ciel); }
.card-ph strong { font-size: 1.15rem; line-height: 1.25; font-weight: 700; max-width: 80%; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .label { margin: 0; font-size: .72rem; }
.card-body h3 { margin: 0; font-size: 1.12rem; color: var(--nuit); }
.card-body p { margin: 0; color: var(--gris); font-size: .96rem; }
.card-foot { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--bleu); font-size: .95rem; }
.badge {
  position: absolute; top: 12px; right: 12px;
  font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 9px; border-radius: 4px; background: var(--blanc); color: var(--nuit);
}
.badge--soon { background: var(--ciel); }
.card--soon .card-body h3 { color: var(--gris); }

/* ---------------------------------------------------------------- la série */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.stat { background: var(--blanc); padding: 22px 20px; }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--bleu); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.stat span { display: block; color: var(--gris); font-size: .94rem; line-height: 1.4; margin-top: 4px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: step; }
.path li { list-style: none; background: var(--blanc); border-radius: var(--radius); padding: 20px; border: 1px solid var(--ligne); }
.path li::before { counter-increment: step; content: "0" counter(step); font: 500 .78rem/1 var(--mono); letter-spacing: .12em; color: var(--median); display: block; margin-bottom: 14px; }
.path h3 { font-size: 1.05rem; margin-bottom: 6px; }
.path p { margin: 0; color: var(--gris); font-size: .95rem; }
.path { padding: 0; margin: 0; }
@media (max-width: 900px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .path { grid-template-columns: 1fr; } }

/* barre de progression pixel : 1 carré = 1 épisode */
.progress { margin-top: 36px; }
.progress-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.progress-bar i { width: 16px; height: 16px; background: var(--ciel); }
.progress-bar i.on { background: var(--bleu); }
.progress .label { margin-top: 12px; margin-bottom: 0; }

/* ---------------------------------------------------------------- formations */
.formation {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--ligne); border-radius: var(--radius); overflow: hidden; background: var(--blanc);
}
.formation-side { background: var(--nuit); color: var(--blanc); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.formation-side::after { content: ""; position: absolute; right: 0; bottom: 0; width: 144px; height: 108px; background: url("../img/pixels-br.svg") right bottom / contain no-repeat; }
.formation-side h3 { color: var(--blanc); font-size: clamp(1.5rem, 2.8vw, 2rem); }
.formation-side p { color: var(--ciel); }
.formation-main { padding: clamp(28px, 4vw, 48px); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 20px 0 0; font-size: .95rem; }
.facts dt { font: 500 .74rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ciel); }
.facts dd { margin: 0; color: var(--blanc); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; width: 10px; height: 10px; background: var(--bleu); transform: translateY(-1px); }
.price { font-size: .95rem; color: var(--gris); margin: 14px 0 0; }
@media (max-width: 860px) { .formation { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- à propos */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.about p { font-size: 1.08rem; }
.about .muted { color: var(--gris); }
.about .checks { margin: 22px 0 26px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- bandeau final */
.cta-band { text-align: left; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta-band p { color: var(--ciel); margin: 0; font-size: 1.08rem; }

/* encart abonnement (articles) */
.sub-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--brume); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0 0;
}
.sub-box p { margin: 0; font-weight: 500; }
.sub-box small { display: block; color: var(--gris); font-weight: 400; font-size: .92rem; }

/* ---------------------------------------------------------------- page série */
.page-head { padding: clamp(44px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); background: var(--brume); position: relative; overflow: hidden; }
.page-head h1 { max-width: 16em; }
.page-head p { color: var(--gris); font-size: 1.12rem; max-width: 40em; }
.module { padding-top: 36px; }
.module + .module { border-top: 1px solid var(--ligne); margin-top: 36px; }
.module-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.module-head h2 { font-size: 1.45rem; margin: 0; }
.ep-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ep {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--ligne); border-radius: var(--radius);
  text-decoration: none; color: var(--nuit); background: var(--blanc);
}
a.ep:hover { border-color: var(--median); color: var(--nuit); }
a.ep:hover .ep-title { text-decoration: underline; }
.ep-num { font: 500 .8rem/1 var(--mono); letter-spacing: .1em; color: var(--median); }
.ep-title { font-weight: 500; }
.ep-meta { font-size: .88rem; color: var(--gris); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.ep-meta .tag { font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; background: var(--bleu); color: var(--blanc); }
.ep-meta .tag--article { background: var(--signal); color: var(--nuit); }
.ep--soon .ep-title { color: var(--gris); }
@media (max-width: 640px) {
  .ep { grid-template-columns: 1fr; gap: 6px; }
  .ep-meta { white-space: normal; }
}

/* ---------------------------------------------------------------- article */
.article-head { padding: clamp(36px, 6vw, 72px) 0 28px; }
.article-head .wrap > * { max-width: var(--prose); margin-left: auto; margin-right: auto; }
.article-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.article-head .label { display: flex; }
.article-meta { color: var(--gris); font-size: .95rem; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.article-video { max-width: 960px; }
.prose { max-width: var(--prose); margin: 0 auto; font-size: 1.08rem; line-height: 1.72; }
@media (max-width: 600px) { .prose { font-size: 1.02rem; line-height: 1.68; } .prose .lead { font-size: 1.12rem; } }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; color: var(--nuit); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose .lead { font-size: 1.22rem; line-height: 1.6; color: var(--nuit); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ciel); color: var(--bleu); font-weight: 500; }
.prose .key { background: var(--brume); border-radius: var(--radius); padding: 22px 24px; margin: 1.6em 0; }
.prose .key ol { margin: 0; }
.prose .key h2 { margin-top: 0; font-size: 1.3rem; }
.prose details { border-top: 1px solid var(--ligne); padding: 14px 0; }
.prose details:last-of-type { border-bottom: 1px solid var(--ligne); }
.prose summary { font-weight: 700; cursor: pointer; color: var(--nuit); }
.prose details p { margin: 10px 0 0; }
.prose .sources { font-size: .94rem; color: var(--gris); }
.prose .sources a { word-break: break-word; }
.prose .credit { font-size: .9rem; color: var(--gris); font-style: italic; }
.next-box {
  margin: 48px auto 0; max-width: var(--prose);
  background: var(--nuit); color: var(--blanc); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
}
.next-box::after { content: ""; position: absolute; right: 0; top: 0; width: 96px; height: 72px; background: url("../img/pixels-br.svg") right top / contain no-repeat; transform: scaleY(-1); }
.next-box h2 { color: var(--blanc); font-size: 1.4rem; margin: 0 0 8px; max-width: 85%; }
.next-box p { color: var(--ciel); margin: 0 0 20px; }

/* ---------------------------------------------------------------- pied de page */
.site-footer { background: var(--nuit); color: var(--ciel); padding: 56px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-grid h2 { font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--median); margin: 6px 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--blanc); text-decoration: none; }
.site-footer a:hover { color: var(--ciel); text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(190, 219, 255, .15); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; color: var(--median); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------------------------------------------------------------- glossaire */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.letters a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--radius);
  background: var(--blanc); border: 1px solid var(--ligne);
  font: 500 .9rem/1 var(--mono); color: var(--bleu); text-decoration: none;
}
.letters a:hover { border-color: var(--bleu); }
.glossary { max-width: var(--prose); }
.glossary h2 { font: 500 .9rem/1 var(--mono); letter-spacing: .14em; color: var(--median); margin: 40px 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--ligne); }
.glossary dl { margin: 0; }
.glossary dt { font-weight: 700; font-size: 1.15rem; color: var(--nuit); margin-top: 22px; scroll-margin-top: calc(var(--header-h) + 16px); }
.glossary dt em { font-weight: 400; color: var(--gris); font-size: .95rem; }
.glossary dd { margin: 6px 0 0; color: var(--nuit); line-height: 1.65; }
.glossary dd a { font-size: .92rem; white-space: nowrap; }
.glossary dt:target { background: var(--ciel); }

/* ---------------------------------------------------------------- FAQ (accueil) */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--ligne); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--ligne); }
.faq summary { font-weight: 700; font-size: 1.08rem; cursor: pointer; color: var(--nuit); }
.faq details p { margin: 12px 0 0; color: var(--gris); max-width: 46em; }

/* fil d'Ariane */
.crumbs { font-size: .9rem; color: var(--gris); margin: 0 0 14px; }
.crumbs a { color: var(--gris); }
