/* ============================================================
   EGDE — feuille de style v3
   Palette : marine #0f314f · bleu #0585cc · ciel #2ea3f2 (inchangée)
   Typo    : Barlow Condensed (titres, signalétique) · Barlow (texte)
   Idée    : la « coupe de terrain » — strates, canalisations, regards.
   Architecture : 1) primitives + sémantique 2) base 3) composants 4) responsive
   ============================================================ */

/* ---------- 1) Primitives + sémantique ---------- */
:root {
  /* couleurs (charte EGDE) */
  --navy: #0f314f;
  --navy-dark: #0a2338;
  --navy-mid: #14406b;
  --blue: #0585cc;
  --blue-ink: #046da8;          /* texte et boutons bleus : AA sur blanc */
  --sky: #2ea3f2;
  --sky-100: #e3f2fd;
  --sky-200: #bfe3fb;
  --alert: #d9583f;             /* usage unique : poteau incendie dans les schémas */

  --ink: #16283a;
  --muted: #4d6072;
  --line: #d9e3ec;
  --bg: #ffffff;
  --bg-soft: #f1f5f7;

  /* typographie */
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-h3: 1.6rem;
  --fs-h2: clamp(2.3rem, 4.4vw, 3.6rem);
  --fs-h1: clamp(2.7rem, 6vw, 4.9rem);

  /* espacements (base 4) */
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --section-y: clamp(64px, 8.5vw, 112px);
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  /* forme / profondeur : une seule élévation (éléments flottants) */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-float: 0 2px 6px rgba(10, 35, 56, .08), 0 18px 40px -16px rgba(10, 35, 56, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --z-header: 100;
  --z-fab: 90;
}

/* ---------- 2) Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--blue) var(--bg-soft); accent-color: var(--blue); }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: 0; margin: 0; color: var(--navy); text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sky-200); color: var(--navy); }
input, textarea, select { caret-color: var(--blue); font: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible, .topbar :focus-visible, .section-dark :focus-visible, .cta-band :focus-visible, .local-band :focus-visible, .card--feature :focus-visible { outline-color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- 3) Composants ---------- */

/* Barre supérieure */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.86); font-size: .875rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar-tag { margin: 0; letter-spacing: .02em; }
.topbar-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.topbar-links li, .topbar-links a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 28px; }
.topbar-links a:hover { color: var(--sky); }

/* Boutons : rectangles francs, capitales condensées (esprit signalétique) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--blue-ink); color: #fff; }
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:focus-visible { border-radius: 10px; }
.brand-logo { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--navy); letter-spacing: .04em; }
.brand-text small { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.brand-text--solo small { max-width: 9.5rem; line-height: 1.15; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--blue), var(--navy)); color: #fff; font: 700 1.6rem var(--font-display); }
.brand-light .brand-mark { background: #fff; color: var(--navy); }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.65); }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; display: block; padding: 10px 14px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy);
  transition: color .2s;
}
.nav-list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.nav-list a:hover { color: var(--blue-ink); }
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }
.nav-list a[aria-current] { color: var(--blue-ink); }
.nav-list .nav-cta { background: var(--blue-ink); color: #fff; padding: 10px 20px; margin-left: 8px; border-radius: var(--radius-sm); }
.nav-list .nav-cta::after { display: none; }
.nav-list .nav-cta:hover, .nav-list .nav-cta[aria-current="page"] { background: var(--navy); color: #fff; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 0; border-radius: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

.has-sub { position: relative; }
.has-sub > a { padding-right: 26px; }
.has-sub > a::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7;
}
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 300px; margin: 6px 0 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease-out), visibility .2s; z-index: 60;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
/* Pont invisible : le survol ne se perd pas dans l'espace entre « Services » et le sous-menu */
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.sub-menu a { padding: 10px 14px; font-size: 1.05rem; }
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--sky-100); }

