/* Domicile Serein — feuille de style.
   Identité : prune profond + safran + lilas pâle, Lexend (titres) et Atkinson Hyperlegible (texte, conçue pour les malvoyants).
   Corps de texte 18 px minimum, contraste AA renforcé, cibles tactiles ≥ 48 px. */
:root {
  --ink: #2b1a3a;
  --ink-2: #4b3a5a;
  --muted: #5b4a68;
  --bg: #fdfbff;
  --white: #ffffff;
  --tint: #f2ecf8;
  --tint-2: #e7def1;
  --line: #d9cde6;
  --line-strong: #85739a;
  --accent: #f3b63f;
  --accent-soft: #fff1d2;
  --violet: #6a2c91;
  --violet-soft: #ede3f6;
  --deep: #2b1a3a;
  --deep-2: #3a2550;
  --on-deep: #fbf7f2;
  --on-deep-2: #e6dcef;
  --ok: #1d6a46;
  --ok-soft: #e3f3ea;
  --bad: #a1301f;
  --bad-soft: #fbe9e5;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(43, 26, 58, .06), 0 10px 30px -12px rgba(43, 26, 58, .18);
  --font-head: 'Lexend', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.big-text { font-size: 21px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; overflow-x: hidden; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--violet); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3, .h3 { font-family: var(--font-head); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.18; }
h3, .h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
em { font-style: normal; color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.deep :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .aside-card:not(.plain) :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.container.narrow > * { max-width: 820px; }
.container.narrow > .center { max-width: none; }
.center { text-align: center; margin-top: 40px; }
.small { font-size: .875rem; color: var(--muted); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 58px; padding: 0 1.6em; border-radius: 999px; background: var(--accent); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; line-height: 1.2; text-align: center; }
.btn:hover { background: #ffc85c; color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(122, 79, 0, .55); }
.btn svg { width: 1.25em; height: 1.25em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn.secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.small { min-height: 48px; font-size: .95rem; padding: 0 1.2em; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--violet); min-height: 44px; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 251, 255, .97); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(43, 26, 58, .5); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 48px; }
.logo-mark { width: 46px; height: 46px; color: var(--ink); stroke: none; }
.logo-type { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.logo-type strong { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo-type span { font-size: .8rem; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; white-space: nowrap; min-height: 48px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.main-nav a:hover { background: var(--tint); color: var(--ink); }
.main-nav a[aria-current] { background: var(--tint); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 12px 12px 4px 4px; }
.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { white-space: nowrap; }
.text-toggle { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); font: 700 .85rem var(--font-body); cursor: pointer; }
.text-toggle svg { width: 22px; height: 22px; }
.text-toggle:hover { border-color: var(--ink); }
.text-toggle[aria-pressed="true"] { border-color: var(--ink); background: var(--tint); }
.menu-toggle { display: none; width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.menu-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1380px) {
  .text-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .text-toggle { padding: 0; width: 52px; justify-content: center; }
}
@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px clamp(16px, 4vw, 40px) 28px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(43, 26, 58, .4); max-height: calc(100vh - var(--header-h)); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  body.menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { min-height: 56px; font-size: 1.1rem; padding: 0 16px; }
  .main-nav .nav-cta { display: inline-flex; justify-content: center; background: var(--accent); margin-top: 10px; font-family: var(--font-head); }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .header-actions .btn { display: none; }
  .header-inner { gap: 10px; }
  .logo { gap: 10px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-type strong { font-size: 1.05rem; }
  .logo-type span { font-size: .75rem; }
  .text-toggle, .menu-toggle { width: 48px; height: 48px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.tint { background: var(--tint); }
.section.deep { background: var(--deep); color: var(--on-deep); }
.section.deep h2, .section.deep h3 { color: var(--on-deep); }
.section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--violet); margin: 0 0 14px; font-size: 1rem; }
.eyebrow::before { content: ''; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); flex: none; }
.deep .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 66ch; }
.deep .lead { color: var(--on-deep-2); }

/* Révélations sobres (désactivées si mouvement réduit) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Héros ---------- */
.hero { position: relative; background: radial-gradient(ellipse 60% 70% at 85% 30%, #fff3d9 0%, rgba(255, 243, 217, 0) 70%), var(--tint); padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { color: var(--violet); }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); margin-bottom: 28px; }
.hero-choice { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; max-width: 560px; }
.big-choice { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 14px 22px 14px 16px; border-radius: 22px; background: var(--white); border: 2px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.big-choice:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.big-choice strong { display: block; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.big-choice small { display: block; color: var(--muted); font-size: .9rem; }
.big-choice > svg { margin-left: auto; width: 26px; height: 26px; color: var(--violet); }
.bc-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.bc-ico svg { width: 30px; height: 30px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); }
.ticks svg { color: var(--ok); width: 22px; height: 22px; stroke-width: 2.6; }
.arch { position: relative; }
.arch img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 999px 999px 32px 32px; box-shadow: 0 30px 60px -30px rgba(43, 26, 58, .45); }
.hero-media { position: relative; z-index: 0; isolation: isolate; }
.hero-media.arch::after { content: ''; position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); left: -6%; bottom: 10%; z-index: -1; }
.hero-media.arch::before { content: ''; position: absolute; inset: 5% -4% -3% 10%; border: 2px solid var(--line); border-radius: 999px 999px 36px 36px; z-index: -1; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .arch img { aspect-ratio: 16 / 11; border-radius: 200px 200px 24px 24px; }
  .hero-media.arch::before, .hero-media.arch::after { display: none; }
}
@media (max-width: 560px) { .big-choice { min-height: 80px; } .arch img { aspect-ratio: 16 / 9; border-radius: 140px 140px 20px 20px; } .hero { padding-top: 20px; } }

/* ---------- Héros de page ---------- */
.page-hero { background: var(--tint); padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 6vw, 80px); }
.ph-inner { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero.has-img .ph-inner { grid-template-columns: 1.15fr .85fr; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 22ch; }
.page-hero:not(.has-img) h1 { max-width: 28ch; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ph-media img { aspect-ratio: 1; }
@media (max-width: 900px) { .page-hero.has-img .ph-inner { grid-template-columns: 1fr; } .ph-media { max-width: 560px; } .ph-media img { aspect-ratio: 16 / 10; border-radius: 160px 160px 24px 24px; } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 22px; font-size: .9rem; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin: 0 10px; color: var(--muted); }
.crumbs a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- Solutions ---------- */
.sol-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sol-card a { display: flex; flex-direction: column; height: 100%; padding: 26px 24px 22px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.sol-card a:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.sol-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); margin-bottom: 18px; }
.sol-ico svg { width: 36px; height: 36px; stroke-width: 1.8; }
.sol-card h2, .sol-card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.sol-card p { color: var(--ink-2); flex: 1; font-size: .95rem; }
.sol-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--violet); }
@media (max-width: 1040px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sol-grid { grid-template-columns: 1fr; } .sol-card a { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 16px; padding: 20px; } .sol-ico { margin: 0; width: 56px; height: 56px; } .sol-card h2, .sol-card h3 { flex: 1; margin: 0; } .sol-card p { flex-basis: 100%; margin: 12px 0 8px; } }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 28px; border: 2px solid var(--line); }
.tint .step { border-color: transparent; }
.step-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--tint-2); }
.step-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--accent); margin-bottom: 20px; }
.step-ico svg { width: 30px; height: 30px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Aides ---------- */
.aid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aid-card { background: var(--white); border-radius: var(--radius); padding: 26px 24px; border: 2px solid var(--line); border-top: 6px solid var(--accent); display: flex; flex-direction: column; }
.aid-card p { color: var(--ink-2); flex: 1; font-size: .95rem; }
.tint .aid-card { border-color: transparent; border-top-color: var(--accent); }
.note { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 2px solid #f0d28f; }
.note > svg { width: 28px; height: 28px; color: #7a4f00; margin-top: 2px; }
.note p { margin: 0; }
@media (max-width: 1040px) { .aid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aid-grid { grid-template-columns: 1fr; } }

/* ---------- Engagement ---------- */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promise-col { border-radius: var(--radius); padding: 30px; background: var(--deep-2); }
.promise-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promise-col li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-deep); }
.promise-col li svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; margin-top: 0; stroke-width: 3; }
.promise-col.yes li svg { background: var(--accent); color: var(--ink); }
.promise-col.no li svg { background: rgba(251, 247, 242, .16); color: var(--on-deep); }
@media (max-width: 800px) { .promise { grid-template-columns: 1fr; } .promise-col { padding: 24px; } }

