/* Layout : une seule ambiance anthracite, tout aligné à gauche, très grands titres, lignes fines pour séparer, beaucoup d'air. Le rouge ETLTP sert aux actions et au menu plein écran. */
:root {
  color-scheme: dark;
  --coal: #1F2023;        /* fond anthracite */
  --coal-2: #292A2E;      /* surfaces, cadres photo */
  --chalk: #EFEDE7;       /* texte, blanc de craie */
  --mute: #A09E98;        /* texte secondaire */
  --line: rgba(239, 237, 231, 0.14);
  --red: #D62828;         /* rouge ETLTP */
  --red-hi: #F0564E;      /* rouge lisible en texte sur anthracite */
  --on-red: #FFFFFF;
  --shade: 20, 20, 22;    /* voile sombre sur les photos */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --veil-end: #1F2023;                 /* fin du voile photo : fond de page */
  --glass: rgba(31, 32, 35, 0.72);     /* en-tête translucide */
  --ghost: rgba(239, 237, 231, 0.1);   /* boutons discrets */
  --ghost-hi: rgba(239, 237, 231, 0.2);
  --tag-bg: rgba(31, 32, 35, 0.82);
  --dash: rgba(239, 237, 231, 0.26);   /* cadres photo vides */
  --input-line: rgba(239, 237, 231, 0.32);
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  --glass-line: rgba(255, 255, 255, 0.11);
  --spot: rgba(214, 40, 40, 0.11);       /* projecteur qui suit la souris */
  --grid: rgba(239, 237, 231, 0.07);     /* trame de plan révélée par le projecteur */
  --earth: #2C2A27;                      /* coupe de terrain, scène chantier */
}
/* Fond clair, au choix du visiteur (bouton dans l'en-tête) */
:root[data-look="light"] {
  color-scheme: light;
  --coal: #F2F0EB; --coal-2: #FFFFFF; --chalk: #1F2023; --mute: #5F5D58; --line: rgba(31, 32, 35, 0.14);
  --red-hi: #C21F1F; --veil-end: rgba(20, 20, 22, 0.88); --glass: rgba(242, 240, 235, 0.78);
  --ghost: rgba(31, 32, 35, 0.08); --ghost-hi: rgba(31, 32, 35, 0.16); --tag-bg: rgba(242, 240, 235, 0.85);
  --dash: rgba(31, 32, 35, 0.3); --input-line: rgba(31, 32, 35, 0.35);
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45)); --glass-line: rgba(31, 32, 35, 0.1);
  --spot: rgba(214, 40, 40, 0.07); --grid: rgba(31, 32, 35, 0.08); --earth: #D6D0C6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--coal); color: var(--chalk); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
p, h1, h2, h3, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 4px; }

h1, h2, h3 { font-stretch: 112%; font-weight: 650; line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 10.2vw, 7rem); line-height: 0.95; }
h2 { font-size: clamp(2rem, 5.4vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--mute); max-width: 56ch; }

.wrap {
  max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.sec { padding-block: clamp(72px, 11vw, 150px); }
.sec-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(36px, 6vw, 72px); }

/* Boutons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--red); color: var(--on-red); font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transform: translate(var(--mx, 0px), var(--my, 0px)); transition: background .2s, transform .45s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%); transform: translateX(-130%); transition: transform .8s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(130%); }
.btn:hover { background: #B81F1F; }
.btn.line { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; }
.btn.line:hover { background: var(--chalk); color: var(--coal); }

/* En-tête */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 80; background: var(--coal); }
.top { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 70; transition: background .3s, backdrop-filter .3s, color .3s; }
/* Fond clair : sur la photo d'accueil, l'en-tête reste en clair tant qu'on n'a pas défilé */
:root[data-look="light"]:not(.sub) .top:not(.scrolled) { color: #EFEDE7; }
:root[data-look="light"]:not(.sub) .top:not(.scrolled) .menu-btn,
:root[data-look="light"]:not(.sub) .top:not(.scrolled) .look-btn { color: #EFEDE7; background: rgba(239, 237, 231, 0.16); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.top.scrolled::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--red) 50%, transparent); background-size: 30% 100%; background-repeat: no-repeat; animation: beam 5s linear infinite; }
@keyframes beam { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.top.scrolled { border-bottom: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.logo { font-style: italic; font-weight: 900; font-stretch: 100%; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; text-decoration: none; }
.logo .et { color: var(--red-hi); transition: color .3s; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top .btn { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ghost); color: var(--chalk); font: 600 0.95rem var(--font); cursor: pointer; transition: background .2s; }
.menu-btn:hover { background: var(--ghost-hi); }
.menu-btn i { position: relative; width: 22px; height: 10px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { bottom: 0; }
.menu-open .menu-btn i::before { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-4px) rotate(-45deg); }
.menu-open .top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .logo .et { color: var(--coal); }
.menu-open .top .btn, .menu-open .look-btn { visibility: hidden; }
.menu-open .menu-btn { background: rgba(255, 255, 255, 0.18); color: var(--on-red); }
@media (max-width: 520px) { .top .btn { display: none; } }

/* Menu plein écran : un disque rouge qui s'ouvre depuis le bouton */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--red); color: var(--on-red); overflow-y: auto; visibility: hidden;
  clip-path: circle(0px at var(--mx, 92%) var(--my, 36px));
  transition: clip-path .75s cubic-bezier(.7, 0, .2, 1), visibility 0s .75s; }
.menu.open { visibility: visible; clip-path: circle(150vmax at var(--mx, 92%) var(--my, 36px)); transition: clip-path .75s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.menu .wrap { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-block: calc(env(safe-area-inset-top, 0px) + 110px) calc(env(safe-area-inset-bottom, 0px) + 32px); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: block; padding-block: 0.12em; font-stretch: 112%; font-weight: 650; font-size: clamp(2.5rem, min(11vw, 9.4vh), 5.6rem); line-height: 1.05; letter-spacing: -0.025em; text-decoration: none;
  opacity: 0; transform: translateY(46px); transition: opacity .5s, transform .7s var(--ease), padding-left .35s var(--ease); }
.menu.open nav a { opacity: 1; transform: none; }
.menu.open nav a:nth-child(1) { transition-delay: .18s, .18s, 0s; }
.menu.open nav a:nth-child(2) { transition-delay: .24s, .24s, 0s; }
.menu.open nav a:nth-child(3) { transition-delay: .30s, .30s, 0s; }
.menu.open nav a:nth-child(4) { transition-delay: .36s, .36s, 0s; }
.menu.open nav a:nth-child(5) { transition-delay: .42s, .42s, 0s; }
.menu.open nav a:nth-child(6) { transition-delay: .48s, .48s, 0s; }
.menu nav a:hover, .menu nav a:focus-visible { padding-left: 0.35em; }
.menu-foot { display: flex; flex-direction: column; gap: 14px; font-size: 0.98rem; opacity: 0.9; }
.menu-sub { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 1.05rem; font-weight: 600; }
.menu-sub a { text-decoration: none; } .menu-sub a:hover { text-decoration: underline; }
.menu-info { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.menu :focus-visible { outline-color: var(--on-red); }

/* Photo de fond qui défile plus lentement que la page */
:root { --photo: none; }
.hero, .cta { position: relative; overflow: hidden; isolation: isolate; color: #EFEDE7; }
.pbg { position: absolute; left: 0; right: 0; top: -30%; bottom: -30%; z-index: -2; background-image: var(--photo); background-size: cover; will-change: transform; }
.veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--shade), 0.5) 0%, rgba(var(--shade), 0.45) 40%, rgba(20, 20, 22, 0.9) 92%, var(--veil-end) 100%); }

/* Accueil */
.hero { min-height: min(820px, 92svh); display: flex; align-items: flex-end; }
.hero .wrap { width: 100%; display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); padding-block: 150px clamp(40px, 6vw, 72px); }
.hero .lede { color: rgba(239, 237, 231, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes shine { 0% { background-position: 110% 0; } 35%, 100% { background-position: -60% 0; } }
.hero .hero-panel { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 96px); right: max(16px, calc((100% - 1180px) / 2 + 16px)); width: 290px; padding: 16px 20px; background: rgba(20, 20, 22, 0.5); border-color: rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: 14px; }
.hp-head { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em; }
.hp-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(214, 40, 40, 0); } }
.hero-panel ul { display: flex; flex-direction: column; }
.hero-panel li { display: flex; flex-direction: column; gap: 1px; padding-block: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hero-panel li span { font-size: 0.82rem; color: rgba(239, 237, 231, 0.65); }
.hero-panel li b { font-weight: 600; font-size: 1rem; }
@media (max-width: 1040px) { .hero .hero-panel { position: static; width: auto; padding: 14px 18px; } .hp-head { display: none; } .hero-panel ul { flex-direction: row; flex-wrap: wrap; gap: 6px 28px; } .hero-panel li { border: 0; padding-block: 2px; } }
.rise { animation: rise 1s var(--ease) both; }
.rise.d2 { animation-delay: .5s; } .rise.d3 { animation-delay: .62s; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* Bandeau de mots qui défile */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: flex; align-items: center; gap: 34px; padding-right: 34px; white-space: nowrap; font-stretch: 112%; font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -0.02em; color: var(--mute); }
.marquee li::after { content: ""; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Prestations : lignes fines, la photo suit la ligne survolée */
.svc-wrap { position: relative; }
.svc { display: flex; flex-direction: column; gap: 16px; padding-block: 30px; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h3 { transition: color .3s, transform .5s var(--ease); }
.svc p { color: var(--mute); max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; color: var(--mute); }
.shot { aspect-ratio: 16 / 10; max-width: 100%; border-radius: 6px; overflow: hidden; background: var(--coal-2); }
.shot.real { background-image: var(--photo); background-size: cover; background-position: 58% 62%; }
.shot.todo { display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font-size: 0.9rem; color: var(--mute); outline: 1px dashed var(--dash); outline-offset: -12px; }
@media (min-width: 900px) {
  .svc-list { width: 55%; }
  .svc { outline: none; }
  .svc h3 { color: var(--mute); }
  .svc.on h3 { color: var(--chalk); transform: translateX(14px); }
  .svc .shot { position: absolute; top: 0; right: 0; width: 38%; aspect-ratio: 4 / 5; opacity: 0; transform: scale(0.96); transition: opacity .5s, transform .8s var(--ease); pointer-events: none; }
  .svc.on .shot { opacity: 1; transform: none; }
}

/* Déroulé du chantier : une vraie séquence, donc numérotée */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 40px); }
.step { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.step b { font-weight: 600; font-size: 0.95rem; color: var(--red-hi); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.45rem; }
.step p { color: var(--mute); font-size: 0.98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Le chantier se déroule au fil du défilement : section épinglée, scène dessinée, 4 étapes */
.story { position: relative; height: 380vh; }
.story-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; padding-top: calc(env(safe-area-inset-top, 0px) + 88px); padding-bottom: 24px; }
.story-grid { display: grid; grid-template-areas: "title scene" "caps scene"; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto 1fr; gap: 28px clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.story-grid > * { min-width: 0; }
.story-grid h2 { grid-area: title; align-self: end; }
.story-caps-wrap { grid-area: caps; align-self: start; position: relative; padding-left: 34px; }
.story-rail { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.story-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--red); box-shadow: 0 0 12px var(--red); }
.story-rail span { position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--coal); border: 2px solid var(--line); transform: translateY(-50%); transition: border-color .4s, box-shadow .4s; }
.story-rail span:nth-child(2) { top: 0; } .story-rail span:nth-child(3) { top: 33.3%; } .story-rail span:nth-child(4) { top: 66.6%; } .story-rail span:nth-child(5) { top: 100%; }
.story-rail span.on { border-color: var(--red-hi); box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.18), 0 0 14px rgba(214, 40, 40, 0.6); }
.story-caps { position: relative; min-height: 210px; }
.cap { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .6s var(--ease); pointer-events: none; }
.cap.on { opacity: 1; transform: none; pointer-events: auto; }
.cap b { color: var(--red-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.cap h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cap p { color: var(--mute); max-width: 42ch; }
.story-scene { grid-area: scene; }
.story-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.story-scene .earth { fill: var(--earth); }
.story-scene .pipe { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; }
.story-scene .plan { fill: none; stroke: var(--red-hi); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 860px) {
  .story { height: 320vh; }
  .story-stick { padding-top: calc(env(safe-area-inset-top, 0px) + 78px); }
  .story-grid { grid-template-areas: "title" "scene" "caps"; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; gap: 18px; }
  .story-scene svg { max-height: 36svh; }
  .story-caps { min-height: 170px; }
}

/* Chantiers */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mosaic .shot { aspect-ratio: 1 / 1; }
.mosaic .shot.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; } .mosaic .shot.big { aspect-ratio: 4 / 3; grid-row: auto; } }
.avis-slot { margin-top: 12px; padding: 26px; border-radius: 6px; outline: 1px dashed var(--dash); outline-offset: -1px; color: var(--mute); font-size: 0.95rem; }