/* Bord de terrain (remplace la vague) */
.edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; z-index: 1; }

/* Hero d'accueil */
.hero { position: relative; color: #fff; overflow: hidden; background: radial-gradient(circle at 78% 20%, rgba(46,163,242,.28), transparent 55%), linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--navy-mid)); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(96px, 10vw, 128px); }
.hero h1 { color: #fff; font-size: var(--fs-h1); line-height: .98; margin: 0 0 var(--s-5); }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero-sub { font-size: 1.2rem; line-height: 1.55; max-width: 34em; color: rgba(255,255,255,.88); margin: 0 0 var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-since { margin: var(--s-6) 0 0; padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.82); font-size: var(--fs-small); max-width: 34em; }

/* Coupe de principe interactive */
.coupe-panel { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 14px 14px 8px; }
.coupe { width: 100%; height: auto; overflow: visible; }
.coupe .part { transition: opacity .3s; }
.coupe[data-active] .part { opacity: .3; }
.coupe[data-active="1"] .p1, .coupe[data-active="2"] .p2, .coupe[data-active="3"] .p3, .coupe[data-active="4"] .p4, .coupe[data-active="5"] .p5 { opacity: 1; }
.coupe .mk circle { fill: #fff; }
.coupe .mk text { fill: var(--navy); font: 700 15px var(--font-display); }
.coupe .flow { stroke-dasharray: 6 14; animation: flow 1.4s linear infinite; }
.coupe .rain path { animation: fall 1.8s linear infinite; }
.coupe .rain path:nth-child(2) { animation-delay: .6s; }
.coupe .rain path:nth-child(3) { animation-delay: 1.2s; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes fall { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.coupe-legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; counter-reset: k; }
.coupe-legend li { counter-increment: k; }
.coupe-legend a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 4px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .03em; color: #fff; transition: color .2s; }
.coupe-legend a::before { content: counter(k); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); font: 700 .95rem var(--font-display); transition: background .2s; }
.coupe-legend a:hover, .coupe-legend a:focus-visible { color: var(--sky); }
.coupe-legend a:hover::before, .coupe-legend a:focus-visible::before { background: var(--sky); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-4) clamp(32px, 6vw, 88px); align-items: end; margin: 0 0 var(--s-7); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head h2:only-child { grid-column: 1 / -1; max-width: 22ch; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 40em; }
.section-head .section-lead { padding-bottom: 6px; }
.split-content h2 { font-size: var(--fs-h2); margin-bottom: var(--s-5); }

/* Cartes : bordure seule, sans tuile d'icône ni ombre */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-4); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6) var(--s-6) var(--s-5); transition: border-color .2s; }
.card-icon { width: 34px; height: 34px; color: var(--blue-ink); margin-bottom: var(--s-5); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.card p { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: var(--s-5); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .05em; text-transform: uppercase; color: var(--blue-ink); }
.card-link::after { content: "→"; transition: transform .25s var(--ease-out); }
.card--link .card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card--link:hover, .card--link:focus-within { border-color: var(--navy); }
.card--link:hover .card-link::after { transform: translateX(6px); }
.card--link .card-link:focus-visible { outline: none; }
.card--link:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Grille asymétrique des services (accueil) */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.card--feature { grid-row: span 2; background: var(--navy); border-color: var(--navy); color: #fff; overflow: hidden; }
.card--feature h3 { color: #fff; font-size: clamp(2.2rem, 3.2vw, 2.9rem); line-height: 1; }
.card--feature p { color: rgba(255,255,255,.86); font-size: 1.02rem; }
.card--feature .card-icon { color: var(--sky); }
.card--feature:hover { border-color: var(--sky); }
.feature-links { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; }
.feature-links a { display: flex; justify-content: space-between; align-items: center; min-height: 50px; border-top: 1px solid rgba(255,255,255,.18); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: .03em; color: #fff; transition: color .2s; }
.feature-links a::after { content: "→"; color: var(--sky); }
.feature-links a:hover { color: var(--sky); }
.feature-cta { margin-top: auto; padding-top: var(--s-6); }
.card--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--s-6); }
.card--wide .card-icon { margin: 0; }
.card--wide .wide-text { flex: 1; }
.card--wide h3 { margin-bottom: 6px; }
.card--wide .card-link { margin: 0; padding: 0; }

/* Colonnes texte + média */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-content p { color: var(--muted); }
.split-content > .btn { margin-top: var(--s-4); }
.check-list { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 600; font-size: 1rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px; background-color: var(--sky-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23046da8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.check-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
.split-content p a, .faq-body a, .section-lead a, .card p a, .note a, .case-list a, .prose a {
  color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(46,163,242,.6); text-underline-offset: 3px;
}
.card p a { position: relative; z-index: 2; }
.check-list a { color: inherit; text-decoration: underline; text-decoration-color: rgba(46,163,242,.6); text-underline-offset: 3px; }
.split-content p a:hover, .faq-body a:hover, .section-lead a:hover, .card p a:hover, .check-list a:hover { text-decoration-color: currentColor; }

/* Photos et médias */
.media-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.media-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo-badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 7px 14px; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.photo-badge svg { width: 15px; height: 15px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4); }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,35,56,.7)); }
.gallery figcaption { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.media-stack .media-card { margin-top: var(--s-4); }
.media-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: var(--s-6); }
.media-badge { display: inline-block; margin-bottom: var(--s-4); font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.media-figures { display: grid; gap: var(--s-5); }
.media-figures strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.05; color: #fff; }
.media-figures span { color: rgba(255,255,255,.8); font-size: var(--fs-small); }
.media-stack .media-figures:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }

/* Zone d'intervention */
.zone-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-6); align-items: start; }
.zone-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); }
.zone-list li { padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; color: var(--navy); }
.zone-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.zone-map iframe { width: 100%; height: 400px; border: 0; }
.zone-map--spaced { margin-top: 28px; }

/* Engagements (section sombre) : liste à filets, sans cartes */
.section-dark { background: radial-gradient(circle at 12% 90%, rgba(46,163,242,.18), transparent 50%), linear-gradient(160deg, var(--navy), var(--navy-dark)); color: #fff; }
.section-dark h2 { color: #fff; }
.commit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.commit-lead { position: sticky; top: 120px; }
.commit-lead h2 { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.commit-lead p { color: rgba(255,255,255,.84); max-width: 30em; }
.commit-list { list-style: none; margin: 0; padding: 0; }
.commit-list li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid rgba(255,255,255,.18); }
.commit-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.commit-list .ico { width: 40px; height: 40px; color: var(--sky); }
.commit-list h3 { color: #fff; font-size: 1.9rem; margin-bottom: 6px; }
.commit-list p { margin: 0; color: rgba(255,255,255,.82); max-width: 34em; }

/* Étapes : nœuds sur une canalisation */
.steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-5); }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 20px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-ink), var(--sky)); }
.step { position: relative; }
.step-num { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s-5); border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 0 0 6px var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.section-alt .step-num { box-shadow: 0 0 0 6px var(--bg-soft); }
.step h3 { font-size: 1.6rem; margin-bottom: var(--s-2); }
.step p { margin: 0; color: var(--muted); font-size: var(--fs-small); }

