/* ==========================================================================
   MyCoreDev — feuille de style principale
   Mobile d'abord. Toutes les valeurs passent par les variables ci-dessous.
   ========================================================================== */

/* ---------- 0. Polices, hébergées sur le site (aucun appel à Google Fonts) ----------
   Polices variables sous licence SIL Open Font License 1.1 : voir /assets/fonts/LICENCES.txt */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. Design tokens ---------- */
:root {
  /* Couleurs de base */
  --c-bg: #ffffff;
  --c-surface: #f5f5f7;
  --c-surface-2: #ebebef;
  --c-text: #1d1d1f;
  --c-text-2: #5e5e63;      /* 6.4:1 sur blanc */
  --c-border: #d2d2d7;
  --c-border-strong: #a1a1a6;

  /* Marque */
  --c-brand: #ff7a45;       /* fonds, pictos, décor — jamais en texte sur blanc */
  --c-brand-soft: #fff1ea;
  --c-brand-ink: #b84a1a;   /* texte et liens orange : 5.2:1 sur blanc */
  --c-on-brand: #1d1d1f;    /* texte sur fond orange : 6.5:1 */

  /* Niveaux */
  --c-lvl1: #1f7a4d; --c-lvl1-bg: #e6f4ec;   /* Découverte */
  --c-lvl2: #1f5fa8; --c-lvl2-bg: #e7f0fb;   /* Intermédiaire */
  --c-lvl3: #6b3fa0; --c-lvl3-bg: #f1eafa;   /* Avancé */

  /* États */
  --c-success: #1f7a4d;
  --c-focus: #1f5fa8;

  /* Typographie */
  --f-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Échelle fluide (mobile → desktop) */
  --fs-hero: clamp(2.5rem, 1.6rem + 4.5vw, 5rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-xs: .8125rem;

  /* Espacements (base 4px) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  /* Formes */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-2: 0 4px 12px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.08);

  --container: 1200px;
  --measure: 68ch;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* Surfaces « inversées » (bouton sombre, puce active, toast) et blocs de code */
  --c-inverse: #1d1d1f; --c-on-inverse: #ffffff; --c-inverse-hover: #000000; --c-inverse-muted: #c7c7cc;
  --c-code: #1d1d1f; --c-code-border: transparent;
  --c-on-level: #ffffff;
  --c-card: #ffffff;   /* fond des cartes, champs, puces */
  --c-header-bg: rgba(255,255,255,.82); --c-hairline: rgba(0,0,0,.08);
  --c-warn: #8a5a00; --c-warn-bg: #fff6dc;
  --c-danger: #b42318; --c-danger-bg: #fdecea;
  color-scheme: light;
}

/* ---------- 1 bis. Mode nuit ----------
   data-theme="dark" est posé sur <html> par theme.js : réglage de l'appareil par défaut,
   ou choix du bouton lune/soleil (mémorisé). Une seule palette, nuancée :
   anthracite légèrement chaud plutôt que noir, cartes un cran plus claires que la page
   (elles ressortent au lieu de se creuser), blanc cassé pour ne pas éblouir. */
:root[data-theme="dark"] {
  --c-bg: #1b1a1e; --c-surface: #211f24; --c-surface-2: #2c2a30;
  --c-card: #26242a;
  --c-text: #ebe9ee; --c-text-2: #aba8b1; --c-border: #36343b; --c-border-strong: #5b5861;
  --c-brand-soft: #3d2920; --c-brand-ink: #ffa47d;
  --c-lvl1: #62c898; --c-lvl1-bg: #1c3127; --c-lvl2: #83b5ee; --c-lvl2-bg: #1d2c41; --c-lvl3: #c0a1e6; --c-lvl3-bg: #2f253d;
  --c-success: #62c898; --c-focus: #83b5ee;
  --shadow-1: 0 1px 2px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.18);
  --shadow-2: 0 4px 14px rgba(0,0,0,.28), 0 18px 44px rgba(0,0,0,.30);
  --c-inverse: #e6e3ea; --c-on-inverse: #1b1a1e; --c-inverse-hover: #f3f1f5; --c-inverse-muted: #6a6770;
  --c-code: #141317; --c-code-border: #302e35; --c-on-level: #16151a;
  --c-header-bg: rgba(27,26,30,.84); --c-hairline: rgba(255,255,255,.07);
  --c-warn: #eec766; --c-warn-bg: #352c16; --c-danger: #ff9a90; --c-danger-bg: #3b1d1b;
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 var(--fs-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 var(--s-4); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
p { margin: 0 0 var(--s-4); }
a { color: var(--c-brand-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
code, kbd { font-family: var(--f-mono); font-size: .9em; }

.skip-link { position: absolute; left: var(--s-4); top: -100px; background: var(--c-inverse); color: var(--c-on-inverse); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: var(--s-4); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Mise en page ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 768px) { .container { padding-inline: var(--s-6); } }
.section { padding-block: var(--s-8); }
@media (min-width: 768px) { .section { padding-block: var(--s-9); } }
.section--alt { background: var(--c-surface); }
.grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.stack > * + * { margin-top: var(--s-4); }
.eyebrow { font: 600 var(--fs-xs)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-brand-ink); margin-bottom: var(--s-3); }
.lead { font-size: var(--fs-lead); color: var(--c-text-2); line-height: 1.5; max-width: 40ch; }
.muted { color: var(--c-text-2); }

/* ---------- 4. En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-header-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--c-hairline); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); height: 60px; }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); font: 700 1.125rem/1 var(--f-display); color: var(--c-text); text-decoration: none; letter-spacing: -.02em; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.nav { display: none; gap: var(--s-5); margin-left: auto; }
.nav a { color: var(--c-text); text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-brand-ink); }
.header-actions { display: flex; gap: var(--s-1); margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .header-actions { margin-left: var(--s-4); } .icon-btn.menu-toggle { display: none; } }

/* ---------- 5. Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 1px solid transparent; font: 600 var(--fs-small)/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background-color .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--c-brand); color: var(--c-on-brand); }
.btn--primary:hover { background: #ff6a2f; box-shadow: 0 6px 20px rgba(255,122,69,.35); }
.btn--dark { background: var(--c-inverse); color: var(--c-on-inverse); }
.btn--dark:hover { background: var(--c-inverse-hover); }
.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-text); }
.btn--link { background: none; padding: 0; min-height: 44px; color: var(--c-brand-ink); }
.btn--link:hover { text-decoration: underline; }
.btn--sm { min-height: 36px; padding: 0 var(--s-4); font-size: var(--fs-xs); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--c-text); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--c-surface); }
.icon-btn svg { width: 20px; height: 20px; }
/* Très petits écrans (320 px, ou 360 px avec barre de défilement) : l'en-tête débordait de quelques pixels */
@media (max-width: 379px) {
  .site-header__inner { gap: var(--s-2); }
  .header-actions { gap: 0; }
  .site-header .icon-btn { width: 36px; height: 36px; }
}
.icon-btn__count { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-brand); color: var(--c-on-brand); font: 700 11px/18px var(--f-body); }

/* ---------- 6. Recherche ---------- */
.search { position: relative; max-width: 640px; }
.search__input { width: 100%; height: 60px; padding: 0 var(--s-5) 0 56px; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-card); font: 400 1.0625rem var(--f-body); color: var(--c-text); box-shadow: var(--shadow-1); transition: box-shadow .2s, border-color .2s; }
.search__input::placeholder { color: var(--c-text-2); }
.search__input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(255,122,69,.2), var(--shadow-2); }
.search__icon { position: absolute; left: 20px; top: 30px; translate: 0 -50%; width: 22px; height: 22px; color: var(--c-text-2); pointer-events: none; }
/* Formulaire du site (accueil, Recherche, 404) : champ et bouton séparés dans une grille, la croix d'effacement
   reste dans l'enveloppe du champ et ne passe jamais sous « Rechercher » (CONCEPTION_MOTEUR_2026-10-01/03, 2026-10-01).
   Le filtre du glossaire (div.search) garde les règles de base ci-dessus. */
