:root {
  --navy: #14275c;
  --navy-600: #1d3478;
  --navy-50: #eef1f8;
  --ink: #0f1a3a;
  --text: #3b4560;
  --muted: #7a8299;
  --line: #e2e6ef;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --gold: #b89a5e;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(20, 39, 92, .25);
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.is-hidden { display: none !important; }
.muted { color: var(--muted); font-weight: 400; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--font); border: 0; border-radius: 6px; cursor: pointer;
  padding: 14px 22px; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .2s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(20, 39, 92, .6); }
.btn--primary:hover { background: var(--navy-600); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--navy-50); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }

/* ------------------------------------------------------------ Topbar */
.topbar { position: absolute; inset: 0 0 auto; z-index: 10; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.topbar__nav { display: flex; align-items: center; gap: 28px; }
.topbar__nav a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); text-decoration: none; display: none; }
@media (min-width: 720px) { .topbar__nav a { display: inline; } }

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); }
.logo__mark { font-weight: 800; font-size: 26px; letter-spacing: -.035em; line-height: 1; }
.logo__mark sup { font-size: .5em; color: #b89a5e; margin-left: 1px; letter-spacing: 0; }
.logo__text { font-size: 11px; font-weight: 600; line-height: 1.15; max-width: 70px; padding-left: 8px; border-left: 1px solid currentColor; opacity: .85; }

/* ------------------------------------------------------------ Hero */
.hero { position: relative; padding: 104px 0 56px; overflow: hidden; }
.hero__grid { display: grid; gap: 36px; }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(32px, 6.4vw, 56px); font-weight: 700; margin: 20px 0 16px; max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 70%, rgba(184, 154, 94, .35) 70%); }
.hero__accent { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.6vw, 32px); color: var(--navy); margin: 0 0 16px; }
.hero__lead { max-width: 46ch; margin: 0 0 28px; font-size: 17px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero__hint { font-size: 13px; color: var(--muted); }

.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__tag {
  position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); color: var(--navy);
  padding: 7px 12px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.hero__tag svg { width: 15px; height: 15px; }
.hero__card {
  position: absolute; left: 16px; bottom: -22px; background: #fff; border-radius: 12px; padding: 14px 18px;
  box-shadow: var(--shadow); display: grid; gap: 2px; border-left: 3px solid var(--gold);
}
.hero__card strong { color: var(--navy); font-size: 15px; }
.hero__card span { font-size: 13px; color: var(--muted); }

@media (min-width: 960px) {
  .hero { padding: 0; min-height: 720px; display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; min-height: 720px; }
  .hero__copy { padding: 110px 0 60px; }
  .hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 50vw; }
  .hero__media img { height: 100%; aspect-ratio: auto; border-radius: 0 0 0 64px; box-shadow: none; }
  .hero__tag { top: auto; bottom: 32px; left: auto; right: 32px; }
  .hero__card { left: 40px; bottom: 32px; padding: 18px 22px; }
  .topbar__nav a { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
  .topbar__nav .btn--ghost { background: #fff; box-shadow: none; }
  .topbar__nav .btn--ghost:hover { background: var(--navy); color: #fff; }
}

/* ------------------------------------------------------------ Why */
.why { padding: 72px 0 80px; text-align: center; }
.why h2 { font-size: clamp(28px, 4vw, 40px); margin: 18px 0 40px; }
.pill--outline { background: transparent; }
.why__grid { display: grid; gap: 16px; text-align: left; }
@media (min-width: 760px) { .why__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; }
.card h3 { font-size: 20px; margin: 10px 0 8px; }
.card p { margin: 0; font-size: 15px; }

/* ------------------------------------------------------------ Band */
.band { background: var(--navy); color: #cfd6ea; padding: 56px 0; }
.band__inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 6px; }
.band p { margin: 0; }
@media (min-width: 760px) { .band__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ------------------------------------------------------------ Footer */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 16px; }
.footer__legal { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 70ch; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: auto 1fr; gap: 40px; align-items: center; } }

/* ------------------------------------------------------------ Sheet (questionnaire) */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(15, 26, 58, .55); backdrop-filter: blur(3px); animation: fade .25s ease; }
.sheet__panel {
  position: relative; width: 100%; max-width: 620px; max-height: 94dvh; background: #fff;
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: rise .35s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 720px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { border-radius: 22px; max-height: 88vh; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

.sheet__head { padding: 18px 20px 0; }
@media (min-width: 720px) { .sheet__head { padding: 24px 40px 0; } }
.sheet__titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet__title { font-size: clamp(22px, 4.6vw, 28px); }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px -20px 0; }
@media (min-width: 720px) { .segments { margin: 18px 0 0; } }
.segments span { height: 5px; border-radius: 4px; background: var(--navy-50); transition: background .3s; }
.segments span.is-on { background: var(--navy); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: #e0e5f2; }
.icon-btn[disabled] { visibility: hidden; }
.progress { flex: 1; height: 4px; background: var(--navy-50); border-radius: 4px; overflow: hidden; }
.progress__bar { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 4px; transition: width .35s ease; }

.sheet__body { padding: 28px 20px 28px; overflow-y: auto; }
@media (min-width: 720px) { .sheet__body { padding: 36px 40px 40px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.step { display: none; }
.step.is-active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.step__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.step h2 { font-size: clamp(24px, 4.5vw, 30px); margin-bottom: 22px; }
.step__help { margin: -14px 0 18px; color: var(--muted); font-size: 14px; }
.step__sub { font-size: 16px; margin: 26px 0 12px; }
.step > .btn--block { margin-top: 28px; }

.choices { display: grid; gap: 12px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s, transform .15s;
}
.choice:hover { border-color: var(--navy); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.choice:has(input:focus-visible) { outline: 3px solid rgba(20, 39, 92, .3); outline-offset: 2px; }
.choice--big { flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 18px; }
.choice--big svg { width: 34px; height: 34px; color: var(--navy); stroke-width: 1.4; margin-bottom: 10px; }
.choice__title { font-size: 18px; color: var(--navy); }
.choice__sub { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.35; }
.choices--list .choice::after {
  content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14.5px; font-weight: 600; color: var(--ink); transition: all .15s; background: #fff;
}
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid rgba(20, 39, 92, .3); outline-offset: 2px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: 16px/1.4 var(--font); color: var(--ink); padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(20, 39, 92, .1); }
.field input.is-invalid { border-color: #c2413b; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text); line-height: 1.45; margin: 6px 0 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); flex: none; }
.form-error { min-height: 20px; margin: 12px 0 8px; color: #c2413b; font-size: 14px; font-weight: 600; }

.step--done { text-align: center; padding: 20px 0; }
.step--done p { margin: -8px auto 28px; max-width: 36ch; }
.done__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; }
.done__icon svg { width: 34px; height: 34px; stroke-width: 2.4; }

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

/* ------------------------------------------------------------ Questionnaire 3 étapes (format mareco) */
.block { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.block--last { border-bottom: 0; margin-bottom: 0; padding-bottom: 6px; }
.block__title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 14px; }
.block__title svg { width: 22px; height: 22px; color: var(--gold); }
.block__help { margin: -6px 0 14px; color: var(--muted); font-size: 14.5px; }

.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--navy-50); padding: 5px; border-radius: 12px; }
.toggle label { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { display: block; text-align: center; padding: 12px; border-radius: 9px; font-weight: 700; color: var(--navy); transition: all .15s; }
.toggle input:checked + span { background: var(--navy); color: #fff; box-shadow: 0 6px 14px -8px rgba(20, 39, 92, .7); }
.toggle input:focus-visible + span { outline: 3px solid rgba(20, 39, 92, .3); }

.types { display: flex; flex-wrap: wrap; gap: 10px; }
.type { position: relative; cursor: pointer; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type span {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); color: var(--navy); font-weight: 600; font-size: 15px; transition: all .15s;
}
.type svg { width: 22px; height: 22px; stroke-width: 1.5; }
.type:hover span { border-color: var(--navy); }
.type input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.type input:focus-visible + span { outline: 3px solid rgba(20, 39, 92, .3); outline-offset: 2px; }

.field select {
  font: 16px/1.4 var(--font); color: var(--ink); padding: 14px 44px 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314275c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px;
  appearance: none; -webkit-appearance: none;
}
.field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(20, 39, 92, .1); }
.field select.is-invalid, .field textarea.is-invalid { border-color: #c2413b; }
.field input::placeholder, .field textarea::placeholder { color: #a3aabd; }

.notice { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; font-size: 14.5px; }
.notice strong { display: block; color: var(--ink); margin-bottom: 2px; }

.counter { justify-self: end; font-size: 13px; color: var(--muted); }
.actions { display: grid; gap: 12px; margin-top: 8px; }
.btn--outline { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--outline:hover { background: var(--navy-50); }
.step .form-error { margin: 0 0 8px; }

/* ------------------------------------------------------------ Encart commerçant recommandeur */
.reco {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 16px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy);
}
.reco::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); flex: none; }
.reco__text { display: grid; line-height: 1.25; }
.reco__label { font-size: 12px; color: var(--muted); }
.reco__name { font-size: 14px; color: var(--navy); }
.reco--logo { padding: 10px 22px 10px 10px; border-radius: 18px; box-shadow: 0 14px 34px -18px rgba(20, 39, 92, .35); border: 1px solid var(--line); }
.reco--logo::before { display: none; }
.reco__logo { width: 72px; height: 72px; object-fit: contain; flex: none; }
.reco--logo .reco__name { font-size: 16px; }
@media (min-width: 720px) { .reco__logo { width: 88px; height: 88px; } }