/* FAQ : filets, sans cartes */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 22px 56px 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.3; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--blue-ink); font: 600 1.4rem var(--font-body); }
.faq details[open] summary::after { content: "–"; background: var(--navy); color: #fff; }
.faq summary:hover { color: var(--blue-ink); }
.faq .faq-body { padding: 0 56px 24px 0; color: var(--muted); max-width: 60em; }
.faq .faq-body p { margin: 0 0 8px; }

/* Bandeau d'appel : plein, contrasté, téléphone en évidence */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s-5) var(--s-7); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 20px; color: #fff; background: linear-gradient(120deg, var(--navy), var(--navy-mid)); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: var(--s-3); }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); max-width: 34em; }
.cta-actions { position: relative; z-index: 2; display: grid; gap: 8px; justify-items: stretch; text-align: center; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--sky-200); }
.cta-phone { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: .03em; color: #fff; }
.cta-phone:hover { color: var(--sky); }
.cta-phone .ico { width: 22px; height: 22px; color: var(--sky); }

/* Bandeau local (accueil) */
.local-band { background: var(--blue-ink); color: #fff; padding: var(--s-8) 0; }
.local-band .split { align-items: start; }
.local-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--s-3); }
.local-band p { color: rgba(255,255,255,.92); max-width: 32em; margin: 0; }
.local-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); }
.local-links a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-top: 1px solid rgba(255,255,255,.3); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; color: #fff; }
.local-links a::after { content: "→"; }
.local-links a:hover { color: var(--sky-200); }

/* Hero de page intérieure */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(46,163,242,.24), transparent 55%), linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--navy-mid)); }
.page-hero-inner { position: relative; z-index: 2; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(88px, 9vw, 116px); }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); line-height: .98; margin-bottom: var(--s-5); }
.page-hero p { color: rgba(255,255,255,.88); max-width: 38em; margin: 0; font-size: 1.2rem; line-height: 1.55; }
.page-hero p a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(143,208,255,.8); text-underline-offset: 3px; }
.page-hero .hero-actions { margin-top: var(--s-6); }
.page-hero .btn-primary { background: #fff; color: var(--navy); }
.page-hero .btn-primary:hover { background: var(--sky-200); }
.page-hero-art { position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); top: 50%; transform: translateY(-58%); width: min(380px, 28vw); z-index: 1; pointer-events: none; }
.page-hero-art svg { width: 100%; height: auto; }
.page-hero-art .flow { stroke-dasharray: 6 14; animation: flow 1.4s linear infinite; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0 0 var(--s-5); font-size: var(--fs-small); color: rgba(255,255,255,.78); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.4); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--sky); font-weight: 600; }

/* Puces de liens locaux */
.chip-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-links a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .03em; transition: border-color .2s; }
.chip-links a:hover { border-color: var(--navy); }
.chip-links a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Tableau comparatif */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-small); }
.compare caption { text-align: left; padding: 16px 22px; color: var(--muted); font-size: .875rem; caption-side: bottom; border-top: 1px solid var(--line); }
.compare th, .compare td { text-align: left; padding: 16px 22px; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; background: var(--navy); border: 0; }
.compare tbody th { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); width: 20%; }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* Deux panneaux */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.duo-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); }
.duo-panel h3 { font-size: 2rem; }
.duo-sub { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-small); }
.duo-panel .check-list { margin: var(--s-5) 0 0; }
.duo-panel--warn .check-list li::before {
  background-color: #fff1e0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a5300' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 18h.01'/%3E%3C/svg%3E");
}

/* Cas de figure */
.case-list { display: grid; margin: 0; border-top: 1px solid var(--line); }
.case-list > div { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 8px var(--s-7); padding: var(--s-5) 4px; border-bottom: 1px solid var(--line); }
.case-list dt { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--navy); }
.case-list dd { margin: 0; color: var(--muted); max-width: 62ch; }

