/* etudelocale.fr — feuille de style unique, sans dépendance externe */
:root {
  --ink: #01203a;
  --ink-2: #3d4b5c;
  --muted: #64728a;
  --line: #e1e7ee;
  --line-2: #cbd4de;
  --bg: #ffffff;
  --tint: #f4f7fa;
  --brand: #008557;
  --brand-ink: #006644;
  --brand-tint: #e5f5ee;
  --brand-soft: #c2e6d5;
  --accent: #00b377;
  --navy: #01203a;
  --warn-tint: #fdf4e3;
  --warn-ink: #7a4b00;
  /* graphiques : palette validée (bleu en accent, gris pour le contexte) */
  --series-1: #2a78d6;
  --series-1-soft: #86b6ef;
  --series-2: #eb6834;
  --context: #c9cfd6;
  --grid: #e7eaee;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(1, 34, 65, .06);
  --shadow: 0 8px 28px rgba(1, 34, 65, .08);
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.62; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.18; color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.25rem + 2.4vw, 2.85rem); margin: 0 0 .5em; font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.32rem, 1.1rem + .9vw, 1.7rem); margin: 2.4em 0 .6em; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 60; border: 2px solid var(--brand); border-radius: 8px; }
:focus-visible { outline: 3px solid #8ec5ad; outline-offset: 2px; border-radius: 4px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550; padding: 8px 11px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--tint); }
.nav a[aria-current=page] { color: var(--brand); }
.nav .btn { color: #fff; margin-left: 8px; padding: 9px 16px; }
.nav .btn:hover { background: var(--brand-ink); color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 20px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .nav a.btn { margin: 16px 0 0; text-align: center; border-bottom: 0; border-radius: var(--radius); padding: 13px 16px; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; color: var(--ink); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; transition: transform .15s ease; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded=true] span { background: transparent; }
  .nav-toggle[aria-expanded=true] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded=true] span::after { top: 0; transform: rotate(-45deg); }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: var(--radius); padding: 13px 22px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.25; text-align: center; box-shadow: 0 1px 0 rgba(1, 34, 65, .08); transition: background .12s ease, transform .12s ease, box-shadow .12s ease; }
.btn:hover { background: var(--brand-ink); color: #fff; box-shadow: 0 6px 16px rgba(2, 102, 75, .22); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-soft); }
.btn.secondary:hover { background: var(--brand-tint); color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.small { padding: 8px 14px; font-size: .92rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* Fil d'Ariane */
.crumbs { font-size: .86rem; color: var(--muted); margin: 22px 0 12px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Chapô et repères */
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 760px; line-height: 1.55; }
.updated { font-size: .86rem; color: var(--muted); margin: -.2em 0 1.4em; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 8px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.kpi .label { font-size: .82rem; color: var(--muted); line-height: 1.3; font-weight: 550; }
.kpi .value { font-size: 1.7rem; font-weight: 750; line-height: 1.15; margin: 5px 0 3px; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi .note { font-size: .82rem; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; } .kpi { padding: 13px 14px; } .kpi .value { font-size: 1.4rem; } }

/* Mise en page des pages de contenu : texte lisible à gauche, sommaire et outil à droite */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; margin-top: 8px; }
.layout > *, .split > *, .checkout > *, .hero-grid > * { min-width: 0; }
.content > :first-child { margin-top: 1.2em; }
.content p, .content li { max-width: 74ch; }
.side { position: sticky; top: 92px; display: grid; gap: 18px; padding-top: 1.6em; }
.toc { font-size: .92rem; border-left: 2px solid var(--line); padding: 2px 0 2px 16px; }
.toc p { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 7px; line-height: 1.35; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.side-card { background: var(--brand-tint); border: 1px solid var(--brand-soft); border-radius: var(--radius-lg); padding: 16px; }
.side-card .side-title { display: flex; align-items: center; gap: 8px; color: var(--brand-ink); font-weight: 700; font-size: .98rem; margin: 0 0 4px; }
.side-card .side-title svg { flex: none; }
.side-card .side-text { color: var(--ink-2); font-size: .86rem; line-height: 1.4; margin: 0 0 11px; }
.side-card input[type=text], .side-card select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: .9rem; border-color: var(--brand-soft); }
.side-card select, .side-card .ac { margin-bottom: 8px; }
.side-card .btn { width: 100%; padding: 10px 12px; font-size: .92rem; }
.side-card .ac-panel { left: auto; width: max(100%, 330px); }
.side-card .ac-keys { display: none; }   /* panneau étroit : la source seule dans le pied */
@media (max-width: 960px) { .side-card .ac-panel { width: auto; left: 0; } }
.mobile-cta { display: none; }
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; padding-top: 0; margin-top: 2em; }
  .toc { display: none; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(1, 34, 65, .08); }
  .mobile-cta .btn { width: 100%; }
  body.has-mobile-cta { padding-bottom: 74px; }
}

/* Encadrés */
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--tint); margin: 1.4em 0; }
.box.verdict { background: var(--brand-tint); border-color: var(--brand-soft); color: var(--ink); }
.box.warn { background: var(--warn-tint); border-color: #f1dfb5; color: var(--warn-ink); }
.box h2, .box h3 { margin-top: 0; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

/* Tableaux */
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
caption { text-align: left; font-size: .86rem; color: var(--muted); padding: 12px 16px 0; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 650; color: var(--muted); font-size: .8rem; letter-spacing: .02em; background: var(--tint); border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: #fafcfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td { color: var(--ink); }
/* tableaux à nombreuses colonnes : cellules resserrées, en-têtes sur deux lignes */
table.dense { font-size: .88rem; }
table.dense th, table.dense td { padding: 10px 9px; }
table.dense th:first-child, table.dense td:first-child { padding-left: 16px; }
table.dense th:last-child, table.dense td:last-child { padding-right: 16px; }
table.dense thead th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
tr.me td { font-weight: 650; background: #f1f7fd; }
/* colonnes secondaires d'un tableau large : masquées sur téléphone, où l'on garde l'essentiel sans défilement horizontal */
@media (max-width: 600px) { th.col-plus, td.col-plus { display: none; } }

/* Graphiques */
figure.chart { margin: 1.2em 0 1.8em; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; background: #fff; }
figure.chart svg { display: block; width: 100%; height: auto; }
/* chaque graphique existe en deux largeurs : la large, puis l'étroite pour les téléphones */
svg.chart.narrow { display: none; }
@media (max-width: 600px) {
  svg.chart.wide { display: none; }
  svg.chart.narrow { display: block; }
}
figure.chart figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); max-width: none; }
.chart text { font-family: var(--font); fill: var(--ink-2); }
.chart .val { fill: var(--ink); font-weight: 650; }
.chart .axis { fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--ink-2); margin: 10px 0 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; max-width: none; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.seg { display: flex; gap: 2px; height: 30px; margin: 4px 0 0; }
.seg span { display: flex; align-items: center; padding-left: 8px; border-radius: 4px; font-size: .82rem; font-weight: 650; color: #fff; min-width: 2px; overflow: visible; white-space: nowrap; }
.seg span.dark { color: #17202b; }

/* Carte */
.map { height: 460px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); margin: 1em 0 .4em; position: relative; z-index: 0; overflow: hidden; }
.map-note { font-size: .84rem; color: var(--muted); }
@media (max-width: 700px) { .map { height: 340px; } }

/* Appel à l'action */
.cta { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 32px; margin: 2.6em 0; display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(53, 180, 122, .35), transparent); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin: 0 0 .4em; }
.cta p { color: #c6d4e3; margin: 0; max-width: none; }
.cta .btn { background: var(--accent); color: #01203a; width: 100%; box-shadow: none; }
.cta .btn:hover { background: #1fc98c; color: #01203a; }
.cta .price { font-size: .88rem; color: #c6d4e3; margin-top: 10px; text-align: center; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; padding: 24px; gap: 18px; } }

/* Listes de liens et cartes */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; list-style: none; padding: 0; margin: 0 0 1em; font-size: .94rem; }
.links li { margin: 0; max-width: none; display: flex; }
.links a { flex: 1; display: flex; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); background: #fff; }
.links a:hover { border-color: var(--brand-soft); background: var(--brand-tint); color: var(--brand-ink); }
/* Pastilles : liens courts, tous de même hauteur */
.pills-title { margin: 2.2em 0 .8em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.pills li { margin: 0; max-width: none; }
.pills a { display: inline-block; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 550; line-height: 1.3; transition: border-color .12s ease, background .12s ease; }
.pills a:hover { border-color: var(--brand-soft); background: var(--brand-tint); color: var(--brand-ink); }
.pills a.more { border-style: dashed; border-color: var(--brand-soft); color: var(--brand); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 1.2em 0; padding: 0; list-style: none; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; background: #fff; box-shadow: var(--shadow-sm); position: relative; max-width: none; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards.three { grid-template-columns: 1fr; } }
.card h3 { margin: 0 0 .35em; font-size: 1.06rem; }
.card p { margin: 0; font-size: .92rem; color: var(--ink-2); max-width: none; }
.card a.stretch { text-decoration: none; color: var(--ink); }
.card a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(a.stretch):hover { border-color: var(--brand-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.card:has(a.stretch):hover a.stretch { color: var(--brand); }
.card .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.card .ico svg { width: 22px; height: 22px; }
.card .big { font-size: 1.5rem; font-weight: 750; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Sections de l'accueil */
.section { padding: 64px 0; }
.section.tinted { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section > .wrap > h2:first-child, .section-head h2 { margin-top: 0; }
.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head p { font-size: 1.06rem; margin: 0; }
.section-head p.eyebrow { font-size: .78rem; margin: 0 0 8px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
@media (max-width: 820px) { .section { padding: 44px 0; } }

.hero { background: radial-gradient(1100px 420px at 85% -10%, rgba(53, 180, 122, .16), transparent 60%), linear-gradient(180deg, #f1f8f5, #fff 78%); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero .lead { margin-bottom: 0; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 16px 0 0; font-size: .9rem; color: var(--ink-2); font-weight: 550; }
.ticks li { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
@media (max-width: 960px) { .hero { padding: 36px 0 32px; } .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Exemple d'aperçu, dans l'accueil */
.demo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.demo-top { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 14px; }
.demo-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.demo-top strong { font-size: 1.02rem; letter-spacing: -0.01em; }
.demo-map { display: block; width: 100%; height: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 10px 18px 0; font-size: .78rem; color: var(--muted); }
.demo-legend li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.demo-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.demo-legend i.rond { border-radius: 50%; width: 9px; height: 9px; }
.demo-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 12px 18px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.demo-kpis div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-kpis div:nth-child(even) { border-right: 0; }
.demo-kpis div:nth-last-child(-n+2) { border-bottom: 0; }
.demo-kpis dt { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.demo-kpis dd { margin: 2px 0 0; font-size: 1.45rem; font-weight: 750; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.demo-note { font-size: .76rem; color: var(--muted); margin: 0; padding: 10px 18px 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.stats li { margin: 0; padding: 4px 22px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: 1.7rem; font-weight: 750; color: var(--ink); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stats span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; gap: 18px 0; } .stats li:nth-child(odd) { border-left: 0; padding-left: 0; } }

.steps { counter-reset: etape; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: etape; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(etape); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps h3 { margin: 0 0 .3em; }
.steps p { margin: 0; font-size: .94rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { margin-top: 0; }
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.pages img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.pages img:nth-child(2) { margin-top: 26px; }
.pages img:nth-child(3) { margin-top: 52px; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23008557' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 650; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 18px 16px; margin: 0; }

/* Outil et formulaires */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); margin-top: 24px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 12px; align-items: end; }
.tool .hint { margin: 10px 0 0; }
.tool-grid.two { grid-template-columns: 1fr auto; }
.tool .box { margin: 16px 0 0; }
.res-prix { font-size: 1.45rem; font-weight: 750; color: var(--ink); margin: 2px 0 8px; letter-spacing: -.01em; }
.hero .tool-grid { grid-template-columns: 1fr; }
.hero .tool .btn { width: 100%; }
@media (max-width: 820px) { .tool-grid, .tool-grid.two { grid-template-columns: 1fr; } .tool .btn { width: 100%; } }
label { display: block; font-size: .86rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 12px 13px; min-height: 50px; transition: border-color .12s ease, box-shadow .12s ease; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364728a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/12px no-repeat; }
textarea { min-height: 110px; }
input::placeholder, textarea::placeholder { color: #8a97a8; }
input:hover, select:hover, textarea:hover { border-color: #9fb0c2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(2, 102, 75, .14); }
.field { margin-bottom: 16px; }
.hint { font-size: .84rem; color: var(--muted); margin-top: 5px; }
.error { color: #a12626; font-size: .92rem; background: #fdf0f0; border: 1px solid #f3c9c9; border-radius: 8px; padding: 10px 12px; }
/* --- saisie assistée d'adresse (assets/js/adresse.js) : champ, panneau de propositions, états */
.ac { position: relative; }
.ac > input[type=text] { padding-left: 40px; padding-right: 42px; text-overflow: ellipsis; }
.ac-ico { position: absolute; left: 13px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--muted); pointer-events: none; transition: color .12s ease; }
.ac:focus-within .ac-ico, .ac[data-ok] .ac-ico { color: var(--brand); }
.ac-clear { position: absolute; right: 7px; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.ac-clear:hover, .ac-clear:focus-visible { background: var(--tint); color: var(--ink); }
.ac-clear[hidden], .ac-spin[hidden], .ac-panel[hidden], .ac-foot[hidden] { display: none; }
.ac-spin { position: absolute; right: 15px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: ac-tourne .7s linear infinite; }
@keyframes ac-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ac-spin { animation-duration: 2.4s; } }
.ac-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 48; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px rgba(1, 34, 65, .16), 0 2px 6px rgba(1, 34, 65, .06); overflow: hidden; text-align: left; }
.ac.ac-up .ac-panel { top: auto; bottom: calc(100% + 6px); }
.ac-panel ul { list-style: none; margin: 0; padding: 6px; max-height: min(336px, 46vh); overflow-y: auto; overscroll-behavior: contain; }
.ac-panel li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; align-items: center; margin: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.ac-panel li[aria-selected=true] { background: var(--brand-tint); }
.ac-pin { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--muted); }
.ac-panel li[aria-selected=true] .ac-pin { background: #fff; color: var(--brand); }
.ac-l1, .ac-lieu { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-l2 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ac-lieu { min-width: 0; }
.ac-l1 { font-size: .95rem; color: var(--ink-2); }
.ac-l1 b { color: var(--ink); font-weight: 700; }
.ac-l2 { font-size: .82rem; color: var(--muted); margin-top: 1px; }
.ac-l2 b { font-weight: 650; color: var(--ink-2); }
.ac-tag { flex: none; font-style: normal; font-size: .7rem; font-weight: 650; letter-spacing: .02em; white-space: nowrap; color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; }
.ac-panel li.ac-msg { display: block; cursor: default; padding: 12px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.ac-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 7px 13px; border-top: 1px solid var(--line); background: var(--tint); font-size: .74rem; color: var(--muted); max-width: none; }
.ac-foot span:last-child { margin-left: auto; }
.ac-foot kbd { font: inherit; font-weight: 650; color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; margin-right: 2px; }
@media (hover: none) { .ac-keys { display: none; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.check input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--brand); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input[type=email] { flex: 1 1 240px; width: auto; }
.trap { position: absolute; left: -9999px; }
.ok-note { color: var(--brand-ink); font-weight: 650; font-size: .92rem; margin-top: 5px; }

/* Parcours d'étude */
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 18px 0 6px; font-size: .86rem; font-weight: 650; color: var(--muted); flex-wrap: wrap; }
.stepper li { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.stepper li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); font-size: .8rem; color: var(--ink-2); }
.stepper li.on { background: var(--brand-tint); border-color: var(--brand-soft); color: var(--brand-ink); }
.stepper li.on b { background: var(--brand); border-color: var(--brand); color: #fff; }
.result { margin-top: 30px; }
.result > h2:first-child { margin-top: 0; }
.blurred { filter: blur(6px); user-select: none; pointer-events: none; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
#etat { min-height: 1.6em; font-weight: 550; color: var(--ink); }
/* tableau des deux zones : sur téléphone, chaque ligne devient une fiche */
@media (max-width: 700px) {
  table.zones thead { display: none; }
  table.zones tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.zones tr:last-child { border-bottom: 0; }
  table.zones th[scope=row] { display: block; padding: 0 0 6px; border: 0; font-size: .95rem; }
  table.zones td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; font-size: .92rem; }
  table.zones td::before { content: attr(data-label); color: var(--muted); font-weight: 400; text-align: left; white-space: normal; }
  table.zones td:empty { display: none; }
  table.zones tbody tr:hover td, table.zones tbody tr:hover th { background: none; }
}

/* Offres */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.4em 0; align-items: stretch; }
.offer { border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px 20px; background: #fff; display: flex; flex-direction: column; font-weight: 400; color: var(--ink-2); font-size: 1rem; margin: 0; position: relative; transition: border-color .12s ease, box-shadow .12s ease; }
label.offer { cursor: pointer; }
label.offer:hover { border-color: var(--brand-soft); box-shadow: var(--shadow); }
.offer.best { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 102, 75, .12), var(--shadow); }
.offer .tagline { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); min-height: 1.3em; }
.offer h3 { margin: .25em 0 .1em; font-size: 1.25rem; }
.offer .price { font-size: 2.2rem; font-weight: 750; letter-spacing: -0.03em; margin: .05em 0 .35em; color: var(--ink); }
.offer .price small { font-size: .88rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.offer ul { list-style: none; padding: 0; font-size: .93rem; flex: 1; margin: 0 0 14px; }
.offer ul li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.offer ul li::before { content: ""; position: absolute; left: 0; top: .22em; width: 17px; height: 17px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23008557' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/17px no-repeat; }
.offer .pick { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--ink); padding: 11px 12px; border-radius: 9px; background: var(--tint); border: 1px solid var(--line); }
.offer .pick input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.offer.best .pick { background: var(--brand-tint); border-color: var(--brand-soft); color: var(--brand-ink); }
.offer .btn { text-align: center; margin-top: 10px; width: 100%; }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; } }

/* Commande : champs à gauche, récapitulatif à droite */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 1.6em; }
.checkout h3:first-child { margin-top: 0; }
.summary { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; box-shadow: var(--shadow); }
.summary h3 { margin: 0 0 12px; font-size: 1.02rem; }
.summary dl { margin: 0 0 14px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 650; color: var(--ink); text-align: right; }
.summary .total { font-size: 1.5rem; font-weight: 750; color: var(--ink); letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 14px; }
.summary .total small { font-size: .84rem; font-weight: 550; color: var(--muted); }
.summary .btn { width: 100%; }
.summary .hint { text-align: center; margin: 10px 0 0; }
.code-pro { margin: 0 0 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 12px 14px; }
.code-pro summary { cursor: pointer; color: var(--brand); font-weight: 650; font-size: .94rem; }
.code-pro .field { margin: 12px 0 0; }
.code-lot { font-size: 1.5rem; font-weight: 750; letter-spacing: .06em; font-variant-numeric: tabular-nums; margin: .2em 0 .6em; color: var(--ink); background: var(--brand-tint); border: 1px dashed var(--brand-soft); border-radius: var(--radius); padding: 12px 16px; display: inline-block; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; gap: 20px; } .summary { position: static; } }

/* Page de vente : actions du bandeau, carte de l'offre, bloc de formulaire */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.offer-card { position: static; }
.offer-card .offer-title { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; }
.offer-card .total { align-items: baseline; margin: 0 0 6px; }
.offer-card .grand { font-size: 2.6rem; letter-spacing: -0.03em; }
.offer-card .par { font-size: .95rem; font-weight: 650; color: var(--brand); }
.offer-card .compare { font-size: .88rem; color: var(--muted); margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.offer-card .checks { font-size: .94rem; margin-bottom: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.panel .field:last-of-type { margin-bottom: 0; }
@media (max-width: 700px) { .hero-actions .btn { width: 100%; } .panel { padding: 18px; } }

/* Questions et réponses */
.qa h3 { margin: 1.2em 0 .25em; font-size: 1.02rem; }
.qa p { margin: 0 0 .4em; }

/* Pied de page */
.sources { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.6em; padding-top: 1.2em; }
.sources p { max-width: none; }
.sources ul { padding-left: 1.1em; }
.site-footer { margin-top: 72px; background: var(--navy); color: #b9c8d8; padding: 48px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid p { margin: 0 0 .7em; }
.footer-grid .brand { color: #fff; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.footer-grid h2 { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa3b8; margin: 0 0 .9em; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.footer-grid a { color: #dbe5ef; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #8fa3b8; }
.legal { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #8fa3b8; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .site-footer { margin-top: 52px; padding-top: 36px; } }

/* Pages de texte */
.prose h2 { margin-top: 1.9em; }
.prose > p, .prose > ul, .prose > ol { max-width: 74ch; }
.page-head { padding-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .cta, .map, .nav-toggle, .side, .mobile-cta { display: none !important; } body { font-size: 12pt; } .layout { display: block; } }
