/* Roquelaure Électricité : démonstration de la formule Essentiel (1 page).
   Univers « tableau électrique de nuit » : bleu nuit / anthracite froid, titres en linéale serrée (Public Sans 700), boutons clairs à voyant.
   L'ampoule à filament reste la seule chose chaude du premier écran : sa lueur ambre se détache sur le froid. Ailleurs l'ambre n'est qu'un petit signal (voyants, filets, numéros).
   Fonds bleu nuit pour presque toute la page, 1 seul bloc clair froid (le devis), reliés par des passages doux ; la lueur de l'ampoule s'allume 1 fois au chargement. */

/* Palette froide : #0C0D0F #131518 #1A1D22 (fonds) ; #23272D (cartes) ; #F6F7F8 (ivoire froid) ; #EDEFF1 (bloc clair) ; ambre #F2B45A (signal seulement) */
:root {
  --nuit-0: #0C0D0F;
  --nuit: #131518;
  --nuit-2: #1A1D22;
  --acier: #23272D;
  --blanc: #F6F7F8;
  --clair: #EDEFF1;
  --encre: #15181C;
  --acier-texte: #4A4E56;
  --acier-doux: #A6ADB8;
  --ambre: #F2B45A;
  --ambre-vif: #FFC774;
  --ambre-doux: #FFD9A0;
  --texte-sombre: #EBEDF0;
  --doux-sombre: #BFC3C8;
  --corps-sombre: #DADDE1;
  --filet-sombre: rgba(183, 190, 202, .17);
  --focus: #C8D1E0;
  --titres: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --texte: "Public Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --marge: 18px;
  --tete: 62px;
  --passage: clamp(72px, 10vw, 150px);
  --rayon: 10px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--tete) + 14px); background: var(--nuit-0); }