/* Schémas et figures */
.illus { margin: 0; background: var(--navy); border-radius: var(--radius); padding: var(--s-5); color: #fff; }
.illus svg { width: 100%; height: auto; }
.illus figcaption { margin-top: var(--s-4); font-size: .875rem; color: rgba(255,255,255,.72); }
.legend { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px var(--s-5); counter-reset: leg; font-size: var(--fs-small); color: rgba(255,255,255,.94); }
.legend li { display: flex; gap: 10px; align-items: flex-start; counter-increment: leg; }
.legend li::before { content: counter(leg); flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font: 700 .9rem var(--font-display); margin-top: 1px; }
.doc-figures { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.doc-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); }
.doc-figure img { width: 100%; height: auto; border-radius: 6px; }
.doc-figure figcaption { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--muted); }
.doc-figure figcaption strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 2px; }
.doc-figure--wide { grid-column: 1 / -1; text-align: center; }
.doc-figure--wide img { max-width: 900px; margin: 0 auto; }
.doc-figure--wide figcaption { max-width: 720px; margin-left: auto; margin-right: auto; }

.note { display: flex; gap: var(--s-4); align-items: flex-start; background: var(--sky-100); border-radius: var(--radius); padding: var(--s-5) var(--s-6); color: var(--navy); }
.note .ico { width: 24px; height: 24px; color: var(--blue-ink); margin-top: 3px; }
.note p { margin: 0; }
.prose { max-width: 70ch; }

