/* ============================================================
   FINANCIÈRE MARJOS — PROPOSITION 2026
   Charte « Infrastructure » — inspirée de la direction artistique
   premium, appliquée au secteur des data centers IA.
   Dark premium · Editorial · Technique
   ============================================================ */

:root {
  /* --- Fonds --- */
  --bg: #07080B;
  --surface: #0C0E13;
  --surface-2: #11141B;
  --surface-3: #161A22;

  /* --- Lignes & bordures --- */
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* --- Texte --- */
  --fg: #F3F6F9;
  --fg-soft: rgba(243, 246, 249, 0.72);
  --muted: #8B94A6;
  --muted-2: #5E6675;

  /* --- Accent principal : « signal » (fibre / refroidissement) --- */
  --signal: #6FD3F2;
  --signal-strong: #9AE4FA;
  --signal-dim: rgba(111, 211, 242, 0.55);
  --signal-soft: rgba(111, 211, 242, 0.10);
  --signal-line: rgba(111, 211, 242, 0.22);

  /* --- Accent secondaire : héritage Marjos (or) --- */
  --gold: #C5A572;
  --gold-soft: rgba(197, 165, 114, 0.12);
  --gold-line: rgba(197, 165, 114, 0.28);

  /* --- Sémantique --- */
  --success: #4ADE80;
  --danger: #F87171;

  /* --- Typographie --- */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* --- Rayons --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* --- Ombres --- */
  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --shadow-elev: 0 30px 80px -30px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 60px rgba(111, 211, 242, 0.12);

  /* --- Mouvement --- */
  --ease-premium: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* --- Layout --- */
  --header-h: 76px;
  --max-w: 1240px;

  /* --- Dégradés signature --- */
  --gradient-text: linear-gradient(180deg, #F3F6F9 0%, rgba(243, 246, 249, 0.62) 100%);
  --gradient-signal: linear-gradient(135deg, #6FD3F2 0%, #9AE4FA 100%);
  --gradient-hero: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(111, 211, 242, 0.13), transparent 60%),
                   linear-gradient(180deg, #0A0C11 0%, var(--bg) 100%);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 40px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease-out-expo); }
img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
p { overflow-wrap: break-word; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: rgba(111, 211, 242, 0.25); color: #fff; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; color: var(--fg); }

.display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.display em, .h2 em { font-style: italic; }

.h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
.h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--fg-soft);
  font-weight: 300;
}

/* Eyebrow — / Section · Statut */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--gold { color: var(--gold); }
.eyebrow--muted { color: var(--muted); }

/* Micro-typo technique : labels télémétrie */
.mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ============================================================
   TÉLÉMÉTRIE DU HERO — badges séparés (lisibilité)
   ============================================================ */

.hero-telemetry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
  margin-bottom: 2rem;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem;
  background: rgba(9, 11, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  transition: border-color .4s var(--ease-out-expo), background .4s var(--ease-out-expo);
}

.telemetry-item:hover {
  border-color: rgba(111, 211, 242, 0.35);
  background: rgba(13, 16, 21, 0.85);
}

.telemetry-item .mono {
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
}

.telemetry-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.telemetry-sep { display: none; }

@media (max-width: 560px) {
  .hero-telemetry { gap: 0.4375rem; }
  .telemetry-item { padding: 0.375rem 0.6875rem; }
  .telemetry-item .mono { font-size: 0.5625rem; letter-spacing: 0.1em; }
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6.5rem 0; }
.section--tight { padding: 4.5rem 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.grid { display: grid; gap: 1.5rem; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* En-tête de section : / 01 — Title */
.section-head { margin-bottom: 3.5rem; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head .h2 { max-width: 720px; }
.section-head p { margin-top: 1rem; max-width: 640px; color: var(--muted); font-size: 1rem; }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* Fond technique : grille blueprint */
.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
}

.grid-bg--signal {
  background-image:
    linear-gradient(rgba(111, 211, 242, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 211, 242, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--dur) var(--ease-out-expo), box-shadow var(--dur) var(--ease-out-expo);
}

.header.scrolled {
  background: rgba(7, 8, 11, 0.92);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.6);
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(140deg, #10141B 0%, #0A0C11 100%);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--signal);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-signal);
  opacity: 0.9;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; }
.logo-text span {
  font-family: var(--font-mono);
  font-size: 0.59375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.nav { display: flex; align-items: center; gap: 0.125rem; }

.nav-link {
  color: var(--fg-soft);
  font-size: 0.8125rem;
  font-weight: 400;
  padding: 0.5rem 0.6875rem;
  border-radius: var(--radius-full);
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--signal); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0.875rem; right: 0.875rem;
  height: 1px;
  background: var(--signal);
  opacity: 0.65;
}

/* Switch langue */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.lang-switch a {
  padding: 0.28125rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: all 0.3s var(--ease-out-expo);
}

.lang-switch a.active { background: var(--fg); color: var(--bg); }
.lang-switch a:not(.active):hover { color: var(--fg); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 1.25rem;
  align-items: center; justify-content: center;
}

@media (max-width: 1180px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(7, 8, 11, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 0 2rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    border-bottom: 0 solid var(--line);
    transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo), visibility 0s linear 0.5s;
  }
  .nav.open {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.25rem 2rem 2rem;
    visibility: visible;
    border-bottom-width: 1px;
    transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
  }
  .nav-link { padding: 0.875rem 0.5rem; border-radius: 8px; font-size: 0.9375rem; }
  .nav-link.active::after { display: none; }
  .nav-toggle { display: flex; }
  .lang-switch { margin: 0.75rem 0 0; align-self: flex-start; }
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.8125rem 1.625rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.45s var(--ease-out-expo);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -12px rgba(243, 246, 249, 0.35);
}

.btn-signal {
  background: var(--signal-soft);
  color: var(--signal);
  border: 1px solid var(--signal-line);
}

.btn-signal:hover {
  background: rgba(111, 211, 242, 0.16);
  border-color: var(--signal-dim);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }

.btn-ghost { background: transparent; color: var(--muted); padding-inline: 0.5rem; }
.btn-ghost:hover { color: var(--fg); }
.btn-ghost .arr { transition: transform 0.45s var(--ease-out-expo); }
.btn-ghost:hover .arr { transform: translateX(4px); }

.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 2.125rem; font-size: 0.9375rem; }


/* ============================================================
   HERO — photo data center + couches d'animation
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  background: var(--bg);
}

/* Couche 1 : photo du data center (générée) */
.hero-photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.78;
  filter: saturate(1.22) contrast(1.06) brightness(0.95);
  transform-origin: center;
}

/* Couche 2 : voile dégradé pour la lisibilité */
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,8,11,.82) 0%, rgba(7,8,11,.32) 30%, rgba(7,8,11,.58) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,8,11,.94) 0%, rgba(7,8,11,.55) 42%, rgba(7,8,11,.18) 72%, rgba(7,8,11,.42) 100%);
  pointer-events: none;
}

