/* Heliosmart : feuille de style. Palette Heliosmart, typographie Mona Sans. */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --g950: #002e15;
  --g900: #005829;
  --g800: #087b44;
  --g700: #14985e;
  --g600: #22ae71;
  --g100: #d8f2e5;
  --g50: #effaf4;
  --lime700: #5a9b27;
  --lime500: #7ec73c;
  --lime200: #d3efae;
  --lime100: #ecf8de;
  --sun700: #c89600;
  --sun500: #ffc802;
  --sun300: #fff31d;
  --sun100: #fff6d1;
  --n25: #f8faf8;
  --n50: #f2f5f2;
  --n100: #e6ebe7;
  --n200: #d2dad4;
  --n400: #8a968c;
  --n600: #4c574f;
  --n800: #26302a;
  --n900: #15201a;
  --error: #c62828;

  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --pad: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --nav-h: 76px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --gutter: max(var(--pad), calc((100vw - var(--max)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  scrollbar-color: var(--n400) var(--n50);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--n900);
  background: var(--n25);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--g800);
  accent-color: var(--g800);
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

::selection { background: var(--sun300); color: var(--g950); }

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3.1rem);
  font-stretch: 108%;
  letter-spacing: -0.036em;
  line-height: 1.06;
}
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-stretch: 104%; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--g800); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .footer :focus-visible, .menu :focus-visible { outline-color: var(--sun500); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--g950); color: #fff; }
.skip:focus { top: 16px; }

