/* ==========================================================================
   Lux Store Solar Energy — « Nuit solaire » : cinématique sombre premium
   Tokens uniques : toute valeur de couleur/typo/espacement vit ici.
   ========================================================================== */

:root {
  /* Nuit + or (issus du logo : noir, jaune soleil ; vert réservé au sens) */
  --night: #07070a;
  --night-2: #0d0d12;
  --night-3: #14141b;
  --line: rgba(13, 143, 65, 0.30);
  --line-soft: rgba(255, 255, 255, 0.08);
  --green: #0d8f41;        /* vert logo, version foncée */
  --green-soft: #3fae6c;
  --green-pale: #cfeeda;
  --leaf: #0d8f41;
  --text: #f4f1e8;
  --text-2: #b8b4a6;
  --muted: #918e7f;
  --error: #ff8a7a;

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --step-display: clamp(2.6rem, 6.5vw, 5.6rem);
  --step-h2: clamp(2rem, 4.4vw, 3.4rem);
  --step-h3: 1.3rem;
  --step-body: 1.06rem;
  --step-small: 0.94rem;
  --step-label: 0.76rem;

  --space-section: clamp(5.5rem, 12vw, 10rem);
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
  --dur: 260ms;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--green); color: var(--night); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
a, button, summary, input, textarea, [role="button"] { touch-action: manipulation; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: var(--night);
  padding: 0.75rem 1.25rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Soulignement or lumineux */
.u-sun {
  background-image: linear-gradient(90deg, var(--green), var(--green-pale));
  background-repeat: no-repeat;
  background-size: 100% 0.1em;
  background-position: 0 99%;
  transition: background-size 900ms var(--ease) 200ms;
}
html.js .u-sun:not(.is-inview) { background-size: 0% 0.1em; }
.is-inview .u-sun { background-size: 100% 0.1em; }

/* Révélations */
.reveal { transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
html.js .reveal:not(.is-inview) { opacity: 0; transform: translateY(34px); }
.reveal.is-inview { opacity: 1; transform: none; }
.reveal-group > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal:not(.is-inview) { opacity: 1; transform: none; }
  html.js .u-sun:not(.is-inview) { background-size: 100% 0.1em; }
  a, button, summary, .header-tel, .link-arrow, .main-nav a, .site-footer a {
    transition-duration: 150ms !important;
    transition-property: color, background-color, border-color, opacity !important;
  }
}

/* ==========================================================================
   Scénographie lumineuse (le décor cinématique)
   ========================================================================== */
.scene { position: relative; isolation: isolate; }
.scene > .container { position: relative; z-index: 2; }
.glow {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%; filter: blur(90px);
}
.glow-sun {
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle,
    rgba(13, 143, 65, 0.32) 0%,
    rgba(13, 143, 65, 0.10) 40%,
    transparent 70%);
}
.glow-ember {
  width: 40vw; height: 40vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle,
    rgba(63, 174, 108, 0.18) 0%,
    rgba(63, 174, 108, 0.05) 45%,
    transparent 70%);
}
.horizon {
  position: absolute; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(13, 143, 65,0.55), transparent);
}
.horizon::after {
  content: ""; position: absolute; inset: -40px 10%;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(13, 143, 65,0.12), transparent);
}