form.search { position: static; }
.search__label { display: block; margin-bottom: var(--s-2); font: 600 var(--fs-body)/1.35 var(--f-body); color: var(--c-text); }
.search__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); align-items: stretch; }
.search__field { position: relative; min-width: 0; }
form.search .search__input { height: 56px; padding: 0 52px 0 52px; }
form.search .search__icon { top: 50%; left: 18px; }
.search__clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--c-text-2); cursor: pointer; }
.search__clear:hover { background: var(--c-surface); color: var(--c-text); }
.search__clear svg { width: 18px; height: 18px; }
.search__submit { min-height: 56px; padding: 0 var(--s-5); }
.search__suggestions { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-card); color: var(--c-text); box-shadow: var(--shadow-2); overflow: hidden; text-align: left; }
.search__suggestions-title { padding: 10px 16px 6px; color: var(--c-text-2); font-size: var(--fs-xs); }
.search__options { list-style: none; margin: 0; padding: 4px; max-height: min(280px, 42vh); overflow-y: auto; overscroll-behavior: contain; }
.search__option { padding: 11px 12px; min-height: 44px; border-radius: var(--r-sm); font-size: var(--fs-body); line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; }
.search__option:hover, .search__option[aria-selected="true"] { background: var(--c-brand-soft); }
.search__option[aria-selected="true"] { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.search__option strong { font-weight: 650; }
/* Un seul contrôle d'effacement : la croix native disparaît seulement quand la croix du site est active (JavaScript) */
form.search.search--js .search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
@media (max-width: 560px) { /* téléphone : bouton sous le champ, pleine largeur */
  .search__row { grid-template-columns: minmax(0, 1fr); }
  .search__submit { width: 100%; }
  form.search .search__input { padding-left: 46px; }
  form.search .search__icon { left: 15px; width: 20px; height: 20px; }
}
.search__help { margin: var(--s-2) 0 0; font-size: var(--fs-small); color: var(--c-text-2); }
.search__examples { margin-top: var(--s-3); }

/* ---------- 7. Badges et filtres ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font: 600 var(--fs-xs)/1.3 var(--f-body); background: var(--c-surface); color: var(--c-text-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--plain::before { display: none; }
.badge--lvl1 { background: var(--c-lvl1-bg); color: var(--c-lvl1); }
.badge--lvl2 { background: var(--c-lvl2-bg); color: var(--c-lvl2); }
.badge--lvl3 { background: var(--c-lvl3-bg); color: var(--c-lvl3); }
.badge--brand { background: var(--c-brand-soft); color: var(--c-brand-ink); }

.chips { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-1); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-card); color: var(--c-text); font: 500 var(--fs-small)/1 var(--f-body); text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: var(--c-text); }
.chip[aria-pressed="true"] { background: var(--c-inverse); border-color: var(--c-inverse); color: var(--c-on-inverse); }
.chip__count { color: var(--c-text-2); font-weight: 400; }
.chip[aria-pressed="true"] .chip__count { color: var(--c-inverse-muted); }

/* ---------- 8. Cartes ---------- */
/* Cartes « entre-deux » (2026-10-05) : visuels d'origine (illustration, pictogramme et extrait du prompt, cœur en pied)
   et repères de la page Résultats (catégorie en capitales orange, niveau sur la même ligne). Survol : bord plus
   marqué, ombre, légère montée ; focus : contour de la carte. */
.card { position: relative; display: flex; flex-direction: column; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card__media { aspect-ratio: 12/5; background: var(--c-surface); display: grid; place-items: center; }
.card__media { position: relative; overflow: hidden; }
.card__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }   /* sinon le dessin (16:9) impose sa hauteur au cadre */
:root[data-theme="dark"] .card__media svg { filter: brightness(.78) saturate(.8); }
.card__preview { font: 400 var(--fs-xs)/1.55 var(--f-mono); color: var(--c-text-2); background: var(--c-surface); border-radius: var(--r-sm); padding: 0; border: var(--s-3) solid transparent; /* bordure plutôt que marge : la ligne coupée ne déborde pas dans la marge */ margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--c-border-strong); }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.card__title a:focus-visible { outline: none; }
.card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1; }
.card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-brand-soft); color: var(--c-brand-ink); }
.card__icon svg { width: 22px; height: 22px; }
/* Carte illustrée : le pictogramme chevauche le bas de l'illustration, entouré d'un anneau couleur de carte */
.card__media + .card__body .card__icon { position: relative; margin-top: calc(-1 * (var(--s-5) + 22px)); box-shadow: 0 0 0 4px var(--c-card); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); margin: 0; font-size: var(--fs-xs); color: var(--c-text-2); }
.card--item .card__meta { margin-bottom: 6px; }
.card__meta .badge { padding: 2px 8px; }
.card__kind { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand-ink); }
.card__title { font-size: 1.1875rem; line-height: 1.3; margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* toute la carte est cliquable */
.card__excerpt { color: var(--c-text-2); font-size: var(--fs-small); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--s-1); font-size: var(--fs-xs); color: var(--c-text-2); }
.card .fav-btn { position: relative; z-index: 2; }
.card__footer > .fav-btn:only-child { margin-left: auto; }

.tile { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-lg); background: var(--c-surface); text-decoration: none; color: var(--c-text); transition: background-color .2s; }
.tile:hover { background: var(--c-surface-2); }
.tile svg { width: 28px; height: 28px; color: var(--c-brand); }
.tile strong { font: 600 1.0625rem/1.3 var(--f-display); }
.tile span { font-size: var(--fs-xs); color: var(--c-text-2); }

/* ---------- 9. Favori ---------- */
.fav-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--c-text-2); cursor: pointer; transition: color .15s, background-color .15s, transform .15s; }
.fav-btn:hover { background: var(--c-surface); color: var(--c-text); }
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn[aria-pressed="true"] { color: var(--c-brand); }
.fav-btn[aria-pressed="true"] svg { --heart-fill: currentColor; }
.fav-btn[aria-pressed="true"]:active { transform: scale(1.2); }

/* ---------- 10. Bloc prompt ---------- */
.prompt-box { border-radius: var(--r-lg); background: var(--c-code); border: 1px solid var(--c-code-border); color: #f5f5f7; overflow: hidden; }
.prompt-box__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); color: #a1a1a6; }
.prompt-box__body { margin: 0; padding: var(--s-5); font: 400 .9375rem/1.7 var(--f-mono); white-space: pre-wrap; word-break: break-word; }
.prompt-box .var { background: rgba(255,122,69,.18); color: #ffb08f; border-radius: 4px; padding: 1px 4px; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 0; background: var(--c-brand); color: var(--c-on-brand); font: 600 var(--fs-xs)/1 var(--f-body); cursor: pointer; }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.is-copied { background: #3ecf8e; }

/* ---------- 11. Encadrés ---------- */
.callout { display: flex; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-md); background: var(--c-surface); }
.callout svg { flex: none; width: 24px; height: 24px; }
.callout__title { font: 600 1rem/1.3 var(--f-display); margin: 0 0 var(--s-2); }
.callout p:last-child { margin: 0; }
.callout--key { background: var(--c-lvl2-bg); } .callout--key svg { color: var(--c-lvl2); }
.callout--try { background: var(--c-brand-soft); } .callout--try svg { color: var(--c-brand-ink); }
.callout--warn { background: var(--c-warn-bg); } .callout--warn svg { color: var(--c-warn); }

/* ---------- 12. Terme du glossaire ---------- */
.term { position: relative; display: inline; }
.term__word { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted var(--c-brand) 2px; text-underline-offset: .25em; }
/* Bulle : absente de la mise en page tant qu'elle est fermée (sinon elle élargit la page sur mobile) ;
   main.js la décale (--tip-shift, en marge : un décalage dans translate laissait la page élargie dans Chrome)
   pour qu'elle reste dans l'écran quand le mot est près d'un bord. */
.term__tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 0; margin-left: var(--tip-shift, 0px); width: min(300px, calc(100vw - 32px)); padding: var(--s-4); border-radius: var(--r-md); background: var(--c-code); color: #f5f5f7; font-size: var(--fs-small); line-height: 1.5; text-align: left; box-shadow: var(--shadow-2); z-index: 10; }
.term.is-below .term__tip { top: calc(100% + 10px); bottom: auto; }
.term__tip strong { display: block; color: #fff; margin-bottom: 4px; font-family: var(--f-display); }
.term__tip a { color: #ffb08f; }
.term:hover .term__tip, .term:focus-within .term__tip, .term.is-open .term__tip { display: block; animation: tip-in .15s; }
@keyframes tip-in { from { opacity: 0; } }
.term.is-closed .term__tip { display: none; } /* Échap : fermée malgré le survol ou le focus, jusqu'à ce qu'on la quitte */

/* ---------- 13. Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field .hint { font-size: var(--fs-xs); color: var(--c-text-2); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background: var(--c-card); font: inherit; color: var(--c-text); }
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-focus); box-shadow: 0 0 0 3px rgba(31,95,168,.2); }

/* ---------- 14. Pied de page ---------- */
.site-footer { background: var(--c-surface); padding-block: var(--s-7); font-size: var(--fs-small); color: var(--c-text-2); }
.site-footer a { color: var(--c-text-2); text-decoration: none; }
.site-footer a:hover { color: var(--c-text); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid .footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid .footer-brand { grid-column: auto; } }
.footer-title { font: 600 var(--fs-small)/1.3 var(--f-display); color: var(--c-text); margin: 0 0 var(--s-3); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-border); font-size: var(--fs-xs); }

/* ---------- 15. Menu mobile ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--c-bg); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-5); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border); font: 600 1.5rem/1.2 var(--f-display); color: var(--c-text); text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ---------- 16. Accueil ---------- */
.hero { padding-block: var(--s-7) var(--s-8); overflow: hidden; }
@media (min-width: 1024px) { .hero { padding-block: var(--s-9); } }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-8); } }
.hero__title { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -.035em; margin-bottom: var(--s-5); }
.hero__title em { font-style: normal; color: #e8612a; } /* orange assombri : 3,9:1, suffisant pour un très grand texte */
.hero .lead { margin-bottom: var(--s-6); }
.hero .search { margin-bottom: var(--s-5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-6) 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--c-text-2); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--c-success); }

/* Accueil V3 : recherche au premier plan, une colonne centrée (validé le 2026-10-02, maquette
   _prive/verification-moteur-20261002/proposition-accueil-v3.html). Limité à l'accueil : .hero--search-first,
   .search-first et .search--home ; les autres formulaires de recherche gardent leurs styles. */
