/* KLR — site public · design aligné DS v2 (Figma « KLR — Design System »)
   Règles : radius 0 partout, border-first (1px #e5e5e5, pas d'ombre), page warm #f5f3f1,
   cartes blanches, primary navy #011627, typo ABC Normal (Alphabets by Chileans, 3 graisses, auto-hébergée ; licence validée le 23/10). */

/* size-adjust 97 % : hauteur d'x 0,517 vs 0,5 pour Satoshi, cale les blocs existants.
   Les overrides de métriques imposent la boîte de ligne de Satoshi (ascent 1.01 / descent 0.24 /
   gap 0.10) : ABC ne porte que 0.785/0.215, ce qui gonflait tous les espacements titres/paragraphes
   de ±0,15 em par ligne (passe espacement du 23/10). */
@font-face {
  font-family: 'ABC Normal';
  src: url('/assets/fonts/ABCNormal-Regular.woff2') format('woff2');
  ascent-override: 101%; descent-override: 24%; line-gap-override: 10%;
  font-weight: 400; font-style: normal; font-display: swap; size-adjust: 97%;
}
@font-face {
  font-family: 'ABC Normal';
  src: url('/assets/fonts/ABCNormal-Medium.woff2') format('woff2');
  ascent-override: 101%; descent-override: 24%; line-gap-override: 10%;
  font-weight: 500 600; font-style: normal; font-display: swap; size-adjust: 97%;
}
@font-face {
  font-family: 'ABC Normal';
  src: url('/assets/fonts/ABCNormal-Bold.woff2') format('woff2');
  ascent-override: 101%; descent-override: 24%; line-gap-override: 10%;
  font-weight: 700; font-style: normal; font-display: swap; size-adjust: 97%;
}
:root {
  /* Primitives DS */
  --n0: #ffffff; --n50: #fafafa; --n100: #f5f5f5; --n200: #e5e5e5; --n400: #a1a1a1; --n500: #737373; --n700: #262626; --n800: #171717; --n900: #0a0a0a;
  --warm: #f5f3f1; --marine: #011627; --bleu-ciel: #b6d1f2; --beige: #f5f1eb; --orange: #e85533; --aubergine: #330d24;
  /* Sémantique (mode Light du DS) */
  --page: var(--warm); --background: var(--n50); --card: var(--n0); --foreground: var(--n900);
  --muted: var(--n100); --muted-foreground: #666666; /* n500 #737373 = 4,2:1 sur beige → sous AA ; #666 passe partout */ --border: var(--n200); --input: var(--n200);
  --primary: #011627; --primary-foreground: var(--n0); --ring: #011627;
  --accent: var(--orange); --accent-soft: var(--bleu-ciel);
  --surface-beige: var(--beige); --surface-bleu: var(--bleu-ciel);
  --success-bg: #dcfce7; --success-fg: #15803d; --warning-bg: #fef3c7; --warning-fg: #b45309; --danger-bg: #fee2e2; --danger-fg: #b91c1c; --info-bg: #dbeafe; --info-fg: #1d4ed8;
  --band: #011627; --band-foreground: var(--n50); --band-muted: rgba(250, 250, 250, 0.72);
  --logo: url('/assets/logo-navy.svg');
  --font: 'ABC Normal', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1000px; /* aligné sur --wrap-lg : header/footer et pages légales sur la même grille */
  color-scheme: light;
}
/* PAS de thème sombre : le site est toujours clair, quel que soit le réglage
   système du visiteur (décision Jonathan du 27/10 — une version dark générée
   par prefers-color-scheme circulait en interne). Les fonds sombres sont des
   choix de section (page Sécurité, header sombre), pas un thème. */

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--page); color: var(--foreground); font-family: var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.55; font-size: 16px; overflow-x: hidden;
}
a { color: inherit; text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img, svg { max-width: 100%; height: auto; display: block; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; }
h3 { font-weight: 600; font-size: 1.0625rem; letter-spacing: 0; }
/* h2 sémantique au gabarit visuel d'un h3 (hiérarchie de titres sans saut) */
.h3like { font-weight: 600; font-size: 1.0625rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 600; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--muted-foreground); }
.wrap { width: min(100% - 2 * clamp(20px, 4vw, 48px), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-foreground); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Surlignage de titre — bleu ciel de la palette de marque */
.hl { background: var(--accent-soft); padding: 0 0.12em; margin: 0 -0.02em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Placeholders légaux (legal.json « À COMPLÉTER ») */
mark.todo { background: var(--warning-bg); color: var(--warning-fg); padding: 0 0.3em; font-weight: 600; outline: 1px dashed var(--warning-fg); }

/* Logo (SVG du DS, 50×32 → ratio 1.5625) */
.logo { display: inline-block; width: 50px; height: 32px; background: var(--logo) no-repeat center / contain; text-indent: -9999px; overflow: hidden; flex: none; }
.logo.sm { width: 39px; height: 25px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--border); }
/* Effet verre dépoli au scroll (référence Ramp) : le header est en haut du flux, le fond
   translucide + blur ne se manifeste que quand le contenu passe dessous. Fallback = fond plein. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .top { background: color-mix(in srgb, var(--card) 78%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); }
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; }
.top .logo { width: 41px; height: 26px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted-foreground); line-height: 20px; padding: 14px 0 12px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--foreground); }
/* Le bouton démo est immunisé contre le hover des liens de nav (sinon texte foreground sur fond primaire) */
.nav a.nav-cta:hover { color: var(--primary-foreground); }
.nav a[aria-current="page"] { color: var(--foreground); border-bottom-color: var(--primary); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--foreground); padding: 6px 10px; border: 1px solid var(--border); background: var(--muted); white-space: nowrap; }
.status .pulse { width: 6px; height: 6px; background: var(--accent); }
.navtoggle { display: none; appearance: none; background: transparent; border: 1px solid var(--border); width: 42px; height: 38px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.navtoggle span { display: block; width: 18px; height: 2px; background: var(--foreground); transition: transform 0.2s; }
.navtoggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 820px) {
  .navtoggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px clamp(20px, 4vw, 48px) 20px; background: var(--card); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav a[aria-current="page"] { border-bottom-color: var(--primary); }
  .status { margin-top: 16px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section.alt { background: var(--card); }
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 40px); }
.lede { font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.55; color: var(--muted-foreground); max-width: 54ch; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 20px; }
.hero.compact .wrap { grid-template-columns: 1fr; }
.hero.compact h1 { max-width: 22ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 500; font-size: 15px; height: 40px; padding: 0 18px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--card)); }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--foreground); }
.btn-ghost:hover { border-color: var(--muted-foreground); }
.btn-invert { background: var(--n0); color: #011627; border-color: var(--n0); }
.btn-invert:hover { background: var(--n100); }
.btn:focus-visible, .navtoggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.nav .nav-cta { color: var(--primary-foreground); padding: 0 16px; border-bottom: 0; }

/* Visuel éditorial façon maquette auth : cadre carte blanche + photo en inset 20px */
.visual { background: var(--card); border: 1px solid var(--border); padding: 20px; }
.visual img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.visual.tall img { aspect-ratio: 4 / 5; }

/* Carte bancaire plate (illustration), navy, angles vifs */
.flatcard { background: #011627; color: var(--n50); aspect-ratio: 1.586 / 1; width: min(100%, 380px); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,0.08); }
.flatcard .logo { --logo: url('/assets/logo-white.svg'); }
.flatcard .row { display: flex; justify-content: space-between; align-items: flex-start; }
.flatcard .chip { width: 38px; height: 28px; background: var(--beige); opacity: 0.85; }
.flatcard .num { font-variant-numeric: tabular-nums; letter-spacing: 0.16em; font-weight: 500; font-size: 16px; }
.flatcard .meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.flatcard .meta b { display: block; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; }
.flatcard .net { display: flex; }
.flatcard .net i { width: 24px; height: 24px; display: block; }
.flatcard .net i.a { background: var(--orange); }
.flatcard .net i.b { background: var(--bleu-ciel); margin-left: -8px; opacity: 0.92; }

/* Grilles de cartes (Card DS : fond card, bordure 1px, padding 24) */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); padding: 24px; display: flex; flex-direction: column; }
.feature .ico { width: 40px; height: 40px; background: var(--muted); color: var(--foreground); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted-foreground); margin: 0; font-size: 15px; }
.feature .tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 500; color: var(--foreground); border: 1px solid var(--border); padding: 2px 8px; background: var(--card); }
.feature-foot { margin-top: auto; padding-top: 16px; }

/* Étapes */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--border); padding: 22px 22px 20px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: inline-block; font-weight: 600; font-size: 12px; letter-spacing: 0.06em; color: var(--primary-foreground); background: var(--primary); padding: 3px 7px; margin-bottom: 16px; }
.step h3 { font-size: 1.02rem; }
.step p { color: var(--muted-foreground); font-size: 15px; margin: 0; }

/* Encadrés (bandeau d'info DS : card + bordure, filet couleur d'état à gauche) */
.callout { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--primary); padding: 20px 22px; }
.callout.ok { border-left-color: var(--success-fg); }
.callout.warn { border-left-color: var(--warning-fg); }
.callout h3 { margin-bottom: 8px; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { background: var(--card); border: 1px solid var(--border); padding: 20px 22px; }
.fact .k { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 10px; }
.fact .v { font-weight: 600; font-size: 1.05rem; }
.fact p { color: var(--muted-foreground); font-size: 14.5px; margin: 8px 0 0; }
.facts.stack { grid-template-columns: 1fr; }
.facts.stack .fact p { font-size: 15px; }
.facts.bare .fact { background: transparent; border: 0; border-top: 1px solid var(--border); padding: 16px 0 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 28px; }
.check li::before { content: ""; position: absolute; left: 0; top: 0.38em; width: 16px; height: 16px; background: var(--success-bg); }
.check li::after { content: ""; position: absolute; left: 5.5px; top: calc(0.38em + 2.5px); width: 4px; height: 8px; border: solid var(--success-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check.no li::before { background: var(--danger-bg); }
.check.no li::after { border: 0; width: 8px; height: 2px; background: var(--danger-fg); left: 4px; top: calc(0.38em + 7px); transform: none; }

/* Pages texte (légal) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--border); }
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.6em; }
/* Tableau défilant : le conteneur est focalisable au clavier, la table garde sa sémantique */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.6em 0 1.4em; }
.table-scroll:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 500; color: var(--muted-foreground); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.prose dl { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 8px 18px; margin: 0 0 1.4em; }
.prose dt { color: var(--muted-foreground); font-size: 14px; padding-top: 2px; }
.prose dd { margin: 0; }
.prose code { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--muted); padding: 1px 5px; }
.toc { font-size: 14.5px; columns: 2; column-gap: 32px; padding: 0; list-style: none; margin-bottom: 2em; }
.toc li { break-inside: avoid; margin: 0 0 6px; }
.toc a { text-decoration: none; color: var(--muted-foreground); }
.toc a:hover { color: var(--foreground); }
.page-head { padding: clamp(44px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 24ch; }
.page-head .lede { margin-top: 14px; }
.updated { font-size: 13px; color: var(--muted-foreground); }

/* Carrières — liste et fiche d'offre (générées au build depuis Flatchr) */
.jobs { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--border); }
.job { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 4px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--foreground); }
.job-t { font-size: 1.15rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-m { grid-column: 1; min-width: 0; font-size: 14.5px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-go { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); background: var(--card); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.job:hover .job-go, .job:focus-visible .job-go { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.job:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.jobs-empty { margin: 0 0 32px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.jobs-note { font-size: 14.5px; max-width: 62ch; }
.job-back { font-size: 14px; margin: 0 0 18px; }
.job-back a { color: var(--muted-foreground); text-decoration: none; }
.job-back a:hover { color: var(--foreground); }
.job-facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.job-facts li { font-size: 13.5px; font-weight: 500; padding: 5px 10px; border: 1px solid var(--border); background: var(--card); }
.page-head .cta-row { margin-top: 24px; }
.job-body .cta-row { margin-top: 2.4em; }
.job-body .small { margin-top: 12px; }

/* Bande CTA — navy (signature « aside sombre » du DS) */
.band { background: var(--band); color: var(--band-foreground); padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1.2fr auto; gap: 24px; align-items: center; }
.band h2 { margin: 0 0 6px; color: inherit; }
.band p { margin: 0; color: var(--band-muted); }
.band .btn { background: var(--n0); color: #011627; border-color: var(--n0); }
.band .btn:hover { background: var(--n100); }

/* ---------- Hero « Bloc de marque » ---------- */
.hero2 { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.hero2-copy { background: var(--surface-beige); display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4.5vw, 64px); }
.hero2-copy h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 13ch; }
.hero2-copy .lede { margin-top: 18px; max-width: 46ch; }
.hero2-photo { margin: 0; position: relative; overflow: hidden; min-height: clamp(420px, 50vw, 720px); }
.hero2-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; }
  .hero2-photo { min-height: 320px; }
  .hero2-panel { min-height: 320px; }
}

.hero2-aud { font-size: 15px; font-weight: 500; color: var(--muted-foreground); margin: 0 0 14px; }
.hero2-panel { margin: 0; background: var(--marine); display: grid; place-items: center; padding: clamp(28px, 4vw, 64px); min-height: clamp(420px, 50vw, 720px); }
.hero2-panel img { width: min(100%, 620px); height: auto; }

/* ---------- Carousel « L'essentiel » (onglets-cartes + panneau) ---------- */
.car-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.car-ctrl { display: flex; align-items: center; gap: 8px; flex: none; }
.car-count { margin: 0 10px 0 0; font-size: 14px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.car-arrow { appearance: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; background: var(--card); border: 1px solid var(--border); color: var(--foreground); transition: border-color 0.15s, background 0.15s; }
.car-arrow svg { width: 18px; height: 18px; }
.car-arrow:hover { border-color: var(--muted-foreground); }
.car-arrow.next { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.car-arrow.next:hover { background: color-mix(in srgb, var(--primary) 88%, var(--card)); }
.car-arrow:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.car-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.car-tab { appearance: none; text-align: left; font-family: var(--font); background: var(--card); border: 1px solid var(--border); box-shadow: inset 0 2px 0 transparent; padding: 14px 16px 16px; cursor: pointer; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--muted-foreground); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; transition: color 0.15s, box-shadow 0.15s; }
.car-tab .num { font-size: 12.5px; font-weight: 400; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.car-tab:hover { color: var(--foreground); }
.car-tab[aria-selected="true"] { color: var(--foreground); box-shadow: inset 0 2px 0 var(--primary); }
.car-tab:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.car-panels { background: var(--surface-beige); }
.car-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.car-panel[hidden] { display: none; }
.car-text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.car-text h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 12px; max-width: 24ch; }
.car-text > p { color: var(--muted-foreground); margin-bottom: 22px; max-width: 52ch; }
.car-text .check { margin-bottom: 26px; }
.car-text .check li { font-size: 15px; }
.car-text .check li + li { margin-top: 0.6em; }
.car-visual { position: relative; overflow: hidden; min-height: 360px; }
.car-shot { position: absolute; left: 10%; top: 12%; width: 120%; max-width: none; height: auto; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(1, 22, 39, 0.14); }
.car-shot.low { top: auto; bottom: 14%; }
.car-card { position: absolute; inset: 0; margin: auto; width: min(74%, 520px); height: auto; filter: drop-shadow(0 28px 44px rgba(1, 22, 39, 0.3)); }
.car-phone { position: absolute; left: 50%; transform: translateX(-50%); top: 10%; width: min(58%, 330px); max-width: none; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(1, 22, 39, 0.18); }
.car-card.flat { filter: none; width: min(84%, 600px); }
@media (max-width: 900px) {
  .car-head { flex-direction: column; align-items: flex-start; }
  .car-tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .car-tab { flex: 0 0 190px; }
  .car-panel { grid-template-columns: 1fr; }
  .car-visual { min-height: 280px; }
  .car-shot { left: 6%; top: 10%; width: 132%; }
}

/* Grand visuel back-office (Partenaires) */
.bo-shot { margin: 32px 0 0; background: var(--surface-beige); padding: clamp(24px, 3.5vw, 48px) clamp(24px, 3.5vw, 48px) 0; overflow: hidden; }
.bo-shot img { display: block; width: 100%; border: 1px solid var(--border); border-bottom: 0; box-shadow: 0 16px 40px rgba(1, 22, 39, 0.14); }

/* ---------- Cartes cibles (« À qui ça s'adresse ? ») ---------- */
.cibles-row { display: flex; gap: 14px; }
.cib { position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; min-height: 500px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; transition: flex-grow 0.5s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.cib img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cib::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 22, 39, 0) 30%, rgba(1, 22, 39, 0.38) 62%, rgba(1, 22, 39, 0.86) 100%); }
.cib-body { position: relative; z-index: 1; color: var(--n0); }
.cib-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cib-top h3 { margin: 0; color: inherit; font-size: 1.125rem; font-weight: 600; }
.cib-chip { background: var(--n0); color: var(--n900); font-size: 12.5px; font-weight: 500; padding: 4px 10px; white-space: nowrap; opacity: 0; transition: opacity 0.3s 0.15s; }
.cib-desc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); max-width: 46ch; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.3s 0.15s, max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.cib.is-active { flex-grow: 2.7; }
.cib.is-active .cib-chip { opacity: 1; }
.cib.is-active .cib-desc { opacity: 1; max-height: 140px; }
.cib:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (max-width: 900px) {
  .cibles-row { flex-direction: column; }
  .cib, .cib.is-active { flex: none; min-height: 240px; }
  .cib-chip, .cib-desc { opacity: 1; }
  .cib-desc { max-height: none; }
}