/* Couche 3 : grille technique qui dérive */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(111, 211, 242, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 211, 242, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 78%);
  pointer-events: none;
  animation: grid-drift 70s linear infinite;
}

/* Couche 4 : halos respirants */
.hero-halo--1 {
  width: 520px; height: 520px;
  top: -12%; left: 8%;
  background: radial-gradient(circle, rgba(111,211,242,.16) 0%, transparent 68%);
  animation-delay: 0s;
}
.hero-halo--2 {
  width: 460px; height: 460px;
  bottom: -8%; right: 6%;
  background: radial-gradient(circle, rgba(154,228,250,.12) 0%, transparent 68%);
  animation-delay: 3.5s;
}
.hero-halo--3 {
  width: 320px; height: 320px;
  top: 42%; right: 32%;
  background: radial-gradient(circle, rgba(197,165,114,.08) 0%, transparent 70%);
  animation-delay: 6s;
}

.hero .hero-content { position: relative; z-index: 3; width: 100%; }

/* Titre hero : halo derrière */
.hero-title-wrap { position: relative; display: inline-block; }
.hero-title-wrap::before {
  content: '';
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(ellipse at 30% 50%, rgba(111,211,242,.13) 0%, transparent 65%);
  filter: blur(30px);
  z-index: -1;
  animation: halo-breathe 7s ease-in-out infinite;
  pointer-events: none;
}

/* Onde SVG du hero */
.hero-wave {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-52%);
  width: min(620px, 44vw);
  z-index: 2;
  opacity: 0.85;
  pointer-events: none;
}

.hero-wave svg { width: 100%; height: auto; overflow: visible; }

/* Fondu progressif sur les bords de l'onde */
.hero-wave {
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, #000 45%, transparent 92%);
  mask-image: radial-gradient(ellipse 85% 90% at 50% 50%, #000 45%, transparent 92%);
}

/* ---- Bandeau de métriques (hero) ---- */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 4.5rem;
  position: relative;
  z-index: 2;
  background: rgba(9, 11, 15, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(111, 211, 242, 0.16);
}

.hero-stat {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--line-soft);
  position: relative;
  transition: background .5s var(--ease-out-expo);
}

.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: rgba(111, 211, 242, 0.05); }

.hero-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem;
  width: 26px; height: 2px;
  background: var(--gradient-signal);
  opacity: .7;
}

.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 0.4375rem;
}

.hero-stat-value .accent { color: var(--signal); }

.hero-stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.59375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .hero-wave { right: -12%; width: 66vw; opacity: 0.4; }
}
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid var(--line-soft); }
  .hero-stat:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .hero-wave { display: none; }
  .hero-photo { opacity: 0.5; }
  .hero-stats { margin-top: 3rem; }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; }
}

/* ============================================================
   BANDEAU DE TRANSITION — data center → site
   ============================================================ */

.transition-band {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.transition-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-elev), 0 0 80px -20px rgba(111,211,242,.15);
}

/* Le comparateur : data center (avant) → interface site (après) */
.tc-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  background: var(--surface);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.tc-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tc-layer img,
.tc-layer .tc-mock {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.tc-after { clip-path: inset(0 0 0 50%); }

.tc-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--signal);
  z-index: 6;
  box-shadow: 0 0 22px rgba(111,211,242,.85);
  will-change: left;
}

.tc-handle::after {
  content: '⇄';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(7,8,11,.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--signal);
  color: var(--signal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 30px rgba(111,211,242,.4);
  transition: transform .3s var(--ease-out-expo);
}

.tc-wrap:hover .tc-handle::after { transform: translate(-50%,-50%) scale(1.08); }

.tc-tag {
  position: absolute;
  top: 1.5rem;
  z-index: 7;
  padding: 0.4375rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.tc-tag--a {
  left: 1.5rem;
  background: rgba(7,8,11,.78);
  color: var(--signal);
  border: 1px solid var(--signal-line);
}

.tc-tag--b {
  right: 1.5rem;
  background: rgba(7,8,11,.78);
  color: var(--fg);
  border: 1px solid var(--line-strong);
}

/* Ligne de scan qui balaye le visuel */
.tc-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(111,211,242,.07), transparent);
  animation: vscan 11s linear infinite;
  pointer-events: none;
  z-index: 5;
}

/* La maquette « site » qui remplace l'ancien screenshot */
.tc-mock {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
}

.tc-mock-bar {
  height: 34px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  flex-shrink: 0;
}

.tc-mock-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
}
.tc-mock-bar span:nth-child(1) { background: rgba(248,113,113,.5); }
.tc-mock-bar span:nth-child(2) { background: rgba(197,165,114,.5); }
.tc-mock-bar span:nth-child(3) { background: rgba(74,222,128,.5); }

