/* Risk Swan · Actuariat de décision
   Charte graphique Risk Swan, édition 01 : trois couleurs (bleu nuit, ivoire, or doux), Georgia pour les titres,
   Calibri pour le texte et les chiffres. L'or est un accent : un filet, un chiffre clé, une série de données.
   Il ne sert jamais de couleur de texte sur fond ivoire. Dans les graphiques, sur fond nuit : ivoire pour le gain,
   or pour la perte, la série que l'on commente. */

:root {
  color-scheme: light;
  /* les trois couleurs de référence */
  --night: #000a24;
  --ivory: #efebe7;
  --gold: #dfb773;

  /* leurs nuances de travail */
  --night-2: #0c1730;            /* cartes sur fond nuit */
  --night-3: #1f2a44;            /* filets sur fond nuit */
  --night-axis: #47506a;         /* axes et bordures appuyées sur fond nuit */
  --white: var(--ivory);         /* le fond de lecture */
  --paper: #e6e0d9;              /* bandes alternées */
  --sheet: #f7f5f2;              /* cartes sur fond ivoire */
  --line: #d6cfc6;
  --line-2: #b8b0a5;
  --ink: var(--night);
  --ink-2: #353d50;
  --muted: #5a6072;
  --gain: var(--night);          /* données sur fond clair : bleu nuit */
  --risk: var(--gold);           /* la série commentée : or */

  --accent: var(--gold);
  --accent-deep: var(--gold);
  --acc: var(--gold);            /* filets et aplats d'accent */
  --focus: var(--night);         /* contour de sélection au clavier */
  --inv: var(--ivory);
  --acc-inv: var(--gold);

  /* jetons de contexte : clair par défaut, redéfinis sur fond nuit */
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--muted);
  --rule: var(--line);
  --rule-2: var(--line-2);
  --card: var(--sheet);
  --btn-bg: var(--night);
  --btn-fg: var(--ivory);
  --btn-hover-bg: var(--night-3);
  --btn-hover-fg: var(--ivory);

  --sans: Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --mono: var(--sans);           /* les petits libellés en capitales sont en Calibri gras */
  --r: 2px;
  --wrap: 1180px;
}

.night, .nightcard {
  --fg: var(--ivory);
  --fg-2: #cfcac4;
  --fg-3: #9d9ba1;
  --rule: var(--night-3);
  --rule-2: var(--night-axis);
  --card: var(--night-2);
  --btn-bg: var(--accent);
  --btn-fg: var(--night);
  --btn-hover-bg: var(--ivory);
  --btn-hover-fg: var(--night);
  --acc: var(--gold);
  --focus: var(--gold);
  --inv: var(--night);
  --acc-inv: var(--gold);
  --gain: var(--ivory);          /* données sur fond nuit : ivoire */
  --risk: var(--gold);
  color: var(--fg);
}
.night { background: var(--night); }
.nightcard { --surface: var(--night); background: var(--surface); border-color: var(--night); }
.night .nightcard { --surface: var(--night-2); border-color: var(--night-3); }
.paper { background: var(--paper); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 98px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 1.14rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--night); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.14; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ivory); color: var(--night); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--night); border-bottom: 1px solid var(--night-3); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.brand { display: block; flex: none; line-height: 0; text-decoration: none; }
.brand img { display: block; width: 200px; height: auto; aspect-ratio: 200 / 51; }      /* le dessin visible fait plus de 180 px, minimum de la charte */
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-size: 0.92rem; color: var(--fg-2); padding: 6px 0; }
.nav a:hover { color: var(--fg); }
.nav a.btn { color: var(--btn-fg); padding: 10px 18px; }
.nav a.btn:hover { color: var(--btn-hover-fg); }
.menu-btn { display: none; background: none; border: 1px solid var(--night-axis); border-radius: var(--r); padding: 8px 12px; font: inherit; font-size: 0.9rem; color: var(--ivory); cursor: pointer; }

/* ---------- Boutons ---------- */
.btn { display: inline-block; text-decoration: none; cursor: pointer; background: var(--btn-bg); color: var(--btn-fg); padding: 14px 24px; border-radius: var(--r); border: 1px solid var(--btn-bg); font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { background: var(--btn-hover-bg); border-color: var(--btn-hover-bg); color: var(--btn-hover-fg); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--rule-2); }
.btn.ghost:hover { background: transparent; border-color: var(--focus); color: var(--fg); }

