/* ============================================================
   AUDITS ÉNERGIES — Keynote
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&family=IBM+Plex+Mono:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0f1e;
  --bg-deep: #050811;
  --green: #00ff88;
  --gold: #ffc444;
  --blue: #00b4ff;
  --cyan: #2dd4d4;
  --red: #ff3355;
  --text: #eaf2ff;
  --text-dim: #8895b5;
  --grad: linear-gradient(135deg, #00b4ff 0%, #2dd4d4 50%, #00ff88 100%);
  --grad-warm: linear-gradient(135deg, #ffc444 0%, #ff7a59 100%);
  --font-sans: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* ===== STAGE / SLIDE SHELL ===== */
#stage {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, #0e1530 0%, var(--bg) 50%, var(--bg-deep) 100%);
  perspective: 1500px;
}
.slide {
  position: absolute; inset: 0;
  display: none;
  overflow: hidden;
}
.slide.active { display: block; }
.slide-inner {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 5vh 6vw;
}

/* ===== GLOBAL PARTICLES BG ===== */
.bg-particles {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ===== PROGRESS BAR ===== */
#progress {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 3px; z-index: 50;
  background: rgba(255,255,255,0.04);
}
#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--green);
}

/* ===== TOP CHROME ===== */
#topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 36px;
  z-index: 40;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
#topbar .brand { display: flex; align-items: center; gap: 10px; }
#topbar .brand .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== BOTTOM CONTROLS ===== */
#controls {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px;
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.ctrl-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.ctrl-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--green);
  color: var(--green);
}
.ctrl-btn svg { width: 14px; height: 14px; }
#slide-counter {
  min-width: 60px;
  text-align: center;
}

/* ===== TYPOGRAPHY KIT ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--green);
}
h1.huge {
  font-size: clamp(48px, 7.5vw, 116px);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
h1.huge strong { font-weight: 700; }
.subtitle {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 700px;
  line-height: 1.5;
}
.signature {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.signature strong { color: var(--text); font-weight: 500; }

/* ===== TYPEWRITER ===== */
.typewriter { display: inline-block; white-space: nowrap; }
.typewriter .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(4px);
}
.typewriter.run .char {
  animation: char-in 0.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes char-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* word stagger */
.word-stagger .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
}
.word-stagger.run .word {
  animation: word-in 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== COUNTERS ===== */
.counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ============================================================
   SLIDE 1 — HERO
   ============================================================ */
#s1 .slide-inner { justify-content: flex-end; }
#s1-globe {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
#s1-globe canvas { display: block; }
#s1 .hero-content {
  position: relative; z-index: 3;
  max-width: 720px;
}
#s1 .hero-content .eyebrow { margin-bottom: 24px; }
#s1 .hero-content h1 { margin-bottom: 22px; }
#s1 .hero-content .subtitle { margin-bottom: 36px; }
#topbar .brand img.topbar-logo {
  height: 22px !important;
  width: auto !important;
  margin-right: 4px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.15));
  display: block;
  flex: 0 0 auto;
}
.topbar-logo {
  height: 22px;
  width: auto;
  margin-right: 4px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.15));
}

.contact-logo {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.9s 0.2s cubic-bezier(.2,.8,.2,1), transform 0.9s 0.2s cubic-bezier(.2,.8,.2,1);
}
.contact-logo img {
  height: 84px;
  width: auto;
  filter: drop-shadow(0 0 28px rgba(0, 255, 136, 0.35));
}
#s8.active .contact-logo { opacity: 1; transform: translateY(0) scale(1); }

#s1 .hero-logo {
  position: absolute; top: 6vh; right: 5vw;
  z-index: 5;
  opacity: 0;
  transition: opacity 1s 0.4s;
}
#s1.active .hero-logo { opacity: 1; }
#s1 .hero-logo img {
  height: 96px;
  filter: drop-shadow(0 0 24px rgba(0, 255, 136, 0.3));
}

/* radiating rings */
.rings {
  position: absolute; left: 50%; top: 50%;
  pointer-events: none; z-index: 2;
  transform: translate(-50%, -50%);
}
.ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 30vmin; height: 30vmin;
  border: 1px solid var(--green);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}