/* Grain cinéma très léger */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Header — verre nocturne
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 10, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.wordmark { display: flex; align-items: baseline; gap: 0.45rem; text-decoration: none; line-height: 1; }
.wordmark .wm-lux { font-weight: 900; font-size: 1.45rem; letter-spacing: 0.01em; color: var(--text); }
.wordmark .wm-bar { width: 2px; height: 1.3rem; background: var(--green); align-self: center; }
.wordmark .wm-store { font-weight: 300; font-size: 1.45rem; letter-spacing: 0.06em; color: var(--text); }
.wordmark .wm-sub {
  display: block; font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.4em; color: var(--green-soft); margin-top: 0.32rem;
  padding-top: 0.28rem; border-top: 1px solid var(--line); width: fit-content;
}
.main-nav ul { display: flex; list-style: none; align-items: center; }
.main-nav li { display: flex; align-items: center; }
.main-nav li + li::before {
  content: ""; width: 1px; height: 0.95rem; background: var(--line-soft); margin-inline: 1.15rem;
}
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.94rem; color: var(--text-2);
  transition: color var(--dur) var(--ease);
}
.main-nav a:hover { color: var(--green-pale); }
.header-tel {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem;
  text-decoration: none; white-space: nowrap; color: var(--green-pale);
  border: 1px solid var(--line); padding: 0.72rem 1.05rem; border-radius: 99px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform 150ms var(--ease);
}
.header-tel:hover { background: var(--green); color: var(--night); border-color: var(--green); }
.nav-toggle { display: none; }

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-block; position: relative; overflow: hidden;
  padding: 1.05rem 2rem; border: none; border-radius: 99px;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
}
.btn-sun {
  background: linear-gradient(135deg, var(--green), #085f2b);
  color: var(--night);
  box-shadow: 0 0 32px rgba(13, 143, 65, 0.35), 0 4px 18px rgba(0,0,0,0.5);
  transition: box-shadow var(--dur) var(--ease), transform 150ms var(--ease);
}
.btn-sun:hover, .btn-sun:focus-visible {
  box-shadow: 0 0 52px rgba(13, 143, 65, 0.55), 0 6px 22px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}
.btn-sun > span { position: relative; z-index: 1; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 99px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 150ms var(--ease);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-pale); }
.link-arrow {
  font-weight: 600; text-decoration: none; color: var(--green-pale);
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-arrow:hover { color: var(--green-soft); border-color: var(--green); }

/* ==========================================================================
   Hero — lever de soleil nocturne
   ========================================================================== */
.hero {
  min-height: calc(100svh - 4.5rem);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(3rem, 7vw, 5rem) 0;
  position: relative; overflow: hidden; isolation: isolate;
}
.hero .glow-sun { top: -18vw; right: -12vw; }
.hero .glow-ember { bottom: -10vw; left: -14vw; }
.hero .horizon { bottom: 0; }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.hero .kicker {
  color: var(--green-soft); margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: 0.85rem;
}
.hero .kicker::before {
  content: ""; width: 2.75rem; height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
}
.hero h1 {
  font-size: var(--step-display); font-weight: 640; line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero h1 .h1-line { display: block; }
.hero h1 .h1-thin {
  font-weight: 250; font-size: 0.82em; letter-spacing: -0.01em;
  color: var(--text-2); margin-top: 0.3em;
}
.hero h1 .h1-thin .u-sun { color: var(--green-pale); }
.hero-support { margin-top: 2rem; max-width: 33rem; font-size: 1.13rem; color: var(--text-2); }
.hero-support strong { color: var(--text); font-weight: 600; }
.hero-ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.35rem; align-items: center; }

/* Bandeau identité */
.id-band {
  border-block: 1px solid var(--line-soft);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  background: rgba(13, 13, 18, 0.5);
  position: relative; z-index: 2;
}
.id-band .container {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0;
  padding-block: 1rem; color: var(--muted); justify-content: space-between;
}
.id-band span { display: flex; align-items: center; }
.id-band span + span::before {
  content: ""; width: 1px; height: 0.9rem; background: var(--line-soft); margin-inline: 1.2rem;
}

/* ==========================================================================
   Facture — l'objet précieux
   ========================================================================== */
.hero-invoice { max-width: 34rem; justify-self: end; width: 100%; perspective: 1200px; }
.invoice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 20, 27, 0.92), rgba(13, 13, 18, 0.88));
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 60px rgba(13, 143, 65, 0.10),
    0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.invoice-head {
  display: flex; justify-content: space-between; padding: 1.15rem 1.6rem;
  border-bottom: 1px solid var(--line-soft); color: var(--green-soft);
}
.invoice-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--line-soft);
}
.invoice-line .li-label { font-weight: 600; color: var(--text); }
.invoice-line .li-note { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 400; margin-top: 0.25rem; }
.invoice-line .li-amount { font-family: var(--font-mono); font-size: 0.9rem; white-space: nowrap; color: var(--text-2); }
.invoice-line.li-aid .li-amount, .invoice-line.li-aid .li-label { color: var(--leaf); }
.invoice-line.li-total {
  border-bottom: none;
  background: linear-gradient(90deg, rgba(13, 143, 65, 0.14), rgba(13, 143, 65, 0.03));
}
.invoice-line.li-total .li-label { color: var(--green-pale); }
.invoice-line.li-total .li-amount { color: var(--green-soft); font-weight: 600; }
.invoice-foot { padding: 1rem 1.6rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.8rem; }
.invoice-foot a { color: var(--text-2); }