/* L'entreprise */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.about > * { min-width: 0; }
.about-text { display: flex; flex-direction: column; gap: 20px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.about-text p + p { color: var(--mute); }
.facts { margin-top: 12px; }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 1rem; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts span { color: var(--mute); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Secteur : radar à l'échelle, centré sur Saint-Léonard */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.zone > * { min-width: 0; }
.zone .sec-head { margin-bottom: 0; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.93rem; }
.towns li.home { background: var(--red); border-color: var(--red); color: var(--on-red); font-weight: 600; }
.radar { position: relative; overflow: hidden; border-radius: 50%; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; justify-self: center; }
.radar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sweep { position: absolute; inset: 3.75%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(214, 40, 40, 0) 0deg, rgba(214, 40, 40, 0) 285deg, rgba(214, 40, 40, 0.42) 360deg); animation: turn 7s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.radar .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .km { fill: var(--mute); font: 500 10px var(--font); }
.radar .town { fill: var(--chalk); font: 500 11.5px var(--font); }
.radar .dot { fill: var(--chalk); }
.radar .home-dot { fill: var(--red); }
.radar .home-halo { fill: none; stroke: var(--red-hi); stroke-width: 1.5; transform-origin: 200px 200px; animation: ping 2.6s ease-out infinite; }
@keyframes ping { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } }

/* Bandeau devis */
.cta .veil { background: rgba(var(--shade), 0.66); }
.cta .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; padding-block: clamp(96px, 15vw, 190px); }
.cta h2 { max-width: 17ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); }
.contact > * { min-width: 0; }
.coords { margin-top: 36px; }
.coords li { display: flex; flex-direction: column; gap: 2px; padding-block: 16px; border-top: 1px solid var(--line); }
.coords span { font-size: 0.88rem; color: var(--mute); }
.coords strong { font-weight: 600; font-size: 1.15rem; overflow-wrap: anywhere; user-select: all; }
.coords .todo, footer .todo { color: var(--red-hi); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; align-content: start; }
form .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--mute); }
input, select, textarea { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--input-line); border-radius: 0; background: transparent; color: var(--chalk); font: 1.08rem var(--font); transition: border-color .2s; }
select option { background: var(--coal-2); color: var(--chalk); }
input::placeholder, textarea::placeholder { color: var(--mute); opacity: 0.6; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--red-hi); box-shadow: 0 1px 0 var(--red-hi); }
textarea { min-height: 120px; resize: vertical; }
.form-msg { padding: 16px 18px; border-radius: 6px; background: var(--coal-2); border-left: 3px solid var(--red); font-size: 0.98rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--mute); }
footer .wrap { display: flex; flex-direction: column; gap: 18px; padding-block: 28px calc(28px + 76px); }
footer .logo { font-size: 1.5rem; color: var(--chalk); }
@media (min-width: 761px) { footer .wrap { padding-block: 28px; } }

/* Boutons flottants sur téléphone : appel et WhatsApp */
.fabs { position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: none; gap: 10px; }
.fab { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; min-width: 52px; padding: 14px 20px; border-radius: 999px; background: var(--red); color: var(--on-red); font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.fab svg { width: 20px; height: 20px; }
.fab.wa { padding: 14px; background: var(--coal-2); color: var(--chalk); }
@media (max-width: 760px) { .fabs { display: flex; } }

/* Bouton fond clair / sombre */
.look-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ghost); color: var(--chalk); cursor: pointer; transition: background .2s; }
.look-btn:hover { background: var(--ghost-hi); }
.look-btn svg { width: 20px; height: 20px; }
.look-btn .sun { display: none; }
:root[data-look="light"] .look-btn .sun { display: block; }
:root[data-look="light"] .look-btn .moon { display: none; }

/* Contact : WhatsApp et avis Google */
.chat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.chat-row svg { width: 18px; height: 18px; }
.small { font-size: 0.9rem; }
.gavis { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 14px; padding: 26px; }
.gavis > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gavis h3 { font-size: 1.3rem; }
.gavis p { color: var(--mute); max-width: 52ch; font-size: 0.98rem; }

/* Pied de page */
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-nav a { text-decoration: none; } .foot-nav a:hover { color: var(--chalk); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }

/* Pages par prestation */
.page { padding-top: calc(env(safe-area-inset-top, 0px) + 120px); }
.page-head { display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.crumb { align-self: flex-start; font-size: 0.95rem; color: var(--mute); text-decoration: none; }
.crumb:hover { color: var(--chalk); }
.page h1 { font-size: clamp(2.4rem, 7vw, 5.2rem); max-width: 15ch; }
.page-body { display: grid; grid-template-columns: minmax(0, 68ch) 1fr; gap: clamp(32px, 6vw, 90px); padding-block: clamp(48px, 7vw, 96px); }
.page-body > * { min-width: 0; }
.page-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px; }
.page-aside h3 { font-size: 1.3rem; }
.page-aside p { color: var(--mute); font-size: 0.98rem; }
.page-sec { display: flex; flex-direction: column; gap: 18px; padding-bottom: clamp(44px, 6vw, 72px); }
.page-sec h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.page-sec > p { color: var(--mute); max-width: 62ch; }
.rows li { display: flex; flex-direction: column; gap: 6px; padding-block: 18px; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows b { font-weight: 600; font-size: 1.1rem; }
.rows span { color: var(--mute); font-size: 0.98rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin: 0 6px 4px 0; border-right: 2px solid var(--red-hi); border-bottom: 2px solid var(--red-hi); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--mute); padding-bottom: 20px; max-width: 60ch; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.others a { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 20px; text-decoration: none; }
.others b { font-weight: 600; font-size: 1.08rem; }
.others span { color: var(--mute); font-size: 0.92rem; }
.svc .more { align-self: flex-start; font-weight: 600; text-decoration: none; color: var(--red-hi); border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.svc .more:hover { border-color: currentColor; }
@media (max-width: 860px) { .page-body { grid-template-columns: 1fr; } .page-aside { position: static; } .others { grid-template-columns: 1fr; } }

/* Jauge de profondeur : la page se lit comme une fouille, de 0 à −3 m */
.gauge { position: fixed; z-index: 40; right: 22px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; align-items: center; gap: 12px; color: var(--mute); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.gauge-rail { position: relative; width: 1px; height: 150px; background: var(--line); }
.gauge-rail i { position: absolute; inset: 0 0 auto; height: 0; background: var(--red-hi); }
.gauge span { writing-mode: vertical-rl; letter-spacing: 0.04em; }
@media (min-width: 1340px) { .gauge { display: flex; } }


/* Titres qui glissent en place à l'arrivée */
.js .rv { opacity: 0.12; transform: translateY(38px); transition: opacity .8s, transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
h1 .w { display: inline-block; background: linear-gradient(100deg, #EFEDE7 42%, #FFFFFF 50%, #EFEDE7 58%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .95s var(--ease) both, shine 7s ease-in-out infinite; animation-delay: calc(var(--i) * 85ms), calc(1.6s + var(--i) * 110ms); }

/* Cartes en verre */
.glass { position: relative; background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: 10px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color .4s, box-shadow .4s; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.09), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.glass:hover { border-color: rgba(214, 40, 40, 0.45); box-shadow: 0 0 0 1px rgba(214, 40, 40, 0.12), 0 24px 60px -24px rgba(214, 40, 40, 0.5); }
.glass:hover::after { opacity: 1; }
.tilt { transform: translate3d(0, 0, 0); transition: transform .55s var(--ease), border-color .4s, box-shadow .4s; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px; }
.card svg { width: 26px; height: 26px; color: var(--red-hi); }
.card b { font-weight: 600; font-size: 1.05rem; }
.card span { color: var(--mute); font-size: 0.93rem; }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Projecteur qui suit la souris et révèle une trame de plan */
.spot { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 50%), var(--spot), transparent 60%); }
.spot::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), #000, transparent 70%); mask-image: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), #000, transparent 70%); }
.cur-on .spot { opacity: 1; }
main, footer { position: relative; z-index: 1; }

/* Grain très léger, rendu cinéma (ordinateur uniquement) */
.grain { position: fixed; inset: 0; z-index: 85; pointer-events: none; opacity: 0.045; display: none; background-size: 220px 220px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (min-width: 900px) { .grain { display: block; } }
:root[data-look="light"] .grain { opacity: 0.05; mix-blend-mode: multiply; }

/* Chiffres qui montent */
.stats-sec { padding-top: clamp(56px, 8vw, 110px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 40px); padding: clamp(24px, 4vw, 40px); }
.stat { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stat b { font-stretch: 112%; font-weight: 650; font-size: clamp(2.8rem, 6.6vw, 5.2rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat b small { margin-left: 0.14em; font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--red-hi); }
.stat > span { color: var(--mute); font-size: 0.98rem; max-width: 24ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 36px 20px; } }

/* Pelle qui creuse au fil du défilement */
.head-split { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 28px 48px; }
.head-split > * { min-width: 0; }
.digger svg { display: block; width: 100%; height: auto; overflow: visible; }
.digger .ln { fill: none; stroke: var(--chalk); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.digger .body { fill: var(--coal); stroke: var(--chalk); stroke-width: 2.5; stroke-linejoin: round; }
.digger .arm-o { fill: none; stroke: var(--chalk); stroke-linecap: round; stroke-linejoin: round; }
.digger .arm-i { fill: none; stroke: var(--coal); stroke-linecap: round; stroke-linejoin: round; }
.digger .soft { fill: none; stroke: var(--mute); stroke-width: 1.5; stroke-linecap: round; }
.digger .bucket { fill: var(--red); stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.digger .pile { fill: var(--coal-2); stroke: var(--chalk); stroke-width: 2.5; }
.step { transition: border-color .6s; }
.step.done { border-top-color: var(--red-hi); }
@media (max-width: 860px) { .head-split { grid-template-columns: 1fr; } }

/* Avant / après */
.ba { --x: 50%; position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin-bottom: 14px; border-radius: 6px; overflow: hidden; background: var(--coal-2); }
.ba svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba .after { clip-path: inset(0 0 0 var(--x)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--chalk); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--red); color: var(--on-red); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.ba-knob svg { position: static; width: 22px; height: 22px; }
.ba-tag { position: absolute; top: 14px; padding: 5px 14px; border-radius: 999px; background: var(--tag-bg); font-size: 0.86rem; font-weight: 600; pointer-events: none; }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:has(input:focus-visible) { outline: 2px solid var(--chalk); outline-offset: 3px; }
.ba-note { margin-bottom: clamp(36px, 6vw, 64px); color: var(--mute); font-size: 0.95rem; }
.ba .sky { fill: var(--coal-2); }
.ba .earth { fill: #3A3733; }
.ba .gravel { fill: #6E6A63; }
.ba .wall { fill: var(--coal); stroke: var(--chalk); stroke-width: 2.5; stroke-linejoin: round; }
.ba .ln { fill: none; stroke: var(--chalk); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ba .soft { fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; }
@media (max-width: 600px) { .ba { aspect-ratio: 4 / 3; } }
.mosaic .shot.real { transition: background-size .9s var(--ease); }

/* Radar : les villes s'allument au passage du faisceau */
.radar .dot { transform-box: fill-box; transform-origin: center; transition: transform 1s var(--ease), fill 1s; }
.radar .dot.hit { transform: scale(2.4); fill: var(--red-hi); transition-duration: .12s; }
.towns li { transition: border-color 1.1s, background 1.1s; }
.towns li.hit { border-color: var(--red-hi); background: rgba(214, 40, 40, 0.16); transition-duration: .12s; }

/* Curseur : un point rouge et un anneau qui suit avec un léger retard */
.cur, .cur-ring { position: fixed; left: 0; top: 0; z-index: 90; border-radius: 50%; pointer-events: none; opacity: 0; }
.cur { width: 8px; height: 8px; margin: -4px; background: var(--red-hi); transition: opacity .3s, background .3s; }
.cur-ring { width: 38px; height: 38px; margin: -19px; border: 1.5px solid var(--chalk); transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s; }
.cur-on .cur, .cur-on .cur-ring { opacity: 1; }
.cur-ring.big { width: 72px; height: 72px; margin: -36px; background: var(--ghost); border-color: transparent; }
.menu-open .cur { background: var(--on-red); }

@media (prefers-reduced-motion: reduce) {
  .story { height: auto; } .story-stick { position: static; height: auto; padding-block: 60px 0; }
  .story-caps { min-height: 0; display: grid; gap: 22px; } .cap { position: static; opacity: 1; transform: none; } .story-rail { display: none; } .story-caps-wrap { padding-left: 0; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pbg { top: 0; bottom: 0; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; row-gap: 10px; padding-inline: 16px; }
}

/* Boutons flottants remontés pour ne pas chevaucher le badge Netlify */
@media (max-width: 760px) { .fabs { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }
.towns a { text-decoration: none; color: inherit; } .towns a::after { content: " \2192"; color: var(--red-hi); } .towns li:has(> a) { border-color: rgba(214, 40, 40, 0.55); } .towns li:has(> a):hover { border-color: var(--red-hi); background: rgba(214, 40, 40, 0.1); }

/* Avant / après en photos */
.ba { aspect-ratio: 3 / 2; }
.ba-pic, .ba-pic picture, .ba-pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.ba-pic.before img { filter: grayscale(0.75) brightness(0.42) contrast(1.05); }
.ba-over { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-over .ln { fill: none; stroke: var(--chalk); stroke-width: 3; stroke-dasharray: 14 10; stroke-linejoin: round; opacity: 0.85; }
.ba-over .red { fill: none; stroke: var(--red-hi); stroke-width: 3; stroke-dasharray: 14 10; }
.ba-over .pipe { fill: none; stroke: var(--red-hi); stroke-width: 9; stroke-linecap: round; opacity: 0.9; }
.ba-over .dim { fill: none; stroke: var(--chalk); stroke-width: 2.5; }
.ba-over .dimt { fill: var(--chalk); font: 600 32px var(--font); font-variant-numeric: tabular-nums; }
.ba-over .lead { fill: none; stroke: var(--chalk); stroke-width: 2.5; opacity: 0.8; }
.ba-over .lab rect { fill: rgba(31, 32, 35, 0.78); stroke: rgba(239, 237, 231, 0.18); stroke-width: 1.5; }
.ba-over .lab text { fill: #EFEDE7; font: 600 34px var(--font); }
.ba-over .lab text.sub { fill: #B8B5AD; font: 500 26px var(--font); }
.ba .after { clip-path: inset(0 0 0 var(--x)); }
.ba::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); border-radius: 6px; }
@media (max-width: 760px) { .ba { aspect-ratio: 4 / 3; } }

.others { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.others a { padding: 18px 16px; } .others b { font-size: 1rem; } .others span { font-size: 0.88rem; }

/* Prestations : colonne photo collante sur ordinateur */
@media (min-width: 900px) {
  .svc-wrap { display: grid; grid-template-columns: 55% 1fr; gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
  .svc-list { width: auto; }
  .svc-stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); height: min(470px, calc(100svh - 150px)); }
  .svc-stage .shot { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; opacity: 0; transform: scale(0.97); transition: opacity .5s, transform .8s var(--ease); pointer-events: none; }
  .svc-stage .shot.on { opacity: 1; transform: none; }
}

/* Scène du chantier, version réaliste */
.story-dots { position: absolute; left: 0; top: 6px; bottom: 6px; width: 14px; }
.story-dots button { position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px; padding: 0; border-radius: 50%; background: var(--coal); border: 2px solid var(--line); transform: translateY(-50%); cursor: pointer; transition: border-color .4s, box-shadow .4s; }
.story-dots button:nth-child(1) { top: 0; } .story-dots button:nth-child(2) { top: 33.3%; } .story-dots button:nth-child(3) { top: 66.6%; } .story-dots button:nth-child(4) { top: 100%; }
.story-dots button.on { border-color: var(--red-hi); box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.18), 0 0 14px rgba(214, 40, 40, 0.6); }
.story-dots button:hover { border-color: var(--red-hi); }
.story-rail span { display: none; }
.story-hint { margin-top: 18px; font-size: 0.9rem; color: var(--mute); transition: opacity .4s; }
.story-hint span { display: inline-block; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.story-hint.off { opacity: 0; }
.story-scene { position: relative; }
.story-scene svg { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, #000 82%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
.story-chip { position: absolute; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px; background: var(--glass-bg); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 0.86rem; min-width: 200px; }
.story-chip b { font-weight: 600; color: var(--red-hi); }
.story-chip span { color: var(--mute); font-variant-numeric: tabular-nums; }
.story-scene .hills { fill: var(--mute); opacity: 0.07; }
.story-scene .hedge { fill: var(--mute); opacity: 0.14; }
.story-scene .l-veg { fill: #4B3F31; } .story-scene .l-lim { fill: #6E5B42; } .story-scene .l-arg { fill: #58504A; } .story-scene .l-cra { fill: #A8A497; opacity: 0.5; }
:root[data-look="light"] .story-scene .l-cra { fill: #D8D3C6; opacity: 1; }
.story-scene .flint ellipse { fill: #8E8B82; }
.story-scene .l-label text { fill: var(--mute); font: 500 14px var(--font); opacity: 0.9; }
.story-scene .ground-line { fill: none; stroke: var(--chalk); stroke-width: 2; opacity: 0.55; stroke-linecap: round; }
.story-scene .cut { fill: #2B2622; }
.story-scene .tripod rect { fill: #3A3B40; stroke: var(--mute); stroke-width: 1.5; } .story-scene .tripod circle { fill: var(--red-hi); stroke: none; }
.story-scene .wall { fill: none; stroke: var(--chalk); stroke-width: 2; }
.story-scene .backfill { fill: #5E5141; }
.story-scene .gravel { fill: #8E8B82; opacity: 0.9; }
.story-scene .pipe { fill: var(--red); } .story-scene .pipe-hi { fill: rgba(255, 255, 255, 0.35); }
.story-scene .pipe-ghost { fill: none; stroke: var(--red-hi); stroke-width: 1.5; stroke-dasharray: 4 4; }
.story-scene .pile { fill: #6E5B42; stroke: var(--chalk); stroke-width: 1.5; }
.story-scene .clod { fill: #6E5B42; stroke: var(--chalk); stroke-width: 1; }
.story-scene .depth line { stroke: var(--red-hi); stroke-width: 1.5; stroke-dasharray: 3 4; }
.story-scene .depth text, .story-scene .stakes text { fill: var(--chalk); font: 600 16px var(--font); font-variant-numeric: tabular-nums; }
.story-scene .stakes path { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linecap: round; }
.story-scene .stakes .flag { fill: var(--red); stroke: none; }
.story-scene .stakes .tape { stroke: var(--red-hi); stroke-width: 1.5; stroke-dasharray: 1; }
.story-scene .plan-txt { fill: var(--red-hi); font: 600 16px var(--font); }
.story { height: 420vh; }
.story-grid { grid-template-columns: 1fr 1.5fr; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .story { height: 360vh; } }
.story-scene .body-h { fill: var(--coal); stroke: var(--chalk); stroke-width: 2.5; stroke-linejoin: round; }
.story-scene .glass { fill: rgba(170, 200, 220, 0.35); stroke: var(--chalk); stroke-width: 1.5; }
.story-scene .trk { fill: #2E2F33; stroke: #9A9A96; stroke-width: 2; }
.story-scene .trk-teeth { fill: none; stroke: #9A9A96; stroke-width: 3; stroke-dasharray: 5 6; }
.story-scene .roller circle { fill: #3A3B40; stroke: #9A9A96; stroke-width: 2; } .story-scene .roller path { fill: none; stroke: #9A9A96; stroke-width: 2; }
.story-scene .roller-s { fill: #3A3B40; stroke: #9A9A96; stroke-width: 1.5; }
.story-scene .red { fill: #D62828; stroke: #7A1414; stroke-width: 2; stroke-linejoin: round; }
.story-scene .vent { fill: none; stroke: #7A1414; stroke-width: 2; }
.story-scene .dark { fill: #2E2F33; stroke: #9A9A96; stroke-width: 1.5; }
.story-scene .beacon { fill: #F2A33C; }
.story-scene .rail { fill: none; stroke: #9A9A96; stroke-width: 2; stroke-linecap: round; }
.story-scene .arm { fill: none; stroke: #7A1414; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.story-scene .arm-in { fill: none; stroke: #D62828; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.story-scene .arm2 { fill: none; stroke: #7A1414; stroke-width: 13; stroke-linecap: round; }
.story-scene .arm2-in { fill: none; stroke: #D62828; stroke-width: 7; stroke-linecap: round; }
.story-scene .hose { fill: none; stroke: #3A1414; stroke-width: 1.5; opacity: 0.8; }
.story-scene .cyl { fill: none; stroke: #B9B9B4; stroke-width: 5; stroke-linecap: round; }
.story-scene .bucket { fill: #3A3B40; stroke: #B9B9B4; stroke-width: 2; stroke-linejoin: round; }
.story-scene .teeth { fill: none; stroke: #B9B9B4; stroke-width: 2.5; stroke-linecap: round; }
.story-scene .smoke circle { fill: var(--mute); opacity: 0; animation: puff 2.6s ease-out infinite; transform-box: view-box; }
.story-scene .smoke circle:nth-child(2) { animation-delay: 0.9s; } .story-scene .smoke circle:nth-child(3) { animation-delay: 1.8s; }
@keyframes puff { 0% { transform: translate(0, 0) scale(0.6); opacity: 0; } 15% { opacity: 0.45; } 100% { transform: translate(8px, -46px) scale(2); opacity: 0; } }
.story-scene .soft { fill: none; stroke: var(--mute); stroke-width: 1.5; stroke-linecap: round; }
.story-scene .plan { fill: none; stroke: var(--red-hi); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.story-scene .ln { fill: none; stroke: var(--chalk); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .story-scene svg { max-height: 42svh; } .story-chip { font-size: 0.78rem; min-width: 0; padding: 8px 10px; } }
@media (prefers-reduced-motion: reduce) { .story-scene .smoke circle { animation: none; } }

/* Accueil et bandeau devis : photos d'illustration */
.hero { background: #1F2023; }
.hero-photo { background-image: url("img/hero.jpg"); background-image: image-set(url("img/hero.webp") type("image/webp"), url("img/hero.jpg") type("image/jpeg")); background-position: 50% 45%; }
.cta-photo { background-image: url("img/cta.jpg"); background-image: image-set(url("img/cta.webp") type("image/webp"), url("img/cta.jpg") type("image/jpeg")); background-position: 50% 60%; }
.shot picture, .shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot picture { position: absolute; inset: 0; }
.shot { position: relative; }
.mosaic .shot.big { aspect-ratio: 1 / 1; }
@media (max-width: 760px) { .mosaic .shot.big { aspect-ratio: 4 / 3; } }
.scene .ln { fill: none; stroke: #EFEDE7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.scene .body { fill: #1F2023; stroke: #EFEDE7; stroke-width: 2.5; stroke-linejoin: round; }
.scene .arm-o { fill: none; stroke: #EFEDE7; stroke-linecap: round; stroke-linejoin: round; }
.scene .arm-i { fill: none; stroke: #1F2023; stroke-linecap: round; stroke-linejoin: round; }
.scene .soft { fill: none; stroke: #8B8A86; stroke-width: 1.6; stroke-linecap: round; }
.scene .bucket { fill: #D62828; stroke: #D62828; stroke-width: 2; stroke-linejoin: round; }
.scene .pile { fill: #292A2E; stroke: #EFEDE7; stroke-width: 2.5; }
.scene .earth { fill: #26272A; }
.scene .pipe { fill: none; stroke: #D62828; stroke-width: 12; stroke-linecap: round; opacity: 0.9; }
.scene .plan { fill: none; stroke: #F0564E; stroke-width: 1.5; stroke-dasharray: 0.012 0.008; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .scene animateTransform { display: none; } }

/* Champ anti-robot du formulaire, invisible */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.legal { max-width: 68ch; } .legal h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 40px 0 12px; } .legal .todo { color: var(--red-hi); } .legal p, .legal li { color: var(--mute); } .legal ul { padding-left: 20px; list-style: disc; } .legal li { margin-block: 6px; }

/* v12 : « Comment se passe votre chantier », quatre cartes qui s'empilent au défilement */
.proc { padding-bottom: clamp(40px, 6vw, 80px); }
.proc-list { display: flex; flex-direction: column; gap: 28px; padding: 0; margin: 0; list-style: none; }
.pstep-card { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 440px; border-radius: 14px; overflow: hidden; background: var(--coal-2); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * 0.05)); }
.pstep-card::after { content: ""; position: absolute; inset: 0; background: rgb(var(--shade)); opacity: calc(var(--cover, 0) * 0.45); pointer-events: none; border-radius: inherit; }
.pstep-card { position: relative; }
.pstep-text { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3.4vw, 48px); min-width: 0; }
.pstep-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: auto; padding-bottom: 20px; }
.pstep-num { font-size: clamp(4.2rem, 9vw, 7.5rem); font-weight: 800; font-stretch: 112%; line-height: 0.8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--red-hi); font-variant-numeric: tabular-nums; }
.pstep-tag { margin-top: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(214, 40, 40, 0.5); color: var(--red-hi); font-size: 0.84rem; font-weight: 600; white-space: nowrap; }
.pstep-text h3 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.pstep-text p { color: var(--mute); max-width: 44ch; }
.pstep-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.pstep-bar i { height: 3px; border-radius: 2px; background: var(--line); }
.pstep-bar i.on { background: var(--red); }
.pstep-visual { position: relative; min-height: 260px; overflow: hidden; background: var(--coal); }
.pstep-visual picture, .pstep-visual img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pstep-visual img { transform: scale(1.14); transition: transform 1.6s var(--ease); }
.pstep.in .pstep-visual img { transform: none; }
.pstep-visual:not(.plan)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 35%, rgba(var(--shade), 0.7)); pointer-events: none; }
.pstep-chip { position: absolute; z-index: 1; left: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; min-width: min(250px, calc(100% - 28px)); border-radius: 10px; background: rgba(var(--shade), 0.7); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #EFEDE7; font-size: 0.93rem; }
.pstep-chip b { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; color: rgba(239, 237, 231, 0.7); }
.pstep-chip ul { display: flex; flex-direction: column; gap: 7px; }
.pstep-chip li { display: flex; align-items: center; gap: 10px; }
.pstep-chip li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.js .pstep-chip li, .js .sheet-row, .js .sheet-foot { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); transition-delay: calc(0.25s + var(--k, 0) * 0.12s); }
.js .pstep.in .pstep-chip li, .js .pstep.in .sheet-row, .js .pstep.in .sheet-foot { opacity: 1; transform: none; }
.pstep-chip li:nth-child(2), .sheet-row:nth-child(3) { --k: 1; } .pstep-chip li:nth-child(3), .sheet-row:nth-child(4) { --k: 2; } .pstep-chip li:nth-child(4), .sheet-row:nth-child(5) { --k: 3; } .sheet-foot { --k: 4; }
/* Étape 2 : un devis stylisé sur fond de plan */
.pstep-visual.plan { display: flex; align-items: center; justify-content: center; padding: clamp(18px, 3vw, 40px); background-color: var(--coal); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.sheet { width: min(100%, 400px); padding: 22px 24px; border-radius: 10px; background: var(--coal-2); border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6); transform: rotate(-2deg); transition: transform 1.2s var(--ease); }
.pstep.in .sheet { transform: rotate(-1deg); }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 2px solid var(--red); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.sheet-head .logo { font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--chalk); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.sheet-row i { flex: none; width: 54px; height: 8px; border-radius: 4px; background: var(--line); }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; font-size: 0.84rem; color: var(--mute); }
.sheet-foot span { width: 100%; }
.sheet-foot em { font-style: normal; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(214, 40, 40, 0.5); color: var(--red-hi); font-weight: 600; }
/* Empilement : seulement quand l'écran est assez grand pour afficher une carte entière */
@media (min-width: 861px) and (min-height: 660px) {
  .proc-list { gap: 0; }
  .pstep { position: sticky; top: calc(96px + var(--n) * 18px); padding-bottom: 36px; }
  .pstep:last-child { padding-bottom: 0; }
  .pstep-card { height: min(500px, calc(100svh - 190px)); min-height: 0; }
}
@media (max-width: 860px) {
  .pstep-card { grid-template-columns: 1fr; min-height: 0; }
  .pstep-visual { order: -1; aspect-ratio: 16 / 11; min-height: 0; }
  .pstep-visual.plan { aspect-ratio: auto; }
  .pstep-top { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .pstep-visual img, .sheet { transition: none; transform: none; } .pstep-card { transform: none; } }

/* v12 : accueil sobre — photo de chantier, voile sombre, « A à Z » en rouge */
.hero { background: #1F2023; }
h1 .w.hot { background-image: linear-gradient(100deg, #F0564E 42%, #FF8A7A 50%, #F0564E 58%); }
@media (min-width: 1041px) { .hero h1 { max-width: 8.4em; } }
/* v12 : étapes, quatre mini-documents assortis sur fond de plan */
.pstep-visual { display: flex; align-items: center; justify-content: center; padding: clamp(18px, 3vw, 40px); background-color: var(--coal); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.pstep-visual:not(.plan)::after { display: none; }
.pstep-visual::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(214, 40, 40, 0.22), transparent 65%); filter: blur(30px); pointer-events: none; }
.sheet { position: relative; transform: rotate(var(--r, -2deg)); }
.pstep.in .sheet { transform: rotate(calc(var(--r, -2deg) * 0.5)); }
.sheet-row .ck { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.sheet-row u { flex: none; position: relative; width: 96px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); text-decoration: none; }
.sheet-row u::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--w)); transition: transform 1.3s var(--ease) 0.6s; }
.js .pstep:not(.in) .sheet-row u::after { transform: scaleX(0); }
.sheet-stamp { position: absolute; right: 18px; bottom: 16px; padding: 6px 12px; border: 2px solid var(--red-hi); border-radius: 6px; color: var(--red-hi); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-10deg); opacity: 0.92; transition: opacity .3s 1s, transform .5s var(--ease) 1s; }
.js .pstep:not(.in) .sheet-stamp { opacity: 0; transform: rotate(-10deg) scale(1.7); }
@media (max-width: 860px) { .pstep-visual { aspect-ratio: auto; } }
@media (prefers-reduced-motion: reduce) { .sheet, .pstep.in .sheet { transform: none; } .sheet-row u::after, .sheet-stamp { transition: none; } }

/* v12 : galerie « Nos chantiers », bande de photos à faire défiler */
.reel-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 44px); }
.reel-head > div:first-child { display: flex; flex-direction: column; gap: 20px; max-width: 46ch; }
.reel-nav { display: flex; align-items: center; gap: 10px; }
.reel-count { margin-right: 10px; color: var(--mute); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.reel-count b { color: var(--chalk); font-size: 1.5rem; font-weight: 650; }
.reel-nav button { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--ghost); color: var(--chalk); cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.reel-nav button svg { width: 22px; height: 22px; }
.reel-nav button:hover { background: var(--red); border-color: var(--red); color: var(--on-red); transform: scale(1.06); }
.reel-nav button:disabled { opacity: 0.35; pointer-events: none; }
.reel { display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; padding: 14px max(16px, calc((100vw - 1180px) / 2 + 16px)) 26px; scroll-snap-type: x proximity; scroll-padding-inline: max(16px, calc((100vw - 1180px) / 2 + 16px)); scrollbar-width: none; cursor: grab; outline: none; -webkit-overflow-scrolling: touch; }
.reel::-webkit-scrollbar { display: none; }
.reel.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.reel.drag .reel-card { pointer-events: none; }
.reel-card { position: relative; flex: none; height: clamp(360px, 62vh, 540px); aspect-ratio: 3 / 4; margin: 0; border-radius: 14px; overflow: hidden; background: var(--coal-2); scroll-snap-align: start; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.6); transition: transform .6s var(--ease), box-shadow .6s; }
.reel-card.wide { aspect-ratio: 4 / 3; }
.reel-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); -webkit-user-drag: none; user-select: none; }
.reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(var(--shade), 0.88)); pointer-events: none; }
.reel-card figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; color: #EFEDE7; }
.reel-card figcaption span { font-size: 0.82rem; font-weight: 700; color: #FF8A7A; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.reel-card figcaption b { font-size: 1.22rem; font-weight: 650; font-stretch: 112%; line-height: 1.1; letter-spacing: -0.02em; }
.reel-card figcaption em { font-style: normal; font-size: 0.86rem; color: rgba(239, 237, 231, 0.72); }
@media (hover: hover) { .reel-card:hover { transform: translateY(-8px); box-shadow: 0 40px 60px -28px rgba(214, 40, 40, 0.5); } .reel-card:hover img { transform: scale(1.06); } }
.js .reel-card { opacity: 0; translate: 0 40px; transition: opacity .7s calc(var(--k) * 70ms), translate .9s var(--ease) calc(var(--k) * 70ms), transform .6s var(--ease), box-shadow .6s; }
.js .reel.in .reel-card { opacity: 1; translate: 0 0; }
.reel-bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-bottom: clamp(28px, 4vw, 48px); }
.reel-bar i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0.12); }
@media (max-width: 760px) { .reel-card { height: 400px; } .reel-nav button { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .js .reel-card { opacity: 1; translate: 0 0; transition: none; } .reel-card img { transition: none; } }

/* v12 : galerie regroupée par chantier */
.reel { gap: clamp(28px, 4vw, 56px); align-items: flex-end; }
.reel-group { flex: none; display: flex; flex-direction: column; gap: 16px; }
.reel-row { display: flex; gap: clamp(10px, 1.2vw, 16px); }
.reel-label { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding-top: 14px; border-top: 2px solid var(--red); }
.reel-label span { grid-row: span 2; font-size: 2.6rem; font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--red-hi); font-variant-numeric: tabular-nums; }
.reel-label b { font-size: 1.25rem; font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; white-space: nowrap; }
.reel-label em { font-style: normal; font-size: 0.88rem; color: var(--mute); white-space: nowrap; }
@media (max-width: 760px) { .reel-label b, .reel-label em { white-space: normal; } .reel-label { max-width: calc(100vw - 48px); } }

/* v12 : légende sous les villes */
.towns-note { margin-top: 14px; color: var(--mute); }
.towns-note b { color: var(--red-hi); font-weight: 600; }
/* v12 : villes avec page dédiée, pastille ronde rouge à chevron à la place de la flèche */
.towns li > a[href] { display: flex; align-items: center; gap: 9px; padding-right: 8px; }
.towns a::after, .towns-note i { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 4.5L10 8l-3.5 3.5'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease), box-shadow .3s; }
.towns li:has(> a):hover a::after { transform: translateX(3px); box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.22); }
.towns li.home > a::after { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23D62828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 4.5L10 8l-3.5 3.5'/%3E%3C/svg%3E"); }
.towns li.home:has(> a):hover { background: var(--red); filter: brightness(1.12); }
.towns-note { display: flex; align-items: center; gap: 8px; }
.towns-note i { display: inline-block; width: 16px; height: 16px; background-size: 12px; }

/* v12 : mention discrète sous la mosaïque */
.mosaic-note { margin-top: 10px; color: var(--mute); text-align: right; }

/* v12 : toute la pastille de ville est cliquable, pas seulement le texte */
.towns li:has(> a) { padding: 0; }
.towns li > a { display: block; padding: 7px 15px; }

/* v12 : zone de clic élargie autour des points de la frise, sans changer leur taille visible */
.story-dots button::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }

/* v12 : le bas du pied de page n'est plus caché par les boutons flottants sur mobile */
@media (max-width: 760px) { footer .wrap { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); } }

/* v12 : zones tactiles d'au moins 44 px sur écran tactile */
@media (pointer: coarse) {
  .foot-nav a, .menu-sub a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-nav, .menu-sub { row-gap: 0; }
  .towns li > a { padding: 11px 16px; }
  .svc .more { position: relative; }
  .svc .more::before { content: ""; position: absolute; inset: -9px -6px; }
}

/* v12e : accueil dynamique et sobre — trois photos qui se fondent l'une dans l'autre avec un lent zoom */
.hero-slides { background: #1F2023; }
.hero-slides i { position: absolute; inset: 0; background-size: cover; background-position: 50% 45%; opacity: 0; will-change: opacity, transform; animation: hslide 24s linear infinite; }
.hero-slides .s1 { background-image: url("img/hero.jpg"); background-image: image-set(url("img/hero.webp") type("image/webp"), url("img/hero.jpg") type("image/jpeg")); animation-delay: -1.2s; }
.hero-slides .s2 { background-image: url("img/lotissement.jpg"); background-image: image-set(url("img/lotissement.webp") type("image/webp"), url("img/lotissement.jpg") type("image/jpeg")); background-position: 50% 60%; animation-delay: 6.8s; }
.hero-slides .s3 { background-image: url("img/cta.jpg"); background-image: image-set(url("img/cta.webp") type("image/webp"), url("img/cta.jpg") type("image/jpeg")); animation-delay: 14.8s; }
@keyframes hslide { 0% { opacity: 0; transform: scale(1.02); } 5% { opacity: 1; } 33.3% { opacity: 1; } 40% { opacity: 0; transform: scale(1.16) translate(-1.2%, -0.8%); } 100% { opacity: 0; transform: scale(1.16); } }
/* Fine barre rouge qui se remplit au rythme des photos */
.hero::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform-origin: 0 50%; animation: hbar 8s linear infinite; }
@keyframes hbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-slides i { animation: none; } .hero-slides .s1 { opacity: 1; } .hero::after { display: none; } }.hero .veil { background: linear-gradient(90deg, rgba(var(--shade), 0.62) 0%, rgba(var(--shade), 0.34) 58%, rgba(var(--shade), 0.18) 100%), linear-gradient(180deg, rgba(var(--shade), 0.5) 0%, rgba(var(--shade), 0.3) 40%, rgba(20, 20, 22, 0.9) 92%, var(--veil-end) 100%); }

/* v12f : pages prestation, communes sans page dédiée citées en texte */
.towns-more { margin-top: 14px; color: var(--mute); max-width: 62ch; }
/* v12f : étiquettes de « Nos prestations » plus vivantes */
.tags li { display: inline-flex; align-items: center; gap: 8px; transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease); }
.tags li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); transition: transform .3s var(--ease); }
.tags li:nth-child(2) { --t: 1; } .tags li:nth-child(3) { --t: 2; } .tags li:nth-child(4) { --t: 3; } .tags li:nth-child(5) { --t: 4; }
.svc.on .tags li { color: var(--chalk); border-color: rgba(214, 40, 40, 0.5); animation: tagin .55s var(--ease) both; animation-delay: calc(var(--t, 0) * 70ms); }
@keyframes tagin { from { opacity: 0.25; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .tags li:hover { color: var(--chalk); border-color: var(--red); background: rgba(214, 40, 40, 0.16); transform: translateY(-3px); } .tags li:hover::before { transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .svc.on .tags li { animation: none; } }/* v12g : étiquettes cliquables vers la page de la prestation */
.tags li:has(> a) { padding: 0; }
.tags li > a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; color: inherit; text-decoration: none; }
.tags li:has(> a)::before { display: none; }
.tags li > a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); transition: transform .3s var(--ease); }
.tags li:hover > a::before { transform: scale(1.6); }
@media (pointer: coarse) { .tags li > a { padding: 10px 15px; } }
/* v12h : plus de mouvement, en restant sobre */
/* Fondu doux d'une page à l'autre (navigateurs récents) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
/* Apparitions en cascade au défilement */
.js .rvx { opacity: 0; }
.js .rvx.in { animation: rvx .85s var(--ease) both; animation-delay: calc(var(--s, 0) * 70ms); }
@keyframes rvx { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
/* Pages de prestations et de villes : bandeau photo avec lent zoom */
.page-head.has-photo { position: relative; isolation: isolate; overflow: hidden; justify-content: flex-end; min-height: clamp(340px, 48vh, 480px); padding: clamp(24px, 4vw, 56px); border: 0; border-radius: 14px; color: #EFEDE7; }
.page-head.has-photo .crumb, .page-head.has-photo .lede { color: rgba(239, 237, 231, 0.88); }
.page-head.has-photo .crumb:hover { color: #fff; }
.page-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 50% 55%; animation: pzoom 20s ease-in-out infinite alternate; }
.page-head.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--shade), 0.88) 0%, rgba(var(--shade), 0.55) 58%, rgba(var(--shade), 0.28) 100%), linear-gradient(180deg, transparent 35%, rgba(var(--shade), 0.6) 100%); }
@keyframes pzoom { from { scale: 1; } to { scale: 1.12; } }
/* Bandeau « devis gratuit » : même lent zoom */
.cta-photo { animation: pzoom 18s ease-in-out infinite alternate; }
/* FAQ : la flèche se referme dès le clic */
.faq details.closing summary::after { transform: rotate(45deg); }
.faq summary { transition: color .25s; } .faq summary:hover { color: var(--red-hi); }
.rows li { transition: padding-left .35s var(--ease), border-color .35s; }
@media (hover: hover) { .rows li:hover { padding-left: 12px; border-top-color: rgba(214, 40, 40, 0.6); } }
/* Cartes « entreprise » : le pictogramme se dessine */
.js .card svg * { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--ease) calc(0.3s + var(--s, 0) * 90ms); }
.js .card.in svg * { stroke-dashoffset: 0; }
/* Formulaire : retour visuel */
label { transition: color .25s; } label:focus-within { color: var(--chalk); }
input, select, textarea { transition: border-color .25s, box-shadow .25s; }
.form-msg:not([hidden]) { animation: rise .5s var(--ease) both; }
.btn.busy { pointer-events: none; opacity: 0.88; }
.btn.busy::before { content: ""; flex: none; width: 16px; height: 16px; margin-right: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: turn .8s linear infinite; }
.btn.ok, .btn.ok:hover { background: #1E8E4E; }
.btn.ok::before { content: "\2713"; margin-right: 9px; font-weight: 800; }
/* Galerie : photo en grand */
.reel-card { cursor: zoom-in; }
.reel-card:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }
.lb { position: fixed; inset: 0; z-index: 88; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: clamp(12px, 3vw, 40px); background: rgba(12, 12, 14, 0.93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.lb.on { opacity: 1; } .lb[hidden] { display: none; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lb img { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); transform: scale(0.95); transition: transform .4s var(--ease); }
.lb.on img { transform: none; }
.lb figcaption { color: #EFEDE7; font-weight: 600; text-align: center; }
.lb figcaption span { display: block; margin-top: 2px; color: rgba(239, 237, 231, 0.65); font-weight: 400; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.lb button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); color: #EFEDE7; cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.lb button svg { width: 22px; height: 22px; }
.lb button:hover { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 700px) { .lb { grid-template-columns: minmax(0, 1fr); padding-bottom: 92px; } .lb-prev, .lb-next { position: absolute; bottom: 20px; } .lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); } .lb img { max-height: 66vh; } }
@media (prefers-reduced-motion: reduce) { .page-photo, .cta-photo { animation: none; } .lb, .lb img { transition: none; } @view-transition { navigation: none; } }
@media (max-width: 520px) { .page-head.has-photo { padding: 22px 18px; min-height: 0; } .page-head.has-photo h1 { font-size: 1.9rem; overflow-wrap: anywhere; } }

/* v12i : nouveaux outils et effets */
/* Mot qui change au-dessus du titre de l'accueil */
.hero-roll { display: flex; align-items: center; gap: 14px; margin: 0 0 -10px; font-weight: 600; font-size: clamp(0.92rem, 1.5vw, 1.18rem); letter-spacing: 0.14em; text-transform: uppercase; color: #FF8A7A; }
.hero-roll i { flex: none; width: 34px; height: 2px; background: var(--red); }
.roll { display: inline-grid; overflow: hidden; line-height: 1.5; }
.roll b { grid-area: 1 / 1; font-weight: 600; opacity: 0; animation: roll 12.5s infinite; }
.roll b:nth-child(2) { animation-delay: 2.5s; } .roll b:nth-child(3) { animation-delay: 5s; } .roll b:nth-child(4) { animation-delay: 7.5s; } .roll b:nth-child(5) { animation-delay: 10s; }
@keyframes roll { 0% { opacity: 0; transform: translateY(100%); } 3%, 17% { opacity: 1; transform: none; } 20%, 100% { opacity: 0; transform: translateY(-100%); } }
/* Joignable ou fermé */
.live { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-style: normal; font-size: 0.9rem; font-weight: 600; color: var(--mute); }
.live::before, .live-dot { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8B8A86; }
.live[data-k="open"] { color: #3DBE78; }
.live[data-k="open"]::before, :root[data-live="open"] .live-dot { background: #3DBE78; animation: livep 2.2s infinite; }
.live[data-k="pause"]::before, :root[data-live="pause"] .live-dot { background: #F2A33C; }
@keyframes livep { 0% { box-shadow: 0 0 0 0 rgba(61, 190, 120, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 190, 120, 0); } }
:root[data-look="light"] .live[data-k="open"] { color: #1E8E4E; } :root[data-look="light"] .hero-panel .live[data-k="open"] { color: #3DBE78; }
.hero-panel .live { margin-top: 0; font-size: 0.95rem; color: rgba(239, 237, 231, 0.75); }
/* Téléphone dans l'en-tête, sur grand écran */
.top-tel { display: none; }
@media (min-width: 900px) { .top-tel { display: inline-flex; align-items: center; gap: 9px; padding: 0 8px; font-weight: 600; font-size: 0.98rem; text-decoration: none; font-variant-numeric: tabular-nums; } .top-tel:hover { color: var(--red-hi); } }
.menu-open .top-tel { visibility: hidden; }
/* Contact : projet en 3 clics */
.contact-right { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.quick { display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: 14px; background: var(--coal-2); }
.quick[hidden] { display: none; }
.quick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.quick-head b { font-size: 1.2rem; font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; }
.quick-head span { font-size: 0.88rem; font-weight: 600; color: var(--red-hi); font-variant-numeric: tabular-nums; }
.quick-bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.quick-bar i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease); }
.quick-q { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.quick-q.on { display: block; animation: rvx .5s var(--ease) both; }
.quick-q legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 0.98rem; }
.quick-q.done legend::after { content: " \2713"; color: var(--red-hi); }
.quick-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-opts button { min-height: 40px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--chalk); font: 500 0.93rem var(--font); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease); }
.quick-opts button:hover { border-color: var(--red); transform: translateY(-2px); }
.quick-opts button.on { background: var(--red); border-color: var(--red); color: var(--on-red); }
.quick-done { margin: 0; padding: 12px 14px; border-radius: 8px; background: rgba(214, 40, 40, 0.12); border-left: 3px solid var(--red); font-size: 0.95rem; animation: rvx .5s var(--ease) both; }
.quick-done[hidden] { display: none; }
@media (pointer: coarse) { .quick-opts button { min-height: 44px; } }
/* Contact : rappel */
.callback { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.callback > b { font-weight: 600; font-size: 1.05rem; }
.callback-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.callback .btn { min-height: 46px; padding: 10px 20px; }
@media (max-width: 1100px) { .callback-row { grid-template-columns: 1fr 1fr; } .callback .btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 520px) { .callback-row { grid-template-columns: 1fr; } }
/* FAQ de l'accueil */
.hfaq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.hfaq > * { min-width: 0; }
.hfaq .sec-head { margin-bottom: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 110px); }
.hfaq .sec-head .btn { align-self: flex-start; }
@media (max-width: 860px) { .hfaq { grid-template-columns: 1fr; } .hfaq .sec-head { position: static; } }
/* Carte du secteur : points et villes reliés */
.radar .dot { stroke: transparent; stroke-width: 16px; }
.radar .go { cursor: pointer; }
.radar .dot.hot { transform: scale(2.6); fill: var(--red-hi); transition-duration: .2s; }
.radar .town { transition: fill .25s; } .radar .town.hot { fill: var(--red-hi); font-weight: 700; }
.towns li.hot { border-color: var(--red-hi); background: rgba(214, 40, 40, 0.18); }
/* Chiffres clés : un trait rouge se trace au-dessus de chacun */
.stat::before { content: ""; height: 2px; background: var(--red); transform-origin: 0 50%; transition: transform 1.1s var(--ease) calc(0.25s + var(--s, 0) * 130ms); }
.js .stat:not(.in)::before { transform: scaleX(0); }
/* Prestations : la photo se dévoile par un volet */
.svc-stage .shot { opacity: 1; transform: none; visibility: hidden; z-index: 0; transition: visibility 0s .75s; }
.svc-stage .shot.on { visibility: visible; z-index: 1; transition: none; animation: svcwipe .75s var(--ease) both; }
.svc-stage .shot.on img { animation: svczoom 1.5s var(--ease) both; }
@keyframes svcwipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes svczoom { from { scale: 1.14; } to { scale: 1; } }
/* Menu : le pied arrive après les liens */
.menu .menu-foot { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
.menu.open .menu-foot { opacity: 0.9; transform: none; transition-delay: .55s; }
/* Retour en haut */
.totop { position: fixed; z-index: 50; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--coal-2); color: var(--chalk); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .3s, background .2s, border-color .2s; }
.totop.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.totop:hover { background: var(--red); border-color: var(--red); color: var(--on-red); }
.totop svg { width: 20px; height: 20px; }
.menu-open .totop { display: none; }
/* Calculateur de volume (page Terrassement) */
.calc-form { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.calc-form label { justify-content: flex-end; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out > div { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--coal-2); transition: border-color .4s, box-shadow .4s; }
.calc-out span { font-size: 0.88rem; color: var(--mute); }
.calc-out b { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 650; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc.has .calc-out > div:last-child { border-color: rgba(214, 40, 40, 0.6); box-shadow: 0 20px 50px -30px rgba(214, 40, 40, 0.6); }
.calc.has .calc-out > div:last-child b { color: var(--red-hi); }
.calc .btn { align-self: flex-start; }
.calc-note { color: var(--mute); max-width: 62ch; }
@media (max-width: 520px) { .calc-form { grid-template-columns: repeat(3, 1fr); gap: 12px; } .calc-out { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .roll b { animation: none; } .roll b:first-child { opacity: 1; } .svc-stage .shot.on, .svc-stage .shot.on img, .live::before, .live-dot { animation: none; } }

/* v12j : contact en deux onglets, « En 3 clics » ou « Formulaire détaillé » */
.contact-right { gap: 22px; }
.ctabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--coal-2); }
.ctabs[hidden] { display: none; }
.ctabs button { position: relative; z-index: 1; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font: 600 0.95rem var(--font); cursor: pointer; transition: color .25s; }
.ctabs button[aria-pressed="true"] { color: var(--on-red); }
.ctabs i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--red); transition: transform .45s var(--ease); }
.contact-right:not(.q) .ctabs i { transform: translateX(100%); }
.contact-right:not(.q) .quick { display: none; }
.contact-right.q #devis .q-hide { display: none; }
.contact-right.q.need-commune #devis .q-commune, .contact-right.q.show-msg #devis .q-msg { display: flex; }
#devis .q-only { display: none; }
.contact-right.q #devis .q-only { display: block; }
.contact-right.show-msg #devis .q-only { display: none; }
.q-add { padding: 0; border: 0; background: none; color: var(--red-hi); font: 600 0.95rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* v12j : menu plein écran sombre, avec photo et accès direct, à la place de l'aplat rouge */
.menu { background: radial-gradient(90vmax circle at 100% 0%, rgba(214, 40, 40, 0.2), transparent 60%), radial-gradient(70vmax circle at 0% 100%, rgba(214, 40, 40, 0.1), transparent 60%), #16171A; color: #EFEDE7; }
.menu-open .top { color: #EFEDE7; }
.menu-open .logo .et { color: var(--red-hi); }
.menu-open .menu-btn { background: rgba(255, 255, 255, 0.12); color: #EFEDE7; }
.menu :focus-visible { outline-color: #EFEDE7; }
.menu .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-rows: 1fr auto; column-gap: clamp(32px, 6vw, 90px); row-gap: 34px; align-items: center; }
.menu nav { grid-column: 1; counter-reset: m; }
.menu nav a { display: flex; align-items: baseline; gap: clamp(12px, 1.6vw, 22px); opacity: 1; transform: none; color: #EFEDE7; transition: opacity .25s, color .25s, padding-left .4s var(--ease); }
.menu nav a::before { counter-increment: m; content: "0" counter(m); flex: none; width: 2.2em; font-size: clamp(0.8rem, 1.1vw, 0.95rem); font-weight: 600; font-stretch: 100%; letter-spacing: 0.1em; color: var(--red-hi); }
.menu nav a::after { content: ""; align-self: center; flex: 1; max-width: 150px; height: 2px; margin-left: 6px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.menu nav a:hover::after, .menu nav a:focus-visible::after { transform: scaleX(1); }
.menu.open nav a { animation: menuIn .7s var(--ease) backwards; }
.menu.open nav a:nth-child(n) { transition-delay: 0s; }
.menu.open nav a:nth-child(1) { animation-delay: .18s; } .menu.open nav a:nth-child(2) { animation-delay: .24s; } .menu.open nav a:nth-child(3) { animation-delay: .3s; } .menu.open nav a:nth-child(4) { animation-delay: .36s; } .menu.open nav a:nth-child(5) { animation-delay: .42s; } .menu.open nav a:nth-child(6) { animation-delay: .48s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(46px); } }
@media (hover: hover) { .menu nav:hover a:not(:hover) { opacity: 0.34; } .menu nav a:hover { color: #fff; } }
.menu-side { grid-column: 2; grid-row: 1; position: relative; align-self: stretch; min-height: 380px; max-height: 560px; border-radius: 16px; overflow: hidden; background: #202124; opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity .6s, transform .8s var(--ease); }
.menu.open .menu-side { opacity: 1; transform: none; transition-delay: .3s; }
.menu-photo, .menu-photo i { position: absolute; inset: 0; }
.menu-photo i { background-size: cover; background-position: 50% 50%; opacity: 0; transform: scale(1.08); transition: opacity .55s, transform 1.4s var(--ease); }
.menu-photo i.on { opacity: 1; transform: none; }
.menu-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 22, 0.1) 30%, rgba(20, 20, 22, 0.9) 100%); pointer-events: none; }
.menu-card { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: clamp(20px, 2.4vw, 30px); }
.menu-card-k { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(239, 237, 231, 0.7); }
.menu-tel { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; text-decoration: none; color: #fff; font-variant-numeric: tabular-nums; transition: color .2s; }
.menu-tel:hover { color: var(--red-hi); }
.menu-card .live { margin: 0; color: rgba(239, 237, 231, 0.75); }
:root[data-look="light"] .menu .live[data-k="open"] { color: #3DBE78; }
.menu-card .btn { margin-top: 10px; }
.menu-foot { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; padding-top: 22px; border-top: 1px solid rgba(239, 237, 231, 0.14); }
.menu.open .menu-foot { opacity: 1; }
.menu-sub { gap: 8px; font-size: 0.95rem; }
.menu-sub a { padding: 8px 14px; border: 1px solid rgba(239, 237, 231, 0.2); border-radius: 999px; transition: background .2s, border-color .2s; }
.menu-sub a:hover { text-decoration: none; background: var(--red); border-color: var(--red); }
.menu-info { gap: 6px 28px; font-size: 0.9rem; color: rgba(239, 237, 231, 0.6); }
@media (max-width: 860px) {
  .menu .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; align-items: start; row-gap: 28px; }
  .menu-side { grid-column: 1; grid-row: auto; min-height: 0; max-height: none; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(239, 237, 231, 0.12); }
  .menu-photo, .menu-side::after { display: none; }
  .menu-card { position: static; }
  .menu nav a::after { display: none; }
  .menu-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .menu.open nav a { animation: none; } .menu-photo i { transition: none; } }
/* Le bouton du menu ne doit pas hériter du point d'ouverture du menu (--mx / --my) */
.menu .btn { --mx: 0px; --my: 0px; }
/* Menu ouvert : l'en-tête garde un fond sombre pour que les liens ne passent pas dessous au défilement */
.menu-open .top { background: linear-gradient(180deg, #16171A 58%, rgba(22, 23, 26, 0)); border-bottom-color: transparent; }
.menu-open .top::after { display: none; }
