/* ===== Accueil v2 — "studio 3D" spectaculaire ===== */

body.v2 { background: var(--ink); color: var(--text-light); }
body.v2 .site-header.scrolled { background: rgba(6,34,43,.82); backdrop-filter: blur(16px); border-color: var(--line-d); }
body.v2 .site-header .brand-txt b, body.v2 .nav-links a { color: var(--cream); }
body.v2 .site-header .brand-txt small { color: var(--text-lmut); }
body.v2 .nav-phone { color: var(--cream); }
body.v2 .burger { color: var(--cream); }

/* ---------- HERO ---------- */
.hero2 { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(90% 70% at 75% 30%, rgba(28,138,150,.22), transparent 60%),
    radial-gradient(60% 50% at 15% 85%, rgba(43,182,194,.1), transparent 60%),
    var(--ink);
}
/* blueprint grid de fond */
.hero2::before { content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,212,218,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,212,218,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 60% 40%, #000 30%, transparent 75%);
}
.hero2-canvas { position: absolute; inset: 0; z-index: 1; }
.hero2-canvas canvas { position: absolute; inset: 0; }

/* halo scan vertical */
.hero2-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
  background: linear-gradient(95deg, rgba(6,34,43,.78) 18%, rgba(6,34,43,.25) 45%, transparent 62%); }
.hero2-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -32%;
  background: linear-gradient(180deg, transparent, rgba(79,212,218,.06) 45%, rgba(79,212,218,.14) 50%, rgba(79,212,218,.06) 55%, transparent);
  animation: scanmove 7s linear infinite; }
@keyframes scanmove { to { top: 132%; } }
@media (prefers-reduced-motion: reduce) { .hero2-scan::after { animation: none; display: none; } }

.hero2-inner { position: relative; z-index: 3; width: 100%; padding-top: 110px; padding-bottom: 130px; }
.hero2 .display { font-size: clamp(2.9rem, 7.4vw, 6.2rem); line-height: .99; margin: .3em 0 .4em; max-width: 13ch;
  text-shadow: 0 0 60px rgba(6,34,43,.9); }
.hero2 .display .glow { color: var(--lagoon-br); text-shadow: 0 0 38px rgba(79,212,218,.45); }
.hero2-lede { max-width: 46ch; color: #c4d6d6; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.hero2-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2em; }
.btn-glow { box-shadow: 0 0 0 1px rgba(79,212,218,.35), 0 10px 40px -8px rgba(43,182,194,.75), 0 0 60px -10px rgba(79,212,218,.5); }
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(79,212,218,.6), 0 14px 50px -8px rgba(43,182,194,.95), 0 0 80px -6px rgba(79,212,218,.7); }

/* HUD bits */
.hud { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lagoon-br); }
.hero2-hud { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.hero2-hud.tr { top: 104px; right: var(--gut); text-align: right; }
.hero2-hud.br { bottom: 120px; right: var(--gut); text-align: right; }
.hero2-hud .dim { color: rgba(231,220,200,.55); }
.hud-live { display: inline-flex; align-items: center; gap: .6em; justify-content: flex-end; }
.hud-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lagoon-br); box-shadow: 0 0 10px var(--lagoon-br); animation: pulse 1.6s ease infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* corner brackets frame */
.hud-frame { position: relative; }
.hud-frame::before, .hud-frame::after,
.hud-frame > .hf::before, .hud-frame > .hf::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1.5px solid rgba(79,212,218,.8); z-index: 4; pointer-events: none; }
.hud-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud-frame::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hud-frame > .hf::before { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hud-frame > .hf::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hud-frame > .hf { position: absolute; inset: 0; pointer-events: none; }

/* bandeau stats hero */
.hero2-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; border-top: 1px solid rgba(79,212,218,.18); background: rgba(6,34,43,.55); backdrop-filter: blur(10px); }
.hero2-strip-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.hero2-strip-inner > div { padding: 18px 0 18px 26px; border-left: 1px solid rgba(79,212,218,.14); display: flex; flex-direction: column; gap: 2px; }
.hero2-strip-inner > div:first-child { border-left: 0; padding-left: 0; }
.hero2-strip-inner b { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--lagoon-br); line-height: 1.05; }
.hero2-strip-inner span { font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-lmut); }