.hero--search-first { padding-block: 56px 52px; }
.search-first { max-width: 920px; text-align: center; }
.search-first .hero__title { font-size: clamp(40px, 5vw, 66px); line-height: 1.08; margin-bottom: 18px; }
.search-first .lead { max-width: 790px; margin: 0 auto 30px; font-size: 19px; line-height: 1.6; }
.search-first form.search { max-width: 820px; margin: 0 auto; text-align: left; }
.search-first form.search .search__input { height: 64px; font-size: 18px; }
.search-first form.search .search__submit { min-height: 64px; padding-inline: 28px; }
.search--home .search__submit { background: var(--c-brand); color: var(--c-on-brand); }
.search--home .search__submit:hover { background: #ff6a2f; box-shadow: 0 6px 20px rgba(255,122,69,.35); }
.search--home .search__submit:focus-visible { outline: 3px solid var(--c-text); outline-offset: 3px; }
.search-first .search__examples { justify-content: center; margin-top: 16px; }
.search-first .hero__ctas { justify-content: center; gap: 12px 24px; margin-top: 28px; font-size: 15px; }
.search-first .hero__ctas a { color: var(--c-text); text-decoration: underline; text-underline-offset: 4px; }
.search-first .hero__ctas a:hover { color: var(--c-brand-ink); }
.search-first .trust { justify-content: center; gap: 12px 28px; margin-top: 20px; font-size: 15px; }
.search-first .trust li { white-space: normal; }
.search-first .trust svg { flex: 0 0 16px; }
@media (max-width: 560px) {
  .hero--search-first { padding-block: 28px 32px; }
  .search-first .lead { font-size: 17px; line-height: 1.55; margin-bottom: 26px; }
  .search-first form.search .search__input { height: 60px; font-size: 16px; }
  .search-first form.search .search__submit { min-height: 52px; }
  .search-first .hero__ctas { flex-direction: column; gap: 14px; }
  .search-first .trust { gap: 10px 20px; font-size: 14px; line-height: 1.5; }
  .search-first .trust li { justify-content: center; }
}
@media (max-width: 360px) { .search-first .trust { flex-direction: column; align-items: center; } }

/* En-têtes de section */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6); }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--s-2) 0 0; color: var(--c-text-2); max-width: 52ch; }

/* Accueil : une sélection éditoriale, un outil mis en avant, un parcours guidé. */
.home-section__label { margin: 0 0 var(--s-3); color: var(--c-brand-ink); font: 600 var(--fs-xs)/1.5 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.home-section .section-head h2 { font-size: var(--fs-h1); }
.home-editorial { display: grid; gap: var(--s-6); align-items: stretch; }
.home-editorial > * { min-width: 0; }
.home-editorial__feature .card { height: 100%; }
.home-editorial__feature .card__body { padding: var(--s-6); }
/* Conserver le format 12/5 des illustrations, sans bandes ni recadrage. */
.home-editorial__feature .card__media { background: var(--c-brand-soft); }
.home-editorial__feature .card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.18; }
.home-editorial__feature .card__excerpt { font-size: var(--fs-body); -webkit-line-clamp: 4; }
.home-editorial__feature .card__media + .card__body .card__icon { margin-top: calc(-1 * (var(--s-6) + 22px)); }
.home-editorial__list { --home-thumb-width: 112px; display: flex; flex-direction: column; }
.home-editorial__list .card { display: grid; grid-template-columns: var(--home-thumb-width) minmax(0, 1fr); gap: var(--s-5); padding: var(--s-4) 0; border: 0; border-bottom: 1px solid var(--c-border); border-radius: 0; background: transparent; overflow: visible; }
.home-editorial__list .card:first-child { padding-top: 0; }
.home-editorial__list .card:last-child { border-bottom: 0; padding-bottom: 0; }
.home-editorial__list .card:hover { transform: none; box-shadow: none; }
.home-editorial__list .card:hover .card__title a { text-decoration: underline; text-underline-offset: .2em; }
.home-editorial__list .card__media { border-radius: var(--r-sm); background: var(--c-brand-soft); }
.home-editorial__list .card__body { padding: 0; gap: var(--s-1); }
.home-editorial__list .card__media + .card__body .card__icon { position: absolute; left: calc(var(--home-thumb-width) - 28px); top: calc(var(--home-thumb-width) * 5 / 12 + var(--s-4) - 16px); width: 24px; height: 24px; border-radius: 6px; margin: 0; box-shadow: 0 0 0 3px var(--c-bg); }
.home-editorial__list .card:first-child .card__icon { top: calc(var(--home-thumb-width) * 5 / 12 - 16px); }
.home-editorial__list .card__icon svg { width: 16px; height: 16px; }
.home-editorial__list .card__title { font-size: 1rem; line-height: 1.3; }
.home-editorial__list .card__excerpt { display: none; }
.home-editorial__list .card__footer { padding-top: 0; font-size: .6875rem; }
.home-editorial__list .card__meta { font-size: .6875rem; }
@media (min-width: 1000px) { .home-editorial { grid-template-columns: 1.05fr 1fr; gap: var(--s-7); } }
@media (max-width: 400px) {
  .home-editorial__feature .card__body { padding: var(--s-5); }
  .home-editorial__feature .card__media + .card__body .card__icon { margin-top: calc(-1 * (var(--s-5) + 22px)); }
  .home-editorial__list { --home-thumb-width: 80px; }
  .home-editorial__list .card { gap: var(--s-4); }
}

/* Ma Demande IA : mise en avant sur l'accueil */
.demande-promo { display: grid; gap: var(--s-7); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: 28px; background: #232126; color: #faf7f4; }
.demande-promo > * { min-width: 0; }
.demande-promo__kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); font: 600 1.125rem/1.4 var(--f-display); }
.demande-promo__kicker span { color: #ffb08f; font: 600 var(--fs-xs)/1.4 var(--f-body); }
.demande-promo h2 { max-width: 16ch; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.08; }
.demande-promo h2 em { font-style: normal; color: #ffb08f; }
.demande-promo__description { max-width: 40ch; margin-bottom: var(--s-6); color: #cecad1; }
.demande-promo__note { max-width: 40ch; margin: var(--s-3) 0 0; color: #cecad1; font-size: var(--fs-xs); }
.demande-promo__intro .btn:focus-visible { outline-color: #ffb08f; }
.demande-example { margin: 0; padding: var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-card); color: var(--c-text); box-shadow: 10px 10px 0 rgba(255,176,143,.12); }
/* En mode nuit, conserver la silhouette de l'encart sans feuille blanche éblouissante. */
:root[data-theme="dark"] .demande-promo { background: #2b2425; box-shadow: inset 0 0 0 1px rgba(255,176,143,.24); }
:root[data-theme="dark"] .demande-example { background: #343036; border-color: #62504a; }
.demande-example figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-5); font: 600 1rem/1.4 var(--f-display); }
.demande-example figcaption span { color: var(--c-text-2); font: 400 var(--fs-xs)/1.4 var(--f-body); }
.demande-example__steps { list-style: none; counter-reset: demande-step; padding: 0; margin: 0; }
.demande-example__steps > li { position: relative; counter-increment: demande-step; padding-left: 42px; }
.demande-example__steps > li + li { margin-top: var(--s-5); }
.demande-example__steps > li::before { content: counter(demande-step, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand-ink); font: 600 .75rem/1 var(--f-body); }
.demande-example__steps p { margin-bottom: var(--s-2); font-size: var(--fs-small); }
.demande-example__steps .demande-example__label { padding-top: 3px; font-size: var(--fs-xs); color: var(--c-text-2); }
.demande-example__choices { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.demande-example__choices li { padding: var(--s-1) var(--s-2); background: var(--c-surface); border-radius: var(--r-sm); font-size: var(--fs-xs); }
.demande-example blockquote { margin: 0; padding: var(--s-4); border-left: 3px solid var(--c-brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--c-surface); font-size: var(--fs-small); line-height: 1.6; }
.demande-example blockquote span { display: inline-block; margin-top: var(--s-2); color: var(--c-text-2); }
.demande-example__link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-top: var(--s-4); font-size: var(--fs-small); font-weight: 600; }
.demande-example__link svg { width: 16px; height: 16px; flex: none; }
#ma-demande-ia, #pas-a-pas { scroll-margin-top: 84px; }
@media (min-width: 900px) {
  .demande-promo { grid-template-columns: 1fr 1fr; }
  .demande-example { padding: var(--s-6); }
}
@media (max-width: 400px) {
  .demande-example { padding: var(--s-4); }
  .demande-example__steps > li { padding-left: 0; }
  .demande-example__steps > li::before { display: none; }
  .demande-promo .btn { width: 100%; padding-inline: var(--s-3); line-height: 1.4; }
}

/* Parcours Pas à pas : dernière section de l'accueil */
.journey-head { display: grid; gap: var(--s-6); margin-bottom: var(--s-7); align-items: end; }
@media (min-width: 900px) { .journey-head { grid-template-columns: 1fr 360px; } }
.journey-head h2 { font-size: var(--fs-h1); margin-bottom: var(--s-3); }
.journey-head .lead { max-width: 46ch; margin: 0; }
.progress-card { padding: var(--s-5); border-radius: var(--r-lg); background: var(--c-card); box-shadow: var(--shadow-1); border: 1px solid var(--c-border); }
.progress-card__label { display: flex; justify-content: space-between; font-size: var(--fs-small); margin-bottom: var(--s-2); }
.progress-card__label strong { font-family: var(--f-display); }
.progress-bar { height: 8px; border-radius: var(--r-pill); background: var(--c-surface-2); overflow: hidden; margin-bottom: var(--s-4); }
.progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c-brand); transition: width .4s var(--ease); }
.progress-card .btn { width: 100%; }

.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); position: relative; }
.journey::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--c-border); }
.journey__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); }
.journey__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-card); border: 2px solid var(--c-border-strong); font: 600 1.0625rem/1 var(--f-display); color: var(--c-text); transition: background-color .2s, border-color .2s, color .2s; }
.journey__dot svg { width: 20px; height: 20px; display: none; }
.journey__card { position: relative; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-lg); background: var(--c-card); border: 1px solid var(--c-border); transition: box-shadow .25s var(--ease), border-color .25s; }
.journey__card:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.journey__card .badge { align-self: flex-start; }
.journey__title { margin: var(--s-1) 0 0; font-size: 1.1875rem; }
.journey__title a { color: inherit; text-decoration: none; }
.journey__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.journey__card p { margin: 0; font-size: var(--fs-small); color: var(--c-text-2); }
.journey__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); font-size: var(--fs-xs); color: var(--c-text-2); }
.done-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-card); color: var(--c-text-2); font: 500 var(--fs-xs)/1 var(--f-body); cursor: pointer; }
.done-btn:hover { border-color: var(--c-text); color: var(--c-text); }
.done-btn svg { width: 14px; height: 14px; }
.done-btn[aria-pressed="true"] { background: var(--c-lvl1-bg); border-color: transparent; color: var(--c-lvl1); }
/* Étape terminée */
.journey__step.is-done .journey__dot { background: var(--c-lvl1); border-color: var(--c-lvl1); color: var(--c-on-level); }
.journey__step.is-done .journey__dot span { display: none; }
.journey__step.is-done .journey__dot svg { display: block; }
/* Prochaine étape à faire */
.journey__step.is-next .journey__dot { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); box-shadow: 0 0 0 6px rgba(255,122,69,.2); }
.journey__step.is-next .journey__card { border-color: var(--c-brand); }
.journey__next { display: none; font: 700 var(--fs-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--c-brand-ink); }
.journey__step.is-next .journey__next { display: block; }