.invoice .invoice-line, .invoice .invoice-head, .invoice .invoice-foot {
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
html.js .invoice:not(.is-inview) .invoice-line,
html.js .invoice:not(.is-inview) .invoice-head,
html.js .invoice:not(.is-inview) .invoice-foot { opacity: 0; transform: translateY(14px); }
.invoice.is-inview .invoice-line:nth-child(2) { transition-delay: 300ms; }
.invoice.is-inview .invoice-line:nth-child(3) { transition-delay: 650ms; }
.invoice.is-inview .invoice-line:nth-child(4) { transition-delay: 1000ms; }
.invoice.is-inview .invoice-foot { transition-delay: 1350ms; }
@media (prefers-reduced-motion: reduce) {
  html.js .invoice:not(.is-inview) .invoice-line,
  html.js .invoice:not(.is-inview) .invoice-head,
  html.js .invoice:not(.is-inview) .invoice-foot { opacity: 1; transform: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--space-section); position: relative; }
.section-dark { background: transparent; }
.section-surface {
  background: linear-gradient(180deg, var(--night-2), var(--night));
  border-block: 1px solid var(--line-soft);
}
.section-head { max-width: 48rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head .mono-label { color: var(--green-soft); display: block; margin-bottom: 1.2rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-h2); font-weight: 540; line-height: 1.12;
  letter-spacing: -0.01em; font-variation-settings: "opsz" 90;
}
.section-head .section-intro { margin-top: 1.4rem; color: var(--text-2); font-size: 1.1rem; }

/* Méthode 01|02|03 */
.process { list-style: none; counter-reset: step; }
.process li {
  counter-increment: step;
  display: grid; grid-template-columns: 6rem 1fr; gap: 1.75rem;
  padding-block: 2.4rem;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.process li:last-child { border-bottom: 1px solid var(--line-soft); }
.process .step-index {
  font-family: var(--font-mono); font-size: 1rem; color: var(--green-soft);
  display: flex; align-items: center; gap: 0.7rem; padding-top: 0.3rem;
  text-shadow: 0 0 18px rgba(13, 143, 65, 0.5);
}
.process .step-index::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.process h3 { font-size: 1.35rem; font-weight: 650; margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.process p { color: var(--text-2); font-size: var(--step-small); max-width: 48rem; }

/* Ligne de production */
.prod-line { margin-bottom: 2.5rem; }
.prod-line svg { width: 100%; height: auto; }
.flow-line { stroke: rgba(255,255,255,0.14); stroke-width: 1.5; fill: none; }
.flow-pulse {
  stroke: var(--green); stroke-width: 2.5; fill: none; stroke-linecap: round;
  stroke-dasharray: 40 1200;
  animation: flow-run 4.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(13, 143, 65, 0.8));
}
.flow-pulse.d2 { animation-delay: 2.2s; }
@keyframes flow-run { from { stroke-dashoffset: 1240; } to { stroke-dashoffset: 0; } }
.flow-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  fill: var(--muted); text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  .flow-pulse { animation: none; stroke-dasharray: none; opacity: 0.5; }
}

/* Data / pédagogie */
.data-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.data-cell {
  background: linear-gradient(160deg, rgba(20,20,27,0.85), rgba(13,13,18,0.7));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.4rem 2.1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.data-cell:hover { border-color: var(--line); box-shadow: 0 0 40px rgba(13, 143, 65,0.08); }
.data-cell .figure {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 1rem; display: flex; align-items: baseline; gap: 0.35rem;
  color: var(--green-pale);
  text-shadow: 0 0 30px rgba(13, 143, 65, 0.35);
}
.data-cell .figure .unit { font-size: 0.95rem; color: var(--muted); letter-spacing: 0; text-shadow: none; }
.data-cell p { color: var(--text-2); font-size: var(--step-small); }
.data-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.85rem; }
.data-note a { color: var(--text-2); }

/* Simulateur */
.simulator {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.6);
  background: linear-gradient(160deg, rgba(20,20,27,0.9), rgba(10,10,14,0.85));
  box-shadow: 0 0 80px rgba(13, 143, 65, 0.07), 0 30px 60px rgba(0,0,0,0.45);
  padding: clamp(2rem, 4.5vw, 3.5rem);
}
.sim-controls label { display: block; font-weight: 600; margin-bottom: 1rem; font-size: 1.1rem; }
.sim-controls .sim-value { font-family: var(--font-mono); color: var(--green-soft); text-shadow: 0 0 16px rgba(13, 143, 65,0.5); }
input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: 3px; padding-block: 20px; box-sizing: content-box;
  background: linear-gradient(90deg, var(--green), rgba(255,255,255,0.12));
  background-clip: content-box; border-radius: 2px; outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--green-pale), var(--green));
  border: none; cursor: grab;
  box-shadow: 0 0 24px rgba(13, 143, 65, 0.7);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--green-pale), var(--green));
  border: none; cursor: grab; box-shadow: 0 0 24px rgba(13, 143, 65, 0.7);
}
.sim-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.7rem; }
.sim-result { text-align: center; }
.sim-gauge { width: min(15rem, 60vw); margin-inline: auto; }
.sim-gauge .gauge-track { stroke: rgba(255,255,255,0.1); }
.sim-gauge .gauge-fill {
  stroke: url(#gauge-grad); stroke: var(--green);
  transition: stroke-dashoffset 400ms var(--ease);
  filter: drop-shadow(0 0 8px rgba(13, 143, 65, 0.6));
}
.sim-figure {
  font-family: var(--font-mono); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600;
  color: var(--green-pale); text-shadow: 0 0 26px rgba(13, 143, 65,0.4);
}
.sim-caption { color: var(--text-2); font-size: var(--step-small); max-width: 22rem; margin: 0.8rem auto 0; }
.sim-note {
  grid-column: 1 / -1; color: var(--muted); font-size: 0.82rem;
  border-top: 1px solid var(--line-soft); padding-top: 1.2rem;
}

/* Préfinancement — faits */
.prefi-facts {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.prefi-facts li {
  background: linear-gradient(170deg, rgba(20,20,27,0.9), rgba(13,13,18,0.75));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  font-size: 0.93rem; color: var(--text-2); line-height: 1.55;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.prefi-facts li:hover { border-color: var(--line); }
.prefi-facts li .mono-label { display: block; color: var(--green-soft); margin-bottom: 0.8rem; }

/* Zone */
.zone-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.zone-address {
  font-family: var(--font-mono); font-size: 0.9rem; line-height: 2.1; color: var(--text-2);
  border-left: 1px solid var(--green); padding-left: 1.4rem; margin-top: 1.75rem;
}
.zone-address a { color: var(--green-pale); }
.zone-map svg { width: 100%; height: auto; }
.zone-map .map-outline { fill: rgba(20,20,27,0.6); stroke: var(--line); stroke-width: 1.5; }
.zone-map .map-ray { stroke: rgba(13, 143, 65,0.25); stroke-width: 1; stroke-dasharray: 3 6; }
.zone-map .map-dot { fill: var(--green); filter: drop-shadow(0 0 10px rgba(13, 143, 65,0.9)); }
.zone-map .map-halo { fill: none; stroke: rgba(13, 143, 65,0.35); }
.zone-map .map-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; fill: var(--green-pale); }

/* FAQ */
.faq { max-width: 52rem; }
.faq details {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: rgba(13, 13, 18, 0.55);
  margin-bottom: 0.85rem;
  transition: border-color var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1.5rem; padding: 1.35rem 1.6rem;
  font-weight: 600; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.35rem; font-weight: 300;
  color: var(--green-soft); transition: transform var(--dur) var(--ease); flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.6rem 1.5rem; color: var(--text-2); max-width: 44rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5.5rem); }
.contact-aside h2 { font-family: var(--font-display); font-size: var(--step-h2); font-weight: 540; line-height: 1.12; margin-top: 1.1rem; letter-spacing: -0.01em; }
.contact-aside p { color: var(--text-2); margin-top: 1.4rem; max-width: 26rem; }
.contact-aside .contact-tel {
  display: inline-block; margin-top: 2.2rem; font-family: var(--font-mono);
  font-size: 1.35rem; color: var(--green-pale); text-decoration: none;
  border-bottom: 1px solid var(--green);
  text-shadow: 0 0 20px rgba(13, 143, 65,0.35);
}
.contact-aside .contact-tel:hover { color: var(--green-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { font-weight: 500; font-size: 0.92rem; color: var(--text-2); }
.form-field label .req { color: var(--green-soft); }
.form-field input, .form-field textarea {
  background: rgba(20, 20, 27, 0.8); border: 1px solid var(--line-soft); color: var(--text);
  padding: 0.95rem 1.1rem; font: inherit; border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-field input:focus-visible, .form-field textarea:focus-visible {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 0 24px rgba(13, 143, 65,0.15);
}
.form-field .field-error { color: var(--error); font-size: 0.82rem; display: none; }
.form-field.has-error .field-error { display: block; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--error); }
.form-rgpd { grid-column: 1 / -1; color: var(--muted); font-size: 0.82rem; }
.form-rgpd a { color: var(--text-2); }
.form-status { grid-column: 1 / -1; padding: 1.1rem 1.3rem; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: rgba(79, 192, 109, 0.1); color: #9fe0b0; border: 1px solid rgba(79,192,109,0.4); }
.form-status.ko { display: block; background: rgba(255, 138, 122, 0.08); color: var(--error); border: 1px solid rgba(255,138,122,0.35); }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); background: rgba(7,7,10,0.8); color: var(--muted); }
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  padding-block: 2.2rem; font-size: 0.85rem;
}
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--green-pale); }