/* ---------- HERO 3 : chantier cinématique au scroll ---------- */
.hero3 { position: relative; height: 560vh; background: var(--ink); }
.hero3-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero3-sticky canvas { position: absolute; inset: 0; }
.hero3-head { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); top: 16vh; }
.hero3-head .display { font-size: clamp(2.7rem, 6.6vw, 5.6rem); line-height: 1.0; margin: .3em 0 .4em; max-width: 14ch; text-shadow: 0 4px 50px rgba(6,34,43,.9); }
.hero3-head .display .glow { color: var(--lagoon-br); text-shadow: 0 0 38px rgba(79,212,218,.45); }
.hero3-lede { max-width: 44ch; color: #c4d6d6; font-size: clamp(1.02rem, 1.4vw, 1.2rem); text-shadow: 0 2px 24px rgba(6,34,43,.9); }
.scroll-hint { display: inline-flex; align-items: center; gap: .8em; margin-top: 2em; font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--lagoon-br); }
.scroll-hint i { width: 22px; height: 34px; border: 1.5px solid rgba(79,212,218,.6); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--lagoon-br); animation: wheel 1.6s ease infinite; }
@keyframes wheel { 50% { transform: translateY(9px); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint { display: none; } }

.hero3-cap { position: absolute; z-index: 3; left: var(--gut); bottom: 11vh; max-width: 420px; }
.hero3-cap .cnum { font-family: var(--mono); font-size: .68rem; letter-spacing: .26em; color: var(--lagoon-br); display: block; margin-bottom: 8px; }
.hero3-cap .cti { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; line-height: 1.05; }
.hero3-cap .cde { color: #b7cccd; font-size: .95rem; margin-top: 8px; max-width: 38ch; text-shadow: 0 2px 18px rgba(6,34,43,.8); }
.hero3-cap.tick .cti, .hero3-cap.tick .cde { animation: capIn .45s ease both; }
@keyframes capIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.hero3-bar { position: absolute; z-index: 3; left: var(--gut); bottom: 7vh; width: min(340px, 40vw); height: 2px; background: rgba(79,212,218,.18); border-radius: 2px; }
.hero3-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lagoon), var(--lagoon-br)); box-shadow: 0 0 12px rgba(79,212,218,.8); border-radius: 2px; }

.hero3-hud { position: absolute; z-index: 3; top: 100px; right: var(--gut); text-align: right; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }

.hero3-final { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; text-align: center; opacity: 0; pointer-events: none; background: radial-gradient(70% 60% at 50% 55%, rgba(6,34,43,.72), rgba(6,34,43,.15) 70%, transparent); }
.hero3-final-card { max-width: 640px; padding: 0 var(--gut); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero3-final h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; }
.hero3-final .lede { color: #d6e7e6; max-width: 44ch; }
.hero3-final .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero3-final .happy { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.hero3-final .happy image-slot { width: 64px; height: 64px; }
.hero3-final .happy span { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-lmut); text-align: left; max-width: 20ch; }

.hero2-strip.static { position: static; }

@media (max-width: 700px) {
  .hero3-cap { bottom: 13vh; right: var(--gut); }
  .hero3-hud { display: none; }
}

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; border-block: 1px solid rgba(79,212,218,.16); background: rgba(79,212,218,.04); padding-block: 16px; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: mq 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee-track span { font-family: var(--mono); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: #9fc4c8; padding-inline: 1.6em; display: inline-flex; align-items: center; gap: 1.6em; white-space: nowrap; }
.marquee-track span::after { content: "◆"; font-size: .55em; color: var(--lagoon); }

/* ---------- SECTIONS dark ---------- */
.sec-dark { position: relative; }
.sec-dark + .sec-dark { border-top: 1px solid rgba(255,255,255,.07); }

/* phase triptyque amplifiée */
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1400px; }
.phase { position: relative; border-radius: var(--r); background: linear-gradient(170deg, rgba(15,58,72,.55), rgba(10,46,58,.85)); border: 1px solid rgba(79,212,218,.16); padding: 20px; transition: transform .45s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .45s; transform-style: preserve-3d; }
.phase:hover { transform: translateY(-8px) rotateX(2deg); border-color: rgba(79,212,218,.5); box-shadow: 0 30px 80px -30px rgba(43,182,194,.45); }
.phase .ph, .phase image-slot { aspect-ratio: 4/3; height: auto; border-radius: 3px; display: block; width: 100%; }
.phase-cap { display: flex; flex-direction: column; gap: 6px; padding: 18px 6px 6px; }
.phase-cap .pn { font-family: var(--mono); font-size: .68rem; letter-spacing: .22em; color: var(--lagoon-br); }
.phase-cap b { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; }
.phase-cap p { color: var(--text-lmut); font-size: .94rem; }
.phase-link { margin-top: 6px; }

/* ---------- AVANT / APRÈS (sand) ---------- */
.ba2-section { background: var(--cream); color: var(--text-dark); }
.ba2-section .lede { color: var(--text-mut); }

/* ---------- GALERIE slots ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.slot-card { position: relative; border-radius: var(--r); overflow: visible; transition: transform .4s; }
.slot-card:hover { transform: translateY(-6px); }
.slot-card image-slot { display: block; width: 100%; height: auto; }
.slot-card .sc-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 4px 0; }
.slot-card .sc-cap b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.slot-card .sc-cap span { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-lmut); }
.drop-hint { display: inline-flex; align-items: center; gap: .7em; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lagoon-br); border: 1px dashed rgba(79,212,218,.5); border-radius: 100px; padding: .7em 1.2em; background: rgba(79,212,218,.06); }

/* ---------- TERMINAL IA ---------- */
.ia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 70px; align-items: center; }
.term { border-radius: 8px; background: #041c23; border: 1px solid rgba(79,212,218,.25); box-shadow: 0 40px 100px -40px rgba(43,182,194,.4), inset 0 0 80px rgba(43,182,194,.05); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(79,212,218,.15); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(79,212,218,.25); }
.term-bar i:first-child { background: rgba(79,212,218,.7); }
.term-bar span { margin-left: auto; font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-lmut); }
.term-body { padding: 22px 20px 26px; font-family: var(--mono); font-size: .82rem; line-height: 2.05; color: #b8dadd; min-height: 230px; }
.term-body .ln { display: block; }
.term-body .p { color: var(--lagoon-br); }
.term-body .ok { color: #7be3a0; }
.term-body .dim2 { color: rgba(184,218,221,.45); }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--lagoon-br); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- TIMELINE ---------- */
.tl { position: relative; max-width: 760px; margin: 0 auto; padding-left: 42px; }
.tl::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: rgba(79,212,218,.15); }
.tl-fill { position: absolute; left: 10px; top: 6px; width: 2px; background: linear-gradient(180deg, var(--lagoon-br), var(--lagoon)); height: 0; box-shadow: 0 0 14px rgba(79,212,218,.7); transition: height .2s linear; }
.tl-item { position: relative; padding: 0 0 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -38px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(79,212,218,.4); transition: .3s; }
.tl-item.lit::before { background: var(--lagoon-br); box-shadow: 0 0 16px rgba(79,212,218,.8); border-color: var(--lagoon-br); }
.tl-item .tn { font-family: var(--mono); font-size: .7rem; letter-spacing: .22em; color: var(--lagoon-br); }
.tl-item h3 { font-size: 1.55rem; margin: .25em 0 .25em; }
.tl-item p { color: var(--text-lmut); max-width: 56ch; }

/* ---------- compteurs ---------- */
.count b { font-variant-numeric: tabular-nums; }

@media (max-width: 1040px) {
  .phase-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(2,1fr); }
  .ia-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero2-strip-inner { grid-template-columns: repeat(2,1fr); }
  .hero2-strip-inner > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero2-hud.tr { display: none; }
}
@media (max-width: 560px) {
  .slot-grid { grid-template-columns: 1fr; }
  .hero2-hud.br { display: none; }
}
