/* ==========================================================================
   Toltech Énergie — site B2C
   Même mécanique que le site B2B (ICON : typo XXL, texte qui s'allume, étiquettes mono),
   habillée de la charte verte Toltech Énergie : blanc lin, vert énergie, vert forêt, radius 12px.
   ========================================================================== */

:root {
  --bg: #F9FAF8;            /* blanc lin */
  --bg-2: #EEF2EE;
  --paper: #F1F4F0;
  --white: #FFFFFF;
  --ink: #0F172A;           /* noir d'encre */
  --ink-dark: #0F172A;
  --ink-dim: #5B6472;
  --ink-off: rgba(15, 23, 42, .14);
  --line: rgba(15, 23, 42, .08);
  --line-2: rgba(15, 23, 42, .15);
  --chip: #E8EEE9;
  --accent: #059669;        /* vert énergie (texte) */
  --accent-2: #10B981;      /* vert énergie */
  --forest: #064E3B;        /* vert forêt suisse */
  --accent-glow: rgba(16, 185, 129, .3);
  --silver: linear-gradient(135deg, #34D399 0%, #10B981 55%, #059669 100%);
  --cream: #FFFFFF;

  --f-display: "Cabinet Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --r: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Chapitres sombres : vert forêt */
.dark {
  --bg: #064E3B;
  --bg-2: #0A5A45;
  --ink: #F4F7F4;
  --ink-dim: #A7C4B8;
  --ink-off: rgba(244, 247, 244, .18);
  --line: rgba(244, 247, 244, .1);
  --line-2: rgba(244, 247, 244, .2);
  --chip: rgba(255, 255, 255, .12);
  --accent: #34D399;
  --accent-2: #6EE7B7;
  --accent-glow: rgba(52, 211, 153, .35);
  color: var(--ink);
}
section.dark { background-color: var(--bg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

.todo {
  display: inline-block;
  padding: 5px 9px;
  border: 1px dashed rgba(251, 191, 36, .7);
  color: #FBBF24;
  font-size: 10.5px;
  border-radius: 3px;
  background: rgba(18, 19, 22, .55);
}

.blueprint {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

/* ============ INTRO : zoom dans le « O » ============ */
.intro { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 100; pointer-events: none; }
.intro__zoom { position: absolute; inset: 0; will-change: transform; }
.intro__hole { position: absolute; border-radius: 50%; border-style: solid; border-color: var(--bg); background: transparent; box-sizing: border-box; }
.intro__logo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9em; opacity: 0; transition: opacity .4s; font-size: min(15vw, 170px); }
.intro.is-logo .intro__logo { opacity: 1; }
.intro__word { display: flex; align-items: center; font: 800 1em/1 "Montserrat", sans-serif; letter-spacing: .06em; color: var(--ink); }
.intro__o {
  --ring: .15em;
  display: inline-block; width: .72em; height: .72em; margin: 0 .07em 0 .03em; border-radius: 50%;
  background: linear-gradient(135deg, #0EA5E9, #10B981);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring)), #000 calc(100% - var(--ring) + 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring)), #000 calc(100% - var(--ring) + 1px));
}
.intro__sub { font-size: max(10px, .12em); letter-spacing: .3em; color: var(--ink-dim); opacity: 0; transition: opacity .4s; }
.intro.is-sub .intro__sub { opacity: 1; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
  transition: background .4s, padding .4s, opacity .6s;
}
body.is-loading .header { opacity: 0; }
.header.dark.is-scrolled { background: rgba(6, 78, 59, .94); }
.header.is-scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(249, 250, 248, .94);
  border-bottom: 1px solid var(--line);
}
.logo { display: grid; gap: 4px; text-decoration: none; }
.logo__mark { width: 122px; height: auto; }
.logo__txt { font: 800 46px/1 "Montserrat", sans-serif; letter-spacing: .06em; fill: var(--ink); }
.logo__sub { font-size: 9.5px; color: var(--ink-dim); letter-spacing: .22em; border-top: 1px solid var(--line-2); padding-top: 4px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .06em;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 4px;
  background: var(--chip); color: var(--ink);
  transition: background .25s, color .25s, transform .25s;
}
.chip:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.chip--accent { background: var(--ink); color: var(--bg); }
.chip--accent:hover { background: var(--ink-dim); color: var(--bg); }

/* ============ HERO (organisation Sunrock) ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px var(--gutter) 24px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) brightness(.95); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 38, 29, .84) 0%, rgba(3, 38, 29, .4) 60%, rgba(3, 38, 29, .18) 100%),
    linear-gradient(180deg, rgba(3, 38, 29, .3) 0%, rgba(3, 38, 29, 0) 40%, rgba(3, 38, 29, .88) 100%);
}
.hero__todo { position: absolute; right: var(--gutter); top: 96px; z-index: 2; }

/* Placeholder du toit en attendant la vidéo */
.roof { position: absolute; inset: -20%; perspective: 1200px; overflow: hidden; }
.roof__plane {
  position: absolute; inset: 0;
  transform: rotateX(58deg) rotateZ(-18deg) scale(1.6);
  background:
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(148, 163, 184, .3) 58px 60px),
    repeating-linear-gradient(0deg, #26282D 0 34px, #17181B 34px 36px, #26282D 36px 70px, #1E1F23 70px 96px);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 600px 0, 0 960px; } }

.hero__content { max-width: 1440px; width: 100%; margin: 0 auto; }
.manifesto {
  font: 500 clamp(36px, 4.6vw, 80px)/1 var(--f-display);
  letter-spacing: -.035em;
  color: var(--ink-dim);
  max-width: 15em;
}
[data-hero-words] .w { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
[data-hero-words].is-in .w { opacity: 1; transform: none; filter: none; }
.kw { color: var(--ink); text-decoration: none; white-space: nowrap; }
.kw__arrow {
  display: inline-block; vertical-align: middle;
  width: .42em; height: .42em; margin-left: .14em; margin-top: -.12em;
  border: 1.5px solid currentColor; border-radius: 50%;
  position: relative;
  transition: background .3s, transform .3s var(--ease);
}
.kw__arrow::after {
  content: ""; position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h11M13 7l5 5-5 5' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") center / 62% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h11M13 7l5 5-5 5' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.kw:hover .kw__arrow { background: var(--ink); transform: translateX(.08em); }
.kw:hover .kw__arrow::after { background: var(--bg); }

.perks { list-style: none; margin: clamp(24px, 4vh, 40px) 0 clamp(24px, 4vh, 36px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 32px; }
.perk { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; align-content: start; }
.perk__icon {
  width: 40px; height: 40px; grid-row: span 2;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--silver);
}
.perk__icon svg { width: 18px; height: 18px; fill: none; stroke: #04261D; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.perk__t { font: 500 16px/1.25 var(--f-display); color: var(--ink); }
.perk__d { color: var(--ink-dim); font-size: 13px; line-height: 1.4; }
[data-hero-perks] .perk, [data-hero-cta] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero.is-in [data-hero-perks] .perk, .hero.is-in [data-hero-cta] { opacity: 1; transform: none; }
.hero.is-in .perk:nth-child(1) { transition-delay: .5s; }
.hero.is-in .perk:nth-child(2) { transition-delay: .62s; }
.hero.is-in .perk:nth-child(3) { transition-delay: .74s; }
.hero.is-in [data-hero-cta] { transition-delay: .9s; }

.cta {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 17px/1 var(--f-display);
  text-decoration: none;
  padding: 19px 30px;
  border-radius: 999px;
  background: var(--accent-2); color: #04261D;
  transition: background .3s, color .3s, gap .3s var(--ease);
}
.cta:hover { background: var(--accent-2); color: #04261D; gap: 18px; }

.hero__bar {
  margin: clamp(36px, 7vh, 72px) auto 0; max-width: 1440px; width: 100%;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--ink-dim);
  font-size: 10.5px;
}

/* ============ SECTIONS ============ */
.section { padding: clamp(110px, 18vh, 220px) 0; position: relative; }
.label { color: var(--ink); margin-bottom: 28px; }
.lead {
  font: 500 clamp(30px, 4vw, 64px)/1.06 var(--f-display);
  letter-spacing: -.025em;
  max-width: 17em;
  color: var(--ink);
}
.side { color: var(--ink-dim); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; max-width: 30em; }

[data-reveal] .w { color: var(--ink-off); transition: color .35s linear; }
[data-reveal] .w.is-lit { color: var(--ink); }

.display {
  font: 500 clamp(52px, 8.5vw, 150px)/.92 var(--f-display);
  letter-spacing: -.03em;
  color: var(--ink);
}
/* Grands titres : chaque lettre monte depuis un masque, du gris au plein (ICON) */
[data-type] { overflow: hidden; padding-bottom: .08em; }
[data-type] .ch { display: inline-block; opacity: 0; color: var(--ink-dim); transform: translateY(105%); transition: transform 1.05s var(--ease-out), opacity .6s var(--ease), color 1.4s var(--ease); }
[data-type] .sp { display: inline-block; width: .26em; }
[data-type] .wd { display: inline-block; white-space: nowrap; }
[data-type].is-in .ch { opacity: 1; color: inherit; transform: none; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
#faq .display { font-size: clamp(44px, 6.4vw, 104px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(148, 163, 184, .28); color: var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.pill:hover { background: var(--ink); color: var(--bg); }
.pill[hidden] { display: none; }
.pill--light { background: var(--forest); color: #fff; }
.pill--light:hover { background: var(--ink-dim); color: var(--bg); }
.pill--ghost { background: transparent; border-color: var(--line-2); }
.pill--ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.fine { color: var(--ink-dim); font-size: 10.5px; margin-top: 28px; max-width: 70em; line-height: 1.6; }

/* ============ GRAPHIQUE ============ */
.chart { position: relative; margin: 80px 0 0; padding: 48px 0 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 5; }
.chart__prod, .chart__conso { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.chart__prod { stroke: var(--accent-2); stroke-width: 3; }
.chart__conso { stroke: var(--ink-dim); stroke-dasharray: 6 6; }
.chart__overlap { fill: var(--accent); opacity: 0; transition: opacity .8s; }
.chart.is-done .chart__overlap { opacity: .28; }
.chart__legend { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-dim); font-size: 10.5px; }
.chart__legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 18px; height: 2px; display: inline-block; }
.dot--prod { background: var(--accent-2); }
.dot--conso { background: var(--ink-dim); }
.dot--overlap { height: 10px; background: rgba(16, 185, 129, .3); }
.chart__hours { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: space-between; color: var(--ink-dim); font-size: 10.5px; }

/* ============ QUI FAIT QUOI ============ */
.pin { position: relative; height: 300vh; }
.pin__stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pin__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.pin__title { font: 500 clamp(34px, 4.2vw, 68px)/1 var(--f-display); letter-spacing: -.03em; margin-bottom: 36px; max-width: 11em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.step { padding-left: 18px; border-left: 2px solid var(--line-2); opacity: .3; transition: opacity .5s, border-color .5s; }
.step .mono { color: var(--ink-dim); display: block; margin-bottom: 8px; }
.step p { color: var(--ink); max-width: 26em; }
.step.is-on { opacity: 1; border-color: var(--accent); }
.step.is-on .mono { color: var(--accent); }

.scene { width: 100%; height: auto; color: var(--accent); }
.flow { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 6 8; transition: stroke .5s; color: var(--line-2); }
.flow.is-on { stroke: var(--accent); color: var(--accent); animation: flow 1.2s linear infinite; filter: drop-shadow(0 0 6px var(--accent-glow)); }
@keyframes flow { to { stroke-dashoffset: -28; } }
.flow__lbl { font-size: 11px; fill: var(--ink-dim); opacity: 0; transition: opacity .5s; }
.flow__lbl.is-on { opacity: 1; fill: var(--ink); }
.node circle:first-child { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.5; transition: stroke .5s, fill .5s; }
.node__icon { fill: none; stroke: var(--ink-dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.node__ring { fill: none; stroke: var(--ink-dim); stroke-width: 6; transition: stroke .5s; }
.node__lbl { font-size: 12px; fill: var(--ink-dim); transition: fill .5s; }
.node.is-on circle:first-child { stroke: var(--accent); fill: rgba(140, 145, 152, .14); filter: drop-shadow(0 0 18px var(--accent-glow)); }
.node.is-on .node__icon, .node.is-on .node__ring { stroke: var(--ink); }
.node.is-on .node__lbl { fill: var(--ink); }

/* ============ PROCESS ============ */
.process { list-style: none; margin: 72px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.process li {
  display: grid; grid-template-columns: 80px 1fr; align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-2);
  font: 500 clamp(28px, 3.6vw, 58px)/1 var(--f-display); letter-spacing: -.03em;
  color: var(--ink-off);
  transition: color .4s, padding .4s var(--ease);
}
.process li .mono { color: var(--ink-dim); font-size: 12px; letter-spacing: .08em; }
.process li.is-lit { color: var(--ink); }
.process li:hover { padding-left: 14px; }

/* ============ SIMULATEUR (façon Tera Solar) ============ */
.sim { position: relative; height: 260vh; --lo: 1; }
.sim__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.sim__light, .sim__dark { position: absolute; inset: 0; }
.sim__dark { background: radial-gradient(120% 90% at 85% 10%, #4A4E55 0%, #1E1F23 45%, #0E0F11 100%); }
.sim__light { background: var(--paper); opacity: var(--lo); z-index: 1; }
.sim__head {
  position: relative; z-index: 3;
  text-align: center;
  padding: clamp(88px, 12vh, 130px) var(--gutter) 0;
  color: color-mix(in srgb, #111214 calc(var(--lo) * 100%), #F2F3F5);
}
.sim__title { font: 500 clamp(34px, 4.2vw, 68px)/1.02 var(--f-display); letter-spacing: -.03em; max-width: 16em; margin: 0 auto; }
.sim__sub { font-size: clamp(16px, 1.3vw, 19px); margin: 14px 0 26px; opacity: .8; }
.sim__btn {
  display: inline-flex; gap: 10px; align-items: center;
  font: 500 16px/1 var(--f-display);
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 999px;
  background: #111214; color: #F2F3F5;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
  transition: background .3s, gap .3s var(--ease);
}
.sim__btn:hover { background: var(--silver); color: #111214; gap: 16px; }

.sim__phone {
  position: absolute; z-index: 2;
  left: 50%; bottom: -10svh;
  height: 70svh; aspect-ratio: 902 / 1600;
  transform-origin: 50% 100%;
  transform: translate3d(-50%, 6vh, 0) scale(.3);
  will-change: transform;
}
.sim__phone img { width: 100%; height: 100%; object-fit: contain; }

/* ============ ÉLIGIBILITÉ ============ */
.eligibility {
  padding: clamp(80px, 12vh, 140px) 0 clamp(110px, 18vh, 200px);
  background: var(--bg);
}
.eligibility__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.eligibility__title { font: 500 clamp(36px, 4.4vw, 72px)/.98 var(--f-display); letter-spacing: -.03em; margin-bottom: 24px; max-width: 9em; }
.eligibility__intro .side { color: var(--ink-dim); }
.eligibility__tel { margin-top: 22px; }
.eligibility__tel a { text-decoration: none; border-bottom: 1px solid var(--line-2); color: var(--ink); }

.form { border: 1px solid var(--line-2); border-radius: 16px; padding: clamp(22px, 3vw, 40px); background: var(--white); box-shadow: 0 30px 60px -40px rgba(17, 18, 20, .35); }
.form__progress { display: flex; gap: 6px; margin-bottom: 32px; }
.form__dot { flex: 1; padding-top: 10px; border-top: 2px solid var(--line-2); color: var(--ink-dim); font-size: 10.5px; transition: border-color .4s, color .4s; }
.form__dot.is-on { border-color: var(--accent-2); color: var(--ink); }
.fstep { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.fstep.is-active { display: block; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.fstep legend { font: 500 clamp(24px, 2.4vw, 36px)/1.1 var(--f-display); letter-spacing: -.02em; margin-bottom: 24px; padding: 0; }
.choices { display: grid; gap: 10px; }
.choices--row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: grid; gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 17px;
  transition: border-color .25s, background .25s;
}
.choice small { color: var(--ink-dim); font-size: 10px; }
.choice:hover > span { border-color: var(--ink-dim); }
.choice input:checked + span { border-color: var(--accent); background: rgba(16, 185, 129, .08); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field .mono { color: var(--ink-dim); font-size: 10.5px; }
.field input {
  font: 400 17px/1.3 var(--f-body); color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .25s;
}
.field input::placeholder { color: rgba(107, 112, 120, .6); }
.field input:focus { outline: none; border-color: var(--ink); }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-dim); margin-top: 8px; cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.form__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form__nav #nextBtn { margin-left: auto; }
.form__error { color: #B42318; min-height: 1.2em; margin-top: 16px; font-size: 11px; }
.done__title { font: 500 clamp(28px, 3vw, 44px)/1.05 var(--f-display); letter-spacing: -.02em; margin-bottom: 24px; }
.form.is-done .form__nav, .form.is-done .form__progress { display: none; }

/* ============ FAQ ============ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  font: 500 clamp(19px, 1.6vw, 24px)/1.25 var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-dim); padding: 0 0 24px; max-width: 36em; }

/* ============ FINAL ============ */
.final { padding: clamp(110px, 18vh, 220px) 0 clamp(64px, 10vh, 110px); border-top: 1px solid var(--line); }
.manifesto--final { color: var(--ink); max-width: 15em; font-size: clamp(40px, 5.6vw, 96px); }
.duo { display: flex; gap: 64px; flex-wrap: wrap; margin-top: 72px; color: var(--ink-dim); line-height: 1.9; }
.duo__name { display: block; color: var(--ink); }
.duo a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); }

/* ============ FOOTER ============ */
.footer { padding: 28px 0 32px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 10.5px; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer__legal { flex-basis: 100%; opacity: .7; }

.mbar { display: none; }

/* ============ HERO : bouton + avis Google ============ */
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.google { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.google__note { font: 500 26px/1 var(--f-display); grid-row: span 2; }
.google__stars { display: flex; gap: 3px; }
.google__stars i { width: 13px; height: 13px; background: var(--ink); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.google__stars i.half { background: linear-gradient(90deg, var(--ink) 50%, rgba(248, 250, 252, .3) 50%); }
.google__lbl { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-dim); }
.google:hover .google__lbl { color: var(--ink); }

/* ============ CHIFFRES ============ */
.stats { padding: clamp(56px, 9vh, 96px) 0; border-bottom: 1px solid var(--line); position: relative; }
.stats__todo { position: absolute; top: 18px; right: var(--gutter); }
.stats__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats__list li { display: grid; gap: 10px; border-left: 1px solid var(--line-2); padding-left: 20px; }
.stats__n { font: 500 clamp(40px, 4.4vw, 72px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats__n small { font-size: .45em; color: var(--ink-dim); letter-spacing: 0; }
.stats__list .mono { color: var(--ink-dim); font-size: 11px; }

/* ============ LE MODÈLE : sphère de nanoparticules + fond crème ============ */
.model__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.model .side { margin-top: 28px; }
.orb { margin: 0; position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; justify-self: center; }
.orb__canvas { width: 100%; height: 100%; display: block; }

body { transition: background-color .9s var(--ease); }
body.theme-light { background-color: var(--cream); }
body.theme-dark { background-color: #064E3B; }
/* La section qui passe au noir : transparente, c'est le fond de page qui change, les couleurs suivent en douceur */
[data-theme="dark"] { background-color: transparent !important; transition: color .9s var(--ease); }
[data-theme="dark"] .tab, [data-theme="dark"] .tabpanel__text p, [data-theme="dark"] .tabpanel__text h3, [data-theme="dark"] .label, [data-theme="dark"] .tabpanel__media { transition: color .9s var(--ease), border-color .9s var(--ease), background-color .9s var(--ease); }
.model .label, .model .lead, .model .side { transition: color .9s var(--ease); }
/* Apparition des sections (façon ICON) */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

/* ============ BÉNÉFICES : onglets ============ */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.tab {
  font: 500 clamp(15px, 1.25vw, 19px)/1.25 var(--f-display);
  color: var(--ink-dim);
  text-align: left;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.tab:hover { color: var(--ink); border-color: var(--ink-dim); }
.tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tabpanel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.tabpanel[hidden] { display: none; }
.tabpanel.is-on { animation: stepIn .5s var(--ease); }
.tabpanel__media { aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; background-color: var(--bg-2); overflow: hidden; }
.tabpanel__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tabpanel__media .chart { margin: 0; padding: 40px 20px 16px; width: 100%; }
.tabpanel__media .chart__hours { top: 12px; left: 20px; right: 20px; }
.tabpanel__text h3 { font: 500 clamp(28px, 2.8vw, 46px)/1.05 var(--f-display); letter-spacing: -.025em; margin-bottom: 20px; }
.tabpanel__text p { color: var(--ink-dim); font-size: clamp(16px, 1.2vw, 19px); max-width: 30em; }
.tabpanel__text p + p { margin-top: 12px; }

/* ============ PROCESS : route en S ============ */
.road { margin: 64px 0 0; position: relative; }
.road__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.road svg { position: relative; }
.road svg { width: 100%; height: auto; overflow: visible; }
.road__line { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; }
.road__step { opacity: .25; transition: opacity .6s var(--ease); }
.road__step circle { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.5; transition: stroke .5s, fill .5s; }
.road__ico { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.road__n { font: 500 12px var(--f-mono); letter-spacing: .08em; fill: var(--ink-dim); text-anchor: middle; }
.road__t { font: 500 19px var(--f-display); fill: var(--ink); text-anchor: middle; }
.road__step.is-on { opacity: 1; }
.road__step.is-on circle { stroke: var(--accent-2); fill: var(--white); }
.process--mobile { display: none; }

/* ============ RÉFÉRENCES ============ */
.refs__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 64px; }
.ref { border: 1px solid var(--line-2); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.ref__img { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; background-color: var(--bg-2); }
.ref__tag { color: var(--ink-dim); font-size: 11px; margin-top: 6px; }
.ref__t { font: 500 clamp(20px, 1.7vw, 26px)/1.15 var(--f-display); min-height: 1.2em; }
.ref__meta { color: var(--ink-dim); font-size: 11px; margin-top: auto; min-height: 1em; }
.ref--quote { justify-content: flex-start; }
.ref__q { margin: 0; flex: 1; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: var(--r); }

/* ============ ENTRÉES DE SECTION (façon ICON, en alternance) ============ */
.ln { display: block; overflow: hidden; }
.ln__in { display: block; transition: transform 1s var(--ease-out), clip-path 1.1s var(--ease-out), opacity .8s var(--ease); }
.rv-up .ln__in { transform: translateY(105%); }
.rv-wipe .ln__in { clip-path: inset(0 100% 0 0); }
.rv.is-in .ln__in { transform: none; clip-path: inset(0 0 0 0); }
.bw { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(6px); transition: opacity .7s var(--ease), filter .9s var(--ease), transform .9s var(--ease-out); }
.rv.is-in .bw { opacity: 1; filter: none; transform: none; }
.clip { clip-path: inset(49% 0 49% 0); transition: clip-path 1.3s var(--ease-out); }
.clip.is-in { clip-path: inset(0 0 0 0); }
.card-in { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease-out); }
.card-in.from-l { transform: translateX(-34px); }
.card-in.from-r { transform: translateX(34px); }
.card-in.is-in { opacity: 1; transform: none; }

/* ============ SPHÈRE : anneaux et repères façon HUD ============ */
.orb { overflow: visible; }
.orb__ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px solid var(--line-2); pointer-events: none; }
.orb__ring--2 { inset: 3%; border: 1px dashed var(--line); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb__pin { position: absolute; font-size: 10.5px; color: var(--ink-dim); white-space: nowrap; }
.orb__pin::before { content: ""; position: absolute; width: 36px; height: 1px; background: var(--line-2); top: 50%; }
.orb__pin--1 { top: 12%; left: -2%; } .orb__pin--1::before { left: calc(100% + 8px); }
.orb__pin--2 { top: 12%; right: -2%; } .orb__pin--2::before { right: calc(100% + 8px); }
.orb__pin--3 { bottom: 16%; left: -2%; } .orb__pin--3::before { left: calc(100% + 8px); }
.orb__pin--4 { bottom: 16%; right: -2%; } .orb__pin--4::before { right: calc(100% + 8px); }
.orb canvas { cursor: pointer; }

/* ============ FINAL : nappe de particules ============ */
.final { position: relative; overflow: hidden; }
.final__field { position: absolute; left: 0; right: 0; bottom: 0; height: 75%; pointer-events: none; }
.final__field canvas { width: 100%; height: 100%; display: block; }
.final .wrap { position: relative; z-index: 1; }

/* Référence mise en avant : vidéo drone + photos du même chantier */
.refs__grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; }
.ref--feature { grid-row: span 2; }
.ref__media { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.ref__media video, .ref--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref--photo { padding: 0; min-height: 0; overflow: hidden; margin: 0; }
.ref--photo img { aspect-ratio: 16 / 9; transition: transform 1.2s var(--ease-out); }
.ref--photo:hover img { transform: scale(1.04); }
.ref__meta .todo { margin-left: 8px; }

/* ============ FONDS EN VAGUES DE NANOPARTICULES ============ */
.has-field { position: relative; overflow: hidden; }
.has-field > .wrap { position: relative; z-index: 1; }
.bg-field { position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 0; opacity: 1; pointer-events: none; }
.bg-field canvas { width: 100%; height: 100%; display: block; }
.bg-field { contain: strict; }
.bg-field--low { opacity: .85; }
.benefits .display { margin-bottom: 56px; }

/* iPhone : jamais le bouton lecture natif sur les vidéos de fond */
video::-webkit-media-controls, video::-webkit-media-controls-start-playback-button, video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
video { pointer-events: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav .chip { display: none; }
  .split, .pin__inner, .eligibility__grid { grid-template-columns: 1fr; gap: 32px; }
  .perks { grid-template-columns: 1fr; gap: 14px; }
  .hero__todo { top: 92px; }
  .hero__bar span:last-child { flex-basis: 100%; }
  .process li { grid-template-columns: 44px 1fr; }
  .pin { height: auto; }
  .section { padding: 76px 0; }
  .model__grid { gap: 8px; }
  .orb { order: -1; width: 58%; justify-self: end; margin: -24px -8px -40px 0; }
  .orb__ring--2 { display: none; }
  .bg-field { opacity: .5; }
  .stats__list { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .stats__todo { position: static; margin-bottom: 20px; }
  .model__grid, .tabpanel { grid-template-columns: 1fr; gap: 32px; }
  .tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tab { min-height: 84px; padding: 14px; }
  .road { display: none; }
  .refs__grid { grid-template-columns: 1fr; }
  .orb__pin { display: none; }
  .ref { min-height: 0; }
  .process--mobile { display: block; }
  .pin__stage { position: relative; height: auto; padding: 96px 0; }
  .pin__inner .scene { order: -1; max-width: 460px; }
  .step { opacity: 1; }
  .sim { height: 220vh; }
  .sim__phone { height: 62svh; bottom: -8svh; }
  .fields2 { grid-template-columns: 1fr; }

  .mbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    display: flex; gap: 8px;
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar__cta, .mbar__tel {
    display: grid; place-items: center;
    height: 52px; border-radius: 999px; text-decoration: none;
    font: 500 12px/1 var(--f-mono); letter-spacing: .07em;
  }
  .mbar__cta { flex: 1; background: var(--forest); color: #fff; box-shadow: 0 10px 30px -10px rgba(6, 78, 59, .6); }
  .mbar__tel { width: 52px; background: var(--accent-2); color: #04261D; }
  .footer { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-hero-words] .w, [data-type] .ch, [data-hero-perks] .perk, [data-hero-cta] { opacity: 1; transform: none; filter: none; }
  [data-reveal] .w { color: var(--ink); }
  .sim { height: auto; }
  .sim__stage { position: relative; height: auto; padding-bottom: 64px; }
  .sim__phone { transform: translate3d(-50%, 0, 0); }
  .rise, .card-in, .bw { opacity: 1; transform: none; filter: none; }
  .clip { clip-path: none; }
  .road__step { opacity: 1; }
}

/* ============ PAGE DU TEST ============ */
.eligibility--page { min-height: 100svh; padding-top: clamp(130px, 18vh, 200px); }

/* ==========================================================================
   AJOUTS B2C
   ========================================================================== */

/* Sélecteur de profil : Particuliers | Entreprises */
.switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--chip); gap: 2px; }
.switch__opt { font-size: 11px; letter-spacing: .07em; text-decoration: none; padding: 7px 12px; border-radius: 999px; color: var(--ink-dim); transition: background .25s, color .25s; }
.switch__opt:hover { color: var(--ink); }
.switch__opt.is-on { background: var(--accent-2); color: #04261D; }
.nav { align-items: center; }
.chip--accent { background: var(--forest); color: #fff; }
.header.dark .chip--accent { background: var(--accent-2); color: #04261D; }
.chip--accent:hover { background: var(--accent-2); color: #04261D; }

.kw { color: var(--ink); }
.hero .kw { color: #fff; }
.label { color: var(--accent); }
.dark .label { color: var(--accent); }

/* Comment ça marche */
.how .lead { max-width: 14em; }
.how__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; margin-top: 24px; }
.how__grid .chart { margin-top: 32px; }
.how__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.how__list li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font-size: 16px; line-height: 1.45; }
.how__list .mono { color: var(--accent); padding-top: 3px; }

/* Aides */
.aides .display { margin-bottom: 28px; }
.aides__intro { margin-bottom: 56px; color: var(--ink-dim); }
.aides__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.aide { border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px 22px 28px; display: grid; align-content: start; gap: 12px; background: rgba(255, 255, 255, .04); transition: background .9s var(--ease), border-color .9s var(--ease); }
.aide__n { color: var(--accent); font-size: 10.5px; }
.aide h3 { font: 500 clamp(22px, 1.9vw, 30px)/1.1 var(--f-display); letter-spacing: -.02em; }
.aide p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.5; }

/* Le binôme */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.person { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 18px 28px; background: var(--white); display: grid; gap: 10px; align-content: start; }
.person__pic { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); background: radial-gradient(120% 100% at 20% 0%, #10B981 0%, #064E3B 70%); display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; }
.person__pic span { font: 800 clamp(64px, 8vw, 120px)/1 "Montserrat", sans-serif; letter-spacing: .04em; color: rgba(255, 255, 255, .16); }
.person__pic .todo { position: absolute; left: 14px; bottom: 14px; }
.person__role { color: var(--accent); font-size: 11px; }
.person__name { font: 500 clamp(32px, 3.2vw, 52px)/1 var(--f-display); letter-spacing: -.03em; }
.person__meta { color: var(--ink-dim); font-size: 10.5px; line-height: 1.6; }
.person__txt { font-size: clamp(16px, 1.2vw, 19px); max-width: 30em; margin-top: 6px; }

/* Simulateur simple */
.simu { background: transparent; }
.simu__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.simu__title { font: 500 clamp(36px, 4.4vw, 72px)/.98 var(--f-display); letter-spacing: -.03em; margin-bottom: 24px; max-width: 9em; }
.simu__card { border: 1px solid var(--line-2); border-radius: 16px; background: var(--white); padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 60px -40px rgba(6, 78, 59, .45); display: grid; gap: 28px; }
.simu__field { display: grid; gap: 10px; }
.simu__field .mono, .simu__opts > .mono { color: var(--ink-dim); font-size: 10.5px; }
.simu__bill { font: 500 clamp(40px, 4vw, 60px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.simu input[type=range] { --p: 27%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent-2) var(--p), var(--bg-2) var(--p)); margin: 10px 0; }
.simu input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-2); box-shadow: 0 4px 14px rgba(6, 78, 59, .3); cursor: grab; }
.simu input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-2); cursor: grab; }
.simu__opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.simu__opts > .mono { flex-basis: 100%; }
.tog { cursor: pointer; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; transition: background .25s, border-color .25s, color .25s; }
.tog input:checked + span { background: rgba(16, 185, 129, .1); border-color: var(--accent); color: var(--forest); }
.tog input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.simu__res { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.simu__res div { background: var(--white); padding: 16px 18px; }
.simu__res dt { color: var(--ink-dim); font-size: 10px; margin-bottom: 6px; }
.simu__res dd { margin: 0; font-size: 15px; color: var(--ink-dim); }
.simu__res b { font: 500 30px/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.simu__note { color: var(--ink-dim); font-size: 10px; line-height: 1.6; }
.cta--full { justify-content: center; }

/* Sur le terrain */
.ref { border-radius: 16px; }
.ref__tag { color: var(--accent); }

/* Final */
.final { background: var(--bg); }
.final .kw { color: var(--accent); }

/* Formulaire */
.form__promise { color: var(--accent); font-size: 10.5px; margin-top: 18px; line-height: 1.6; }
.form.is-stopped .form__nav, .form.is-stopped .form__progress { display: none; }
.stop__txt { color: var(--ink-dim); margin: 0 0 24px; }
.page-test { background: var(--bg); }

@media (max-width: 900px) {
  .header { align-items: center; }
  .logo__mark { width: 104px; }
  .switch__opt { padding: 7px 10px; font-size: 10.5px; }
  .how__grid, .simu__grid { grid-template-columns: 1fr; gap: 28px; }
  .aides__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aide { padding: 18px 16px 20px; }
  .people { grid-template-columns: 1fr; margin-top: 40px; }
  .simu__res b { font-size: 26px; }
}
@media (max-width: 560px) {
  .aides__grid { grid-template-columns: 1fr; }
  .logo__sub { display: none; }
}
/* Étapes : les textes passent au-dessus du ruban de particules */
.road__t, .road__n { paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
@media (max-width: 900px) {
  .hero__veil { background: linear-gradient(180deg, rgba(3, 38, 29, .55) 0%, rgba(3, 38, 29, .15) 30%, rgba(3, 38, 29, .55) 55%, rgba(3, 38, 29, .92) 100%); }
}

/* Réalisations */
.reals { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 16px; margin-top: 64px; align-items: stretch; }
.real { border: 1px solid var(--line-2); border-radius: 16px; background: var(--white); padding: 14px 14px 22px; display: flex; flex-direction: column; gap: 8px; }
.real__media { border-radius: var(--r); overflow: hidden; background: var(--bg-2); margin-bottom: 10px; flex: 1; min-height: 320px; }
.real__media img, .real__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.real__media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: transparent; }
.real__media--duo img { border-radius: 8px; transition: transform 1.2s var(--ease-out); }
.real__media--duo img:hover { transform: scale(1.03); }
.real__media--none { background: radial-gradient(120% 100% at 20% 0%, #10B981 0%, #064E3B 70%); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; }
.real__big { font: 500 clamp(80px, 9vw, 140px)/.9 var(--f-display); letter-spacing: -.04em; }
.real__media--none .mono { color: rgba(255, 255, 255, .7); font-size: 11px; margin-top: 8px; }
.real__place { color: var(--accent); font-size: 11px; }
.real__t { font: 500 clamp(20px, 1.7vw, 26px)/1.15 var(--f-display); letter-spacing: -.01em; }
.real__meta { color: var(--ink-dim); font-size: 11px; }
@media (max-width: 900px) {
  .reals { grid-template-columns: 1fr; margin-top: 40px; }
  .real__media { min-height: 0; flex: none; }
  .real__media--duo img { aspect-ratio: 4 / 3; height: auto; }
  .real__media--tall { aspect-ratio: 4 / 5; }
  .real__media--none { aspect-ratio: 16 / 9; }
}

/* Réalisations v2 : cartes cliquables */
.reals { grid-template-columns: 1.6fr 1fr 1fr; }
button.real { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
button.real:hover { border-color: var(--accent); box-shadow: 0 30px 60px -40px rgba(6, 78, 59, .5); transform: translateY(-3px); }
button.real:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.real__media { display: block; position: relative; min-height: 380px; }
.real__media img, .real__media video { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
button.real:hover .real__media img, button.real:hover .real__media video { transform: scale(1.04); }
.real__place, .real__t, .real__meta { display: block; }
.real__more { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 11px; color: var(--forest); }
.real__more i { font-style: normal; transition: transform .3s var(--ease); }
button.real:hover .real__more i { transform: translateX(4px); }

/* Fiche projet */
.sheet { border: 0; padding: 0; width: min(1180px, calc(100% - 24px)); max-height: calc(100svh - 24px); border-radius: 18px; background: var(--white); color: var(--ink); overflow: auto; }
.sheet::backdrop { background: rgba(4, 38, 29, .72); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetIn .45s var(--ease-out); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet__inner { position: relative; padding: 14px; display: grid; gap: 12px; }
.sheet__close { position: absolute; top: 22px; right: 22px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font: 400 26px/1 var(--f-body); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.sheet__stage { border-radius: 12px; overflow: hidden; background: #0b1512; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.sheet__stage img, .sheet__stage video { width: 100%; height: 100%; object-fit: contain; }
.sheet__thumbs { display: flex; gap: 8px; overflow-x: auto; }
.sheet__thumb { flex: 0 0 auto; width: 110px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg-2); position: relative; }
.sheet__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet__thumb.is-on { border-color: var(--accent-2); }
.sheet__thumb .mono { position: absolute; left: 6px; bottom: 6px; font-size: 9px; color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 5px; border-radius: 4px; }
.sheet__info { display: grid; gap: 8px; padding: 8px 8px 12px; justify-items: start; }
.sheet__title { font: 500 clamp(28px, 3vw, 44px)/1.05 var(--f-display); letter-spacing: -.02em; margin-bottom: 4px; }
.sheet__info .cta { margin-top: 14px; }
body.has-sheet { overflow: hidden; }

/* Avis Google */
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.google--dark .google__stars i { background: #FBBC04; }
.google--dark .google__stars i.half { background: linear-gradient(90deg, #FBBC04 50%, var(--line-2) 50%); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.review { margin: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--white); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.review__stars { color: #FBBC04; letter-spacing: 2px; font-size: 15px; }
.review blockquote { margin: 0; font: 500 clamp(19px, 1.6vw, 24px)/1.3 var(--f-display); letter-spacing: -.01em; flex: 1; }
.review figcaption { color: var(--ink-dim); font-size: 10.5px; }

@media (max-width: 900px) {
  .reals { grid-template-columns: 1fr; }
  .real__media { min-height: 0; aspect-ratio: 4 / 3; }
  .real--wide .real__media { aspect-ratio: 16 / 10; }
  .reviews__grid { grid-template-columns: 1fr; margin-top: 32px; }
  .sheet { width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; margin: 0; max-width: none; }
  .sheet__stage { aspect-ratio: 4 / 3; }
}

/* Comment ça marche : 3 scènes animées (Veo) */
.scenes { margin-top: 48px; }
.scenes__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.scenes__tab { font: 500 clamp(15px, 1.25vw, 19px)/1.2 var(--f-display); color: var(--ink-dim); text-align: left; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); cursor: pointer; display: flex; gap: 12px; align-items: baseline; transition: background .3s, color .3s, border-color .3s; }
.scenes__tab .mono { color: var(--accent); }
.scenes__tab:hover { color: var(--ink); border-color: var(--ink-dim); }
.scenes__tab.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }
.scenes__tab.is-on .mono { color: #6EE7B7; }
.scenes__stage { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #EEEDEA; }
.scenes__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.scenes__video.is-on { opacity: 1; }
.scenes__cards { position: absolute; right: 3.5%; top: 9%; display: grid; gap: 12px; width: min(300px, 30%); }
.scard { background: rgba(255, 255, 255, .94); border-radius: 12px; padding: 14px 16px 16px; box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .35); display: none; gap: 10px; opacity: 0; transform: translateY(10px); }
.scard span { font: 500 16px/1.2 var(--f-display); }
.scard i { display: block; height: 7px; border-radius: 7px; background: #EEF0EF; position: relative; overflow: hidden; }
.scard i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 7px; background: linear-gradient(90deg, #FACC15, #10B981); transition: width 2.4s var(--ease-out) .3s; }
.scard.is-on { display: grid; animation: scardIn .6s var(--ease-out) forwards; }
.scard.is-on:nth-child(even) { animation-delay: .18s; }
.scard.is-full i::after { width: var(--w); }
@keyframes scardIn { to { opacity: 1; transform: none; } }
.scenes__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(15, 23, 42, .08); }
.scenes__progress i { display: block; height: 100%; width: 0; background: var(--accent-2); }
.scenes__captions { position: relative; margin-top: 18px; min-height: 3.2em; }
.scenes__cap { display: none; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; max-width: 46em; color: var(--ink); }
.scenes__cap.is-on { display: block; animation: stepIn .5s var(--ease); }
.scenes__note { color: var(--ink-dim); font-size: 10px; margin-top: 16px; line-height: 1.6; max-width: 80em; }
@media (max-width: 900px) {
  .scenes__tabs { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .scenes__tab { flex-direction: column; gap: 4px; padding: 10px; font-size: 13.5px; }
  .scenes__stage { aspect-ratio: 4 / 3; }
  .scenes__video { object-position: 35% 50%; }
  .scenes__cards { right: 10px; left: auto; top: 10px; width: 46%; gap: 6px; }
  .scard { padding: 8px 10px 10px; gap: 6px; border-radius: 9px; }
  .scard span { font-size: 12px; }
  .scard i { height: 5px; }
}
.reviews__more { margin-top: 24px; }

/* Comment ça marche : texte à gauche, scène à droite */
.scenes { margin-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 48px; align-items: center; }
.scenes__side .lead { font-size: clamp(30px, 3.2vw, 52px); margin-bottom: 32px; }
.scenes__side .scenes__tabs { grid-template-columns: 1fr; gap: 8px; }
.scenes__side .scenes__captions { margin-top: 20px; }
.scenes__cards { width: min(260px, 36%); }
.scard span { font-size: 14.5px; }

/* Avis : le reste s'affiche sur place */
.reviews__grid { grid-template-columns: repeat(2, 1fr); }
.review--more:not([hidden]) { grid-column: 1 / -1; animation: stepIn .5s var(--ease); }
.reviews__more[hidden] { display: none; }

@media (max-width: 900px) {
  .scenes { grid-template-columns: 1fr; gap: 20px; }
  .scenes__side .scenes__tabs { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .scenes__side .lead { margin-bottom: 22px; }
  .scenes__cards { width: 46%; }
  .reviews__grid { grid-template-columns: 1fr; }
}
.reviews__grid { grid-template-columns: repeat(3, 1fr); }
.reviews--page { padding-top: clamp(130px, 18vh, 200px); min-height: 100svh; }
.reviews--page .back { text-decoration: none; }
.reviews__intro { margin-top: 20px; color: var(--ink-dim); }
.reviews__cta { margin-top: 40px; }
.page-avis { background: var(--bg); }
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; } }
.reviews__back { margin-bottom: 28px; } .reviews__back a { color: var(--accent); text-decoration: none; }

/* En 5 étapes : chapitre vert forêt */
.process-sec .road__line { stroke: #6EE7B7; }
.process-sec .road__step circle { transition: stroke .5s, fill .9s var(--ease); }
.process-sec.dark .road__step.is-on circle { fill: #0A5A45; stroke: #6EE7B7; }
.process-sec.dark .road__ico { stroke: #fff; }
.process-sec.dark .road__t { fill: #fff; }
.process-sec.dark .road__n { fill: #A7C4B8; }
.process-sec.dark .process li.is-lit { color: #fff; }

/* Portraits : ronds (les photos fournies sont petites) */
.person__pic { aspect-ratio: auto; width: 150px; height: 150px; border-radius: 50%; background: var(--bg-2); margin-bottom: 18px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line-2); }
.person__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person { padding: 26px 26px 30px; }
@media (max-width: 900px) { .person__pic { width: 120px; height: 120px; } }

/* Switch : sans financement (Toltech Énergie) | avec investisseurs (Toltech Capital Énergie) */
.switch .sw-s { display: none; }
@media (max-width: 560px) { .switch .sw-l { display: none; } .switch .sw-s { display: inline; } }

/* Nos prestations */
.svcs .display { margin-bottom: 48px; }
.svcs__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.svc { text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; background: var(--white); padding: 22px 20px 24px; display: grid; gap: 10px; align-content: start; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 24px 50px -36px rgba(6, 78, 59, .5); }
.svc__icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(16, 185, 129, .12); display: grid; place-items: center; margin-bottom: 6px; }
.svc__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--forest); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc__t { font: 500 clamp(19px, 1.5vw, 23px)/1.15 var(--f-display); letter-spacing: -.01em; }
.svc__d { color: var(--ink-dim); font-size: 15px; line-height: 1.45; }

/* Professionnels et architectes */
.pros .display { font-size: clamp(44px, 6.6vw, 112px); }
.pros__intro { margin: 28px 0 48px; color: var(--ink-dim); max-width: 40em; }
.pros__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pros__steps li { border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.pros__steps .mono { color: var(--accent); }
.pros__steps b { font: 500 20px/1.15 var(--f-display); }
.pros__steps li > span:last-child { color: var(--ink-dim); font-size: 15px; line-height: 1.45; }
.pros__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 40px; }
.pros .pill--ghost { color: var(--ink); }
.pros__alt { margin-top: 28px; color: var(--ink-dim); font-size: 11px; }
.pros__alt a { color: var(--accent); text-decoration: none; }
.hero__bar a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

@media (max-width: 900px) {
  .svcs__grid { grid-template-columns: 1fr 1fr; }
  .pros__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .svcs__grid, .pros__steps { grid-template-columns: 1fr; }
}

/* Partenaires */
.partners .display { margin-bottom: 48px; }
.partners__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.partner { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.partner__name { font: 700 clamp(30px, 3vw, 46px)/1 var(--f-display); letter-spacing: -.02em; }
.partner__tag { color: var(--accent); font-size: 10.5px; }
.partner__txt { color: var(--ink-dim); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; max-width: 40em; }
.partner__link { margin-top: 8px; font-size: 11px; color: var(--ink); text-decoration: none; }
.partner__link:hover { text-decoration: underline; }
@media (max-width: 900px) { .partners__grid { grid-template-columns: 1fr; } }
.partner__logo { width: clamp(180px, 18vw, 240px); height: auto; margin: -10px 0 4px -14px; }

/* Bandeau des partenaires (logos qui défilent) */
.band { display: flex; align-items: center; gap: 28px; padding: 22px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); overflow: hidden; position: relative; }
.band__lbl { flex: 0 0 auto; color: var(--ink-dim); font-size: 10.5px; }
.band__viewport { flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.band__track { display: flex; width: max-content; animation: bandScroll 28s linear infinite; }
.band:hover .band__track { animation-play-state: paused; }
.band__group { display: flex; align-items: center; gap: clamp(48px, 7vw, 110px); padding-right: clamp(48px, 7vw, 110px); }
.band__logo { display: block; flex: 0 0 auto; }
.band__logo img { height: clamp(34px, 3.4vw, 48px); width: auto; display: block; }
@keyframes bandScroll { to { transform: translateX(-50%); } }
@media (max-width: 900px) { .band { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px var(--gutter); } .band__viewport { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } }

/* « Ils en parlent » : titre plus petit */
.reviews .display { font-size: clamp(38px, 5vw, 84px); }

/* Fiche projet : le média reste entier dans son cadre, quel que soit son format */
.sheet__stage { position: relative; display: block; }
.sheet__stage img, .sheet__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sheet__stage.is-tall { aspect-ratio: 3 / 4; max-height: 70svh; }
@media (min-width: 901px) { .sheet__stage.is-tall { aspect-ratio: 16 / 9; } }

/* Partenaire : encart compact (remplace le bandeau) */
.ptn { padding: clamp(28px, 5vh, 56px) 0; }
.ptn__card { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: clamp(16px, 2.4vw, 36px); text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); padding: 18px clamp(18px, 2.4vw, 32px); transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
.ptn__card:hover { border-color: var(--ink-dim); transform: translateY(-2px); box-shadow: 0 24px 50px -38px rgba(15, 23, 42, .45); }
.ptn__lbl { color: var(--ink-dim); font-size: 10.5px; padding-right: clamp(16px, 2.4vw, 36px); border-right: 1px solid var(--line-2); align-self: stretch; display: flex; align-items: center; }
.ptn__logo { height: clamp(36px, 3.4vw, 48px); width: auto; display: block; }
.ptn__txt { color: var(--ink-dim); font-size: clamp(14.5px, 1.1vw, 16.5px); line-height: 1.45; max-width: 40em; }
.ptn__go { font-size: 16px; color: var(--ink); }
@media (max-width: 900px) {
  .ptn__card { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .ptn__lbl { grid-column: 1 / -1; border-right: 0; padding: 0; }
  .ptn__txt { grid-column: 1 / -1; }
  .ptn__go { grid-row: 2; grid-column: 2; }
}

/* Pourquoi travailler avec nous */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.why__item { border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px 20px 24px; display: grid; gap: 8px; align-content: start; background: var(--why-bg, transparent); }
.why__item .mono { color: var(--accent); }
.why__item b { font: 500 clamp(19px, 1.6vw, 24px)/1.15 var(--f-display); }
.why__item > span:last-child { color: var(--ink-dim); font-size: 15px; line-height: 1.45; }
.pros__how { margin: 48px 0 18px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }
