/* CHR Plomberie — V2 sombre premium. ABA DIGITAL.
   Fil rouge : le mitigeur. Bleu = eau froide / sanitaire. Rouge = eau chaude / chauffage. */

:root {
  --nuit: #060B16;
  --nuit-2: #0A1222;
  --surface: #0F1A2E;
  --surface-2: #15223A;
  --ligne: rgba(190, 210, 255, .1);
  --ligne-forte: rgba(190, 210, 255, .2);
  --texte: #EAF0FA;
  --doux: #96A4BD;
  --froid: #3D7BFF;
  --froid-clair: #8DB6FF;
  --chaud: #E3262F;
  --chaud-clair: #FF7A80;
  --vert: #2BD47D;
  --jaune: #FFC93C;
  --degrade: linear-gradient(90deg, var(--froid), var(--chaud));
  --r: 18px;
  --r-petit: 10px;
  --marge: clamp(16px, 4.5vw, 64px);
  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--nuit); color: var(--texte);
  font-family: 'Archivo', system-ui, sans-serif; font-variation-settings: 'wdth' 100;
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1; font-variation-settings: 'wdth' 72; letter-spacing: -.01em; }
::selection { background: var(--froid); color: #fff; }
:focus-visible { outline: 3px solid var(--froid-clair); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain de pellicule sur tout le site */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } }

.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 var(--marge); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.titre { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; font-variation-settings: 'wdth' 64; line-height: .95; max-width: 20ch; }
.titre-moyen { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 850; font-variation-settings: 'wdth' 68; line-height: 1; }
.intro-texte { margin-top: 22px; color: var(--doux); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 54ch; }
.degrade-texte { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .2s, border-color .2s;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.btn { overflow: hidden; isolation: isolate; will-change: transform; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translate(var(--bx, 0), var(--by, -3px)) scale(1.05); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover svg { animation: sonne .5s ease; }
@keyframes sonne { 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn-appel { background: var(--chaud); color: #fff; box-shadow: 0 0 0 0 rgba(227,38,47,.5), 0 10px 40px -10px rgba(227,38,47,.8); }
.btn-appel:hover { box-shadow: 0 0 0 6px rgba(227,38,47,.18), 0 14px 50px -10px rgba(227,38,47,.9); }
.btn-froid { background: var(--froid); color: #fff; box-shadow: 0 10px 40px -12px rgba(61,123,255,.9); }
.btn-froid:hover { box-shadow: 0 0 0 6px rgba(61,123,255,.2), 0 14px 50px -10px rgba(61,123,255,1); }
.btn-verre { background: rgba(255,255,255,.06); border-color: var(--ligne-forte); color: var(--texte); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-verre:hover { background: rgba(255,255,255,.12); }
.btn-petit { min-height: 44px; padding: 0 1.1em; font-size: .97rem; }
.btn-plein { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- Intro (première visite) ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--nuit); display: grid; place-items: center; }
.intro-bloc { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.intro-marque { width: clamp(90px, 14vw, 150px); height: auto; border-radius: 50%; opacity: 0; transform: scale(.7); animation: marque .9s .15s var(--ease) forwards; filter: drop-shadow(0 0 30px rgba(61,123,255,.45)); }
@keyframes marque { to { opacity: 1; transform: none; } }
.intro-tuyau { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.3s .15s cubic-bezier(.65,0,.35,1) forwards; }
.intro-raccord { opacity: 0; transform-box: fill-box; transform-origin: center; animation: raccord .4s forwards; }
.intro-raccord:nth-of-type(1) { animation-delay: .55s; }
.intro-raccord:nth-of-type(2) { animation-delay: 1.05s; }
.intro-goutte { opacity: 0; animation: chute .7s 1.35s cubic-bezier(.5,0,.75,0) forwards, rebond .5s 2.05s var(--ease) forwards; }
.intro-nom { font-weight: 900; font-variation-settings: 'wdth' 112; font-size: clamp(3.4rem, 10vw, 7rem); letter-spacing: -.02em; line-height: 1; clip-path: inset(0 100% 0 0); animation: nom .8s .75s var(--ease) forwards; }
.intro-nom small { display: block; margin-top: .35em; font-size: .2em; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--doux); font-variation-settings: 'wdth' 100; }
.intro.sort { animation: sortie .8s var(--ease) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes raccord { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes chute { from { opacity: 1; transform: translateY(-34px); } to { opacity: 1; transform: none; } }
@keyframes rebond { 40% { transform: scale(1.15, .85); } to { opacity: 1; transform: none; } }
@keyframes nom { to { clip-path: inset(0 0 0 0); } }
@keyframes sortie { to { clip-path: inset(0 0 100% 0); } }

/* ---------- Rideau de transition entre pages ---------- */
.rideau { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: grid; grid-template-columns: 1fr 1fr; }
.rideau span { transform: scaleY(0); }
.rideau span:first-child { background: var(--froid); transform-origin: top; }
.rideau span:last-child { background: var(--chaud); transform-origin: bottom; }
.rideau.ferme span { transform: scaleY(1); transition: transform .45s var(--ease); }
.rideau.ouvre span { transform: scaleY(0); transition: transform .6s var(--ease); }

/* ---------- Tuyau de défilement ---------- */
.tuyau { position: fixed; top: 0; bottom: 0; left: 14px; width: 3px; z-index: 40; background: rgba(255,255,255,.05); border-radius: 3px; pointer-events: none; }
.tuyau-eau { position: absolute; top: 0; left: 0; right: 0; height: 0; background: linear-gradient(var(--froid), var(--chaud) 100vh); background-attachment: fixed; border-radius: 3px; }
.tuyau-goutte { position: absolute; left: 50%; width: 11px; height: 11px; margin: -5px 0 0 -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px var(--froid), 0 0 30px 8px rgba(227,38,47,.4); }
@media (max-width: 700px) { .tuyau { left: 5px; width: 2px; } .tuyau-goutte { width: 7px; height: 7px; margin: -3px 0 0 -3.5px; } }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px; padding: 16px var(--marge);
  transition: background-color .3s, padding .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.entete.est-defilee { background: rgba(6, 11, 22, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); padding-top: 10px; padding-bottom: 10px; border-bottom-color: var(--ligne); }
.marque { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.marque img { width: 40px; height: 40px; border-radius: 50%; filter: drop-shadow(0 0 14px rgba(61,123,255,.35)); transition: transform .5s var(--ease); }
.marque:hover img { transform: rotate(-8deg) scale(1.08); }
.marque-nom { font-weight: 900; font-size: 1.55rem; font-variation-settings: 'wdth' 112; letter-spacing: .12em; }
.marque-metier { font-size: .66rem; line-height: 1.2; letter-spacing: .02em; color: var(--doux); font-weight: 600; border-left: 1px solid var(--ligne-forte); padding-left: 11px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-groupe > button {
  font: inherit; font-weight: 600; font-size: .97rem; color: var(--texte); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: 999px; transition: background-color .2s;
}
.nav > a:hover, .nav-groupe > button:hover, .nav > a[aria-current="page"] { background: rgba(255,255,255,.07); }
.nav-groupe { position: relative; }
.nav-groupe > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sous-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 330px; padding: 10px;
  background: rgba(15, 26, 46, .96); border: 1px solid var(--ligne-forte); border-radius: var(--r);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav-groupe:hover .sous-menu, .nav-groupe:focus-within .sous-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sous-menu a { display: grid; grid-template-columns: 12px 1fr; gap: 4px 14px; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.sous-menu a:hover { background: rgba(255,255,255,.06); }
.sous-menu a::before { content: ""; grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--c, var(--froid)); box-shadow: 0 0 12px var(--c, var(--froid)); }
.sous-menu strong { font-size: 1rem; }
.sous-menu span { font-size: .87rem; color: var(--doux); }
.entete .btn-appel { margin-left: 8px; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ligne-forte); background: rgba(255,255,255,.05); cursor: pointer; position: relative; }
.burger span, .burger span::before { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--texte); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span { top: 18px; }
.burger span::before { content: ""; left: 0; right: 0; top: 8px; }
.menu-ouvert .burger span { transform: translateY(4px) rotate(45deg); }
.menu-ouvert .burger span::before { transform: translateY(-8px) rotate(-90deg); }
@media (max-width: 1020px) {
  .nav, .entete > .btn-appel { display: none; }
  .burger { display: block; }
}
@media (max-width: 420px) { .marque-metier { display: none; } }

.menu-mobile {
  position: fixed; inset: 0; z-index: 55; background: var(--nuit-2);
  padding: 100px var(--marge) 40px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .6s var(--ease); visibility: hidden;
}
.menu-ouvert .menu-mobile { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu-mobile a.lien { font-size: 2.3rem; font-weight: 850; font-variation-settings: 'wdth' 66; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--ligne); display: flex; justify-content: space-between; align-items: center; }
.menu-mobile a.lien small { font-size: .9rem; font-weight: 600; color: var(--doux); font-variation-settings: 'wdth' 100; }
.menu-mobile .btn { margin-top: 24px; }
.menu-ouvert { overflow: hidden; }

/* ---------- Accueil : ouverture vidéo ---------- */
.scene { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: var(--nuit); }
.scene-eau { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; background: var(--nuit); }
.chute { position: absolute; top: 0; z-index: -1; width: 26px; margin-left: -13px; opacity: 0; pointer-events: none; filter: drop-shadow(0 0 14px rgba(61,123,255,.8)); }
.chute.tombe { animation: chute-tombe 1.05s cubic-bezier(.55, 0, 1, .45) forwards; }
@keyframes chute-tombe { 0% { opacity: 0; transform: translateY(-60px) scaleY(.9); } 10% { opacity: 1; } 92% { opacity: 1; transform: translateY(calc(var(--arrivee) - 30px)) scaleY(1.15); } 100% { opacity: 0; transform: translateY(var(--arrivee)) scale(1.4, .4); } }
.scene-voile { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,11,22,.35) 0%, transparent 22%, transparent 48%, rgba(6,11,22,.55) 72%, var(--nuit) 100%); }

/* accueil : le texte en bas, l'eau occupe l'écran */
.scene { align-items: end; }
.scene-contenu { position: relative; padding: 140px var(--marge) clamp(28px, 5vh, 56px); max-width: var(--max); margin: 0 auto; width: 100%; display: grid; gap: clamp(28px, 4vh, 44px); pointer-events: none; }
.scene-contenu a, .scene-contenu button { pointer-events: auto; }
.titre-eau { display: grid; line-height: .86; font-weight: 850; letter-spacing: -.02em; text-wrap: nowrap; }
.titre-eau > span { display: block; white-space: nowrap; }
.ligne-plein { font-size: clamp(3rem, 9.6vw, 9.4rem); font-variation-settings: 'wdth' 62; }
.ligne-remplit { font-size: clamp(3rem, 9.6vw, 9.4rem); font-variation-settings: 'wdth' 62; padding-left: .9em; transition: --niveau 2.4s cubic-bezier(.2,.7,.2,1); }
.ligne-remplit .lettre { color: transparent; -webkit-text-stroke: 1.5px rgba(232,238,250,.55);
  background: var(--degrade) no-repeat; background-size: var(--w, 100%) var(--niveau); background-position: calc(-1 * var(--x, 0px)) 100%;
  -webkit-background-clip: text; background-clip: text; padding-bottom: .2em; margin-bottom: -.2em; }
.ligne-remplit.plein { --niveau: 100%; }
@property --niveau { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
.ligne-lieu { margin-top: .5em; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 600; font-variation-settings: 'wdth' 100; letter-spacing: 0; line-height: 1.2; color: #DCE4F1; }
.ligne-lieu em { font-style: normal; color: var(--doux); }
.titre-eau .lettre { display: inline-block; will-change: transform; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.titre-eau .lettre.tombe { animation: lettre-tombe .9s cubic-bezier(.3,1.4,.5,1) backwards; animation-delay: var(--d); }
@keyframes lettre-tombe { from { transform: translateY(-.5em) scaleY(1.25); opacity: 0; filter: blur(6px); } 60% { opacity: 1; filter: none; } }
.scene-bas { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px 40px; padding-top: 22px; border-top: 1px solid var(--ligne-forte); }
.faits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.faits li { padding: 0 26px; border-left: 1px solid var(--ligne-forte); color: var(--doux); font-size: .95rem; line-height: 1.3; }
.faits li:first-child { padding-left: 0; border-left: 0; }
.faits strong { display: block; color: var(--texte); font-size: 1.05rem; }
.scene-bas { align-items: center; }
@media (max-width: 700px) {
  .ligne-plein, .ligne-remplit { font-size: clamp(2.6rem, 15vw, 4.4rem); }
  .ligne-remplit { padding-left: 0; -webkit-text-stroke-width: 1px; }
  .faits li { padding: 0 14px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .ligne-remplit { --niveau: 100%; transition: none; } .titre-eau .lettre.tombe { animation: none; } }

/* cartes de verre en 3D */
.cartes3d { position: relative; height: 420px; perspective: 1200px; }
.cartes3d-scene { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .4s var(--ease); }
.carte3d { position: absolute; width: 270px; padding: 20px 22px; border-radius: 20px; background: linear-gradient(140deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.2); animation: flotte 7s ease-in-out infinite; }
.carte3d small { display: block; font-size: .82rem; color: #B9C4D6; font-weight: 600; }
.carte3d strong { display: block; margin-top: 4px; font-size: 1.9rem; font-weight: 850; font-variation-settings: 'wdth' 74; line-height: 1.05; }
.carte3d p { margin-top: 6px; font-size: .88rem; color: #C9D3E4; }
.carte3d.c1 { top: 10px; left: 20px; transform: translateZ(60px); }
.carte3d.c2 { top: 150px; right: 0; transform: translateZ(120px); animation-delay: -2.5s; }
.carte3d.c3 { bottom: 10px; left: 60px; transform: translateZ(30px); animation-delay: -5s; }
@keyframes flotte { 50% { translate: 0 -12px; } }
.jauge { margin-top: 12px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.jauge i { display: block; height: 100%; width: 72%; border-radius: 6px; background: var(--degrade); animation: jauge 3.5s var(--ease) infinite alternate; }
@keyframes jauge { from { width: 35%; } to { width: 85%; } }
.carte3d .icone { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; background: rgba(255,255,255,.1); }
.carte3d .icone svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte3d.c2 .icone { background: rgba(61,123,255,.35); }
.carte3d.c3 .icone { background: rgba(227,38,47,.35); }
@media (max-width: 1020px) {
  .cartes3d { height: auto; perspective: none; }
  .cartes3d-scene { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; transform: none !important; }
  .carte3d { position: static; width: auto; padding: 12px; border-radius: 14px; transform: none !important; animation: none; }
  .carte3d .icone, .carte3d p, .jauge { display: none; }
  .carte3d small { font-size: .72rem; }
  .carte3d strong { font-size: 1.15rem; }
}
.defile-indice { position: absolute; right: var(--marge); bottom: 40px; width: 26px; height: 42px; border: 2px solid var(--ligne-forte); border-radius: 14px; }
.defile-indice::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--texte); animation: indice 1.8s infinite; }
@keyframes indice { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 700px) { .defile-indice { display: none; } }


/* ---------- Film : une nuit à Grenoble ---------- */
.film { position: relative; height: 100svh; min-height: 560px; background: var(--nuit); }
.film-ecran { position: relative; height: 100%; overflow: hidden; }
.film-plan { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.film-plan.actif { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.film-plan img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: saturate(1.1) contrast(1.05); }
.film-plan.actif img { animation: film-zoom calc(var(--duree) + 1.5s) linear forwards; }
@keyframes film-zoom { to { transform: scale(1.16); } }
.film-plan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,11,22,.75) 0%, rgba(0,0,0,.1) 24%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.85)); }
.film-texte { position: absolute; left: var(--marge); right: var(--marge); bottom: calc(9vh + 7vh); z-index: 4; max-width: 900px; pointer-events: none; }
.film-texte .actions { pointer-events: auto; margin-top: 26px; }
.film-plan.actif .film-texte > * { animation: film-texte .8s cubic-bezier(.2,.8,.2,1) both; }
.film-plan.actif .film-texte > :nth-child(2) { animation-delay: .15s; }
.film-plan.actif .film-texte > :nth-child(3) { animation-delay: .3s; }
@keyframes film-texte { from { opacity: 0; transform: translateY(24px); } }
.film-heure { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; font-variation-settings: 'wdth' 62; line-height: .85; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.film-texte p { margin-top: 14px; font-size: clamp(1.1rem, 1.9vw, 1.5rem); font-weight: 600; max-width: 32ch; color: #E3E9F3; }
.film-fin .film-heure { display: inline-block; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
/* zones de toucher : gauche = revenir, droite = avancer */
.film-zone { position: absolute; top: 0; bottom: 0; z-index: 3; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.film-zone.prec { left: 0; width: 30%; cursor: w-resize; }
.film-zone.suiv { right: 0; width: 70%; cursor: e-resize; }
.film-zone:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
/* barre du haut : segments + commandes */
.film-haut { position: absolute; left: var(--marge); right: var(--marge); top: 96px; z-index: 5; display: grid; gap: 14px; }
.film-segments { display: flex; gap: 6px; }
.film-segments button { flex: 1; height: 32px; padding: 14px 0; margin: -7px 0; border: 0; background: none; cursor: pointer; }
.film-segments i { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; }
.film-segments i::after { content: ""; position: absolute; inset: 0; background: #fff; border-radius: inherit; transform: scaleX(var(--p, 0)); transform-origin: left; }
.film-segments .vu i::after { --p: 1; }
.film-commandes { display: flex; justify-content: flex-end; gap: 8px; }
.film-commandes button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(6,11,22,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.film-commandes button:hover { background: rgba(6,11,22,.75); }
.film-commandes svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.film-commandes [hidden] { display: none; }
.film-pause { width: 36px; padding: 0 !important; justify-content: center; }
.film-pause .ico-lecture { display: none; fill: #fff; stroke: none; }
.film.en-pause .film-pause .ico-pause { display: none; }
.film.en-pause .film-pause .ico-lecture { display: block; }
/* en pause : tout se fige */
.film.en-pause .film-plan img { animation-play-state: paused; }
.film-bande { position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 3; }
.film-bande.bas { bottom: 0; display: flex; align-items: center; padding: 0 var(--marge); font-size: .82rem; color: #8A93A3; pointer-events: none; }
.film-rec { display: inline-flex; align-items: center; gap: 8px; }
@keyframes rec { 50% { opacity: 0; } }
.film-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chaud); animation: rec 1.2s steps(2) infinite; }
@media (max-width: 1020px) {
  .film-bande.bas { display: none; }
  .film-haut { top: 84px; }
  .film-texte { bottom: calc(160px + env(safe-area-inset-bottom)); }
  .film-texte .actions { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) { .film-plan, .film-plan.actif { transition: none; } .film-plan.actif img, .film-plan.actif .film-texte > * { animation: none; } }

/* ---------- Robinets (services) ---------- */
.robinets { display: grid; gap: 18px; margin-top: 56px; }
@media (min-width: 900px) { .robinets { grid-template-columns: 1fr 1fr; } }
.robinet {
  --c: var(--froid); position: relative; overflow: hidden; border-radius: var(--r); min-height: 560px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; text-decoration: none;
  border: 1px solid var(--ligne); isolation: isolate;
}
.robinet.chaud { --c: var(--chaud); }
.robinet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); filter: grayscale(.4) contrast(1.1); }
.robinet::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(6,11,22,.92) 75%), linear-gradient(180deg, color-mix(in srgb, var(--c) 40%, transparent), transparent 50%); mix-blend-mode: normal; }
.robinet::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 35%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; }
.robinet:hover::after { opacity: 1; }
.robinet:hover img { transform: scale(1.06); }
.robinet-tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--c); font-size: 1rem; }
.robinet-tag::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.robinet h3 { margin-top: 12px; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 900; font-variation-settings: 'wdth' 64; }
.robinet ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.robinet li { padding: 7px 14px; border-radius: 999px; font-size: .93rem; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid var(--ligne-forte); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.robinet-voir { margin-top: 26px; font-weight: 700; display: inline-flex; gap: 10px; align-items: center; }
.robinet-voir::after { content: ""; width: 28px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.robinet:hover .robinet-voir::after { width: 48px; }

/* ---------- Simulateur ---------- */
.simu { display: grid; gap: 22px; margin-top: 50px; }
@media (min-width: 980px) { .simu { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.simu-etapes { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); display: grid; gap: 30px; }
.simu-q { display: grid; gap: 14px; }
.simu-q legend, .simu-q > p { font-weight: 700; font-size: 1.05rem; padding: 0; display: flex; gap: 12px; align-items: center; }
.simu-q legend b, .simu-q > p b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--ligne-forte); font-size: .85rem; }
fieldset.simu-q { border: 0; margin: 0; padding: 0; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.tuiles.deux { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
@media (max-width: 420px) { .tuile span { padding: 13px; font-size: .92rem; } }
.tuile { position: relative; }
.tuile input { position: absolute; opacity: 0; inset: 0; }
.tuile span { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--ligne-forte); background: rgba(255,255,255,.03); cursor: pointer; font-weight: 650; font-size: .97rem; line-height: 1.25; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.tuile svg { width: 26px; height: 26px; fill: none; stroke: var(--froid-clair); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tuile.chaud svg { stroke: var(--chaud-clair); }
.tuile span:hover { border-color: rgba(255,255,255,.35); }
.tuile input:checked + span { border-color: var(--froid); background: rgba(61,123,255,.14); box-shadow: inset 0 0 0 1px var(--froid); }
.tuile.chaud input:checked + span { border-color: var(--chaud); background: rgba(227,38,47,.13); box-shadow: inset 0 0 0 1px var(--chaud); }
.tuile input:focus-visible + span { outline: 3px solid var(--froid-clair); outline-offset: 2px; }
.champ { width: 100%; font: inherit; color: var(--texte); background: rgba(255,255,255,.04); border: 1px solid var(--ligne-forte); border-radius: 12px; padding: 15px 16px; transition: border-color .2s; }
.champ:focus { outline: none; border-color: var(--froid); box-shadow: 0 0 0 3px rgba(61,123,255,.25); }
.champ::placeholder { color: #6E7C95; }
textarea.champ { resize: vertical; min-height: 110px; }

.simu-resultat { position: sticky; top: 100px; border-radius: var(--r); padding: clamp(24px, 3vw, 36px); background: radial-gradient(120% 80% at 0% 0%, rgba(61,123,255,.25), transparent 60%), radial-gradient(120% 80% at 100% 100%, rgba(227,38,47,.22), transparent 60%), var(--surface); border: 1px solid var(--ligne-forte); overflow: hidden; }
.simu-resultat h3 { font-size: 1rem; font-weight: 700; color: var(--doux); font-variation-settings: 'wdth' 100; }
.simu-prix { margin-top: 10px; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 900; font-variation-settings: 'wdth' 64; line-height: 1; font-variant-numeric: tabular-nums; }
.simu-prix small { font-size: .4em; color: var(--doux); font-weight: 700; }
.simu-ligne { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ligne); font-size: .98rem; }
.simu-ligne:first-of-type { margin-top: 22px; border-top: 1px solid var(--ligne); }
.simu-ligne span { color: var(--doux); }
.simu-ligne strong { text-align: right; }
.simu-inclus { margin-top: 16px; font-size: .95rem; color: #C9D3E4; }
.simu-note { margin-top: 14px; font-size: .82rem; color: var(--doux); }
.simu-resultat .btn { margin-top: 22px; }
.simu-resultat .btn + .btn { margin-top: 10px; }

/* ---------- Carte ---------- */
.carte-bloc { display: grid; gap: 18px; margin-top: 50px; }
@media (min-width: 980px) { .carte-bloc { grid-template-columns: 1fr 360px; } }
.carte { height: clamp(420px, 62vh, 640px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--ligne-forte); background: var(--surface); }
.carte .leaflet-container { background: #0b1220; font-family: inherit; }
.carte .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) brightness(.82) contrast(1.15) saturate(.3); }
.carte-panneau { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.carte-panneau label { font-weight: 700; }
.carte-reponse { min-height: 140px; border-radius: 14px; padding: 18px; background: var(--surface-2); border: 1px solid var(--ligne); }
.carte-reponse .nom { font-size: 1.6rem; font-weight: 850; font-variation-settings: 'wdth' 70; }
.carte-reponse .delai { margin-top: 8px; font-size: 2.6rem; font-weight: 900; font-variation-settings: 'wdth' 64; line-height: 1; }
.carte-reponse .delai small { font-size: .45em; color: var(--doux); font-weight: 700; }
.carte-reponse p { margin-top: 8px; color: var(--doux); font-size: .95rem; }
.carte-reponse a { color: var(--froid-clair); font-weight: 700; }
.point-lp38 { width: 14px; height: 14px; border-radius: 50%; background: var(--froid); box-shadow: 0 0 0 4px rgba(61,123,255,.25), 0 0 18px var(--froid); }
.point-lp38.actif { background: var(--chaud); box-shadow: 0 0 0 6px rgba(227,38,47,.3), 0 0 24px var(--chaud); }
.point-base { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.15), 0 0 30px #fff; }
.leaflet-tooltip.etiquette { background: rgba(15,26,46,.95); color: var(--texte); border: 1px solid var(--ligne-forte); border-radius: 8px; font-weight: 600; box-shadow: none; }
.leaflet-tooltip.etiquette::before { display: none; }
.leaflet-control-attribution { background: rgba(6,11,22,.7) !important; color: #6E7C95 !important; }
.leaflet-control-attribution a { color: #96A4BD !important; }
.leaflet-bar a { background: var(--surface-2) !important; color: var(--texte) !important; border-color: var(--ligne) !important; }

/* ---------- Étapes ---------- */
.etapes { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 14px; counter-reset: e; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etapes li { counter-increment: e; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--ligne); position: relative; overflow: hidden; }
.etapes li::before { content: counter(e); display: block; font-size: 4.4rem; font-weight: 900; font-variation-settings: 'wdth' 62; line-height: 1; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.etapes h3 { margin-top: 18px; font-size: 1.6rem; }
.etapes p { margin-top: 10px; color: var(--doux); }

/* ---------- Avis ---------- */
.avis-liste { display: grid; gap: 14px; margin-top: 50px; }
@media (min-width: 900px) { .avis-liste { grid-template-columns: repeat(3, 1fr); } }
.avis-carte { margin: 0; padding: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 16px; }
.etoiles { color: var(--jaune); letter-spacing: 3px; }
.avis-carte blockquote { margin: 0; font-size: 1.12rem; line-height: 1.55; }
.avis-carte figcaption { margin-top: auto; color: var(--doux); font-size: .9rem; font-weight: 600; }
.note-maquette { margin-top: 14px; font-size: .88rem; color: var(--doux); }

/* ---------- Appel final ---------- */
.final { text-align: center; padding: clamp(100px, 16vw, 200px) var(--marge); position: relative; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 30% 50%, rgba(61,123,255,.28), transparent 70%), radial-gradient(40% 60% at 70% 50%, rgba(227,38,47,.24), transparent 70%); }
.final h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 900; font-variation-settings: 'wdth' 62; line-height: .9; max-width: 14ch; margin: 0 auto; }
.final .tel-geant { display: inline-block; margin-top: 30px; font-size: clamp(2rem, 5.5vw, 4.4rem); font-weight: 900; font-variation-settings: 'wdth' 64; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: -.01em; transition: text-shadow .3s; }
.final .tel-geant:hover { text-shadow: 0 0 40px rgba(227,38,47,.7); }
.final p { margin-top: 18px; color: var(--doux); }

/* ---------- En-tête des pages intérieures ---------- */
.page-tete { position: relative; min-height: 72svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.page-tete img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; z-index: -2; will-change: transform; }
.page-tete::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,11,22,.35), rgba(6,11,22,.55) 50%, var(--nuit)), linear-gradient(90deg, color-mix(in srgb, var(--c, var(--froid)) 30%, transparent), transparent 60%); }
.page-tete .conteneur { padding-top: 150px; padding-bottom: 70px; width: 100%; }
.fil { display: flex; gap: 10px; font-size: .9rem; color: var(--doux); font-weight: 600; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--texte); }
.page-tete h1 { margin-top: 18px; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 900; font-variation-settings: 'wdth' 62; line-height: .88; max-width: 13ch; }
.page-tete .chapo { margin-top: 22px; color: #C9D3E4; max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

/* ---------- Grille de prestations ---------- */
.presta-grille { display: grid; gap: 14px; margin-top: 50px; }
@media (min-width: 760px) { .presta-grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .presta-grille { grid-template-columns: repeat(3, 1fr); } }
.presta { --c: var(--froid); position: relative; padding: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--ligne); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.presta.chaud { --c: var(--chaud); }
.presta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 20%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.presta:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.presta:hover::after { opacity: 1; }
.presta svg { width: 40px; height: 40px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent)); }
.presta h3 { margin-top: 22px; font-size: 1.8rem; }
.presta p { margin-top: 10px; color: var(--doux); }
.presta ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.presta li { display: flex; gap: 10px; }
.presta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-top: 9px; flex: none; }

/* ---------- Bons gestes (urgence) ---------- */
.choix { display: flex; gap: 10px; margin-top: 40px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.choix::-webkit-scrollbar { display: none; }
.choix button { flex: none; font: inherit; font-weight: 700; padding: 14px 22px; border-radius: 999px; cursor: pointer; color: var(--texte); background: rgba(255,255,255,.04); border: 1px solid var(--ligne-forte); transition: all .2s; }
.choix button:hover { border-color: rgba(255,255,255,.4); }
.choix button[aria-selected="true"] { background: #fff; color: var(--nuit); border-color: #fff; }
.choix .choix-gaz[aria-selected="true"] { background: var(--jaune); border-color: var(--jaune); }
.conseils { margin-top: 28px; display: grid; gap: 22px; }
@media (min-width: 900px) { .conseils { grid-template-columns: 1.5fr 1fr; gap: 40px; } }
.gestes { list-style: none; padding: 0; margin: 0; counter-reset: g; }
.gestes li { counter-increment: g; display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--ligne); }
.gestes li::before { content: counter(g); font-weight: 900; font-variation-settings: 'wdth' 62; font-size: 2.8rem; line-height: 1; color: var(--froid-clair); }
.gestes strong { display: block; font-size: 1.2rem; }
.gestes span { color: var(--doux); }
.gestes.est-change li { animation: entree .45s var(--ease) both; }
.gestes.est-change li:nth-child(2) { animation-delay: .06s; }
.gestes.est-change li:nth-child(3) { animation-delay: .12s; }
.gestes.est-change li:nth-child(4) { animation-delay: .18s; }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } }
.conseils-fin { background: var(--surface); border: 1px solid var(--ligne-forte); border-radius: var(--r); padding: 28px; align-self: start; }
.conseils-fin p { color: #D5DDEA; font-size: 1.08rem; }
.conseils-fin .btn { margin-top: 20px; width: 100%; }
.conseils-fin.est-gaz { background: rgba(255,201,60,.08); border-color: rgba(255,201,60,.4); }
.conseils-fin.est-gaz .btn { background: var(--jaune); color: var(--nuit); box-shadow: none; }

/* ---------- Avant / après ---------- */
.avap { position: relative; margin-top: 50px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--ligne-forte); user-select: none; touch-action: pan-y; --pos: 50%; }
@media (max-width: 700px) { .avap { aspect-ratio: 4 / 5; } }
.avap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avap .avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: sepia(.25) contrast(.95); }
.avap-poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(255,255,255,.6); }
.avap-poignee::after { content: ""; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(6,11,22,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/24px no-repeat; border: 2px solid #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.avap input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.avap-etiquette { position: absolute; top: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(6,11,22,.65); font-weight: 700; font-size: .9rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.avap-etiquette.g { left: 18px; }
.avap-etiquette.d { right: 18px; }

/* ---------- Chronologie (rénovation) ---------- */
.chrono { list-style: none; margin: 56px 0 0; padding: 0; position: relative; }
.chrono::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--froid), var(--chaud)); }
.chrono li { position: relative; padding: 0 0 44px 70px; }
.chrono li::before { content: ""; position: absolute; left: 10px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--nuit); border: 3px solid var(--froid-clair); box-shadow: 0 0 16px rgba(61,123,255,.6); }
.chrono .duree { font-size: .9rem; font-weight: 700; color: var(--froid-clair); }
.chrono h3 { margin-top: 6px; font-size: 1.8rem; }
.chrono p { margin-top: 8px; color: var(--doux); max-width: 56ch; }

/* ---------- Bloc deux colonnes ---------- */
.duo { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 80px; } }
.duo-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--ligne); }
.duo-photo img { width: 100%; height: 100%; object-fit: cover; }
.liste-coches { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.liste-coches li { display: flex; gap: 14px; align-items: baseline; font-size: 1.08rem; }
.liste-coches li::before { content: ""; width: 18px; height: 18px; flex: none; transform: translateY(3px); background: var(--degrade); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Communes ---------- */
.communes { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.communes a, .communes span { display: block; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--ligne); font-weight: 600; font-size: .95rem; text-decoration: none; }
.communes a { border-color: rgba(61,123,255,.5); color: var(--froid-clair); }
.communes a:hover { background: rgba(61,123,255,.15); }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq details:first-of-type { margin-top: 40px; border-top: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative; font-weight: 700; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: linear-gradient(currentColor, currentColor) center/100% 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--doux); max-width: 64ch; }

/* ---------- Texte légal ---------- */
.texte-legal { max-width: 760px; }
.texte-legal h2 { margin-top: 44px; font-size: 1.7rem; }
.texte-legal h3 { margin-top: 26px; font-size: 1.15rem; }
.texte-legal p { margin-top: 12px; color: #C9D3E4; }
.a-remplir { background: rgba(255,201,60,.14); color: var(--jaune); padding: 0 6px; border-radius: 4px; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); padding: 80px 0 140px; background: var(--nuit-2); }
.pied-grille { display: grid; gap: 40px; }
@media (min-width: 900px) { .pied-grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .pied { padding-bottom: 60px; } }
.pied-marque p { margin-top: 16px; color: var(--doux); max-width: 34ch; }
.pied h4 { font-size: 1rem; font-variation-settings: 'wdth' 100; color: var(--doux); font-weight: 700; margin-bottom: 14px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pied ul a { text-decoration: none; }
.pied ul a:hover { color: var(--froid-clair); }
.pied-bas { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--ligne); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #6E7C95; }

/* ---------- Barre mobile ---------- */
.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(6,11,22,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--ligne); }
@media (min-width: 1021px) { .barre-mobile { display: none; } }

/* ---------- Assistant (chat) ---------- */
.chat { position: fixed; right: 20px; bottom: 100px; z-index: 80; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100svh - 130px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(10, 18, 34, .97); border: 1px solid var(--ligne-forte); box-shadow: 0 30px 80px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(61,123,255,.15); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transform-origin: bottom right; transform: scale(.9) translateY(20px); opacity: 0; visibility: hidden; transition: transform .4s var(--ease), opacity .3s, visibility .3s; }
.chat.ouvert { transform: none; opacity: 1; visibility: visible; }
@media (max-width: 1020px) { .chat { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); height: min(600px, calc(100svh - 110px)); } }
.chat-tete { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--ligne); background: linear-gradient(90deg, rgba(61,123,255,.15), rgba(227,38,47,.1)); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--nuit); border: 1px solid var(--ligne-forte); }
.chat-avatar img { width: 100%; height: 100%; border-radius: 50%; }
.chat-tete strong { display: block; font-size: 1.02rem; }
.chat-tete small { display: flex; align-items: center; gap: 7px; color: var(--doux); font-size: .82rem; }
.chat-tete small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); }
.chat-fermer { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--texte); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.chat-fil { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 18px; font-size: .97rem; line-height: 1.45; animation: msg .35s var(--ease) both; }
@keyframes msg { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.moi { align-self: flex-end; background: var(--froid); color: #fff; border-bottom-right-radius: 5px; }
.msg .btn { margin-top: 10px; min-height: 44px; width: 100%; font-size: .95rem; }
.msg-ecrit { align-self: flex-start; display: flex; gap: 5px; padding: 15px 16px; border-radius: 18px; background: var(--surface-2); }
.msg-ecrit i { width: 7px; height: 7px; border-radius: 50%; background: var(--doux); animation: ecrit 1s infinite; }
.msg-ecrit i:nth-child(2) { animation-delay: .15s; }
.msg-ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes ecrit { 30% { transform: translateY(-5px); opacity: 1; } 60%, 100% { transform: none; opacity: .5; } }
.chat-choix { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; max-height: 34vh; overflow-y: auto; }
.chat-choix button { font: inherit; font-size: .9rem; font-weight: 650; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(61,123,255,.55); background: rgba(61,123,255,.1); color: var(--texte); cursor: pointer; transition: background-color .2s; }
.chat-choix button:hover { background: rgba(61,123,255,.25); }
.chat-saisie { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--ligne); }
.chat-saisie input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--texte); background: rgba(255,255,255,.05); border: 1px solid var(--ligne-forte); border-radius: 999px; padding: 12px 16px; }
.chat-saisie input:focus { outline: none; border-color: var(--froid); }
.chat-saisie button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--froid); cursor: pointer; display: grid; place-items: center; }
.chat-saisie svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Apparitions ---------- */
.apparait { opacity: 0; transform: translateY(40px); }
.no-js .apparait, .mouvement-reduit .apparait { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::after { display: none; }
}