/* ---------- Repères ---------- */
.tag { font-family: var(--sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.tag::before { content: ""; width: 22px; height: 2px; background: var(--acc); flex: none; }
section { padding: 104px 0; }
.title { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.title em, .hero h1 em, .contact h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.hero h1 em, .contact h2 em { color: var(--accent); }
.lede { font-size: 1.22rem; color: var(--fg-2); max-width: 60ch; margin: 22px 0 0; }
.punch { margin: 48px 0 0; padding-top: 26px; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 1.55rem; line-height: 1.35; max-width: 30em; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); }

/* ---------- Accueil ---------- */
.hero { padding: 76px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--night-3) 1px, transparent 1px); background-size: 100% 56px; opacity: 0.55; -webkit-mask-image: radial-gradient(ellipse 70% 85% at 72% 35%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 70% 85% at 72% 35%, #000 15%, transparent 72%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.1rem); line-height: 1.07; letter-spacing: -0.015em; }
.hero h1 span { display: block; }
.hero .lede { font-size: 1.26rem; line-height: 1.55; max-width: 33em; margin: 28px 0 34px; }
.hero .lede strong { color: var(--fg); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.creds { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.creds li { display: flex; align-items: center; gap: 8px; }
.creds li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }

/* ---------- Carte de calcul (accueil et simulateur) ---------- */
.calc { padding: 22px 24px 20px; box-shadow: 0 30px 80px -40px rgba(4, 9, 28, 0.75); }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.calc-head h3 { font-size: 1.04rem; letter-spacing: -0.01em; line-height: 1.3; }
.calc-head span { font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.calc .ask { font-family: var(--serif); font-style: italic; font-size: 1.24rem; color: var(--fg); margin: 2px 0 6px; letter-spacing: -0.005em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.82rem; color: var(--fg-2); margin: 10px 0 6px; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--gain); flex: none; }
.legend .lr i { background: var(--risk); }
.legend .lm i { width: 16px; height: 2px; border-radius: 1px; background: var(--ivory); }
.legend .lb i { width: 16px; background: rgba(239, 235, 231, 0.26); }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart text { font-family: var(--sans); fill: var(--fg-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.chart text.mk { fill: var(--fg); font-size: 13.5px; font-weight: 700; }
.chart text.mk2 { fill: var(--fg-2); font-size: 12.5px; }
.chart text.halo { paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.tip { position: absolute; pointer-events: none; background: var(--night); border: 1px solid var(--night-axis); border-radius: var(--r); padding: 9px 12px; font-size: 0.9rem; line-height: 1.4; color: #cfcac4; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity 0.12s; z-index: 5; }
.tip b { display: block; color: var(--ivory); font-size: 0.96rem; margin-bottom: 3px; }
.tip span { display: flex; justify-content: space-between; gap: 18px; }
.tip span em { font-style: normal; color: var(--ivory); font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }

/* les trois épreuves, en chiffres */
.tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); margin-top: 14px; }
.test { padding: 16px 14px 4px 0; }
.test + .test { padding-left: 16px; border-left: 1px solid var(--rule); }
.test .k { display: block; font-family: var(--sans); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.test .l { display: block; font-size: 0.8rem; color: var(--fg-2); line-height: 1.3; margin-top: 8px; min-height: 2.6em; }
.test b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.test .s { display: block; font-size: 0.78rem; color: var(--fg-3); line-height: 1.35; margin-top: 4px; }
.verdict { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--rule-2); border-radius: var(--r); font-size: 0.98rem; color: var(--fg-2); display: flex; gap: 12px; align-items: baseline; }
.verdict b { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); font-weight: 400; white-space: nowrap; }
.verdict strong { color: var(--fg); font-weight: 600; }

/* ---------- Vos décisions ---------- */
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.q { padding: 28px 28px 26px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.q .n { font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.12em; color: var(--fg-3); }
.q h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.55rem; letter-spacing: -0.01em; line-height: 1.2; margin: 14px 0 10px; }
.q p { font-size: 0.96rem; color: var(--fg-2); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 2px solid var(--fg); }
.fact { padding: 30px 30px 6px 0; }
.fact + .fact { padding-left: 30px; border-left: 1px solid var(--rule); }
.fact .when { font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.fact .num { font-size: clamp(2.6rem, 5vw, 3.9rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1; margin: 16px 0; white-space: nowrap; }
.fact p { color: var(--fg-2); font-size: 1rem; }
.fact .src { font-size: 0.8rem; color: var(--fg-3); line-height: 1.5; }
.fact .src a { color: var(--fg-2); text-underline-offset: 3px; }

/* ---------- Ce que vous obtenez ---------- */
.gets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 56px; }
.get { padding: 30px 30px 28px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; align-items: start; }
.get svg { width: 64px; height: 64px; }
.get h3 { font-size: 1.36rem; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 10px; }
.get p { font-size: 0.98rem; color: var(--fg-2); margin: 0 0 14px; }
.get .m { font-family: var(--sans); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); display: block; margin-bottom: 4px; }
.get .v { font-size: 0.92rem; color: var(--fg); }

/* ---------- Les trois épreuves ---------- */
.trials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.trial { padding: 28px 28px 26px; display: flex; flex-direction: column; }
.trial .n span:last-child { color: var(--accent); }
.trial .n { font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); display: flex; justify-content: space-between; gap: 12px; }
.trial h3 { font-size: 1.9rem; margin: 18px 0 6px; }
.trial .ask { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--fg-2); margin: 0 0 18px; line-height: 1.25; }
.trial ul { list-style: none; padding: 14px 0 18px; margin: 0; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--fg-2); }
.trial li { padding: 6px 0 6px 18px; position: relative; }
.trial li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 2px; background: var(--fg-3); }
.trial .ref { font-size: 0.8rem; color: var(--fg-3); line-height: 1.5; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.trial .ref a { color: var(--fg-2); text-underline-offset: 3px; }

/* ---------- Simulateur ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; align-items: center; }
.presets span { font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-right: 6px; }
.chip { font: inherit; font-size: 0.98rem; cursor: pointer; background: var(--sheet); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 16px; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--ivory); }
.sim { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; margin-top: 22px; align-items: start; }
.controls { padding: 6px 24px 18px; }
.controls fieldset { border: 0; padding: 0; margin: 0; }
.controls legend { font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); padding: 18px 0 4px; display: flex; align-items: center; gap: 8px; width: 100%; }
.controls legend::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); }
.controls .g legend::before { background: var(--gain); }
.controls .r legend::before { background: var(--risk); box-shadow: inset 0 0 0 1px rgba(0, 10, 36, 0.45); }
.controls .d legend::before { background: transparent; box-shadow: inset 0 0 0 2px var(--night); }
.ctl { padding: 9px 0 3px; }
.ctl label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.9rem; color: var(--fg-2); }
.ctl output { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 2px 0 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--night); border: 3px solid var(--sheet); box-shadow: 0 0 0 1px var(--night); margin-top: -7px; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--night); border: 3px solid var(--sheet); box-shadow: 0 0 0 1px var(--night); }
.reading { margin: 16px 0 0; padding: 16px 18px; background: rgba(239, 235, 231, 0.07); border-radius: var(--r); font-size: 0.98rem; color: var(--fg-2); }
.reading strong { color: var(--fg); font-weight: 600; }
.reading p { margin: 0 0 8px; }
.reading p:last-child { margin: 0; }
.more { margin-top: 14px; font-size: 0.86rem; color: var(--fg-3); }
.more summary { cursor: pointer; color: var(--fg-2); padding: 6px 0; }
.more table { border-collapse: collapse; width: 100%; margin: 8px 0 4px; font-size: 0.86rem; }
.more th, .more td { text-align: right; padding: 6px 0 6px 10px; border-bottom: 1px solid var(--rule); font-weight: 400; color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.more th:first-child, .more td:first-child { text-align: left; padding-left: 0; }
.more thead th { color: var(--fg-3); font-size: 0.78rem; }
.more td { color: var(--fg); }
.more ul { margin: 8px 0 0; padding-left: 18px; }
.more li { margin-bottom: 4px; }
.ctl .hint { display: block; font-size: 0.74rem; line-height: 1.35; color: var(--fg-3); margin: 0 0 2px; }
.hyp-intro { margin: 8px 0 6px; font-size: 0.84rem; color: var(--fg-3); }
.hyp { border-collapse: collapse; width: 100%; margin: 4px 0 6px; font-size: 0.82rem; }
.hyp th, .hyp td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); font-weight: 400; color: var(--fg-2); white-space: normal; }
.hyp thead th { color: var(--fg-3); font-size: 0.74rem; }
.hyp td:first-child { color: var(--fg); width: 30%; }
.hyp td:nth-child(2) { width: 28%; }
.hyp .niv { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 1px 8px; margin-top: 4px; }
.hyp .niv.mesure { color: var(--fg); border-color: var(--fg-3); }
.hyp a { color: var(--fg); text-underline-offset: 3px; }
.warn { margin: 14px 0 0; font-size: 0.82rem; color: var(--fg-3); line-height: 1.5; }

/* ---------- Offres ---------- */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.offer { padding: 26px 24px 24px; display: flex; flex-direction: column; }
.offer .n { font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); display: flex; justify-content: space-between; gap: 12px; min-height: 2.9em; }
.offer .n span:last-child { text-align: right; }
.offer h3 { font-size: 1.5rem; margin: 18px 0 8px; line-height: 1.15; }
.offer .ask { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--fg-2); line-height: 1.3; margin: 0 0 16px; }
.offer ul { list-style: none; padding: 14px 0 0; margin: 0 0 20px; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--fg-2); }
.offer li { padding: 5px 0 5px 16px; position: relative; }
.offer li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 7px; height: 2px; background: var(--fg-3); }
.offer .price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); }
.offer .price small { display: block; font-size: 0.78rem; color: var(--fg-3); }
.offer .price b { display: block; font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer .price b span { font-size: 0.86rem; font-weight: 400; letter-spacing: 0; color: var(--fg-2); }
.after { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.after .card { padding: 26px 26px 24px; }
.after h3 { font-size: 1.24rem; margin-bottom: 10px; letter-spacing: -0.015em; }
.after p { font-size: 0.96rem; color: var(--fg-2); margin: 0; }
.how { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--fg); counter-reset: how; }
.how li { padding: 22px 24px 0 0; counter-increment: how; }
.how li + li { padding-left: 24px; border-left: 1px solid var(--rule-2); }
.how li::before { content: "0" counter(how); font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.12em; color: var(--fg-3); }
.how h3 { font-size: 1.12rem; letter-spacing: -0.01em; margin: 10px 0 8px; line-height: 1.25; }
.how p { font-size: 0.92rem; color: var(--fg-2); margin: 0; }

/* ---------- L'actuariat, autrement ---------- */
.rosetta { margin-top: 56px; border-top: 2px solid var(--fg); }
.rosetta-head, .rosetta-row { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: 24px; }
.rosetta-head { font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); padding: 14px 0; border-bottom: 1px solid var(--rule-2); }
.rosetta-row { padding: 20px 0; border-bottom: 1px solid var(--rule-2); }
.rosetta-row:last-child { border-bottom: 2px solid var(--fg); }
.rosetta-row .k { font-family: var(--sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.rosetta-row .a { font-size: 1.04rem; color: var(--fg-2); }
.rosetta-row .b { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.creed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; }
.creed div { padding: 0 28px 0 0; }
.creed div + div { padding-left: 28px; border-left: 1px solid var(--rule-2); }
.creed h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.creed p { font-size: 0.96rem; color: var(--fg-2); margin: 0; }
.why { margin: 48px 0 0; padding: 22px 26px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: center; max-width: 880px; }
.why img { width: 64px; height: 64px; border-radius: var(--r); }      /* le cygne, dans son cartouche bleu nuit */
.why p { margin: 0; font-size: 1.02rem; color: var(--fg-2); }
.why strong { color: var(--fg); font-weight: 600; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; margin-top: 56px; align-items: start; }
.about .bio p { color: var(--fg-2); font-size: 1.08rem; }
.about .bio p:first-child { font-size: 1.5rem; line-height: 1.35; letter-spacing: -0.015em; color: var(--fg); }
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--rule-2); }
.proof { padding: 18px 14px 18px 0; border-bottom: 1px solid var(--rule); }
.proof b { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.proof span { display: block; font-size: 0.84rem; color: var(--fg-3); margin-top: 8px; line-height: 1.4; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule-2); }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--fg-2); }
.timeline li.now::before { background: var(--gold); border-color: var(--night); }
.timeline .y { font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.timeline h3 { font-size: 1.2rem; margin: 6px 0; letter-spacing: -0.015em; }
.timeline p { font-size: 0.95rem; color: var(--fg-2); margin: 0; }
.certs { margin-top: 36px; border-top: 1px solid var(--rule-2); }
.certs ul { list-style: none; margin: 0; padding: 0; }
.certs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.93rem; color: var(--fg-2); }
.certs li span:last-child { font-family: var(--sans); font-size: 0.86rem; color: var(--fg-3); white-space: nowrap; padding-top: 3px; }

