/* ==========================================================================
   SERALK — Styles personnalisés
   Complément à Tailwind CSS : glassmorphism, animations, bento grid, boutons
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables CSS globales
   -------------------------------------------------------------------------- */
:root {
  --seralk-black: #0B0B0D;
  --seralk-card: #1D1F24;
  --seralk-blue: #2D7FFF;
  --seralk-blue-glow: rgba(45, 127, 255, 0.35);
  --seralk-muted: #9CA3AF;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(29, 31, 36, 0.6);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Sélection de texte & scrollbar
   -------------------------------------------------------------------------- */
::selection {
  background: rgba(45, 127, 255, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--seralk-black);
}

::-webkit-scrollbar-thumb {
  background: rgba(45, 127, 255, 0.4);
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Glassmorphism — panneaux et navigation
   -------------------------------------------------------------------------- */
.glass-nav {
  background: rgba(11, 11, 13, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: none;
}

.glass-badge {
  background: rgba(45, 127, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(45, 127, 255, 0.2);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
}

/* Header scrolled — fond plus opaque */
#header.header--scrolled .glass-nav {
  background: rgba(11, 11, 13, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Typographie — dégradé sur mots clés
   -------------------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, #2D7FFF 0%, #5B9FFF 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Boutons premium
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #2D7FFF, #1a6ae6);
  border: 1px solid rgba(45, 127, 255, 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 0 20px rgba(45, 127, 255, 0.25);
  transition: all 0.35s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(45, 127, 255, 0.45);
  border-color: rgba(45, 127, 255, 0.8);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  transition: all 0.35s var(--transition-smooth);
}

.btn-outline:hover {
  border-color: var(--seralk-blue);
  color: var(--seralk-blue);
  box-shadow: 0 0 20px rgba(45, 127, 255, 0.15);
  background: rgba(45, 127, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Navigation — liens
   -------------------------------------------------------------------------- */
.nav-link {
  position: relative;
  transition: color 0.3s var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--seralk-blue);
  box-shadow: 0 0 8px var(--seralk-blue-glow);
  transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.25s var(--transition-smooth);
}

.mobile-nav-link:hover {
  color: #fff;
  background: rgba(45, 127, 255, 0.08);
}

.footer-link {
  transition: color 0.25s var(--transition-smooth);
}

.footer-link:hover {
  color: var(--seralk-blue);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  color: var(--seralk-muted);
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--transition-smooth);
}

.social-link:hover {
  color: var(--seralk-blue);
  border-color: rgba(45, 127, 255, 0.4);
  box-shadow: 0 0 15px rgba(45, 127, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Logo — animation sparkle
   -------------------------------------------------------------------------- */
.logo-sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* --------------------------------------------------------------------------
   Grille 3D décorative (Hero)
   -------------------------------------------------------------------------- */
.perspective-grid {
  perspective: 600px;
}

.grid-3d {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(45, 127, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 127, 255, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  border: 1px solid rgba(45, 127, 255, 0.2);
  border-radius: 1rem;
  transform: rotateX(60deg) rotateZ(-15deg);
  animation: gridFloat 8s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(45, 127, 255, 0.1);
}

@keyframes gridFloat {
  0%, 100% { transform: rotateX(60deg) rotateZ(-15deg) translateY(0); }
  50% { transform: rotateX(60deg) rotateZ(-15deg) translateY(-10px); }
}

/* --------------------------------------------------------------------------
   Bento Grid — Écosystème
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
  }

  .bento-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-card--wide {
    grid-column: span 2;
  }

  .bento-card--featured {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Carte bento — glassmorphism + glow au survol */
.bento-card {
  position: relative;
  padding: 1.75rem;
  background: var(--seralk-card);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
  box-shadow: inset 0 0 0 1px rgba(45, 127, 255, 0.4);
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 127, 255, 0.3);
  box-shadow:
    0 0 0 1px rgba(45, 127, 255, 0.25),
    0 0 30px rgba(45, 127, 255, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.3);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--seralk-blue);
  transition: transform 0.4s var(--transition-smooth);
}

.bento-card__icon svg {
  width: 100%;
  height: 100%;
}

.bento-card:hover .bento-card__icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--seralk-blue-glow));
}

.bento-card__icon--featured {
  color: #fff;
}

.bento-card__tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--seralk-blue);
  background: rgba(45, 127, 255, 0.1);
  border: 1px solid rgba(45, 127, 255, 0.2);
  border-radius: 9999px;
}

.bento-card__tag--featured {
  color: #fff;
  background: rgba(45, 127, 255, 0.25);
}

.bento-card--featured {
  background: linear-gradient(135deg, rgba(45, 127, 255, 0.12), var(--seralk-card));
}

.bento-card__glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(45, 127, 255, 0.15), transparent 70%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Cartes Valeurs
   -------------------------------------------------------------------------- */
.value-card {
  padding: 2rem;
  background: var(--seralk-card);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  text-align: center;
  transition: all 0.4s var(--transition-smooth);
}

.value-card:hover {
  border-color: rgba(45, 127, 255, 0.25);
  box-shadow: 0 0 30px rgba(45, 127, 255, 0.1);
  transform: translateY(-4px);
}

.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  color: var(--seralk-blue);
  border: 1px solid rgba(45, 127, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(45, 127, 255, 0.05);
  transition: all 0.4s var(--transition-smooth);
}

.value-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.value-card:hover .value-card__icon {
  box-shadow: 0 0 20px rgba(45, 127, 255, 0.25);
  border-color: rgba(45, 127, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Section Métriques — KPIs & graphiques
   -------------------------------------------------------------------------- */
.metric-card {
  padding: 1.5rem;
  background: var(--seralk-card);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  transition: all 0.35s var(--transition-smooth);
}

.metric-card:hover {
  border-color: rgba(45, 127, 255, 0.25);
  box-shadow: 0 0 25px rgba(45, 127, 255, 0.08);
}

.metric-card__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--seralk-muted);
  margin-bottom: 0.5rem;
}

.metric-card__value {
  font-family: 'Space Grotesk', 'Orbitron', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.375rem;
}

.metric-card__delta {
  font-size: 0.75rem;
  color: var(--seralk-muted);
}

.metric-card__delta--up {
  color: #34d399;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .chart-card--wide {
    grid-column: span 2;
  }
}

