/* ==========================================================================
   SYLLODI SERVICE — Feuille de style principale
   Mobile-first · CSS custom properties · Grid + Flexbox · WCAG 2.1 AA
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* ---------- Référence de marque : la couleur unique du logo ----------- */
  --logo:        #12364B;   /* teinte 202° · saturation 61% · clarté 18% */

  /* ---------- Échelle pétrole, dérivée de la teinte 202° du logo -------- */
  --navy-900:    #091E2A;
  --navy-800:    #0D2A3B;
  --navy:        #12364B;   /* identique au logo */
  --navy-700:    #17445E;
  --navy-600:    #1F5575;
  --navy-500:    #286A8F;

  /* ---------- Couleur d'action : même teinte, saturée pour la lisibilité */
  --brand:       #10608E;
  --brand-dark:  #0D4A6D;
  --brand-400:   #2C86BA;
  --brand-200:   #A8CFE6;
  --brand-light: #E4F0F6;

  /* ---------- Complément chaud (opposé de 202°) : seule couleur d'appel - */
  --accent:      #EA832A;
  --accent-dark: #994D0A;
  --accent-line: #EBCAAD;
  --accent-light:#FCECDF;
  --accent-ink:  #301803;

  /* ---------- Neutres, tous alignés sur la même teinte ------------------ */
  --ink:         #102938;
  --ink-2:       #395260;
  --muted:       #5A707C;
  --line:        #DFE7EC;
  --bg:          #FFFFFF;
  --bg-soft:     #F8FAFC;
  --bg-tint:     #F0F6FA;

  /* ---------- Textes sur fond sombre ------------------------------------ */
  --on-dark:      #C3D5DF;
  --on-dark-soft: #95ADBB;
  --on-dark-line: #28495D;

  /* ---------- Sémantiques : conservées, elles portent un sens universel - */
  /* Vert et rouge : réservés aux retours d'état des formulaires, jamais
     à la décoration. C'est la seule entorse à la teinte de marque, et elle
     est délibérée : l'utilisateur lit ces deux couleurs comme un statut. */
  --success:      #0E8A5F;
  --success-bg:   #DFF4EB;
  --success-ink:  #0A5C40;
  --success-line: #A9E0C9;
  --danger:       #C0392B;
  --danger-bg:    #FDECEA;
  --danger-ink:   #8E2A1E;
  --danger-line:  #F3C0BA;

  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 2px rgba(18,54,75,.07), 0 2px 8px rgba(18,54,75,.06);
  --shadow:      0 4px 12px rgba(18,54,75,.09), 0 12px 32px rgba(18,54,75,.08);
  --shadow-lg:   0 18px 50px rgba(18,54,75,.18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-title: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --section-y: 56px;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --section-y: 88px; }
}

/* ---------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
button { font: inherit; }
ul, ol { padding-left: 1.15em; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(1.9rem, 5.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 750; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- 3. Layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: var(--brand-200); }

.grid { display: grid; gap: 22px; }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.section--dark .eyebrow { color: var(--accent); }

/* ------------------------------------------------------------- 4. Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 750; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  min-height: 52px; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(30,94,255,.32); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(255,176,32,.36); }
.btn--accent:hover { background: var(--accent-dark); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand-200); }
.btn--ghost:hover { background: var(--brand-light); }
.btn--dark { background: #fff; color: var(--navy); }
.btn--dark:hover { background: var(--brand-light); color: var(--navy); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 32px; font-size: 1.08rem; min-height: 60px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------- 5. Cartes */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card--pad-lg { padding: 32px; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); margin-bottom: 14px;
  font-size: 1.3rem; font-weight: 800;
}
.card--accent .card__icon { background: var(--accent-light); color: var(--accent-dark); }
.section--dark .card { background: var(--navy-700); border-color: var(--on-dark-line); color: var(--on-dark); }
.section--dark .card__icon { background: var(--navy-600); color: var(--brand-200); }