/* Pages internes */
.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 560; line-height: 1.1;
  letter-spacing: -0.015em; max-width: 56rem; font-variation-settings: "opsz" 100;
}
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.65rem; font-weight: 650; margin: 3rem 0 1rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.15rem; font-weight: 650; margin: 2.2rem 0 0.6rem; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose a { color: var(--green-pale); text-decoration-color: var(--green); }
.prose strong { color: var(--text); }
.prose .source-note { font-size: 0.85rem; color: var(--muted); }
.steps-aid { counter-reset: aid; list-style: none; padding: 0; margin-block: 1.75rem; }
.steps-aid li {
  counter-increment: aid; position: relative; padding: 0 0 1.75rem 3.4rem;
  border-left: 1px solid var(--line); margin-left: 1rem;
}
.steps-aid li::before {
  content: counter(aid, decimal-leading-zero);
  position: absolute; left: -1.15rem; top: 0;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  background: var(--green); color: var(--night);
  padding: 0.3rem 0.45rem; border-radius: 6px;
  box-shadow: 0 0 18px rgba(13, 143, 65,0.5);
}
.steps-aid li strong { display: block; color: var(--text); margin-bottom: 0.25rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-grid, .simulator, .zone-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-invoice { justify-self: stretch; max-width: none; }
  .data-row { grid-template-columns: 1fr; }
  .prefi-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 4.5rem 0 auto 0; z-index: 49;
    background: rgba(7, 7, 10, 0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    padding: 1rem var(--gutter) 1.5rem;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-top: 1px solid var(--line-soft); }
  .main-nav li + li::before { display: none; }
  .main-nav a { display: block; padding: 0.95rem 0; font-size: 1.05rem; color: var(--text); }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    background: none; border: none; padding: 0.6rem; min-width: 44px; min-height: 44px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-tel { border: none; padding: 0.55rem 0.4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .process li { grid-template-columns: 1fr; gap: 0.6rem; }
  .id-band span + span::before { display: none; }
  .id-band .container { flex-direction: column; padding-block: 1rem; gap: 0.4rem; }
}
@media (max-width: 560px) {
  .prefi-facts { grid-template-columns: 1fr; }
  .invoice-line { flex-direction: column; gap: 0.25rem; }
  .glow { filter: blur(60px); }
}

/* ==========================================================================
   V3 — Hero cinématique « lever de soleil sur le Grand-Duché »
   ========================================================================== */
.hero-cine {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 4.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
/* étoiles : deux nappes qui scintillent en alternance */



/* texte du hero par-dessus le ciel */
.hero-copy {
  position: relative; z-index: 3; text-align: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(4rem, 10vw, 8rem);
  display: flex; flex-direction: column; align-items: center;
}
.hero-copy .kicker { color: var(--green-soft); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.9rem; }
.hero-copy .kicker::before, .hero-copy .kicker::after {
  content: ""; width: 2.75rem; height: 1px;
}
.hero-copy .kicker::before { background: linear-gradient(90deg, transparent, var(--green)); }
.hero-copy .kicker::after { background: linear-gradient(90deg, var(--green), transparent); }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 7.6vw, 6.6rem);
  font-weight: 560; line-height: 1.04; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 120;
  text-shadow: 0 10px 60px rgba(0,0,0,0.6);
}
.hero-copy h1 .h1-line { display: block; }
.hero-copy h1 .h1-thin {
  font-weight: 330; font-style: italic; font-size: 0.58em; letter-spacing: 0;
  color: var(--text-2); margin-top: 0.3em;
}
.hero-copy .hero-support {
  margin-top: 2.2rem; max-width: 38rem; font-size: 1.15rem; color: var(--text-2);
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.hero-copy .hero-support strong { color: var(--green-pale); }
.hero-copy .hero-ctas { margin-top: 2.6rem; justify-content: center; }

/* indicateur de scroll */
.hero-scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 1.2rem;
  transform: translateX(-50%);
  color: rgba(207, 238, 218, 0.55); font-size: 0.62rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll .scroll-line {
  width: 1px; height: 2.6rem;
  background: linear-gradient(180deg, var(--green), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-pulse { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* préfinancement : facture en vedette + faits */
.prefi-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.prefi-grid .invoice { box-shadow: 0 0 90px rgba(13, 143, 65, 0.14), 0 40px 80px rgba(0,0,0,0.6); }
.prefi-grid .prefi-facts { grid-template-columns: 1fr; gap: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none !important; }
}
@media (max-width: 960px) {
  .prefi-grid { grid-template-columns: 1fr; }
  .prefi-grid .prefi-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-cine { min-height: calc(100svh - 4.5rem); }
  .hero-copy h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero-copy { padding-bottom: 3rem; }
  .hero-scroll { display: none; }
  .prefi-grid .prefi-facts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   V4 — photographies cinématographiques (Pexels, licence commerciale libre)
   ========================================================================== */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg,
      rgba(4, 4, 8, 0.85) 0%,
      rgba(4, 4, 8, 0.62) 34%,
      rgba(4, 4, 8, 0.45) 58%,
      rgba(7, 7, 10, 0.6) 82%,
      var(--night) 100%),
    radial-gradient(ellipse 62% 52% at 50% 42%, rgba(4,4,8,0.42) 0%, transparent 65%),
    url("img/hero-real.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center 65%;
  filter: saturate(1.08) contrast(1.05);
}
.hero-cine { background: var(--night); }
.hero-copy { padding-block: clamp(5rem, 12vw, 9rem) clamp(6rem, 14vw, 11rem); }
.hero-copy h1 { text-shadow: 0 6px 40px rgba(0, 0, 0, 0.85), 0 2px 12px rgba(0,0,0,0.7); }
.hero-copy .hero-support { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95); color: #d9d5c6; }
.hero-copy .kicker { text-shadow: 0 2px 12px rgba(0,0,0,0.9); }

/* fond photo de section (préfinancement) */
.scene-photo-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(180deg, var(--night) 0%, rgba(7,7,10,0.78) 25%, rgba(7,7,10,0.82) 75%, var(--night) 100%),
    url("img/prefi-bg.jpg");
  background-size: cover; background-position: center;
  filter: saturate(1.05);
}

/* ==========================================================================
   V4.1 — vraie carte OpenStreetMap, habillée nuit
   ========================================================================== */
.map-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.6);
  box-shadow: 0 0 70px rgba(13, 143, 65, 0.08), 0 30px 60px rgba(0, 0, 0, 0.55);
  aspect-ratio: 4 / 5; max-width: 30rem; margin-left: auto; background: var(--night-3);
}
.map-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: invert(0.89) hue-rotate(185deg) saturate(0.55) brightness(0.92) contrast(0.95);
}
.map-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(4, 4, 8, 0.65);
  border-radius: inherit;
}
.map-links { margin-top: 1.2rem; display: flex; gap: 2rem; justify-content: flex-end; font-size: 0.95rem; }
@media (max-width: 640px) { .map-frame { margin-inline: auto; } .map-links { justify-content: flex-start; } }

