/* =========================================================
   Rhône-Alpes Services & Entretien
   Couleurs et polices : modifier ici
   ========================================================= */
:root {
  --night: #071735;
  --deep: #123B82;
  --bright: #1677F8;
  --ice: #dceaff;
  --ice-2: #f2f7ff;
  --white: #ffffff;
  --ink: #071735;
  --text-on-dark: #e9f1ff;
  --muted-on-dark: #b7c9ea;

  --f-title: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 22px;
  --r-pill: 999px;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--text-on-dark);
  font: 400 1rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-title); text-transform: uppercase; margin: 0; letter-spacing: .01em; line-height: 1.08; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid #8fc0ff; outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.nobr { white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: var(--r-pill);
  font: 700 .9rem/1 var(--f-title); text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-solid { background: var(--bright); color: var(--white); box-shadow: 0 0 0 1px #5aa1ff inset, 0 8px 28px -8px rgba(22,119,248,.8); }
.btn-solid:hover { background: #2a86ff; box-shadow: 0 0 0 1px #9cc8ff inset, 0 10px 36px -6px rgba(22,119,248,.95); }
.btn-outline { border: 2px solid var(--bright); color: var(--white); background: rgba(22,119,248,.12); }
.btn-outline:hover { background: rgba(22,119,248,.3); }
.btn-block { width: 100%; }

/* ---------- En-tête fixe ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(7,23,53,.85), rgba(7,23,53,.55));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22,119,248,.25);
}
.burger {
  width: 48px; height: 48px; flex: none;
  display: grid; place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer; border-radius: 12px;
}
.burger span { display: block; width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; margin-right: auto; }
.brand-1 { font: 800 1.05rem var(--f-title); text-transform: uppercase; color: var(--white); }
.brand-2 { font: 600 .66rem var(--f-title); text-transform: uppercase; letter-spacing: .04em; color: var(--muted-on-dark); }
.btn-quote { min-height: 44px; padding: 0 1.1em; font-size: .78rem; background: var(--bright); color: var(--white); box-shadow: 0 0 0 1px #6aaaff inset, 0 0 22px -4px rgba(22,119,248,.9); }
.btn-quote:hover { background: #2a86ff; }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  background: radial-gradient(120% 80% at 20% 0%, rgba(22,119,248,.35), transparent 60%), rgba(7,23,53,.97);
  display: flex; flex-direction: column; gap: 32px;
}
.menu[hidden] { display: none; }
.menu ul { display: grid; gap: 4px; }
.menu ul a {
  display: block; padding: 12px 0;
  font: 800 clamp(1.6rem, 6vw, 3rem)/1.1 var(--f-title); text-transform: uppercase;
  text-decoration: none; color: var(--white);
  border-bottom: 1px solid rgba(22,119,248,.25);
}
.menu ul a:hover { color: #8fc0ff; }
.menu-phone { font-weight: 600; color: #8fc0ff; font-size: 1.1rem; }

/* ---------- Note Google ---------- */
.rating-pill {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .5em 1em; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 600; text-decoration: none;
  background: rgba(7,23,53,.55); border: 1px solid rgba(22,119,248,.55); color: var(--white);
}
.rating-pill:hover { border-color: #8fc0ff; }
.stars { color: #ffc93c; letter-spacing: .08em; }
.rating-light { background: rgba(255,255,255,.7); color: var(--ink); border-color: rgba(18,59,130,.3); }

/* =========================================================
   1. OUVERTURE : pièce + portail
   ========================================================= */
.intro { position: relative; }
.stage { position: relative; }

.room {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(22,119,248,.45), transparent 70%),
    linear-gradient(180deg, #040e24 0%, var(--night) 45%, #0b2a66 100%);
  transform-origin: 50% 52%;
}
.room-wall {
  position: absolute; inset: 0 0 34% 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 2px), rgba(22,119,248,.18) calc(12.5% - 2px) 12.5%),
    linear-gradient(180deg, rgba(4,14,36,.9), transparent 70%);
}
.room-wall::before, .room-wall::after {
  content: ""; position: absolute; top: 20%; bottom: 0; width: 6px;
  background: var(--bright); box-shadow: 0 0 24px 6px rgba(22,119,248,.8);
}
.room-wall::before { left: 4%; }
.room-wall::after { right: 4%; }
.room-floor {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: 40%;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(150,200,255,.8), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 80px),
    linear-gradient(180deg, #1677F8, #0a3c99 70%, #071735);
  transform: perspective(500px) rotateX(55deg);
  transform-origin: 50% 0;
}
/* vidéo de fond de l'accueil, teintée aux couleurs du site pour garder la bulle lisible */
.hero-video { position: absolute; inset: 0; background: var(--night) url("../video/fond-final.jpg") center / cover no-repeat; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 36% at 50% 44%, rgba(7,23,53,.5), transparent 75%),
    linear-gradient(180deg, rgba(4,14,36,.8) 0%, rgba(7,23,53,.45) 32%, rgba(7,23,53,.65) 55%, rgba(7,23,53,.9) 75%, rgba(4,14,36,.98) 100%),
    rgba(7,23,53,.35); }
@media (max-width: 640px) { .hero-video { background-image: url("../video/fond-final-mobile.jpg"); } }
.room-steps { position: absolute; left: 0; right: 0; bottom: 6%; display: grid; gap: 14px; }
.room-steps i { display: block; height: 4px; margin: 0 auto; background: #5aa1ff; box-shadow: 0 0 18px 4px rgba(22,119,248,.9); border-radius: 4px; }
.room-steps i:nth-child(1) { width: 52%; }
.room-steps i:nth-child(2) { width: 70%; opacity: .8; }
.room-steps i:nth-child(3) { width: 92%; opacity: .6; }

.portal {
  position: relative; z-index: 2;
  width: min(84vw, 70vh, 600px); aspect-ratio: 1;
  border-radius: 50%;
  padding: clamp(10px, 1.6vw, 16px);
  background: linear-gradient(160deg, #ffffff, #bcd9ff 40%, #1677F8 100%);
  box-shadow: 0 0 60px 10px rgba(22,119,248,.65), 0 0 160px 40px rgba(22,119,248,.35);
}
.portal-inner {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 12%;
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(circle at 50% 60%, #1f6fe6, #123B82 75%);
  box-shadow: inset 0 0 50px rgba(7,23,53,.6);
}
.portal-title { display: flex; flex-direction: column; align-items: center; color: var(--white); text-shadow: 0 2px 16px rgba(7,23,53,.5); }
.portal { container-type: inline-size; }
.pt-1 { font-size: 10.2cqi; font-weight: 800; white-space: nowrap; }
.pt-rule { display: block; width: 100%; height: 7cqi; margin: .25em 0 .4em; overflow: visible; }
.pt-rule path { fill: none; stroke: var(--white); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(150,200,255,.9)); }
.pt-2 { font-size: 5.1cqi; font-weight: 700; letter-spacing: .02em; color: #eaf3ff; white-space: nowrap; }
.portal-sub { margin: 1em 0 1.3em; font-size: max(.78rem, 2.7cqi); color: #d6e6ff; max-width: 28ch; }

.rating-hero { position: absolute; z-index: 3; left: 50%; bottom: 76px; transform: translateX(-50%); white-space: nowrap; }

.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .75rem; color: var(--muted-on-dark); text-decoration: none;
}
.scroll-hint svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 2.4; animation: nudge 2.2s ease-in-out 4; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =========================================================
   2. COULOIR + sommaire
   ========================================================= */
.corridor {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
}
.corridor-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.summary {
  position: relative; z-index: 2;
  width: min(440px, 100%);
  padding: 28px;
  border-radius: var(--r-card);
  background: rgba(7,23,53,.62);
  border: 1px solid rgba(120,175,255,.55);
  box-shadow: 0 0 40px -8px rgba(22,119,248,.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.summary-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 14px; color: var(--white); }
.summary-list a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 6px 0;
  font: 600 1.02rem var(--f-title); text-transform: uppercase; text-decoration: none; color: var(--white);
  border-bottom: 1px solid rgba(120,175,255,.25);
}
.summary-list a::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #8fc0ff; border-bottom: 2px solid #8fc0ff; transform: rotate(-45deg); transition: transform .2s; }
.summary-list a:hover { color: #9cc8ff; }
.summary-list a:hover::after { transform: translateX(4px) rotate(-45deg); }
.summary-note { margin: 16px 0 0; font-size: .9rem; color: var(--muted-on-dark); }

/* ---------- Mode immersif (ordinateur / tablette, animations autorisées) ---------- */
.immersive .intro { height: 230vh; }
.immersive .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
@media (max-width: 640px) { .immersive .intro { height: 200vh; } }
.immersive .room, .immersive .corridor { position: absolute; inset: 0; min-height: 0; }
.immersive .room { will-change: transform, opacity; }
.portal-ring { display: none; }
.immersive .corridor { opacity: 0; clip-path: circle(0 at 50% 50%); will-change: opacity, clip-path; }
.immersive .corridor-art { will-change: transform; transform-origin: 65% 50%; }
.immersive .corridor-art g { transform-box: view-box; }
.immersive .portal-ring {
  display: block; position: absolute; left: 0; top: 0; z-index: 4;
  border-radius: 50%; pointer-events: none; opacity: 0;
  will-change: transform, opacity;
  border: var(--rw, 14px) solid #e3efff;
  box-shadow: 0 0 60px 10px rgba(22,119,248,.65), 0 0 160px 40px rgba(22,119,248,.3), inset 0 0 40px rgba(22,119,248,.7);
  transform-origin: 50% 50%;
}
.immersive .summary { opacity: 0; }
.immersive .summary-list li { opacity: 0; transform: translateX(24px); }

/* =========================================================
   Titres de section
   ========================================================= */
.section-head, .reviews-inner { text-align: center; }
.h-section { font-size: clamp(2rem, 5.4vw, 3.6rem); font-weight: 800; color: var(--white); }
.title-bar { display: block; width: 64px; height: 5px; margin: 18px auto 22px; border-radius: 3px; background: var(--bright); box-shadow: 0 0 16px rgba(22,119,248,.9); }
.lead { max-width: 56ch; margin: 0 auto 18px; color: var(--muted-on-dark); font-size: 1.05rem; }

/* =========================================================
   3. SERVICES
   ========================================================= */
.services {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 35%, rgba(7,23,53,.6) 100%);
}
.section-head { margin-bottom: clamp(36px, 6vw, 60px); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-card); overflow: hidden;
  background: linear-gradient(180deg, rgba(18,59,130,.8), rgba(7,23,53,.92));
  border: 1.5px solid rgba(22,119,248,.7);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 28px -10px rgba(22,119,248,.9);
  transition: box-shadow .3s, border-color .3s, transform .3s;
}
.card:hover, .card:focus-within {
  border-color: #8fc0ff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 44px -6px rgba(22,119,248,1);
  transform: translateY(-3px);
}
.card-media {
  position: relative; aspect-ratio: 4 / 3;
  background: radial-gradient(80% 70% at 50% 30%, #2f7fef, #123B82 70%, #0b2459);
  color: #e6f0ff;
}
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,23,53,.75)); }
.card-media svg { width: 100%; height: 100%; padding: 8% 18% 4%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media svg { transform: scale(1.04); }
.card-media .accent { stroke: #7fd0ff; stroke-width: 4; }
.card-media .fill { fill: rgba(255,255,255,.18); }
.card-media .thick { stroke-width: 5; }
.card-media .bub { fill: rgba(255,255,255,.25); stroke-width: 2; }
.tag-temp {
  position: absolute; z-index: 1; top: 12px; left: 12px;
  padding: 3px 9px; border-radius: 6px;
  font-size: .7rem; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.85);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted-on-dark); margin-bottom: 16px; }
.card-more {
  margin-top: auto; align-self: flex-start;
  min-height: 44px; padding: 0 1.1em;
  font: 600 .85rem var(--f-text); color: var(--white);
  background: rgba(22,119,248,.22); border: 1px solid rgba(120,175,255,.6); border-radius: var(--r-pill);
  cursor: pointer; transition: background-color .2s;
}
.card-more:hover { background: rgba(22,119,248,.45); }
/* toute la carte est cliquable */
.card-more::before { content: ""; position: absolute; inset: 0; }

/* ---------- Fenêtre de détail ---------- */
.detail {
  width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 48px);
  padding: 32px 28px 28px; border: 1.5px solid rgba(120,175,255,.7); border-radius: var(--r-card);
  background: linear-gradient(180deg, #0f2f6e, var(--night)); color: var(--text-on-dark);
  box-shadow: 0 0 60px -10px rgba(22,119,248,.9);
}
.detail::backdrop { background: rgba(4,12,30,.7); backdrop-filter: blur(4px); }
.detail[open] { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.detail h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 16px; padding-right: 40px; }
.detail ul { margin: 0 0 1em; padding-left: 1.1em; list-style: disc; }
.detail li { margin-bottom: .3em; }
.d-note { padding: 10px 14px; border-left: 3px solid var(--bright); background: rgba(22,119,248,.15); border-radius: 0 8px 8px 0; font-size: .92rem; }
.detail-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 0; border-radius: 50%; cursor: pointer; }
.detail-close svg { width: 22px; height: 22px; stroke: var(--white); stroke-width: 2.4; fill: none; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* =========================================================
   4. CRÉDIT D'IMPÔT (fond clair)
   ========================================================= */
.credit {
  position: relative; overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0;
  color: var(--ink);
  background:
    radial-gradient(50% 70% at 18% 45%, rgba(242,247,255,.9), rgba(242,247,255,.4) 65%, transparent 90%),
    linear-gradient(135deg, rgba(230,240,255,.35), rgba(185,213,255,.25));
}
.credit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.h-credit { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 800; color: var(--night); line-height: 1; }
.h-credit strong { color: var(--bright); font-weight: 800; }
.credit-cond { font: 700 1rem var(--f-title); text-transform: uppercase; color: var(--deep); margin: 18px 0 22px; }
.credit-text > p:not(.credit-cond) { max-width: 52ch; color: #10254a; }
/* panneau de verre clair derrière le texte, pour le détacher du salon */
.credit-text {
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: var(--r-card);
  background: rgba(246,250,255,.9);
  border: 1.5px solid rgba(255,255,255,.95);
  box-shadow: 0 20px 60px -24px rgba(18,59,130,.5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
/* fond vert pomme derrière la carte en verre */
.credit-stage { position: relative; isolation: isolate; }
.credit-green {
  position: absolute; z-index: -1; inset: -22px -18px 26px 30px;
  border-radius: 30px;
  background: radial-gradient(120% 90% at 20% 15%, #b5e550, #8dc63f 55%, #6fae2c);
  box-shadow: 0 0 70px -6px rgba(141,198,63,.75);
  transform: rotate(-3deg);
}
.credit-card {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-card);
  background: rgba(255,255,255,.62);
  border: 1.5px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 60px -20px rgba(18,59,130,.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.credit-card h3 { font-size: 1.05rem; color: var(--deep); text-align: center; margin-bottom: 14px; }
.eligible li { display: flex; align-items: center; gap: 18px; padding: 16px 4px; border-bottom: 1px solid rgba(18,59,130,.15); }
.eligible li:last-child { border-bottom: 0; }
.eligible svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--deep); stroke-width: 2; stroke-linejoin: round; }
.eligible span { font: 700 1rem var(--f-title); text-transform: uppercase; color: var(--night); }
.eligible small { display: block; font: 400 .85rem var(--f-text); text-transform: none; color: #3a5079; margin-top: 2px; }
.disclaimer { margin: 16px 0 0; font-size: .82rem; color: #3a5079; }
.disclaimer a { color: var(--deep); font-weight: 600; }
.partner {
  display: flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 14px;
  background: #ffffff; border-radius: 18px;
  box-shadow: 0 10px 30px -12px rgba(7,23,53,.35);
}
.partner-label { font: 600 .85rem var(--f-text); color: #3a5079; }
.partner img { width: auto; height: clamp(140px, 22vw, 180px); }
.partner-missing { padding: 10px 16px; border: 1.5px dashed #6fae2c; border-radius: 10px; font: 600 .85rem var(--f-text); color: #3d6b12; background: rgba(255,255,255,.6); }
@media (max-width: 640px) { .credit-green { inset: -14px -8px 20px 14px; } }

/* =========================================================
   5. AVIS
   ========================================================= */
.reviews {
  padding: clamp(80px, 12vw, 140px) 0;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(7,23,53,.55), transparent 75%), radial-gradient(ellipse 90% 80% at 50% 50%, transparent 50%, rgba(7,23,53,.6));
}
.score { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin: 0; }
.score-num { font: 800 clamp(3.4rem, 10vw, 6rem)/1 var(--f-title); color: var(--white); }
.score-label { font: 700 clamp(1.1rem, 2.6vw, 1.6rem) var(--f-title); text-transform: uppercase; color: var(--white); }
.stars-big { font-size: 1.8rem; margin: 6px 0 36px; }
.review-themes {
  width: min(640px, 100%); margin: 0 auto 32px; padding: 26px;
  border-radius: var(--r-card);
  background: rgba(9,28,66,.85); border: 1.5px solid rgba(22,119,248,.7);
  box-shadow: 0 0 40px -12px rgba(22,119,248,.9);
}
.review-themes h3 { font-size: .95rem; color: #9cc8ff; margin-bottom: 16px; }
.review-themes ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.review-themes li {
  padding: 10px 18px; border-radius: var(--r-pill);
  font: 600 .95rem var(--f-text); color: var(--white);
  background: rgba(7,23,53,.6); border: 1px solid rgba(120,175,255,.45);
}

/* =========================================================
   6. CONTACT
   ========================================================= */
.contact { padding: clamp(80px, 12vw, 140px) 0; text-align: center; background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 35%, rgba(7,23,53,.65)); }
.contact .lead, .services .lead { color: #d3e2fb; }
.phone-big {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 6px 0 clamp(40px, 6vw, 64px); padding: 16px 32px;
  border-radius: var(--r-pill); border: 2px solid var(--bright);
  font: 800 clamp(1.5rem, 5vw, 2.4rem)/1 var(--f-title); color: var(--white); text-decoration: none;
  background: rgba(22,119,248,.15); box-shadow: 0 0 36px -8px rgba(22,119,248,1);
  transition: background-color .2s;
}
.phone-big:hover { background: rgba(22,119,248,.35); }
.phone-big svg { width: 1em; height: 1em; fill: currentColor; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.info-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--r-card);
  background: rgba(9,28,66,.88); border: 1px solid rgba(22,119,248,.55);
}
.info-card h3 { font-size: 1.05rem; color: var(--white); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(120,175,255,.15); font-size: .95rem; }
.hours dt { color: var(--muted-on-dark); }
.hours dd { margin: 0; font-weight: 600; color: var(--white); }
.hours .closed dd { color: #9cc8ff; }
.links li { display: flex; flex-direction: column; padding: 6px 0; }
.links span { font-size: .8rem; color: var(--muted-on-dark); }
.links a { font-weight: 600; color: var(--white); word-break: break-all; }
.facts li { position: relative; padding: 6px 0 6px 22px; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 8px var(--bright); }
.info-card .btn, .info-card .rating-pill { margin-top: auto; align-self: flex-start; }
.info-card .btn-block { align-self: stretch; }
.todo { margin: 0; padding: 8px 12px; border: 1px dashed #ffc93c; border-radius: 8px; color: #ffe08a; font-size: .85rem; }

/* ---------- Pied de page ---------- */
.footer { position: relative; z-index: 1; padding: 36px 0 44px; background: #040e24; border-top: 1px solid rgba(22,119,248,.25); font-size: .88rem; color: var(--muted-on-dark); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.footer nav a { display: inline-block; padding: 8px 0; font: 600 .8rem var(--f-title); text-transform: uppercase; color: var(--white); text-decoration: none; }
.footer nav a:hover { color: #8fc0ff; }
.footer p { margin: 0; }

/* =========================================================
   ÉPONGE qui suit le défilement
   ========================================================= */
.sponge-track { position: fixed; z-index: 40; top: 0; right: 12px; bottom: 0; width: 60px; pointer-events: none; }
.sponge-trail {
  position: absolute; top: 0; left: 50%; width: 3px; height: 0; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(220,236,255,.5) 30%, rgba(255,255,255,.9));
  box-shadow: 0 0 10px rgba(150,200,255,.8); border-radius: 2px;
}
.sponge { position: absolute; left: 0; top: 0; width: 60px; will-change: transform; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)) drop-shadow(0 0 10px rgba(22,119,248,.6)); }
.bubble {
  position: fixed; z-index: 39; width: var(--s, 10px); height: var(--s, 10px); border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(180,215,255,.35) 45%, rgba(22,119,248,.15) 70%);
  border: 1px solid rgba(255,255,255,.6);
  animation: float 1.4s ease-out forwards;
}
@keyframes float { to { transform: translate(var(--dx, -20px), -60px) scale(1.3); opacity: 0; } }
.no-js .sponge-track, html:not(.js) .sponge-track { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .credit-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .info-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .topbar { gap: 8px; }
  .brand-1 { font-size: .9rem; }
  .brand-2 { font-size: .56rem; }
  .btn-quote { font-size: .68rem; padding: 0 .9em; min-height: 40px; }
  .btn-quote svg { display: none; }
  .corridor { justify-content: center; align-items: flex-end; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 14px; }
  .card h3 { font-size: .95rem; }
  .card p { font-size: .82rem; }
  .card-more { min-height: 40px; font-size: .78rem; padding: 0 .9em; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .info-card:last-child { grid-column: auto; }
  .sponge-track { right: 2px; width: 32px; }
  .sponge { width: 32px; }
  .rating-hero { bottom: 70px; font-size: .78rem; }
}

@media (max-width: 340px) {
  .cards { grid-template-columns: 1fr; }
  .brand-2 { display: none; }
}

/* Réduction des animations : page classique */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sponge-track, .bubble { display: none !important; }
}

/* =========================================================
   PIÈCES TRAVERSÉES (décor fixe derrière les sections)
   ========================================================= */
main { position: relative; z-index: 1; }
.intro { z-index: 2; }
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; visibility: hidden; background: var(--night); }
.room-layer { position: absolute; inset: 0; display: none; will-change: clip-path; }
.room-layer svg { width: 100%; height: 100%; will-change: transform; }
.door-frame {
  position: absolute; z-index: 2; pointer-events: none; opacity: 0;
  border: 4px solid #e3efff; border-radius: 10px;
  box-shadow: 0 0 30px 6px rgba(22,119,248,.8), inset 0 0 24px rgba(22,119,248,.7);
}
/* titres comme une enseigne lumineuse fixée au mur */
.services .h-section, .reviews .h-section, .contact .h-section, .score-num {
  text-shadow: 0 0 1px #fff, 0 0 18px rgba(140,190,255,.75), 0 0 48px rgba(22,119,248,.6), 0 4px 30px rgba(7,23,53,.9);
}
.h-credit { text-shadow: 0 0 30px rgba(255,255,255,.9); }
.wrap { transform-origin: 50% 0; will-change: transform, opacity; }
.services, .credit, .reviews, .contact { overflow-x: clip; }
.footer .wrap { will-change: auto; }
@media (prefers-reduced-motion: reduce) { .wrap { will-change: auto; } }

.good-news {
  display: inline-block; margin: 0 0 14px; padding: 6px 16px;
  border-radius: var(--r-pill); background: #8dc63f; color: var(--night);
  font: 800 1.15rem var(--f-title);
}

/* cartes de l'accueil : le bouton est un lien vers la page prestation */
a.card-more { display: inline-flex; align-items: center; text-decoration: none; }
.sponge img { width: 100%; height: auto; }

/* =========================================================
   PAGES PRESTATIONS
   ========================================================= */
.svc-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--night); }
.svc-scene .room-layer { display: block; }
.svc-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .15;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, rgba(7,23,53,.55), rgba(7,23,53,.92));
}
.svc-scene .door-frame { z-index: 2; }
.svc-page main { position: relative; z-index: 1; }

.svc-hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 110px;
  background:
    linear-gradient(90deg, rgba(7,23,53,.72) 0%, rgba(7,23,53,.35) 55%, transparent 80%),
    linear-gradient(180deg, transparent 30%, rgba(7,23,53,.8) 100%);
}
.crumbs { text-shadow: 0 1px 10px rgba(7,23,53,.9); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .88rem; color: #d3e2fb; }
.crumbs a { color: var(--white); }
.crumbs [aria-current] { color: #9cc8ff; font-weight: 600; }
.svc-title {
  font-size: clamp(2.4rem, 8vw, 5.4rem); font-weight: 800; color: var(--white); max-width: 14ch;
  text-shadow: 0 0 1px #fff, 0 0 18px rgba(140,190,255,.75), 0 0 48px rgba(22,119,248,.6), 0 4px 30px rgba(7,23,53,.9);
}
.svc-lead { margin: 16px 0 26px; max-width: 46ch; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e9f1ff; text-shadow: 0 2px 16px rgba(7,23,53,.9); }
.svc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.svc-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.good-pill {
  display: inline-flex; align-items: center; padding: .5em 1em; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--night); background: #8dc63f;
}
.good-pill:hover { background: #a2d65a; }
.svc-hero .scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); }

.svc-section { padding: clamp(60px, 9vw, 110px) 0; text-align: left; }
.svc-section .h-section, .svc-section .title-bar { text-align: center; }
.svc-section .h-section {
  text-shadow: 0 0 1px #fff, 0 0 18px rgba(140,190,255,.75), 0 0 48px rgba(22,119,248,.6), 0 4px 30px rgba(7,23,53,.9);
}
.svc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.svc-panel, .steps li, .ba-slot, .svc-credit {
  border-radius: var(--r-card);
  background: rgba(9,28,66,.86); border: 1.5px solid rgba(22,119,248,.65);
  box-shadow: 0 0 40px -14px rgba(22,119,248,.9);
}
.svc-panel { padding: clamp(22px, 3vw, 36px); }
.svc-panel h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--white); margin-bottom: 16px; }
.svc-panel h3 { font-size: 1rem; color: #9cc8ff; margin: 22px 0 12px; }
.svc-panel p { font-size: 1.05rem; color: #dbe7fb; max-width: 56ch; }
.svc-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(120,175,255,.18); font-weight: 600; color: var(--white); }
.svc-list li:last-child { border-bottom: 0; }
.svc-list svg { width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 50%; background: var(--bright); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border-radius: var(--r-pill); background: rgba(22,119,248,.2); border: 1px solid rgba(120,175,255,.5); font-size: .92rem; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 58px 24px 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; top: 18px; left: 24px;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  font: 800 .95rem var(--f-title); color: var(--white); background: var(--bright); box-shadow: 0 0 14px rgba(22,119,248,.9);
}
.steps h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 8px; }
.steps p { margin: 0; color: #d3e2fb; }
.steps a { color: #9cc8ff; font-weight: 600; }

.svc-credit { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); background: rgba(246,250,255,.93); border-color: #8dc63f; box-shadow: 0 0 50px -10px rgba(141,198,63,.7); color: var(--ink); }
.svc-credit h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--night); margin-bottom: 12px; }
.svc-credit p { color: #10254a; max-width: 56ch; }
.svc-link { color: var(--deep); font-weight: 700; }
.svc-credit .partner { margin: 0; }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-slot {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-style: dashed; color: #9cc8ff; text-align: center;
}
.ba-slot strong { font: 700 1.1rem var(--f-title); text-transform: uppercase; color: var(--white); }
.ba img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-card); }