.slide.active .ring {
  animation: ring-pulse 4s infinite ease-out;
}
.ring:nth-child(1) { animation-delay: 0s; }
.ring:nth-child(2) { animation-delay: 1.3s; }
.ring:nth-child(3) { animation-delay: 2.6s; }
@keyframes ring-pulse {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

/* ============================================================
   SLIDE 2 — LE PROBLÈME
   ============================================================ */
#s2 {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 51, 85, 0.15) 0%, transparent 60%),
    var(--bg);
}
#s2.active::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 51, 85, 0.12) 0%, transparent 70%);
  animation: alert-pulse 2.4s infinite;
  pointer-events: none;
}
@keyframes alert-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
#s2 .slide-inner {
  flex-direction: row; align-items: center; gap: 6vw;
}
#s2 .left { flex: 1; position: relative; z-index: 2; }
#s2 .right { flex: 1; position: relative; z-index: 2; }
#s2 .alert-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 51, 85, 0.12);
  border: 1px solid rgba(255, 51, 85, 0.4);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 36px;
}
#s2 .alert-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1s infinite;
}
#s2 .big-stat {
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 0%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
#s2 .big-stat .pct { font-size: 0.4em; opacity: 0.7; vertical-align: top; }
#s2 .stat-label {
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 520px;
}
#s2 .keywords {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
#s2 .keywords span { opacity: 0; transform: translateY(8px); display: inline-block; }
#s2 .keywords span::before { content: '· '; color: var(--red); }
#s2.active .keywords span {
  animation: word-in 0.5s forwards;
}
#s2.active .keywords span:nth-child(1) { animation-delay: 1.8s; }
#s2.active .keywords span:nth-child(2) { animation-delay: 2.0s; }
#s2.active .keywords span:nth-child(3) { animation-delay: 2.2s; }

/* bar chart */
.bars {
  display: flex; flex-direction: column; gap: 24px;
}
.bar-row { }
.bar-row .bar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.bar-row .bar-head strong {
  font-family: var(--font-sans);
  font-size: 28px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}
.bar-track {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0%;
  border-radius: 3px;
  transition: width 1.6s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-fill.red { background: linear-gradient(90deg, #ff3355, #ff7a59); box-shadow: 0 0 12px rgba(255, 51, 85, 0.4); }
.bar-fill.green { background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 12px rgba(0, 255, 136, 0.4); }

/* ============================================================
   SLIDE 3 — SERVICES
   ============================================================ */
#s3 .slide-inner { justify-content: center; }
#s3 .head {
  text-align: center; margin-bottom: 56px;
}
#s3 .head .eyebrow { justify-content: center; margin-bottom: 18px; }
#s3 .head .eyebrow::before { display: none; }
#s3 .head h1 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 300; }
#s3 .head h1 strong {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
#s3 .cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1500px; margin: 0 auto; width: 100%;
}
#s3 .card {
  position: relative;
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  min-height: 320px;
  display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  opacity: 0; transform: translateY(40px) scale(0.95);
  overflow: hidden;
}
#s3.active .card {
  animation: card-bounce 0.8s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}
#s3.active .card:nth-child(1) { animation-delay: 0.2s; }
#s3.active .card:nth-child(2) { animation-delay: 0.35s; }
#s3.active .card:nth-child(3) { animation-delay: 0.5s; }
#s3.active .card:nth-child(4) { animation-delay: 0.65s; }
#s3.active .card:nth-child(5) { animation-delay: 0.8s; }
@keyframes card-bounce {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#s3 .card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--green);
  box-shadow:
    0 0 0 1px rgba(0, 255, 136, 0.2),
    0 20px 60px -20px rgba(0, 255, 136, 0.4);
}
#s3 .card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--green);
}
#s3 .card .icon svg { width: 22px; height: 22px; }
#s3 .card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.25;
}
#s3 .card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}
#s3 .card .num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.5;
}

/* ============================================================
   SLIDE — DÉCRETS (timeline)
   ============================================================ */
