/* ═══════════════════════════════════════════════════════════════════════
   GUIDES DE FLIPIO (www.flipio.immo/guides/...)

   Feuille commune aux guides statiques. Elle reprend le vocabulaire de
   landing/index.html (en-tête en verre, boutons, cartes, pied de page) et y
   ajoute ce que demande une lecture longue : colonne de 720 px, sommaire
   collant, encadrés, sources numérotées.

   1. TOKENS, recopiés à l'identique de landing/index.html, qui les recopie
   lui-même de src/app/globals.css, seule source de vérité. Sombre par
   défaut, clair sous [data-theme="light"]. Aucun autre hex dans ce fichier,
   hors palette réglementaire des DPE (src/lib/dpe-colors.ts).
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --bg:            #16191A;
  --bg-subtle:     #1E2122;
  --bg-muted:      #242728;
  --surface:       #1D2122;
  --surface-2:     #212526;
  --surface-3:     #262A2B;

  --text:          #E1E5E4;
  --text-2:        #B2BAB8;
  --text-muted:    #8E9795;
  --text-dim:      #737C7A;
  --text-faint:    #5B6362;

  --accent:        #00FF88;
  --accent-on:     #04140C;
  --accent-ink:    #5CFFB4;
  --accent-wash:   #194030;
  --accent-line:   #146441;
  --green-line:    #5CFFB4;

  --blue-ink:      #40A0FF;
  --warn-ink:      #FF9A5C;
  --warn-wash:     #3D2E24;
  --warn-line:     #653D26;

  --border-subtle: #2A2F30;
  --border:        #333839;
  --border-strong: #3F4546;

  --col:           1300px;
  --gut:           40px;

  --card-border:   transparent;
  --shadow-card:   0 1px 2px rgb(0 0 0 / .5), 0 14px 34px rgb(0 0 0 / .4);
  --shadow-panel:  0 2px 8px rgb(0 0 0 / .55), 0 28px 70px rgb(0 0 0 / .5);
  --spots:         1;
  --glass-fill:    rgb(29 33 34 / .72);
  --glass-line:    rgb(255 255 255 / .09);
  --overlay:       255 255 255;

  /* Palette DPE de l'ADEME, réglementaire, identique dans les deux thèmes. */
  --dpe-a: #319834; --dpe-b: #33cc31; --dpe-c: #cbfc34; --dpe-d: #fbfe06;
  --dpe-e: #fbcb33; --dpe-f: #f8991d; --dpe-g: #ed1c25;
}

:root[data-theme="light"] {
  --bg: #FFFFFF; --bg-subtle: #FAFAFA; --bg-muted: #F4F4F5;
  --surface: #FFFFFF; --surface-2: #F7F9F8; --surface-3: #F1F3F2;

  --text: #111113; --text-2: #2D2D32; --text-muted: #5C5C64;
  --text-dim: #A8A8AF; --text-faint: #C2C9D1;

  --accent: #00FF88; --accent-on: #04140C;
  --accent-ink: #15803D;
  --accent-wash: #E8FFF3; --accent-line: #B6F5D5; --green-line: #16A34A;

  --blue-ink: #0066CC;
  --warn-ink: #C2410C; --warn-wash: #FFF2E8; --warn-line: #FFD2B0;

  --border-subtle: #F1F3F2; --border: #EAECEB; --border-strong: #DADEDC;

  --card-border: #EAECEB;
  --shadow-card: none;
  --shadow-panel: 0 8px 32px rgb(11 13 12 / .10);
  --spots: 1;
  --glass-fill: rgb(255 255 255 / .72); --glass-line: rgb(17 17 19 / .07);
  --overlay: 0 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   2. BASE
   ═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }
:root[data-theme="light"] a:hover { color: var(--green-line); }
button { font: inherit; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-on);
  padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 12px; color: var(--accent-on); }

/* Caption unique du design system : 11 px bold uppercase, tracking .08em. */
.eyebrow { font-weight: 700; font-size: 11px; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; display: block; }
.eyebrow--accent { color: var(--accent-ink); }
.micro { font-weight: 500; font-size: 12px; line-height: 1.5; color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════════════
   3. EN-TÊTE, repris de la landing (panneau en verre détaché des bords).
   Jamais d'isolation:isolate ici, ça casse le flou sur Safari 17.
   ═══════════════════════════════════════════════════════════════════════ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; background: linear-gradient(90deg, var(--green-line), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }
.header-shell { position: sticky; top: 12px; z-index: 60; padding: 0 16px; }
header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--col); margin: 0 auto; padding: 9px 10px 9px 20px;
  border-radius: 20px; border: 1px solid var(--glass-line);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  transition: box-shadow .3s ease;
}
header.is-condensed { box-shadow: var(--shadow-panel); }
header nav { display: flex; align-items: center; gap: 2px; }
header nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-radius: 12px;
  font-weight: 600; font-size: 13px; line-height: 1;
  color: var(--text-muted); white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
header nav a svg { width: 15px; height: 15px; flex: none; opacity: .8; }
header nav a:hover { color: var(--text); background: rgb(var(--overlay) / .06); }
.logo { display: inline-block; height: 24px; width: auto; vertical-align: middle; }
.logo--sm { height: 18px; }
:root .logo--light, :root[data-theme="light"] .logo--dark { display: none; }
:root[data-theme="light"] .logo--light { display: inline-block; }
.header-right { display: flex; gap: 8px; align-items: center; }
.link-login { font-weight: 500; font-size: 13.5px; line-height: 1; color: var(--text-muted); white-space: nowrap; }
.link-login:hover { color: var(--text); }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; cursor: pointer; border-radius: 999px;
  background: transparent; color: var(--text-muted);
  transition: background .18s ease, color .18s ease;
}
.theme-toggle:hover { background: var(--bg-muted); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__moon { display: none; }
:root[data-theme="light"] .theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; white-space: nowrap; border-radius: 12px;
  font-weight: 700; font-size: 16px; line-height: 1; padding: 18px 28px; min-height: 44px;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-on); }
.btn--primary:hover { color: var(--accent-on); box-shadow: 0 12px 34px rgb(var(--overlay) / .18); }
.btn--ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); font-weight: 600; }
.btn--ghost:hover { color: var(--text); background: rgb(var(--overlay) / .05); border-color: var(--accent-line); }
.btn--sm { font-size: 13.5px; padding: 11px 16px; border-radius: 10px; }

/* ═══════════════════════════════════════════════════════════════════════
   4. TÊTE DE GUIDE
   Le H1 est l'élément LCP : il n'a ni opacity:0 ni animation d'entrée, pour
   que le robot comme le visiteur le reçoivent tel quel au premier rendu.
   ═══════════════════════════════════════════════════════════════════════ */