/* ---------- Assureurs et partenaires ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split .box { padding: 30px 30px 28px; }
.split .box h3 { font-size: 1.24rem; margin-bottom: 14px; }
.split .box ul { margin: 0; padding: 0; list-style: none; }
.split .box li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 0.97rem; color: var(--fg-2); }
.split .box li strong { color: var(--fg); font-weight: 600; }
.split .src { font-size: 0.8rem; color: var(--fg-3); margin: 16px 0 0; line-height: 1.5; }
.split .src a { color: var(--fg-2); text-underline-offset: 3px; }

/* ---------- Questions ---------- */
.faq { margin-top: 44px; border-top: 2px solid var(--fg); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-family: var(--serif); font-size: 1.28rem; font-weight: 400; line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--sans); font-weight: 400; font-size: 1.4rem; color: var(--fg-3); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--fg-2); max-width: 64ch; padding: 0 0 20px; margin: 0; }

/* ---------- Contact, pied ---------- */
.contact { padding: 112px 0; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.contact h2 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); letter-spacing: -0.015em; line-height: 1.07; }
.contact p:not(.tag) { color: var(--fg-2); font-size: 1.14rem; max-width: 34em; margin: 24px 0 0; }
.contact-box { border-top: 2px solid var(--gold); padding-top: 24px; }
.contact-box a.mail { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; text-underline-offset: 5px; word-break: break-word; }
.contact .contact-box .links { margin: 18px 0 26px; font-size: 0.95rem; color: var(--fg-2); }
footer { border-top: 1px solid var(--night-3); padding: 26px 0 34px; font-size: 0.86rem; color: var(--fg-3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
footer .brand { flex-basis: 100%; margin: 14px 0 20px; }
footer .brand img { margin-left: -6px; }
footer a { color: var(--fg-2); text-underline-offset: 3px; }

/* ---------- Page de texte ---------- */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 28px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 12px; padding-top: 20px; border-top: 1px solid var(--rule); }
.doc p { color: var(--fg-2); }
.todo { background: var(--gold); color: var(--night); padding: 1px 6px; border-radius: var(--r); font-weight: 700; }

/* ---------- Apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .chip { transition: none; }
}

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav a { font-size: 0.88rem; }
  .offers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero .calc { max-width: 720px; }
  .sim { grid-template-columns: 1fr; }
  .sim .calc { order: -1; }
  .about, .split { grid-template-columns: 1fr; gap: 48px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .how { grid-template-columns: repeat(2, 1fr); }
  .how li { padding-bottom: 26px; }
  .how li:nth-child(3) { padding-left: 0; border-left: 0; }
  .how li:nth-child(n + 3) { border-top: 1px solid var(--rule-2); }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid var(--night-axis); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--night-3); font-size: 0.96rem; }
  .nav a.btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .facts, .trials, .creed { grid-template-columns: 1fr; }
  .fact { padding: 28px 0 12px; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .creed div, .creed div + div { padding: 22px 0; border-left: 0; }
  .creed div + div { border-top: 1px solid var(--rule-2); }
  .qgrid { grid-template-columns: 1fr 1fr; }
  .gets, .after { grid-template-columns: 1fr; }
  .rosetta-head { display: none; }
  .rosetta-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 1.07rem; }
  .wrap { padding: 0 16px; }
  section { padding: 68px 0; }
  .hero { padding: 40px 0 60px; }
  .hero .lede { font-size: 1.08rem; }
  .calc { padding: 18px 16px 16px; }
  .controls { padding: 4px 16px 14px; }
  .tests { grid-template-columns: 1fr; }
  .test, .test + .test { padding: 14px 0 12px; border-left: 0; }
  .test + .test { border-top: 1px solid var(--rule); }
  .test .l { min-height: 0; }
  .qgrid, .offers, .proofs, .how { grid-template-columns: 1fr; }
  .how li, .how li + li { padding: 20px 0; border-left: 0; }
  .how li + li { border-top: 1px solid var(--rule-2); }
  .get { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
  .get svg { width: 52px; height: 52px; }
  .why { grid-template-columns: 1fr; }
  .contact { padding: 72px 0; }
  .brand img { width: 190px; }
  .top .wrap { flex-wrap: wrap; row-gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .certs li { flex-direction: column; gap: 2px; }
  .verdict { flex-direction: column; gap: 4px; }
}

/* ---------- Sélecteur de langue ---------- */
.lang { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--night-axis); border-radius: var(--r); padding: 2px; flex: none; }
.top .lang a { font-family: var(--sans); font-weight: 700; font-size: 0.80rem; letter-spacing: 0.1em; line-height: 1; text-decoration: none; color: var(--fg-3); padding: 6px 9px; border-radius: var(--r); border-bottom: 0; }
.top .lang a:hover { color: var(--ivory); }
.top .lang a[aria-current="true"] { background: var(--night-3); color: var(--ivory); }
.top-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Offres : l'escalier (trois marches en ligne, deux offres avec nous) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.step { padding: 26px 24px 24px; display: flex; flex-direction: column; }
.step.s1 { margin-top: 80px; }
.step.s2 { margin-top: 40px; background: #ebdec9; background: color-mix(in srgb, var(--gold) 26%, var(--ivory)); border-color: #e2c690; border-color: color-mix(in srgb, var(--gold) 75%, var(--ivory)); border-top: 3px solid var(--gold); }
.step .n { font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge { font-family: var(--sans); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--fg-2); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 3px 9px; }
.badge.on { background: var(--night); border-color: var(--night); color: var(--ivory); }
.step h3 { font-size: 1.7rem; margin: 18px 0 8px; line-height: 1.12; }
.step .ask { font-family: var(--serif); font-style: italic; font-size: 1.14rem; color: var(--fg-2); line-height: 1.3; margin: 0 0 16px; }
.step ul { list-style: none; padding: 14px 0 0; margin: 0 0 20px; border-top: 1px solid var(--rule); font-size: 0.93rem; color: var(--fg-2); }
.step li { padding: 5px 0 5px 16px; position: relative; }
.step li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 7px; height: 2px; background: var(--fg-3); }
.step .price, .after .price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); }
.step .price small, .after .price small { display: block; font-size: 0.78rem; color: var(--fg-3); }
.step .price b, .after .price b { display: block; font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.step .price b span, .after .price b span { font-size: 0.86rem; font-weight: 400; letter-spacing: 0; color: var(--fg-2); }
.step .btn { margin-top: 18px; text-align: center; padding: 12px 16px; font-size: 0.93rem; }
.steps-note, .after .fine { font-size: 0.84rem; color: var(--fg-3); line-height: 1.5; margin: 14px 0 0; }
.after .card { display: flex; flex-direction: column; }
.after .kick { font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); display: block; margin-bottom: 14px; }
.plist { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.plist li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.93rem; color: var(--fg-2); }
.plist li b { display: block; color: var(--fg); font-weight: 600; }
.plist .p { color: var(--fg); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist.ticks li { display: block; position: relative; padding-left: 16px; }
.plist.ticks li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 7px; height: 2px; background: var(--fg-3); }
.after .plist + .price { margin-top: 20px; border-top: 0; padding-top: 0; }
.how-title { font-family: var(--sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin: 64px 0 0; }
.how-title + .how { margin-top: 14px; }
.next { margin: 22px 0 0; font-size: 1.02rem; color: var(--fg-2); }
.next a { color: var(--fg); font-weight: 600; text-underline-offset: 4px; }

/* ---------- Partenaires : deux cartes ---------- */
.boxes { display: grid; gap: 16px; }
.split .box .intro { font-size: 0.97rem; color: var(--fg-2); margin: 0 0 14px; }
.split .actions { margin-top: 30px; }

@media (max-width: 1120px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid var(--night-axis); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--night-3); font-size: 0.96rem; }
  .nav a.btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .top .lang { align-self: flex-start; margin-top: 16px; }
  .top .lang a { padding: 9px 14px; font-size: 0.76rem; }
}
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .step.s1, .step.s2 { margin-top: 0; }
  .step .price { margin-top: 4px; }
}
@media (max-width: 640px) {
  .plist li { flex-direction: column; gap: 2px; }
  .top-actions { gap: 8px; }
  .top-actions .btn { padding: 10px 12px; font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) { .step .btn { transition: none; } }
.more thead th { white-space: normal; vertical-align: bottom; }