.others { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.others a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: var(--r-pill); text-decoration: none; color: var(--white);
  font: 700 .95rem var(--f-title); text-transform: uppercase;
  background: rgba(9,28,66,.86); border: 1.5px solid rgba(22,119,248,.65);
  transition: background-color .2s, border-color .2s;
}
.others a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #8fc0ff; border-bottom: 2px solid #8fc0ff; transform: rotate(-45deg); }
.others a:hover { background: rgba(22,119,248,.4); border-color: #8fc0ff; }

.svc-contact { text-align: center; }
.svc-contact .lead { color: #e2ecfb; text-shadow: 0 2px 14px rgba(7,23,53,.9); }

@media (max-width: 860px) {
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .svc-credit { grid-template-columns: 1fr; justify-items: start; }
  .svc-credit .partner { justify-self: center; }
}
@media (max-width: 560px) {
  .ba { grid-template-columns: 1fr; }
  .svc-hero { padding-bottom: 96px; }
}

/* =========================================================
   OUVERTURE : les montagnes se dessinent, le nom apparaît
   ========================================================= */
.intro-anim .pt-rule path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: rt-draw 1.7s cubic-bezier(.65,.05,.3,1) .35s forwards;
}
.intro-anim .pt-1 .ch, .intro-anim .pt-2 .ch { display: inline-block; opacity: 0; }
.intro-anim .pt-1 .ch {
  transform: translateY(.45em) scale(.92); filter: blur(8px);
  animation: rt-rise .8s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(1s + var(--i) * 60ms);
}
.intro-anim .pt-2 .ch {
  transform: translateY(-.35em);
  animation: rt-rise .6s ease-out forwards;
  animation-delay: calc(1.75s + var(--i) * 28ms);
}
.intro-anim .portal-sub, .intro-anim .hero-cta, .intro-anim .rating-hero, .intro-anim .scroll-hint {
  opacity: 0; animation: rt-fade .9s ease 2.45s forwards;
}
.intro-anim .portal { animation: rt-glow 1.4s ease 1.7s; }
@keyframes rt-draw { to { stroke-dashoffset: 0; } }
@keyframes rt-rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes rt-fade { to { opacity: 1; } }
@keyframes rt-glow {
  40% { box-shadow: 0 0 90px 22px rgba(22,119,248,.9), 0 0 220px 70px rgba(22,119,248,.45); }
}

/* =========================================================
   SERVICES : les cartes sont les carreaux de la baie vitrée de l'open space
   ========================================================= */
.window-wall {
  position: relative;
  padding: 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #eef5ff, #c9ddf8);        /* montants de la baie */
  box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 0 70px 8px rgba(22,119,248,.55), 0 30px 80px -20px rgba(150,200,255,.5);
}
.window-wall .cards { gap: 10px; }
.window-wall .card {
  border: 0; border-radius: 3px;
  background: linear-gradient(180deg, #a9cfff 0%, #5c9df5 42%, #2468d8 100%);   /* le ciel derrière la vitre */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 0 30px rgba(7,23,53,.25);
  filter: brightness(calc(.45 + .55 * var(--lit, 1))) saturate(calc(.6 + .4 * var(--lit, 1)));
  transition: filter .3s, box-shadow .3s;
}
.window-wall .card:hover, .window-wall .card:focus-within {
  transform: none; filter: brightness(1.08);
  box-shadow: inset 0 0 0 2px #ffffff, inset 0 0 40px rgba(255,255,255,.35), 0 0 30px rgba(150,200,255,.8);
}
/* reflet qui balaie la vitre quand le carreau s'allume */
.window-wall .card::after {
  content: ""; position: absolute; inset: -20% -60%; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.28) 48%, rgba(255,255,255,.06) 53%, transparent 58%);
  transform: translateX(calc(-45% + var(--lit, 1) * 70%));
}
.window-wall .card-media {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath fill='%23123B82' fill-opacity='.5' d='M0 60V40h10V28h12v12h8V20h14v16h8v-6h12v14h8V16h14v22h10V26h14v16h10V22h12v12h10V12h14v28h10V30h12v14h10V24h12v36z'/%3E%3C/svg%3E") bottom / 100% 34% no-repeat;
  color: #ffffff;
}
.window-wall .card-media::after { background: linear-gradient(180deg, transparent 60%, rgba(7,23,53,.45)); }
.window-wall .card-body { background: rgba(7,23,53,.84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* grand écran : la section reste en place, la baie occupe le mur du fond */
.pin-services .services { height: 230vh; padding: 0; }
.pin-services .services > .wrap {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 14px); padding-bottom: 22px;
  transform: none !important; opacity: 1 !important;
}
.pin-services .services .section-head { margin-bottom: 14px; }
.pin-services .services .h-section { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.pin-services .services .title-bar { margin: 10px auto 10px; }
.pin-services .services .lead { margin-bottom: 8px; font-size: .95rem; }
.pin-services .services .section-head .rating-pill { display: none; }
.pin-services .window-wall { flex: 1; min-height: 0; display: flex; }
.pin-services .window-wall .cards { flex: 1; grid-template-rows: 1fr 1fr; min-height: 0; }
.pin-services .window-wall .card-media { aspect-ratio: auto; flex: 1; min-height: 0; }
.pin-services .window-wall .card-body { flex: none; padding: 12px 16px 14px; }
.pin-services .window-wall .card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pin-services .window-wall .card p { font-size: .85rem; margin-bottom: 8px; }
.pin-services .window-wall .card-more { min-height: 38px; }

/* contenu du carreau : visible seulement quand le carreau s'allume */
.pin-services .window-wall .card-media svg,
.pin-services .window-wall .tag-temp,
.pin-services .window-wall .card-body {
  opacity: var(--lit, 1);
  transform: translateY(calc((1 - var(--lit, 1)) * 14px));
}
.pin-services .window-wall .card-media svg { transform: scale(calc(.9 + .1 * var(--lit, 1))); }
.pin-services .window-wall .card:focus-within .card-media svg,
.pin-services .window-wall .card:focus-within .tag-temp,
.pin-services .window-wall .card:focus-within .card-body { opacity: 1; transform: none; }
.services .lead { text-shadow: 0 1px 2px rgba(7,23,53,.9), 0 0 18px rgba(7,23,53,.9); }

/* lumière au bout du couloir */
.corridor-light { display: none; }
.immersive .corridor-light {
  display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--vx, 66%) var(--vy, 49%), #ffffff 0%, #eaf3ff 22%, rgba(200,225,255,.85) 45%, rgba(150,200,255,0) 75%);
  will-change: opacity, transform;
}
.scene-light { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 45%, #ffffff, #eaf3ff 55%, #cfe3ff); }
/* fondu de lumière en haut des services : continuité avec le bout du couloir */
.services::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 55vh; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #f2f8ff 0%, rgba(234,243,255,.75) 30%, rgba(234,243,255,0) 100%);
  opacity: var(--arrive, 0);
}
.services > .wrap { position: relative; z-index: 1; }

/* =========================================================
   À partir du crédit d'impôt : fond uni, plus d'immersion
   ========================================================= */
.credit, .reviews, .contact { background: var(--night); }
.credit { border-top: 1px solid rgba(22,119,248,.25); }
.reviews .h-section, .contact .h-section, .reviews .score-num { text-shadow: none; }
.credit .credit-text .h-credit { text-shadow: none; }

/* photos d'illustration dans les carreaux */
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .tag-temp { z-index: 2; }
.pin-services .window-wall .card-media img {
  opacity: var(--lit, 1);
  transform: scale(calc(1.08 - .08 * var(--lit, 1)));
}
.pin-services .window-wall .card:focus-within .card-media img { opacity: 1; transform: none; }

/* photo d'illustration sur les pages prestations */
.svc-photo { position: relative; margin: calc(-1 * clamp(22px, 3vw, 36px)) calc(-1 * clamp(22px, 3vw, 36px)) 22px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-photo figcaption { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 6px; font-size: .72rem; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.88); }

/* vignette photo en haut des pages prestations (comme un carreau de la baie vitrée) */
.svc-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.svc-hero-text { grid-column: 1; grid-row: 1; }
.hero-thumb {
  grid-column: 2; grid-row: 1; margin: 0;
  width: clamp(200px, 22vw, 300px); aspect-ratio: 4 / 5;
  padding: 8px; border-radius: 6px;
  background: linear-gradient(180deg, #eef5ff, #c9ddf8);
  box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 0 50px 6px rgba(22,119,248,.55), 0 30px 60px -20px rgba(7,23,53,.8);
  transform: rotate(2deg);
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.js .hero-thumb { animation: thumb-in .9s cubic-bezier(.2,.8,.2,1) 1.4s both; }
@keyframes thumb-in { from { opacity: 0; transform: translateY(24px) rotate(6deg) scale(.9); } }
@media (max-width: 760px) {
  .svc-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-thumb { grid-column: 1; grid-row: 1; width: 132px; justify-self: end; transform: rotate(3deg); }
  .svc-hero-text { grid-row: 2; }
}

/* =========================================================
   POLAROÏDS côte à côte (page pose d'adhésifs)
   ========================================================= */
.pol-section { padding-top: 0; }
.pol-strip { display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 3vw, 40px); }
.polaroid {
  flex: 0 1 250px; min-width: 0;
  margin: 0; padding: 10px 10px 40px; background: #fbfbf8; border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.25), 0 18px 40px -10px rgba(0,0,0,.6), 0 0 40px -10px rgba(22,119,248,.6);
  transform: rotate(var(--rot, -3deg));
  transition: transform .35s ease;
}
.polaroid:nth-child(2) { margin-top: 28px; }
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { margin-top: 10px; text-align: center; font: 600 .9rem var(--f-title); color: var(--deep); }
.polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 2; }
/* apparition au défilement, l'un après l'autre */
.js .polaroid {
  opacity: 0; transform: translateY(50px) rotate(calc(var(--rot, -3deg) * -3)) scale(.92);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 160ms);
}
.js .polaroid.is-in { opacity: 1; transform: rotate(var(--rot, -3deg)); }
.js .polaroid.is-in:hover { transform: rotate(0deg) scale(1.04); transition-delay: 0s; }
@media (max-width: 560px) {
  .polaroid { padding: 6px 6px 26px; }
  .polaroid figcaption { font-size: .68rem; margin-top: 6px; }
  .polaroid:nth-child(2) { margin-top: 16px; }
}

