/* ==========================================================================
   BATIELEC — feuille de style
   Palette reprise du logo : bleu marine, orange, bleu électrique.
   L'orange (chaud) et le bleu (froid) forment le fil conducteur « thermo ».
   ========================================================================== */

/* Polices hébergées localement (Archivo variable + IBM Plex Mono), sous-ensemble latin */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-var.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/plexmono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/plexmono-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/plexmono-600.woff2) format('woff2'); }

:root {
    --navy: #0B2F63;
    --navy-900: #071D3E;
    --navy-800: #0D2A55;
    --orange: #F28A1E;
    --orange-600: #D9730A;
    --blue: #1A78C8;
    --blue-300: #7DB8EA;

    --sand: #F4EEE3;
    --paper: #FBF8F2;
    --stone: #E8DFD0;
    --ink: #0E1B2E;
    --muted: #556074;
    --line: rgba(11, 47, 99, 0.13);
    --line-strong: rgba(11, 47, 99, 0.28);

    /* Couleur d'accent unie (traits, barres, chiffres) */
    --thermo: linear-gradient(var(--orange), var(--orange));

    --font-display: 'Archivo', 'Arial Narrow', sans-serif;
    --font-body: 'Archivo', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 0 rgba(11, 47, 99, .06), 0 18px 40px -22px rgba(7, 29, 62, .35);
    --shadow-lg: 0 30px 70px -30px rgba(7, 29, 62, .55);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(72px, 10vw, 136px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--orange); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typographie ---------- */
.display, h1, h2, h3 {
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--navy-900);
}

h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.15; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: .78rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--navy);
}
.eyebrow::before {
    content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--thermo);
}
.on-dark .eyebrow { color: var(--blue-300); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: rgba(255, 255, 255, .72); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split {
    grid-template-columns: 1.1fr .9fr; align-items: end; gap: 24px 64px;
}
.section-head--split .lead { justify-self: end; }

.mono { font-family: var(--font-mono); }
.hl { color: var(--orange); }
.hl-blue { color: var(--blue); }

/* ---------- Boutons ---------- */
.btn {
    --bg: var(--navy); --fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 24px;
    border-radius: 999px; border: 2px solid transparent;
    background: var(--bg); color: var(--fg);
    font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
    cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(7, 29, 62, .55); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

.btn--orange { --bg: var(--orange); --fg: var(--navy-900); }
.btn--orange:hover { --bg: #FF9A2E; }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { --bg: #fff; --fg: var(--navy-900); }
.btn--ghost-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--navy);
    border-bottom: 2px solid transparent; padding-bottom: 2px;
    transition: border-color .2s, gap .25s var(--ease);
}
.link-arrow:hover { border-color: var(--orange); gap: 12px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 248, 242, .82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(251, 248, 242, .94); }

.topbar {
    background: var(--navy-900); color: rgba(255, 255, 255, .78);
    font-size: .82rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-items { display: flex; gap: 22px; align-items: center; }
.topbar-items span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { width: 15px; height: 15px; color: var(--orange); }

.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand img { height: 46px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul a {
    position: relative; display: block; padding: 10px 14px;
    font-weight: 600; font-size: .98rem; color: var(--navy-900);
    border-radius: 999px; transition: background-color .2s;
}
.main-nav ul a:hover { background: rgba(11, 47, 99, .06); }
.main-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
    border-radius: 3px; background: var(--orange);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; color: var(--navy-900); padding: 8px 10px;
}
.nav-phone .icon-wrap {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(242, 138, 30, .14); color: var(--orange-600);
}
.nav-phone small { display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }

.menu-toggle {
    display: none; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
    place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px;
    transition: transform .3s var(--ease), background-color .2s;
    position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (accueil) ---------- */
.hero {
    position: relative;
    padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(26, 120, 200, .10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(242, 138, 30, .12), transparent 60%),
        var(--paper);
    overflow: hidden;
}
.hero::before { /* trame technique */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 0%, transparent 75%);
    opacity: .55;
}
.hero-grid {
    position: relative;
    display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 8px; border-radius: 999px; line-height: 1.3;
    background: #fff; border: 1px solid var(--line);
    font-size: .88rem; font-weight: 600; color: var(--navy);
    box-shadow: var(--shadow);
}
.hero-kicker .dot {
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy); color: var(--orange); flex: none;
}
.hero-kicker .dot .icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }

.hero h1 {
    margin-top: 26px;
    font-size: clamp(3rem, 7.6vw, 6.2rem);
    font-stretch: 106%;
    font-weight: 900;
    line-height: .92;
    letter-spacing: -0.045em;
}
.hero h1 .line { display: block; }
.hero h1 .w-courant { color: var(--navy-900); }
.hero h1 .w-frais { color: var(--blue); }
.hero h1 .w-neuf { color: var(--orange); }
.hero h1 .seo {
    display: block; margin-top: 22px;
    font-family: var(--font-body); font-stretch: 100%;
    font-size: clamp(1.05rem, 1.6vw, 1.28rem); font-weight: 500;
    letter-spacing: -.005em; line-height: 1.45; color: var(--muted);
    max-width: 34ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-proof {
    display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px;
    margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-proof li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--navy-900); }
.hero-proof .icon { color: var(--blue); width: 22px; height: 22px; }

/* Composition photo */
.hero-visual { position: relative; min-height: 560px; }
.hero-photo {
    position: absolute; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow-lg);
    background: var(--stone);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--main { inset: 0 0 64px 64px; }
.hero-photo--small {
    width: 44%; aspect-ratio: 4 / 5; left: 0; bottom: 0;
    border: 6px solid var(--paper); border-radius: 22px;
}
.hero-card {
    position: absolute; right: -10px; bottom: 28px; z-index: 2;
    width: min(270px, 64%);
    background: #fff; border-radius: 16px; padding: 16px 18px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-card .mono { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-card strong { display: block; font-size: 1.02rem; color: var(--navy-900); line-height: 1.25; margin: 6px 0 10px; }
.hero-card .bar { height: 6px; border-radius: 6px; background: var(--stone); overflow: hidden; }
.hero-card .bar i { display: block; height: 100%; width: 100%; background: var(--thermo); transform-origin: left; animation: fill 2.2s .6s var(--ease) both; }
.hero-card .status { display: flex; justify-content: space-between; margin-top: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hero-card .status b { color: #1E8E4E; }

.stamp {
    position: absolute; top: -18px; right: 18px; z-index: 3;
    width: 128px; height: 128px; border-radius: 50%;
    background: var(--orange); color: var(--navy-900);
    display: grid; place-items: center;
    box-shadow: 0 14px 30px -12px rgba(217, 115, 10, .7);
}
.stamp svg.ring { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 22s linear infinite; }
.stamp svg.ring text { font-family: var(--font-mono); font-size: 10.6px; font-weight: 600; letter-spacing: 2.3px; fill: var(--navy-900); }
.stamp .icon { width: 34px; height: 34px; fill: var(--navy-900); stroke: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Entrée de page */
.rise { animation: rise .9s var(--ease) both; }
.rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .15s; } .rise-3 { animation-delay: .25s; }
.rise-4 { animation-delay: .35s; } .rise-5 { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau de confiance ---------- */
.trust {
    background: var(--navy-900); color: #fff;
    border-top: 4px solid transparent;
    border-image: var(--thermo) 1;
}
.trust ul {
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust li {
    display: flex; align-items: center; gap: 14px;
    padding: 26px 22px; border-left: 1px solid rgba(255, 255, 255, .1);
}
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust .icon { width: 30px; height: 30px; color: var(--orange); flex: none; }
.trust strong { display: block; font-size: 1rem; line-height: 1.25; }
.trust span { font-size: .86rem; color: rgba(255, 255, 255, .62); line-height: 1.35; display: block; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--navy-900); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Services (bento) ---------- */
.bento {
    display: grid; gap: 18px;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, auto);
}
.svc {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 300px; padding: 26px;
    border-radius: var(--radius); overflow: hidden;
    background: var(--navy-900); color: #fff;
    box-shadow: var(--shadow);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc img {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.svc:hover img { transform: scale(1.06); }
.svc::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(7, 29, 62, .05) 20%, rgba(7, 29, 62, .88) 100%);
}
.svc .num {
    position: absolute; top: 20px; left: 22px;
    font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em;
    padding: 6px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
}
.svc h3 { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.svc p { margin-top: 8px; color: rgba(255, 255, 255, .8); font-size: .97rem; max-width: 42ch; }
.svc .go {
    position: absolute; top: 18px; right: 18px;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: var(--navy-900);
    transition: transform .35s var(--ease), background-color .3s;
}
.svc:hover .go { transform: rotate(-45deg); background: var(--orange); }
.svc--xl { grid-column: span 7; grid-row: span 2; min-height: 520px; }
.svc--l { grid-column: span 5; }
.svc--m { grid-column: span 4; }
.svc--m h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
.svc--plain {
    background: var(--navy); justify-content: space-between;
}
.svc--plain::before { background: radial-gradient(500px 260px at 100% 0%, rgba(26, 120, 200, .55), transparent 70%); }
.svc--orange { background: var(--orange); color: var(--navy-900); }
.svc--orange::before { background: radial-gradient(420px 240px at 100% 0%, rgba(255, 255, 255, .35), transparent 70%); }
.svc--orange h3, .svc--orange p { color: var(--navy-900); }
.svc--orange .num { background: rgba(7, 29, 62, .1); border-color: rgba(7, 29, 62, .2); }
.svc--orange .go { background: var(--navy-900); color: #fff; }
.svc .big-icon { width: 64px; height: 64px; stroke-width: 1.5; margin-top: 46px; opacity: .95; }

/* ---------- Engagements (sombre) ---------- */
.engage-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.figures { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .14); }
.figure { padding: 28px 0 30px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.figure:nth-child(odd) { padding-right: 24px; border-right: 1px solid rgba(255, 255, 255, .14); }
.figure:nth-child(even) { padding-left: 28px; }
.figure .val {
    font-family: var(--font-display); font-stretch: 120%; font-weight: 900;
    font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em;
    background: var(--thermo); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.figure p { margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: .95rem; }

.promises { display: grid; gap: 14px; margin-top: 36px; }
.promise {
    display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
    padding: 20px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
}
.promise .icon-wrap {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(242, 138, 30, .14); color: var(--orange);
}
.promise h3 { font-size: 1.08rem; font-stretch: 105%; }
.promise p { color: rgba(255, 255, 255, .68); font-size: .94rem; margin-top: 4px; }

/* ---------- Avant / Après ---------- */
.ba {
    --pos: 50%;
    position: relative; overflow: hidden; border-radius: var(--radius);
    aspect-ratio: 3 / 4; background: var(--stone);
    user-select: none; -webkit-user-select: none; touch-action: pan-y;
    box-shadow: var(--shadow-lg);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba .ba-handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 2;
}
.ba .ba-handle::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff;
    box-shadow: 0 0 0 1px rgba(7, 29, 62, .15);
}
.ba .ba-knob {
    position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
    width: 56px; height: 56px; border-radius: 50%;
    background: #fff; color: var(--navy-900);
    display: grid; place-items: center; box-shadow: 0 10px 26px rgba(7, 29, 62, .35);
}
.ba .ba-knob .icon { width: 26px; height: 26px; }
.ba { cursor: ew-resize; }
.ba.is-dragging { cursor: grabbing; }
.ba input[type="range"] {
    position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
    opacity: 0; margin: 0; pointer-events: none;
}
.ba input[type="range"]:focus-visible + .ba-handle .ba-knob { outline: 3px solid var(--orange); outline-offset: 3px; }
.ba-tag {
    position: absolute; top: 16px; z-index: 2;
    font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    padding: 7px 12px; border-radius: 999px;
}
.ba-tag--before { left: 16px; background: rgba(7, 29, 62, .78); color: #fff; }
.ba-tag--after { right: 16px; background: var(--orange); color: var(--navy-900); }

.ba-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ba-tabs { display: grid; gap: 10px; }
.ba-tab {
    display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center;
    width: 100%; text-align: left; cursor: pointer;
    padding: 12px; border-radius: 14px;
    background: transparent; border: 1px solid var(--line);
    transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.ba-tab:hover { border-color: var(--line-strong); transform: translateX(4px); }
.ba-tab[aria-selected="true"] { background: #fff; border-color: var(--navy); box-shadow: var(--shadow); }
.ba-tab img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.ba-tab strong { display: block; color: var(--navy-900); line-height: 1.25; }
.ba-tab span { font-size: .86rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.ba-tab span .icon { width: 14px; height: 14px; }

/* ---------- Processus ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
.steps::before {
    content: ""; position: absolute; left: 0; right: 0; top: 31px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.step { position: relative; padding-right: 12px; }
.step .bubble {
    position: relative; width: 64px; height: 64px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--paper); border: 2px solid var(--navy); color: var(--navy);
}
.section--sand .step .bubble { background: var(--sand); }
.section--cta { padding: clamp(24px, 4vw, 56px) 0 0; }
.step .bubble .icon { width: 26px; height: 26px; }
.step .bubble::after {
    counter-increment: step; content: "0" counter(step);
    position: absolute; top: -8px; right: -12px;
    font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
    background: var(--orange); color: var(--navy-900); padding: 3px 7px; border-radius: 999px;
}
.step h3 { margin-top: 22px; font-size: 1.2rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: .96rem; }

/* ---------- Zone d'intervention ---------- */
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.radar {
    position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #12407E 0%, var(--navy-900) 70%);
    box-shadow: var(--shadow-lg);
}
.radar svg { width: 100%; height: 100%; }
.radar .ring { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.radar .ring--outer { stroke: rgba(242, 138, 30, .55); stroke-dasharray: 4 6; }
.radar .axis { stroke: rgba(255, 255, 255, .08); }
.radar .ring-label { font-family: var(--font-mono); font-size: 9px; fill: rgba(255, 255, 255, .45); letter-spacing: 1px; }
.radar .town circle { fill: var(--blue-300); }
.radar .town text { font-family: var(--font-body); font-size: 11px; font-weight: 600; fill: rgba(255, 255, 255, .88); }
.radar .town--minor circle { fill: rgba(255, 255, 255, .45); }
.radar .home circle.core { fill: var(--orange); }
.radar .home circle.pulse { fill: none; stroke: var(--orange); stroke-width: 2; transform-origin: center; transform-box: fill-box; animation: pulse 2.6s ease-out infinite; }
.radar .home text { font-family: var(--font-display); font-weight: 800; font-size: 13px; fill: #fff; }
.radar .sweep { transform-origin: 250px 250px; animation: spin 9s linear infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

.towns { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.towns-group { display: grid; grid-template-columns: 190px 1fr; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.towns-group p { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.towns-group ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.towns-group li { display: flex; align-items: baseline; gap: 10px; font-weight: 600; color: var(--navy-900); }
.towns-group li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); transform: translateY(-2px); }
.towns-group li.main { color: var(--orange-600); }
.towns-group li.main small { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .towns-group { grid-template-columns: 1fr; } }

/* ---------- Avis ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
    display: flex; flex-direction: column; gap: 18px;
    padding: 28px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stars { display: flex; gap: 3px; color: var(--orange); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.review blockquote { font-size: 1.04rem; line-height: 1.6; color: var(--ink); flex: 1; }
.review footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--sand); color: var(--navy); font-weight: 800; font-stretch: 115%;
}
.review footer strong { display: block; color: var(--navy-900); line-height: 1.2; }
.review footer span { font-size: .86rem; color: var(--muted); }
.review .tag { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 140px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 22px 0; cursor: pointer; list-style: none;
    font-weight: 700; font-size: 1.1rem; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
    flex: none; width: 36px; height: 36px; border-radius: 50%; position: relative;
    border: 1px solid var(--line-strong); transition: background-color .25s, transform .35s var(--ease);
}
.faq summary .plus::before, .faq summary .plus::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy-900);
    transform: translate(-50%, -50%); border-radius: 2px;
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); }
.faq details p { padding: 0 56px 24px 0; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-band {
    position: relative; overflow: hidden;
    border-radius: 30px; padding: clamp(40px, 6vw, 80px);
    background: var(--navy); color: #fff;
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center;
}
.cta-band::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 300px at 0% 100%, rgba(242, 138, 30, .35), transparent 70%),
        radial-gradient(600px 300px at 100% 0%, rgba(26, 120, 200, .55), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band .eyebrow, .ba-more .eyebrow, .side-card--dark .eyebrow { color: var(--blue-300); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-band p { color: rgba(255, 255, 255, .75); margin-top: 14px; max-width: 52ch; }
.cta-band .actions { display: grid; gap: 12px; justify-items: stretch; }
.cta-band .bolt-bg {
    position: absolute; right: -40px; bottom: -60px; width: 320px; height: 320px;
    fill: rgba(255, 255, 255, .05); stroke: none; pointer-events: none;
}

/* ---------- En-tête de page intérieure ---------- */
.page-hero {
    position: relative; overflow: hidden;
    padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px);
    background: var(--sand);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; opacity: .5;
    mask-image: linear-gradient(90deg, transparent, #000 60%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.8rem, 7.4vw, 6rem); font-weight: 900; font-stretch: 118%; letter-spacing: -.045em; line-height: .95; margin-top: 18px; }
.page-hero .lead { margin-top: 22px; }
.crumbs { display: flex; gap: 8px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.page-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy-900);
    transition: border-color .2s, background-color .2s;
}
a.chip:hover { border-color: var(--navy); }
.chip .icon { width: 17px; height: 17px; color: var(--blue); }

/* ---------- Page services ---------- */
.svc-nav { position: sticky; top: 78px; z-index: 50; background: rgba(251, 248, 242, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.svc-nav ul { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: background-color .2s, color .2s; }
.svc-nav a:hover, .svc-nav a.is-active { background: var(--navy); color: #fff; }

.svc-detail {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
    padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line);
    scroll-margin-top: 140px;
}
.svc-detail:last-child { border-bottom: 0; }
.svc-detail:nth-child(even) .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media .main-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: var(--stone); }
.svc-media .main-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .badge-num {
    position: absolute; top: -22px; left: -14px;
    font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 5rem; line-height: 1;
    color: var(--paper); -webkit-text-stroke: 2px var(--navy);
}
.svc-media .float-img {
    position: absolute; right: -18px; bottom: -26px; width: 42%; aspect-ratio: 1;
    border-radius: 18px; overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow-lg);
}
.svc-media .float-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .icon-plate {
    position: absolute; right: -14px; bottom: -22px;
    width: 110px; height: 110px; border-radius: 24px; display: grid; place-items: center;
    background: var(--orange); color: var(--navy-900); box-shadow: var(--shadow-lg);
}
.svc-media .icon-plate .icon { width: 50px; height: 50px; stroke-width: 1.6; }
.svc-body h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 16px; }
.svc-body .lead { margin-top: 16px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 28px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy-900); font-size: .97rem; }
.checklist li .icon { color: #fff; background: var(--blue); border-radius: 50%; padding: 4px; width: 22px; height: 22px; margin-top: 1px; stroke-width: 3; }
.svc-body .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.svc-body .meta span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 11px; border-radius: 6px; background: var(--sand); color: var(--navy); }
.svc-body .actions { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; margin-top: 32px; }

.note-box {
    display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
    padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange);
}
.note-box .icon { width: 28px; height: 28px; color: var(--orange-600); }
.note-box p { color: var(--muted); }
.note-box strong { color: var(--navy-900); }

/* ---------- Réalisations ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.ba-item figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.ba-item figcaption strong { font-size: 1.15rem; color: var(--navy-900); font-stretch: 108%; }
.ba-item figcaption span { font-size: .88rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.ba-item figcaption span .icon { width: 15px; height: 15px; color: var(--orange-600); }
.ba-item p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.ba-more {
    grid-column: span 2; align-self: start;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    min-height: 360px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius);
    background: var(--navy-900); color: #fff; position: relative; overflow: hidden;
}
.ba-more::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 280px at 100% 0%, rgba(26, 120, 200, .5), transparent 70%), radial-gradient(400px 240px at 0% 100%, rgba(242, 138, 30, .3), transparent 70%); }
.ba-more > * { position: relative; }
.ba-more h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 14px; }
.ba-more p { color: rgba(255, 255, 255, .72); margin-top: 10px; max-width: 44ch; }
.ba-more .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ba-layout .ba { aspect-ratio: 4 / 5; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
    padding: 10px 18px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line-strong); background: transparent; font-weight: 600; color: var(--navy-900);
    transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter sup { font-family: var(--font-mono); font-size: .7rem; margin-left: 4px; opacity: .7; }

.gallery { columns: 4 240px; column-gap: 18px; }
.gallery .shot {
    break-inside: avoid; margin-bottom: 18px; position: relative; display: block; width: 100%;
    border: 0; padding: 0; cursor: zoom-in; background: var(--stone);
    border-radius: 16px; overflow: hidden; text-align: left;
}
.gallery .shot img { width: 100%; transition: transform .8s var(--ease); }
.gallery .shot:hover img { transform: scale(1.04); }
.gallery .shot .cap {
    position: absolute; left: 10px; right: 10px; bottom: 10px;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-weight: 700; font-size: .92rem; color: var(--navy-900);
    transform: translateY(8px); opacity: 0; transition: opacity .3s, transform .3s var(--ease);
}
.gallery .shot .cap small { font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.gallery .shot:hover .cap, .gallery .shot:focus-visible .cap { opacity: 1; transform: none; }
.gallery .shot[hidden] { display: none; }

.lightbox {
    border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
    width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(7, 29, 62, .92); backdrop-filter: blur(6px); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 14px; object-fit: contain; }
.lightbox .lb-cap { margin-top: 14px; color: #fff; text-align: center; font-weight: 600; }
.lightbox .lb-btn {
    position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff;
    transition: background-color .2s;
}
.lightbox .lb-btn:hover { background: var(--orange); color: var(--navy-900); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact / devis ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 4vw, 48px); align-items: start; }

.quote {
    scroll-margin-top: 96px;
    background: #fff; border-radius: 26px; border: 1px solid var(--line);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.quote-head { padding: 26px 30px 20px; border-bottom: 1px solid var(--line); }
.quote-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.quote-head p { color: var(--muted); margin-top: 6px; font-size: .96rem; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.progress li { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.progress li::before {
    content: ""; display: block; height: 5px; border-radius: 5px; background: var(--stone); margin-bottom: 8px;
    transition: background .4s var(--ease);
}
.progress li.is-done::before, .progress li.is-current::before { background: var(--thermo); }
.progress li.is-current { color: var(--navy-900); font-weight: 600; }

.quote form { padding: 28px 30px 30px; }
.qstep { border: 0; display: none; }
.qstep.is-active { display: block; animation: rise .5s var(--ease) both; }
.qstep legend { font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 1.3rem; color: var(--navy-900); margin-bottom: 18px; letter-spacing: -.015em; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%;
    padding: 16px; border-radius: 14px; cursor: pointer;
    border: 1.5px solid var(--line-strong); background: var(--paper);
    font-weight: 700; color: var(--navy-900); line-height: 1.25; font-size: .96rem;
    transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.choice label .icon { width: 26px; height: 26px; color: var(--blue); }
.choice label:hover { border-color: var(--navy); transform: translateY(-2px); }
.choice input:checked + label { border-color: var(--navy); background: #EEF4FB; box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:checked + label .icon { color: var(--orange-600); }
.choice input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.choices--compact { grid-template-columns: repeat(4, 1fr); }
.choices--compact label { padding: 12px 14px; font-size: .92rem; }

.field-group { margin-top: 22px; }
.field-group > .label { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; font-size: .95rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    border: 1.5px solid var(--line-strong); background: var(--paper);
    font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(26, 120, 200, .15); }
.field .error { border-color: #C73A2B; background: #FFF6F4; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.consent a { color: var(--navy); text-decoration: underline; }
.consent.error { color: #C73A2B; }
.form-msg { margin-top: 14px; font-size: .9rem; font-weight: 600; color: #C73A2B; min-height: 1.2em; }

.qnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.qnav .btn[hidden] { display: none; }
.qnav .spacer { flex: 1; }

.form-done { padding: 48px 30px; text-align: center; }
.form-done .ok { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #E7F6EC; color: #1E8E4E; }
.form-done .ok .icon { width: 36px; height: 36px; stroke-width: 2.5; }
.form-done h3 { font-size: 1.7rem; }
.form-done p { color: var(--muted); margin: 10px auto 24px; max-width: 42ch; }
.form-done--error .ok { background: #FFF0EC; color: #C73A2B; }

.side-stack { display: grid; gap: 16px; position: sticky; top: 104px; }
.side-card { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.side-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.side-card--dark { background: var(--navy-900); color: #fff; border: 0; }
.side-card--dark h3 { color: #fff; }
.side-card--dark p { color: rgba(255, 255, 255, .7); font-size: .94rem; }
.big-phone { display: block; margin: 12px 0 18px; font-family: var(--font-display); font-stretch: 115%; font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2.05rem); letter-spacing: -.02em; color: #fff; }
.big-phone:hover { color: var(--orange); }
.contact-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--navy-900); font-weight: 600; font-size: .96rem; word-break: break-word; }
.contact-line:first-of-type { border-top: 0; }
.contact-line .icon { color: var(--blue); }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.hours li:first-child { border-top: 0; }
.hours li span:last-child { font-weight: 700; color: var(--navy-900); }
.hours li.closed span:last-child { color: var(--muted); font-weight: 500; }
.hours li.today { color: var(--navy-900); }
.hours li.today span:first-child::after { content: " · aujourd'hui"; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600); }

.map-frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); line-height: 0; }
.map-frame iframe { width: 100%; height: 440px; border: 0; filter: saturate(.85); }

/* ---------- Pages légales ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: 110px; display: grid; gap: 2px; }
.legal-toc a { padding: 8px 12px; border-radius: 8px; font-size: .92rem; color: var(--muted); border-left: 2px solid var(--line); }
.legal-toc a:hover { color: var(--navy-900); border-color: var(--orange); background: rgba(11, 47, 99, .04); }
.legal-body section { padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.legal-body section:first-child { padding-top: 0; }
.legal-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 14px; }
.legal-body p, .legal-body li { color: #374255; margin-bottom: 10px; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body strong { color: var(--navy-900); }
.legal-body a { color: var(--blue); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 80px 0 0; margin-top: var(--section); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--thermo); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: .95rem; max-width: 34ch; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer-badges span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.site-footer h4 { font-family: var(--font-mono); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; font-size: .96rem; }
.site-footer a:hover { color: #fff; }
.site-footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .f-contact .icon { margin-top: 4px; color: var(--blue-300); }
.site-footer .f-hours li { display: flex; justify-content: space-between; gap: 12px; }
.site-footer .f-hours li span:last-child { color: #fff; font-weight: 600; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 60px; padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .86rem;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-word {
    font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
    font-size: clamp(3.4rem, 15.5vw, 15rem); line-height: .78; letter-spacing: -.05em;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
    text-align: center; user-select: none; overflow: hidden; padding-top: 10px; white-space: nowrap;
}

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Cookies ---------- */
.cookie {
    position: fixed; left: 16px; bottom: 16px; z-index: 150;
    width: min(420px, calc(100% - 32px));
    padding: 20px; border-radius: 18px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(20px); opacity: 0; visibility: hidden;
    transition: transform .4s var(--ease), opacity .4s, visibility .4s;
}
.cookie.show { transform: none; opacity: 1; visibility: visible; }
.cookie strong { display: block; color: var(--navy-900); margin-bottom: 6px; }
.cookie p { font-size: .88rem; color: var(--muted); }
.cookie p a { color: var(--navy); text-decoration: underline; }
.cookie .row { display: flex; gap: 8px; margin-top: 14px; }
.cookie .row .btn { flex: 1; min-height: 42px; font-size: .9rem; padding: 0 14px; }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-phone small, .topbar-items .hide-md { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 480px; max-width: 640px; }
    .trust ul { grid-template-columns: repeat(2, 1fr); }
    .trust li:nth-child(3) { border-left: 0; padding-left: 0; }
    .trust li { border-top: 1px solid rgba(255, 255, 255, .1); }
    .trust li:nth-child(-n+2) { border-top: 0; }
    .svc--xl { grid-column: span 12; min-height: 420px; grid-row: auto; }
    .svc--l { grid-column: span 6; }
    .svc--m { grid-column: span 6; }
    .engage-grid, .zone-grid, .faq-grid, .ba-layout { grid-template-columns: 1fr; }
    .faq-grid .section-head { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .side-stack { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .legal { grid-template-columns: 1fr; }
    .legal-toc { position: static; display: none; }
}

@media (max-width: 900px) {
    .topbar { display: none; }
    /* backdrop-filter créerait un bloc conteneur pour le menu en position fixe */
    .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
    .menu-toggle { display: grid; }
    .nav-bar { min-height: 68px; }
    .brand img { height: 40px; }
    .nav-actions .btn, .nav-phone { display: none; }
    .main-nav {
        position: fixed; inset: 68px 0 0 0; z-index: 99;
        background: var(--paper);
        padding: 24px var(--gutter) 120px;
        opacity: 0; transform: translateY(-12px); visibility: hidden;
        transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .4s;
        overflow-y: auto;
    }
    .menu-open .main-nav { opacity: 1; transform: none; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav ul a {
        padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--line);
        font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: 1.9rem; letter-spacing: -.02em;
    }
    .main-nav a[aria-current="page"] { color: var(--orange-600); }
    .main-nav a[aria-current="page"]::after { display: none; }
    .main-nav .mobile-extra { display: grid; gap: 12px; margin-top: 28px; }
    .menu-open { overflow: hidden; }
    .menu-open .mobile-bar { transform: translateY(140%); }

    .section-head--split { grid-template-columns: 1fr; }
    .section-head--split .lead { justify-self: start; }
    .steps { grid-template-columns: 1fr 1fr; gap: 36px 18px; }
    .steps::before { display: none; }
    .reviews { grid-template-columns: 1fr; }
    .cta-band { grid-template-columns: 1fr; }
    .svc-detail { grid-template-columns: 1fr; }
    .svc-detail:nth-child(even) .svc-media { order: 0; }
    .svc-media { max-width: 560px; }
    .svc-nav { top: 68px; }
    .ba-grid { grid-template-columns: 1fr 1fr; }
    .choices { grid-template-columns: repeat(2, 1fr); }
    .choices--compact { grid-template-columns: repeat(2, 1fr); }

    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
        position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 120;
        padding: 8px; border-radius: 20px;
        background: rgba(7, 29, 62, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 20px 40px -12px rgba(7, 29, 62, .6);
        transition: transform .4s var(--ease);
    }
    .mobile-bar.is-hidden { transform: translateY(140%); }
    .mobile-bar .btn { min-height: 50px; padding: 0 12px; font-size: .97rem; }
    body { padding-bottom: 84px; }
    .cookie { bottom: 96px; }
}

@media (min-width: 901px) {
    .main-nav .mobile-extra { display: none; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero h1 { font-size: clamp(2.7rem, 13.5vw, 4rem); }
    .hero-proof { grid-template-columns: 1fr; gap: 12px; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .hero-visual { min-height: 400px; }
    .hero-photo--main { inset: 0 0 50px 34px; }
    .hero-photo--small { width: 46%; }
    .hero-card { right: 0; bottom: 14px; width: 62%; padding: 12px 14px; }
    .hero-card strong { font-size: .92rem; }
    .stamp { width: 96px; height: 96px; top: -14px; right: 8px; }
    .stamp svg.ring text { font-size: 10.2px; }
    .stamp .icon { width: 26px; height: 26px; }
    .trust ul { grid-template-columns: 1fr; }
    .trust li, .trust li:nth-child(3) { border-left: 0; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
    .trust li:first-child { border-top: 0; }
    .trust li:nth-child(2) { border-top: 1px solid rgba(255, 255, 255, .1); }
    .bento { grid-template-columns: 1fr; }
    .svc--xl, .svc--l, .svc--m { grid-column: auto; min-height: 300px; }
    .svc--xl { min-height: 380px; }
    .figures { grid-template-columns: 1fr 1fr; }
    .figure:nth-child(odd) { padding-right: 14px; }
    .figure:nth-child(even) { padding-left: 16px; }
    .steps { grid-template-columns: 1fr; }
    .checklist { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .quote-head, .quote form { padding-left: 20px; padding-right: 20px; }
    .fields { grid-template-columns: 1fr; }
    .choices, .choices--compact { grid-template-columns: 1fr 1fr; gap: 8px; }
    .choice label { padding: 13px; font-size: .9rem; }
    .faq details p { padding-right: 0; }
    .ba-tab { grid-template-columns: 52px 1fr; }
    .ba-tab img { width: 52px; height: 52px; }
    .svc-media .badge-num { font-size: 3.6rem; left: -4px; }
    .svc-media .float-img { right: -6px; }
    .svc-media .icon-plate { right: -4px; width: 84px; height: 84px; }
    .lightbox-inner { padding: 72px 12px; }
    .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; transform: none; }
    .map-frame iframe { height: 340px; }
    .ba-item figcaption { flex-direction: column; gap: 4px; }
    .ba-grid { grid-template-columns: 1fr; }
    .ba-more { grid-column: auto; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Pages métiers, À propos, FAQ
   ========================================================================== */
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero-photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; box-shadow: var(--shadow-lg); background: var(--stone); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo .tag {
    position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94);
    font-weight: 700; font-size: .88rem; color: var(--navy-900);
}
.page-hero-photo .tag .icon { width: 16px; height: 16px; color: var(--orange-600); }
.page-hero .hero-ctas { margin-top: 28px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose > * + * { margin-top: 18px; }
.prose p { color: #374255; font-size: 1.06rem; max-width: 68ch; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 8px; }
.prose strong { color: var(--navy-900); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: sticky; top: 120px; }
.photo-pair figure { border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--stone); box-shadow: var(--shadow); }
.photo-pair figure:nth-child(2) { margin-top: 48px; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }

.presta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.presta {
    padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.presta:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.presta .icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(26, 120, 200, .1); color: var(--blue); }
.presta h3 { margin-top: 18px; font-size: 1.2rem; font-stretch: 106%; }
.presta p { margin-top: 8px; color: var(--muted); font-size: .97rem; }

.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.facts { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; border-top: 1px solid var(--line-strong); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-right: 16px; padding-top: 17px; }
.facts dd { font-weight: 600; color: var(--navy-900); }
.facts dd a { color: var(--blue); }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a {
    display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
    padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    font-weight: 700; color: var(--navy-900); transition: border-color .2s, transform .25s var(--ease);
}
.related a:hover { border-color: var(--navy); transform: translateY(-2px); }
.related .icon-wrap { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--navy); }
.related small { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px; }
.updated { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.map-consent {
    display: grid; place-items: center; text-align: center; gap: 14px; height: 440px; padding: 24px;
    background: radial-gradient(circle at 50% 40%, #12407E, var(--navy-900) 70%); color: #fff; line-height: 1.5;
}
.map-consent p { max-width: 48ch; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.map-consent .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.form-legal { margin-top: 14px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.form-legal a { color: var(--navy); text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.link-btn:hover { color: #fff; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page .code { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(6rem, 22vw, 14rem); line-height: .9; background: var(--thermo); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 1100px) {
    .presta-grid, .related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .page-hero-grid, .split { grid-template-columns: 1fr; }
    .page-hero-photo { max-width: 520px; aspect-ratio: 4 / 3; }
    .photo-pair { position: static; max-width: 560px; }
    .tips { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .presta-grid, .related { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; }
    .facts dt { border-bottom: 0; padding-bottom: 0; }
    .map-consent { height: 360px; }
}
.page-hero-grid h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }

/* Engagements : chiffres et promesses en grilles égales */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.stat { padding: 32px 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .val { font-family: var(--font-display); font-stretch: 120%; font-weight: 900; font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.04em; color: var(--orange); }
.stat p { margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.promises--row { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.promises--row .promise { height: 100%; }

/* Avant / après de l'accueil : fondu lors du changement de projet */
#ba-stage .ba img { transition: opacity .35s ease; }
#ba-stage .ba.is-loading img { opacity: 0; }
.ba-tab:hover { transform: none; background: rgba(255, 255, 255, .6); }

@media (max-width: 900px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
    .promises--row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .stat { padding: 24px 0 24px 16px; }
    .stat:nth-child(odd) { padding-left: 0; }
}
/* Zone à côté du radar : libellé au-dessus, villes sur deux colonnes */
.zone-grid .towns-group { grid-template-columns: 1fr; gap: 10px; }
.zone-grid .towns-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 400px) { .zone-grid .towns-group ul { grid-template-columns: 1fr; } }