#s-dec .slide-inner { justify-content: center; }
#s-dec .head { text-align: center; margin-bottom: 14px; }
#s-dec .head .eyebrow { justify-content: center; margin-bottom: 18px; color: var(--gold); }
#s-dec .head .eyebrow::before { display: none; }
#s-dec .head h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.05;
}
#s-dec .head h1 strong {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
#s-dec .head p.lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 780px;
  margin: 18px auto 0;
  line-height: 1.5;
}
#s-dec .timeline {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 40px 20px;
}
#s-dec .timeline::before {
  content: '';
  position: absolute;
  left: 60px; right: 60px; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), var(--gold));
  opacity: 0.3;
}
#s-dec .timeline::after {
  content: '';
  position: absolute;
  left: 60px; top: 50%;
  width: calc(100% - 120px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), var(--gold));
  box-shadow: 0 0 12px var(--green);
  transform-origin: left;
  transform: scaleX(0);
}
#s-dec.active .timeline::after {
  animation: tl-grow 2s 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes tl-grow { to { transform: scaleX(1); } }
#s-dec .events {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
#s-dec .ev {
  position: relative;
  padding-top: 100px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}
#s-dec.active .ev { animation: ev-in 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1); }
#s-dec.active .ev:nth-child(1) { animation-delay: 1.0s; }
#s-dec.active .ev:nth-child(2) { animation-delay: 1.3s; }
#s-dec.active .ev:nth-child(3) { animation-delay: 1.6s; }
#s-dec.active .ev:nth-child(4) { animation-delay: 1.9s; }
#s-dec.active .ev:nth-child(5) { animation-delay: 2.2s; }
@keyframes ev-in { to { opacity: 1; transform: translateY(0); } }
#s-dec .ev .node {
  position: absolute;
  top: 70px; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(0,255,136,0.5);
  z-index: 2;
}
#s-dec .ev.now .node {
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(255,196,68,0.6);
  animation: node-pulse 1.6s infinite;
}
@keyframes node-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.4); }
}
#s-dec .ev .year {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
#s-dec .ev.now .year { color: var(--gold); }
#s-dec .ev .target {
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
#s-dec .ev.warn .target { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }
#s-dec .ev .label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
#s-dec .ev .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  line-height: 1.4;
}
#s-dec .legend {
  display: flex; gap: 32px; justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}
#s-dec .legend .item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
#s-dec .legend .item .swatch {
  width: 10px; height: 10px; border-radius: 50%;
}
#s-dec .legend .tert .swatch { background: var(--green); box-shadow: 0 0 8px var(--green); }
#s-dec .legend .bacs .swatch { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ============================================================
   SLIDES DÉCRET TERTIAIRE & BACS (détails)
   ============================================================ */
#s-tert, #s-bacs {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 180, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(0, 255, 136, 0.06) 0%, transparent 55%),
    var(--bg);
}
#s-bacs {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(255, 196, 68, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(0, 180, 255, 0.06) 0%, transparent 55%),
    var(--bg);
}
#s-tert .slide-inner, #s-bacs .slide-inner {
  justify-content: flex-start;
  padding-top: 8vh;
}
.dec-head { margin-bottom: 48px; max-width: 1100px; }
.dec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s, transform 0.6s;
}
#s-tert.active .dec-tag, #s-bacs.active .dec-tag { opacity: 1; transform: translateY(0); }
.dec-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  animation: pulse-dot 1.6s infinite;
}
.dec-tag.tert { color: var(--green); border-color: rgba(0,255,136,0.3); }
.dec-tag.tert .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dec-tag.bacs { color: var(--gold); border-color: rgba(255,196,68,0.35); }
.dec-tag.bacs .dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.dec-head h1 {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.15s, transform 0.7s 0.15s;
}
#s-tert.active .dec-head h1, #s-bacs.active .dec-head h1 { opacity: 1; transform: translateY(0); }
.dec-head h1 strong {
  font-weight: 600;
  background: linear-gradient(120deg, var(--green) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#s-bacs .dec-head h1 strong {
  background: linear-gradient(120deg, var(--gold) 0%, #ffe28a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dec-head .lead {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--text-dim);
  max-width: 800px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s 0.3s, transform 0.7s 0.3s;
}
#s-tert.active .dec-head .lead, #s-bacs.active .dec-head .lead { opacity: 1; transform: translateY(0); }

.dec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 22px;
  width: 100%;
  max-width: 1300px;
}
.dec-card {
  position: relative;
  padding: 32px 32px 28px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s, transform 0.7s, border-color 0.3s, background 0.3s;
}
#s-tert.active .dec-card:nth-child(1), #s-bacs.active .dec-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
#s-tert.active .dec-card:nth-child(2), #s-bacs.active .dec-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
#s-tert.active .dec-card:nth-child(3), #s-bacs.active .dec-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }
#s-tert.active .dec-card:nth-child(4), #s-bacs.active .dec-card:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.95s; }

.dec-card.highlight {
  background: rgba(0, 255, 136, 0.05);
  border-color: rgba(0, 255, 136, 0.25);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.08), inset 0 0 0 1px rgba(0,255,136,0.05);
}
#s-bacs .dec-card.highlight {
  background: rgba(255, 196, 68, 0.06);
  border-color: rgba(255, 196, 68, 0.3);
  box-shadow: 0 0 40px rgba(255, 196, 68, 0.1), inset 0 0 0 1px rgba(255,196,68,0.06);
}
.dec-card.warn {
  background: rgba(255, 51, 85, 0.04);
  border-color: rgba(255, 51, 85, 0.2);
}
.dec-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.dec-card.warn .dec-card-label { color: var(--red); }
.dec-card.highlight .dec-card-label { color: var(--green); }
#s-bacs .dec-card.highlight .dec-card-label { color: var(--gold); }