.container { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.nw { white-space: nowrap; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-arrow { transition: transform 0.45s var(--ease); }

/* Emplacements de contenu à fournir (maquette) */
.a-fournir {
  display: inline-block; padding: 0 0.45em; border-radius: 6px;
  border: 1px dashed var(--sun700); background: var(--sun100); color: var(--g950);
  font-size: 0.82em; font-weight: 500; letter-spacing: 0; line-height: 1.5; vertical-align: 0.08em;
}
.a-fournir-bloc { color: var(--n400); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 8px;
  font-size: 1rem; font-weight: 560; font-stretch: 102%; letter-spacing: -0.01em; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--g950); color: #fff; }
.btn-primary:hover { background: var(--g900); box-shadow: 0 14px 30px -14px rgba(0, 46, 21, 0.55); }
.btn-ghost { background: #fff; border-color: var(--n200); color: var(--n900); }
.btn-ghost:hover { border-color: var(--n900); }
.btn-gold { background: var(--sun500); color: var(--g950); }
.btn-gold:hover { background: var(--sun300); box-shadow: 0 14px 34px -14px rgba(255, 200, 2, 0.7); }
.btn-light { background: #fff; color: var(--g950); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.94rem; }
.btn-block { width: 100%; justify-content: space-between; padding-inline: 28px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-weight: 560; color: var(--g900);
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
}
.link-arrow:hover .icon-arrow { transform: translateX(4px); }
.text-link { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft), transform 0.5s var(--ease); }
.nav.is-scrolled {
  background: rgba(248, 250, 248, 0.8);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(21, 32, 26, 0.07);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
/* Logo de la charte : version claire, version au logotype blanc quand le menu mobile est ouvert */
.brand { display: block; flex: none; }
.brand img { display: block; height: 58px; width: auto; }
.brand .brand-blanc { display: none; }
@media (max-width: 959px) { .brand img { height: 50px; } }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; font-size: 0.94rem; font-weight: 500; color: var(--n600); transition: color 0.3s var(--ease-soft); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav-links a:hover { color: var(--n900); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 0.94rem; font-weight: 560; color: var(--n600); transition: color 0.3s var(--ease-soft); }
.nav-phone:hover { color: var(--n900); }
.nav-phone .icon { width: 16px; height: 16px; }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid var(--n200); border-radius: 8px; background: #fff; cursor: pointer; }
.menu-bar { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--n900); border-radius: 2px; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.menu-bar:nth-of-type(2) { top: 18px; }
.menu-bar:nth-of-type(3) { top: 24px; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1099px) { .nav-phone span { display: none; } }
@media (max-width: 959px) {
  .nav-links, .nav-phone { display: none; }
  .nav-actions { margin-left: auto; gap: 10px; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 380px) { .nav-cta { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--pad) calc(32px + env(safe-area-inset-bottom));
  background: var(--g950); color: #fff;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease-soft), visibility 0s 0.45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease-soft); }
.menu-links { display: grid; gap: 6px; }
.menu-links a { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 500; font-stretch: 108%; letter-spacing: -0.04em; line-height: 1.2; opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.menu.is-open .menu-links a { opacity: 1; transform: none; }
.menu.is-open .menu-links a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open .menu-links a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open .menu-links a:nth-child(4) { transition-delay: 0.15s; }
.menu.is-open .menu-links a:nth-child(5) { transition-delay: 0.2s; }
.menu-foot { display: grid; gap: 10px; }
.menu-open .nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .nav .brand-clair { display: none; }
.menu-open .nav .brand-blanc { display: block; }
.menu-open .nav .nav-cta { opacity: 0; pointer-events: none; }
.menu-open .menu-toggle { background: transparent; border-color: rgba(255, 255, 255, 0.3); }
.menu-open .menu-bar { background: #fff; }

/* ---------- Premier écran ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(32px, 5.5vw, 80px)); }
.hero-grid { display: grid; gap: 32px; }
.hero-title { font-size: clamp(2.1rem, 0.9rem + 3.7vw, 4.5rem); font-weight: 500; font-stretch: 108%; letter-spacing: -0.042em; line-height: 1.02; max-width: 22ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title .accent { color: var(--g800); }
.hero-side { display: grid; gap: 24px; }
.hero-lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--n600); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .hero-side { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; } }
@media (max-width: 559px) { .hero-actions .btn { flex: 1 1 100%; } }

/* Scène interactive */
.scene { margin: clamp(32px, 4.5vw, 56px) 0 0; }
.scene-scroll {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #e6f3eb 0%, #f1f8f3 48%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(21, 32, 26, 0.06), 0 40px 90px -50px rgba(0, 46, 21, 0.35);
}
.scene-inner { position: relative; width: 100%; aspect-ratio: 1600 / 600; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-svg .sol { fill: url(#sc-sol); }
.scene-svg .herbe { fill: none; stroke: var(--lime700); stroke-width: 1.2; stroke-linecap: round; opacity: 0.45; }
.scene-svg .buisson { fill: var(--g100); }
.scene-svg .b2 { fill: var(--lime200); }
.scene-svg .tronc { fill: none; stroke: var(--n400); stroke-width: 2.4; stroke-linecap: round; }
.scene-svg .feuillage { fill: var(--g100); }
.scene-svg .feuillage-2 { fill: var(--lime200); opacity: 0.6; }
.scene-svg .allee { fill: url(#sc-allee); }
.scene-svg .joint { fill: none; stroke: var(--n200); stroke-width: 1.2; }
.scene-svg .lame-bois { fill: var(--sun700); fill-opacity: 0.34; }
.scene-svg .metal { fill: var(--g950); }
.scene-svg .bois { fill: var(--sun700); fill-opacity: 0.3; }
.scene-svg .bois-face { fill: var(--sun700); fill-opacity: 0.68; }
.scene-svg .joint-bois { fill: none; stroke: var(--sun700); stroke-opacity: 0.45; stroke-width: 1; }
.scene-svg .mur { fill: #fff; stroke: var(--n200); stroke-width: 1; }
.scene-svg .toit { fill: var(--g950); }
.scene-svg .vitre { fill: url(#sc-vitre); stroke: var(--g950); stroke-width: 1.6; }
.scene-svg .menuiserie { fill: none; stroke: var(--g950); stroke-width: 1.6; }
.scene-svg .bardage { fill: var(--sun700); fill-opacity: 0.14; }
.scene-svg .porte { fill: var(--g950); }
.scene-svg .poignee { fill: none; stroke: var(--sun500); stroke-width: 2.4; stroke-linecap: round; }
.scene-svg .appareil { fill: #fff; stroke: var(--n400); stroke-width: 1.3; }
.scene-svg .grille { fill: var(--n50); stroke: var(--n400); stroke-width: 1.2; }
.scene-svg .moyeu { fill: var(--g950); }
.scene-svg .pale { fill: var(--n400); }
.scene-svg .trait-fin { fill: none; stroke: var(--n400); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.scene-svg .souffle { fill: none; stroke: var(--g600); stroke-width: 1.6; stroke-linecap: round; opacity: 0.5; stroke-dasharray: 3 7; }
.scene-svg .pot { fill: var(--n200); }
.scene-svg .ligne-sol { stroke: rgba(0, 46, 21, 0.22); stroke-width: 1; }
.scene-svg [data-part], .scene-svg .sc-maison, .scene-svg .sc-arbres, .scene-svg .sc-soleil { transition: opacity 0.5s var(--ease-soft), filter 0.5s var(--ease-soft); }
.scene.has-focus .scene-svg [data-part]:not(.is-on):not(.halo),
.scene.has-focus .scene-svg .sc-maison,
.scene.has-focus .scene-svg .sc-arbres { opacity: 0.32; }
/* Contours autour des éléments : au repos ils s'allument chacun leur tour, au survol le contour se fixe et défile */
.scene-svg .halo { fill: none; stroke: var(--g800); stroke-width: 2.5; opacity: 0; pointer-events: none; animation: halo 7s var(--ease-soft) infinite; }
@keyframes halo { 0%, 22%, 100% { opacity: 0; } 6%, 14% { opacity: 0.85; } }
.scene.has-focus .scene-svg .halo { animation: none; opacity: 0; transition: opacity 0.25s var(--ease-soft); }
.scene.has-focus .scene-svg .halo.is-on { opacity: 1; stroke: var(--g900); stroke-width: 3; stroke-dasharray: 10 7; animation: halo-marche 0.9s linear infinite; }
@keyframes halo-marche { to { stroke-dashoffset: -17; } }
.scene-svg [data-part] { cursor: pointer; }
.helice { transform-box: fill-box; transform-origin: center; animation: spin 5s linear infinite; }
.souffle { animation: souffle 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes souffle { to { stroke-dashoffset: -20; } }

/* Points : une étiquette posée sur l'élément, sans numéro */
.spot {
  position: absolute; z-index: 2;
  left: calc(var(--x) * 100% / 1600); top: calc((var(--y) - 120) * 100% / 600);
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
}
.spot-left { transform: translate(-100%, -50%); }
.spot-label {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px;
  border-radius: 999px; background: #fff;
  box-shadow: 0 6px 18px -8px rgba(0, 46, 21, 0.35), inset 0 0 0 1px rgba(21, 32, 26, 0.08);
  font-size: 0.82rem; font-weight: 560; letter-spacing: -0.01em; white-space: nowrap; color: var(--n900);
  transition: background-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.spot-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--g700); transition: background-color 0.3s var(--ease-soft); }
.spot:hover .spot-label, .spot.is-on .spot-label, .spot:focus-visible .spot-label { background: var(--g950); color: #fff; }
.spot:hover .spot-dot, .spot.is-on .spot-dot, .spot:focus-visible .spot-dot { background: var(--sun500); }
.spot:focus-visible { outline: none; }
.spot:focus-visible .spot-label { box-shadow: 0 0 0 2px var(--sun500); }
@media (min-width: 760px) and (max-width: 1099px) {
  .spot-label { padding: 5px 10px 5px 9px; gap: 6px; font-size: 0.74rem; }
}
.scene-hint { margin-top: 14px; text-align: center; font-size: 0.875rem; color: var(--n400); }
.hint-mobile { display: none; }
@media (max-width: 759px) {
  .scene-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--radius-md); }
  .scene-scroll::-webkit-scrollbar { display: none; }
  .scene-inner { width: 1040px; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}

/* ---------- Bande de repères (une valeur vide masque sa colonne) ---------- */
.proof { padding-block: clamp(28px, 4vw, 44px); }
.proof-row { display: grid; border-block: 1px solid var(--n100); }
.proof-item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; }
.proof-item:not([hidden]) ~ .proof-item:not([hidden]) { border-top: 1px solid var(--n100); }
.proof-value { order: 2; text-align: right; font-size: clamp(1.15rem, 1.05rem + 0.8vw, 1.75rem); font-weight: 520; font-stretch: 106%; letter-spacing: -0.03em; line-height: 1.2; }
.proof-label { order: 1; font-size: 0.875rem; color: var(--n600); }
@media (min-width: 900px) {
  .proof-row { display: flex; }
  .proof-item { flex: 1 1 0; display: block; padding: 26px 28px 26px 0; }
  .proof-item:not([hidden]) ~ .proof-item:not([hidden]) { border-top: 0; border-left: 1px solid var(--n100); padding-left: 28px; }
  .proof-value { text-align: left; }
  .proof-label { margin-top: 4px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 8vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.section-soft { background: var(--n50); }
.section-lead { margin-top: 18px; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.18rem); color: var(--n600); max-width: 48ch; }

.split { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .split { grid-template-columns: 5fr 7fr; gap: 80px; }
  .sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* Galerie avant / après : une grande carte, deux petites empilées */
.gallery-head { margin-bottom: clamp(24px, 3vw, 36px); }
.gallery-head .section-lead { margin-top: 12px; }
.gallery-grid { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: 1.4fr 1fr; }
  .gallery-grid > .ba:first-child { grid-row: span 2; }
  .gallery-grid > .ba:first-child .ba-frame { aspect-ratio: auto; flex: 1; min-height: 360px; }
  /* Une seule carte : pleine largeur. Deux cartes : côte à côte, même hauteur */
  .gallery-grid[data-count="1"] { grid-template-columns: 1fr; }
  .gallery-grid[data-count="1"] > .ba:first-child .ba-frame { aspect-ratio: 16 / 9; min-height: 0; }
  .gallery-grid[data-count="2"] { grid-template-columns: 1fr 1fr; }
  .gallery-grid[data-count="2"] > .ba:first-child { grid-row: auto; }
  .gallery-grid[data-count="2"] > .ba:first-child .ba-frame { aspect-ratio: 16 / 10; min-height: 0; }
}
.ba { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.ba-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; background: var(--n100); touch-action: pan-y; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002e15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 6px 16px rgba(0, 46, 21, 0.25);
}
.ba-range:focus-visible + .ba-handle::after { box-shadow: 0 0 0 3px var(--sun500); }
.ba-tag { position: absolute; z-index: 2; top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 46, 21, 0.72); color: #fff; font-size: 0.78rem; font-weight: 560; pointer-events: none; }
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.ba figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--n600); }
.ba figcaption strong { color: var(--n900); font-weight: 560; }
.ba-empty .ba-frame { display: grid; place-items: center; padding: 24px; text-align: center; background: var(--n50); border: 1.5px dashed var(--n200); }
.ba-empty .ba-frame p { color: var(--n600); font-size: 0.95rem; }
.ba-empty .ba-frame span { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--n400); }

/* Prestations extérieures */
.service { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; padding: 30px 0 32px; border-top: 1px solid var(--n100); transition: background-color 1.2s var(--ease-soft); }
.service:last-child { border-bottom: 1px solid var(--n100); }
.service::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--g950); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); }
.service:hover::before, .service.is-target::before { transform: scaleX(1); }
.service h3 { font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem); font-weight: 500; font-stretch: 106%; letter-spacing: -0.035em; transition: transform 0.6s var(--ease); }
.service:hover h3 { transform: translateX(6px); }
.service p { margin-top: 10px; color: var(--n600); max-width: 54ch; }
.service.is-target { background: var(--g50); }

/* Chauffage : une prestation principale, deux secondaires */
.section-dark { background: var(--g950); color: #fff; }
.dark-title { color: #fff; margin-bottom: clamp(28px, 4vw, 48px); max-width: 18ch; }
.heat { display: grid; gap: 16px; }
@media (min-width: 960px) { .heat { grid-template-columns: 1.45fr 1fr; gap: 56px; align-items: center; } }
.heat-main { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); transition: box-shadow 0.5s var(--ease-soft); }
.heat-main h3 { margin-top: 0; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.7rem); letter-spacing: -0.04em; line-height: 1.05; }
.heat-text { margin-top: 18px; color: rgba(216, 242, 229, 0.8); max-width: 52ch; }
.heat-list { margin: 28px 0 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.heat-list li { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9); }
.heat-main.is-target { box-shadow: inset 0 0 0 1.5px var(--sun500); }
.heat-side { display: grid; }
.heat-item { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); transition: background-color 1s var(--ease-soft); }
.heat-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 960px) { .heat-item:first-child { padding-top: 0; border-top: 0; } }
.heat-item h3 { color: #fff; }
.heat-item p { margin-top: 10px; font-size: 0.98rem; color: rgba(216, 242, 229, 0.75); }
.heat-item.is-target h3 { color: var(--sun500); }
.link-light { display: inline-block; margin-top: 16px; font-weight: 560; color: var(--sun500); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.link-light:hover { color: var(--sun300); }

/* Méthode : une frise courte et centrée */
.process { padding-block: clamp(44px, 6vw, 72px); background: var(--g50); }
.process-inner { text-align: center; }
.process h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); letter-spacing: -0.03em; }
.process-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; margin-top: 22px; font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem); font-weight: 500; color: var(--n800); }
.process-line li { display: inline-flex; align-items: center; }
.process-line li:not(:last-child)::after { content: "→"; margin: 0 14px; color: var(--g700); font-weight: 400; }
@media (max-width: 759px) {
  .process-line { flex-direction: column; gap: 0; }
  .process-line li { flex-direction: column; }
  .process-line li:not(:last-child)::after { content: "↓"; margin: 4px 0; }
}

/* Avis clients */
.reviews { display: grid; gap: 16px; margin-top: clamp(24px, 3vw, 36px); }
@media (min-width: 900px) { .reviews { grid-template-columns: 1.4fr 1fr; } .review-main { grid-row: span 2; } }
.review { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-md); background: #fff; box-shadow: inset 0 0 0 1px var(--n100); }
.review blockquote { margin: 0; font-size: 1.08rem; }
.review-main blockquote { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem); letter-spacing: -0.02em; line-height: 1.35; }
.review figcaption { font-size: 0.9rem; color: var(--n600); }
.reviews-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 560; color: var(--g900); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.reviews-link:hover .icon-arrow { transform: translate(2px, -2px); }

/* Qui on est : photo dominante, pleine largeur */
.team { background: var(--n50); }
.team-grid { display: grid; }
@media (min-width: 960px) { .team-grid { grid-template-columns: 7fr 5fr; min-height: 540px; } }
.team-photo { position: relative; min-height: 320px; background: var(--n100); overflow: hidden; }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-photo-missing { display: none; }
.team-photo.is-missing { display: grid; place-items: center; text-align: center; background: var(--n100); border: 1.5px dashed var(--n200); }
.team-photo.is-missing .team-photo-missing { display: block; color: var(--n600); }
.team-photo-missing span { font-size: 0.82rem; color: var(--n400); }
.team.sans-photo .team-grid { grid-template-columns: 1fr; min-height: 0; }
.team.sans-photo .team-text { max-width: var(--max); margin-inline: auto; width: 100%; }
.team.sans-photo .team-text p { max-width: 68ch; }
.team-text { display: grid; align-content: center; gap: 16px; padding: clamp(40px, 6vw, 80px) var(--pad); max-width: 640px; }
.team-text p { color: var(--n600); }
.team-text strong { color: var(--n900); font-weight: 560; }
.team-zone { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--n200); color: var(--n900) !important; font-weight: 500; }

/* FAQ : une colonne */
.faq-wrap { max-width: 880px; }
.faq { margin-top: clamp(20px, 3vw, 32px); }
.faq-item { border-top: 1px solid var(--n200); }
.faq-item:last-child { border-bottom: 1px solid var(--n200); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(1.04rem, 1rem + 0.35vw, 1.22rem); font-weight: 500; font-stretch: 103%; letter-spacing: -0.02em; transition: color 0.3s var(--ease-soft); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--g800); }
.faq-icon { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--n200); transition: background-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform 0.5s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--g950); box-shadow: none; color: #fff; }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding: 0 56px 24px 0; color: var(--n600); max-width: 64ch; }

/* Contact */
.contact { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.contact-phone, .contact-mail { display: grid; gap: 4px; border-radius: var(--radius-md); background: #fff; box-shadow: inset 0 0 0 1px var(--n100); transition: box-shadow 0.4s var(--ease-soft), transform 0.6s var(--ease); }
.contact-phone { margin-top: 32px; padding: 24px 28px; }
.contact-mail { margin-top: 10px; padding: 18px 28px; }
.contact-phone:hover, .contact-mail:hover { box-shadow: inset 0 0 0 1px var(--g950); transform: translateY(-2px); }
.contact-phone-label { font-size: 0.86rem; color: var(--n600); }
.contact-phone-num { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); font-weight: 520; font-stretch: 108%; letter-spacing: -0.04em; }
.contact-mail-value { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); font-weight: 520; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--n100), 0 40px 90px -60px rgba(0, 46, 21, 0.4); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; display: grid; }
.field input, .field textarea { width: 100%; min-height: 60px; padding: 25px 18px 9px; border: 0; border-radius: var(--radius-sm); background: var(--n25); box-shadow: inset 0 0 0 1px var(--n200); font: inherit; font-size: 1rem; color: var(--n900); transition: box-shadow 0.3s var(--ease-soft), background-color 0.3s var(--ease-soft); }
.field textarea { min-height: 104px; resize: vertical; padding-top: 30px; }
.field label { position: absolute; left: 19px; top: 20px; pointer-events: none; font-size: 1rem; color: var(--n400); transform-origin: left top; transition: transform 0.35s var(--ease), color 0.3s var(--ease-soft); }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--n400); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--g800), 0 0 0 4px rgba(34, 174, 113, 0.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.78); color: var(--n600); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--error); }
.field-error { margin-top: 6px; font-size: 0.85rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }
.choices { margin: 4px 0 0; padding: 0; border: 0; }
.choices legend { padding: 0; margin-bottom: 10px; font-size: 0.94rem; font-weight: 560; }
.choices-list { display: flex; flex-wrap: wrap; gap: 8px; }
.choices-list label { position: relative; cursor: pointer; }
.choices-list input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choices-list span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--n200); font-size: 0.94rem; font-weight: 500; transition: background-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft); }
.choices-list label:hover span { box-shadow: inset 0 0 0 1px var(--n900); }
.choices-list input:checked + span { background: var(--g950); color: #fff; box-shadow: none; }
.choices-list input:focus-visible + span { outline: 2px solid var(--g800); outline-offset: 3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn-block { margin-top: 6px; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-delay { margin-top: -4px; font-size: 0.9rem; font-weight: 560; color: var(--g800); }
.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--g800); }
.form-status.info { color: var(--n800); }
.form-status.ko { color: var(--error); }
.form-note { font-size: 0.82rem; color: var(--n400); }

/* Pied de page */
.footer { background: var(--g950); color: rgba(216, 242, 229, 0.7); padding: clamp(56px, 7vw, 80px) 0 calc(24px + env(safe-area-inset-bottom)); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; height: 96px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-col { display: grid; gap: 8px; align-content: start; justify-items: start; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer-title-gap { margin-top: 16px; }
.footer-phone { color: #fff; font-size: 1.5rem; font-weight: 520; font-stretch: 106%; letter-spacing: -0.03em; }
.footer-mail { color: #fff; }
.footer-phone:hover, .footer-mail:hover { color: var(--sun500); }
.footer .a-fournir { background: rgba(255, 200, 2, 0.12); border-color: rgba(255, 200, 2, 0.55); color: #fff; }
.footer .text-link { margin-top: 4px; font-size: 0.92rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.85rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.to-top .icon { width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }

/* Barre d'action mobile */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 18px 40px -16px rgba(0, 46, 21, 0.4), inset 0 0 0 1px rgba(21, 32, 26, 0.06);
  transform: translateY(140%); transition: transform 0.6s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.cookies-ouvert .mobile-cta { display: none; }
/* Bandeau cookies (seulement si Google Ads est branché) : Accepter et Refuser à égalité */
.cookies { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 440px; padding: 18px 18px 16px; border-radius: var(--radius-md); background: #fff; color: var(--n900); box-shadow: 0 18px 50px -18px rgba(0, 46, 21, 0.45), inset 0 0 0 1px rgba(21, 32, 26, 0.08); font-size: 0.9rem; }
.cookies[hidden] { display: none; }
.cookies p { color: var(--n600); }
.cookies-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cookies-actions .btn { min-height: 44px; }
.footer-cookies { color: inherit; font-size: inherit; }
.mobile-cta .btn { min-height: 50px; padding: 0 16px; }
.mobile-cta .btn-ghost { border-color: transparent; background: transparent; }
@media (max-width: 759px) { .mobile-cta { display: grid; } }

/* Mentions légales */
.legal { width: min(100% - 32px, 640px); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--n900); box-shadow: 0 40px 100px -30px rgba(0, 46, 21, 0.45); }
.legal::backdrop { background: rgba(0, 24, 11, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.legal[open] { animation: legal-in 0.5s var(--ease); }
@keyframes legal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.legal-inner { position: relative; padding: clamp(28px, 5vw, 48px); }
.legal h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); padding-right: 48px; }
.legal h3 { margin-top: 28px; font-size: 1rem; font-weight: 600; }
.legal p { margin-top: 8px; color: var(--n600); font-size: 0.95rem; }
.legal-credits { margin-top: 28px !important; font-size: 0.82rem !important; color: var(--n400) !important; }
.legal-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: var(--n50); cursor: pointer; transition: background-color 0.3s var(--ease-soft); }
.legal-close:hover { background: var(--n100); }
.legal-close span { position: absolute; left: 14px; right: 14px; top: 21px; height: 1.5px; background: var(--n900); border-radius: 2px; transform: rotate(45deg); }
.legal-close span + span { transform: rotate(-45deg); }

/* ---------- Animations d'entrée ---------- */
.js .hero-title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.is-loaded .hero-title .line > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-soft), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .hero-side[data-reveal] { transition-delay: 0.35s; }
.js .scene { opacity: 0; transform: translateY(32px) scale(0.985); transition: opacity 1.1s var(--ease-soft) 0.45s, transform 1.3s var(--ease) 0.45s; }
.is-loaded .scene { opacity: 1; transform: none; }
.js .scene-svg [data-ordre] { opacity: 0; transform: translateY(14px); transform-box: fill-box; transition: opacity 0.9s var(--ease-soft), transform 1.1s var(--ease); transition-delay: calc(0.6s + var(--o, 0) * 0.07s); }
.is-loaded .scene-svg [data-ordre] { opacity: 1; transform: none; }
.scene.intro-done .scene-svg [data-ordre] { transition: opacity 0.5s var(--ease-soft), filter 0.5s var(--ease-soft), transform 1s var(--ease); transition-delay: 0s; }
.scene.intro-done .spot { transition-delay: 0s; }
.is-loaded .scene.has-focus .scene-svg [data-part]:not(.is-on):not(.halo),
.is-loaded .scene.has-focus .scene-svg .sc-maison,
.is-loaded .scene.has-focus .scene-svg .sc-arbres { opacity: 0.32; }
.js .spot { opacity: 0; transition: opacity 0.6s var(--ease-soft); transition-delay: calc(1.3s + var(--i, 0) * 0.08s); }
.is-loaded .spot { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .scene-svg .halo { animation: none !important; opacity: 0; }
  .scene.has-focus .scene-svg .halo.is-on { opacity: 1; animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .scene, .js .scene-svg [data-ordre] { opacity: 1; transform: none; }
  .js .spot { opacity: 1; }
  .js .hero-title .line > span { transform: none; }
}