/* vidéo en fond des en-têtes de pages */
.page-tete video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.6) brightness(.7); }

/* cartes de prestation avec photo */
.presta.avec-photo { padding: 0; display: flex; flex-direction: column; }
.presta-photo { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.presta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface)); }
.presta-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.presta-corps { padding: 0 28px 30px; position: relative; margin-top: -22px; }
.presta:not(.avec-photo) .presta-corps { padding: 0; margin: 0; }
.presta.avec-photo svg { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--ligne-forte); }
.presta { transition: border-color .3s, transform .5s var(--ease), box-shadow .5s; }
.presta:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.presta:hover .presta-photo img { transform: scale(1.08); }
.robinet { transition: transform .6s var(--ease), box-shadow .6s; }
.robinet:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -40px var(--c); }
.tuile span:hover { transform: translateY(-3px); }
.avis-carte { transition: transform .5s var(--ease); }
.avis-carte:hover { transform: translateY(-6px) rotate(-.4deg); }

/* ---------- Pages détaillées des prestations ---------- */
a.presta { display: block; color: inherit; text-decoration: none; }
a.presta.avec-photo { display: flex; }
a.presta:hover .presta-photo img { transform: scale(1.06); }
.presta-plus { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 700; color: var(--c); }
.presta-plus::after { content: ""; width: 24px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
a.presta:hover .presta-plus::after { width: 42px; }

.robinet h3 a { color: inherit; text-decoration: none; }
.robinet-lien::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.robinet ul { position: relative; z-index: 2; }
.robinet li { padding: 0; }
.robinet li a { display: block; padding: 7px 14px; color: inherit; text-decoration: none; border-radius: inherit; transition: background .2s; }
.robinet li a:hover { background: rgba(255,255,255,.18); }
.robinet li:has(a:hover) { border-color: rgba(255,255,255,.5); }
.robinet-voir { position: relative; }

.duo-haut { align-items: start; }
.signes { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.signes li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1rem; }
.signes svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.encart { --c: var(--froid); padding: 34px; border-radius: var(--r); background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 30px 80px -50px var(--c); }
.encart.chaud { --c: var(--chaud); }
.encart > svg { width: 44px; height: 44px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.encart-titre { margin-top: 18px; font-size: 1.6rem; font-weight: 850; font-variation-settings: 'wdth' 70; }
.encart p:not(.encart-titre) { margin-top: 10px; color: var(--doux); }
.encart .actions { margin-top: 24px; }

.expertise { list-style: none; padding: 0; margin: 50px 0 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .expertise { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .expertise { grid-template-columns: repeat(3, 1fr); } }
.expertise li { padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--ligne); }
.expertise-num { font-size: .95rem; font-weight: 800; color: var(--c); letter-spacing: .08em; }
.expertise h3 { margin-top: 12px; font-size: 1.5rem; }
.expertise p { margin-top: 8px; color: var(--doux); }

.autres-prestas { display: grid; gap: 14px; margin-top: 34px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .autres-prestas { grid-template-columns: repeat(5, 1fr); } }
.autre-presta { --c: var(--froid); position: relative; display: flex; align-items: flex-end; min-height: 170px; padding: 18px; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; font-weight: 800; border: 1px solid var(--ligne); isolation: isolate; }
.autre-presta.chaud { --c: var(--chaud); }
.autre-presta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.autre-presta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(6,11,22,.9)); }
.autre-presta:hover img { transform: scale(1.08); }
.autre-presta:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }

/* Lisibilité des bannières : chaque photo est dosée selon sa luminosité (--eclat, calculé au build) */
.page-tete img { filter: brightness(var(--eclat, .85)) saturate(.95); }
.page-tete::after { background: linear-gradient(180deg, rgba(6,11,22,.25), rgba(6,11,22,.15) 45%, rgba(6,11,22,.55) 78%, var(--nuit)), linear-gradient(90deg, color-mix(in srgb, var(--c, var(--froid)) 22%, transparent), transparent 55%); }
.page-tete::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,11,22,.72) 0%, rgba(6,11,22,.45) 40%, transparent 68%), linear-gradient(180deg, rgba(6,11,22,.6) 0%, transparent 22%); }
.page-tete h1, .page-tete .chapo, .page-tete .fil { text-shadow: 0 2px 24px rgba(6,11,22,.6); }
.page-tete .fil, .page-tete .fil a { color: #C9D3E4; }
.page-tete .btn-verre { background: rgba(6,11,22,.55); color: #fff; }

/* Petits correctifs */
.menu-ouvert .chat-bouton { opacity: 0; pointer-events: none; }
@media (max-width: 1020px) { .scene-contenu { padding-bottom: calc(160px + env(safe-area-inset-bottom)); } }

/* Bouton de l'assistant : une seule capsule, bord en dégradé, l'icône devient une croix quand le chat est ouvert */
.chat-bouton { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 12px; height: 58px; padding: 6px 6px 6px 20px; border-radius: 999px; cursor: pointer; font: inherit; color: var(--texte); text-align: left;
  border: 1.5px solid transparent; background: linear-gradient(rgba(10,18,34,.92), rgba(10,18,34,.92)) padding-box, var(--degrade) border-box;
  box-shadow: 0 16px 40px -12px rgba(61,123,255,.55), 0 10px 30px -10px rgba(227,38,47,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .35s var(--ease), box-shadow .35s, padding .4s var(--ease), gap .4s var(--ease), opacity .3s; }
.chat-bouton:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -12px rgba(61,123,255,.7), 0 14px 36px -10px rgba(227,38,47,.45); }
.chat-bouton:active { transform: translateY(-1px) scale(.98); }
.chat-bouton:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.chat-bouton-texte { display: grid; gap: 2px; max-width: 220px; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease), opacity .25s; }
.chat-bouton-texte strong { font-size: .92rem; font-weight: 700; line-height: 1.1; }
.chat-bouton-texte small { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--doux); line-height: 1.1; }
.chat-bouton-texte small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(43,212,125,.6); animation: en-ligne 2.4s infinite; flex: none; }
@keyframes en-ligne { 70% { box-shadow: 0 0 0 7px rgba(43,212,125,0); } 100% { box-shadow: 0 0 0 0 rgba(43,212,125,0); } }
.chat-bouton-ico { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--degrade); display: grid; place-items: center; }
.chat-bouton-ico svg { grid-area: 1 / 1; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease), opacity .25s; }
.chat-bouton .ico-croix { opacity: 0; transform: rotate(-90deg) scale(.6); }
/* chat ouvert, ou visiteur qui défile sur téléphone : la capsule se replie en rond */
.chat-bouton[aria-expanded="true"], .chat-bouton.replie { gap: 0; padding: 6px; }
.chat-bouton[aria-expanded="true"] .chat-bouton-texte, .chat-bouton.replie .chat-bouton-texte { max-width: 0; opacity: 0; }
.chat-bouton[aria-expanded="true"] .ico-bulle { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-bouton[aria-expanded="true"] .ico-croix { opacity: 1; transform: none; }
@media (max-width: 1020px) { .chat-bouton { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); height: 54px; padding-left: 16px; } .chat-bouton-ico { width: 40px; height: 40px; } }
/* sur téléphone, le chat ouvert a sa propre croix : on cache la capsule pour qu'elle ne couvre pas la saisie */
@media (max-width: 1020px) { .chat-bouton[aria-expanded="true"] { opacity: 0; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .chat-bouton, .chat-bouton * { transition: none !important; animation: none !important; } }
@media (max-width: 1020px) { .leaflet-touch .leaflet-bar a { width: 42px !important; height: 42px !important; line-height: 42px !important; font-size: 20px !important; } }
@media (hover: hover) { .chat-bouton.replie:not([aria-expanded="true"]):hover { gap: 12px; padding: 6px 6px 6px 20px; } .chat-bouton.replie:not([aria-expanded="true"]):hover .chat-bouton-texte { max-width: 220px; opacity: 1; } }

/* ---------- 17/11 : cinq rubriques, fuite en vedette, devis et tarifs ---------- */
@media (min-width: 900px) {
  .robinets.cinq { grid-template-columns: repeat(6, 1fr); }
  .robinets.cinq > .robinet { grid-column: span 2; min-height: 440px; }
  .robinets.cinq > .robinet:nth-child(-n+2) { grid-column: span 3; min-height: 520px; }
}
.prix-vedette { margin-top: 22px; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; font-variation-settings: 'wdth' 64; line-height: 1; }
.prix-vedette small, .tarifs small { font-size: .45em; color: var(--doux); font-weight: 700; margin-right: 4px; }
.vedette-fuite .liste-coches { margin-top: 18px; }
.contact-devis { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 760px) { .contact-devis { grid-template-columns: repeat(3, 1fr); } }
.contact-carte { --c: var(--froid); display: grid; gap: 6px; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--texte); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.contact-carte:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -30px var(--c); }
.contact-carte svg { width: 34px; height: 34px; fill: var(--c); color: var(--c); }
.contact-carte strong { font-size: 1.5rem; font-weight: 850; font-variation-settings: 'wdth' 70; margin-top: 8px; }
.contact-carte span { color: var(--doux); overflow-wrap: anywhere; }
.tarifs { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .tarifs { grid-template-columns: 1fr 1fr; } }
.tarifs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); }
.tarifs strong { font-size: 1.25rem; font-weight: 850; white-space: nowrap; }
.tarifs-note { margin-top: 18px; color: var(--doux); }
.chat-tarifs { margin: 8px 0; padding-left: 18px; }
.chat-tarifs li { margin: 2px 0; }
#chat-texte::-webkit-calendar-picker-indicator { display: none !important; }
