/* =====================================================================
   SOS Patrimoine : feuille de style commune des formulaires (design v3)
   Une seule feuille pour toutes les pages service : modifier ici change tout.
   Polices Bricolage Grotesque et Figtree (SIL OFL 1.1), auto-hébergées.
   ===================================================================== */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  /* Marine et bleu repris de la mascotte, terracotta = couleur de la tuile */
  --navy-950: #071a3d; --navy-900: #0b2350; --navy-800: #143067;
  --ink: #0f1f3d; --muted: #586174;
  --blue-700: #1a439c; --blue-600: #1f4fb5; --blue-100: #d9e4fa; --blue-50: #eef3fd;
  --tile-400: #ff8a4c; --tile-600: #cc4710; --tile-700: #a9390b; --tile-50: #fdf0e9;
  --paper: #f5f2ec; --card: #ffffff; --line: #e5dfd5; --line-strong: #cbc2b4; --track: #ebe5db;
  --ok-700: #157a3c; --ok-50: #ebf7ef; --ok-line: #bfe3cc; --err-700: #b42318;
  --r-lg: 22px; --r-md: 14px; --r-sm: 12px;
  --shadow-card: 0 1px 2px rgb(11 35 80 / .06), 0 24px 48px -24px rgb(11 35 80 / .35);
  --ring: 0 0 0 3px #fff, 0 0 0 5px var(--blue-600);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ring); }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 640px; margin-inline: auto; padding-inline: 16px; }