.tc-mock-body {
  flex: 1;
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(111,211,242,.09), transparent 60%),
    var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 2.75rem;
  padding: 3rem 3.25rem;
  overflow: hidden;
}

.tc-mock-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
}

.tc-mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  background: rgba(12,14,19,.65);
  width: fit-content;
  margin-bottom: 1.25rem;
  position: relative;
}

.tc-mock-pill .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.tc-mock-h {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 15ch;
  margin-bottom: 1.25rem;
  position: relative;
}

.tc-mock-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.tc-mock-stat .v {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.tc-mock-stat .l {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Panneau « information investisseur » — remplit la moitié droite du comparateur */
.tc-panel {
  position: relative;
  border: 1px solid var(--signal-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17,20,27,.92), rgba(12,14,19,.95));
  padding: 1.25rem 1.375rem 1.125rem;
  box-shadow: 0 30px 70px -45px rgba(111,211,242,.4), 0 24px 60px -30px rgba(0,0,0,.75);
  overflow: hidden;
}

.tc-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.tc-panel-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.tc-panel-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--success);
  white-space: nowrap;
}

.tc-panel-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.tc-panel-chart {
  display: block;
  width: 100%;
  height: 112px;
  margin: 0.125rem 0 0.375rem;
}

.tc-panel-photo {
  display: block;
  width: 100%;
  height: 172px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin: 0.25rem 0 0.625rem;
}

.tc-panel-area {
  fill: url(#tcFill);
  opacity: 0;
  animation: chart-fade 2.4s ease 1s forwards;
}

.tc-panel-line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: tc-draw 3.2s cubic-bezier(.19,1,.22,1) 0.5s forwards,
             tc-glow 4.5s ease-in-out 3.9s infinite;
}

.tc-panel-nodes circle {
  fill: var(--signal-strong);
  animation: tc-node 3.2s ease-in-out infinite;
}
.tc-panel-nodes circle:nth-child(2) { animation-delay: 0.8s; }
.tc-panel-nodes circle:nth-child(3) { animation-delay: 1.6s; }
.tc-panel-nodes circle:nth-child(4) { animation-delay: 2.4s; }

@keyframes tc-draw { to { stroke-dashoffset: 0; } }
@keyframes tc-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(111,211,242,0)); }
  50% { filter: drop-shadow(0 0 7px rgba(111,211,242,.5)); }
}
@keyframes chart-fade { to { opacity: 1; } }
@keyframes tc-node { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.tc-panel-rows {
  list-style: none;
  margin: 0.625rem 0 0;
  padding: 0.8125rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}

.tc-panel-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.tc-panel-rows .k {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tc-panel-rows .v {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--fg);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tc-mock-body { grid-template-columns: 1fr; gap: 1.25rem; }
  .tc-panel { display: none; }
}


/* Légende sous le visuel */
.tc-note {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

/* Alignement des deux intitulés sur les colonnes du bloc du dessous :
   « GPU haute densité » au-dessus de Puissance (col. 1),
   « Information réglementée » au-dessus de Transparence (col. 3), collé à gauche. */
.tc-note span:first-child { grid-column: 1; }
.tc-note span:last-child { grid-column: 3; }

@media (max-width: 1080px) {
  .tc-note { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .tc-note span:last-child { grid-column: 2; }
}

@media (max-width: 768px) {
  .tc-note { grid-template-columns: 1fr; gap: 0.5rem; }
  .tc-note span:first-child, .tc-note span:last-child { grid-column: 1; }
}

.tc-note .arrow {
  color: var(--signal);
  font-size: 1.125rem;
  animation: float-node 3.5s ease-in-out infinite;
}

.tc-note .arrow--slow { animation-delay: 0.6s; }

/* ============================================================
   PHOTO DIRIGEANT (Gellman)
   ============================================================ */

.gov-photo-wrap {
  position: relative;
  width: 168px;
  height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
}

.gov-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(.25) contrast(1.05);
  transition: filter .6s var(--ease-out-expo), transform .8s var(--ease-out-expo);
}

.gov-photo-wrap:hover img { filter: grayscale(0) contrast(1.08); transform: scale(1.04); }

.gov-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,8,11,.75) 100%);
  pointer-events: none;
}

.gov-photo-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-signal);
  z-index: 2;
  opacity: .85;
}

.gov-photo-wrap .gov-badge {
  position: absolute;
  bottom: 0.625rem;
  left: 0.625rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #DFF6FE;
  background: rgba(7, 8, 11, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.3125rem 0.5625rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(111, 211, 242, 0.3);
  line-height: 1;
}

.gov-photo-wrap::after {
  background: linear-gradient(180deg, transparent 45%, rgba(7,8,11,.9) 100%);
}

/* ============================================================
   BANDEAU CHIFFRES ANIMÉS
   ============================================================ */

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.metrics-strip::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(111,211,242,.05), transparent);
  animation: vscan 13s linear infinite;
  pointer-events: none;
}

.metric-cell {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .5s var(--ease-out-expo);
}

.metric-cell:last-child { border-right: none; }
.metric-cell:hover { background: var(--surface-2); }

.metric-cell .mc-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-cell .mc-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.metric-cell .mc-value .u { font-size: .55em; color: var(--signal); margin-left: 0.125rem; }

.metric-cell .mc-sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-cell { border-bottom: 1px solid var(--line); }
  .metric-cell:nth-child(2) { border-right: none; }
}
@media (max-width: 560px) {
  .metrics-strip { grid-template-columns: 1fr; }
  .metric-cell { border-right: none; }
  .tc-mock-body { padding: 1.75rem; }
  .tc-mock-stats { gap: 1.25rem; flex-wrap: wrap; }
}

/* ============================================================
   PAGE LISTE DES RFA (rfa.html) — classes héritées, charte sombre
   ============================================================ */

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }

.pattern-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, #000 25%, transparent 75%);
}

.hero-text { max-width: 720px; }

