:root {
  --red: #E4190A;
  --red-dark: #B91211;
  --red-darker: #98110A;
  --text: #111111;
  --text-2: #454544;
  --text-3: #6A6A69;
  --surface: #FFFFFF;
  --surface-2: #F6F6F6;
  --ink: #111111;
  --line: rgba(17, 17, 17, 0.1);
  --field-line: #898988;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 24px; color: var(--text); background: var(--surface); }
img, video { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 48px; line-height: 56px; font-weight: 400; letter-spacing: -0.02em; }
h1 .light { color: var(--text-3); }
h1 strong { display: block; font-weight: 700; margin-top: 8px; }
h2 { font-size: 32px; line-height: 40px; font-weight: 400; letter-spacing: -0.01em; }
h3 { font-size: 16px; line-height: 24px; font-weight: 700; }
a { color: var(--text); transition: color 150ms var(--ease); }
a:hover { color: var(--red-dark); }
strong { font-weight: 700; }

/* La signature : guillemets rouges autour de la parole de Yannick */
.g { color: var(--red); }
.spoken::before { content: "« "; color: var(--red); }
.spoken::after { content: " »"; color: var(--red); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
.split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; align-items: start; }
.stack > * + * { margin-top: 16px; }
.lead { font-size: 18px; line-height: 28px; color: var(--text-2); }
.aside { color: var(--text-3); font-size: 14px; line-height: 20px; }

.test-banner { background: var(--surface-2); color: var(--text-2); font-size: 12px; line-height: 16px; text-align: center; padding: 8px 16px; }
.site-header { padding: 16px 0; border-bottom: 1px solid var(--line); }
.logo { width: 240px; height: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--red); color: #FFFFFF; text-decoration: none; font: 700 16px/24px Arial, Helvetica, sans-serif; border: 0; border-radius: 8px; cursor: pointer; transition: background-color 150ms var(--ease), transform 150ms var(--ease); }
.btn:hover { background: var(--red-dark); color: #FFFFFF; }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: var(--text-3); cursor: default; }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .play:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-block { display: flex; width: 100%; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--field-line); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }

.hero { padding: 48px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "title video" "body video"; grid-template-rows: 1fr 1fr; column-gap: 64px; row-gap: 24px; }
.hero h1 { grid-area: title; align-self: end; }
.hero-video { grid-area: video; }
.hero-body { grid-area: body; align-self: start; }
.hero-sub { font-size: 18px; line-height: 28px; color: var(--text-2); }
.hero-condition { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--text-3); }
.hero-body .btn { margin-top: 24px; }
.hero-note { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--text-2); }

.player { position: relative; background: var(--ink); border-radius: 8px; overflow: hidden; }
.ratio-vertical { aspect-ratio: 9 / 16; }
.ratio-horizontal { aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; background: var(--red); color: #FFFFFF; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 150ms var(--ease), transform 150ms var(--ease); }
.play:hover { background: var(--red-dark); }
.play:active { transform: scale(0.96); }
.player.playing .play { display: none; }

/* Bandeau de chiffres qui défile sous le premier écran */
.ticker { background: var(--ink); color: #FFFFFF; overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: baseline; gap: 8px; padding-left: 32px; white-space: nowrap; font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, 0.82); }
.ticker li::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); margin-left: 32px; align-self: center; }
.ticker b { color: #FFFFFF; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; }
  .ticker ul { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .ticker ul[aria-hidden] { display: none; }
  .ticker li { padding: 0 16px; }
  .ticker li::after { display: none; }
}

.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-form { background: var(--surface-2); border-top: 0; }
.section-title > * + * { margin-top: 16px; }

form { background: var(--surface); padding: 24px; border-radius: 8px; }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label { display: block; font-size: 14px; line-height: 20px; font-weight: 700; margin-bottom: 4px; }
input:not([type="checkbox"]), select { width: 100%; font: 16px/24px Arial, Helvetica, sans-serif; padding: 0 12px; height: 48px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--surface); color: var(--text); transition: border-color 150ms var(--ease); }
input:not([type="checkbox"]):hover, select:hover { border-color: var(--text); }
.field.has-error input, .field.has-error select { border-color: var(--red-dark); }
.field-error { color: var(--red-dark); font-size: 14px; line-height: 20px; margin-top: 4px; }
.check { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.check input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--red); }
.check label { font-weight: 400; margin: 0; color: var(--text-2); }
.check label a { color: var(--text-2); }
.check.has-error label { color: var(--red-dark); }
.form-error { color: var(--red-dark); font-weight: 700; margin-bottom: 16px; }
.form-note { font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 12px; }
.hp { position: absolute; left: -9999px; }