/* Contact */
.contact-info { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-5); }
.contact-info li { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-info a { color: var(--blue-ink); font-weight: 700; }
.contact-info a:hover { text-decoration: underline; }
.ci-icon { width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--sky-100); color: var(--blue-ink); }
.ci-icon .ico { width: 22px; height: 22px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); box-shadow: var(--shadow-float); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field label { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .03em; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(46,163,242,.25); background: #fff; }
.field textarea { resize: vertical; }
.form-note { margin: 14px 0 0; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #1f7a45; }
.form-note.err { color: #b3311f; }
.form-legal { margin: 10px 0 0; font-size: .85rem; line-height: 1.45; color: var(--muted); text-align: center; }
.form-legal a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 2px; }
.btn[disabled] { opacity: .7; cursor: progress; }
/* Champ piège anti-spam : hors écran, ni visible ni atteignable au clavier */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding-top: var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr 1fr; gap: 32px; padding-bottom: var(--s-7); }
.footer-brand p { margin: var(--s-4) 0 0; font-size: var(--fs-small); max-width: 280px; }
.footer-col h3, .footer-col h4, .footer-local h3, .footer-local h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sky); margin: 0 0 var(--s-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: var(--fs-small); }
.footer-col li > a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col strong { color: #fff; }
.footer-col .with-ico { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .with-ico .ico { margin-top: .3em; color: var(--sky); }
.footer-col .with-ico > a { min-height: 32px; }
.footer-col .legal { color: rgba(255,255,255,.66); font-size: .875rem; }
.footer-local { border-top: 1px solid rgba(255,255,255,.14); padding: var(--s-5) 0 var(--s-6); }
.footer-local ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: var(--fs-small); }
.footer-local a { color: rgba(255,255,255,.86); display: inline-flex; min-height: 32px; align-items: center; }
.footer-local a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { background: var(--navy-dark); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { margin: 0; font-size: .875rem; }
.footer-bottom a:hover { color: #fff; }
.footer-credit { color: rgba(255,255,255,.72); }
.footer-credit a { color: var(--sky); font-weight: 600; }

/* Bouton d'appel flottant (mobile) */
.call-fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-fab); align-items: center; gap: 10px; padding: 0 22px; min-height: 52px; border-radius: 999px; background: var(--blue-ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .05em; text-transform: uppercase; box-shadow: var(--shadow-float); }
.call-fab .ico { width: 20px; height: 20px; }

/* ---------- 4) Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--feature { grid-column: 1 / -1; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero-art { display: none; }
}
@media (max-width: 900px) {
  .steps { grid-auto-flow: row; grid-template-columns: 1fr; gap: var(--s-6); }
  .steps::before { left: 20px; right: auto; top: 22px; bottom: 22px; width: 4px; height: auto; background: linear-gradient(180deg, var(--blue-ink), var(--sky)); }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 0 var(--s-4); align-items: start; }
  .step-num { grid-row: 1 / span 2; margin: 0; }
  .commit { grid-template-columns: 1fr; }
  .commit-lead { position: static; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-list { position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); transform: translateY(-130%); visibility: hidden; transition: transform .3s var(--ease-out), visibility .3s; }
  .nav-list.open { transform: none; visibility: visible; }
  /* Petits écrans : le menu déplié défile au lieu de cacher « Devis gratuit » sous le bas de l'écran */
  .nav-list { max-height: calc(100vh - 118px); max-height: calc(100dvh - 118px); overflow-y: auto; }
  .nav-list a { padding: 14px 4px; }
  .nav-list a::after { display: none; }
  .nav-list .nav-cta { text-align: center; margin: 8px 0 0; }
  .has-sub > a::before { display: none; }
  .nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; margin: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav-list .sub-menu a { font-size: 1.05rem; text-transform: none; letter-spacing: .02em; font-weight: 500; }
  .topbar-tag { display: none; }
  .topbar-inner { justify-content: center; }
  .section-head { grid-template-columns: 1fr; }
  .split, .zone-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .duo, .doc-figures { grid-template-columns: 1fr; }
  .case-list > div { grid-template-columns: 1fr; gap: 6px; }
  .call-fab { display: inline-flex; }
  .footer-bottom { padding-bottom: 84px; }
  .brand-logo { height: 48px; }
  .brand-text--solo small { display: none; }
  .check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide { flex-direction: column; align-items: flex-start; }
  .zone-list, .local-links, .coupe-legend { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; }
  .topbar-links li:nth-child(2) { display: none; }
  .commit-list li { grid-template-columns: 44px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Compléments v3 */
.coupe { border-radius: 10px; overflow: hidden; }
.coupe .part[data-part] { cursor: pointer; }
.local-band .btn-primary, .section-dark .btn-primary, .card--feature .btn-primary { background: #fff; color: var(--navy); }
.local-band .btn-primary:hover, .section-dark .btn-primary:hover, .card--feature .btn-primary:hover { background: var(--sky-200); color: var(--navy); }
.card--feature .btn { width: 100%; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.local-links { grid-template-columns: 1fr; }
@media (min-width: 861px) { .local-band .split { grid-template-columns: 1fr 1fr; } }

.page-hero-inner > * { max-width: 860px; }
.split { align-items: start; }
.local-band .split, #apropos .split, .split:has(.illus) { align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); }
@media (min-width: 1041px) { .page-hero-inner > * { max-width: 720px; } .page-hero-art { width: min(340px, 26vw); } }

/* Valeurs (page À propos) : même grammaire que les engagements de l'accueil */
.atouts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--s-6); }
.atout { padding: var(--s-5) 0; border-top: 1px solid rgba(255,255,255,.2); }
.atout-icon { width: 40px; height: 40px; color: var(--sky); margin-bottom: var(--s-3); }
.atout-icon svg { width: 100%; height: 100%; }
.atout h3 { color: #fff; font-size: 1.9rem; margin-bottom: 6px; }
.atout p { margin: 0; color: rgba(255,255,255,.82); }
.local-band h2 { margin-bottom: var(--s-4); }

/* ---- Correctifs mobile v3.1 ---- */
.media-photo img, .gallery img { height: auto; }
@media (max-width: 900px) {
  .steps::before { display: none; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: calc(-1 * var(--s-6)); width: 4px; background: linear-gradient(180deg, var(--blue-ink), var(--sky)); }
}
@media (max-width: 860px) {
  .card { padding: 24px; }
  .contact-form { padding: 24px 20px; }
  .split--keep .split-media { order: 0; }
  .commit-lead { margin-bottom: var(--s-2); }
}
@media (max-width: 640px) {
  .footer-grid > :nth-child(n+4) { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 100%; }
  .mk circle { r: 20px; }
  .mk text { font-size: 22px; }
  .section-head { margin-bottom: var(--s-6); }
}