/* ==========================================================================
   V4.2 — logo réel partout (déclinaison officielle fond sombre)
   ========================================================================== */
.wordmark img { height: 3.5rem; width: auto; display: block; }
.site-footer .container { align-items: center; }
.footer-logo { height: 2.6rem; width: auto; opacity: 0.92; }
@media (max-width: 760px) { .wordmark img { height: 2.7rem; } }

/* ==========================================================================
   V5 — visuels de marque : offres 4 métiers + interludes
   ========================================================================== */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.offer-card { display: flex; flex-direction: column; }
.offer-media {
  overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 5; margin-bottom: 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.offer-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transition: transform 400ms var(--ease);
}
.offer-card .mono-label { color: var(--green-soft); margin-bottom: 0.55rem; }
.offer-card h3 { font-size: 1.18rem; font-weight: 650; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.offer-card p { color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }

.interlude { position: relative; margin: 0; }
.interlude img {
  width: 100%; height: clamp(280px, 46vw, 520px); object-fit: cover;
  filter: saturate(1.05) contrast(1.03) brightness(0.82);
}
.interlude::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--night) 0%, transparent 22%, transparent 62%, rgba(7,7,10,0.88) 100%);
}
.interlude figcaption {
  position: absolute; left: 0; right: 0; bottom: 1.6rem; z-index: 2;
  color: var(--green-pale); font-size: 1.05rem; font-weight: 500;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}