/* =========================================================
   AVIS GOOGLE (recopiés)
   ========================================================= */
.reviews-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  width: min(1040px, 100%); margin: 0 auto 32px; text-align: left;
}
.review {
  margin: 0; display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: var(--r-card);
  background: rgba(9,28,66,.85); border: 1.5px solid rgba(22,119,248,.6);
  box-shadow: 0 0 36px -14px rgba(22,119,248,.9);
}
.review .stars { margin: 0; font-size: 1.1rem; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--white); }
.review blockquote p::before { content: "« "; color: #8fc0ff; }
.review blockquote p::after { content: " »"; color: #8fc0ff; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font: 700 .92rem var(--f-title); color: #cfe3ff; }
.review figcaption span { font: 500 .78rem var(--f-text); color: var(--muted-on-dark); }
@media (max-width: 900px) and (min-width: 641px) { .reviews-list { grid-template-columns: 1fr 1fr; } }
/* mobile : bandeau qu'on fait glisser du doigt */
@media (max-width: 640px) {
  .reviews-list {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px; width: auto; scrollbar-width: none;
    align-items: flex-start;
  }
  .reviews-list::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 82%; scroll-snap-align: center; }
}
.reviews-hint { display: none; margin: -18px 0 26px; font-size: .82rem; color: var(--muted-on-dark); }
@media (max-width: 640px) { .reviews-hint { display: block; } }

/* =========================================================
   Pages prestations : décor fixe uniquement derrière le haut de page,
   fond bleu nuit uni pour tout le reste (lisibilité)
   ========================================================= */
.svc-scene { position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh; }
.svc-veil { opacity: .2 !important; }
.svc-page .svc-section { background: var(--night); }
.svc-page .svc-hero + .svc-section { border-top: 1px solid rgba(22,119,248,.25); }

/* =========================================================
   OUVERTURE : le cercle devient une bulle de savon qui flotte
   ========================================================= */
.bubble-float { position: relative; z-index: 2; animation: bubble-float 7s ease-in-out infinite; }
@keyframes bubble-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(6px, -14px) rotate(1deg); }
  50%      { transform: translate(0, -22px) rotate(0deg); }
  75%      { transform: translate(-6px, -12px) rotate(-1deg); }
}
.portal {
  padding: 0;
  background: transparent;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.55),
    inset 0 0 40px rgba(255,255,255,.22),
    inset 18px -30px 70px rgba(130,210,255,.28),
    inset -24px 24px 60px rgba(255,170,230,.16),
    0 0 70px 4px rgba(22,119,248,.35);
  animation: bubble-wobble 5.5s ease-in-out infinite;
}
/* la bulle « respire » légèrement, comme une vraie bulle de savon */
@keyframes bubble-wobble {
  0%, 100% { border-radius: 50%; }
  33%      { border-radius: 51% 49% 50% 50% / 49% 51% 49% 51%; }
  66%      { border-radius: 49% 51% 51% 49% / 51% 49% 51% 49%; }
}
/* film irisé sur le bord */
.portal::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from 0deg, #ff9de6, #8fd8ff, #b6ffcf, #fff3a1, #ffb7a8, #c9a6ff, #ff9de6);
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 96%, #000 100%);
          mask: radial-gradient(closest-side, transparent 86%, #000 96%, #000 100%);
  opacity: .55; mix-blend-mode: screen;
  animation: bubble-iris 12s linear infinite;
}
@keyframes bubble-iris { to { transform: rotate(360deg); } }
/* reflets brillants */
.portal::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(ellipse 22% 12% at 28% 18%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 6% 4% at 40% 12%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 14% 7% at 74% 84%, rgba(255,255,255,.45), rgba(255,255,255,0) 70%);
  transform: rotate(-18deg);
}
.portal-inner {
  background: radial-gradient(circle at 50% 46%, rgba(7,23,53,.55) 0%, rgba(7,23,53,.3) 55%, rgba(22,119,248,.06) 80%, transparent 100%);
  box-shadow: none;
}
.portal-title { text-shadow: 0 2px 18px rgba(7,23,53,.85), 0 0 2px rgba(7,23,53,.6); }
.portal-sub { text-shadow: 0 1px 10px rgba(7,23,53,.9); }

