/* Feuille de style des pages statiques : guides d'export, articles, FAQ, pages légales. Séparée du
   bundle de l'application : ces pages sont des fichiers servis directement par Cloudflare Pages, elles
   ne peuvent pas charger le CSS hashé produit par Vite. Même direction artistique que la landing
   (src/components/landing/landing.css), dont les jetons sont recopiés ici : noir, gris neutres, l'or
   comme seule couleur, titres en Cormorant. Mise en page : une colonne de lecture de 720 px sous un
   bandeau large, comme une page de revue ; l'or souligne, il ne remplit pas. */

:root {
  color-scheme: dark;
  --ink: #080808;
  --panel: #0e0e0e;
  --panel-high: #151515;
  --rule: #242424;
  --rule-strong: #353535;
  --rule-gold: rgba(201, 162, 77, 0.3);
  --paper: #f2f2f2;
  /* Texte courant : un gris clair plutôt que le blanc, pour lire longtemps sur du noir sans éblouir. */
  --paper-read: #cdcdcd;
  --paper-muted: #a1a1a1;
  --paper-soft: #6f6f6f;
  --gold: #c9a24d;
  --gold-light: #e8c87f;
  --gold-pale: #f4e5c4;
  --gold-night: #17120a;
  --on-gold: #0a0a0a;
  /* L'or est un métal : un dégradé vertical peint dans la lettre, jamais un aplat. */
  --gold-metal: linear-gradient(180deg, #ffedbd 0%, #e2b95c 22%, #9e772f 52%, #694d1a 78%, #2c1e05 100%);
  --gold-surface: linear-gradient(180deg, #e8c87f 0%, #c9a24d 50%, #a07c2e 100%);
  --gold-sheen: linear-gradient(105deg, rgba(255, 248, 228, 0) 42%, rgba(255, 248, 228, 0.75) 50%, rgba(255, 248, 228, 0) 58%);
  --face-display: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --face-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --face-wordmark: "Cinzel", "Trajan Pro", Georgia, serif;
  --face-mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 720px;
  --wide: 1120px;
  --masthead-height: 68px;
  /* Jetons lus par la vue légale, pré-rendue depuis src/components/legal/LegalPage.tsx avec des
     styles en ligne : ils lui donnent la même palette sans toucher au composant. */
  --bg: var(--ink);
  --text: var(--paper);
  --text-muted: var(--paper-muted);
  --border: var(--rule);
  --accent: var(--gold-light);
  --font-display: var(--face-display);
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  background: var(--ink);
  color: var(--paper-read);
  font: 400 17px/1.75 var(--face-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(201, 162, 77, 0.45); text-underline-offset: 3px; transition: color 0.3s ease, text-decoration-color 0.3s ease; }
a:hover { color: var(--gold-pale); text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 6px; }
strong { color: var(--paper); font-weight: 600; }
img { max-width: 100%; }

.wrap { position: relative; z-index: 1; width: min(var(--measure), 100%); margin-inline: auto; padding-inline: 20px; }
.wrap-wide { width: min(var(--wide), 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- Filet de lecture, bandeau, décor ---------- */

.progress-rail { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 1px; pointer-events: none; }
.progress-rail span { display: block; height: 100%; background: var(--gold-light); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(232, 200, 127, 0.7); }

.guide-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 8, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}
.guide-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--masthead-height); }
.guide-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.guide-brand img { flex: none; width: 38px; height: 38px; }
/* Même lettrage que l'application et la landing (Cinzel, espacé, en métal). */
.wordmark {
  display: inline-block;
  font: 500 0.86rem/1.5 var(--face-wordmark);
  letter-spacing: 0.24em;
  white-space: nowrap;
  background-image: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a, .guide-footer nav a {
  color: var(--paper-muted);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.header-nav a:hover, .guide-footer nav a:hover { color: var(--gold-light); }
.guide-header-cta {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px;
  border-radius: 999px; background-image: var(--gold-surface); color: var(--on-gold);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(201, 162, 77, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.4s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe);
}
.guide-header-cta:hover { color: var(--on-gold); transform: translateY(-1px); box-shadow: 0 14px 40px rgba(201, 162, 77, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
@media (max-width: 820px) { .header-nav { display: none; } .guide-header-cta { margin-left: auto; } }
@media (max-width: 460px) { .guide-header .wordmark { display: none; } }

/* Halo d'or et poussière derrière le haut de page (la poussière est dessinée par guides-motion.js). */
.page-decor {
  position: absolute; top: 0; left: 0; right: 0; height: 640px; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(55% 60% at 72% 18%, rgba(226, 185, 92, 0.13), rgba(201, 162, 77, 0.03) 55%, rgba(201, 162, 77, 0) 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.gold-dust { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Haut de page ---------- */

main { padding-bottom: 72px; }

/* Le fil d'Ariane sert de surtitre : petites capitales, un filet d'or, des losanges pour séparateurs. */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  padding-top: clamp(40px, 7vw, 76px);
  color: var(--gold); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
}
.breadcrumb::before { content: ""; width: 40px; height: 1px; margin-right: 14px; background: var(--gold); }
.breadcrumb a { color: var(--paper-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { font-size: 0; }
.breadcrumb span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-inline: 12px; background: var(--gold); transform: rotate(45deg); vertical-align: middle; opacity: 0.8; }

.guide-title { padding: 22px 0 8px; }
.guide-title h1 {
  margin: 0 0 22px;
  color: var(--paper);
  font: 600 clamp(2.3rem, 5.2vw, 3.5rem)/1.04 var(--face-display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.guide-lead { margin: 0; max-width: 36em; color: var(--paper-muted); font-size: clamp(1.05rem, 1.4vw, 1.18rem); font-weight: 300; line-height: 1.75; }
/* Les mentions se séparent par l'espace seul : un séparateur tomberait en début de ligne au retour. */
.guide-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  margin-top: 24px;
  color: var(--paper-soft); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border: 1px solid var(--rule-gold); border-radius: 999px; color: var(--gold-light); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; }

/* L'entrée du haut de page : le texte se pose, il part d'un état déjà lisible. */
.guide-title > * { animation: guide-rise 1.2s var(--ease-luxe) both; }
.guide-title > :nth-child(2) { animation-delay: 0.08s; }
.guide-title > :nth-child(3) { animation-delay: 0.16s; }

/* ---------- Sections ---------- */

section { margin: 60px 0; }
main section > h2 {
  margin: 0 0 20px;
  color: var(--paper);
  font: 600 clamp(1.75rem, 3.1vw, 2.3rem)/1.1 var(--face-display);
  letter-spacing: -0.008em;
  text-wrap: balance;
}
/* Chaque partie s'ouvre sur un court filet d'or. */
main section:not(.cta):not(.sources) > h2::before { content: ""; display: block; width: 40px; height: 1px; margin-bottom: 20px; background: var(--gold); }
h3 { margin: 0 0 8px; color: var(--paper); font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
p { margin: 0 0 16px; }
section > :last-child { margin-bottom: 0; }

.card { padding: 26px 28px; border: 1px solid var(--rule); border-radius: 24px; background: var(--panel); }
.card > :last-child { margin-bottom: 0; }
.card-warn { border-color: var(--rule-gold); background: var(--gold-night); }
.card-warn h2 { color: var(--gold-light); }
.card.is-us { border-color: var(--rule-gold); background: linear-gradient(180deg, #18130a 0%, var(--panel) 70%); }

/* Fiche « ce que contient le fichier » : le nom du champ, puis ce qu'il vaut. La colonne de gauche
   est fixe pour que les noms s'alignent et se balaient du regard. */
.file-fields { display: grid; grid-template-columns: 8rem 1fr; margin: 0; }
.file-fields dt, .file-fields dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--rule); }
.file-fields dt:first-of-type, .file-fields dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.file-fields dt { padding-right: 16px; color: var(--gold); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; line-height: 2.2; }
.file-fields dd { color: var(--paper-muted); }
@media (max-width: 560px) {
  .file-fields { grid-template-columns: 1fr; }
  .file-fields dt { padding: 16px 0 0; }
  .file-fields dd { padding-top: 0; border-top: 0; }
}

ul.checks, ul.gaps { margin: 0; padding: 0; list-style: none; }
ul.checks li, ul.gaps li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--rule); }
ul.checks li:last-child, ul.gaps li:last-child { border-bottom: 0; }
ul.checks li::before { content: ""; position: absolute; left: 6px; top: 21px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
ul.gaps li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 14px; height: 1px; background: var(--rule-gold); }

/* ---------- Vidéo ---------- */

.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--rule-gold); border-radius: 20px; background: var(--panel-high); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin: 12px 0 0; color: var(--paper-soft); font-size: 0.88rem; }

/* ---------- Appel à l'action : la fin de page, comme celle de la landing ---------- */

.cta {
  position: relative; overflow: hidden;
  margin: 88px 0 72px; padding: clamp(40px, 6vw, 60px) clamp(22px, 5vw, 48px);
  border: 1px solid rgba(201, 162, 77, 0.35); border-radius: 32px;
  background: radial-gradient(60% 70% at 50% 0%, rgba(201, 162, 77, 0.14), rgba(201, 162, 77, 0) 70%), #0b0b0b;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), 0 0 0 8px rgba(201, 162, 77, 0.04);
  text-align: center;
}
.cta-mark { display: block; width: 72px; height: 72px; margin: 0 auto 18px; }
.cta h2 { margin: 0 auto 14px; max-width: 16em; color: var(--paper); font: 600 clamp(1.8rem, 3.6vw, 2.5rem)/1.08 var(--face-display); text-wrap: balance; }
.cta h2 em {
  font-style: italic;
  background-image: var(--gold-sheen), var(--gold-metal);
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: guide-gold-sheen 8s ease-in-out infinite;
}
.cta p { margin-inline: auto; max-width: 34em; color: var(--paper-muted); font-weight: 300; }
.cta-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; margin-top: 10px; padding: 0 30px;
  border: 0; border-radius: 999px; background-image: var(--gold-surface); color: var(--on-gold);
  font: 600 0.95rem/1 var(--face-body); letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 40px rgba(201, 162, 77, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.4s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe);
}
.cta-button:hover { color: var(--on-gold); transform: translateY(-2px); box-shadow: 0 20px 50px rgba(201, 162, 77, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.cta-trust { margin: 20px auto 0; color: var(--paper-soft); font-size: 0.78rem; letter-spacing: 0.06em; }

/* ---------- Questions ---------- */

.qa { padding: 22px 0; border-top: 1px solid var(--rule); }
.qa:last-of-type { border-bottom: 1px solid var(--rule); }
.qa h3 { margin-bottom: 8px; font-size: 1.05rem; font-weight: 500; }
.qa p { margin: 0; color: var(--paper-muted); }

/* ---------- Banques : leurs noms en toutes lettres ---------- */

.bank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--rule); }
.bank-card {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
  color: var(--paper); text-decoration: none;
}
.bank-card-name { font: 600 italic clamp(1.3rem, 2.2vw, 1.6rem)/1.15 var(--face-display); transition: color 0.3s ease; }
.bank-card small { flex: none; color: var(--paper-soft); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; transition: color 0.3s ease; }
.bank-card:hover { color: var(--paper); }
.bank-card:hover .bank-card-name { color: var(--gold-light); }
.bank-card:hover small { color: var(--gold); }
@media (max-width: 560px) { .bank-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pied de page ---------- */

.guide-footer { position: relative; z-index: 1; padding: 48px 0 64px; border-top: 1px solid var(--rule); color: var(--paper-soft); font-size: 0.84rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.guide-footer .guide-brand img { width: 32px; height: 32px; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 14px 24px; }

/* ═══ Articles : sommaire, tableau, étapes, lectures liées, sources, calculateur ═══ */

.article .guide-lead { margin-bottom: 4px; }

.toc { margin: 32px 0 8px; padding: 22px 26px; border: 1px solid var(--rule); border-radius: 22px; background: var(--panel); }
.toc-title { margin: 0 0 10px; color: var(--gold); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 22px; color: var(--paper-soft); }
.toc li { padding: 4px 0; }
.toc a { color: var(--paper); text-decoration: none; }
.toc a:hover { color: var(--gold-light); }

/* Tableau comparatif : il défile dans son propre cadre, la page jamais. */
.table-scroll { margin: 18px 0; overflow-x: auto; border: 1px solid var(--rule); border-radius: 20px; }
table.compare { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--panel); font-size: 0.92rem; }
table.compare.is-compact { min-width: 0; }
table.compare th, table.compare td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--panel-high); color: var(--gold); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
table.compare tbody th { color: var(--paper); font-weight: 600; white-space: nowrap; }
table.compare td { color: var(--paper-muted); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
/* Notre ligne : une nuit d'or discrète et un nom doré, pas une couleur qui ferait comparatif truqué. */
table.compare tr.is-us th, table.compare tr.is-us td { background: var(--gold-night); }
table.compare tr.is-us th { color: var(--gold-light); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .card { padding: 22px 24px; }
.two-col h3 { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* Étapes numérotées : le chiffre en italique d'or, comme les gestes de la landing. */
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.steps li { position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--rule); counter-increment: step; }
ol.steps li:last-child { border-bottom: 0; }
ol.steps li::before { content: counter(step) "."; position: absolute; left: 4px; top: 8px; color: var(--gold-light); font: 600 italic 1.7rem/1.2 var(--face-display); }

pre.code { margin: 14px 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel-high); color: var(--paper); font: 0.86rem/1.6 var(--face-mono); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.article-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 24px; border: 1px solid var(--rule); border-radius: 22px; background: var(--panel);
  color: var(--paper); text-decoration: none;
  font: 600 1.28rem/1.2 var(--face-display);
  transition: border-color 0.4s ease, transform 0.6s var(--ease-luxe);
}
.article-card:hover { color: var(--paper); border-color: var(--rule-gold); transform: translateY(-4px); }
.article-card-kicker { color: var(--gold); font: 600 0.64rem/1.4 var(--face-body); letter-spacing: 0.22em; text-transform: uppercase; }

.sources h2 { margin-bottom: 12px; color: var(--paper-muted); font: 600 1.3rem/1.2 var(--face-display); }
.sources ul { margin: 0; padding-left: 18px; color: var(--paper-soft); font-size: 0.86rem; }
.sources li { padding: 3px 0; }
.sources a { color: var(--paper-muted); }

.download { margin-top: 28px; text-align: center; }
.download .cta-button { margin-top: 0; }
.download .cta-trust { margin-top: 14px; }

/* Calculateur de reste à vivre */
.tool { margin-top: 28px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 22px; }
.tool-form label { display: flex; flex-direction: column; gap: 8px; color: var(--paper-soft); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.tool-form input {
  height: 48px; padding: 0 16px;
  border: 1px solid var(--rule-strong); border-radius: 14px; background: var(--ink); color: var(--paper);
  font: 500 1.02rem/1 var(--face-body); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums;
  outline: none; transition: border-color 0.3s ease;
}
.tool-form input:focus { border-color: var(--gold); }
.tool-result { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--rule); }
.tool-headline { margin: 0 0 16px; color: var(--paper); font: 600 1.7rem/1.2 var(--face-display); }
/* Le montant en Inter, pas en serif : les chiffres elzéviriens du Cormorant descendent sous la ligne
   et se lisent mal en gras doré. */
.tool-headline strong {
  font: 700 0.92em/1 var(--face-body); font-variant-numeric: tabular-nums;
  background-image: var(--gold-metal); background-size: 100% 1.25em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tool-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 16px; font-size: 0.95rem; }
.tool-facts dt { color: var(--paper-soft); }
.tool-facts dd { margin: 0; color: var(--paper); font-variant-numeric: tabular-nums; }
.tool-verdict { margin: 0; color: var(--paper-muted); font: 500 italic 1.15rem/1.5 var(--face-display); }
@media (max-width: 560px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-facts { grid-template-columns: 1fr; gap: 2px; }
  .tool-facts dd { margin-bottom: 10px; }
}

/* ═══ Blocs éditoriaux : encadrés, captures, citations ═══ */

.callout { margin: 20px 0; padding: 18px 22px; border: 1px solid var(--rule-gold); border-radius: 18px; background: var(--gold-night); color: var(--paper-muted); }
.callout strong { color: var(--gold-light); }

/* Captures de l'application, montrées telles quelles : l'application est noir et or depuis le
   29/09/2026, aucun filtre ne retouche ses couleurs (ni celles du camembert, ni les logos). */
figure.shot { margin: 28px 0; }
figure.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule-gold); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
figure.shot figcaption { margin: 14px 6px 0; color: var(--paper-muted); font: 500 italic 1.08rem/1.5 var(--face-display); }
/* Capture coupée en bas parce que la page continue (l'arbre des catégories) : elle se fond dans le
   noir au lieu de s'arrêter net au milieu d'une ligne. */
figure.shot.is-cropped img {
  border-bottom-color: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent);
  mask-image: linear-gradient(180deg, #000 84%, transparent);
}
/* Capture posée dans un cadre de téléphone : une page entière, étroite et haute, se lit mieux ainsi. */
figure.shot.is-phone img { width: min(100%, 320px); margin: 0 auto; border-radius: 38px; box-shadow: 0 0 0 8px #111111, 0 0 0 9px var(--rule-gold), 0 40px 90px rgba(0, 0, 0, 0.7); }
figure.shot.is-phone figcaption { text-align: center; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shot-pair figure.shot { margin: 12px 0; }
@media (max-width: 640px) { .shot-pair { grid-template-columns: 1fr; } }

.quotes { display: grid; gap: 12px; margin: 20px 0; }
.quotes blockquote { margin: 0; padding: 16px 0; border-block: 1px solid var(--rule); }
.quotes blockquote p { margin: 0 0 6px; color: var(--paper); font: 500 italic 1.2rem/1.5 var(--face-display); }
.quotes blockquote footer { color: var(--paper-soft); font-size: 0.8rem; }

/* ---------- FAQ : sommaire des rubriques ---------- */

.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.faq-nav a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--paper-muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.faq-nav a:hover { border-color: var(--gold); color: var(--gold-light); background: var(--gold-night); }
.faq section h2 { margin-top: 12px; }
[id] { scroll-margin-top: calc(var(--masthead-height) + 20px); }

/* ---------- Pages légales ----------
   Le document est pré-rendu depuis LegalPage.tsx avec ses styles en ligne (ceux de l'application) :
   seuls les titres et le cadre sont repris ici, d'où les !important, sans lesquels un style en ligne
   l'emporte toujours. */

.legal-page { min-height: 0 !important; padding: 36px 0 24px !important; background: none !important; }
.legal-page h1 { margin-bottom: 10px !important; color: var(--paper) !important; font: 600 clamp(2.3rem, 5vw, 3.2rem)/1.06 var(--face-display) !important; letter-spacing: -0.01em; }
.legal-page h2 { color: var(--paper) !important; font: 600 1.55rem/1.2 var(--face-display) !important; }
.legal-page h3 { color: var(--paper) !important; }
.legal-page a { color: var(--gold-light) !important; }

/* ---------- Mouvement (posé par guides-motion.js, jamais sans lui) ---------- */

.has-motion .reveal { opacity: 0.35; transform: translateY(26px); transition: opacity 1.1s var(--ease-luxe), transform 1.2s var(--ease-luxe); }
.has-motion .reveal.is-revealed { opacity: 1; transform: none; }

@keyframes guide-rise {
  from { opacity: 0.3; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes guide-gold-sheen {
  0%, 55% { background-position: 130% 0, 0 0; }
  85%, 100% { background-position: -30% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .card { padding: 22px 20px; }
  section { margin: 48px 0; }
}