/* ---------- Zones ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-media img { border-radius: 32px; aspect-ratio: 5 / 4; object-fit: cover; }
.arch-soft img { border-radius: 220px 220px 28px 28px; }
.zone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.zone-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 22px; border-radius: var(--radius-sm); background: var(--tint); color: var(--ink); text-decoration: none; transition: background .2s; }
.zone-list a:hover { background: var(--tint-2); color: var(--ink); }
.zone-list strong { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.zone-list span { color: var(--muted); font-size: .92rem; text-align: right; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); }
.tint .faq-item { border-color: transparent; }
.faq-h { margin: 0; font-size: 1.1rem; }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px; background: none; border: 0; text-align: left; font: 600 1.05rem/1.35 var(--font-head); color: var(--ink); cursor: pointer; border-radius: var(--radius-sm); }
.faq-plus { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); flex: none; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .25s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { display: grid; grid-template-rows: 1fr; }
.js .faq-answer { grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.js .faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }
.js .faq-item:not(.open) .faq-answer > div { visibility: hidden; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--deep); color: var(--on-deep); padding: clamp(56px, 7vw, 96px) 0; }
.cta-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-media img { aspect-ratio: 5 / 4; object-fit: cover; border-radius: 220px 220px 28px 28px; }
.cta-text h2 { color: var(--on-deep); }
.cta-text p { color: var(--on-deep-2); font-size: 1.1rem; }
.cta-band .ticks li { color: var(--on-deep); }
.cta-band .ticks svg { color: var(--accent); }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } .cta-media { max-width: 460px; } .cta-media img { aspect-ratio: 16 / 10; border-radius: 160px 160px 24px 24px; } }

/* ---------- Pages données (villes, départements) ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.service-layout .body > p { max-width: 70ch; }
.aside-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: 28px; }
.aside-card h2, .aside-card .h3 { color: var(--on-deep); font-size: 1.3rem; }
.aside-card p { color: var(--on-deep-2); }
.aside-card a:not(.btn) { color: var(--on-deep); }
.aside-card .btn { width: 100%; }
.aside-card.plain { background: var(--white); color: var(--ink); border: 2px solid var(--line); position: static; }
.tint .aside-card.plain { border-color: transparent; }
.aside-card.plain h2, .aside-card.plain .h3 { color: var(--ink); }
.aside-card.plain p { color: var(--ink-2); }
.aside-card.plain .small { color: var(--muted); }
.aside-card.plain a:not(.btn) { color: var(--violet); }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { color: var(--accent); width: 22px; height: 22px; stroke-width: 2.6; margin-top: 3px; }
@media (max-width: 960px) { .service-layout { grid-template-columns: 1fr; } .aside-card { position: static; } }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0 0 28px; }
.stat-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.tint .stat-card { border-color: transparent; }
.stat-card strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.15; color: var(--ink); }
.stat-card span { color: var(--ink-2); font-size: .92rem; }
.bars-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 8px; }
@media (max-width: 700px) { .bars-duo { grid-template-columns: 1fr; } }
.bars { margin: 0; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.bars figcaption { font-family: var(--font-head); font-weight: 600; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 7.5em) 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; font-size: .92rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-track { height: 16px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--line-strong); }
.bar-row.is-main .bar-fill { background: var(--violet); }
.bar-row.is-main .bar-label, .bar-row.is-main .bar-val { color: var(--ink); font-weight: 700; }
.bar-val { font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.src { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--muted); margin-top: 18px; max-width: 75ch; }
.src svg { width: 20px; height: 20px; margin-top: 2px; }
.prio { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: p; display: grid; gap: 14px; }
.prio li { counter-increment: p; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: start; }
.prio li::before { content: counter(p); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.prio li a { font-weight: 700; }
.prio li span { color: var(--ink-2); font-size: .92rem; }
.prio li > span:only-child { grid-row: span 2; align-self: center; font-size: 1rem; color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--white); -webkit-overflow-scrolling: touch; }
.table-wrap.tall { max-height: 640px; overflow-y: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table caption { text-align: left; padding: 14px 16px; font-size: .875rem; color: var(--muted); caption-side: top; }
.data-table th, .data-table td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--tint); font-family: var(--font-head); font-weight: 600; font-size: .9rem; position: sticky; top: 0; }
.data-table td { font-variant-numeric: tabular-nums; }
.data-table tbody th { font-weight: 700; }
.data-table a { display: inline-block; padding: 2px 0; }
.aid-table td, .aid-table th { min-width: 150px; }
details.more { margin: 22px 0; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.tint details.more { border-color: transparent; }
details.more summary { cursor: pointer; padding: 16px 20px; min-height: 56px; font-weight: 700; color: var(--violet); }
details.more[open] summary { border-bottom: 1px solid var(--line); }
details.more .table-wrap { border: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.link-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-cloud a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: 999px; background: var(--white); border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.link-cloud a:hover { border-color: var(--ink); }
.city-index { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.city-index a { display: flex; flex-direction: column; min-height: 64px; justify-content: center; padding: 12px 16px; border-radius: 14px; background: var(--white); border: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.tint .city-index a { border-color: transparent; }
.city-index a:hover { border-color: var(--ink); }
.city-index strong { font-weight: 700; line-height: 1.3; }
.city-index span { font-size: .85rem; color: var(--muted); }

/* ---------- Articles ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.article-aside .aside-card { position: static; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose .table-wrap { margin: 18px 0; }
.callout { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--accent-soft); border-left: 6px solid var(--accent); }
.sources { margin-top: 48px; padding: 24px; border-radius: var(--radius-sm); background: var(--tint); font-size: .9rem; }
.tint .sources { background: var(--white); }
.sources .h-sources { font-size: 1.15rem; margin: 0 0 .6em; }
.sources ul { padding-left: 1.1em; }
.sources li { margin-bottom: .5em; }
.sources p { margin: 0; color: var(--muted); }
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card a { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.guide-card a:hover { border-color: var(--ink); transform: translateY(-3px); }
.guide-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.guide-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.guide-body h2 { font-size: 1.2rem; }
.guide-body p { color: var(--ink-2); font-size: .95rem; flex: 1; }
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
.form-page { background: var(--tint); padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.form-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-side h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.next-steps { margin: 28px 0; padding: 24px; border-radius: var(--radius); background: var(--white); }
.next-steps h2 { font-size: 1.2rem; }
.next-steps ol { list-style: none; padding: 0; margin: 0; counter-reset: n; display: grid; gap: 14px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.next-steps li::before { content: counter(n); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--accent); font-family: var(--font-head); font-weight: 700; }
.next-steps li span { color: var(--ink-2); font-size: .95rem; }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.secure svg { width: 22px; height: 22px; margin-top: 1px; }
.form-panel { background: var(--white); border-radius: 28px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); min-width: 0; }
.form-panel > h2 { font-size: 1.5rem; }
.stepper-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.stepper-head [data-step-name] { color: var(--violet); }
.stepper { display: flex; gap: 6px; margin-bottom: 30px; }
.step-dot { flex: 1; height: 8px; border-radius: 8px; background: var(--tint-2); transition: background .3s; }
.step-dot.active { background: var(--violet); }
.step-panel { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.step-panel.active { display: block; animation: stepIn .35s ease both; }
.step-panel.active.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.step-panel legend { padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.step-panel > :not(legend) { clear: both; }
.step-q { display: block; font-family: var(--font-head); font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.step-q:focus { outline: none; }
.step-hint { color: var(--ink-2); margin-bottom: 18px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.choice-grid.wide { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 40px 14px 16px; border-radius: 18px; border: 2px solid var(--line-strong); background: var(--white); text-align: left; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: var(--ink); background: #fbf8fe; }
.choice[hidden] { display: none; }
.choice-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); flex: none; }
.choice-ico svg { width: 30px; height: 30px; stroke-width: 1.8; }
.choice-txt strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.choice-txt span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; margin-top: 2px; }
.choice.selected { border-color: var(--violet); background: var(--violet-soft); box-shadow: 0 0 0 2px var(--violet) inset; }
.choice.selected::after { content: ''; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat; }
.choice-grid.wide .choice { flex-direction: column; align-items: flex-start; min-height: 128px; }
@media (max-width: 1040px) { .choice-grid.wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .choice-grid, .choice-grid.wide { grid-template-columns: 1fr; } .choice-grid.wide .choice { flex-direction: row; align-items: center; min-height: 76px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.input, .field textarea { width: 100%; min-height: 58px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--white); font: inherit; font-size: 1.05rem; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field textarea:focus { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.input::placeholder, textarea::placeholder { color: #6f5f7d; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--tint); cursor: pointer; font-size: .95rem; }
.consent input { width: 28px; height: 28px; flex: none; margin: 1px 0 0; accent-color: var(--violet); cursor: pointer; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-actions .btn { margin-left: auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--white); font: 700 1rem var(--font-body); color: var(--ink); cursor: pointer; }
.back-link:hover { border-color: var(--ink); }
.back-link[hidden] { display: none; }
@media (max-width: 420px) { .step-actions .btn { padding: 0 1.1em; } .back-link { padding: 0 14px; } }
.step-error, .form-error { display: none; margin: 16px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--bad-soft); color: var(--bad); font-weight: 700; border-left: 6px solid var(--bad); }
.step-error.show, .form-error.show { display: block; }
.success-message { display: none; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ink); border-left: 6px solid var(--ok); margin-top: 18px; }
.success-message.show { display: flex; }
.success-message > svg { width: 34px; height: 34px; color: var(--ok); stroke-width: 2.6; }
.success-message p { margin: 6px 0 0; }
.success-message:focus { outline: 3px solid var(--ok); outline-offset: 3px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-cards { display: grid; gap: 14px; margin: 26px 0; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-sm); background: var(--white); }
.contact-card strong { display: block; }
.contact-card span { color: var(--ink-2); font-size: .95rem; }
.ci { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); flex: none; }
.ci svg { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .form-shell { display: flex; flex-direction: column; gap: 0; }
  .form-side { display: contents; }
  .form-panel { order: 1; margin: 8px 0 28px; }
  .form-side .next-steps { order: 2; margin-top: 0; }
  .form-side .secure, .form-side .contact-cards { order: 3; }
  .form-side .lead { margin-bottom: 18px; }
}

/* Autocomplétion des villes */
.ac-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; list-style: none; margin: 6px 0 0; padding: 6px; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; display: none; }
.ac-list.open { display: block; }
.ac-list li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; cursor: pointer; min-height: 48px; justify-content: center; }
.ac-list li.active, .ac-list li:hover { background: var(--tint); }
.ac-name { font-weight: 700; }
.ac-meta { font-size: .875rem; color: var(--muted); }
.ac-empty { color: var(--muted); cursor: default; }