/* ombre de la bulle sur le sol, synchronisée avec le flottement */
.bubble-shadow {
  position: absolute; z-index: 1; left: 50%; bottom: 17%;
  width: min(46vw, 44vh, 380px); height: 26px; margin-left: calc(min(46vw, 44vh, 380px) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(4,12,30,.65), rgba(4,12,30,0));
  animation: bubble-shadow 7s ease-in-out infinite;
}
@keyframes bubble-shadow {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(.78); opacity: .55; }
}

/* petites bulles qui montent autour */
.mini-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.mini-bubbles i {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.9), rgba(255,255,255,.08) 38%, rgba(150,210,255,.12) 70%, rgba(255,160,230,.35) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  animation: mini-rise linear infinite;
}
.mini-bubbles i:nth-child(1) { left: 18%; width: 26px; height: 26px; animation-duration: 11s; animation-delay: -2s; }
.mini-bubbles i:nth-child(2) { left: 76%; width: 16px; height: 16px; animation-duration: 9s;  animation-delay: -6s; }
.mini-bubbles i:nth-child(3) { left: 84%; width: 34px; height: 34px; animation-duration: 14s; animation-delay: -9s; }
.mini-bubbles i:nth-child(4) { left: 10%; width: 12px; height: 12px; animation-duration: 8s;  animation-delay: -4s; }
@keyframes mini-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(18px, -55vh); }
  90%  { opacity: 1; }
  100% { transform: translate(-10px, -110vh); opacity: 0; }
}