.wrap--wide { max-width: 1080px; }
@media (min-width: 768px) { .wrap { padding-inline: 24px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 138 76 / .55); } 70%, 100% { box-shadow: 0 0 0 8px rgb(255 138 76 / 0); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Bandeau marine : écailles de tuiles + ligne de toits ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-bottom: 92px;
  background: radial-gradient(120% 90% at 50% 0%, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-size: 48px 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M0 24a24 24 0 0 1 48 0'/%3E%3Cpath d='M-24 48a24 24 0 0 1 48 0M24 48a24 24 0 0 1 48 0'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000, rgb(0 0 0 / .3)); mask-image: linear-gradient(180deg, #000, rgb(0 0 0 / .3)); }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='72' viewBox='0 0 240 72'%3E%3Cg fill='%23fff' fill-opacity='.05'%3E%3Cpath d='M6 72V46L52 14l46 32v26z'/%3E%3Cpath d='M72 27.9V12h10v22.9z'/%3E%3Cpath d='M118 72V52l56-30 56 30v20z'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom / 240px 72px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Logo cliquable : ni soulignement ni couleur de lien (en-tête des pages formulaire) */
a.brand, a.brand:hover { color: #fff; text-decoration: none; }
a.brand { border-radius: 12px; }
.brand__logo { width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgb(255 255 255 / .18), 0 6px 14px -6px rgb(0 0 0 / .5); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand__name b { color: var(--tile-400); font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); }
.chip .ic { width: 16px; height: 16px; color: #86e0aa; }
@media (max-width: 359px) { .chip { display: none; } }

/* ---------- Accroche ---------- */
.hero { padding-top: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgb(255 138 76 / .12); border: 1px solid rgb(255 138 76 / .3); color: #ffd2bb; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tile-400); animation: pulse 2.4s ease-out infinite; }
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 3vw, 3rem); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.hero__sub { margin: 12px 0 0; max-width: 54ch; font-size: 17px; color: rgb(255 255 255 / .8); text-wrap: pretty; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ic { width: 18px; height: 18px; color: var(--tile-400); }
@media (min-width: 768px) {
  .band { padding-bottom: 120px; }
  .hero { padding-top: 28px; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .trust { justify-content: center; }
}

/* ---------- Carte formulaire + progression ---------- */
.card { position: relative; z-index: 1; margin-top: -68px; padding: 22px 18px 24px; background: var(--card); border: 1px solid rgb(11 35 80 / .07);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card); scroll-margin-top: 12px; }
@media (min-width: 640px) { .card { margin-top: -84px; padding: 32px 36px 36px; } }
.progress { margin-bottom: 22px; }
.progress__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.progress__label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); }
.progress__name { font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: right; }
.progress__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress__bar span { position: relative; height: 6px; overflow: hidden; border-radius: 99px; background: var(--track); }
.progress__bar span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.progress__bar span.is-done::after, .progress__bar span.is-current::after { transform: scaleX(1); }

/* ---------- Étapes ---------- */
.step { animation: stepIn .34s var(--ease) both; }
.step__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.step__title:focus { outline: none; box-shadow: none; }
.step__hint { margin: 6px 0 18px; font-size: 15px; color: var(--muted); text-wrap: pretty; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0 4px -10px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; transition: color .2s, background-color .2s; }
.back .ic { width: 18px; height: 18px; }
.back:hover { color: var(--ink); background: rgb(15 31 61 / .05); }

/* ---------- Choix en un geste ---------- */
.options { display: grid; gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px 14px 14px; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), transform .12s var(--ease); }
.opt:hover { border-color: rgb(31 79 181 / .55); box-shadow: 0 10px 24px -16px rgb(31 79 181 / .6); }
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"] { border-color: var(--blue-600); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-600); }
.opt__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--blue-50); color: var(--blue-600); transition: background-color .2s, color .2s; }
.opt__icon .ic { width: 28px; height: 28px; }
.opt[aria-pressed="true"] .opt__icon { background: var(--blue-600); color: #fff; }
.opt--urgent .opt__icon { background: var(--tile-50); color: var(--tile-600); }
.opt--urgent[aria-pressed="true"] .opt__icon { background: var(--tile-600); color: #fff; }
.opt__body { display: grid; flex: 1; gap: 3px; min-width: 0; }
.opt__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.opt__desc { font-size: 14px; line-height: 1.4; color: var(--muted); }
.opt__mark { flex: none; width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 50%; transition: border-color .2s, background-color .2s; }
.opt:hover .opt__mark { border-color: var(--blue-600); }
.opt[aria-pressed="true"] .opt__mark { border-color: var(--blue-600); background: var(--blue-600) center / 14px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
.tag--urgent { background: var(--tile-50); color: var(--tile-700); box-shadow: inset 0 0 0 1px rgb(204 71 16 / .25); }

/* ---------- Champs ---------- */
.field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 700; }
.label__aside { font-size: 13px; font-weight: 600; color: var(--blue-600); }
.input { width: 100%; min-height: 54px; padding: 14px 16px; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: #6e7584; }
.input:hover { border-color: #b3a996; }
.input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgb(31 79 181 / .18); }
.input[aria-invalid="true"] { border-color: var(--err-700); box-shadow: 0 0 0 4px rgb(180 35 24 / .12); }
.input--icon { padding-left: 46px; padding-right: 46px; }
.hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.error { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--err-700); }
.error .ic { width: 18px; height: 18px; margin-top: 1px; }
.hp { display: none !important; }

/* Statut : deux choix radio */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__opt { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 14px; font-size: 15px; font-weight: 700; line-height: 1.25; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.seg__opt:hover { border-color: rgb(31 79 181 / .55); }
.seg__opt:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-600); }
.seg__opt input { -webkit-appearance: none; appearance: none; display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin: 0; cursor: pointer;
  background: #fff; border: 2px solid var(--line-strong); border-radius: 50%; transition: border-color .2s; }
.seg__opt input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-600); transform: scale(0); transition: transform .18s var(--ease); }
.seg__opt input:checked { border-color: var(--blue-600); }
.seg__opt input:checked::before { transform: scale(1); }
.seg__opt input:focus-visible { outline: none; box-shadow: var(--ring); }

/* Commune : champ + suggestions de l'API Adresse */
.combo { position: relative; }
.combo__pin, .combo__loader { position: absolute; top: 16px; width: 22px; height: 22px; pointer-events: none; }
.combo__pin { left: 15px; color: var(--muted); }
.combo__loader { right: 15px; color: var(--blue-600); animation: spin .8s linear infinite; }
.suggest { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 24px 48px -20px rgb(11 35 80 / .4); animation: drop .18s var(--ease) both; }
.suggest button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; text-align: left;
  font-weight: 600; cursor: pointer; background: none; border: 0; border-radius: 10px; }