.dec-card-value {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--text);
}
.dec-card-value.big {
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 200;
}
.dec-card.warn .dec-card-value {
  background: linear-gradient(180deg, #fff, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dec-card-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}
.dec-card-sub strong { color: var(--text); font-weight: 500; }

.dec-card-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.dec-card-stack.tight { gap: 8px; margin-bottom: 0; }
.dec-card-stack .stat-row {
  display: grid;
  grid-template-columns: 60px 1fr 70px;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.dec-card-stack .stat-row .y { color: var(--text-dim); font-size: 12px; letter-spacing: 0.15em; }
.dec-card-stack .stat-row .bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  width: 0%;
  box-shadow: 0 0 8px rgba(0,255,136,0.4);
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
#s-bacs .dec-card-stack .stat-row .bar { background: linear-gradient(90deg, var(--gold), #ffe28a); box-shadow: 0 0 8px rgba(255,196,68,0.4); }
#s-tert.active .dec-card-stack .stat-row .bar { width: var(--w); transition-delay: 1.1s; }
.dec-card-stack .stat-row .v {
  text-align: right;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}
.dec-card-stack .kv {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.dec-card-stack .kv strong { color: var(--text); font-weight: 500; }
.dec-card-stack .kv::before {
  content: ''; position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
#s-tert .dec-card-stack .kv::before { background: var(--green); }

/* ============================================================
   SLIDE — RISQUES (si rien n'est fait)
   ============================================================ */
#s-risk {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255, 51, 85, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 122, 89, 0.1) 0%, transparent 50%),
    var(--bg);
}
#s-risk.active::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 51, 85, 0.08) 0%, transparent 70%);
  animation: alert-pulse 3s infinite;
  pointer-events: none;
}
#s-risk .slide-inner {
  flex-direction: row; gap: 4vw; align-items: center;
}
#s-risk .left { flex: 1; position: relative; z-index: 2; }
#s-risk .right { flex: 1.1; position: relative; z-index: 2; }
#s-risk .alert-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 51, 85, 0.12);
  border: 1px solid rgba(255, 51, 85, 0.4);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
#s-risk .alert-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1s infinite;
}
#s-risk h1 {
  font-size: clamp(40px, 5.5vw, 78px);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
#s-risk h1 strong {
  font-weight: 700;
  background: linear-gradient(135deg, #ff7a59, #ff3355);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
#s-risk .lead {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 540px;
}
#s-risk .risks {
  display: flex; flex-direction: column; gap: 16px;
}
#s-risk .risk {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(255, 51, 85, 0.06), rgba(255, 51, 85, 0.02));
  border: 1px solid rgba(255, 51, 85, 0.18);
  border-radius: 14px;
  opacity: 0;
  transform: translateX(30px);
  overflow: hidden;
}
#s-risk.active .risk { animation: risk-in 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1); }
#s-risk.active .risk:nth-child(1) { animation-delay: 0.4s; }
#s-risk.active .risk:nth-child(2) { animation-delay: 0.6s; }
#s-risk.active .risk:nth-child(3) { animation-delay: 0.8s; }
#s-risk.active .risk:nth-child(4) { animation-delay: 1.0s; }
@keyframes risk-in { to { opacity: 1; transform: translateX(0); } }
#s-risk .risk .icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(255, 51, 85, 0.1);
  border: 1px solid rgba(255, 51, 85, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
#s-risk .risk .icon svg { width: 24px; height: 24px; }
#s-risk .risk h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.3;
}
#s-risk .risk p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}
#s-risk .risk .amount {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ff7a59, #ff3355);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
#s-risk .risk .amount .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  font-weight: 400;
}