.hero-subtitle { font-size: 1rem; color: var(--muted); }

.doc-action {
  flex-shrink: 0;
  color: var(--muted-2);
  transition: color .35s var(--ease, ease);
}
a:hover .doc-action { color: var(--signal); }

.doc-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.doc-meta {
  font-size: 0.75rem;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}

.doc-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(248,113,113,.10);
  color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem; font-weight: 600;
}

.doc-content { flex: 1; min-width: 0; }

/* Maquette investisseur : colonne gauche du comparateur */
.tc-mock-main { position: relative; min-width: 0; }

/* ============================================================
   PAGE BOURSE — données de marché en direct
   (portée depuis l'ancien site, adaptée à la charte « Infrastructure »)
   ============================================================ */

.bourse-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.bourse-status .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(74,222,128,.45);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
.bourse-status.is-closed .live-dot { background: var(--muted-2); animation: none; box-shadow: none; }

/* --- Bandeau cours principal --- */
.quote-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 2.25rem;
  border: 1px solid var(--signal-line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 60% 120% at 15% 0%, rgba(111,211,242,.10), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.quote-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal-dim), transparent);
}
.qb-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}
.qb-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--fg);
}
.qb-price .currency {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.qb-variation {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}
.qb-variation.positive { color: var(--success); border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.07); }
.qb-variation.negative { color: var(--danger); border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.07); }
.qb-variation.neutral { color: var(--muted); }
.qb-right { text-align: right; }
.qb-isin, .qb-place, .qb-time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.9;
}
.qb-time { color: var(--muted-2); }

/* --- Barre d'infos --- */
.bourse-info-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.bif-item { background: var(--surface); padding: 1rem 1.25rem; }
.bif-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.375rem;
}
.bif-value { font-size: 0.875rem; color: var(--fg); }
.bif-value.gold { color: var(--gold); }

/* --- Double fixing --- */
.fixing-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.fixing-title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.25rem;
}
.fixing-grid { display: flex; align-items: stretch; gap: 2rem; }
.fixing-item { flex: 1; }
.fixing-time {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.fixing-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.fixing-detail { font-size: 0.8125rem; color: var(--muted-2); }
.fixing-divider { width: 1px; background: var(--line); }

/* --- Seuils --- */
.seuils-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.seuil-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.125rem 1.25rem;
}
.seuil-card.bas { border-left: 3px solid var(--danger); }
.seuil-card.haut { border-left: 3px solid var(--success); }
.seuil-card.actuel { border-left: 3px solid var(--signal); background: var(--surface-2); }
.seuil-card .sl {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}
.seuil-card .sv { font-family: var(--font-display); font-size: 1.5rem; color: var(--fg); }

/* --- Range bar --- */
.range-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(248,113,113,.35), rgba(111,211,242,.35), rgba(74,222,128,.35));
  margin-bottom: 0.5rem;
}
.range-marker {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--signal);
  border: 2px solid var(--bg);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(111,211,242,.7);
  transition: left .45s cubic-bezier(.19,1,.22,1);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted-2);
  margin-bottom: 2rem;
}

/* --- Chiffres clés --- */
.key-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.kf-item { background: var(--surface); padding: 1rem 1.25rem; }
.kf-item.highlight { background: var(--surface-2); }
.kf-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.4375rem;
}
.kf-value { font-family: var(--font-mono); font-size: 1rem; color: var(--fg); }

/* --- Séparateur de section --- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section-divider span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  white-space: nowrap;
}

/* --- Grille de cartes --- */
.bourse-grid {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.bourse-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.5rem 1.625rem;
  position: relative;
  overflow: hidden;
}
.bourse-card h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.bourse-card h3 .badge {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid var(--signal-line);
  border-radius: var(--radius-full);
  padding: 0.1875rem 0.5rem;
  background: var(--signal-soft);
}

/* --- Graphique --- */
.chart-buttons { display: flex; gap: 0.375rem; margin-bottom: 1rem; flex-wrap: wrap; }
.chart-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.8125rem;
  cursor: pointer;
  transition: all .25s ease;
}
.chart-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.chart-btn.active {
  color: var(--bg);
  background: var(--signal);
  border-color: var(--signal);
}
.chart-container { position: relative; width: 100%; height: 300px; }
#priceChart { width: 100%; height: 100%; display: block; }

.source-link {
  font-size: 0.75rem;
  color: var(--muted-2);
  line-height: 1.7;
  margin-top: 1rem;
}
.source-link a { color: var(--signal); text-decoration: none; border-bottom: 1px solid var(--signal-line); }
.source-link a:hover { border-bottom-color: var(--signal); }

/* --- Liens externes (Bit Digital Inc., WhiteFiber Inc.) --- */
.ext-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--signal-line); transition: color var(--dur) var(--ease-out-expo), border-color var(--dur) var(--ease-out-expo); }
.ext-link:hover { color: var(--signal); border-bottom-color: var(--signal); }
svg a.org-node { cursor: pointer; }
svg a.org-node text { transition: fill var(--dur) var(--ease-out-expo); }
svg a.org-node:hover text { fill: var(--signal); }