@media (min-width: 1024px) {
  .journey { grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
  .journey::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .journey__step { grid-template-columns: 1fr; grid-template-rows: 44px 1fr; gap: var(--s-4); }
  .journey__card { padding: var(--s-4); }
  .journey__meta { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .done-btn { justify-content: center; }
}

/* Étapes */
.steps { counter-reset: step; display: grid; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s-4); border-radius: 50%; background: var(--c-inverse); color: var(--c-on-inverse); font: 600 1.125rem/1 var(--f-display); }
.steps h3 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.steps p { color: var(--c-text-2); margin: 0; }

/* Mot du jour */
.term-feature { display: grid; gap: var(--s-6); padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-surface); }
/* Mot et définition empilés jusqu'à 1024 px : côte à côte plus tôt, la grande police coupait les mots en plein milieu.
   Ensuite, la définition garde au moins 16rem : un mot long passe à la ligne au lieu de l'écraser (« Mémoire (des assistants) ») */
@media (min-width: 768px) { .term-feature { padding: var(--s-7); } }
@media (min-width: 1024px) { .term-feature { grid-template-columns: minmax(0, max-content) minmax(16rem, 1fr); align-items: center; } }
.term-feature__word { font: 700 clamp(2.5rem, 2rem + 3vw, 4.5rem)/1 var(--f-display); letter-spacing: -.03em; }
/* Mot du jour très long (« Anonymisation et pseudonymisation ») : il se coupe au lieu d'élargir la page sur mobile */
.term-feature > * { min-width: 0; }
.term-feature__word { overflow-wrap: anywhere; hyphens: auto; }
.term-feature__word small { display: block; margin-top: var(--s-2); font: 400 var(--fs-small)/1.4 var(--f-body); letter-spacing: 0; color: var(--c-text-2); }
.term-feature p { font-size: var(--fs-lead); line-height: 1.5; margin-bottom: var(--s-3); }

/* ==========================================================================
   Pages intérieures (V1)
   ========================================================================== */

/* ---------- 17. Utilitaires ---------- */
.narrow { max-width: calc(var(--measure) + 2 * var(--s-6)); }
.section--tight { padding-block: var(--s-6) var(--s-8); }
@media (min-width: 768px) { .section--tight { padding-block: var(--s-7) var(--s-9); } }
.lead--wide { max-width: 60ch; }
.h3 { font-size: var(--fs-h3); }
.flip { transform: scaleX(-1); }
.inline-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; }
mark { background: var(--c-warn-bg); color: var(--c-warn); padding: 0 4px; border-radius: 4px; }

/* ---------- 18. En-tête de page et fil d'Ariane ---------- */
/* Bandeau d'en-tête commun à toutes les pages intérieures (harmonisation du 2026-10-05 avec la page Résultats) :
   fond gris clair, filet fin, contenu blanc dessous. Avec des onglets de filtre : .page-head--tabs (bas sans marge). */
.page-head { padding-block: var(--s-5) var(--s-6); background: var(--c-surface); border-bottom: 1px solid var(--c-hairline); }
@media (min-width: 768px) { .page-head { padding-block: var(--s-5) var(--s-7); } }
.page-head--tabs, .page-head.page-head--tabs { padding-bottom: 0; }
.page-head .breadcrumb { margin-bottom: var(--s-4); }
.page-head .meta-pill { background: var(--c-card); }
.page-head + .section--flush-top { padding-top: var(--s-6); }
.page-head h1 { max-width: 22ch; margin-bottom: var(--s-4); }
.page-head .lead { margin-bottom: 0; }
.page-head .search { margin-top: var(--s-6); }
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.breadcrumb { margin-bottom: var(--s-5); font-size: var(--fs-xs); color: var(--c-text-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: var(--s-2); color: var(--c-border-strong); }
.breadcrumb a { color: var(--c-text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-text); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--c-text); }
.meta-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--c-surface); font-size: var(--fs-xs); color: var(--c-text-2); }
.meta-pill svg { width: 15px; height: 15px; }
.meta-pill.is-done-pill { background: var(--c-lvl1-bg); color: var(--c-lvl1); font-weight: 600; }
[data-fav-text][aria-pressed="true"] { border-color: var(--c-brand); background: var(--c-brand-soft); }
[data-fav-text][aria-pressed="true"] svg { --heart-fill: var(--c-brand); color: var(--c-brand); }