/* ============================================================
   SLIDE 4 — SOLAIRE
   ============================================================ */
#s4 .slide-inner {
  flex-direction: row;
  gap: 4vw;
  align-items: center;
}
#s4 .left {
  flex: 1.1;
  position: relative;
  height: 70vh;
  display: flex; align-items: center; justify-content: center;
}
#s4 .right { flex: 1; position: relative; z-index: 2; }
.sun-rays {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.sun-rays::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 50vmin; height: 50vmin;
  background: radial-gradient(circle, rgba(255, 196, 68, 0.4) 0%, transparent 60%);
  animation: sun-glow 4s ease-in-out infinite;
}
@keyframes sun-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.sun-rays .ray {
  position: absolute;
  top: 50%; left: 50%;
  width: 2px;
  height: 40vmin;
  background: linear-gradient(180deg, var(--gold), transparent);
  transform-origin: 50% 100%;
  opacity: 0.5;
}
.solar-panel {
  position: relative;
  width: 36vmin; height: 36vmin;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(0deg);
  animation: panel-spin 24s linear infinite;
}
@keyframes panel-spin {
  to { transform: rotateX(55deg) rotateZ(360deg); }
}
.solar-panel .grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
  padding: 2px;
  background:
    linear-gradient(135deg, #1a3a6e 0%, #0d2545 100%);
  border: 2px solid rgba(255, 196, 68, 0.4);
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(255, 196, 68, 0.3);
}
.solar-panel .cell {
  background: linear-gradient(135deg, #1e4a8a 0%, #0d2545 60%, #1e4a8a 100%);
  position: relative;
  overflow: hidden;
}
.solar-panel .cell::before {
  content: '';
  position: absolute; inset: 20%;
  border: 1px solid rgba(255, 196, 68, 0.15);
}
#s4 .right .eyebrow { color: var(--gold); margin-bottom: 18px; }
#s4 .right .eyebrow::before { background: var(--gold); }
#s4 .right h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.05;
}
#s4 .right h1 strong {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
#s4 .stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
#s4 .stat {
  padding: 20px 18px;
  background: rgba(255, 196, 68, 0.05);
  border: 1px solid rgba(255, 196, 68, 0.15);
  border-radius: 12px;
}
#s4 .stat .v {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
#s4 .stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.4;
}
#s4 .france {
  position: relative;
  width: 100%; height: 180px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  padding: 12px 16px;
}
#s4 .france .label {
  position: absolute; top: 12px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 2;
}
#s4 .france svg {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  height: 90%;
}

/* ============================================================
   SLIDE 5 — APPROCHE TERRAIN
   ============================================================ */
#s5 .slide-inner {
  flex-direction: row; gap: 4vw; align-items: stretch;
}
#s5 .left {
  flex: 1; position: relative;
  display: flex; align-items: flex-end;
}
#s5 .city-globe {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 26vw, 360px);
  height: clamp(220px, 26vw, 360px);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s 0.4s ease;
}
#s5 .city-globe canvas { display: block; }
#s5.active .city-globe { opacity: 0.85; }
#s5 .city {
  position: relative;
  width: 100%; height: 60%;
}
#s5 .city svg {
  width: 100%; height: 100%;
  display: block;
}
#s5 .right {
  flex: 1.2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4vh 0;
}
#s5 .right .eyebrow { margin-bottom: 18px; }
#s5 .right h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.05;
}
#s5 .right h1 strong { font-weight: 700; }
#s5 .right .lead {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 50px;
  max-width: 560px;
  line-height: 1.5;
}
#s5 .steps { position: relative; }
#s5 .steps::before {
  content: ''; position: absolute;
  left: 28px; top: 28px; bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  transform-origin: top;
  transform: scaleY(0);
}
#s5.active .steps::before {
  animation: line-grow 1.6s 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes line-grow { to { transform: scaleY(1); } }