/* --- Carnet d'ordres --- */
.orderbook { display: grid; gap: 1.5rem; }
.ob-header {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1fr;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.375rem;
}
.ob-header.buy { color: var(--success); background: rgba(74,222,128,.07); }
.ob-header.sell { color: var(--danger); background: rgba(248,113,113,.07); }
.ob-header span:nth-child(n+2) { text-align: right; }
.ob-rows { max-height: 190px; overflow-y: auto; }
.ob-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1fr;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.ob-row.buy .ob-prix { color: var(--success); }
.ob-row.sell .ob-prix { color: var(--danger); }
.ob-row span:nth-child(n+2) { text-align: right; }
.ob-row:nth-child(odd) { background: rgba(255,255,255,.015); }
.ob-total {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1fr;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.625rem 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.ob-total span:nth-child(n+2) { text-align: right; }
.ob-total.buy { color: var(--success); }
.ob-total.sell { color: var(--danger); }

/* --- Tableaux --- */
.perf-table, .tx-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.perf-table th, .tx-table th {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: left;
  padding: 0 0.75rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.perf-table td, .tx-table td {
  padding: 0.6875rem 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.perf-table th:not(:first-child), .perf-table td:not(:first-child),
.tx-table th:not(:first-child), .tx-table td:not(:first-child) { text-align: right; }
.perf-table tbody tr:hover, .tx-table tbody tr:hover { background: rgba(255,255,255,.02); }
.perf-var.positive, .tx-prix { color: var(--success); }
.perf-var.negative { color: var(--danger); }

/* --- Indicateurs --- */
.indicators-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.ind-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  padding: 0.875rem 1rem;
}
.ind-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.375rem;
}
.ind-value { font-family: var(--font-mono); font-size: 1rem; color: var(--signal); }

.eligibility-box {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.eligibility-box strong { color: var(--fg); font-weight: 500; }
.elig-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-full);
  padding: 0.1875rem 0.5625rem;
  margin-left: 0.375rem;
  background: var(--gold-soft);
}

/* --- Chargement --- */
.bourse-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-2);
}
.spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--signal);
  border-radius: 50%;
  animation: spin-slow 0.9s linear infinite;
}

@media (max-width: 1080px) {
  .quote-banner { grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }
  .qb-right { text-align: left; }
  .bourse-info-bar { grid-template-columns: repeat(2, 1fr); }
  .key-figures { grid-template-columns: repeat(2, 1fr); }
  .bourse-grid { grid-template-columns: 1fr; }
  .seuils-banner { grid-template-columns: 1fr; }
  .fixing-grid { flex-direction: column; gap: 1.25rem; }
  .fixing-divider { width: 100%; height: 1px; }
  .indicators-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bourse-info-bar { grid-template-columns: 1fr; }
  .key-figures { grid-template-columns: 1fr; }
  .quote-banner { padding: 1.5rem 1.25rem; }
  .chart-container { height: 220px; }
}

/* ============================================================
   MARQUEE — défilement infini
   ============================================================ */

.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.375rem 0;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-item .star { color: var(--signal); font-size: 0.875rem; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   CARTES
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card--glow:hover { box-shadow: var(--shadow-card), var(--shadow-glow); border-color: var(--signal-line); }

/* Pilier numéroté */
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}

.pillar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal-line), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.pillar:hover::after { opacity: 1; }

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: 1.5rem;
  display: block;
}

.pillar h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.pillar p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

.pillar-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--signal-soft);
  border: 1px solid var(--signal-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--signal);
  margin-bottom: 1.5rem;
}

/* Carte chiffre clé */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.625rem;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.stat-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.625rem;
  width: 32px; height: 1px;
  background: var(--signal);
  opacity: 0.5;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 0.375rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ============================================================
   ORG CHART / STRUCTURE DU GROUPE
   ============================================================ */

.org-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.org-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(111, 211, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 211, 242, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  border-radius: inherit;
  pointer-events: none;
}

.org-wrap svg { position: relative; z-index: 1; width: 100%; height: auto; display: block; }

/* Sur petits écrans, le schéma défile horizontalement
   au lieu d'être comprimé — le texte reste lisible */
@media (max-width: 900px) {
  .org-wrap { padding: 1.5rem 1rem 1rem; }
  .org-wrap svg { min-width: 560px; }
}

@media (max-width: 620px) {
  .org-wrap svg { min-width: 520px; }
}

.org-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  position: relative;
  z-index: 1;
}

.org-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }

.org-legend .dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  display: inline-block;
}

/* ============================================================
   LISTE INFORMATIONS CLÉS
   ============================================================ */

.key-list { display: flex; flex-direction: column; }

.key-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.key-row:last-child { border-bottom: none; }
.key-row .k { font-size: 0.875rem; color: var(--muted); }
.key-row .v { font-size: 0.9375rem; font-weight: 500; color: var(--fg); text-align: right; }
.key-row .v.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; }

/* ============================================================
   ACTUALITÉS / COMMUNIQUÉS
   ============================================================ */

.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.news-card:hover { border-color: var(--signal-line); transform: translateY(-3px); box-shadow: var(--shadow-card); }

.news-date {
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.news-date .tag {
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.59375rem;
}

.news-card h3 {
  font-family: var(--font-body);
  font-size: 0.96875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--fg);
  flex: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--signal);
  margin-top: 0.25rem;
}

.news-link .arr { transition: transform 0.45s var(--ease-out-expo); }
.news-card:hover .news-link .arr { transform: translateX(4px); }

/* ============================================================
   ESPACE INVESTISSEURS — grille d'accès
   ============================================================ */

.access-card {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.5rem;
  transition: all 0.45s var(--ease-out-expo);
}

.access-card:hover { border-color: var(--signal-line); background: var(--surface-2); transform: translateX(4px); }

.access-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--signal);
  flex-shrink: 0;
}

.access-card .t { flex: 1; min-width: 0; }
.access-card .t strong { display: block; font-size: 0.90625rem; font-weight: 500; color: var(--fg); margin-bottom: 0.125rem; }
.access-card .t span { font-size: 0.78125rem; color: var(--muted); }

.access-card .arr { color: var(--muted-2); transition: all 0.45s var(--ease-out-expo); flex-shrink: 0; }
.access-card:hover .arr { color: var(--signal); transform: translateX(3px); }

/* ============================================================
   FAQ — accordéon
   ============================================================ */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.35s var(--ease-out-expo);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal); }

.faq-item .faq-x {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.45s var(--ease-out-expo);
}

.faq-item[open] .faq-x { transform: rotate(45deg); color: var(--signal); border-color: var(--signal-line); }