.chart-card {
  padding: 1.5rem;
  background: var(--seralk-card);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  transition: all 0.35s var(--transition-smooth);
}

.chart-card:hover {
  border-color: rgba(45, 127, 255, 0.2);
  box-shadow: 0 0 30px rgba(45, 127, 255, 0.06);
}

.chart-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.chart-card__badge {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--seralk-blue);
  background: rgba(45, 127, 255, 0.1);
  border: 1px solid rgba(45, 127, 255, 0.25);
  border-radius: 9999px;
}

.chart-card__badge--teal {
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
}

.chart-card__canvas {
  position: relative;
  height: 260px;
}

.chart-card__canvas--donut {
  height: 240px;
}

.chart-card__canvas--compact {
  height: 200px;
}

.reveal[data-delay="3"] { transition-delay: 0.35s; }

/* --------------------------------------------------------------------------
   Visuel Solutions — orbite animée
   -------------------------------------------------------------------------- */
.solutions-orbit {
  position: relative;
  width: 200px;
  height: 200px;
}

.solutions-orbit__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(45, 127, 255, 0.3);
  border-radius: 50%;
  animation: orbitSpin 12s linear infinite;
}

.solutions-orbit__ring--2 {
  inset: 25%;
  border-color: rgba(45, 127, 255, 0.2);
  animation-direction: reverse;
  animation-duration: 8s;
}

.solutions-orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  background: var(--seralk-blue);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(45, 127, 255, 0.6);
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(45, 127, 255, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 40px rgba(45, 127, 255, 0.8); transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   Formulaire de contact
   -------------------------------------------------------------------------- */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--seralk-muted);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #fff;
  background: rgba(11, 11, 13, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 0.625rem;
  outline: none;
  transition: all 0.3s var(--transition-smooth);
}

.form-input::placeholder {
  color: rgba(156, 163, 175, 0.5);
}

.form-input:focus {
  border-color: rgba(45, 127, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 127, 255, 0.1);
}

.form-input.form-input--error {
  border-color: #ef4444;
}

.form-input.form-input--success {
  border-color: #22c55e;
}

/* --------------------------------------------------------------------------
   Scroll Reveal — animations au défilement
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--transition-smooth),
    transform 0.8s var(--transition-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais échelonnés pour effet cascade */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Délais dynamiques via data-delay sur les cartes bento */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.15s; }
