/* ==========================================================================
   MD Débouchage — feuille de style unique
   Charte issue du logo : bleu marine #21315f, orange #f49910, taupe et gris-bleu.
   Typo : Montserrat (titres, comme le lettrage du logo) + Inter (texte), auto-hébergées.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy-950: #0f1833;
  --navy-900: #172347;
  --navy-800: #1b2954;
  --navy: #21315f;
  --navy-600: #2c3f78;
  --navy-100: #e4e9f3;
  --navy-50: #f1f4f9;
  --orange: #f49910;
  --orange-600: #d9840a;
  --orange-700: #9a5a00; /* orange lisible sur fond clair (contraste AA) */
  --orange-100: #fdeccf;
  --taupe-50: #faf8f6;
  --taupe-100: #f4f1ed;
  --taupe-200: #e8e2da;
  --taupe-400: #a2998f;
  --steel: #b4c1d1;
  --ink: #141b2e;
  --muted: #4a5468;
  --line: #dde2ea;
  --white: #fff;
  --ok: #17663a;
  --ok-bg: #e7f5ec;
  --err: #a8201a;
  --err-bg: #fdecea;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 24, 51, .06), 0 2px 8px rgba(15, 24, 51, .05);
  --shadow: 0 12px 32px rgba(15, 24, 51, .12);
  --badge: polygon(0 16%, 16% 0, 84% 0, 100% 16%, 100% 100%, 0 100%); /* silhouette du logo */
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--navy-950);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.6vw + .5rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.4vw + .6rem, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
[role="list"] { list-style: none; padding: 0; margin: 0; }
a { color: var(--navy-600); text-underline-offset: .18em; }
a:hover { color: var(--navy-950); }
strong { font-weight: 700; }
address { font-style: normal; }
main:focus { outline: none; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.icon { width: 1.2em; height: 1.2em; flex: none; }
.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy-950); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }
.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40em) { .container { padding-inline: 1.5rem; } }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7rem 1.25rem;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--orange { background: var(--orange); color: var(--navy-950); box-shadow: 0 6px 18px rgba(244, 153, 16, .28); }
.btn--orange:hover { background: var(--orange-600); color: var(--navy-950); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-950); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy-50); color: var(--navy-950); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .14); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-head); font-weight: 700; color: var(--navy); text-decoration: none;
}
.link-arrow:hover { color: var(--orange-700); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Bandeau d'information ---------- */
.topbar { display: none; background: var(--navy-950); color: var(--navy-100); font-size: .875rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 1rem; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .45em; }
.topbar p:first-child { color: var(--white); font-weight: 600; }
.topbar p:first-child .icon { color: var(--orange); }
.topbar__right { gap: 1.5rem !important; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .4em; color: var(--navy-100); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .icon { width: 1em; height: 1em; }
@media (min-width: 64em) { .topbar { display: block; } }

/* ---------- En-tête et navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy-950); }
.brand img { width: 60px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.brand__txt span { font-size: .78rem; font-style: italic; font-weight: 600; color: var(--orange-700); }
@media (min-width: 64em) { .brand img { width: 76px; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .5rem .9rem;
  border: 2px solid var(--navy); border-radius: 999px; background: var(--white);
  font: 700 .95rem var(--font-head); color: var(--navy); cursor: pointer;
}
.nav-toggle .icon { width: 1.3em; height: 1.3em; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: .75rem 1rem 1.25rem;
}
.nav__list a { display: block; padding: .75rem .5rem; font-family: var(--font-head); font-weight: 700; color: var(--navy-950); text-decoration: none; border-radius: var(--radius-sm); }
.nav__list a:hover { background: var(--navy-50); color: var(--navy); }
.nav__list a[aria-current="page"], .nav__link.is-active { color: var(--navy); box-shadow: inset 3px 0 0 var(--orange); }
.nav__link { display: flex !important; align-items: center; gap: .3em; }
.nav__chevron { width: 1em; height: 1em; display: none; }
.nav__sub { list-style: none; margin: 0 0 .25rem; padding: 0 0 0 1rem; }
.nav__sub a { font-family: var(--font-body); font-weight: 600; font-size: .98rem; padding: .55rem .5rem; color: var(--muted); }
.nav__cta { margin-top: .75rem; width: 100%; }

@media (min-width: 72em) {
  .nav-toggle { display: none; }
  .nav, .nav.is-open {
    display: flex; align-items: center; gap: 1rem; position: static;
    padding: 0; box-shadow: none; border: 0; background: none; overflow: visible; max-height: none;
  }
  .nav__list { display: flex; align-items: center; gap: .1rem; }
  .nav__list > li { position: relative; }
  .nav__list a { padding: .55rem .7rem; font-size: .95rem; }
  .nav__list a[aria-current="page"], .nav__link.is-active { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
  .nav__chevron { display: block; transition: transform .2s; }
  .nav__sub {
    position: absolute; left: 0; top: 100%; min-width: 17rem; padding: .5rem;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav__sub a { color: var(--navy-950); box-shadow: none !important; border-radius: var(--radius-sm); }
  .nav__sub a[aria-current="page"] { background: var(--navy-50); }
  .nav__item--sub:hover .nav__sub, .nav__item--sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__item--sub:hover .nav__chevron, .nav__item--sub:focus-within .nav__chevron { transform: rotate(180deg); }
  .nav__cta { margin: 0; width: auto; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { padding-top: 1rem; padding-bottom: .25rem; font-size: .9rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--taupe-400); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--navy-950); font-weight: 600; }
.page-accueil .breadcrumb { display: none; }

/* ---------- Titres de section ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .9rem;
  font-family: var(--font-head); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-700);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--alt { background: var(--taupe-100); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-foot { margin-top: 2rem; }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(38rem 26rem at 105% -10%, rgba(244, 153, 16, .22), transparent 70%),
    radial-gradient(30rem 24rem at -10% 110%, rgba(180, 193, 209, .16), transparent 70%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.hero::after { /* ligne de canalisation stylisée */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--orange) 0 30%, var(--steel) 30% 32%, var(--orange) 32% 100%);
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 5.5rem); }
@media (min-width: 60em) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.hero .eyebrow { color: var(--orange); }
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { font-size: clamp(1.05rem, 1vw + .8rem, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 38rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .65rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; }
.checklist .icon {
  width: 1.5rem; height: 1.5rem; padding: .3rem; margin-top: .05rem;
  border-radius: 50%; background: var(--orange); color: var(--navy-950);
}
.hero .checklist li { color: rgba(255, 255, 255, .95); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__actions .btn { flex: 1 1 15rem; }
@media (min-width: 40em) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__note { margin: 1rem 0 0; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.hero__note a { color: var(--white); font-weight: 600; }

.hero__media { position: relative; max-width: 26rem; margin-inline: auto; width: 100%; }
.frame { clip-path: var(--badge); background: var(--orange); padding: 7px; }
.frame img { clip-path: var(--badge); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-800); }
.hero__card {
  position: absolute; left: -.5rem; bottom: 1.5rem; max-width: 16rem;
  display: flex; gap: .75rem; align-items: center;
  padding: .85rem 1rem; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: var(--shadow);
}
.hero__card .icon { width: 2.4rem; height: 2.4rem; padding: .5rem; border-radius: 12px; background: var(--navy); color: var(--orange); }
.hero__card strong { display: block; font-family: var(--font-head); color: var(--navy-950); line-height: 1.2; }
.hero__card span { font-size: .85rem; color: var(--muted); }
@media (min-width: 60em) { .hero__card { left: -2.5rem; } }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero {
  position: relative; color: var(--white); overflow: hidden;
  background:
    radial-gradient(30rem 20rem at 100% 0, rgba(244, 153, 16, .2), transparent 70%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--orange); }
.page-hero__in { padding-block: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60em) { .page-hero__in--media { grid-template-columns: 1.3fr .7fr; } }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw + .6rem, 3rem); }
.page-hero .eyebrow { color: var(--orange); }
.page-hero p { color: rgba(255, 255, 255, .86); font-size: 1.12rem; max-width: 42rem; }
.page-hero .hero__actions { margin-top: 1.5rem; }
.page-hero .frame { max-width: 18rem; margin-inline: auto; }
.breadcrumb + .page-hero, .page-hero + .breadcrumb { margin-top: 0; }