.faq-body {
  padding: 0 0 1.75rem;
  max-width: 780px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ============================================================
   CTA CONTACT
   ============================================================ */

.cta-panel {
  position: relative;
  background: linear-gradient(150deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 4rem;
  overflow: hidden;
  text-align: center;
}

.cta-panel::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 320px;
  background: radial-gradient(ellipse, rgba(111, 211, 242, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-panel .eyebrow { margin-bottom: 1.25rem; }
.cta-panel .h2 { max-width: 560px; margin: 0 auto 1rem; }
.cta-panel p { color: var(--muted); max-width: 480px; margin: 0 auto 2rem; }

@media (max-width: 768px) { .cta-panel { padding: 2.5rem 1.5rem; } }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding: 4.5rem 0 2rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: var(--muted); max-width: 320px; margin-top: 1.25rem; }
.footer-brand .logo { margin-bottom: 0; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1.375rem;
}

.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul li, .footer-col ul li a { font-size: 0.84375rem; color: var(--muted); }
.footer-col ul li a:hover { color: var(--signal); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ============================================================
   PAGES INTÉRIEURES — en-tête de page
   ============================================================ */

.page-head {
  position: relative;
  background: var(--gradient-hero);
  padding: calc(var(--header-h) + 5.5rem) 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.page-head::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 25%, transparent 75%);
  pointer-events: none;
}

.page-head .container { position: relative; z-index: 1; }
.page-head .eyebrow { margin-bottom: 1.25rem; }
.page-head h1 { font-size: clamp(2.25rem, 4.8vw, 3.5rem); margin-bottom: 1rem; max-width: 820px; }
.page-head p { color: var(--fg-soft); max-width: 640px; font-size: 1.0625rem; line-height: 1.7; }

/* Blocs réglementés */
.reg-block { border-top: 1px solid var(--line); padding-top: 2.5rem; margin-top: 2.5rem; }
.reg-block:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.reg-block h2 { font-size: 1.625rem; margin-bottom: 0.75rem; }
.reg-block > p { color: var(--muted); max-width: 720px; font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1.5rem; }

/* Liste documents (rendu statique) */
.doc-list { display: flex; flex-direction: column; gap: 0.75rem; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.375rem;
  transition: all 0.45s var(--ease-out-expo);
}

.doc-item:hover { border-color: var(--signal-line); transform: translateX(4px); }

.doc-ic {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--signal);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
}

.doc-body { flex: 1; min-width: 0; }
.doc-body .t { font-size: 0.90625rem; font-weight: 500; color: var(--fg); line-height: 1.5; margin-bottom: 0.25rem; }
.doc-body .m { font-family: var(--font-mono); font-size: 0.65625rem; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.doc-body .m .badge { color: var(--gold); }

.doc-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.1em;
  color: var(--signal);
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--signal-line);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.doc-dl:hover { background: var(--signal-soft); }

/* Tableau télémétrie (calendrier, votes) */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.tbl th {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: left;
  padding: 0 1rem 0.875rem 0;
  border-bottom: 1px solid var(--line);
}

.tbl td {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg-soft);
  vertical-align: top;
}

.tbl td strong { color: var(--fg); font-weight: 500; }
.tbl .num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 0.8125rem; }
.tbl .status-ok { color: var(--success); }
.tbl .status-plan { color: var(--gold); }

/* Info-box réglementé */
.info-box {
  background: var(--signal-soft);
  border: 1px solid var(--signal-line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--fg-soft);
}

.info-box strong { color: var(--signal); }

/* ============================================================
   AVANT / APRÈS — comparateur
   ============================================================ */

.compare-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-elev);
  user-select: none;
  touch-action: none;
}

.compare-wrap img { display: block; width: 100%; height: auto; }

.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  z-index: 1;
}

.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--signal);
  z-index: 3;
  cursor: ew-resize;
}

.compare-handle::after {
  content: '⇄';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--signal);
  color: var(--signal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  box-shadow: var(--shadow-glow);
}

.compare-tag {
  position: absolute;
  top: 1.25rem;
  z-index: 4;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.compare-tag--before { left: 1.25rem; background: rgba(7, 8, 11, 0.8); color: var(--muted); border: 1px solid var(--line); }
.compare-tag--after { right: 1.25rem; background: rgba(7, 8, 11, 0.8); color: var(--signal); border: 1px solid var(--signal-line); }

/* ============================================================
   UTILITAIRES / RÉVÉLATION AU SCROLL
   ============================================================ */

.text-center { text-align: center; }
.text-signal { color: var(--signal); }
.text-gold { color: var(--gold); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }

/* Anti-flash : caché uniquement si JS actif, et fallback toujours visible */
.fade-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.js-enabled .fade-in:not(.visible) { opacity: 0; transform: translateY(22px); }
.js-enabled .fade-in.visible { opacity: 1; transform: none; }

/* Les cartes restent toujours lisibles même si l'observer échoue */
.card.fade-in, .news-card.fade-in, .pillar.fade-in, .stat-card.fade-in, .access-card.fade-in {
  opacity: 1 !important;
  transform: none !important;
}

/* Délais en cascade */
.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.18s; }
.d4 { transition-delay: 0.24s; }


/* ============================================================
   MOTION — keyframes (data center)
   ============================================================ */

/* --- Entrées en cascade --- */
@keyframes stagger-in {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes nav-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* --- Respirations lumineuses --- */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); opacity: 0.7; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: .3; }
  50% { opacity: .6; }
}