.suggest button:hover { background: var(--blue-50); }
.suggest button:focus-visible { background: var(--blue-50); box-shadow: inset 0 0 0 2px var(--blue-600); }
.suggest__city { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.suggest__city .ic { width: 18px; height: 18px; color: var(--blue-600); }
.suggest__cp { flex: none; padding: 3px 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--blue-700); background: var(--blue-50); border-radius: 8px; }
.confirm { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; color: var(--ok-700);
  background: var(--ok-50); border: 1px solid var(--ok-line); border-radius: var(--r-sm); }
.confirm .ic { width: 22px; height: 22px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 6px; padding: 14px 22px; cursor: pointer;
  font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: .005em; text-align: center; border: 0; border-radius: var(--r-md);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .12s var(--ease), color .2s; }
.btn .ic { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.btn:hover:not(:disabled) .ic:not(.spin) { transform: translateX(3px); }
.btn:active:not(:disabled) { transform: translateY(2px); }
.btn--primary { color: #fff; background: var(--navy-900); box-shadow: 0 2px 0 var(--navy-950); }
.btn--primary:hover:not(:disabled) { background: var(--navy-800); }
.btn--primary:disabled { color: #7a7262; background: #e3ddd3; box-shadow: none; cursor: not-allowed; }
.btn--cta { color: #fff; background: var(--tile-600); box-shadow: 0 3px 0 var(--tile-700), 0 16px 28px -14px rgb(204 71 16 / .75); }
.btn--cta:hover:not(:disabled) { background: #bb410e; }
.btn--cta:active:not(:disabled) { box-shadow: 0 1px 0 var(--tile-700), 0 8px 18px -12px rgb(204 71 16 / .7); }
.btn[aria-busy="true"] { cursor: progress; }
.spin { animation: spin .8s linear infinite; }
.privacy { display: flex; gap: 10px; margin: 4px 0 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); background: var(--paper); border-radius: var(--r-sm); }
.privacy .ic { width: 18px; height: 18px; margin-top: 1px; }
.privacy a { color: inherit; font-weight: 600; }
.fine { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- Transmission et confirmation ---------- */
.step--center { padding: 18px 0 6px; text-align: center; }
.loader { width: 64px; height: 64px; margin: 0 auto 18px; border: 5px solid var(--blue-100); border-top-color: var(--blue-600); border-radius: 50%; animation: spin .9s linear infinite; }
.line { width: 200px; max-width: 70%; height: 6px; margin: 18px auto 0; overflow: hidden; background: var(--track); border-radius: 99px; }
.line span { display: block; height: 100%; background: var(--blue-600); border-radius: inherit; transition: width .7s var(--ease); }
.success-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; color: var(--ok-700); background: var(--ok-50); border-radius: 50%; animation: pop .5s var(--ease) both; }
.success-mark .ic { width: 40px; height: 40px; }
.step--center > p { max-width: 46ch; margin: 10px auto 0; color: var(--muted); text-wrap: pretty; }
.ticket { display: inline-grid; gap: 2px; margin: 18px auto 0; padding: 12px 22px; background: var(--paper); border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); }
.ticket__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ticket__id { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.next { display: grid; max-width: 360px; margin: 24px auto 0; padding: 0; list-style: none; text-align: left; }
.next li { position: relative; display: grid; gap: 2px; padding: 0 0 16px 40px; }
.next li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: #fff; border: 2px solid var(--line-strong); border-radius: 50%; }
.next li.is-done::before { border-color: var(--ok-700); background: var(--ok-700) center / 14px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.next li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 28px; bottom: 4px; width: 2px; background: var(--line); }
.next b { font-size: 15px; }
.next span { font-size: 14px; color: var(--muted); }

/* ---------- Comment ça se passe + pied de page ---------- */
.how { margin-top: 44px; }
.how__title { margin: 0 0 16px; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.015em; text-align: center; }
.how__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.how__item { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: rgb(255 255 255 / .7); border: 1px solid var(--line); border-radius: 18px; }
.how__num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; font-family: var(--font-display); font-size: 17px; font-weight: 800; color: #fff; background: var(--navy-900); border-radius: 11px; }
.how__item h3 { margin: 4px 0 2px; font-size: 16px; line-height: 1.3; }
.how__item p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (min-width: 768px) { .how__list { grid-template-columns: repeat(3, 1fr); } .how__item { flex-direction: column; } }
.foot { margin-top: 48px; padding: 24px 0 32px; font-size: 13.5px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 6px; }
.foot a { display: inline-block; padding: 6px 2px; color: inherit; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Ajustements petits écrans ---------- */
@media (max-width: 767px) {
  .hero__sub { font-size: 16px; }
  /* Les 3 arguments en tuiles compactes : le formulaire remonte dans l'écran */
  .trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; font-size: 12.5px; line-height: 1.3; }
  .trust li { align-items: flex-start; gap: 6px; padding: 8px 8px 8px 7px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; }
  .trust .ic { width: 16px; height: 16px; margin-top: 0; }
}
@media (max-width: 479px) {
  /* Libellé du bouton sur une seule ligne (téléphones) */
  .btn { padding-inline: 14px; font-size: 16px; }
  .btn--cta .ic { display: none; }
}

/* =====================================================================
   Page d'accueil (mêmes couleurs, polices et composants que les formulaires)
   ===================================================================== */
a.btn, a.btn:hover { color: #fff; text-decoration: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__actions .btn { width: auto; flex: 1 1 220px; margin: 0; }
.btn--ghost { color: #fff; background: rgb(255 255 255 / .08); border: 1.5px solid rgb(255 255 255 / .35); }
.btn--ghost:hover:not(:disabled) { background: rgb(255 255 255 / .16); }
@media (min-width: 768px) { .hero--home .hero__actions { justify-content: center; } .hero--home .hero__actions .btn { flex: 0 1 auto; min-width: 240px; } }
.services { padding-top: 26px; }
.services__head { margin-bottom: 18px; text-align: center; }
.services__head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.services__head p { max-width: 56ch; margin: 6px auto 0; color: var(--muted); }
.pole-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; margin: 0 -18px 8px; padding: 10px 18px; overflow-x: auto; scrollbar-width: none;
  background: rgb(255 255 255 / .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pole-nav::-webkit-scrollbar { display: none; }
.pole-nav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; transition: border-color .2s, color .2s, background-color .2s; }
.pole-nav a:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-50); }
@media (min-width: 640px) { .pole-nav { justify-content: center; flex-wrap: wrap; margin-inline: -36px; padding-inline: 36px; } }
.pole { padding-top: 22px; scroll-margin-top: 70px; }
.pole__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.pole__title .ic { width: 26px; height: 26px; color: var(--tile-600); }
.svc-grid { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.svc { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; color: inherit; text-decoration: none; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--r-md); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .12s var(--ease); }
.svc:hover { color: inherit; border-color: rgb(31 79 181 / .55); box-shadow: 0 12px 28px -18px rgb(31 79 181 / .65); }
.svc:active { transform: scale(.99); }
.svc__top { display: flex; align-items: center; gap: 12px; }
.svc__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: var(--blue-600); background: var(--blue-50); border-radius: 12px; }
.svc__icon .ic { width: 26px; height: 26px; }
.svc--urgent .svc__icon { color: var(--tile-600); background: var(--tile-50); }
.svc__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.svc__desc { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.svc__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 14.5px; font-weight: 700; color: var(--blue-600); }
.svc__more .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.svc:hover .svc__more .ic { transform: translateX(3px); }
.faq { margin-top: 44px; }
.faq details { margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; color: var(--blue-600); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: none; box-shadow: var(--ring); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* =====================================================================
   Pages légales (mentions légales, confidentialité)
   ===================================================================== */
.band--slim { padding-bottom: 76px; }
.brand--link { color: #fff; text-decoration: none; border-radius: 12px; }
.brand--link:hover { color: #fff; }
.legal { font-size: 15.5px; line-height: 1.65; }
.legal h1 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.legal h2 { margin: 28px 0 8px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.legal p, .legal ul { margin: 0 0 10px; color: #2d3a52; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal .note { padding: 12px 14px; font-size: 14px; color: #7a4a0b; background: #fff6e5; border: 1px solid #f3d59b; border-radius: var(--r-sm); }