/* l'anneau qui grandit pendant le passage devient le bord irisé de la bulle */
.immersive .portal-ring {
  border: 0;
  background: conic-gradient(from 0deg, #ff9de6, #8fd8ff, #b6ffcf, #fff3a1, #ffb7a8, #c9a6ff, #ff9de6);
  -webkit-mask: radial-gradient(closest-side, transparent 93%, #000 97%, #000 100%);
          mask: radial-gradient(closest-side, transparent 93%, #000 97%, #000 100%);
  box-shadow: none;
  filter: drop-shadow(0 0 18px rgba(150,210,255,.8));
}
/* lueur à l'arrivée du nom : plus douce, façon bulle */
@keyframes rt-glow {
  40% { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8), inset 0 0 60px rgba(255,255,255,.35), 0 0 110px 16px rgba(120,190,255,.6); }
}
.intro-anim .portal { animation: rt-glow 1.4s ease 1.7s, bubble-wobble 5.5s ease-in-out infinite; }

/* bouton devis placé sous la bulle */
.room { align-content: center; row-gap: clamp(18px, 3.5vh, 34px); }
.portal { width: min(84vw, 60vh, 560px); }
.hero-cta { position: relative; z-index: 3; }
.portal-sub { margin-bottom: 0; }

/* éponge réaliste (photo détourée) */
.sponge { width: 66px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
@media (max-width: 640px) { .sponge { width: 40px; } .sponge-track { width: 40px; } }

/* sans animation immersive, le couloir (désormais sans texte) est masqué */
html:not(.immersive) .corridor { display: none; }

/* plus de couloir : en traversant la bulle, on entre dans une lumière blanche */
.immersive .corridor { background: radial-gradient(circle at 50% 46%, #ffffff 0%, #f2f8ff 30%, #dcebff 65%, #b9d6ff 100%); }

/* les services glissent sous la bulle : la lumière se dissipe sur place, sans coupure */
.immersive .services { margin-top: -100vh; margin-top: -100svh; }
/* la zone de la bulle laisse passer les clics vers les services quand elle s'efface */
.immersive .intro { pointer-events: none; }
.immersive .intro .stage { pointer-events: auto; }

/* pause sur le titre « Découvrir nos services » après la transition (hors mode bloqué) */
.immersive:not(.pin-services) .services-hold::after { content: ""; display: block; height: 55vh; height: 55svh; }
.immersive:not(.pin-services) .services-hold .section-head {
  position: sticky; top: calc(var(--header-h) + 24px);
}
/* sur grand écran la section est déjà bloquée : on allonge un peu la pause */
.pin-services .services { height: 270vh; }

/* =========================================================
   LA BULLE ÉCLATE (au premier défilement ou sur « Découvrir »)
   ========================================================= */
.room.popping .portal { animation: bubble-pop 1.15s cubic-bezier(.3,.7,.4,1) forwards; }
@keyframes bubble-pop {
  0%   { transform: scale(1);              opacity: 1; }
  15%  { transform: scale(1.04, .96);      opacity: 1; }
  30%  { transform: scale(.97, 1.04);      opacity: 1; }
  45%  { transform: scale(1.06, .94);      opacity: 1; }
  60%  { transform: scale(.98, 1.03);      opacity: 1; }
  72%  { transform: scale(1.12);           opacity: 1; filter: brightness(1.4); }
  100% { transform: scale(1.5);            opacity: 0; filter: brightness(2.2); }
}

.room.popping .hero-cta,
.room.popping .scroll-hint,
.room.popping .rating-hero,
.room.popping .bubble-shadow,
.room.popping .mini-bubbles { opacity: 0; transition: opacity .6s ease; }

/* gouttelettes irisées projetées */
.droplet {
  position: absolute; z-index: 4; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 32% 30%, #fff, rgba(255,255,255,.2) 40%, rgba(150,210,255,.35) 70%, rgba(255,160,230,.6) 100%);
  box-shadow: 0 0 8px rgba(160,210,255,.8);
  animation: droplet 1.4s cubic-bezier(.12,.6,.35,1) forwards;
}
@keyframes droplet {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.35); }
}

/* flash de lumière plein écran */
.page-flash {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 45%, #ffffff, #eaf3ff 55%, #cfe3ff);
  transition: opacity .8s ease;
}
.page-flash.on { opacity: 1; transition: opacity .35s ease; }

/* la bulle se reforme quand on revient en haut */
.room.reforming .portal { animation: bubble-reform .85s cubic-bezier(.2,.9,.3,1.25); }
@keyframes bubble-reform {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.scroll-hint span { text-transform: none; }

/* =========================================================
   ACCUEIL : le pictogramme du logo flotte, le nom à côté
   (remplace la bulle de savon)
   ========================================================= */
.hero-lockup {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 4.5vw, 72px);
  width: min(1180px, 100%);
}
.logo-float { position: relative; flex: none; width: min(36vw, 54vh, 470px); }
.logo-float picture { display: block; animation: logo-float 7s ease-in-out infinite; will-change: transform; }
.logo-picto {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 34px rgba(22,119,248,.55)) drop-shadow(0 22px 28px rgba(2,8,22,.5));
}
/* ombre au sol, qui rétrécit quand le logo monte */
.logo-shadow {
  position: absolute; left: 18%; right: 18%; bottom: -7%; height: clamp(14px, 2.4vh, 24px);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(2,8,22,.75), rgba(2,8,22,0));
  animation: logo-shadow 7s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(5px, -12px) rotate(1.2deg); }
  50%      { transform: translate(0, -22px) rotate(0deg); }
  75%      { transform: translate(-5px, -11px) rotate(-1.2deg); }
}
@keyframes logo-shadow {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(.76); opacity: .5; }
}