.interlude figcaption .mono-label { display: block; color: var(--green-soft); margin-bottom: 0.4rem; }

/* hero réel : la façade demande un voile central un peu plus fort */
.hero-photo { background-position: center, center, center 38%; }

@media (max-width: 960px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-media { aspect-ratio: 16 / 10; }
  .interlude img { height: 320px; }
}

/* ==========================================================================
   V5.1 — équipe + journal des chantiers
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 1.4rem; }
.team-feature, .team-small { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.team-feature img, .team-small img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.04); transition: transform 400ms var(--ease);
}
.team-feature { aspect-ratio: 16 / 10; box-shadow: 0 24px 50px rgba(0,0,0,0.5); }
.team-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.4rem; }
.team-small { aspect-ratio: auto; }
.team-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.team-value {
  border-top: 1px solid var(--line); padding-top: 1.3rem;
}
.team-value .mono-label { color: var(--green-soft); display: block; margin-bottom: 0.6rem; }
.team-value p { color: var(--text-2); font-size: 0.93rem; line-height: 1.6; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; grid-auto-flow: dense; }
.g-item {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line-soft); aspect-ratio: 4 / 3;
}
.g-item.g-wide { grid-column: span 2; aspect-ratio: 8.24 / 3; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
  transition: transform 400ms var(--ease), filter 400ms var(--ease);
}

@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .team-small { aspect-ratio: 4 / 3; }
  .team-values { grid-template-columns: 1fr; gap: 1.6rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .g-item.g-wide { grid-column: auto; }
}

/* ==========================================================================
   V6 — passe frontend-design : chorégraphie, asymétrie, détails
   ========================================================================== */