/* ---------- 19. Filtres, compteurs, états vides ---------- */
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chips--small { margin-top: var(--s-3); }
.chips--small .chip { min-height: 36px; font-size: var(--fs-xs); }
.chip svg { width: 16px; height: 16px; }
.chip[aria-current="true"] { background: var(--c-inverse); border-color: var(--c-inverse); color: var(--c-on-inverse); }
.chip[aria-current="true"] .chip__count { color: var(--c-inverse-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--lvl1 { background: var(--c-lvl1); } .dot--lvl2 { background: var(--c-lvl2); } .dot--lvl3 { background: var(--c-lvl3); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--c-surface); }
.field--inline { flex: 1 1 180px; gap: var(--s-1); }
.field--inline label { font-size: var(--fs-xs); color: var(--c-text-2); }
.field--inline .select { min-height: 44px; padding-block: var(--s-2); }
.js .filters__submit { display: none; }
.results-count { margin: var(--s-6) 0 var(--s-4); font-size: var(--fs-small); color: var(--c-text-2); }
[data-favs] .results-title { margin-top: 0; }
[data-favs-group] + [data-favs-group] { margin-top: var(--s-7); }
.results-title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-h3); margin: var(--s-7) 0 var(--s-4); scroll-margin-top: 80px; }
.results-partial { margin-top: var(--s-8); padding-top: var(--s-2); border-top: 1px solid var(--c-border); }
.results-partial .results-title { margin-top: var(--s-5); margin-bottom: var(--s-2); }
.results-title--sub { font-size: var(--fs-body); margin-top: var(--s-6); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); padding: var(--s-8) var(--s-5); border: 1px dashed var(--c-border); border-radius: var(--r-lg); }
.empty > svg { width: 40px; height: 40px; color: var(--c-brand); margin-bottom: var(--s-2); }
.empty h2 { font-size: var(--fs-h3); margin: 0; }
.empty p { color: var(--c-text-2); max-width: 46ch; margin-bottom: var(--s-4); }
.tile--wide { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.tile--wide span { flex-basis: 100%; }
/* Accueil : décryptages et guides côte à côte sous la recherche (2026-10-03, retravaillé le même jour).
   Deux panneaux de même poids, empilés sous 900px : en-tête à pastille orange pleine, trois lignes,
   pied de panneau pleine largeur. Chaque ligne est entièrement cliquable par le lien de son titre
   (::after étendu), un seul lien par ligne pour le clavier et les lecteurs d'écran. */
.rubriques__grid { display: grid; gap: var(--s-5); }
.rubrique {
  --pad: var(--s-6); --row-hover: var(--c-surface); --glow: rgba(255,122,69,.09); --tile-ring: rgba(184,74,26,.10); --foot-bg: rgba(245,245,247,.6);
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  padding: var(--pad) var(--pad) 0; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-card); box-shadow: var(--shadow-1);
}
:root[data-theme="dark"] .rubrique { --row-hover: var(--c-surface-2); --glow: rgba(255,122,69,.08); --tile-ring: rgba(255,164,125,.14); --foot-bg: rgba(0,0,0,.14); }
/* Halo orange très léger derrière l'en-tête : la seule touche décorative du panneau */
.rubrique::before { content: ""; position: absolute; inset: 0 0 auto; height: 220px; z-index: -1; pointer-events: none; background: radial-gradient(90% 100% at 0% 0%, var(--glow), transparent 70%); }
.rubrique__head { display: grid; grid-template-columns: 52px 1fr; column-gap: var(--s-4); align-items: center; margin-bottom: var(--s-4); }
.rubrique__badge { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--c-brand); color: var(--c-on-brand); box-shadow: 0 6px 16px rgba(255,122,69,.28); }
.rubrique__badge svg { width: 26px; height: 26px; }
.rubrique__title { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); letter-spacing: -.025em; margin: 0 0 2px; }
.rubrique__intro { color: var(--c-text-2); margin: 0; }
.rubrique__list { list-style: none; margin: 0 calc(-1 * var(--s-3)); padding: 0; }
.rubrique__item { position: relative; display: grid; grid-template-columns: 48px 1fr 32px; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-3); border-radius: var(--r-md); transition: background-color .15s var(--ease); }
.rubrique__item + .rubrique__item::before { content: ""; position: absolute; top: 0; left: var(--s-3); right: var(--s-3); border-top: 1px solid var(--c-hairline); }
.rubrique__item:hover, .rubrique__item:focus-within { background: var(--row-hover); }
.rubrique__item:hover::before, .rubrique__item:hover + .rubrique__item::before,
.rubrique__item:focus-within::before, .rubrique__item:focus-within + .rubrique__item::before { opacity: 0; }
.rubrique__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--c-brand-soft); color: var(--c-brand-ink); box-shadow: inset 0 0 0 1px var(--tile-ring); transition: transform .2s var(--ease); }
.rubrique__icon svg { width: 24px; height: 24px; }
.rubrique__item:hover .rubrique__icon { transform: scale(1.05); }
.rubrique__text { min-width: 0; }
.rubrique__text h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; margin: 0 0 4px; }
.rubrique__text h3 a { color: var(--c-text); text-decoration: none; }
.rubrique__text h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.rubrique__text h3 a:focus-visible { outline: none; }
.rubrique__text h3 a:focus-visible::after { outline: 3px solid var(--c-focus); outline-offset: -1px; }
.rubrique__item:hover h3 a { color: var(--c-brand-ink); }
/* Même contenu dans les deux panneaux (titre + une phrase), même limite : 2 lignes, 3 sur téléphone */
.rubrique__text p { --lines: 2; margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--c-text-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines); line-clamp: var(--lines); overflow: hidden; }
/* Flèche de ligne dans une pastille discrète, qui se remplit d'orange au survol */
.rubrique__go { box-sizing: content-box; width: 16px; height: 16px; padding: 8px; border-radius: 50%; color: var(--c-text-2); transition: transform .2s var(--ease), background-color .2s, color .2s; }
.rubrique__item:hover .rubrique__go, .rubrique__item:focus-within .rubrique__go { background: var(--c-brand); color: var(--c-on-brand); transform: translateX(2px); }
.rubrique__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-3) calc(-1 * var(--pad)) 0; padding: var(--s-4) var(--pad); border-top: 1px solid var(--c-hairline); background: var(--foot-bg); color: var(--c-text); font: 600 var(--fs-small)/1.3 var(--f-body); text-decoration: none; transition: color .15s, background-color .15s; }
.rubrique__foot:hover { color: var(--c-brand-ink); background: var(--row-hover); }
.rubrique__foot:focus-visible { outline-offset: -4px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.rubrique__foot-go { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand-ink); transition: transform .2s var(--ease), background-color .2s, color .2s; }
.rubrique__foot-go svg { width: 16px; height: 16px; }
.rubrique__foot:hover .rubrique__foot-go { background: var(--c-brand); color: var(--c-on-brand); transform: translateX(3px); }
@media (min-width: 900px) {
  .rubriques__grid { grid-template-columns: 1fr 1fr; gap: 0 var(--s-6); }
  /* Lignes alignées d'un panneau à l'autre (en-tête, trois lignes, pied) : même poids visuel
     quel que soit le texte. Sans subgrid, les panneaux restent simplement de même hauteur. */
  @supports (grid-template-rows: subgrid) {
    .rubrique { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .rubrique__list { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
    .rubrique__foot { align-self: end; }
  }
}
@media (max-width: 560px) {
  .rubrique { --pad: var(--s-4); padding-top: var(--s-5); border-radius: var(--r-md); }
  .rubrique__head { grid-template-columns: 44px 1fr; column-gap: var(--s-3); }
  .rubrique__badge { width: 44px; height: 44px; border-radius: 12px; }
  .rubrique__badge svg { width: 22px; height: 22px; }
  .rubrique__list { margin-inline: calc(-1 * var(--s-2)); }
  .rubrique__item { grid-template-columns: 40px 1fr; gap: var(--s-3); padding: var(--s-3) var(--s-2); align-items: start; }
  .rubrique__item + .rubrique__item::before { left: var(--s-2); right: var(--s-2); }
  .rubrique__icon { width: 40px; height: 40px; border-radius: 12px; }
  .rubrique__icon svg { width: 20px; height: 20px; }
  .rubrique__go { display: none; }
  .rubrique__text p { --lines: 3; }
  .rubrique__foot:focus-visible { border-radius: 0 0 var(--r-md) var(--r-md); }
}
/* ---------- Page Recherche (design du 2026-10-05, maquette _prive/proposition-recherche-20261005) ----------
   Bandeau : même champ que l'accueil (.search--home, bouton orange) et filtres en onglets. Résultats : réponse
   principale (.sr-top), 2e et 3e meilleurs (.sr-card), autres ressources en liste compacte (.sr-row). Toute la carte
   est cliquable par le lien du titre (.sr-link::after) ; le cœur des favoris reste au-dessus (.sr-fav). */
.sr-band { padding-block: var(--s-5) 0; background: var(--c-surface); border-bottom: 1px solid var(--c-hairline); }
.sr-band--empty { padding-bottom: var(--s-7); }
.sr-band h1 { margin-bottom: var(--s-5); }
.sr-band form.search { max-width: 760px; }
.sr-band form.search .search__input { height: 60px; }
.sr-band form.search .search__submit { min-height: 60px; padding-inline: 28px; }
@media (max-width: 560px) { .sr-band form.search .search__submit { min-height: 52px; } }
/* Onglets de filtre au bas d'un bandeau (Résultats, Décryptages) : soulignement orange sur l'onglet actif,
   défilement horizontal sur téléphone */
.tabs { display: flex; gap: var(--s-1); margin-top: var(--s-4); overflow-x: auto; scrollbar-width: none; }
.page-head .tabs { margin-top: var(--s-6); }
@media (min-width: 900px) { .tabs { flex-wrap: wrap; overflow: visible; } }   /* grand écran : tous les onglets visibles */
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-4); border-bottom: 3px solid transparent; color: var(--c-text-2); font: 500 var(--fs-small)/1 var(--f-body); text-decoration: none; white-space: nowrap; }
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--c-text); }
.tab[aria-current="true"] { border-bottom-color: var(--c-brand); color: var(--c-text); font-weight: 600; }
.tab__n { min-width: 22px; padding: 2px 7px; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-text-2); font: 600 var(--fs-xs)/1.3 var(--f-body); text-align: center; }
.tab[aria-current="true"] .tab__n { background: var(--c-inverse); color: var(--c-on-inverse); }

.sr-layout { display: grid; gap: var(--s-7); padding-block: var(--s-6) var(--s-8); }
@media (min-width: 1024px) { .sr-layout { grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: var(--s-8); } }
.sr-main { min-width: 0; }
.sr-head { margin: 0 0 var(--s-5); font-size: var(--fs-h3); letter-spacing: -.01em; }
.sr-sub { margin: calc(-1 * var(--s-4)) 0 var(--s-5); font-size: var(--fs-small); color: var(--c-text-2); }
.sr-section-title { margin: var(--s-7) 0 var(--s-4); font-size: 1.125rem; letter-spacing: -.01em; scroll-margin-top: 80px; }
.sr-section-title--first { margin-top: 0; }
.sr-section-title + .sr-sub { margin-top: calc(-1 * var(--s-2)); }

/* Pictogramme du type de ressource : même tuile pour tous les types, seul le dessin change */
.sr-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-brand-soft); color: var(--c-brand-ink); }
.sr-ico svg { width: 22px; height: 22px; }
.sr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); margin: 0 0 6px; font-size: var(--fs-xs); color: var(--c-text-2); }
.sr-kind { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand-ink); }
.sr-meta .badge { padding: 2px 8px; }
.sr-link { color: var(--c-text); text-decoration: none; }
.sr-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sr-link:focus-visible { outline: none; }
.sr-fav { position: relative; z-index: 1; }
.sr-why { display: flex; align-items: center; gap: 6px; margin: var(--s-4) 0 0; font-size: var(--fs-xs); font-weight: 600; color: var(--c-success); }
.sr-why svg { flex: none; width: 16px; height: 16px; }
.sr-passage { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: var(--s-2) 0 0; padding: 4px 10px; border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-xs); font-weight: 500; }
.sr-passage svg { flex: none; width: 14px; height: 14px; color: var(--c-brand-ink); }
.sr-passage span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-limit { display: flex; gap: 6px; margin: var(--s-2) 0 0; font-size: var(--fs-xs); color: var(--c-warn); }
.sr-limit svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }

/* Réponse principale */
.sr-top { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4) var(--s-5); padding: var(--s-6); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-card); box-shadow: var(--shadow-1); transition: box-shadow .25s var(--ease), border-color .25s, transform .25s var(--ease); }
.sr-top::before { content: ""; position: absolute; left: -1px; top: 28px; bottom: 28px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c-brand); }
.sr-top:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.sr-top .sr-ico { width: 56px; height: 56px; border-radius: 16px; }
.sr-top .sr-ico svg { width: 28px; height: 28px; }
.sr-top__title { margin: 0 0 var(--s-3); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); line-height: 1.2; }
.sr-top__excerpt { margin: 0; max-width: 60ch; color: var(--c-text-2); }
.sr-top--definition .sr-top__excerpt { color: var(--c-text); font-size: var(--fs-lead); line-height: 1.5; }
.sr-top__actions { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.sr-top__actions .btn svg { transition: translate .2s var(--ease); }
.sr-top:hover .sr-top__actions .btn svg { translate: 3px 0; }
@media (max-width: 560px) {
  .sr-top { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); }
  .sr-top .sr-ico { display: none; }   /* le type est déjà écrit au-dessus du titre */
  .sr-top__actions .btn { flex: 1; }
}

/* 2e et 3e meilleurs résultats */
.sr-best { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@media (min-width: 640px) { .sr-best { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sr-card { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-card); transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.sr-card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.sr-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.sr-card__title { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.sr-card__excerpt { margin: 0; font-size: var(--fs-small); color: var(--c-text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sr-card .sr-passage, .sr-card .sr-why { margin-top: 0; }
.sr-card .sr-why { margin-top: auto; }

/* Autres ressources : un seul bloc, séparateurs fins */
.sr-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-card); overflow: hidden; }
.sr-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: start; padding: var(--s-4) var(--s-5); transition: background-color .15s; }
.sr-row + .sr-row { border-top: 1px solid var(--c-border); }
.sr-row:hover { background: var(--c-surface); }
.sr-row .sr-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--c-surface); color: var(--c-text-2); transition: background-color .15s, color .15s; }
.sr-row:hover .sr-ico { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.sr-row .sr-ico svg { width: 20px; height: 20px; }
.sr-row:hover .sr-passage { background: var(--c-card); }
.sr-row__title { margin: 0 0 4px; font: 600 1.0625rem/1.3 var(--f-display); letter-spacing: -.01em; }
.sr-row__excerpt { margin: 0; font-size: var(--fs-small); color: var(--c-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
  .sr-row { grid-template-columns: minmax(0, 1fr) auto; padding: var(--s-4); }
  .sr-row .sr-ico { display: none; }
}
/* Focus clavier : le contour entoure toute la ressource */
.sr-top:has(.sr-link:focus-visible), .sr-card:has(.sr-link:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.sr-row:has(.sr-link:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: -3px; }

/* Recherche à plusieurs sens : la question passe en premier */
.sr-choices { margin-bottom: var(--s-5); padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-brand-soft); }
.sr-choices h2 { margin: 0 0 var(--s-2); font-size: var(--fs-h3); }
.sr-choices p { margin: 0 0 var(--s-5); font-size: var(--fs-small); color: var(--c-text-2); }
.sr-choices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .sr-choices ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sr-choices { padding: var(--s-5); } }
.sr-choice { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-5); border: 1px solid transparent; border-radius: var(--r-md); background: var(--c-card); box-shadow: var(--shadow-1); color: var(--c-text); font-weight: 600; text-decoration: none; transition: border-color .15s; }
.sr-choice svg { flex: none; width: 18px; height: 18px; color: var(--c-brand-ink); transition: translate .2s var(--ease); }
.sr-choice:hover { border-color: var(--c-brand); }
.sr-choice:hover svg { translate: 3px 0; }

/* Aucun résultat */
.sr-empty { padding: var(--s-7) var(--s-6); border: 1px dashed var(--c-border-strong); border-radius: var(--r-lg); text-align: center; }
.sr-empty > svg { width: 40px; height: 40px; margin: 0 auto var(--s-4); color: var(--c-brand); }
.sr-empty h2 { margin-bottom: var(--s-2); font-size: var(--fs-h3); }
.sr-empty p { max-width: 46ch; margin: 0 auto var(--s-5); color: var(--c-text-2); }
@media (max-width: 560px) { .sr-empty { padding: var(--s-6) var(--s-4); } }
.sr-rubrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); text-align: left; }
@media (min-width: 640px) { .sr-rubrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sr-rubrics a { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-small); font-weight: 600; text-decoration: none; transition: background-color .15s; }
.sr-rubrics a:hover { background: var(--c-surface-2); }
.sr-rubrics svg { width: 24px; height: 24px; color: var(--c-brand); }

/* Colonne d'aide : à droite sur grand écran, sous les résultats sur téléphone */
.sr-aside { display: grid; gap: var(--s-4); align-content: start; }
@media (min-width: 1024px) { .sr-aside { align-self: start; position: sticky; top: calc(60px + var(--s-5)); max-height: calc(100vh - 60px - 2 * var(--s-5)); overflow-y: auto; } }
.sr-help { padding: var(--s-5); border-radius: var(--r-lg); background: var(--c-surface); }
.sr-help h2 { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-2); font-size: 1rem; letter-spacing: 0; }
.sr-help h2 svg { width: 18px; height: 18px; color: var(--c-brand-ink); }
.sr-help p { margin: 0 0 var(--s-3); font-size: var(--fs-small); color: var(--c-text-2); }
.sr-help .chips { gap: 6px; margin-top: 0; }
.sr-help .chip { min-height: 36px; font-size: var(--fs-xs); }