.hero-text { max-width: 36rem; text-align: left; }
.hero-text .portal-title { align-items: flex-start; }
.hero-text .pt-1 { font-size: clamp(2.3rem, 5.4vw, 4.7rem); line-height: 1.02; }
.hero-text .pt-rule { height: clamp(18px, 2.6vw, 34px); }
.hero-text .pt-2 { font-size: clamp(1.05rem, 2.45vw, 2.15rem); }
.hero-text .portal-sub { margin: 1.1em 0 1.6em; font-size: clamp(.95rem, 1.3vw, 1.15rem); max-width: 34ch; }

/* apparition : le logo monte doucement, puis le nom s'écrit */
.intro-anim .logo-float { opacity: 0; animation: logo-in 1.1s cubic-bezier(.2,.8,.2,1) .1s forwards; }
@keyframes logo-in {
  from { opacity: 0; transform: translateY(28px) scale(.9); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* téléphone et tablette en hauteur : logo au-dessus, texte centré */
@media (max-width: 820px) {
  .hero-lockup { flex-direction: column; gap: clamp(18px, 3vh, 30px); }
  .logo-float { width: min(58vw, 32vh, 340px); }
  .hero-text { text-align: center; }
  .hero-text .portal-title { align-items: center; }
  .hero-text .pt-1 { font-size: clamp(1.9rem, 9vw, 3rem); }
  .hero-text .pt-2 { font-size: clamp(.95rem, 4.4vw, 1.4rem); }
  .hero-text .portal-sub { margin: .9em auto 1.3em; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-float picture, .logo-shadow { animation: none; }
}

/* logo Hexa Coop en tête de la section crédit d'impôt */
.credit-text .partner-top {
  display: inline-flex; margin: 0 0 clamp(18px, 3vw, 28px); padding: 0;
  background: none; box-shadow: none;
}
.credit-text .partner-top img { height: clamp(120px, 14vw, 170px); filter: drop-shadow(0 10px 18px rgba(7,23,53,.25)); }