/* ---------- Bande de confiance ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__list { display: grid; gap: 1rem; padding-block: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .trust__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .trust__list { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; gap: .85rem; align-items: center; }
.trust__item .icon { width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 12px; background: var(--orange-100); color: var(--navy); }
.trust__item strong { display: block; font-family: var(--font-head); color: var(--navy-950); line-height: 1.25; }
.trust__item span { font-size: .9rem; color: var(--muted); }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .cards--2, .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.6rem; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card__icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.1rem;
  clip-path: var(--badge); background: var(--navy); color: var(--orange);
}
.card__icon .icon { width: 1.6rem; height: 1.6rem; }
.card__link { color: var(--navy-950); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .95rem; }
.card--service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--steel); }
.card--service:hover .card__more { color: var(--orange-700); }
.card--service:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.card--service .card__link:focus-visible { outline: none; }
.section--alt .card { border-color: transparent; }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: etape; }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: etape; position: relative; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.steps li::before {
  content: counter(etape, decimal-leading-zero);
  display: block; margin-bottom: .75rem;
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--orange);
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Texte + visuel ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60em) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split--reverse > :first-child { order: 2; }
}
.split__media { max-width: 28rem; width: 100%; margin-inline: auto; }
.split__media figcaption, .figure figcaption { margin-top: .75rem; font-size: .9rem; color: var(--muted); }

/* Avant / après */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ba figure { margin: 0; position: relative; }
.ba img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.ba__tag {
  position: absolute; top: .6rem; left: .6rem; padding: .2rem .65rem; border-radius: 999px;
  font: 800 .75rem var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  background: var(--navy-950); color: var(--white);
}
.ba figure:nth-child(2) .ba__tag { background: var(--orange); color: var(--navy-950); }
.ba-caption { grid-column: 1 / -1; margin: .25rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Listes de prestations ---------- */
.features { display: grid; gap: 1.25rem; }
@media (min-width: 60em) { .features--2 { grid-template-columns: repeat(2, 1fr); } }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; align-items: start;
  padding: 1.5rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.feature > .card__icon { margin: 0; }
.feature h2, .feature h3 { font-size: 1.25rem; margin-bottom: .4em; }
.feature p:last-child { margin-bottom: 0; }
.feature p { color: var(--muted); }
.feature--wide { grid-column: 1 / -1; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1833' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.ticks--cols { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* ---------- Texte long ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.4rem, 1.4vw + .8rem, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .35rem; }
.lead { font-size: 1.18rem; color: var(--ink); }
.answer {
  padding: 1.25rem 1.4rem; margin-bottom: 2rem; border-radius: var(--radius);
  background: var(--navy-50); border-left: 5px solid var(--orange);
}
.answer p:last-child { margin: 0; }

.note {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--taupe-100); border: 1px solid var(--taupe-200);
  font-size: .95rem; color: var(--ink);
}
.note .icon { color: var(--navy); margin-top: .2rem; }
.note p:last-child { margin: 0; }

/* ---------- Pastilles (communes) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills li { padding: .45rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .95rem; font-weight: 500; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table caption { caption-side: top; text-align: left; padding: 1rem 1.1rem .6rem; font-family: var(--font-head); font-weight: 700; color: var(--navy-950); }
.table th, .table td { padding: .75rem 1.1rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--taupe-50); }
.table tbody th { font-weight: 600; }
.table td:last-child { white-space: nowrap; font-weight: 700; color: var(--navy); }
.table td .muted { font-weight: 400; white-space: normal; }
.grid-2 { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; align-items: start; }
@media (min-width: 60em) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.section-head--center + .faq { margin-inline: auto; }
.faq__item { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--navy-950); }
.faq__icon { width: 1.9rem; height: 1.9rem; padding: .35rem; border-radius: 50%; background: var(--navy-50); color: var(--navy); transition: transform .2s, background-color .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--orange); color: var(--navy-950); }
.faq__item[open] { border-color: var(--steel); box-shadow: var(--shadow-sm); }
.faq__r { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq__r p { margin: 0; }
.faq__r a { font-weight: 600; }

/* ---------- Avis ---------- */
.reviews {
  display: grid; gap: 1.25rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
}
@media (min-width: 40em) { .reviews { grid-template-columns: auto 1fr; } }
.reviews__logo { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--navy-50); color: var(--navy); }
.reviews__logo .icon { width: 2.2rem; height: 2.2rem; }
.reviews h3 { margin-bottom: .3em; }
.reviews p { color: var(--muted); }
.reviews__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Bandeau d'appel ---------- */
.cta-band {
  color: var(--white);
  background:
    radial-gradient(26rem 18rem at 0 100%, rgba(244, 153, 16, .25), transparent 70%),
    var(--navy);
}
.cta-band__in { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
@media (min-width: 64em) { .cta-band__in { grid-template-columns: 1fr auto; gap: 3rem; } }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .field legend, .label { font-weight: 600; color: var(--navy-950); }
.field .req { color: var(--err); }
.hint { font-size: .88rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  border: 1.5px solid #b8c0cd; border-radius: 10px; background: var(--white);
  font: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 9rem; resize: vertical; }
.select { appearance: none; padding-right: 2.5rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321315f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--navy-600); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(244, 153, 16, .35); }
.field--invalid .input, .field--invalid .select, .field--invalid .textarea { border-color: var(--err); background-color: #fffafa; }
.field__error { display: none; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--err); }
.field__error .icon { width: 1em; height: 1em; }
.field--invalid .field__error { display: flex; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: .45rem; }
.radios { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio, .check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.radio { padding: .6rem 1rem; border: 1.5px solid #b8c0cd; border-radius: 999px; background: var(--white); }
.radio:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.radio input, .check input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--navy); flex: none; }
.check { font-size: .95rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; gap: .8rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 500; }
.form-status.is-visible { display: flex; }
.form-status .icon { margin-top: .15rem; }
.form-status p { margin: 0; }
.form-status--ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b6dfc4; }
.form-status--err { background: var(--err-bg); color: var(--err); border: 1px solid #f3c1bd; }
.form-status--info { background: var(--navy-50); color: var(--navy-950); border: 1px solid var(--navy-100); }
.form-status a { color: inherit; font-weight: 700; }
.form__legal { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 64em) { .contact-grid { grid-template-columns: 1.35fr .65fr; gap: 3rem; } }
.panel { padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel--navy { background: var(--navy); color: var(--white); border: 0; }
.panel--navy h2, .panel--navy h3 { color: var(--white); }
.panel h2 { font-size: 1.5rem; }
.contact-list { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list .icon { width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--orange); }
.contact-list__label { display: block; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.contact-list a { color: var(--white); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.aside-stack { display: grid; gap: 1.25rem; }
@media (min-width: 64em) { .aside-stack { position: sticky; top: calc(var(--header-h) + 1rem); } }

/* ---------- Calculateur ---------- */
.calc { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 64em) { .calc { grid-template-columns: 1.4fr .9fr; gap: 2rem; } }
.calc__steps { display: grid; gap: 1.25rem; }
.calc__step { margin: 0; padding: 1.4rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); min-width: 0; }
.calc__step legend {
  float: left; width: 100%; display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; padding: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--navy-950);
}
.calc__step legend + * { clear: both; }
.calc__num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: var(--orange); font-size: .95rem; flex: none; }
.choices { display: grid; gap: .65rem; }
@media (min-width: 40em) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box {
  display: grid; gap: .1rem; height: 100%; padding: .85rem 1rem .85rem 2.6rem; position: relative;
  border: 1.5px solid #c5ccd7; border-radius: var(--radius); background: var(--white);
  transition: border-color .15s, background-color .15s;
}
.choice__box::before {
  content: ""; position: absolute; left: .95rem; top: 1.05rem; width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid #8a94a6; background: var(--white);
}
.choice__box strong { font-family: var(--font-head); font-size: .98rem; color: var(--navy-950); }
.choice__box small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.choice__box em { font-style: normal; font-weight: 700; color: var(--navy); font-size: .92rem; }
.choice:hover .choice__box { border-color: var(--navy-600); }
.choice input:checked + .choice__box { border-color: var(--navy); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:checked + .choice__box::before { border-color: var(--navy); background: radial-gradient(circle, var(--orange) 0 40%, var(--white) 45%); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--orange); outline-offset: 2px; }
.calc__inline { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.calc__inline .input { width: 7.5rem; }
.calc__result {
  padding: 1.6rem; border-radius: var(--radius-lg); color: var(--white);
  background: radial-gradient(22rem 14rem at 100% 0, rgba(244, 153, 16, .2), transparent 70%), var(--navy-900);
  box-shadow: var(--shadow);
}
@media (min-width: 64em) { .calc__result { position: sticky; top: calc(var(--header-h) + 1rem); } }
.calc__result h2 { color: var(--white); font-size: 1.3rem; }
.calc__lines { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .65rem; }
.calc__lines li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px dashed rgba(255, 255, 255, .2); font-size: .95rem; }
.calc__lines li span:first-child { color: rgba(255, 255, 255, .82); }
.calc__lines small { display: block; color: rgba(255, 255, 255, .6); font-size: .82rem; }
.calc__lines strong { white-space: nowrap; }
.calc__totals { display: grid; gap: .3rem; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.calc__totals div { display: flex; justify-content: space-between; }
.calc__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin: 1rem 0; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--orange); color: var(--navy-950);
}
.calc__total span { font-weight: 700; }
.calc__total strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.calc__disclaimer { font-size: .86rem; color: rgba(255, 255, 255, .75); }
.calc__result .btn { width: 100%; margin-top: .5rem; }
.calc__result .btn--ghost-light { margin-top: .6rem; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .78); font-size: .97rem; }
.footer__grid { display: grid; gap: 2rem; padding-block: 3.5rem 2.5rem; }
@media (min-width: 40em) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; } }
.footer__brand img { width: 96px; margin-bottom: 1rem; }
.footer__title { font-size: 1rem; color: var(--white); margin-bottom: 1rem; letter-spacing: .02em; }
.footer ul li { margin-bottom: .5rem; }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer address { display: grid; gap: .7rem; margin-bottom: 1.25rem; }
.footer address a { display: flex; gap: .6rem; align-items: flex-start; }
.footer address .icon { color: var(--orange); margin-top: .2rem; width: 1.1em; height: 1.1em; }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); }
.social a:hover { background: var(--orange); color: var(--navy-950); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: underline; }