/* ---------- Bloc Ouverture (bleu ciel, 3 étapes) ---------- */
.ouv { background: var(--surface-bleu); padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px); display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4.5vw, 52px); text-align: center; }
.ouv-head { max-width: 62ch; }
.ouv-head h2 { margin-bottom: 12px; }
.ouv-head p { margin: 0; font-size: clamp(1rem, 1.2vw, 1.125rem); color: color-mix(in srgb, var(--foreground) 74%, transparent); }
.ouv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); width: 100%; max-width: 980px; }
.ouv-step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--card); color: var(--foreground); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.ouv-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ouv-step p { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--foreground) 72%, transparent); }
.ouv .cta-row { justify-content: center; }
@media (max-width: 720px) { .ouv-steps { grid-template-columns: 1fr; } }

/* ---------- Section sombre (« Qui fait quoi ») ---------- */
.section.dark { background: var(--marine); color: var(--n50); }
.section.dark + .section { border-top: 0; }
.section.dark h2 { color: var(--n0); }
.section.dark .lede { color: rgba(250, 250, 250, 0.72); }
.section.dark .btn-ghost { background: var(--n0); border-color: var(--n0); color: var(--marine); }
.section.dark .btn-ghost:hover { background: var(--n100); border-color: var(--n100); }
.section.dark .fact { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
.section.dark .fact .k { color: rgba(250, 250, 250, 0.6); }
.section.dark .fact .v { color: var(--n0); }
.section.dark .fact p { color: rgba(250, 250, 250, 0.72); }

/* ---------- FAQ ---------- */
.faq-title { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 2px; cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground); font-size: 20px; font-weight: 400; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { border-color: var(--muted-foreground); color: var(--foreground); }
.faq summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.faq .faq-a { padding: 0 2px 24px; color: var(--muted-foreground); max-width: 78ch; }
.faq .faq-a p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .cib, .cib-chip, .cib-desc, .faq summary::after { transition: none; } }