body { margin: 0; background: var(--nuit); color: var(--texte-sombre); font: 400 1.0625rem/1.62 var(--texte); overflow-wrap: break-word; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blanc); text-decoration-color: var(--ambre); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.num { font-family: var(--titres); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.large { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--marge); }
/* phrase rassurante : blanc gras, surlignée d'un filet d'ambre (petit signal) */
.rassure { color: #fff; font-weight: 700; background: linear-gradient(transparent 66%, rgba(242, 180, 90, .34) 66%, rgba(242, 180, 90, .34) 92%, transparent 92%); }

.evitement { position: absolute; left: 8px; top: -80px; z-index: 30; padding: 12px 16px; background: #fff; color: var(--encre); }
.evitement:focus { top: 8px; }

/* Titres : linéale technique, graisse forte, serrée */
h1, h2, h3 { font-family: var(--titres); font-weight: 700; line-height: 1.08; letter-spacing: -.032em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 1.35rem + 2.9vw, 3.4rem); letter-spacing: -.035em; }
h3 { font-size: 1.32rem; line-height: 1.2; letter-spacing: -.02em; }
/* numéros de section comme sur un tableau électrique : 01, 02, 03... (chiffres tabulaires, petits, ambre) */
body { counter-reset: section; }
.bloc h2 { counter-increment: section; }
h2::before { content: counter(section, decimal-leading-zero); display: block; margin-bottom: 14px; font: 700 .8125rem/1 var(--texte); font-variant-numeric: tabular-nums; letter-spacing: .16em; color: var(--ambre); }
.clair h2::before { color: #8A5206; }
/* un fin trait de circuit à angles droits sous 3 titres (décor, 1 px, acier, un voyant ambre au bout) */
#titre-prestations::after, #titre-deroule::after, #titre-devis::after { content: ""; display: block; width: 260px; max-width: 80%; height: 12px; margin-top: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='12' viewBox='0 0 260 12' fill='none' stroke='%238FA9CF' stroke-opacity='.55' stroke-width='1'%3E%3Cpath d='M4 9.5H64V2.5H120V9.5H251'/%3E%3Ccircle cx='2.5' cy='9.5' r='2'/%3E%3Ccircle cx='254' cy='9.5' r='3.2' fill='%23F2B45A' stroke='none'/%3E%3C/svg%3E") 0 0 / 260px 12px no-repeat; }
#titre-devis::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='12' viewBox='0 0 260 12' fill='none' stroke='%23274B80' stroke-opacity='.6' stroke-width='1'%3E%3Cpath d='M4 9.5H64V2.5H120V9.5H251'/%3E%3Ccircle cx='2.5' cy='9.5' r='2'/%3E%3Ccircle cx='254' cy='9.5' r='3.2' fill='%23E39A2B' stroke='none'/%3E%3C/svg%3E"); }

/* Fonds : bleu nuit (avec un grain léger et des lueurs froides) et un bloc clair froid, reliés par des passages doux */
.ardoise { position: relative; isolation: isolate; background: var(--nuit); color: var(--texte-sombre); }
.ardoise::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--grain) 0 0 / 180px 180px; opacity: .05; mix-blend-mode: overlay; }
.ardoise > .large { position: relative; z-index: 2; }
.clair { position: relative; background: radial-gradient(ellipse 60% 70% at 92% 8%, #FAFAFB 0, rgba(250, 250, 251, 0) 70%), var(--clair); color: var(--encre); --focus: #39475E; }
.clair > .large { position: relative; z-index: 2; }
.clair a { color: var(--encre); text-decoration-color: #D9871A; }
.clair .rassure { color: var(--encre); background-image: linear-gradient(transparent 66%, rgba(230, 150, 40, .42) 66%, rgba(230, 150, 40, .42) 92%, transparent 92%); }
.clair::before, .apres-clair::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--passage); z-index: 0; pointer-events: none; }
.clair::before { background: linear-gradient(to bottom, var(--nuit), color-mix(in srgb, var(--nuit) 82%, var(--clair)) 18%, color-mix(in srgb, var(--nuit) 50%, var(--clair)) 50%, color-mix(in srgb, var(--nuit) 14%, var(--clair)) 80%, var(--clair)); }
.apres-clair::before { background: linear-gradient(to bottom, var(--clair), color-mix(in srgb, var(--clair) 82%, var(--fond-bas, var(--nuit))) 18%, color-mix(in srgb, var(--clair) 50%, var(--fond-bas, var(--nuit))) 50%, color-mix(in srgb, var(--clair) 14%, var(--fond-bas, var(--nuit))) 80%, var(--fond-bas, var(--nuit))); }

/* Boutons : plaque claire (ivoire froid, texte foncé) avec un voyant ambre allumé à gauche, coins arrondis façon interrupteur ; un contour pour le second choix */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 10px 26px; border: 1px solid transparent; border-radius: var(--rayon); font: 700 1.0625rem/1.2 var(--texte); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s; }
.btn .ico { flex: none; }
.btn .num { font-size: 1.25rem; line-height: 1; }
.btn-clair { position: relative; background: linear-gradient(180deg, #FCFDFE 0%, #E9EBEE 100%); color: var(--encre) !important; border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 #fff inset, 0 -3px 0 rgba(21, 24, 28, .1) inset, 0 12px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(12, 13, 15, .5); }
.btn-clair .ico { display: none; }
.btn-clair::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #FFF1D2 0, #FFC774 38%, #E58E1C 100%);
  box-shadow: 0 0 0 3px rgba(21, 24, 28, .13), 0 0 10px 1px rgba(242, 160, 50, .85); transition: box-shadow .25s; }
.btn-clair:hover { transform: translateY(-1px); background: linear-gradient(180deg, #FFFFFF 0%, #F2F4F6 100%); box-shadow: 0 1px 0 #fff inset, 0 -3px 0 rgba(21, 24, 28, .1) inset, 0 16px 34px -10px rgba(0, 0, 0, .75), 0 0 0 1px rgba(12, 13, 15, .5); }
.btn-clair:hover::before, .btn-clair:focus-visible::before { box-shadow: 0 0 0 3px rgba(21, 24, 28, .13), 0 0 16px 3px rgba(242, 160, 50, 1); }
.btn-clair:active { transform: translateY(1px); }
.btn-trait { border: 1.5px solid rgba(209, 214, 223, .5); color: var(--blanc) !important; background: rgba(183, 190, 202, .07); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* petit interrupteur : un rail et une manette, la manette passe de l'autre côté au survol et s'allume (ambre) */
.btn-trait::before { content: ""; flex: none; width: 24px; height: 13px; border: 1.5px solid currentColor; border-radius: 4px; background: linear-gradient(var(--blanc), var(--blanc)) 2px 50% / 8px 6px no-repeat; transition: background-position .25s, border-color .25s; }
.btn-trait:hover::before, .btn-trait:focus-visible::before { background: linear-gradient(var(--ambre), var(--ambre)) calc(100% - 2px) 50% / 8px 6px no-repeat; border-color: var(--ambre); }
.btn-trait:hover { background: rgba(209, 214, 223, .16); border-color: rgba(232, 235, 240, .85); }
.clair .btn-clair { background: linear-gradient(180deg, #2D3139 0%, #15181C 100%); color: var(--blanc) !important; border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 12px 26px -10px rgba(21, 24, 28, .7); }
.clair .btn-clair:hover { background: linear-gradient(180deg, #393E48 0%, #1D2026 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 16px 30px -10px rgba(21, 24, 28, .8); }
.clair .btn-clair::before { box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), 0 0 10px 1px rgba(242, 160, 50, .9); }

/* En-tête collant, en verre bleu nuit au-dessus de la photo */
.tete { position: sticky; top: 0; z-index: 20; }
.tete-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tete); background: linear-gradient(to bottom, rgba(12, 13, 15, .86), rgba(12, 13, 15, .5)); box-shadow: 0 1px 0 rgba(183, 190, 202, .1); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .tete-in { -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
}
.tete-in { max-width: none; padding-inline: max(var(--marge), calc((100% - 1200px) / 2 + var(--marge))); }
.marque { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #fff; text-decoration: none; font: 700 1.2rem/1 var(--titres); letter-spacing: -.03em; }
.marque-lampe { flex: none; color: var(--ambre); }
.marque-metier { color: var(--acier-doux); font-weight: 600; }
.tete-liens { display: none; }
.tete-appel { min-height: 44px; padding: 6px 18px; gap: 10px; }
.tete-appel-num { display: none; }

/* Ouverture : l'ampoule fait presque toute la page. Fond bleu nuit (lueurs froides, quadrillage de plan) ; 3 plans : la photo (détourée, sans fond), la lueur ambre, puis le titre. */
.ouverture { min-height: 100vh; min-height: 100svh; margin-top: calc(var(--tete) * -1); padding-top: 46svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; overflow: clip;
  background:
    radial-gradient(ellipse 80% 55% at 50% 22%, rgba(85, 96, 113, .42) 0, rgba(85, 96, 113, .12) 55%, rgba(85, 96, 113, 0) 100%),
    radial-gradient(ellipse 70% 40% at 0% 100%, rgba(53, 60, 73, .55) 0, rgba(53, 60, 73, 0) 100%),
    linear-gradient(180deg, #101216 0%, #181B20 52%, #131518 100%); }
.ouverture::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(rgba(179, 187, 201, .07) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(179, 187, 201, .07) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 38%, #000 0, rgba(0, 0, 0, .5) 55%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 38%, #000 0, rgba(0, 0, 0, .5) 55%, transparent 100%); }
/* le bas de l'ouverture se fond dans la section suivante */
.ouverture .ciel + .ouverture-in { position: relative; }
.ciel { position: absolute; top: 0; left: 0; right: 0; height: 66svh; z-index: 0; }
.photo { position: absolute; left: 50%; top: 3svh; width: 52svh; height: 52svh; max-width: 125vw; max-height: 125vw; transform: translateX(-50%); }
.photo img { display: block; width: 100%; height: 100%; animation: allumage-photo 1.1s ease-out both; }
.photo::before { content: ""; position: absolute; z-index: 1; left: 49.4%; width: 2px; margin-left: -1px; bottom: 83%; top: -120svh; background: linear-gradient(to bottom, rgba(166, 173, 184, .08), rgba(166, 173, 184, .55) 35%, #B2B8C1); pointer-events: none; }
.ciel::after { content: none; }
/* la lueur : l'ambre du filament déborde sur le bleu nuit ; elle s'allume 1 fois, comme une ampoule qu'on tourne */
.lueur { display: none; }
.photo::after { content: ""; position: absolute; inset: -30%; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 21% 34% at 49.7% 48.1%, rgba(255, 150, 40, .5) 0, rgba(255, 132, 30, .17) 55%, rgba(255, 120, 20, 0) 100%);
  animation: allumage 1.1s ease-out both; }
@keyframes allumage { 0% { opacity: 0; } 22% { opacity: 1; } 34% { opacity: .35; } 48% { opacity: .95; } 60% { opacity: .6; } 100% { opacity: 1; } }
@keyframes allumage-photo { 0% { filter: brightness(.25); } 22% { filter: brightness(1.18); } 34% { filter: brightness(.6); } 48% { filter: brightness(1.08); } 60% { filter: brightness(.8); } 100% { filter: brightness(1); } }
@keyframes fil { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes voyant { 0%, 60% { opacity: 0; } 70% { opacity: 1; } 78% { opacity: .5; } 100% { opacity: 1; } }

.ouverture-in { position: relative; z-index: 2; padding-bottom: 34px; }
.surtitre { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #CACFD6; text-shadow: 0 1px 12px rgba(12, 13, 15, .9); }
.surtitre::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFE3B0 0, var(--ambre) 45%, #C98322 100%); box-shadow: 0 0 0 3px rgba(242, 180, 90, .18), 0 0 10px 1px rgba(242, 180, 90, .7); }
h1 { font-size: clamp(2.55rem, 10.6vw, 3.7rem); line-height: 1; letter-spacing: -.045em; color: #F9FAFB;
  text-shadow: 0 2px 30px rgba(12, 13, 15, .85); }
h1 span { display: block; }
/* « Je réponds. » : blanc, avec un fil d'ambre dessous qui se tire jusqu'à un voyant allumé */
h1 .reponse { position: relative; width: fit-content; padding-bottom: .2em; }
h1 .reponse::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(100% + 26px); border-radius: 2px; transform-origin: left; background: linear-gradient(90deg, rgba(242, 180, 90, .55), var(--ambre) 40%, var(--ambre-vif)); box-shadow: 0 0 14px rgba(242, 170, 70, .55); animation: fil .8s .55s cubic-bezier(.3, .6, .3, 1) both; }
h1 .reponse::before { content: ""; position: absolute; left: calc(100% + 26px); bottom: -5px; width: 13px; height: 13px; margin-left: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #FFF3D6 0, #FFC774 40%, #E58E1C 100%); box-shadow: 0 0 0 3px rgba(242, 180, 90, .2), 0 0 18px 4px rgba(242, 170, 70, .8); animation: voyant 1.5s .3s ease-out both; }
.chapo { margin-top: 22px; max-width: 32em; font-size: 1.125rem; color: #D7DBE0; text-shadow: 0 1px 14px rgba(12, 13, 15, .95); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions .btn { flex: 1 1 250px; }
.reperes { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--filet-sombre); max-width: 32em; font-weight: 600; color: #BBBFC5; }

/* Sections */
.bloc { padding-block: 60px; }
.bloc h2 { margin-bottom: 28px; color: #fff; }
.clair h2 { color: var(--encre); }
.intro { max-width: 36em; }
.ardoise .intro, .ardoise .note { color: var(--corps-sombre); }
#prestations { padding-top: 34px; background: radial-gradient(ellipse 60% 60% at 100% 0, rgba(79, 90, 107, .3) 0, rgba(79, 90, 107, 0) 100%), linear-gradient(180deg, #131518, #15171B); }
.bloc-etapes { background: radial-gradient(ellipse 70% 80% at 0 100%, rgba(72, 81, 96, .3) 0, rgba(72, 81, 96, 0) 100%), var(--nuit-2); box-shadow: 0 -1px 0 rgba(183, 190, 202, .09) inset; }
.bloc-chantiers { background: linear-gradient(180deg, #1A1D22 0%, #131518 22%); }
.zone-bloc { background: var(--nuit); }
#devis { padding-top: calc(var(--passage) + 28px); }

/* Ce que je fais : 4 modules sur rail, une carte par prestation avec son voyant ambre */
.prestations { display: grid; gap: 14px; }
.prestations li { position: relative; padding: 24px 22px 24px 46px; border: 1px solid var(--filet-sombre); border-radius: 14px; background: linear-gradient(180deg, rgba(183, 190, 202, .08), rgba(183, 190, 202, .025)); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 40px -28px rgba(0, 0, 0, .8); transition: border-color .25s, background-color .25s; }
.prestations li::before { content: ""; position: absolute; left: 20px; top: 32px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #FFF1D2 0, #FFC774 40%, #E58E1C 100%); box-shadow: 0 0 0 3px rgba(242, 180, 90, .16), 0 0 12px 2px rgba(242, 170, 70, .65); }
.prestations li:hover { border-color: rgba(209, 214, 223, .34); }
.prestations h3 { margin-bottom: 8px; color: #fff; }
.prestations p { max-width: 38em; color: var(--corps-sombre); }
.repere { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; font-weight: 600; }
.repere-mot { padding: 1px 10px; border: 1px solid rgba(242, 180, 90, .6); border-radius: 6px; color: var(--ambre-doux); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.repere-prix { font-size: 1.5rem; line-height: 1; color: #fff; }
.repere sup, .repere-quoi sup { font-size: .7em; line-height: 0; }

/* Comment ça se passe : 4 étapes sur un même rail, un voyant à chaque étape, sur fond bleu nuit plus clair */
.etapes { counter-reset: etape; position: relative; }
.etapes li { counter-increment: etape; position: relative; padding: 0 0 34px 38px; }
.etapes li:last-child { padding-bottom: 0; }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; margin-bottom: 4px; font: 700 2.4rem/1 var(--titres); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #E5E8ED; }
.etapes li::after { content: ""; position: absolute; left: 0; top: 8px; bottom: -6px; width: 12px;
  background: radial-gradient(circle 5px at 6px 5px, var(--ambre-vif) 0 3px, rgba(242, 170, 70, .35) 3.5px, rgba(242, 170, 70, 0) 5.5px) 0 0 / 12px 12px no-repeat, linear-gradient(to bottom, rgba(166, 173, 184, .7), rgba(166, 173, 184, .15)) 5px 14px / 2px calc(100% - 14px) no-repeat; }
.etapes li:last-child::after { bottom: auto; height: 12px; }
.etapes h3 { margin-bottom: 6px; color: #fff; }
.etapes p { max-width: 34em; color: var(--corps-sombre); }

/* 3 photos : passées au bleu nuit (ombres froides, lumière chaude conservée), coins arrondis, de largeurs inégales */
.chantiers { display: grid; grid-template-columns: 4fr 3fr; gap: 14px; }
.chantier-a { grid-column: 1 / -1; }
.chantier img { width: 100%; object-fit: cover; border-radius: 14px; border: 1px solid rgba(183, 190, 202, .16); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .85); }
.chantier-a img { aspect-ratio: 3 / 2; }
.chantier-b img { aspect-ratio: 1 / 1; }
.chantier-c img { aspect-ratio: 3 / 4; }
.chantier figcaption { margin-top: 10px; font-size: .9375rem; line-height: 1.4; color: var(--doux-sombre); }
.bloc-chantiers .intro { margin-top: -8px; margin-bottom: 30px; }

/* Zone : un crépuscule sur les vignes passé à l'heure bleue, fondu derrière le schéma dessiné et les 12 communes */
.zone-bloc { overflow: hidden; overflow: clip; padding-top: 72px; }
.nuit { position: absolute; top: 0; right: 0; left: 0; height: 450px; z-index: 0; pointer-events: none; }
.nuit picture, .nuit img { width: 100%; height: 100%; }
.nuit img { object-fit: cover; object-position: 50% 42%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 58%, transparent 100%), radial-gradient(ellipse 95% 80% at 60% 46%, #000 38%, rgba(0, 0, 0, .5) 68%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 58%, transparent 100%), radial-gradient(ellipse 95% 80% at 60% 46%, #000 38%, rgba(0, 0, 0, .5) 68%, transparent 100%);
  mask-composite: intersect; }
.zone-in { padding-top: 320px; }
.zone { margin-top: 20px; }
.schema { width: 100%; max-width: 440px; height: auto; margin-inline: auto; font-family: var(--titres); font-weight: 700; }
.schema .cercle { fill: rgba(22, 25, 30, .66); stroke: var(--acier-doux); stroke-width: 2; }
.schema text { paint-order: stroke; stroke: #131518; stroke-width: 7px; stroke-linejoin: round; }
.schema .cote { fill: var(--blanc); font-size: 17px; }
.schema .voisine circle { fill: #131518; stroke: var(--doux-sombre); stroke-width: 2; }
.schema .voisine path { fill: none; stroke: var(--doux-sombre); stroke-width: 2; }
.schema .voisine .axe { stroke: #969BA3; stroke-width: 1.5; stroke-dasharray: 2 4; }
.schema .voisine text { fill: var(--doux-sombre); font-size: 17px; }
.schema .communes-points circle { fill: var(--ambre-vif); }
.schema .communes-points rect { fill: #fff; }
.schema .communes-points text { fill: #fff; font-size: 17px; }
.communes { counter-reset: commune; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-top: 22px; border-top: 1px solid var(--filet-sombre); }
.communes li { counter-increment: commune; display: flex; gap: 8px; align-items: baseline; padding-block: 9px; border-bottom: 1px solid var(--filet-sombre); font: 600 1.0625rem/1.2 var(--texte); letter-spacing: -.01em; color: #fff; }
.communes li::before { content: counter(commune); flex: none; min-width: 1.5em; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ambre); }
.note { margin-top: 18px; max-width: 36em; }

/* Devis : le numéro en grand, puis 1 formulaire sur 1 écran (bloc clair froid) */
.devis-texte .intro { color: var(--acier-texte); }
.devis-tel { margin-block: 6px 10px; }
.lien-tel { display: inline-flex; align-items: center; min-height: 52px; font-size: clamp(2rem, 9.2vw, 4.2rem); line-height: 1; letter-spacing: -.04em; color: var(--encre) !important; text-decoration-color: #E39A2B !important; text-decoration-thickness: 4px; text-underline-offset: .16em; }
.devis { display: grid; gap: 14px; margin-top: 26px; }
.champ label { display: block; margin-bottom: 5px; font-weight: 700; }
.facultatif { font-weight: 400; color: var(--acier-texte); }
.champ input, .champ select, .champ textarea { display: block; width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid #7E838C; border-radius: var(--rayon); background: #fff; color: var(--encre); font: 400 1.0625rem/1.4 var(--texte); box-shadow: 0 1px 0 rgba(21, 24, 28, .04) inset; }
.champ textarea { min-height: 100px; resize: vertical; }
.champ select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(-45deg, transparent 50%, var(--encre) 50%);
  background-position: right 22px center, right 15px center; background-size: 7px 7px; background-repeat: no-repeat; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline-offset: 1px; border-color: #39475E; }
.devis-envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.devis-envoi .btn { flex: 1 1 220px; }
.devis-mention { flex: 1 1 220px; font-size: .9375rem; color: var(--acier-texte); }
.devis-retour { display: none; padding: 14px 16px; border-left: 6px solid #E39A2B; border-radius: 0 var(--rayon) var(--rayon) 0; background: #fff; font-weight: 600; }
.devis-retour.on, .devis-retour:target { display: block; }
.devis-retour:focus-visible { outline-offset: 2px; }

/* Pied */
/* demo.js ajoute 64 px sous la page pour sa pastille : le pied descend dedans, pour que le fond sombre aille jusqu'en bas */
.pied { --fond-bas: var(--nuit-0); background: radial-gradient(ellipse 60% 70% at 100% 100%, rgba(66, 74, 88, .3) 0, rgba(66, 74, 88, 0) 100%), var(--nuit-0); padding-block: calc(var(--passage) + 40px) 104px; margin-bottom: -64px; }
.pied a { color: #fff; }
.pied-grille { display: grid; gap: 30px; }
.pied h2 { margin-bottom: 12px; font-size: 1.4rem; }
.pied h2::before { display: none; }
.pied .pied-nom { font-size: 1.75rem; }
.pied p + p { margin-top: 12px; }
.pied-tel { display: inline-flex; align-items: center; min-height: 44px; font-size: 2rem; letter-spacing: -.035em; text-decoration-thickness: 3px; text-underline-offset: .16em; }
.pied-courriel { display: inline-flex; align-items: center; min-height: 44px; }
.horaires div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-bottom: 1px solid var(--filet-sombre); max-width: 320px; }
.horaires dd { font-weight: 700; text-align: right; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 44px; }
.pied-demo { margin-top: 30px; padding-top: 20px; font-size: .9375rem; color: var(--doux-sombre); }
.pied-demo::before { content: ""; display: block; height: 1px; margin-bottom: 20px; background: var(--filet-sombre); }

/* Petits téléphones : le bouton d'appel tient sur 1 ligne dès 320 px */
@media (max-width: 374px) {
  .btn { padding-inline: 14px; gap: 8px; font-size: 1rem; }
  .btn .num { font-size: 1.125rem; }
  .btn-trait::before { display: none; }
  .tete-appel { padding-inline: 12px; }
}

/* Téléphones peu hauts : le titre et le bouton d'appel restent dans le premier écran */
@media (max-width: 699px) and (max-height: 760px) {
  .ouverture { padding-top: 29svh; }
  .ciel { height: 56svh; }
  .photo { top: 5svh; width: 35svh; height: 35svh; }
  .surtitre { display: none; }
  .chapo { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
  .actions { margin-top: 16px; }
  .actions .btn { min-height: 50px; }
  .reperes { margin-top: 14px; padding-top: 10px; }
}

/* Tablette */
@media (min-width: 600px) {
  :root { --marge: 26px; }
  .actions .btn { flex: 0 1 auto; }
  .devis { grid-template-columns: 1fr 1fr; }
  .champ-large, .devis-envoi, .devis-retour { grid-column: 1 / -1; }
  .devis-envoi .btn { flex: 0 0 auto; }
  .communes { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: clamp(3.2rem, 8vw, 4.8rem); }
}

/* Dès 700 px : l'ampoule prend tout l'écran, le titre se pose à gauche sur le bleu nuit */
@media (min-width: 700px) {
  .ouverture { padding-top: 0; }
  .ciel { height: 100%; }
  .photo { left: auto; right: 4%; top: 50%; width: 96svh; height: 96svh; max-width: 60vw; max-height: 60vw; transform: translateY(-50%); }
  .ouverture { background:
    radial-gradient(ellipse 46% 80% at 74% 46%, rgba(87, 99, 117, .5) 0, rgba(87, 99, 117, .16) 55%, rgba(87, 99, 117, 0) 100%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(53, 60, 73, .6) 0, rgba(53, 60, 73, 0) 100%),
    linear-gradient(180deg, #101216 0%, #181B20 55%, #131518 100%); }
  .ouverture::before { -webkit-mask-image: radial-gradient(ellipse 60% 75% at 70% 45%, #000 0, rgba(0, 0, 0, .5) 55%, transparent 100%); mask-image: radial-gradient(ellipse 60% 75% at 70% 45%, #000 0, rgba(0, 0, 0, .5) 55%, transparent 100%); }
  .ouverture-in { padding-top: calc(var(--tete) + 40px); max-width: 1200px; }
  .ouverture-in > * { max-width: 34rem; }
  .ouverture-in .reperes { max-width: 30rem; }
  .ouverture-in .actions { max-width: 40rem; }
  h1 { max-width: 9em; }
}

@media (min-width: 768px) {
  :root { --tete: 70px; }
  .tete-liens { display: flex; gap: 6px; margin-left: auto; margin-right: 8px; }
  .tete-liens a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .45em; transition: text-decoration-color .2s; }
  .tete-liens a:hover { text-decoration-color: var(--ambre); }
  .tete-appel-mot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tete-appel-num { display: inline; }
  .bloc { padding-block: 84px; }
  #prestations { padding-top: 40px; }
  .bloc h2 { margin-bottom: 36px; }
  .bloc-chantiers .intro { margin-top: -20px; }
  /* 4 lignes larges : le titre, le texte, le repère de prix */
  .prestations li { display: grid; grid-template-columns: 4fr 5fr 3fr; column-gap: 32px; align-items: start; padding-block: 30px; padding-left: 56px; }
  .prestations li::before { left: 26px; top: 40px; }
  .prestations h3 { margin-bottom: 0; font-size: 1.55rem; }
  .repere { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 2px; }
  .repere-prix { font-size: 1.9rem; }
  /* 01 > 02 > 03 > 04 : le rail passe à l'horizontale, le voyant au début de chaque étape */
  .etapes { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 28px; }
  .etapes li { padding: 38px 0 0; }
  .etapes li::before { font-size: 3.4rem; margin-bottom: 10px; }
  .etapes li::after { left: 0; right: -28px; top: 0; bottom: auto; width: auto; height: 12px;
    background: radial-gradient(circle 5px at 6px 6px, var(--ambre-vif) 0 3px, rgba(242, 170, 70, .35) 3.5px, rgba(242, 170, 70, 0) 5.5px) 0 0 / 12px 12px no-repeat, linear-gradient(to right, rgba(166, 173, 184, .7), rgba(166, 173, 184, .15)) 14px 5px / calc(100% - 14px) 2px no-repeat; }
  .etapes li:last-child::after { right: auto; width: 12px; height: 12px; background: radial-gradient(circle 5px at 6px 6px, var(--ambre-vif) 0 3px, rgba(242, 170, 70, .35) 3.5px, rgba(242, 170, 70, 0) 5.5px) 0 0 / 12px 12px no-repeat; }
  .etapes h3 { font-size: 1.5rem; }
  .chantiers { grid-template-columns: 5fr 4fr 3fr; gap: 24px; align-items: start; }
  .chantier-a { grid-column: auto; }
  .pied-grille { grid-template-columns: 5fr 4fr 3fr; column-gap: 40px; }
}

/* Ordinateur : titre et boutons à gauche, l'ampoule allumée à droite */
@media (min-width: 1000px) {
  body { font-size: 1.125rem; }
  .ouverture-in { padding-bottom: 72px; }
  .ouverture-in > * { max-width: 36rem; }
  .ouverture-in .reperes { max-width: 32rem; }
  h1 { font-size: clamp(3.6rem, 5.6vw, 6.2rem); max-width: 9em; }
  .chapo { font-size: 1.1875rem; }
  .zone-bloc { padding-block: 100px; }
  .nuit { left: auto; width: 56%; height: 100%; }
  .nuit img { object-position: 50% 45%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%), linear-gradient(to bottom, transparent 0, #000 18%, #000 74%, transparent 100%), radial-gradient(ellipse 100% 85% at 62% 46%, #000 40%, rgba(0, 0, 0, .55) 70%, transparent 100%);
    -webkit-mask-composite: source-in, source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 38%), linear-gradient(to bottom, transparent 0, #000 18%, #000 74%, transparent 100%), radial-gradient(ellipse 100% 85% at 62% 46%, #000 40%, rgba(0, 0, 0, .55) 70%, transparent 100%);
    mask-composite: intersect, intersect; }
  .zone-in { padding-top: 0; }
  .zone-bloc .zone-in > * { max-width: 560px; }
  .devis-in { display: grid; grid-template-columns: 5fr 6fr; column-gap: 72px; align-items: start; }
  .devis-form .devis { margin-top: 0; }
  .lien-tel { font-size: clamp(3.4rem, 6vw, 5.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo::after, .photo img, h1 .reponse::after, h1 .reponse::before { animation: none; }
  .btn, .btn-trait::before, .prestations li, .tete-liens a { transition: none; }
}

@media print {
  .tete { position: static; }
  .ardoise::after { display: none; }
}

/* Pastille « Démo » repliée sur téléphone : rangée dans la marge libre sous l’en-tête, au coin haut droit (sur la photo, sans texte), pour ne recouvrir ni paragraphe, ni bouton, ni réglage du premier écran. */
@media (max-width: 520px) {
  .demo-pastille.reduite { transform: translate(calc(var(--demo-vw, 100vw) - 100% - 10px), 76px) !important; }
}