/* ---------- Barre d'appel mobile ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 24, 51, .1);
}
.callbar__btn {
  display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px;
  border-radius: 999px; border: 2px solid var(--navy);
  font: 700 .98rem var(--font-head); color: var(--navy); text-decoration: none;
}
.callbar__btn--call { background: var(--orange); border-color: var(--orange); color: var(--navy-950); }
body { padding-bottom: 72px; }
@media (min-width: 64em) { .callbar { display: none; } body { padding-bottom: 0; } }

/* ---------- Page 404 ---------- */
.error-page { text-align: center; max-width: 36rem; margin-inline: auto; }
.error-page .frame { max-width: 9rem; margin: 0 auto 1.5rem; }
.error-page .hero__actions { justify-content: center; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Impression ---------- */
@media print {
  .topbar, .header, .callbar, .cta-band, .footer, .breadcrumb { display: none !important; }
  body { padding: 0; }
  .hero, .page-hero, .calc__result { background: none !important; color: #000 !important; }
  .hero h1, .page-hero h1, .calc__result h2 { color: #000 !important; }
}

.h3 { font-size: 1.2rem; font-weight: 700; }
.answer .h3 { margin-bottom: .4em; }

/* ---------- Compléments ---------- */
.link-light { color: var(--white); font-weight: 700; }
.link-light:hover { color: var(--orange); }
.error-page__logo { width: 150px; margin: 0 auto 1.5rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; font-size: .97rem; }
.facts dt { font-weight: 700; color: var(--navy-950); }
.facts dd { margin: 0; color: var(--muted); }
.facts a { font-weight: 600; }
@media (max-width: 30em) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }
.brand__txt strong, .brand__txt span { white-space: nowrap; }
@media (max-width: 26em) {
  .brand { gap: .5rem; }
  .brand img { width: 52px; }
  .brand__txt strong { font-size: 1rem; }
  .brand__txt span { font-size: .72rem; }
  .nav-toggle { padding: .45rem .75rem; }
}