@keyframes pulse-soft {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* --- Flottement --- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes float-node {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Scintillement des nœuds --- */
@keyframes geo-twinkle {
  0%, 100% { opacity: 0; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes node-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* --- Balayage de scan (signature high-tech) --- */
@keyframes why-scan {
  0% { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(1400%); opacity: 0; }
}

@keyframes scan-sweep {
  0% { left: -30%; opacity: 0; }
  20% { opacity: .6; }
  80% { opacity: .6; }
  100% { left: 130%; opacity: 0; }
}

/* --- Marquee --- */
@keyframes marquee {
  0% { transform: translate(0); }
  100% { transform: translate(-50%); }
}

/* --- Flux de données dans les courbes (SVG) --- */
@keyframes dash-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

@keyframes dash-flow-slow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -600; }
}

/* --- Rotation lente (anneaux, radars) --- */
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* --- Barres d'activité (télémétrie) --- */
@keyframes bar-fill {
  0% { width: 0%; }
  100% { width: var(--bar-w, 60%); }
}

@keyframes bar-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* --- Brillance qui traverse un bouton --- */
@keyframes shine {
  0% { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(320%) skewX(-20deg); }
}

/* --- Fondu de fond (dégradé animé) --- */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Grille qui dérive --- */
@keyframes grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 44px 44px, 44px 44px; }
}

/* --- Compteur : apparition --- */
@keyframes count-in {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Zoom lent (image hero, effet Ken Burns) --- */
@keyframes ken-burns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

/* --- Halo qui respire derrière un titre --- */
@keyframes halo-breathe {
  0%, 100% { opacity: .25; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.08); }
}

/* --- Ligne de balayage verticale --- */
@keyframes vscan {
  0% { top: -10%; opacity: 0; }
  15% { opacity: .5; }
  85% { opacity: .5; }
  100% { top: 110%; opacity: 0; }
}

/* ============================================================
   APPLICATION DES ANIMATIONS
   ============================================================ */

/* Hero : la photo et les halos */
.hero-photo { animation: ken-burns 42s ease-in-out infinite alternate; }

.hero-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: halo-breathe 9s ease-in-out infinite;
}

/* Onde SVG : les courbes circulent */
.wave-flow {
  stroke-dasharray: 12 8;
  animation: dash-flow 24s linear infinite;
}

.wave-flow--slow {
  stroke-dasharray: 20 12;
  animation: dash-flow-slow 34s linear infinite;
}

/* Nœuds : scintillement décalé */
.node-twinkle { animation: geo-twinkle 4.5s ease-in-out infinite; }
.node-twinkle.d1 { animation-delay: 0.7s; }
.node-twinkle.d2 { animation-delay: 1.4s; }
.node-twinkle.d3 { animation-delay: 2.1s; }
.node-twinkle.d4 { animation-delay: 2.8s; }

.node-blink { animation: node-blink 3.2s ease-in-out infinite; }
.node-blink.d1 { animation-delay: 0.4s; }
.node-blink.d2 { animation-delay: 0.9s; }
.node-blink.d3 { animation-delay: 1.5s; }
.node-blink.d4 { animation-delay: 2.2s; }

/* Anneaux radar */
.ring-rotate { transform-origin: 300px 440px; animation: spin-slow 60s linear infinite; }
.ring-rotate--rev { transform-origin: 300px 440px; animation: spin-reverse 90s linear infinite; }

/* Balayage lumineux sur les cartes au survol */
.card, .pillar, .news-card, .stat-card, .access-card { position: relative; }
.card::before, .pillar::before, .news-card::before, .stat-card::before, .access-card::before {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(111, 211, 242, 0.07), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.card:hover::before, .pillar:hover::before, .news-card:hover::before,
.stat-card:hover::before, .access-card:hover::before {
  animation: scan-sweep 1.1s var(--ease-out-expo);
}

/* Brillance sur les boutons primaires */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 22%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}
.btn-primary:hover::after { animation: shine .85s var(--ease-out-expo); }

/* Télémétrie : barres animées */
.telemetry-bar {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.telemetry-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-w, 60%);
  background: var(--gradient-signal);
  border-radius: 2px;
  animation: bar-fill 1.8s var(--ease-out-expo) both;
}

/* Point pulsant générique */
.dot-pulse { animation: pulse-soft 3s ease-in-out infinite; }

/* Float lent (éléments décoratifs) */
.float-slow { animation: float-slow 11s ease-in-out infinite; }

/* Rotation d'anneau de chargement */
.spin-slow { animation: spin-slow 14s linear infinite; }

/* Grille dérivante (fonds techniques) */
.grid-drift { animation: grid-drift 60s linear infinite; }

/* Halo pulsant (arrière-plans) */
.glow-breathe { animation: halo-breathe 8s ease-in-out infinite; }

/* Entrée en cascade pour les enfants d'un conteneur */
.stagger > * { animation: stagger-in .8s var(--ease-out-expo) both; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .12s; }
.stagger > *:nth-child(3) { animation-delay: .19s; }
.stagger > *:nth-child(4) { animation-delay: .26s; }
.stagger > *:nth-child(5) { animation-delay: .33s; }
.stagger > *:nth-child(6) { animation-delay: .40s; }

/* Ligne de scan verticale (décor high-tech sur un bloc) */
.scan-host { position: relative; overflow: hidden; }
.scan-host::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(111, 211, 242, 0.055), transparent);
  animation: vscan 9s linear infinite;
  pointer-events: none;
}

/* Badge live */
.live-badge {
  animation: nav-fade .6s ease both;
}
.live-badge .dot { animation: pulse-dot 2.2s ease-in-out infinite; }

/* Compteur : nombre qui s'incrémente */
.count-up { animation: count-in .5s var(--ease-out-expo) both; }

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ============================================================
   DÉCOR DES PAGES INTÉRIEURES (page-head)
   ============================================================ */

.page-head { position: relative; overflow: hidden; }

.ph-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-head > .container { position: relative; z-index: 2; }

/* Grille technique dérivante */
.ph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111,211,242,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,211,242,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 80% at 30% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 30% 40%, #000 20%, transparent 80%);
  animation: grid-drift 80s linear infinite;
}

/* Halos respirants */
.ph-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: halo-breathe 10s ease-in-out infinite;
}