#s5 .step {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 14px 0;
  opacity: 0; transform: translateX(-20px);
}
#s5.active .step {
  animation: step-in 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
#s5.active .step:nth-child(1) { animation-delay: 0.8s; }
#s5.active .step:nth-child(2) { animation-delay: 1.4s; }
#s5.active .step:nth-child(3) { animation-delay: 2.0s; }
@keyframes step-in { to { opacity: 1; transform: translateX(0); } }
#s5 .step .marker {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(0,255,136,0.3);
  z-index: 2;
}
#s5 .step .body { padding-top: 12px; }
#s5 .step h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
#s5 .step p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  max-width: 460px;
}

/* ============================================================
   SLIDE 6 — TECHNOLOGIE
   ============================================================ */
#s6 .matrix-bg {
  position: absolute; inset: 0;
  z-index: 1;
  opacity: 0.7;
}
#s6 .slide-inner {
  z-index: 2;
  align-items: center; justify-content: center;
}
#s6 .panel {
  position: relative;
  max-width: 1100px; width: 90%;
  padding: 60px 64px 80px;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 100px -30px rgba(0, 255, 136, 0.3);
  overflow: hidden;
}
#s6 .panel::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent 0deg, var(--green) 60deg, transparent 120deg, transparent 240deg, var(--blue) 300deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-border 8s linear infinite;
  pointer-events: none;
}
@keyframes spin-border { to { transform: rotate(360deg); } }
#s6 .panel .eyebrow { margin-bottom: 24px; }
#s6 .panel h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
#s6 .panel h1 strong {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#s6 .panel .lead {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 36px;
  max-width: 640px;
  line-height: 1.5;
}
#s6 .tags {
  display: flex; flex-wrap: wrap; gap: 12px;
}
#s6 .tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0; transform: translateY(12px);
  transition: background 0.3s, border-color 0.3s;
}
#s6 .tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
#s6.active .tag {
  animation: tag-in 0.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
#s6.active .tag:nth-child(1) { animation-delay: 0.8s; }
#s6.active .tag:nth-child(2) { animation-delay: 0.95s; }
#s6.active .tag:nth-child(3) { animation-delay: 1.1s; }
#s6.active .tag:nth-child(4) { animation-delay: 1.25s; }
#s6 .panel-logo {
  position: absolute;
  bottom: 28px;
  right: 32px;
  height: 52px;
  width: auto;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  filter: drop-shadow(0 0 18px rgba(0, 255, 136, 0.35));
  transition: opacity 0.9s 1.4s cubic-bezier(.2,.8,.2,1), transform 0.9s 1.4s cubic-bezier(.2,.8,.2,1);
  z-index: 3;
  pointer-events: none;
}
#s6.active .panel-logo { opacity: 0.9; transform: translateY(0) scale(1); }

/* ============================================================
   SLIDE 7 — POURQUOI NOUS
   ============================================================ */
#s7 .slide-inner {
  flex-direction: column; justify-content: center; align-items: center;
}
#s7 .head { text-align: center; margin-bottom: 60px; }
#s7 .head .eyebrow { justify-content: center; margin-bottom: 18px; }
#s7 .head .eyebrow::before { display: none; }
#s7 .head h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
}
#s7 .head h1 strong {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
#s7 .pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%; max-width: 1300px;
  margin-bottom: 60px;
}
#s7 .pillar {
  position: relative;
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  min-height: 280px;
  overflow: hidden;
  opacity: 0; transform: translateY(30px);
}
#s7.active .pillar {
  animation: pillar-in 0.7s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
#s7.active .pillar:nth-child(1) { animation-delay: 0.4s; }
#s7.active .pillar:nth-child(2) { animation-delay: 0.6s; }
#s7.active .pillar:nth-child(3) { animation-delay: 0.8s; }
@keyframes pillar-in { to { opacity: 1; transform: translateY(0); } }
#s7 .pillar .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 24px;
}
#s7 .pillar h3 {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#s7 .pillar p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}
#s7 .pillar .chart {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px;
}
#s7 .quote {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  max-width: 900px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  position: relative;
}
#s7 .quote::before, #s7 .quote::after {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.6em;
  font-style: normal;
  vertical-align: top;
  opacity: 0.6;
}
#s7 .quote::before { content: '« '; }
#s7 .quote::after { content: ' »'; }