/* Formulaire en deux étapes, choix à toucher */
.form-progress { font-size: 14px; line-height: 20px; color: var(--text-2); margin-bottom: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
fieldset.field legend { padding: 0; font-size: 14px; line-height: 20px; font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: 8px; font-size: 16px; line-height: 24px; color: var(--text); background: var(--surface); cursor: pointer; transition: border-color 150ms var(--ease), background-color 150ms var(--ease), color 150ms var(--ease); }
.chip:hover span { border-color: var(--text); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
fieldset.field.has-error .chip span { border-color: var(--red-dark); }
.link-back { display: block; margin: 12px auto 0; padding: 8px; background: none; border: 0; font: 14px/20px Arial, Helvetica, sans-serif; color: var(--text-2); text-decoration: underline; cursor: pointer; }
.link-back:hover { color: var(--red-dark); }
.link-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Boutons intermédiaires et bouton collant sur mobile */
.inline-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.sticky-cta { display: none; }

.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.marks { list-style: none; padding: 0; margin: 16px 0 0; }
.marks li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); color: var(--text-2); }
.marks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; background: var(--text-2); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.marks.yes { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.marks.no { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.after { margin-top: 32px; }


.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 16px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-size: 24px; line-height: 28px; color: var(--text-3); }
.steps p { grid-column: 2; color: var(--text-2); }
.steps h3 { grid-column: 2; grid-row: 1; }

.about { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; align-items: center; }
figure { margin: 0; }
figcaption { font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 8px; }
.about-photo img { width: 100%; height: auto; border-radius: 8px; }
.about-text > * + * { margin-top: 16px; }
.about-text p { color: var(--text-2); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 24px; justify-content: start; }
.facts b { display: block; font-size: 24px; line-height: 32px; font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; line-height: 20px; color: var(--text-3); }
.about-text blockquote { margin: 24px 0 0; font-size: 18px; line-height: 28px; }

/* Moment : les dossiers en registre */
.ledger { list-style: none; padding: 0; margin: 32px 0 0; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px; gap: 32px; padding: 24px 0; border-top: 1px solid var(--line); align-items: start; }
.ledger .blocage { font-size: 14px; line-height: 20px; color: var(--text-3); margin-bottom: 4px; }
.ledger .profil { color: var(--text-2); }
.ledger .montant { font-size: 28px; line-height: 32px; font-variant-numeric: tabular-nums; }
.ledger .conditions { font-size: 14px; line-height: 20px; color: var(--text-3); margin-top: 4px; }


details { border-top: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 700; cursor: pointer; }
details p { margin-top: 12px; color: var(--text-2); }
.transcript { border-top: 0; padding: 12px 0 0; }
.transcript summary { font-weight: 400; font-size: 14px; line-height: 20px; color: var(--text-2); text-decoration: underline; }
.transcript p { margin-top: 8px; font-size: 14px; line-height: 20px; }

.section-cta { text-align: left; }
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-grid p { margin-top: 8px; color: var(--text-2); }

.site-footer { padding: 48px 0; background: var(--surface-2); font-size: 12px; line-height: 16px; color: var(--text-3); }
.site-footer a { color: var(--text-3); }
.signature { font-size: 18px; line-height: 28px; color: var(--text); margin-bottom: 24px; }
.warning { margin-bottom: 24px; color: var(--text); font-size: 14px; line-height: 20px; }
.warning p + p { margin-top: 4px; color: var(--text-2); }
.legal p + p { margin-top: 4px; }
.footer-links { margin-top: 16px; }

.page { padding: 48px 0 80px; }
.page h1 { font-size: 32px; line-height: 40px; }
.page h2 { font-size: 24px; line-height: 32px; margin: 32px 0 8px; }
.page p + p { margin-top: 8px; }
.page .btn { margin-top: 24px; }
.page form { padding: 0; margin-top: 24px; }
.confirm { background: var(--surface-2); border-radius: 8px; padding: 24px; margin-bottom: 32px; }
.confirm h1, .confirm h2 { margin: 0 0 8px; }
.intro { margin-top: 8px; color: var(--text-2); }

.progress { font-size: 14px; line-height: 20px; color: var(--text-2); margin-bottom: 24px; }
.progress-bar { height: 4px; background: var(--surface-2); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.progress-bar div { height: 100%; background: var(--red); width: 0; }
.fiche-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; }
.fiche-nav .btn { margin-top: 0; }
.row-group { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0; }
.row-group legend { font-weight: 700; padding: 0 8px; }
.page section[data-step] > .btn { margin-top: 0; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.field-head > label { margin-bottom: 0; }
.nsp { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text-2); cursor: pointer; }
.nsp input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
input:disabled { background: var(--surface-2); border-color: var(--line); }

@media (max-width: 860px) {
  h1 { font-size: 32px; line-height: 40px; }
  h2 { font-size: 28px; line-height: 36px; }
  .container { padding: 0 16px; }
  .hero { padding: 24px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "video" "body"; grid-template-rows: auto; row-gap: 24px; }
  .hero-video { max-width: 280px; width: 100%; margin: 0 auto; }
  .hero-body .btn { display: flex; width: 100%; }
  .section { padding: 56px 0; }
  .split, .two-cols, .about { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 24px; }
  .two-cols { gap: 32px; }
  .about { gap: 32px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .logo { width: 200px; }
  form { padding: 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ledger li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .inline-cta .btn { display: flex; width: 100%; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); transform: translateY(100%); visibility: hidden; transition: transform 200ms var(--ease), visibility 0s linear 200ms; }
  .sticky-cta.is-shown { transform: none; visibility: visible; transition: transform 200ms var(--ease), visibility 0s; }

}

[data-mt="16"] { margin-top: 16px; }
[data-mt="40"] { margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { .sticky-cta, .sticky-cta.is-shown { transition: none; } }