/* --------------------------------------------------------------- 6. Header */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name {
  font-family: var(--font-title); font-weight: 850; color: var(--logo);
  font-size: 1.02rem; letter-spacing: .01em; line-height: 1.1; text-transform: uppercase;
}
.brand__name span { color: var(--brand); font-weight: 750; }
@media (max-width: 380px) { .brand__name { font-size: .9rem; } .brand__mark { width: 34px; height: 34px; } }

/* Emblème blanc sur le fond sombre du pied de page */
.brand--footer { margin: 0 0 16px; }
.brand--footer .brand__mark {
  width: 44px; height: 44px;
  /* Un seul fichier logo pour tout le site : le pied de page le blanchit
     par filtre plutôt que de télécharger une seconde copie (5,4 Ko économisés
     par visite, et plus aucun risque de divergence entre deux fichiers). */
  filter: brightness(0) invert(1);
}
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__name span { color: var(--brand-200); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  color: var(--ink); font-weight: 650; cursor: pointer; min-height: 44px;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars i {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle__bars::before { top: 0; } .nav-toggle__bars i { top: 5px; } .nav-toggle__bars::after { bottom: 0; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100vh - 68px); overflow-y: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: 12px var(--gutter) 22px; }
.site-nav > ul > li { border-bottom: 1px solid var(--line); }
.site-nav > ul > li:last-child { border-bottom: 0; }
.site-nav a {
  display: block; padding: 13px 2px; color: var(--ink); text-decoration: none; font-weight: 650;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav .sub { list-style: none; padding: 0 0 10px 12px; margin: 0; border-left: 2px solid var(--line); }
.site-nav .sub a { font-weight: 500; font-size: .95rem; padding: 8px 2px; color: var(--ink-2); }
.header-cta { display: none; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav > ul { display: flex; gap: 4px; padding: 0; align-items: center; }
  .site-nav > ul > li { position: relative; border: 0; }
  .site-nav > ul > li > a { padding: 22px 12px; font-size: .95rem; }
  .site-nav .sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 280px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); padding: 8px; z-index: 70;
  }
  .site-nav li:hover > .sub, .site-nav li:focus-within > .sub { display: block; }
  .site-nav .sub a { padding: 9px 12px; border-radius: 8px; }
  .site-nav .sub a:hover { background: var(--bg-tint); }
  .header-cta { display: inline-flex; }
}

/* ------------------------------------------------------------------ 7. Hero */
.hero {
  background:
    radial-gradient(1100px 520px at 12% -12%, var(--navy-700) 0%, transparent 62%),
    radial-gradient(900px 460px at 92% 8%, var(--navy-600) 0%, transparent 58%),
    var(--navy);
  color: var(--on-dark); padding-block: 54px 62px;
}
.hero h1 { color: #fff; }
.hero__lead { font-size: clamp(1.02rem, 2.1vw, 1.22rem); color: var(--on-dark); max-width: 62ch; }
.hero__grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  font-size: .82rem; font-weight: 650; color: var(--on-dark);
}
.badge--light { background: var(--brand-light); border-color: var(--brand-200); color: var(--brand-dark); }

.hero__contacts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: .96rem; }
.hero__contacts a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hero__contacts a:hover { color: #fff; text-decoration: underline; }

.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.13); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
@media (min-width: 760px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(11,18,32,.55); padding: 18px 16px; }
.stat__num { font-family: var(--font-title); font-size: 1.55rem; font-weight: 850; color: #fff; line-height: 1.1; }
.stat__label { font-size: .8rem; color: var(--on-dark-soft); margin-top: 4px; }

/* ---------------------------------------------------------- 8. Fil d'ariane */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .86rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--muted); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------- 9. Contenu éditorial */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { margin: 1.4em 0; }