.search-message { padding: var(--s-5); border-radius: var(--r-md); background: var(--c-warn-bg); }
.search-message p:last-child { margin-bottom: 0; }
.search-message .actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.sr-main > .search-message { margin-bottom: var(--s-5); }
.search-suggestion { font-size: var(--fs-small); }
.search-notice { margin-bottom: var(--s-5); }
@media (max-width: 560px) { .search-notice { padding: var(--s-4); gap: var(--s-3); font-size: var(--fs-small); } }
.pagination { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- 21. Article et texte long ---------- */
.page-head--article { padding-bottom: var(--s-5); }
.page-head--article .card__meta a { color: var(--c-text-2); }
.article-hero { margin-top: var(--s-6); aspect-ratio: 21/9; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface); max-height: 360px; width: 100%; }
.article-layout { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-9); }
/* Les colonnes peuvent rétrécir sous la largeur de leur contenu : un tableau large défile dans son cadre, pas la page */
.article-layout > * { min-width: 0; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 220px minmax(0, var(--measure)); gap: var(--s-8); justify-content: center; } }
.toc { font-size: var(--fs-small); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-surface); align-self: start; }
.toc-shell { align-self: start; scroll-margin-top: 84px; }
.toc--desktop { display: none; }
.toc--mobile { padding: 0; }
.toc--mobile > summary { min-height: 56px; padding: var(--s-4) var(--s-5); font-weight: 600; cursor: pointer; }
.toc--mobile > summary::marker { color: var(--c-brand-ink); }
.toc--mobile > nav { padding: 0 var(--s-5) var(--s-4); }
@media (min-width: 1024px) {
  .toc-shell { position: sticky; top: 84px; }
  .toc--desktop { display: block; background: none; padding: 0; }
  .toc--mobile { display: none; }
}
@media (max-width: 767px) {
  .article-hero { margin: var(--s-3) auto 0; aspect-ratio: 21/9; max-width: 280px; max-height: 120px; border-radius: var(--r-md); }
  .article-layout--decryptage { padding-top: var(--s-5); gap: var(--s-5); }
}
.toc__title { font: 600 var(--fs-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-2); margin-bottom: var(--s-3); }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.toc a { color: var(--c-text-2); text-decoration: none; }
.toc a:hover { color: var(--c-brand-ink); }
/* Guides : texte continu ; sommaire repliable sur mobile et latéral sur ordinateur. */
.guide-layout { --measure: 66ch; gap: var(--s-7); }
.guide-layout .toc ul { list-style: none; display: grid; gap: var(--s-2); padding: 0; margin: 0; }
.guide-layout .toc a { display: block; padding-block: var(--s-1); line-height: 1.5; }
.guide-layout .toc__sub { padding-left: var(--s-4); border-left: 1px solid var(--c-border); }
.guide-prose { font-size: var(--fs-body); line-height: 1.85; overflow-wrap: break-word; }
.prose.guide-prose > * + * { margin-top: var(--s-5); }
.prose.guide-prose h2 { margin: var(--s-8) 0 var(--s-5); padding-top: var(--s-6); border-top: 1px solid var(--c-border); font-size: clamp(1.5rem, 1.25rem + .75vw, 2rem); line-height: 1.25; }
.prose.guide-prose h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
.prose.guide-prose h3 { margin: var(--s-7) 0 var(--s-4); line-height: 1.4; }
.prose.guide-prose ul, .prose.guide-prose ol { gap: var(--s-4); }
.guide-prose .guide-example { padding: var(--s-5); background: var(--c-surface); border-radius: var(--r-md); }
.guide-prose .guide-check { padding: var(--s-3) 0 var(--s-3) var(--s-5); border-left: 3px solid var(--c-brand); }
.guide-prose .guide-example > * + *, .guide-prose .guide-check > * + * { margin-top: var(--s-3); }
.guide-prose .guide-label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--c-text-2); }
.guide-prose .guide-source { font-size: var(--fs-small); line-height: 1.7; color: var(--c-text-2); }
.guide-prose .guide-routes { list-style: none; padding: 0; }
.guide-prose .guide-routes li { padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-border); }
.guide-prose .guide-routes a { display: block; font-weight: 600; }
.guide-prose .guide-routes > li > span { display: block; margin-top: var(--s-1); color: var(--c-text-2); }
.guide-prose .guide-model { margin-block: var(--s-7); }
.guide-prose .guide-model > * + * { margin-top: var(--s-4); }
.guide-prose .guide-model dl { display: grid; gap: var(--s-4); margin: var(--s-5) 0; }
.guide-prose .guide-model dt { font-weight: 600; }
.guide-prose .guide-model dd { margin: var(--s-1) 0 0; }
.guide-prose .prompt-box { margin-block: var(--s-6); }
/* Choix A (11 octobre 2026) : des relations lisibles, du texte continu et des contrôles concrets. */
.guide-prose .guide-visual { margin: var(--s-6) 0; padding: var(--s-5) 0; }
.guide-prose .guide-visual figcaption { color: var(--c-text); font-weight: 650; font-size: var(--fs-body); margin-bottom: var(--s-5); text-align: left; }
.guide-prose .guide-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-5); list-style: none; padding: 0; margin: 0; }
.guide-prose .guide-flow > li { position: relative; min-width: 0; padding: var(--s-4); background: var(--c-surface); border-radius: var(--r-sm); font-size: var(--fs-small); line-height: 1.65; }
.guide-prose .guide-flow > li + li::before { content: '\2192'; position: absolute; inset-inline-start: calc(-1 * var(--s-5)); top: calc(50% - .8em); width: var(--s-5); text-align: center; color: var(--c-brand-ink); }
.guide-prose .guide-flow > li > strong, .guide-prose .guide-flow > li > span { display: block; }
.guide-prose .guide-flow > li > span { margin-top: var(--s-2); }
.guide-prose .guide-flow .guide-focus { background: var(--c-brand-soft); border: 1px solid var(--c-brand); }
.guide-prose .guide-caption { color: var(--c-text-2); font-size: var(--fs-small); line-height: 1.65; margin-top: var(--s-4); }
.guide-prose .guide-frame { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-4); }
.guide-prose .guide-frame > .guide-label { margin-bottom: var(--s-4); }
.guide-prose .guide-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); margin-block: var(--s-5); }
.guide-prose .guide-pair > div { min-width: 0; border-inline-start: 2px solid var(--c-border); padding-inline-start: var(--s-4); }
.guide-prose .guide-pair h3, .guide-prose .guide-pair h4 { margin-top: 0; }
.guide-prose .guide-pair > div > * + * { margin-top: var(--s-3); }
.guide-prose .guide-table { margin-block: var(--s-6); }
.guide-prose .guide-table table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.6; }
.guide-prose .guide-table caption { text-align: left; font-weight: 650; font-size: var(--fs-body); margin-bottom: var(--s-4); }
.guide-prose .guide-table th, .guide-prose .guide-table td { padding: var(--s-4) var(--s-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); hyphens: auto; overflow-wrap: anywhere; }
.guide-prose .guide-table thead { background: var(--c-surface); }
.guide-prose .guide-table th { font-weight: 650; }
.guide-prose .guide-table td p + p { margin-top: var(--s-3); }
.guide-prose .guide-table small { display: block; font-size: inherit; color: var(--c-text-2); }
.guide-prose .guide-table .guide-unknown { background: var(--c-brand-soft); }
.guide-prose .guide-model { padding-top: var(--s-5); border-top: 1px solid var(--c-border); }
.guide-prose .guide-model dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-prose .guide-model dl > div { min-width: 0; }
@media (max-width: 639px) {
  .guide-prose .guide-flow, .guide-prose .guide-pair, .guide-prose .guide-model dl { grid-template-columns: minmax(0, 1fr); }
  .guide-prose .guide-flow > li + li::before { content: '\2193'; inset-inline-start: calc(50% - .5em); top: calc(-1 * var(--s-5)); width: 1em; line-height: var(--s-5); }
  .guide-prose .guide-table th, .guide-prose .guide-table td { padding: var(--s-3) var(--s-2); }
  .guide-prose .guide-frame { padding: var(--s-3); }
}
@media (min-width: 1024px) {
  .guide-layout { grid-template-columns: 240px minmax(0, var(--measure)); gap: var(--s-9); }
  .guide-layout .toc { max-height: calc(100dvh - 108px); overflow-y: auto; padding-right: var(--s-4); border-radius: 0; scrollbar-width: thin; }
  .guide-prose .guide-example { padding: var(--s-6); }
}
@media print {
  .toc-shell { position: static; }
  .toc--desktop { display: block; }
  .toc--mobile { display: none; }
  .guide-layout { display: block; }
  .guide-layout .toc { position: static; max-height: none; overflow: visible; margin-bottom: var(--s-7); }
  .guide-prose .guide-check, .guide-prose .guide-example { break-inside: avoid; }
  .guide-prose .guide-visual, .guide-prose .guide-table, .guide-prose .guide-pair { break-inside: avoid; }
}
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: var(--fs-h2); margin: var(--s-7) 0 var(--s-3); scroll-margin-top: 84px; }
#verifier { scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: var(--s-6) 0 var(--s-2); scroll-margin-top: 84px; }
/* Tableaux des guides : défilement horizontal sur petit écran plutôt qu'un débordement de page */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-small); }
.table th, .table td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-border); }
.table th { background: var(--c-surface); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.jump-links { font-weight: 600; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--c-brand-ink); }
.prose .callout, .prose .prompt-box, .prose .quiz, .prose .not-prose { margin-block: var(--s-5); }
.prose .callout ul { margin-top: var(--s-2); }
.link-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: var(--s-2); }
.link-list a { display: inline-flex; align-items: center; gap: var(--s-2); }
.link-list svg { width: 16px; height: 16px; flex: none; }
/* Accueil, bloc Guides : lien sur une ligne (flèche + titre), courte utilité dessous, alignée sur le titre */

/* Quiz et questions dépliables */
.quiz { display: grid; gap: var(--s-2); }
.quiz details { border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-card); }
.quiz summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; padding: var(--s-3) var(--s-4); font-weight: 600; cursor: pointer; list-style: none; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-surface); font: 500 1.25rem/1 var(--f-body); color: var(--c-text-2); transition: transform .2s; }
.quiz details[open] summary::after { transform: rotate(45deg); }
.quiz details p { margin: 0; padding: 0 var(--s-4) var(--s-4); color: var(--c-text-2); }

/* Blocs pédagogiques */
/* Parcours, étape 2 : six outils. Mobile = lignes compactes (nom à gauche, adresse à droite), puis grille de 3 */
.tool-links { display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
.tool-links .tile { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-1) var(--s-3); padding: var(--s-3) var(--s-4); }
@media (min-width: 560px) {
  .tool-links { gap: var(--s-3); grid-template-columns: repeat(3, 1fr); }
  .tool-links .tile { flex-direction: column; justify-content: flex-start; align-items: stretch; padding: var(--s-5); }
}
.compare { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1.6fr; } }
.compare__col { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); }
.compare__col p { margin: 0; }
.compare__col--before { background: var(--c-surface); color: var(--c-text-2); }
.compare__col--after { background: var(--c-lvl1-bg); }
.compare__label { font: 700 var(--fs-xs)/1 var(--f-body) !important; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-2) !important; }
.compare__col--after .compare__label { color: var(--c-lvl1); }
.ingredients strong { color: var(--c-brand-ink); }
.uses { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .uses { grid-template-columns: repeat(2, 1fr); } }
.uses__item { display: grid; grid-template-columns: 24px 1fr; gap: 2px var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--c-surface); color: var(--c-text); text-decoration: none; }
.uses__item:hover { background: var(--c-surface-2); }
.uses__item svg { grid-row: span 2; width: 24px; height: 24px; color: var(--c-brand); }
.uses__item span { font-size: var(--fs-xs); color: var(--c-text-2); }

/* ---------- 22. Parcours : étape ---------- */
.stepper { display: flex; align-items: center; gap: 0; list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.stepper li { display: flex; align-items: center; flex: 1; }
.stepper li:last-child { flex: none; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin-inline: 4px; background: var(--c-border); }
.stepper li.is-done:not(:last-child)::after { background: var(--c-lvl1); }
.stepper a { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--c-border-strong); background: var(--c-card); color: var(--c-text); font: 600 var(--fs-small)/1 var(--f-display); text-decoration: none; }
.stepper li.is-done a { background: var(--c-lvl1); border-color: var(--c-lvl1); color: var(--c-on-level); }
.stepper li.is-current a { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); box-shadow: 0 0 0 5px rgba(255,122,69,.2); }
.goal { margin-bottom: var(--s-7); padding: var(--s-5); border-radius: var(--r-lg); background: var(--c-surface); }
.goal__title { font: 600 var(--fs-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-2); margin-bottom: var(--s-3); }
.goal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.goal li { display: flex; gap: var(--s-2); }
.goal li svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--c-lvl1); }
.finish { margin-top: var(--s-8); padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); border: 2px solid var(--c-brand); text-align: center; }
.finish h2 { margin-bottom: var(--s-2); }
.finish .btn--link { display: flex; margin: var(--s-3) auto 0; }
.finish.is-done { border-color: var(--c-lvl1); background: var(--c-lvl1-bg); }
.finish__check { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto var(--s-4); border-radius: 50%; background: var(--c-lvl1); color: var(--c-on-level); }
.finish__check svg { width: 28px; height: 28px; }
.pager { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager__link { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4) var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-md); color: var(--c-text); text-decoration: none; font: 600 1rem/1.3 var(--f-display); }
.pager__link:hover { border-color: var(--c-text); }
.pager__link small { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--fs-xs)/1 var(--f-body); color: var(--c-text-2); }
.pager__link small svg { width: 14px; height: 14px; }
.pager__link--next { text-align: right; align-items: flex-end; grid-column: -2; }