/* ---------- Footer — composant Figma 8:9 (grille 1272, colonnes 260) ---------- */
.foot { border-top: 1px solid var(--border); padding: clamp(40px, 4.3vw, 64px) 0 32px; background: var(--card); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px 260px; gap: 32px; }
.foot-tag { color: var(--muted-foreground); max-width: 688px; margin: 16px 0 0; font-size: 15px; line-height: 22px; }
.foot-col h2 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); font-weight: 500; margin: 0 0 4px; }
.foot-col a { display: block; text-decoration: none; color: var(--foreground); font-size: 16px; line-height: 24px; padding: 4px 0; }
.foot-col a:hover { color: var(--muted-foreground); }
.foot-legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 13px; line-height: 18px; }
.foot-legal p { margin: 0 0 12px; }
.foot-legal p:last-child { margin-bottom: 0; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; font-size: 13px; color: var(--muted-foreground); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .visual { order: 2; max-width: 560px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .facts, .steps, .two-col { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .prose dl { grid-template-columns: 1fr; gap: 2px 0; }
  .prose dd { margin-bottom: 10px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Bannière de consentement (mesure d'audience) ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); border: 1px solid var(--border); box-shadow: 0 10px 36px rgba(1, 22, 39, 0.16); padding: 20px; }
.consent:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
h2.consent-t { font-weight: 700; font-size: 15px; letter-spacing: 0; color: var(--foreground); margin: 0 0 6px; }
.consent p { font-size: 13.5px; line-height: 1.55; color: var(--muted-foreground); margin: 0 0 14px; }
.consent a { color: var(--foreground); }
.consent-b { display: flex; gap: 10px; }
.consent-b .btn { flex: 1; }

/* Bouton-lien du footer (Gérer les cookies) : même rendu que les liens de colonne */
.foot-col .linklike { appearance: none; background: none; border: 0; display: block; width: 100%; text-align: left; font-family: var(--font); color: var(--foreground); font-size: 16px; line-height: 24px; padding: 4px 0; cursor: pointer; }
.foot-col .linklike:hover { color: var(--muted-foreground); }
.foot-col .linklike:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.linklike-inline { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; cursor: pointer; }
.linklike-inline:hover { text-decoration-color: currentColor; }
.linklike-inline:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- Home v2 — maquette Figma « Home — Desktop (v2) » 311:1547 ----------
   Grille dédiée : 1512 de référence, conteneur 1000 (« à la Apple », décision 22/10). Tokens : fond hero
   (color/fond-hero) et séparateur sur fond sombre (color/separateur-sur-sombre). */
:root { --fond-hero: #e7e4de; --sep-sombre: rgba(255, 255, 255, 0.2); --wrap-lg: 1000px; }
.hvwrap { width: min(100% - 2 * clamp(20px, 7.9vw, 120px), var(--wrap-lg)); margin-inline: auto; }
.hv-section { padding: clamp(56px, 5.8vw, 88px) 0; background: var(--card); }
.hv-section h2 { font-size: clamp(1.75rem, 2.65vw, 2.5rem); line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
.hv-lead { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.55; color: var(--muted-foreground); max-width: 56ch; margin: 14px 0 0; }
.hv-head { max-width: 640px; margin-bottom: clamp(28px, 3.2vw, 48px); }
.hv-white { background: var(--card); }
.hv-fade { background: linear-gradient(180deg, var(--surface-beige), var(--card) 23.6%); }
.hv-dark { background: var(--marine); color: var(--n0); }
.hv-dark h2 { color: var(--n0); }
/* Règle fonds sombres (24/10) : titres en blanc plein, prose atténuée pour le relief */
.hv-dark .hv-lead { color: var(--n0); opacity: 0.78; }
.hv-aubergine { background: var(--aubergine); color: var(--n0); padding: clamp(64px, 7.3vw, 110px) 0; }
.hv-aubergine h2 { color: var(--n0); }
.hv-aubergine .hv-lead { color: var(--n0); opacity: 0.78; }

/* Pré-masquage du hero pour l'entrée animée (classe posée dans <head>, anim.mjs révèle) */
.anim .hv-hero h1, .anim .hv-hero .hv-lead, .anim .hv-hero .cta-row { opacity: 0; }

/* Hero : photo pleine largeur, copie à gauche */
.hv-hero { position: relative; background: var(--fond-hero); overflow: hidden; }
.hv-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hv-hero-in { position: relative; z-index: 1; padding: clamp(72px, 9vw, 140px) 0 clamp(80px, 10vw, 150px); }
.hv-hero h1 { max-width: 13ch; color: var(--marine); font-size: clamp(2.1rem, 3.7vw, 3.5rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.hv-hero .hv-lead { max-width: 44ch; color: #3d3d3d; }
.hv-hero .cta-row { margin-top: 32px; }

/* Panneau à onglets (rôles) : photo à gauche, contenu beige à droite */
.hv-panel { display: grid; grid-template-columns: 41% 1fr; background: var(--surface-beige); }
.hv-panel-photo { margin: 0; }
.hv-panel-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.22s ease; }
.hv-panel-photo img.is-fading { opacity: 0; }
.hv-panel-body { padding: clamp(24px, 2.5vw, 38px) clamp(24px, 3.3vw, 50px) clamp(28px, 3.2vw, 48px) clamp(32px, 5.6vw, 85px); }
.hv-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.hv-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 2px 12px; font-family: var(--font); font-size: clamp(1.05rem, 1.45vw, 1.375rem); font-weight: 700; color: var(--muted-foreground); cursor: pointer; }
.hv-tab[aria-selected="true"] { color: var(--foreground); border-bottom-color: var(--foreground); }
.hv-tab:hover { color: var(--foreground); }
.hv-tab:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.hv-arg { margin-top: clamp(20px, 2.1vw, 32px); }
.hv-arg h3 { font-size: clamp(1.05rem, 1.45vw, 1.375rem); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
.hv-arg p { margin: 0; color: var(--muted-foreground); font-size: clamp(0.95rem, 1.2vw, 1.125rem); max-width: 48ch; }

/* Accordéons (fonctionnalités et étapes) : un seul déplié à la fois */
.hv-acc-h { margin: 0; }
.hv-acc-btn { appearance: none; background: none; border: 0; width: 100%; display: flex; align-items: flex-start; gap: 24px; text-align: left; padding: 22px 0; font-family: var(--font); font-weight: 700; color: inherit; cursor: pointer; }
.hv-acc-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.hv-acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.hv-acc-body > div { overflow: hidden; opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.hv-acc-body p { margin: 0 0 22px; }
.hv-acc.is-open .hv-acc-btn { padding-bottom: 12px; }
.hv-acc.is-open .hv-acc-body { grid-template-rows: 1fr; }
.hv-acc.is-open .hv-acc-body > div { opacity: 1; transform: none; transition-delay: 0.07s; }
.hv-chev { flex: none; width: 18px; height: 15px; margin-left: auto; margin-top: 9px; transition: transform 0.28s ease; opacity: 0.6; }
.hv-acc.is-open .hv-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .hv-acc-body, .hv-acc-body > div, .hv-chev { transition: none; } .hv-acc-body > div { opacity: 1; transform: none; } }

/* Fonctionnalités : liste à gauche, visuel à droite */
.hv-feature { display: grid; grid-template-columns: minmax(0, 480fr) minmax(0, 692fr); gap: clamp(32px, 6.6vw, 100px); align-items: start; }
.hv-feature-list .hv-acc { border-bottom: 1px solid var(--border); }
.hv-feature-list .hv-acc:last-child { border-bottom: 0; }
.hv-feature-list .hv-acc-btn { font-size: clamp(1.05rem, 1.45vw, 1.375rem); color: var(--muted-foreground); padding: 20px 0; }
.hv-feature-list .hv-acc.is-open .hv-acc-btn { color: var(--foreground); }
.hv-feature-list .hv-acc-body p { color: var(--muted-foreground); font-size: 1rem; line-height: 1.6; }
/* Progression du point ouvert : le trait sombre recouvre le séparateur gris
   sur toute la longueur pendant la durée du cycle */
.hv-feature-list .hv-acc { position: relative; }
.hv-feature-list .hv-acc.is-open::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--foreground); transform: scaleX(0); transform-origin: left center; }
[data-acc-auto].is-cycling .hv-acc.is-open::after { animation: hv-progress var(--hv-cycle, 6s) linear forwards; }
[data-acc-auto].is-cycling.is-paused .hv-acc.is-open::after { animation: none; transform: scaleX(1); }
@keyframes hv-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hv-feature-list .hv-acc.is-open::after { animation: none !important; transform: scaleX(1); } }
/* Panneau visuel à hauteur fixe (692×560 de la maquette) : pas de saut quand l'image change */
.hv-feature-visual { margin: 0; position: relative; aspect-ratio: 692 / 560; overflow: hidden; background: var(--surface-beige); }
.hv-feature-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: opacity 0.22s ease; }
.hv-feature-visual img.is-fading { opacity: 0; }

/* Étapes : vidéo à gauche, accordéon à droite, sur marine */
.hv-etapes { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 627fr); gap: clamp(32px, 5.6vw, 85px); align-items: stretch; }
.hv-etapes-media { margin: 0; display: flex; position: relative; }
.hv-video-ctl { position: absolute; left: 16px; bottom: 16px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.4); background: rgba(1,22,39,0.55); color: #fff; cursor: pointer; }
.hv-video-ctl:hover { background: rgba(1,22,39,0.8); }
.hv-video-ctl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hv-video-ctl .ic-play { display: none; }
.hv-video-ctl[aria-pressed="true"] .ic-play { display: block; }
.hv-video-ctl[aria-pressed="true"] .ic-pause { display: none; }
.hv-etapes-media video { width: 100%; height: 100%; object-fit: cover; }
.hv-steps .hv-acc { border-bottom: 1px solid var(--sep-sombre); }
.hv-steps .hv-acc:last-child { border-bottom: 0; }
.hv-steps .hv-acc-btn { font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.34; padding: 24px 0; }
.hv-step-num { flex: none; width: 48px; }
.hv-steps .hv-acc-body > div { padding-left: 72px; padding-right: 42px; }
.hv-steps .hv-acc-body p { margin: 0 0 24px; color: var(--n0); opacity: 0.78; font-size: 1rem; line-height: 1.62; }
.hv-steps .hv-chev { margin-top: 10px; }

/* Cibles : grille 2 × 2 de tuiles beige */
.hv-cibles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hv-cible { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(24px, 2.9vw, 44px); background: var(--surface-beige); padding: clamp(32px, 4.2vw, 64px) 24px clamp(28px, 3.3vw, 50px); margin: 0; }
/* Les illustrations sont fusionnées comme dans Figma : multiply + désaturation sur fond beige */
.hv-cible img { width: min(300px, 70%); height: auto; mix-blend-mode: multiply; filter: grayscale(1); }
.hv-cible span { font-size: clamp(0.85rem, 1.2vw, 1.125rem); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; text-align: center; }

/* Qui fait quoi : photo + trois lignes, sur aubergine */
.hv-qfq { display: grid; grid-template-columns: minmax(0, 521fr) minmax(0, 479fr); align-items: center; column-gap: clamp(40px, 7.3vw, 110px); }
/* La photo fuit jusqu'au bord gauche de la fenêtre sur écran large (miroir de la bande CTA) */
.hv-qfq-photo { margin: 0; width: calc(100% + max(0px, (100vw - var(--wrap-lg)) / 2)); margin-left: calc(max(0px, (100vw - var(--wrap-lg)) / 2) * -1); }
.hv-qfq-photo img { width: 100%; height: auto; }
.hv-qfq-body h2 { margin: 0; }
.hv-infos { margin-top: clamp(28px, 3vw, 44px); }
.hv-info { padding: 20px 0 24px; border-bottom: 1px solid var(--sep-sombre); }
.hv-info:last-child { border-bottom: 0; padding-bottom: 0; }
.hv-info-k { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 8px; }
.hv-info h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 4px; }
.hv-info p { margin: 0; font-size: 0.9375rem; line-height: 1.6; opacity: 0.82; max-width: 62ch; }

/* FAQ v2 : titre aligné à gauche, questions plus grandes */
.hv-faq-title { margin-bottom: clamp(24px, 3.2vw, 48px); }
.hv-section.faq summary { font-size: clamp(1.05rem, 1.45vw, 1.375rem); font-weight: 700; }

/* Bande CTA : copie à gauche, photo carte à droite, sur marine */
.hv-cta { position: relative; background: var(--marine); color: var(--n0); overflow: hidden; }
/* Le bord gauche de la copie reste calé sur la grille 1272, même au-delà de 1512 */
/* Colonne de copie à largeur stable (~520) calée sur la grille ; la photo passe dessous,
   le dégradé de l'overlay garantit la lisibilité du recouvrement */
.hv-cta-copy { box-sizing: border-box; padding: clamp(56px, 7vw, 110px) 0; padding-left: max(clamp(20px, 7.9vw, 120px), calc((100vw - var(--wrap-lg)) / 2)); max-width: calc(max(clamp(20px, 7.9vw, 120px), (100vw - var(--wrap-lg)) / 2) + 520px); position: relative; z-index: 1; }
.hv-cta-copy h2 { font-size: clamp(1.75rem, 2.65vw, 2.5rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--n0); margin: 0; }
.hv-cta-copy .hv-lead { color: var(--n0); opacity: 0.78; }
.hv-cta-copy .cta-row { margin-top: 32px; }
.hv-cta-photo { margin: 0; position: absolute; top: 0; right: 0; bottom: 0; width: min(72%, 1200px); }
.hv-cta-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Fondu maquette (rectangle « overlay » Figma) : la photo émerge du marine */
.hv-cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--marine) 0%, var(--marine) 38%, rgba(1, 22, 39, 0) 85%); pointer-events: none; }

