:root {
  --blue: #000091;
  --blue-dark: #000091;
  --blue-pale: #f5f5fe;
  --red: #e1000f;
  --ink: #161616;
  --muted: #161616;
  --line: #e5e5e5;
  --paper: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.45 Arial, Helvetica, system-ui, sans-serif; }
body, button, input { -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--blue-pale); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.container { width: min(100% - 40px, 1120px); margin-inline: auto; }
.skip-link { position: absolute; top: -70px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--blue); color: var(--paper); }
.skip-link:focus { top: 12px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; }
.brand__mark { flex: none; width: 34px; height: 34px; color: var(--blue); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { color: var(--ink); font-size: 14px; letter-spacing: .015em; white-space: nowrap; }
.brand__text small { margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid var(--blue); border-radius: 3px; color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.header-cta:hover { background: var(--blue-pale); }
.header-cta span { font-size: 18px; font-weight: 400; }

.france-renov-banner { display: flex; align-items: center; justify-content: center; min-height: 150px; background: #fff; border-bottom: 1px solid var(--line); }
.france-renov-banner a { display: flex; align-items: center; justify-content: center; width: min(100%, 850px); min-height: 150px; }
.france-renov-banner picture { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 150px; }
.france-renov-banner img { display: block; width: 100%; height: 150px; object-fit: contain; }

.hero { background: linear-gradient(115deg, var(--blue-pale) 0%, var(--paper) 57%, var(--blue-pale) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 448px); align-items: start; gap: clamp(26px, 5vw, 75px); padding-block: 28px; }
.hero__copy { max-width: 550px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { content: ''; display: inline-block; width: 17px; height: 3px; margin-right: 8px; vertical-align: middle; background: var(--red); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 580px; margin: 0 0 16px; color: var(--ink); font-size: clamp(38px, 4.5vw, 60px); font-weight: 750; line-height: 1.08; letter-spacing: -.04em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero__lead { max-width: 490px; margin: 0 0 16px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.hero__reassurance { margin: 0 0 14px; color: var(--blue); font-size: 13px; font-weight: 700; }
.hero__reassurance span { margin-right: 5px; }
.hero__disclaimer { max-width: 485px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-size: 11px; line-height: 1.5; }
.hero__visuals { position: relative; display: flex; gap: 8px; width: min(100%, 372px); margin-top: 16px; }
.hero__visuals img { width: calc(50% - 4px); height: 105px; border-radius: 4px; object-fit: cover; object-position: center 34%; }
.hero__visuals small { position: absolute; right: 5px; bottom: 5px; padding: 2px 4px; background: var(--paper); color: var(--ink); font-size: 9px; }

.lead-card { width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); scroll-margin-top: 10px; }
.lead-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.lead-card__top strong { color: var(--blue); font-size: 13px; }
.lead-card__top span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.lead-card__portraits { display: none; }
.lead-card__notice { margin: 0 0 12px; padding: 8px 10px; border-left: 3px solid var(--red); background: #f6f6f6; color: var(--ink); font-size: 11px; line-height: 1.4; }
.lead-card__notice strong { color: var(--ink); }
.progress { height: 4px; overflow: hidden; border-radius: 4px; background: var(--blue-pale); }
.progress span { display: block; width: 33%; height: 100%; background: var(--blue); transition: width .2s; }
.lead-card__step { display: flex; justify-content: space-between; margin: 5px 0 0; color: var(--ink); font-size: 10px; }
.form-step { padding-top: 15px; }
.form-step h2 { margin: 0 0 12px; color: var(--ink); font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.form-step h2[tabindex="-1"]:focus { outline: none; }
.form-step__intro { margin: -4px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.choice-grid { display: grid; gap: 8px; }
.choice { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.choice:hover { border-color: var(--blue); background: var(--blue-pale); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); box-shadow: inset 0 0 0 1px var(--blue); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__arrow { color: var(--blue); font-size: 20px; font-weight: 400; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 9px 15px; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: var(--paper); font-size: 13px; font-weight: 700; line-height: 1.2; }
.button:hover { text-decoration: underline; }
.button span { font-size: 19px; font-weight: 400; }
.button:disabled { opacity: .65; cursor: wait; }
.back-button { margin-top: 11px; padding: 4px 0; border: 0; background: none; color: var(--blue); font-size: 12px; font-weight: 700; }
.back-button:hover { text-decoration: underline; }
.step-error { margin: 8px 0 0; color: var(--red); font-size: 11px; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-size: 11px; font-weight: 700; }
.field--wide { grid-column: 1 / -1; }
.field input { width: 100%; min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); font-size: 14px; font-weight: 400; }
.field input::placeholder { color: var(--ink); }
.field input:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--ink); font-size: 10.5px; line-height: 1.4; }
.bot-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.consent input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.consent a { position: relative; color: var(--blue); font-weight: 700; text-underline-offset: 2px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.form-actions .back-button { margin-top: 0; }
.form-actions .button { flex: 1; max-width: 255px; }
.form-note { margin: 8px 0 0; color: var(--ink); font-size: 10px; text-align: center; line-height: 1.3; }
.form-status { padding-top: 12px; font-size: 13px; }
.form-status.is-error { color: var(--red); }
.form-status.is-success { color: var(--blue); }

.source-strip { border-top: 1px solid var(--line); background: #f6f6f6; }
.source-strip__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 12px; }
.trust-point { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 11px; font-weight: 700; }
.trust-point svg { flex: none; width: 25px; height: 25px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.source-strip a { color: var(--blue); font-weight: 700; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; color: var(--ink); font-size: 11px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-inner a { color: var(--blue); }

/* Pages juridiques conservées avec leur mise en page propre. */
.document-page { min-height: 100vh; background: #f6f6f6; }
.document-page .site-header { margin-bottom: 36px; }
.document { width: min(100% - 32px, 780px); padding: 54px; margin: 0 auto 70px; border: 1px solid var(--line); background: var(--paper); }
.document h1 { margin-bottom: 18px; color: var(--ink); font-size: 44px; line-height: 1.1; letter-spacing: -.04em; }
.document h2 { margin: 34px 0 10px; color: var(--ink); font-size: 19px; }
.document p, .document li { color: var(--ink); font-size: 14px; line-height: 1.7; }
.document ul { padding-left: 20px; }
.document a { color: var(--blue); }
.document .placeholder { padding: 14px 16px; border-left: 3px solid var(--red); background: #f6f6f6; color: var(--ink); font-size: 13px; }
.document .back-link { display: inline-block; margin-top: 28px; font-size: 13px; font-weight: 700; }

@media (max-width: 800px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 20px; }
  .hero h1 { font-size: clamp(33px, 5vw, 42px); }
  .hero__lead { font-size: 14px; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 520px); }
  .header-inner { min-height: 58px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__text strong { font-size: 12px; }
  .brand__text small { font-size: 9px; }
  .header-cta { min-height: 32px; padding-inline: 9px; font-size: 10px; }
  .header-cta span { display: none; }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-height: 0; padding-block: 15px 24px; }
  .eyebrow { margin-bottom: 6px; font-size: 10px; }
  .hero h1 { max-width: 520px; margin-bottom: 7px; font-size: clamp(28px, 8vw, 35px); line-height: 1.05; }
  .hero__lead { margin-bottom: 8px; font-size: 12.5px; line-height: 1.35; }
  .hero__reassurance { display: none; }
  .hero__disclaimer { padding-top: 6px; font-size: 9.5px; line-height: 1.3; }
  .hero__visuals { display: none; }
  .lead-card { padding: 15px; }
  .lead-card__notice { margin-bottom: 9px; padding: 6px 8px; font-size: 10px; }
  .lead-card__top { margin-bottom: 6px; }
  .lead-card__top strong { font-size: 12px; }
  .lead-card__portraits { display: flex; align-items: center; min-width: 57px; }
  .lead-card__portraits img { width: 30px; height: 30px; border: 2px solid var(--paper); border-radius: 50%; object-fit: cover; object-position: center 32%; }
  .lead-card__portraits img + img { margin-left: -12px; }
  .lead-card__portraits small { display: none; }
  .form-step { padding-top: 10px; }
  .form-step h2 { margin-bottom: 9px; font-size: 20px; }
  .choice { min-height: 48px; }
  .source-strip__inner { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .trust-point { display: block; font-size: 9px; line-height: 1.25; }
  .trust-point svg { margin-bottom: 4px; width: 22px; height: 22px; }
  .footer-inner { display: block; }
  .footer-inner nav { margin-top: 10px; }
  .document { padding: 28px 21px; margin-bottom: 35px; }
  .document h1 { font-size: 35px; }
  body.is-form-progress .hero__copy { display: none; }
  body.is-form-progress .hero__grid { padding-top: 10px; }
}

@media (max-height: 720px) and (max-width: 700px) {
  .france-renov-banner, .france-renov-banner a, .france-renov-banner picture { min-height: 150px; }
  .hero__grid { padding-top: 10px; }
  .hero__disclaimer { font-size: 9px; }
}

/* Conserver les choix et le bouton d'envoi à l'écran sur les petits mobiles. */
@media (max-height: 700px) and (max-width: 700px) {
  .header-inner { min-height: 50px; }
  body.is-form-progress .france-renov-banner { display: none; }
  .hero__grid { gap: 8px; padding-top: 7px; }
  .eyebrow, .hero__lead { display: none; }
  .hero h1 { margin-bottom: 5px; font-size: clamp(25px, 7vw, 29px); line-height: 1.04; }
  .hero__disclaimer { padding-top: 4px; line-height: 1.2; }
  .lead-card { padding: 10px 12px; }
  .lead-card__top { margin-bottom: 4px; }
  .lead-card__notice { margin-bottom: 6px; padding: 5px 7px; }
  .form-step { padding-top: 7px; }
  .form-step h2 { margin-bottom: 6px; font-size: 18px; }
  .form-step__intro { display: none; }
  .choice-grid { gap: 6px; }
  .choice { min-height: 44px; padding-block: 7px; }
  .field-grid { gap: 6px; }
  .field { gap: 3px; }
  .field input { min-height: 36px; padding-block: 5px; }
  .consent { margin-top: 8px; font-size: 10px; line-height: 1.3; }
  .form-actions { margin-top: 8px; }
  .form-actions .button { min-height: 42px; }
  .form-note { display: none; }
}

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