.g-head { position: relative; padding: 44px var(--gut) 8px; overflow-x: clip; }
.spot { position: absolute; pointer-events: none; opacity: var(--spots); }
.spot--hero { top: -280px; left: 50%; transform: translateX(-50%); width: 1100px; height: 640px; background: radial-gradient(closest-side, rgb(0 255 136 / .10), transparent 72%); }
.spot--cta { inset: 0; background: radial-gradient(70% 100% at 50% 100%, rgb(0 255 136 / .10), transparent 70%); }
.g-head__in { position: relative; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 40px; align-items: end; }
.g-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-weight: 600; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.g-crumbs a { color: var(--text-2); }
.g-crumbs a:hover { color: var(--text); }
.g-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-faint); }
.g-h1 { font-weight: 800; font-size: 52px; line-height: 1.06; letter-spacing: -.03em; margin: 0 0 20px; text-wrap: balance; }
.g-lede { font-weight: 500; font-size: 19px; line-height: 1.6; color: var(--text-2); margin: 0 0 22px; max-width: 64ch; text-wrap: pretty; }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-weight: 600; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); margin: 0; }
.g-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.g-meta svg { width: 14px; height: 14px; flex: none; color: var(--accent-ink); }
.g-illu { width: 168px; height: 168px; margin-bottom: -6px; }
.g-illu img { width: 100%; height: 100%; object-fit: contain; animation: illuIn .8s cubic-bezier(.34,1.42,.5,1) .15s both; }
@keyframes illuIn {
  0%   { opacity: 0; transform: scale(.7) rotate(-9deg) translateY(10px); }
  100% { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   5. CORPS : sommaire collant à gauche, colonne de lecture de 720 px.
   ═══════════════════════════════════════════════════════════════════════ */
.g-body { padding: 36px var(--gut) 72px; }
.g-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 232px minmax(0, 720px); gap: 64px; justify-content: space-between; align-items: start; }
.g-toc { position: sticky; top: 104px; }
.g-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.g-toc ol a { display: block; margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent;
  font-weight: 600; font-size: 13px; line-height: 1.4; color: var(--text-muted); transition: color .2s ease, border-color .2s ease; }
.g-toc ol a:hover { color: var(--text); }
.g-toc ol a.is-active { color: var(--text); border-left-color: var(--accent); }
.g-toc__cta { margin-top: 26px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-card); }
.g-toc__cta p { margin: 0 0 12px; font-weight: 600; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.g-toc__cta .btn { width: 100%; }

/* Sommaire replié, sous 1100 px seulement. */
.g-toc-m { display: none; margin: 0 0 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-card); }
.g-toc-m summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 44px; font-weight: 700; font-size: 14px; color: var(--text); }
.g-toc-m summary::after { content: "+"; color: var(--accent-ink); font-weight: 700; transition: transform .22s cubic-bezier(.2,.7,.2,1); }
.g-toc-m[open] summary::after { transform: rotate(45deg); }
.g-toc-m ol { margin: 0; padding: 0 18px 16px 38px; display: flex; flex-direction: column; gap: 4px; }
.g-toc-m li { font-weight: 600; font-size: 14px; line-height: 1.45; color: var(--text-dim); }
.g-toc-m a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); }