/* Responsive Home v2 */
@media (max-width: 980px) {
  /* Hero empilé : la photo devient un bandeau, le texte repose sur le fond uni */
  .hv-hero-bg { position: static; height: clamp(220px, 45vw, 360px); object-position: 72% 38%; }
  .hv-hero-in { padding: 40px 0 56px; }
  .hv-panel { grid-template-columns: 1fr; }
  .hv-panel-photo img { max-height: 420px; }
  .hv-feature { grid-template-columns: 1fr; gap: 32px; }
  .hv-etapes { grid-template-columns: 1fr; gap: 32px; }
  .hv-etapes-media video { max-height: 420px; aspect-ratio: 840 / 1124; }
  .hv-qfq { grid-template-columns: 1fr; row-gap: 28px; }
  .hv-qfq-photo { max-width: 480px; }
  .hv-cta-photo { position: static; width: 100%; }
  .hv-cta-copy { max-width: none; }
  .hv-cta-copy { padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 48px); }
  .hv-cta-photo img { max-height: 380px; }
  /* empilé : le fondu vient du haut, dans la continuité de la copie */
  .hv-cta-photo::after { background: linear-gradient(180deg, var(--marine) 0%, rgba(1, 22, 39, 0) 55%); }
}
@media (max-width: 640px) {
  .hv-cibles { grid-template-columns: 1fr; }
  .hv-steps .hv-acc-body > div { padding-left: 0; padding-right: 0; }
  .hv-step-num { width: 40px; }
}