.kpi-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kpi-list li { display: flex; gap: 12px; align-items: flex-start; }
.kpi-list li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand); display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; margin-top: 2px;
}
.section--dark .kpi-list li::before { background: var(--navy-600); color: var(--brand-200); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(s); width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 850; font-size: 1.05rem;
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; }

/* --------------------------------------------------------------- 10. Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-scroll table { min-width: 640px; font-size: .95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 750; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.price { font-weight: 750; color: var(--ink); white-space: nowrap; }
td.price--ours { color: var(--brand-dark); }
.table-note { font-size: .84rem; color: var(--muted); margin-top: 12px; }

/* ------------------------------------------------------------------ 11. FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 54px 20px 22px; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--brand); }
.faq__body { padding: 0 22px 20px; }
.faq__body > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------- 12. Zones / régions */
.zone-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.zone-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .12s ease, box-shadow .2s ease;
}
.zone-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.zone-card strong { display: block; color: var(--ink); font-size: 1.02rem; font-weight: 750; margin-bottom: 3px; }
.zone-card span { color: var(--muted); font-size: .86rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--bg-tint);
  color: var(--navy-500); font-size: .85rem; font-weight: 600; border: 1px solid var(--brand-200);
}

/* ---------------------------------------------------------- 13. Formulaires */
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  min-height: 52px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(30,94,255,.18); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .84rem; min-height: 0; }
.field--check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; }
.field--check label { font-weight: 400; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .94rem; display: none; }
.form-status.is-ok { display: block; background: var(--success-bg); color: var(--success-ink); border: 1px solid var(--success-line); }
.form-status.is-err { display: block; background: var(--danger-bg); color: var(--danger-ink); border: 1px solid var(--danger-line); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg);
}
@media (min-width: 700px) { .form-card { padding: 34px; } }
.form-card h3, .form-card h2 { margin-top: 0; }

/* -------------------------------------------------------------- 14. Preuves */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; opacity: .85; }
.logo-strip span {
  font-weight: 750; letter-spacing: .04em; color: var(--muted); font-size: .92rem;
  border: 1px dashed var(--line); padding: 8px 16px; border-radius: 8px;
}
.quote { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 0 0 14px; font-size: 1.04rem; color: var(--ink); }
.quote figcaption { font-size: .88rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); display: block; }
.stars { color: var(--accent-dark); letter-spacing: 2px; font-size: .9rem; margin-bottom: 10px; }
.placeholder-flag {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-light); color: var(--accent-dark); border: 1px solid var(--accent-line); padding: 3px 8px; border-radius: 5px; margin-bottom: 10px;
}

/* --------------------------------------------------------------- 15. Bandes */
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, var(--navy) 100%); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--brand-light); }
.cta-band .btn--dark { background: #fff; color: var(--brand-dark); }
.cta-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .cta-split { grid-template-columns: 1fr 460px; } }

.urgency {
  display: inline-flex; align-items: center; gap: 9px; background: var(--accent-light); color: var(--accent-dark);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 700; margin-bottom: 16px;
}
.urgency::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-dark); }

/* --------------------------------------------------------------- 16. Footer */
.site-footer { background: var(--navy); color: var(--on-dark-soft); padding-block: 52px 0; font-size: .93rem; }
.site-footer .footer-titre {
  color: #fff; font-size: .84rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin: 0 0 14px; line-height: 1.3;
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-legal {
  border-top: 1px solid var(--on-dark-line); margin-top: 40px; padding-block: 20px 28px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .82rem; color: var(--on-dark-soft);
}
.footer-legal p { margin: 0; }
.footer-brand__desc { max-width: 34ch; }

/* ------------------------------------------------- 17. Barre CTA mobile fixe */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); box-shadow: 0 -4px 18px rgba(11,18,32,.14);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  background: #fff; padding: 13px 8px; text-align: center; text-decoration: none;
  font-weight: 750; font-size: .92rem; color: var(--ink); min-height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.mobile-bar a.is-primary { background: var(--accent); color: var(--accent-ink); }