/* ============================================================
   SLIDE 8 — CONTACT
   ============================================================ */
#s8 .slide-inner {
  align-items: center; justify-content: center;
  text-align: center;
}
#s8 .mini-globe {
  position: absolute; top: 6vh; right: 6vw;
  width: 120px; height: 120px;
  z-index: 3;
}
#s8 .eyebrow {
  justify-content: center; margin-bottom: 36px;
}
#s8 .eyebrow::before { display: none; }
#s8 h1 {
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1.0;
  max-width: 1200px;
  margin-bottom: 56px;
  background: linear-gradient(120deg, #fff 0%, var(--green) 35%, var(--blue) 60%, var(--gold) 85%, #fff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
#s8 .contact-info {
  display: flex; gap: 48px; align-items: center;
  margin-bottom: 56px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--text);
}
#s8 .contact-info a {
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: color 0.2s;
}
#s8 .contact-info a:hover { color: var(--green); }
#s8 .contact-info svg { width: 16px; height: 16px; color: var(--green); }
#s8 .cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 36px;
  background: var(--bg);
  border: 1px solid var(--green);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
#s8 .cta::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 100px;
  border: 1px solid var(--green);
  opacity: 0;
  animation: cta-pulse 2s infinite;
}
@keyframes cta-pulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}
#s8 .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
}
#s8 .cta .arrow { transition: transform 0.3s; }
#s8 .cta:hover .arrow { transform: translateX(4px); }
.confetti {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 4;
}

/* ============================================================
   FOOTER SIGNATURE (sticks across)
   ============================================================ */
#footer {
  position: fixed; bottom: 18px; right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 50;
  opacity: 0.5;
}

/* ============================================================
   TOPBAR INTERACTIVE ZONE
   ============================================================ */
#topbar .topbar-actions {
  display: flex; align-items: center; gap: 14px;
  pointer-events: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   NAV OVERLAY
   ============================================================ */
#nav-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 8, 17, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s, visibility 0.3s;
}
#nav-overlay.nav-hidden {
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
#nav-panel {
  width: min(560px, 92vw);
}
.nav-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
  text-align: center;
  position: relative;
}
.nav-head::before, .nav-head::after {
  content: '';
  position: absolute; top: 50%;
  width: 28%; height: 1px;
  background: rgba(0,255,136,0.2);
}
.nav-head::before { left: 0; }
.nav-head::after { right: 0; }
#nav-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-sans);
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.nav-item:hover, .nav-item.nav-active {
  background: rgba(0,255,136,0.07);
  border-color: rgba(0,255,136,0.3);
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  min-width: 22px;
  flex-shrink: 0;
}
.nav-item:hover .nav-num, .nav-item.nav-active .nav-num { color: var(--green); }
.nav-label { font-size: 14px; font-weight: 500; line-height: 1.25; }
.nav-close {
  position: absolute; top: 28px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 101;
}
.nav-close:hover { background: rgba(255,51,85,0.15); border-color: var(--red); color: var(--red); }
.nav-close svg { width: 16px; height: 16px; }

/* ============================================================
   OPERAT COUNTDOWN
   ============================================================ */
.operat-countdown {
  margin-top: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(10px);
}
#s-dec.active .operat-countdown {
  animation: ev-in 0.6s 2.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.oc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.oc-main {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 32px;
  background: rgba(255, 196, 68, 0.07);
  border: 1px solid rgba(255, 196, 68, 0.35);
  border-radius: 100px;
  animation: oc-pulse 2.4s ease-in-out infinite;
}
@keyframes oc-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,196,68,0.12); }
  50% { box-shadow: 0 0 44px rgba(255,196,68,0.32); }
}
.oc-days {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold), #ffe28a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.oc-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.oc-sep { color: var(--text-dim); font-size: 16px; }
.oc-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ============================================================
   QR CODE (slide contact)
   ============================================================ */
.qr-block {
  margin-top: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s 0.8s, transform 0.8s 0.8s;
}
#s8.active .qr-block { opacity: 1; transform: translateY(0); }
.qr-wrap {
  padding: 12px;
  background: #0a0f1e;
  border: 2px solid rgba(0,255,136,0.3);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,255,136,0.15);
}
#qr-contact img, #qr-contact canvas { display: block; border-radius: 4px; }
.qr-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
