/* =========================================================
   Maison Sereine — feuille de style
   ========================================================= */

:root {
  --cream: #f6f0e6;
  --cream-2: #efe6d8;
  --paper: #fffbf5;
  --ink: #1a1f2e;
  --ink-soft: #525868;
  --brand: #1d2b4a;
  --brand-2: #2a3b5e;
  --accent: #b08a4e;
  --accent-dark: #8a6a36;
  --accent-light: #d6b97f;
  --line: rgba(26, 31, 46, .12);
  --line-light: rgba(246, 240, 230, .16);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(29, 43, 74, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 16px 26px;
  background: var(--brand); color: var(--cream);
  border: 0; border-radius: 999px;
  font: 500 16px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(176, 138, 78, .6); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.btn--small { padding: 11px 18px; font-size: 14px; }
.btn--full { width: 100%; }
.btn--light { background: var(--accent-light); color: var(--brand); }
.btn--light:hover { background: var(--cream); color: var(--brand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 20px;
}
.eyebrow--light { color: var(--accent-light); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(176, 138, 78, .2); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 18px 0;
  transition: padding .4s;
}
/* Le fond flouté est porté par un pseudo-élément : un backdrop-filter sur .nav
   enfermerait le menu mobile (position: fixed) dans la barre au lieu de l'écran. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 240, 230, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .4s;
}
.nav.is-scrolled { padding: 10px 0; }
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 60; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--brand); }
.logo__mark { height: 68px; width: auto; overflow: visible; }
.logo__roof { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.logo__word, .logo__sub { fill: currentColor; font-family: "Montserrat", var(--sans); font-weight: 500; }
.logo__rule { stroke: var(--accent); stroke-width: 2; }
.logo--light { color: var(--cream); }
.logo--light .logo__mark { height: 80px; }
.logo--light .logo__roof, .logo--light .logo__rule { stroke: var(--accent-light); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; top: -200px; right: -200px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(176, 138, 78, .18), transparent 65%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 78px); font-weight: 350; }
.lead { font-size: 19px; color: var(--ink-soft); margin: 28px 0 36px; max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.hero__proof li { font-size: 14px; color: var(--ink-soft); padding-left: 16px; border-left: 2px solid var(--accent); line-height: 1.4; }
.hero__proof strong { display: block; font: 500 22px/1.2 var(--serif); color: var(--ink); }

.hero__visual { position: relative; aspect-ratio: 5 / 5.6; }
.hero__img { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero__img:hover img { transform: scale(1.04); }
.hero__img--main { inset: 0 0 12% 12%; border-radius: 200px 200px var(--radius) var(--radius); }
.hero__img--small { width: 38%; aspect-ratio: 3/4; left: 0; bottom: 0; border: 6px solid var(--cream); border-radius: var(--radius); }

.card-float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--paper); padding: 14px 18px; border-radius: 16px;
  box-shadow: 0 20px 40px -18px rgba(26, 31, 46, .35);
  animation: float 6s ease-in-out infinite;
}
.card-float small { display: block; font-size: 12px; color: var(--ink-soft); }
.card-float strong { font-size: 15px; font-weight: 600; }
.card-float--pay { top: 14%; left: -4%; }
.card-float--pay strong { font: 500 20px/1.2 var(--serif); color: var(--brand); }
.card-float__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--cream); display: grid; place-items: center; font: 500 18px var(--serif); }
.card-float--status { right: -3%; bottom: 20%; animation-delay: -3s; max-width: 250px; }
.pulse { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #3fa66b; box-shadow: 0 0 0 0 rgba(63, 166, 107, .5); animation: pulse 2s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63, 166, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 166, 107, 0); } }

/* ---------- Chiffres ---------- */
.stats { border-block: 1px solid var(--line); background: var(--paper); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num, .stat__suffix { font: 350 52px/1 var(--serif); color: var(--brand); letter-spacing: -.03em; }
.stat__suffix { color: var(--accent); font-size: 34px; margin-left: 2px; }
.stat p { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Villes (défilement) ---------- */
.towns { overflow: hidden; padding: 22px 0; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.towns__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.towns span { position: relative; font: italic 350 24px/1 var(--serif); color: var(--ink-soft); padding: 0 32px; white-space: nowrap; }
.towns span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.towns:hover .towns__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section--dark { background: var(--brand); color: var(--cream); }
.section--dark h2 em { color: var(--accent-light); }
.section--tint { background: var(--cream-2); }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head h2, .faq h2, .contact h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 350; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
.section__head--split > p { color: var(--ink-soft); }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; padding: 34px 28px 36px;
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num { font: italic 400 15px var(--serif); color: var(--accent); display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(176, 138, 78, .1); }
.step h3 { font-size: 26px; margin: 26px 0 12px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Avantages ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  padding: 36px; border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
  transition: background .4s, border-color .4s;
}
.benefit:hover { background: rgba(255, 255, 255, .07); border-color: rgba(176, 138, 78, .5); }
.benefit--wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
  background: radial-gradient(circle at 85% 15%, rgba(176, 138, 78, .35), transparent 55%), rgba(255, 255, 255, .04); }
.benefit--wide h3 { font-size: clamp(30px, 3.2vw, 44px); }
.benefit--wide p { font-size: 18px; max-width: 520px; }
.benefit__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(176, 138, 78, .16); display: grid; place-items: center; margin-bottom: auto; }
.benefit:not(.benefit--wide) .benefit__icon { margin-bottom: 28px; }
.benefit__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 24px; margin: 0 0 12px; }
.benefit p { color: rgba(246, 240, 230, .72); font-size: 15px; }

/* ---------- Comparatif ---------- */
.compare { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.compare__row > span { padding: 22px 28px; border-top: 1px solid var(--line); font-size: 15px; }
.compare__row > span:first-child { font-weight: 500; }
.compare__row--head > span { border-top: 0; font: 500 20px/1.2 var(--serif); padding-block: 28px; }
.compare .is-us { background: rgba(29, 43, 74, .05); }
.compare__row--head .is-us { background: var(--brand); color: var(--cream); }
.compare .no { color: var(--ink-soft); }
.compare .no::before, .compare .yes::before { display: inline-block; width: 20px; font-weight: 600; }
.compare .no::before { content: "×"; color: #b4533a; }
.compare .yes::before { content: "✓"; color: #2f8a57; }
.compare .yes { font-weight: 500; color: var(--brand); }

/* ---------- Champs de formulaire ---------- */
.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); padding: 0; }
.field legend { margin-bottom: 10px; }
select, input, textarea {
  width: 100%; font: 400 16px var(--sans); color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1f2e' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(176, 138, 78, .15); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); transition: all .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--brand); color: var(--cream); border-color: var(--brand); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(176, 138, 78, .4); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checklist li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--cream); font-size: 13px; }
.checklist--light { margin-bottom: 36px; }
.checklist--light li::before { background: var(--accent-light); color: var(--brand); font-weight: 700; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-auto-rows: 280px; gap: 20px; }
.gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255, 251, 245, .9); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq__intro { position: sticky; top: 110px; }
.faq__intro > p { color: var(--ink-soft); margin-top: 24px; }
.faq__intro a { color: var(--accent-dark); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font: 400 22px/1.3 var(--serif);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font: 300 22px/1 var(--sans); transition: transform .3s var(--ease), background .3s;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--brand); color: var(--cream); border-color: var(--brand); }
.faq__list details p { color: var(--ink-soft); padding: 0 48px 28px 0; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.contact__intro > p { color: rgba(246, 240, 230, .75); margin: 24px 0 32px; }
.contact__info { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact__info li { display: flex; align-items: center; gap: 14px; }
.contact__info svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__info a { text-decoration: none; }
.contact__info a:hover { color: var(--accent); }

.contact__form { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-light); border-radius: 28px; padding: 36px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--dark > span, .field--dark legend { color: rgba(246, 240, 230, .7); }
.field--dark input, .field--dark textarea, .field--dark select { background-color: rgba(255, 255, 255, .06); border-color: var(--line-light); color: var(--cream); }
.field--dark textarea { resize: vertical; }
.field--dark input::placeholder, .field--dark textarea::placeholder { color: rgba(246, 240, 230, .4); }
.field--dark select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f6f0e6' stroke-width='1.6'/%3E%3C/svg%3E"); }
.field--dark select:invalid { color: rgba(246, 240, 230, .4); }
.field--dark option { color: var(--ink); background: var(--paper); }
.field--dark .chips span { border-color: var(--line-light); color: var(--cream); }
.field--dark .chips label:hover span { border-color: var(--accent-light); }
.field--dark .chips input:checked + span { background: var(--accent-light); color: var(--brand); border-color: var(--accent-light); font-weight: 500; }
.field--dark .is-invalid { border-color: #e98f6b; }
.form__note { font-size: 12px; text-align: center; color: rgba(246, 240, 230, .5); margin-top: -6px; }
.form__msg { font-size: 14px; min-height: 1em; text-align: center; color: var(--accent); }
.form__msg.is-ok { color: #8fd4a8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__form button:disabled { opacity: .6; cursor: wait; }

/* ---------- Footer ---------- */
.footer { background: #141d33; color: rgba(246, 240, 230, .7); padding: 80px 0 30px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-light); }
.footer__grid > div:first-child p { margin-top: 16px; max-width: 300px; }
.footer h4 { color: var(--cream); font: 500 14px var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.footer__grid a:not(.logo) { display: block; text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.footer__grid a:not(.logo):hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 13px; }

/* ---------- Pages légales ---------- */
.legal-header { padding: 16px 0; background: var(--cream); border-bottom: 1px solid var(--line); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.legal-hero { position: relative; overflow: hidden; background: var(--brand); color: var(--cream); padding: 88px 0 96px;
  background-image: radial-gradient(circle at 85% 20%, rgba(214, 185, 127, .18), transparent 55%); }
.legal-hero h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 350; }
.legal-hero h1 em { color: var(--accent-light); }
.legal-hero__lead { max-width: 560px; margin: 22px 0 30px; font-size: 18px; color: rgba(246, 240, 230, .75); }
.legal-hero__meta { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 13px; color: rgba(246, 240, 230, .8); }
.legal-hero__meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); }
.legal-hero__roof { position: absolute; right: -40px; bottom: -30px; width: min(560px, 60vw); pointer-events: none; }
.legal-hero__roof polyline { fill: none; stroke: var(--accent-light); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }

.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 72px; padding-block: 72px 110px; }
.legal-toc { position: sticky; top: 32px; align-self: start; }
.legal-toc p { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 16px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 9px 0 9px 18px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-size: 15px; color: var(--ink-soft); transition: color .2s, border-color .2s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font: italic 400 13px var(--serif); color: var(--accent); padding-top: 2px; }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--ink); border-left-color: var(--accent); }

.legal-body { min-width: 0; max-width: 760px; }
.legal-section { padding: 0 0 52px; margin-bottom: 52px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.legal-section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.legal-num { font: italic 400 16px var(--serif); color: var(--accent); background: rgba(176, 138, 78, .12); padding: 5px 12px; border-radius: 999px; }
.legal-section h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 400; }
.legal-section p { color: var(--ink-soft); }
.legal-section p + p { margin-top: 14px; }
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-section a { color: var(--accent-dark); }
.legal-section ul { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 8px; color: var(--ink-soft); }

.id-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.id-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: transform .35s var(--ease), box-shadow .35s; }
.id-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.id-card--wide { grid-column: 1 / -1; }
.id-card__icon { width: 44px; height: 44px; border-radius: 13px; background: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.id-card__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--accent-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.id-card h3 { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }
.id-card p { color: var(--ink); font-size: 15px; }
.id-card p + p { margin-top: 6px; }
.id-card strong { font: 500 20px var(--serif); }
.id-card a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(176, 138, 78, .5); }
.id-card a:hover { color: var(--accent-dark); }
.id-card__muted { color: var(--ink-soft) !important; font-size: 14px !important; }

.todo { display: inline-block; padding: 2px 10px; margin: 2px 0; border: 1px dashed var(--accent); border-radius: 999px; background: rgba(176, 138, 78, .08); color: var(--accent-dark); font-size: 13px; font-weight: 500; }

.legal-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 36px; border-radius: 24px; color: var(--cream);
  background: radial-gradient(circle at 90% 10%, rgba(214, 185, 127, .25), transparent 55%), var(--brand); }
.legal-cta h3 { font-size: 26px; font-weight: 400; margin-bottom: 6px; }
.legal-cta p { color: rgba(246, 240, 230, .7); }

.footer--legal { padding: 26px 0; }
.footer--legal .footer__bottom { padding-top: 0; }
.footer--legal a { text-decoration: none; }
.footer--legal a:hover { color: var(--accent-light); }
.form__note a { color: inherit; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 80px; }
  .legal-toc { position: static; }
  .legal-toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .legal-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; margin: 0; font-size: 14px; }
}
@media (max-width: 640px) {
  .legal-hero { padding: 60px 0 68px; }
  .id-cards { grid-template-columns: 1fr; }
  .legal-cta { padding: 28px 24px; }
  .legal-header .logo__mark { height: 52px; }
}
/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-float, .pulse, .towns__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid, .faq, .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit--wide { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .section__head--split { grid-template-columns: 1fr; gap: 24px; }
  .faq__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; background: var(--cream);
    flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav__links a:not(.btn) { font: 400 32px var(--serif); color: var(--ink); }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 120px 0 64px; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 44px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 16px; border-left: 0; }
  .stat:first-child { padding-left: 16px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat__num { font-size: 40px; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .benefit--wide { grid-column: auto; }
  .benefit { padding: 28px; }
  .card-float--pay { left: -2%; top: 6%; }
  .card-float--status { right: 0; bottom: 10%; max-width: 210px; }
  .card-float strong { font-size: 13px; }
  .compare__row > span { padding: 16px 12px; font-size: 13px; }
  .compare__row--head > span { font-size: 15px; }
  .compare .no::before, .compare .yes::before { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 12px; }
  .gallery__item--tall { grid-row: span 1; grid-column: span 2; }
  .contact__form { padding: 24px; }
  .row { grid-template-columns: 1fr; }
  .faq__list summary { font-size: 19px; }
  .footer__grid { grid-template-columns: 1fr; }
}