/* ---------- 23. Glossaire ---------- */
.search--compact .search__input { height: 52px; }
.search--compact .search__icon { top: 26px; }
.az { position: sticky; top: 60px; z-index: 5; display: flex; flex-wrap: wrap; gap: 2px; padding: var(--s-2) 0; margin-bottom: var(--s-5); background: var(--c-header-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.az a, .az span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); font: 600 var(--fs-small)/1 var(--f-display); }
.az a { color: var(--c-text); text-decoration: none; }
.az a:hover { background: var(--c-surface); }
.az span { color: var(--c-border); }
.gloss { display: grid; gap: var(--s-6); }
.gloss__group { display: grid; gap: var(--s-3); scroll-margin-top: 120px; }
@media (min-width: 768px) { .gloss__group { grid-template-columns: 64px 1fr; } }
.gloss__letter { font-size: var(--fs-h2); color: var(--c-brand); margin: 0; }
.gloss__list { display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .gloss__list { grid-template-columns: 1fr 1fr; } }
.gloss__item { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4) var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-md); color: var(--c-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.gloss__item:hover { border-color: transparent; box-shadow: var(--shadow-2); }
.gloss__item strong { font: 600 1.0625rem/1.3 var(--f-display); }
.gloss__item span { font-size: var(--fs-small); color: var(--c-text-2); }

/* ---------- 24. Recherche ---------- */
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.result-list a { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4) var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-md); color: var(--c-text); text-decoration: none; }
.result-list a:hover { border-color: var(--c-text); }
.result-list strong { font: 600 1.0625rem/1.3 var(--f-display); }
.result-list span { font-size: var(--fs-small); color: var(--c-text-2); }
.result-list .result-list__kicker { font: 600 var(--fs-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--c-brand-ink); }

/* ---------- 25. Formulaire de contact ---------- */
.form { max-width: 560px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-small); color: var(--c-danger); }
.field__error svg { flex: none; width: 16px; height: 16px; margin-top: 4px; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--c-danger); }
.notice { display: flex; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-md); margin-bottom: var(--s-6); }
.notice > svg { flex: none; width: 24px; height: 24px; }
.notice p { margin: 0 0 var(--s-2); }
.notice p:last-child, .notice ul { margin-bottom: 0; }
.notice ul { padding-left: 1.2em; }
.notice--success { background: var(--c-lvl1-bg); } .notice--success > svg { color: var(--c-lvl1); }
.notice--error { background: var(--c-danger-bg); } .notice--error > svg { color: var(--c-danger); }
.notice--error a { color: var(--c-danger); }

/* ---------- 26. Divers ---------- */
.big-code { font: 700 clamp(5rem, 4rem + 8vw, 10rem)/1 var(--f-display); letter-spacing: -.05em; color: var(--c-brand); margin: 0 0 var(--s-4); }
.toast { position: fixed; left: 50%; bottom: var(--s-5); translate: -50% 0; z-index: 80; display: flex; align-items: center; gap: var(--s-2); max-width: calc(100% - 2 * var(--s-4)); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); background: var(--c-inverse); color: var(--c-on-inverse); font-size: var(--fs-small); box-shadow: var(--shadow-2); }
.toast svg { width: 18px; height: 18px; color: var(--c-success); flex: none; }
/* ---------- 27. Mode nuit : bouton et ajustements ---------- */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
/* Illustrations claires un peu adoucies la nuit, pour ne pas éblouir */
:root[data-theme="dark"] .article-hero svg { filter: brightness(.78) saturate(.8); }
/* Logo : version inversée (carré blanc) sur fond sombre, comme le prévoit la charte */
.logo__mark--dark { display: none; }
:root[data-theme="dark"] .logo__mark--light { display: none; }
:root[data-theme="dark"] .logo__mark--dark { display: block; }
/* Mention « rien n'est enregistré » des fiches prompt */
.privacy-note { display: flex; gap: var(--s-2); margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-lvl1-bg); color: var(--c-text); font-size: var(--fs-xs); line-height: 1.5; }
.privacy-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--c-lvl1); }
/* Informations d'exemple affichées au-dessus de l'exemple de résultat */
.sample { display: grid; gap: var(--s-2); margin: 0 0 var(--s-5); padding: var(--s-4); border: 1px dashed var(--c-border); border-radius: var(--r-md); background: var(--c-card); font-size: var(--fs-sm); }
.sample div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: var(--s-3); }
.sample dt { color: var(--c-text-2); }
.sample dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .sample div { grid-template-columns: 1fr; gap: 0; } }
/* Nuit : halo chaud très léger derrière le haut de l'accueil, pour éviter l'aplat */
:root[data-theme="dark"] .hero { background: radial-gradient(ellipse 70% 60% at 75% 10%, rgba(255,122,69,.07), transparent 70%); }
:root[data-theme="dark"] .card:hover, :root[data-theme="dark"] .journey__card:hover { border-color: var(--c-border-strong); }

/* Carte sans texte en pied : le cœur des favoris reste à droite */

/* ---------- 28. Petites classes réutilisables (remplacent les styles écrits dans les pages) ---------- */
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: var(--s-3); } .mb-5 { margin-bottom: var(--s-5); } .my-5 { margin-block: var(--s-5); }
.measure { max-width: var(--measure); }
.small { font-size: var(--fs-xs); }
.section--flush-top { padding-top: 0; }
.actions-center { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.btn--inline { min-height: 0; }          /* lien-bouton au fil d'un texte */
.article-hero svg { width: 100%; height: 100%; }
.progress-card__note { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--c-text-2); text-align: center; }
.footer-brand__text { margin-top: var(--s-3); max-width: 32ch; }
.page-404 { text-align: center; }
.page-404 .lead { margin-inline: auto; }
.page-404 .search { margin: var(--s-6) auto; }
/* ---------- 29. Page « Quel modèle d'IA choisir ? » (/modeles-ia) et lien depuis les pages de prompts ---------- */
.open-in__models { display: flex; align-items: flex-start; gap: var(--s-2); margin: var(--s-3) 0 0; font-size: var(--fs-small); }
.open-in__models svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--c-brand-ink); }
.open-in__models .muted { font-size: var(--fs-xs); }
#sommaire { scroll-margin-top: 84px; }
.h2-note { font: 400 var(--fs-small)/1 var(--f-body); color: var(--c-text-2); }
.needs, .models { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .needs, .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.need, .model { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-card); font-size: var(--fs-small); min-width: 0; }
.need p, .model p, .need__tools, .model__facts { margin: 0; }
.prose .need__title, .prose .model__name { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-size: 1.125rem; }
.need__title svg { flex: none; width: 22px; height: 22px; color: var(--c-brand-ink); }
.need__tools { padding-left: 1.1em; display: grid; gap: var(--s-1); }
.need__tools a { font-weight: 600; }
.model__version { color: var(--c-text-2); font: 400 var(--fs-xs)/1.4 var(--f-mono); overflow-wrap: anywhere; }
.model__facts { display: grid; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--c-border); }
.model__facts dt { font-weight: 600; font-size: var(--fs-xs); color: var(--c-text-2); }
.model__facts dd { margin: 0; overflow-wrap: anywhere; }
.brief { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-surface); font-size: var(--fs-small); }
.brief__title { margin: 0 0 var(--s-3); font: 600 var(--fs-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-2); }
.brief dl { display: grid; gap: var(--s-2); margin: 0; }
.brief dl div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--s-3); }
.brief dt { font-weight: 600; }
.brief dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .brief dl div { grid-template-columns: 1fr; gap: 0; } }
.model__type { margin: 0; font: 600 var(--fs-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--c-brand-ink); }
.model__sens { font: 400 var(--fs-small)/1.3 var(--f-body); color: var(--c-text-2); }
.prose .model__name { flex-wrap: wrap; gap: 0 var(--s-2); }
.choice { display: grid; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-5); border: 1px solid var(--c-border); border-left: 4px solid var(--c-brand); border-radius: var(--r-md); background: var(--c-card); font-size: var(--fs-small); }
.choice p { margin: 0; }
.prose .choice__title { margin: 0; font-size: 1.125rem; }

/* Catalogue éditorial unifié (préparation locale du 14 octobre 2026). */
.badge--guide { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.badge--reading { background: var(--reading-bg, var(--c-surface-2)); color: var(--reading-ink, var(--c-text)); }
.badge--reading-novice { --reading-bg: #e4f5ed; --reading-ink: #176440; }
.badge--reading-intermediaire { --reading-bg: #e7f0fb; --reading-ink: #1f5fa8; }
.badge--reading-avance { --reading-bg: #fff2da; --reading-ink: #854509; }
.badge--reading-expert { --reading-bg: #f1eafa; --reading-ink: #6b3fa0; }
.editorial-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin: 1.5rem 0; }
.editorial-filters label { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; font-weight: 600; min-width: 0; max-width: 100%; }
.editorial-filters select { font: inherit; padding: .65rem 2rem .65rem .75rem; border: 1px solid var(--c-border-strong); border-radius: .65rem; background: var(--c-bg); color: var(--c-text); min-width: 0; max-width: 100%; }
:root[data-theme="dark"] .badge--reading-novice { --reading-bg: #17382c; --reading-ink: #a4e5c0; }
:root[data-theme="dark"] .badge--reading-intermediaire { --reading-bg: #19334d; --reading-ink: #acd2ff; }
:root[data-theme="dark"] .badge--reading-avance { --reading-bg: #45301b; --reading-ink: #ffda9c; }
:root[data-theme="dark"] .badge--reading-expert { --reading-bg: #362544; --reading-ink: #dfbefa; }
html[data-theme="dark"] .badge--guide { background: #493323; color: #ffd1a1; }