/* Prose ------------------------------------------------------------------ */
.g-prose { min-width: 0; }
.g-prose > :first-child { margin-top: 0; }
.g-prose p, .g-prose li { font-weight: 500; font-size: 16.5px; line-height: 1.75; color: var(--text-2); text-wrap: pretty; }
.g-prose p { margin: 0 0 18px; }
.g-prose strong { font-weight: 700; color: var(--text); }
.g-prose a:not(.btn):not(.g-chip) { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.g-prose a:not(.btn):not(.g-chip):hover { text-decoration-color: currentColor; }
.g-prose h2 { font-weight: 800; font-size: 30px; line-height: 1.18; letter-spacing: -.02em; color: var(--text); margin: 60px 0 18px; text-wrap: balance; }
.g-prose h2 .g-num { display: block; font-weight: 800; font-size: 22px; line-height: 1; color: var(--green-line); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.g-prose h3 { font-weight: 800; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; color: var(--text); margin: 32px 0 10px; }
.g-prose ul, .g-prose ol { margin: 0 0 20px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.g-prose ul > li { position: relative; padding-left: 22px; }
.g-prose ul > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.g-prose ol { counter-reset: g; }
.g-prose ol > li { position: relative; padding-left: 34px; counter-increment: g; }
.g-prose ol > li::before { content: counter(g); position: absolute; left: 0; top: .22em; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-wash); color: var(--accent-ink);
  font-weight: 800; font-size: 12px; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }

/* « À retenir » : la pyramide inversée, en tête d'article. */
.g-key { margin: 0 0 8px; padding: 24px 26px 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-card); }
.g-key .eyebrow { margin-bottom: 14px; }
.g-prose .g-key ul { gap: 12px; }
.g-prose .g-key li { font-size: 15.5px; line-height: 1.6; }

/* Encadré « Dans Flipio » : ce que l'outil fait de la règle qu'on vient de lire. */
.g-flipio { display: flex; gap: 16px; align-items: flex-start; margin: 26px 0 28px; padding: 20px 22px; border-radius: 18px;
  background: var(--accent-wash); border: 1px solid var(--accent-line); }
.g-flipio img { width: 44px; height: 44px; flex: none; border-radius: 12px; }
.g-flipio__t { display: block; font-weight: 800; font-size: 15px; line-height: 1.35; color: var(--text); margin: 2px 0 6px; }
.g-prose .g-flipio p { font-size: 14.5px; line-height: 1.6; margin: 0 0 10px; color: var(--text-2); }
.g-prose .g-flipio p:last-child { margin-bottom: 0; }
.g-flipio__link { font-weight: 700; font-size: 14px; }
.g-prose .g-flipio a.g-flipio__link { text-decoration: none; }

/* Encadré de prudence : une règle qui coûte cher si on l'oublie. */
.g-warn { margin: 24px 0 26px; padding: 18px 22px; border-radius: 16px; background: var(--warn-wash); border: 1px solid var(--warn-line); }
.g-prose .g-warn p { font-size: 15px; line-height: 1.65; margin: 0; color: var(--text-2); }
.g-warn b { color: var(--text); }

/* Encadré neutre : un exemple chiffré, qui illustre sans alerter. */
.g-note { margin: 24px 0 26px; padding: 18px 22px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.g-prose .g-note p { font-size: 15px; line-height: 1.65; margin: 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
.g-note b { color: var(--text); }

/* Villes : des liens vers les pages de prix, en pastilles. */
.g-cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 26px; }
.g-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 13px; border-radius: 10px;
  background: rgb(var(--overlay) / .04); border: 1px solid var(--border);
  font-weight: 600; font-size: 13.5px; line-height: 1; color: var(--text-2); transition: border-color .18s ease, color .18s ease, background .18s ease; }
.g-chip:hover { color: var(--text); border-color: var(--accent-line); background: rgb(var(--overlay) / .06); }
.g-chip svg { width: 13px; height: 13px; color: var(--accent-ink); flex: none; }

/* Tableau ---------------------------------------------------------------- */
.g-table-wrap { margin: 6px 0 26px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.g-table th { text-align: left; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  font-weight: 800; font-size: 12px; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.g-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: top;
  font-weight: 500; font-size: 14.5px; line-height: 1.55; color: var(--text-2); background: var(--surface); }
.g-table tr:last-child td { border-bottom: 0; }
.g-table td:first-child { font-weight: 800; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Échelle DPE avec le calendrier de location (guide passoires). */
.g-dpe { margin: 8px 0 26px; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-card); }
/* Une seule grille pour toutes les lignes : la colonne du texte a la même
   largeur partout, si bien que la longueur des étiquettes se compare d'une
   classe à l'autre, comme sur l'étiquette officielle. Encre noire sur les
   aplats verts et ambre, blanche sur le rouge (design-language). */
.g-dpe__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; }
.g-dpe__l { display: flex; align-items: center; height: 28px; min-width: 34px; padding-left: 11px; border-radius: 7px; font-weight: 800; font-size: 14px; line-height: 1; color: #000; }
.g-dpe__l--a { background: var(--dpe-a); }
.g-dpe__l--b { background: var(--dpe-b); }
.g-dpe__l--c { background: var(--dpe-c); }
.g-dpe__l--d { background: var(--dpe-d); }
.g-dpe__l--e { background: var(--dpe-e); }
.g-dpe__l--f { background: var(--dpe-f); }
.g-dpe__l--g { background: var(--dpe-g); color: #fff; }
.g-dpe__t { font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-dpe__t--on { color: var(--text); }
.g-dpe .micro { margin: 12px 0 0; }

/* Sources numérotées, en pied d'article. */
.g-sources { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border); }
.g-prose .g-sources ol { gap: 8px; }
.g-prose .g-sources li { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.g-prose .g-sources li::before { background: var(--bg-muted); color: var(--text-muted); font-size: 11px; }
.g-prose .g-sources a { word-break: break-word; }
.g-prose .micro { font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.g-prose p.g-disclaimer { margin: 16px 0 0; }

/* ═══════════════════════════════════════════════════════════════════════
   6. AUTRES GUIDES, APPEL FINAL, PIED DE PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.g-next { padding: 64px var(--gut) 72px; background: var(--bg-subtle); }
.g-next__in { max-width: 1080px; margin: 0 auto; }
.g-next__t { font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 24px; }
.g-next__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Page /guides/ : les quatre guides en deux colonnes plutôt qu'en trois plus un. */
.g-next__grid--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-card);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease; }
.g-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.g-card img { width: 64px; height: 64px; margin: -6px 0 0 -6px; }
.g-card__t { font-weight: 800; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.g-card__d { font-weight: 500; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.g-card__go { margin-top: auto; font-weight: 700; font-size: 13.5px; color: var(--accent-ink); }

.g-cta { position: relative; padding: 92px var(--gut) 100px; overflow: hidden; }
.g-cta__in { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.g-cta__t { font-weight: 800; font-size: 44px; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; text-wrap: balance; }
.g-cta__p { font-weight: 500; font-size: 17px; line-height: 1.6; color: var(--text-muted); margin: 0 auto 30px; max-width: 54ch; text-align: left; text-wrap: pretty; }
.g-cta__btns { display: flex; gap: 12px; justify-content: center; }
.g-cta .micro { text-align: left; margin: 24px auto 0; max-width: 54ch; }

footer { padding: 52px var(--gut) 44px; background: var(--bg-subtle); }
.f-grid { max-width: var(--col); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.f-col { display: flex; flex-direction: column; gap: 11px; font-weight: 500; font-size: 13px; line-height: 1.2; }
.f-col a { color: var(--text-muted); }
.f-col a:hover { color: var(--text); }
.f-tag { margin: 16px 0 0; max-width: 34ch; line-height: 1.6; }
.f-bottom { max-width: var(--col); margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--border); }
.f-bottom p { margin: 0; }

/* Apparition des cartes « Les autres guides », et d'elles seules : aucun
   texte de l'article, aucun encadré ni appel final n'est masqué, pour que
   le robot et l'impression lisent la page entière. Le masquage n'existe
   que si le script a tourné (classe .js posée sur <html>). */
.js [data-anim] { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-anim].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-illu img { animation: none; }
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .g-card:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   7. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .g-grid { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .g-toc { display: none; }
  .g-toc-m { display: block; }
}
@media (max-width: 960px) {
  :root { --gut: 16px; }
  html { scroll-padding-top: 100px; }
  header { padding: 12px 18px; }
  header nav { display: none; }
  .g-next__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .g-head { padding-top: 28px; }
  .g-head__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-illu { order: -1; width: 96px; height: 96px; margin: 0 0 6px -8px; }
  .g-h1 { font-size: 34px; line-height: 1.1; }
  .g-lede { font-size: 17px; }
  .g-body { padding-top: 24px; }
  .g-prose p, .g-prose li { font-size: 16px; line-height: 1.7; }
  .g-prose h2 { font-size: 25px; margin-top: 48px; }
  .g-prose h2 .g-num { font-size: 22px; }
  .g-key { padding: 20px 20px 4px; }
  .g-flipio { padding: 18px; gap: 14px; }
  .g-flipio img { width: 38px; height: 38px; }
  .g-cta { padding: 72px var(--gut) 80px; }
  .g-cta__t { font-size: 30px; }
  .g-cta__btns { flex-direction: column; }
  .g-cta__btns .btn { width: 100%; }
  .link-login { display: none; }
  header { gap: 10px; }
  .btn--sm { padding: 10px 12px; font-size: 12.5px; }
  .theme-toggle { width: 44px; height: 44px; }
  header a[aria-label] { display: inline-flex; align-items: center; min-height: 44px; }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .f-col a { display: inline-flex; align-items: center; min-height: 44px; }
  .g-crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
}
@media (max-width: 420px) {
  .g-h1 { font-size: 31px; }
  .g-dpe { padding: 16px; }
  .g-dpe__grid { column-gap: 10px; }
  .g-dpe__t { font-size: 12px; }
}