.reveal[data-delay="3"] { transition-delay: 0.2s; }
.reveal[data-delay="4"] { transition-delay: 0.25s; }
.reveal[data-delay="5"] { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Canvas particules — fond hero
   -------------------------------------------------------------------------- */
#particle-canvas {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Gradient de texte animé
   -------------------------------------------------------------------------- */
.text-gradient-animated {
  background: linear-gradient(270deg, #2d7fff, #5b9fff, #ffffff, #2d7fff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientPan 7s ease infinite;
}

@keyframes gradientPan {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* --------------------------------------------------------------------------
   Cursor typewriter
   -------------------------------------------------------------------------- */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--seralk-blue);
  vertical-align: middle;
  margin-left: 3px;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Grille de fond
   -------------------------------------------------------------------------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(45,127,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,127,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* --------------------------------------------------------------------------
   Orbes de fond (parallaxe)
   -------------------------------------------------------------------------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.orb--blue {
  background: radial-gradient(circle, rgba(45,127,255,0.14) 0%, transparent 70%);
}

.orb--purple {
  background: radial-gradient(circle, rgba(120,60,255,0.09) 0%, transparent 70%);
}

.orb--orange {
  background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   Barre de progression scroll
   -------------------------------------------------------------------------- */
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #2D7FFF, #5B9FFF);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(45,127,255,0.6);
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   Cursor glow
   -------------------------------------------------------------------------- */
#cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,127,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Terminal window
   -------------------------------------------------------------------------- */
.terminal-window {
  background: rgba(8, 9, 11, 0.92);
  border: 1px solid rgba(45,127,255,0.18);
  border-radius: 0.875rem;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  box-shadow: 0 0 40px rgba(45,127,255,0.1), 0 24px 48px rgba(0,0,0,0.5);
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  background: rgba(22, 24, 28, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.625rem;
  color: rgba(156,163,175,0.4);
  font-family: inherit;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.25rem 1.375rem;
  font-size: 0.78125rem;
  line-height: 1.8;
  color: #8b949e;
  min-height: 200px;
  max-height: 260px;
  overflow: hidden;
}

.terminal-scan {
  position: absolute;
  inset-x: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(45,127,255,0.12), transparent);
  animation: scanLine 5s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0%   { top: 0%; }
  100% { top: 100%; }
}

.terminal-prompt { color: #2D7FFF; }
.terminal-cmd    { color: #e2e8f0; }
.terminal-ok     { color: #34d399; }
.terminal-info   { color: rgba(196,200,208,0.6); }
.terminal-live   { color: #2D7FFF; font-weight: 600; }

/* --------------------------------------------------------------------------
   Tags flottants dans le hero
   -------------------------------------------------------------------------- */
@keyframes floatTag {
  0%, 100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
  50%       { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}

.floating-tag {
  position: absolute;
  padding: 0.3125rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  background: rgba(22, 24, 28, 0.85);
  border: 1px solid rgba(45,127,255,0.18);
  color: rgba(196,200,208,0.65);
  backdrop-filter: blur(10px);
  animation: floatTag var(--dur, 5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Marquee technos
   -------------------------------------------------------------------------- */
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

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

/* --------------------------------------------------------------------------
   Strip technos
   -------------------------------------------------------------------------- */
.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(156,163,175,0.35);
  transition: color 0.3s ease;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.tech-item:hover { color: rgba(156,163,175,0.75); }

.tech-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(45,127,255,0.4);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Section CTA finale
   -------------------------------------------------------------------------- */
.cta-finale {
  position: relative;
  border-radius: 1.5rem;
  padding: 5rem 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45,127,255,0.1), rgba(29,31,36,0.9), rgba(120,60,255,0.06));
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

.cta-finale::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--spin-angle, 0deg),
    rgba(45,127,255,0.4) 0%,
    transparent 20%,
    transparent 80%,
    rgba(45,127,255,0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@property --spin-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes spinBorder {
  to { --spin-angle: 360deg; }
}

.cta-finale { animation: spinBorder 8s linear infinite; }

/* --------------------------------------------------------------------------
   Glowing numbers
   -------------------------------------------------------------------------- */
@keyframes numGlow {
  0%, 100% { text-shadow: 0 0 15px rgba(45,127,255,0.35); }
  50%       { text-shadow: 0 0 30px rgba(45,127,255,0.65), 0 0 55px rgba(45,127,255,0.25); }
}

.metric-card__value {
  font-family: 'Space Grotesk', 'Orbitron', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.375rem;
  animation: numGlow 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Reveal directions
   -------------------------------------------------------------------------- */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* --------------------------------------------------------------------------
   Accessibilité — réduction des animations
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  #particle-canvas {
    display: none;
  }
}