/* ---------- Pied de page ---------- */
.site-footer { background: #22142e; color: var(--on-deep-2); padding: 72px 0 28px; }
.site-footer .logo, .site-footer .logo-mark { color: var(--on-deep); }
.site-footer .logo-type span { color: var(--on-deep-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin: 18px 0 22px; max-width: 42ch; }
.footer-title { font-family: var(--font-head); font-weight: 600; color: var(--on-deep); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-deep-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-help { display: flex; gap: 16px; align-items: center; margin-top: 48px; padding: 20px 24px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .07); }
.footer-help p { margin: 0; }
.footer-help strong { color: var(--on-deep); }
.footer-help a { color: var(--accent); font-weight: 700; white-space: nowrap; }
.fh-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--ink); flex: none; }
.fh-ico svg { width: 24px; height: 24px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .3); background: transparent; color: var(--on-deep); font: 700 .9rem var(--font-body); cursor: pointer; }
.to-top:hover { border-color: var(--accent); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } .footer-help { flex-direction: column; align-items: flex-start; } }

/* Bouton flottant (mobile) */
.floating-cta { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 40; display: none; box-shadow: 0 14px 30px -10px rgba(43, 26, 58, .55); }
@media (max-width: 760px) {
  .floating-cta { display: inline-flex; transform: translateY(160%); transition: transform .3s; }
  .floating-cta:not(.show) { visibility: hidden; }
  .floating-cta.show { transform: none; }
}

@media print {
  .site-header, .floating-cta, .cta-band, .site-footer, .aside-card { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.aside-sub { margin: 22px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