/* (a) entrée du hero orchestrée */
@keyframes intro-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
html.js .intro-seq {
  animation: intro-rise 900ms var(--ease) both;
  animation-delay: calc(200ms + var(--seq) * 160ms);
}
@media (prefers-reduced-motion: reduce) { html.js .intro-seq { animation: none; } }

/* (b) numéraux géants — hors grille, Fraunces contour or */
.process li { position: relative; overflow: visible; }
.step-giant {
  position: absolute; right: -0.5rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(7rem, 14vw, 13rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(13, 143, 65, 0.16);
  pointer-events: none; user-select: none; z-index: 0;
}
.process li > div { position: relative; z-index: 1; }

/* (c) marginalia verticale */
.has-margin-note { position: relative; }
.margin-note {
  position: absolute; top: 50%; right: calc((100vw - min(100vw, var(--container))) / 2 * 0.28);
  transform: rotate(90deg) translateX(-50%);
  transform-origin: right top;
  color: rgba(207, 238, 218, 0.22); font-size: 0.62rem; letter-spacing: 0.5em;
  white-space: nowrap; pointer-events: none;
}
@media (max-width: 1180px) { .margin-note, .step-giant { display: none; } }

/* (d) hovers : balayage lumineux du CTA + libellés des cartes */
.btn-sun::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 600ms var(--ease);
  pointer-events: none;
}
.btn-sun:focus-visible::before { transform: translateX(120%); }
.offer-card .mono-label { transition: letter-spacing var(--dur) var(--ease), color var(--dur) var(--ease); }

.offer-media { position: relative; }
.offer-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid transparent; transition: border-color var(--dur) var(--ease);
  pointer-events: none;
}
.offer-card:hover .offer-media::after { border-color: rgba(13, 143, 65, 0.45); }
@media (prefers-reduced-motion: reduce) { .btn-sun::before { display: none; } }

/* V6.1 — passe design-taste : feedback tactile actif */
.btn:active, .header-tel:active { transform: translateY(1px) scale(0.985); }


/* ==========================================================================
   V6.2 — passe emil-design-eng : hovers gardés derrière (hover:hover)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .offer-card:hover .offer-media img { transform: scale(1.045); }
  .prefi-facts li:hover { transform: translateY(-3px); }
  .btn-sun:hover::before { transform: translateX(120%); }
  .offer-card:hover .mono-label { letter-spacing: 0.3em; color: var(--green-pale); }
  .team-feature:hover img, .team-small:hover img { transform: scale(1.03); }
  .g-item:hover img { transform: scale(1.05); filter: saturate(1.1) contrast(1.04); }
}


/* Plan 004 — entrée du corps de FAQ (état ouvert non téléporté) */
.faq details[open] .faq-body { animation: faq-open 220ms var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .faq details[open] .faq-body { animation: none; } }