/* ---------- Landing d'attente (/landing) — maquette Figma « Landing page » 176:1425 ----------
   Page autonome, hors header/footer (gabarit « bare ») : photo plein cadre, bloc de marque
   en haut à gauche, bouton de lecture au centre → vidéo de présentation en surcouche. */
.lp { position: relative; min-height: 100svh; display: flex; flex-direction: column; background: #f8f5f0; overflow: hidden; }
/* Cadrage de la maquette : la photo démarre 7,09 % sous le haut du cadre (bande beige)
   et fait 114,95 % de sa hauteur — elle déborde donc par le bas, jamais par le haut. */
.lp-photo { position: absolute; left: 0; top: 7.09%; width: 100%; height: 114.95%; max-width: none; object-fit: cover; object-position: 50% 0; }
/* Réserve de lisibilité permanente derrière le bloc de marque : le titre marine
   reste lisible quel que soit le cadrage de la photo (WCAG 1.4.3) */
.lp-in { position: relative; z-index: 2; padding: clamp(28px, 5.3vw, 80px) clamp(20px, 5.3vw, 80px) 32px; background: linear-gradient(to bottom, rgba(248, 245, 240, 0.9) 58%, rgba(248, 245, 240, 0)); }
.lp-logo { display: block; width: clamp(72px, 6.9vw, 104px); aspect-ratio: 50 / 32; background: var(--logo) no-repeat left center / contain; text-indent: -9999px; overflow: hidden; }
/* Logo animé en SVG inline : même boîte, calé à gauche, sans le fond statique sous le balayage */
svg.lp-logo { height: auto; background: none; }
.lp-title { margin: clamp(16px, 1.8vw, 27px) 0 0; max-width: 664px; font-weight: 700; font-size: clamp(1.9rem, 3.7vw, 3.5rem); line-height: 1.072; letter-spacing: -0.018em; color: #011627; text-wrap: initial; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(20px, 1.9vw, 28px); }
.lp-cta .btn { padding: 0 24px; font-size: 14px; }
.lp-cta .btn-ghost { background: #fafafa; border-color: #e5e5e5; color: #0a0a0a; }
.lp-cta .btn-ghost:hover { border-color: #737373; }
.lp-cta .btn svg { flex: none; }

/* Disque de lecture — centré sur le cadre, comme dans la maquette */
.lp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: grid; place-items: center; width: clamp(104px, 11vw, 168px); height: clamp(104px, 11vw, 168px); padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.59); cursor: pointer; transition: background 0.18s ease, transform 0.18s ease; }
.lp-play:hover { background: rgba(255, 255, 255, 0.74); transform: translate(-50%, -50%) scale(1.04); }
.lp-play:focus-visible { outline: 2px solid #011627; outline-offset: 3px; }
.lp-play svg { width: clamp(40px, 4.2vw, 64px); height: auto; }

/* Bloc légal réduit de la landing (gabarit bare, sans footer global) */
.lp-legal { background: var(--card); border-top: 1px solid var(--border); padding: 20px clamp(20px, 4vw, 48px) 24px; }
.lp-legal p { margin: 0 auto; max-width: 1120px; font-size: 12.5px; line-height: 1.6; color: var(--muted-foreground); }

/* Surcouche vidéo */
.lp-modal { width: min(1120px, 92vw); max-width: none; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.lp-modal::backdrop { background: rgba(1, 22, 39, 0.86); }
.lp-modal video { display: block; width: 100%; height: auto; max-height: 80svh; background: #000; }
.lp-close { position: absolute; right: 0; bottom: 100%; margin-bottom: 12px; height: 34px; padding: 0 14px; font-family: var(--font); font-size: 13px; font-weight: 500; color: #fafafa; background: transparent; border: 1px solid rgba(250, 250, 250, 0.45); cursor: pointer; }
.lp-close:hover { border-color: #fafafa; }

@media (max-width: 720px) {
  /* Le texte reste lisible même si la photo remonte sous le bloc de marque */
  .lp-cta { gap: 10px; }
  .lp-play { top: 62%; }
}
@media (prefers-reduced-motion: reduce) { .lp-play, .lp-play:hover { transition: none; transform: translate(-50%, -50%); } }

/* ---------- Page Sécurité (sv-) — maquette Figma « 02 · Sécurité » 1745:1325 ----------
   Variante sombre volontaire de toute la page (décision 16/10) : marine continu,
   hairlines var(--sep-sombre) entre sections, footer global laissé en clair. */
body:has(.sv-hero) .top { background: var(--marine); border-bottom-color: var(--sep-sombre); --logo: url('/assets/logo-white.svg'); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body:has(.sv-hero) .top { background: color-mix(in srgb, var(--marine) 78%, transparent); }
}
body:has(.sv-hero) .nav a { color: rgba(255, 255, 255, 0.72); }
body:has(.sv-hero) .nav a:hover { color: var(--n0); }
body:has(.sv-hero) .nav a.nav-cta:hover { color: var(--marine); background: var(--n100); border-color: var(--n100); }
body:has(.sv-hero) .nav a[aria-current="page"] { color: var(--n0); border-bottom-color: var(--n0); }
body:has(.sv-hero) .nav .nav-cta { color: var(--marine); background: var(--n0); border-color: var(--n0); }
body:has(.sv-hero) .navtoggle { border-color: var(--sep-sombre); }
body:has(.sv-hero) .navtoggle span { background: var(--n0); }

.sv-hero { background: var(--marine); color: var(--n0); padding: clamp(56px, 7vw, 110px) 0 clamp(60px, 7.4vw, 116px); }
.sv-hero h1 { max-width: 16ch; font-size: clamp(2.1rem, 3.7vw, 3.5rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.sv-hero .hv-lead { color: var(--n0); opacity: 0.72; max-width: 50ch; }
.anim .sv-hero h1, .anim .sv-hero .hv-lead { opacity: 0; }
.sv-sep { border-top: 1px solid var(--sep-sombre); }
.sv-dim { opacity: 0.72; }
.sv-k { display: block; font-size: 13px; opacity: 0.55; margin-bottom: 8px; }
.sv-num { display: block; font-size: 13px; opacity: 0.55; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.sv-note { font-size: 13px; line-height: 1.55; opacity: 0.55; margin: 0; max-width: 72ch; }

/* Trois rôles : lignes éditoriales (fonction + nom à gauche, description à droite) */
.sv-roles { list-style: none; margin: 0; padding: 0; }
.sv-roles li { display: grid; grid-template-columns: minmax(0, 392fr) minmax(0, 832fr); gap: clamp(20px, 3.8vw, 48px); padding: clamp(22px, 2.4vw, 36px) 0; }
.sv-roles li + li { border-top: 1px solid var(--sep-sombre); }
.sv-roles li:first-child { padding-top: 0; }
.sv-roles li:last-child { padding-bottom: 0; }
.sv-roles h3 { font-size: clamp(1.15rem, 1.45vw, 1.375rem); letter-spacing: -0.01em; margin: 0; }
.sv-roles p { margin: 0; opacity: 0.72; line-height: 1.62; max-width: 72ch; }

/* Vérifications : quatre pas numérotés */
.sv-verifs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3.8vw, 48px); }
.sv-verifs li { border-top: 1px solid var(--sep-sombre); padding-top: 18px; }
.sv-verifs h3 { font-size: 1.125rem; margin: 0 0 8px; }
.sv-verifs p { margin: 0; font-size: 0.9375rem; opacity: 0.72; line-height: 1.6; }

/* Vos fonds : logo Treezor au-dessus du titre, textes à droite */
.sv-fonds { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 628fr); gap: clamp(32px, 8.2vw, 124px); align-items: start; }
.sv-treezor { display: block; width: 122px; height: 40px; margin-bottom: 28px; }
.sv-fonds-body p { margin: 0 0 20px; opacity: 0.72; line-height: 1.62; }
.sv-fonds-body .sv-strong { font-size: clamp(1rem, 1.2vw, 1.125rem); opacity: 1; line-height: 1.55; }
.sv-fonds-body .sv-note { margin-bottom: 0; }

/* Données & opérations : cartes à icônes, hauteurs égales */
.sv-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sv-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--sep-sombre); padding: clamp(22px, 1.9vw, 28px); }
.sv-card svg { display: block; width: 28px; height: 28px; margin-bottom: 18px; }
.sv-card h3 { font-size: 1.125rem; margin: 0 0 8px; }
.sv-card p { margin: 0; font-size: 0.9375rem; opacity: 0.72; line-height: 1.6; }
.sv-cards + .sv-note { margin-top: 28px; }

/* Transparence : liste à filets */
.sv-points { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.sv-points li { border-top: 1px solid var(--sep-sombre); padding: 20px 0; }
.sv-points li:last-child { padding-bottom: 0; }
.sv-points p { margin: 0; opacity: 0.72; line-height: 1.62; max-width: 75ch; }
.sv-points a { color: inherit; }

@media (max-width: 980px) {
  .sv-roles li { grid-template-columns: 1fr; gap: 10px; }
  .sv-fonds { grid-template-columns: 1fr; gap: 28px; }
  .sv-verifs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .sv-verifs { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  body:has(.sv-hero) .nav { background: var(--marine); border-bottom-color: var(--sep-sombre); }
  body:has(.sv-hero) .nav a { border-bottom-color: var(--sep-sombre); }
}