.ph-halo--1 {
  width: 380px; height: 380px;
  top: -30%; left: 4%;
  background: radial-gradient(circle, rgba(111,211,242,.14) 0%, transparent 68%);
}
.ph-halo--2 {
  width: 300px; height: 300px;
  bottom: -35%; right: 12%;
  background: radial-gradient(circle, rgba(197,165,114,.09) 0%, transparent 70%);
  animation-delay: 4s;
}

/* Ligne de scan verticale */
.ph-scan {
  position: absolute;
  left: 0; right: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(111,211,242,.06), transparent);
  animation: vscan 10s linear infinite;
}

/* Onde de données */
.ph-wave {
  position: absolute;
  right: -6%;
  top: 0;
  width: min(560px, 46vw);
  height: 100%;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .ph-wave { opacity: 0.28; width: 80vw; right: -18%; }
}
@media (max-width: 600px) {
  .ph-wave { display: none; }
}


/* ============================================================
   CLASSES COMPLÉMENTAIRES (utilisées dans le HTML)
   ============================================================ */

/* Actions du hero : boutons côte à côte */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
  margin-top: 2.25rem;
}

/* Sous-titre du hero */
.hero-sub {
  margin-top: 1.75rem;
  max-width: 56ch;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero-sub strong { color: var(--fg); font-weight: 500; }

/* Onglets des exercices */
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.year-tab {
  padding: 0.5rem 0.9375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all .35s var(--ease-out-expo);
  white-space: nowrap;
}

.year-tab:hover {
  border-color: rgba(111, 211, 242, 0.35);
  color: var(--fg);
  background: var(--surface-2);
}

.year-tab.active {
  background: var(--signal);
  border-color: var(--signal);
  color: #06090D;
  font-weight: 600;
}

.year-content { display: none; }
.year-content.active { display: block; animation: stagger-in .6s var(--ease-out-expo) both; }

@media (max-width: 600px) {
  .hero-actions { gap: 0.625rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .year-tabs { gap: 0.375rem; }
  .year-tab { padding: 0.4375rem 0.75rem; font-size: 0.625rem; }
}


/* ============================================================
   CARTE DE LOCALISATION (page contact)
   ============================================================ */

.map-wrap {
  position: relative;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  filter: grayscale(.85) invert(.9) contrast(.85) hue-rotate(175deg) brightness(.95);
  transition: filter .6s var(--ease-out-expo);
}

.map-wrap:hover iframe {
  filter: grayscale(.2) invert(.88) contrast(.9) hue-rotate(180deg) brightness(1);
}

.map-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(7, 8, 11, 0.55);
  border-radius: inherit;
}

.map-label {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.8125rem;
  background: rgba(7, 8, 11, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  pointer-events: none;
}

.map-label .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@media (max-width: 700px) {
  .map-wrap iframe { height: 240px; }
}

/* ============================================================
   FORMULAIRE DE CONTACT — texte indicatif
   ============================================================ */

#contact-form ::placeholder {
  color: var(--muted-2);
  opacity: 1;
}

/* ============================================================
   VÉRIFICATION HUMAINE (anti-spam)
   ============================================================ */

.human-check {
  margin-bottom: 1.5rem;
  padding: 1.125rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.human-check::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 2px;
  background: var(--gradient-signal);
}

.human-check-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}

.human-check-head .ic {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background: rgba(111, 211, 242, 0.1);
  border: 1px solid rgba(111, 211, 242, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
  flex-shrink: 0;
}

.human-check-head .t {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.human-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg);
  cursor: pointer;
  line-height: 1.55;
}

.human-check-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin-top: 0.0625rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all .25s var(--ease-out-expo);
}

.human-check-label input[type="checkbox"]:hover {
  border-color: rgba(111, 211, 242, 0.5);
}

.human-check-label input[type="checkbox"]:checked {
  background: var(--signal);
  border-color: var(--signal);
}

.human-check-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #06090D;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.human-check-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.human-check-note {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.6875rem;
  color: var(--muted-2);
  line-height: 1.55;
}

.human-check-note code {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--signal);
  background: rgba(111, 211, 242, 0.08);
  padding: 0.0625rem 0.3125rem;
  border-radius: 3px;
}


/* Messages du formulaire */
.form-msg {
  padding: 1rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.6;
}

.form-msg--ok {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #6EE7A0;
}

.form-msg--err {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #FCA5A5;
}

.form-msg code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.0625rem 0.3125rem;
  border-radius: 3px;
}

.form-msg em { font-style: italic; opacity: .8; }



/* Organigramme pleine largeur — le schéma respire et reste lisible */
.org-wrap--wide {
  padding: 3rem 3.5rem 2.5rem;
}

.org-wrap--wide svg {
  max-width: 1000px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 900px) {
  .org-wrap--wide { padding: 2rem 1.5rem 1.75rem; }
  .org-wrap--wide svg { min-width: 620px; }
}

@media (max-width: 620px) {
  .org-wrap--wide { padding: 1.5rem 0.875rem 1.25rem; }
  .org-wrap--wide svg { min-width: 560px; }
}

/* ============================================================
   RESPONSIVE GLOBAL
   ============================================================ */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
  .container { padding: 0 1.25rem; }
  .header-inner { padding: 0 1.25rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .head-row { align-items: flex-start; flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .section { padding: 3.5rem 0; }
  .hero-title { font-size: 2.125rem; }
  .logo-text strong { font-size: 0.8125rem; }
  .logo-text span { font-size: 0.53125rem; }
  .logo-mark { width: 34px; height: 34px; font-size: 1.0625rem; }
  .faq-item summary { font-size: 0.9375rem; }
  .doc-item { flex-wrap: wrap; }
  .cta-panel { padding: 2rem 1.25rem; }
  .tbl { font-size: 0.8125rem; }
  .tbl th { padding-right: 0.5rem; }
  .tbl td { padding: 0.875rem 0.5rem 0.875rem 0; }
}