body { padding-bottom: 0; }
@media (max-width: 1039px) { body.has-mobile-bar { padding-bottom: 58px; } }
@media (min-width: 1040px) { .mobile-bar { display: none; } }

/* ---------------------------------------------------- 18. Landing pages Ads */
.lp-header { background: #fff; border-bottom: 1px solid var(--line); }
.lp-header .header-bar { justify-content: space-between; }
.lp-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.lp-phone:hover { color: var(--brand); }
.lp-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-500) 100%); color: var(--on-dark); padding-block: 40px 48px; }
.lp-hero h1 { color: #fff; }
.lp-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 28px; font-size: .84rem; color: var(--muted); }
.lp-footer a { color: var(--muted); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
@media (min-width: 760px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 14px; text-align: center;
}
.trust strong { display: block; color: #fff; font-size: 1.02rem; }
.trust span { font-size: .78rem; color: var(--on-dark-soft); }

/* ------------------------------------------------------------- 19. Bandeau cookies */
.cookie-banner {
  position: fixed; z-index: 100; left: 12px; right: 12px; bottom: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px; display: none;
}
.cookie-banner.is-visible { display: block; }
@media (min-width: 1040px) { .cookie-banner { max-width: 430px; left: auto; right: 20px; bottom: 20px; } }
@media (max-width: 1039px) { .cookie-banner { bottom: 66px; } }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: .4em; }
.cookie-banner p { font-size: .88rem; margin-bottom: 14px; }
.cookie-banner .btn { padding: 11px 18px; font-size: .92rem; min-height: 44px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* --------------------------------------------------------------- 20. Divers */
.callout {
  background: var(--bg-tint); border: 1px solid var(--brand-200); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout--warn { background: var(--accent-light); border-color: var(--accent-line); border-left-color: var(--accent-dark); }
.sources { font-size: .85rem; color: var(--muted); }
.sources ol { margin: 8px 0 0; }
.updated { font-size: .82rem; color: var(--muted); }
.post-list { display: grid; gap: 18px; }
.post-list article { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.post-list article:last-child { border-bottom: 0; }
.post-list h3 { margin-bottom: .3em; }
.post-list .meta { font-size: .82rem; color: var(--muted); }
.two-col { display: grid; gap: 34px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 380px; align-items: start; } }
.sticky-side { position: sticky; top: 92px; }

@media print {
  .site-header, .mobile-bar, .cookie-banner, .btn { display: none !important; }
  body { color: #000; }
}

/* --------------------------------------------- 21. Références de sources */
td.src-ref { white-space: nowrap; text-align: center; }
td.src-ref a {
  display: inline-block; min-width: 30px; padding: 2px 7px; border-radius: 6px;
  background: var(--bg-tint); color: var(--brand-dark); font-size: .82rem;
  font-weight: 700; text-decoration: none; border: 1px solid var(--brand-200);
}
td.src-ref a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: 12px; }
.sources li:target {
  background: var(--accent-light); outline: 2px solid var(--accent-line); outline-offset: 4px; border-radius: 4px;
}

/* ------------------------------------- 22. Contact par écrit uniquement */
.mobile-bar a.is-mail { background: var(--navy); color: #fff; }
.mobile-bar a.is-mail:hover { background: var(--navy-500); }
.hero__sla {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  color: var(--on-dark-soft); font-size: .92rem;
}
.section--soft .hero__sla, .cta-band .hero__sla { color: inherit; }

/* =========================================================================
   23. SYSTÈME D'ICÔNES (SVG inline, hérite de currentColor)
   ========================================================================= */
.icon { display: block; flex: none; }
.icon--inline { display: inline-block; vertical-align: -.18em; margin-right: .1em; }
.card__icon .icon { width: 22px; height: 22px; }

/* ============================================ 24. Bande de garanties */
.guarantees {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .guarantees { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .guarantees { grid-template-columns: repeat(4, 1fr); } }
.guarantee { background: #fff; padding: 20px; display: flex; gap: 13px; align-items: flex-start; }
.guarantee .icon { width: 26px; height: 26px; color: var(--brand); margin-top: 1px; }
.guarantee strong { display: block; color: var(--ink); font-size: .97rem; font-weight: 750; margin-bottom: 3px; }
.guarantee span { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.section--dark .guarantees { background: var(--on-dark-line); border-color: var(--on-dark-line); }
.section--dark .guarantee { background: var(--navy-700); }
.section--dark .guarantee strong { color: #fff; }
.section--dark .guarantee span { color: var(--on-dark-soft); }
.section--dark .guarantee .icon { color: var(--accent); }

/* ==================================== 25. Sommaire ancré (sticky sub-nav) */
.page-nav {
  position: sticky; top: 68px; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.page-nav__inner { display: flex; align-items: center; gap: 4px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.page-nav__inner::-webkit-scrollbar { display: none; }
.page-nav a {
  flex: none; padding: 14px 14px; font-size: .9rem; font-weight: 650;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; min-height: 48px; display: flex; align-items: center;
}
.page-nav a:hover { color: var(--brand); }
.page-nav a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.page-nav__cta { margin-left: auto; }
.page-nav__cta a {
  border-bottom: 0; color: var(--brand-dark); font-weight: 750;
}
@media (max-width: 620px) { .page-nav__cta { display: none; } }

/* ================================ 26. Carte schématique des régions */
.map-wrap {
  max-width: 560px; margin: 0 auto; padding: 18px;
  background: linear-gradient(160deg, var(--bg-tint) 0%, #FFFFFF 70%);
  border: 1px solid var(--brand-light); border-radius: var(--radius-lg);
}
.section--dark .map-wrap { background: rgba(255,255,255,.04); border-color: var(--on-dark-line); }
.map-tiles {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto); gap: 7px;
}
.map-tile {
  grid-column: var(--col); grid-row: var(--row); min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 11px; text-decoration: none; padding: 5px 3px;
  background: #fff; border: 1.5px solid var(--brand-200); color: var(--navy-500);
  transition: transform .12s ease, background .15s ease, border-color .15s ease,
              box-shadow .15s ease;
  text-align: center; box-shadow: 0 1px 2px rgba(11,18,32,.05);
}
.map-tile b {
  font-weight: 850; font-size: clamp(.66rem, 2.4vw, .82rem); letter-spacing: .03em;
  color: var(--brand-dark); line-height: 1;
}
.map-tile small {
  display: block; font-weight: 500; line-height: 1.15; margin-top: 4px;
  font-size: clamp(.5rem, 1.65vw, .58rem); color: var(--muted);
  max-width: 100%; overflow-wrap: anywhere; hyphens: auto;
}
.map-tile:hover, .map-tile:focus-visible {
  background: var(--brand); border-color: var(--brand);
  transform: translateY(-2px); box-shadow: 0 8px 18px rgba(30,94,255,.25);
}
.map-tile:hover b, .map-tile:focus-visible b,
.map-tile:hover small, .map-tile:focus-visible small { color: #fff; }
.map-legend { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 400px) { .map-tile small { display: none; } }

/* ============================== 27. Grille tarifaire : colonne mise en avant */
.table--pricing th:nth-child(4), .table--pricing td:nth-child(4) {
  background: var(--brand-light); box-shadow: inset 1px 0 0 var(--brand-200), inset -1px 0 0 var(--brand-200);
}
.table--pricing thead th:nth-child(4) { background: var(--brand-200); color: var(--brand-dark); }
.table--pricing td.price--ours { color: var(--brand-dark); font-size: 1rem; }
.col-badge {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 800;
  letter-spacing: .03em; vertical-align: middle;
}
.table-hint { display: none; align-items: center; gap: 7px; font-size: .8rem;
  color: var(--muted); margin: 0 0 8px; }
/* Le tableau ne defile que dans cette plage : empile en cartes en dessous. */
@media (min-width: 761px) and (max-width: 940px) { .table-hint { display: flex; } }

/* ------- Grille tarifaire empilee en cartes sur petit ecran (< 760 px) ----- */
@media (max-width: 760px) {
  .table-scroll table.table--pricing { min-width: 0; width: 100%; }
  .table--pricing thead { position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table--pricing, .table--pricing tbody, .table--pricing tr, .table--pricing th,
  .table--pricing td { display: block; width: auto; }
  .table--pricing tr {
    border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px;
    background: #fff; overflow: hidden; box-shadow: var(--shadow-sm);
  }
  .table--pricing tr:last-child { margin-bottom: 0; }
  .table--pricing th[scope="row"] {
    background: var(--bg-soft); font-size: 1rem; font-weight: 750; color: var(--ink);
    padding: 14px 16px; border-bottom: 1px solid var(--line);
  }
  .table--pricing td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    padding: 11px 16px; border-bottom: 1px solid var(--line);
    box-shadow: none !important;
  }
  .table--pricing td:last-child { border-bottom: 0; }
  .table--pricing td::before {
    content: attr(data-label); flex: none; font-size: .82rem; color: var(--muted);
    font-weight: 600;
  }
  .table--pricing td:nth-child(4) {
    background: var(--brand-light); border-top: 1px solid var(--brand-200); border-bottom: 1px solid var(--brand-200);
  }
  .table--pricing td:nth-child(4)::before { color: var(--brand-dark); font-weight: 750; }
  .table--pricing td.price--ours { font-size: 1.12rem; font-weight: 800; text-align: right; }
  .table--pricing td.src-ref { justify-content: space-between; }
  .table-scroll:has(.table--pricing) { border: 0; background: transparent; overflow: visible; }
}

/* ================================================= 28. Retour en haut */
.to-top {
  position: fixed; right: 16px; bottom: 74px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (min-width: 1040px) { .to-top { bottom: 24px; right: 24px; } }

/* ============================== 29. Apparition au défilement (discrète) */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ====================================== 30. Cibles tactiles et confort */
@media (max-width: 1039px) {
  .site-footer .footer-grid a,
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 40px; }
  .site-footer .footer-grid ul { gap: 2px; }
}
.field--check input { width: 24px; height: 24px; }
.field--check { grid-template-columns: 26px 1fr; }

/* Rythme : un peu d'air en plus entre les blocs longs */
.prose h2 { padding-top: .3em; }
.prose > .callout { margin-block: 28px; }

/* =========================================================================
   31. ENCAPSULATION DE LA CARTE FORMULAIRE
   La carte est imbriquée dans des sections sombres (.hero, .cta-band) dont
   les règles de couleur cascadaient dedans : titre blanc sur fond blanc,
   texte bleu clair illisible. La carte reprend ici la main sur sa typographie,
   quel que soit son contexte.
   ========================================================================= */
.form-card { color: var(--ink-2); }
.form-card h1, .form-card h2, .form-card h3 { color: var(--ink); }
.form-card p { color: var(--ink-2); }
.form-card .form-note, .form-card .hint { color: var(--muted); }
.form-card label { color: var(--ink); }
.form-card .field--check label { color: var(--muted); }
.form-card a { color: var(--brand); }
.form-card a:hover { color: var(--brand-dark); }
.form-card .btn--accent { color: var(--accent-ink); }

/* Le badge d'urgence garde son duo ambre, même dans un bandeau sombre */
.cta-band .urgency { color: var(--accent-dark); background: var(--accent-light);
  border-color: var(--accent-line); }

/* --------------------- 32. Tailles de texte minimales ------------------- */
/* 9,3 px sur les tuiles de la carte : sous le seuil de lisibilité. */
.map-tile small { font-size: clamp(.7rem, 1.9vw, .74rem); }
.col-badge { font-size: .72rem; }
