/* ============================================================
   ZEEPY PRO - DESIGN TOKENS v4 (PROPRIETARY)
   Bleu céleste sur dark · Geist (Apple-like) · futuriste signature
   ============================================================ */

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

:root {
  /* ---------- Couleurs : surfaces ---------- */
  --bg-page: #030712;
  --bg-card: #0B1220;
  --bg-elevated: #11192B;
  --bg-glass: rgba(11, 18, 32, 0.55);
  --bg-input: #0B1220;
  --bg-hover: #131C32;
  --bg-section: #060B17;

  /* ---------- Couleurs : brand ---------- */
  --primary: #4997D0;
  --primary-hover: #5BA8DF;
  --primary-active: #3B85BC;
  --primary-soft: rgba(73, 151, 208, 0.10);
  --primary-glow: rgba(73, 151, 208, 0.18);
  --primary-glow-strong: rgba(73, 151, 208, 0.35);

  /* ---------- Couleurs : accent ---------- */
  --accent-cool: #7DD3FC;     /* Cyan glacé : action, Coach Zee, signal cool */
  --accent-cool-soft: rgba(125, 211, 252, 0.15);
  --accent-warm: #F5A56F;     /* Orange tiède : action urgente (optionnel) */

  /* ---------- Couleurs : texte ---------- */
  --text-primary: #F5F7FA;
  --text-secondary: #E3EAF3;  /* quasi-blanc : descriptions lisibles sur mobile (retour Yanis) */
  --text-muted: #B4C0D2;      /* remonté : plus de gris faible (retour Yanis) */
  --text-tertiary: #B4C0D2;   /* alias utilisé par certaines pages */
  --text-on-primary: #030712;  /* Texte sur fond bleu céleste */

  /* ---------- Couleurs : bordures ---------- */
  --border-subtle: rgba(73, 151, 208, 0.10);
  --border-default: rgba(73, 151, 208, 0.18);
  --border-strong: rgba(73, 151, 208, 0.35);

  /* Alias legacy (pages pro/inspirations/campaigns) : tokens jamais définis ->
     ils résolvaient dans le vide. On les mappe sur les tokens canoniques. */
  --surface-1: var(--bg-card);
  --border: var(--border-subtle);

  /* ---------- Couleurs : sémantiques (palette douce v4) ---------- */
  --success: #34D399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --success-glow: rgba(52, 211, 153, 0.4);
  --warning: #FBBF24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --error: #F87171;
  --error-soft: rgba(248, 113, 113, 0.12);
  --error-glow: rgba(248, 113, 113, 0.3);
  --info: #7DD3FC;

  /* ---------- Gradients signature ---------- */
  --hero-glow: radial-gradient(ellipse 800px 600px at 30% 20%,
    rgba(73, 151, 208, 0.25) 0%,
    rgba(125, 211, 252, 0.10) 30%,
    transparent 70%);
  --hero-glow-2: radial-gradient(ellipse 600px 500px at 70% 80%,
    rgba(125, 211, 252, 0.15) 0%,
    transparent 60%);
  --cta-gradient: linear-gradient(135deg, #4997D0 0%, #5BA8DF 100%);
  --cta-gradient-bold: linear-gradient(135deg, #4997D0 0%, #7DD3FC 100%);
  --score-gradient: conic-gradient(from 180deg, #4997D0, #7DD3FC, #4997D0);
  --card-shimmer: linear-gradient(135deg,
    rgba(73, 151, 208, 0.05) 0%,
    transparent 50%);

  /* ---------- Typographie : Apple system d'abord puis Geist (Apple-like) ---------- */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Geist', system-ui, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'Geist Mono', Menlo, Monaco, monospace;

  /* ---------- HUD & ambiance futuriste ---------- */
  --star-white: rgba(255, 255, 255, 0.6);
  --hud-grid: rgba(73, 151, 208, 0.06);
  --scan-line: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.4), transparent);

  --fs-display-xl: 72px;
  --fs-display-lg: 56px;
  --fs-display-md: 40px;
  --fs-heading-lg: 28px;
  --fs-heading-md: 22px;
  --fs-heading-sm: 18px;
  --fs-body-lg: 17px;
  --fs-body-md: 14px;
  --fs-body-sm: 13px;
  --fs-overline: 11px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  --ls-tight: -0.02em;
  --ls-tighter: -0.03em;
  --ls-overline: 0.15em;

  /* ---------- Espacement (grille 8px) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;

  /* ---------- Layout ---------- */
  --container-max: 1280px;
  --container-app: 1440px;
  --content-narrow: 720px;
  --sidebar-width: 240px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;

  /* ---------- Border radius ---------- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* ---------- Ombres / glows (en dark, on utilise des glows colorés) ---------- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 32px rgba(73, 151, 208, 0.3);
  --glow-card: 0 0 48px rgba(73, 151, 208, 0.15);
  --glow-mockup: 0 24px 80px rgba(73, 151, 208, 0.25),
                 0 0 120px rgba(125, 211, 252, 0.15);

  /* ---------- Animations ---------- */
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1.0);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-dramatic: 800ms;
}

/* ============================================================
   RESET + BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHIE - utility classes
   ============================================================ */

.t-display-xl {
  font-size: var(--fs-display-xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
}

.t-display-lg {
  font-size: var(--fs-display-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.t-display-md {
  font-size: var(--fs-display-md);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}

.t-heading-lg {
  font-size: var(--fs-heading-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}

.t-heading-md {
  font-size: var(--fs-heading-md);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

.t-heading-sm {
  font-size: var(--fs-heading-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

.t-body-lg {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
}

.t-body-md {
  font-size: var(--fs-body-md);
  line-height: var(--lh-normal);
}

.t-body-sm {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
}

.t-overline {
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--primary);
}

.t-italic {
  font-style: italic;
}

.t-muted {
  color: var(--text-secondary);
}

.t-primary {
  color: var(--primary);
}

/* Pattern signature : mot accentué shimmer en couleur primaire (PAS d'italic) */
.t-accent {
  font-weight: inherit;
  background: linear-gradient(90deg,
    var(--primary) 0%,
    var(--accent-cool) 25%,
    #BEE7FF 50%,
    var(--accent-cool) 75%,
    var(--primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: t-accent-shimmer 4s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(73, 151, 208, 0.3));
}

@keyframes t-accent-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================================
   BOUTONS - pilule signature 90px radius
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-family: inherit;
  font-size: var(--fs-body-md);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Primary : fond bleu céleste avec finition futuriste */
.btn-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-on-primary);
  border: 1px solid var(--primary-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(73, 151, 208, 0.25),
    0 0 32px rgba(73, 151, 208, 0.15);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.btn-primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary-hover) 0%, var(--accent-cool) 100%);
  border-color: var(--accent-cool);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(73, 151, 208, 0.4),
    0 0 48px rgba(125, 211, 252, 0.3);
}

.btn-primary:hover::before { transform: translateX(100%); }

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

/* Primary inverse : fond blanc, texte noir */
.btn-light {
  background: var(--text-primary);
  color: var(--text-on-primary);
  border-color: var(--text-primary);
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Outline : transparent + border bleu céleste */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* Action : cyan glacé futuriste */
.btn-action {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, var(--accent-cool) 0%, #BEE7FF 100%);
  color: var(--text-on-primary);
  border: 1px solid #BEE7FF;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 16px rgba(125, 211, 252, 0.3),
    0 0 32px rgba(125, 211, 252, 0.2);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 28px rgba(125, 211, 252, 0.5),
    0 0 48px rgba(190, 231, 255, 0.4);
}

/* Ghost : juste du texte */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
  padding: 10px 16px;
}

.btn-ghost:hover {
  background: var(--bg-hover);
}

/* Tailles */
.btn-sm {
  padding: 10px 20px;
  font-size: var(--fs-body-sm);
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--fs-body-lg);
}

/* ============================================================
   CARDS - fond bg-card + border subtle + hover glow
   ============================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.card:hover {
  border-color: var(--border-default);
}

.card-glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(73, 151, 208, 0.18),
    rgba(125, 211, 252, 0.06) 30%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  z-index: 0;
}

.card-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    transparent 30%,
    rgba(73, 151, 208, 0.4) 50%,
    rgba(125, 211, 252, 0.6) 70%,
    transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  pointer-events: none;
  z-index: 0;
}

.card-glow:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 64px rgba(73, 151, 208, 0.18);
}

.card-glow:hover::before,
.card-glow:hover::after {
  opacity: 1;
}

.card-glow > * { position: relative; z-index: 1; }

.card-elevated {
  background: var(--bg-elevated);
  border-color: var(--border-default);
}

/* ============================================================
   BADGES + PILLS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.badge-primary {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--border-default);
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-error {
  background: var(--error-soft);
  color: var(--error);
}

.badge-action {
  background: var(--accent-cool-soft);
  color: var(--accent-cool);
}

/* Pill avec dégradé pour "Le plus choisi" */
.pill-popular {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: var(--cta-gradient-bold);
  color: var(--text-on-primary);
  border-radius: var(--radius-pill);
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   INPUTS
   ============================================================ */

.input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-family: inherit;
  font-size: var(--fs-body-lg);
  color: var(--text-primary);
  transition: all 0.2s var(--ease-smooth);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2);
}

.input::placeholder {
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}

.input:hover:not(:focus) {
  border-color: var(--border-strong);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.1),
    0 0 0 4px var(--primary-soft),
    0 0 24px var(--primary-glow);
}

/* Input + bouton inline (hero email capture) */
.input-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 24px;
  gap: var(--space-3);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.input-group .input {
  background: transparent;
  border: none;
  padding: 8px 0;
  flex: 1;
  min-width: 220px;
}

.input-group .input:focus {
  box-shadow: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-10); }
}

.container-app {
  max-width: var(--container-app);
}

.section {
  padding: var(--space-24) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.text-center { text-align: center; }
.relative { position: relative; }

/* ============================================================
   UTILITY
   ============================================================ */

.glow-bg {
  position: relative;
}

.glow-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-glow), var(--hero-glow-2);
  pointer-events: none;
  z-index: 0;
}

.glow-bg > * {
  position: relative;
  z-index: 1;
}

/* Scrollbar custom */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* Selection */
::selection {
  background: var(--primary-soft);
  color: var(--text-primary);
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Animations utility */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 24px rgba(73, 151, 208, 0.3); }
  50% { box-shadow: 0 0 48px rgba(73, 151, 208, 0.5); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(40px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-fadeInUp { animation: fadeInUp 0.6s var(--ease-out-expo) both; }

/* Pulse glow pour images (filter drop-shadow qui suit l'alpha, pas de carré) */
@keyframes pulse-glow-img {
  0%, 100% { filter: drop-shadow(0 0 12px var(--primary-glow)); }
  50% { filter: drop-shadow(0 0 28px var(--accent-cool)) drop-shadow(0 0 8px var(--primary)); }
}

@keyframes pulse-glow-img-success {
  0%, 100% { filter: drop-shadow(0 0 12px var(--success-glow)); }
  50% { filter: drop-shadow(0 0 28px var(--success)) drop-shadow(0 0 8px var(--success)); }
}

.pulse-glow-img { animation: pulse-glow-img 3s ease-in-out infinite; }
.pulse-glow-img-success { animation: pulse-glow-img-success 3s ease-in-out infinite; }

/* ============================================================
   UTILITIES FUTURISTES (v3)
   ============================================================ */

/* Texte avec dégradé shimmer iridescent */
.text-shimmer {
  background: linear-gradient(90deg,
    var(--primary) 0%,
    var(--accent-cool) 50%,
    var(--primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-slide 3s linear infinite;
}

@keyframes shimmer-slide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Glow text (pour le logo, titres hero) */
.text-glow {
  text-shadow:
    0 0 10px rgba(73, 151, 208, 0.5),
    0 0 20px rgba(73, 151, 208, 0.3),
    0 0 40px rgba(125, 211, 252, 0.2);
}

/* Glass panel LIQUIDE : shimmer diagonal + iridescent edge + halo iridescent au hover */
.glass-panel {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(125, 211, 252, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(73, 151, 208, 0.06), transparent 60%),
    linear-gradient(135deg, rgba(125, 211, 252, 0.04) 0%, transparent 50%),
    var(--bg-glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 48px var(--primary-glow);
  isolation: isolate;
  overflow: hidden;
}

/* Iridescent edge (bordure dégradé subtil) */
.glass-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(125, 211, 252, 0.6) 0%,
    rgba(73, 151, 208, 0.3) 30%,
    transparent 50%,
    rgba(73, 151, 208, 0.2) 80%,
    rgba(125, 211, 252, 0.5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* Shimmer liquide : éclair diagonal qui passe en boucle */
.glass-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(125, 211, 252, 0.15) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 75%);
  pointer-events: none;
  z-index: 1;
  animation: glass-liquid-shimmer 7s ease-in-out infinite;
  transform: skewX(-20deg);
}

@keyframes glass-liquid-shimmer {
  0% { left: -75%; opacity: 0; }
  15% { opacity: 1; }
  50% { left: 125%; opacity: 1; }
  55%, 100% { left: 125%; opacity: 0; }
}

/* Variante liquid+ avec overlay iridescent (subtil rainbow shift au hover) */
.glass-panel-liquid {
  /* hérite tous les styles .glass-panel via cascade - appliquer les deux classes ensemble */
  position: relative;
}

.glass-panel-liquid:hover::after {
  animation: glass-liquid-shimmer 2s ease-out infinite;
}

/* Subtle aurora overlay qui se reveille au hover */
.glass-panel-liquid > .glass-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(125, 211, 252, 0.12), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(73, 151, 208, 0.10), transparent 40%);
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s var(--ease-smooth);
  animation: aurora-drift 12s ease-in-out infinite;
}

@keyframes aurora-drift {
  0%, 100% { background-position: 0% 0%, 100% 100%; }
  50% { background-position: 100% 50%, 0% 50%; }
}

.glass-panel-liquid:hover > .glass-aurora { opacity: 1; }

/* Scan line qui passe sur la card au mount */
.scan-line-effect {
  position: relative;
  overflow: hidden;
}

.scan-line-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--scan-line);
  animation: scan-pass 2s var(--ease-out-expo) forwards;
  pointer-events: none;
}

@keyframes scan-pass {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Tabular numbers (pour KPI, chiffres dans tables) */
.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* HUD gridlines background pour les cards charts */
.hud-grid-bg {
  background-image:
    linear-gradient(var(--hud-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Stars background (subtle, pour landing/dashboard) */
.stars-bg {
  position: relative;
  isolation: isolate;
}

.stars-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 25% 20%, var(--star-white), transparent),
    radial-gradient(1px 1px at 60% 35%, var(--star-white), transparent),
    radial-gradient(1.5px 1.5px at 80% 10%, var(--star-white), transparent),
    radial-gradient(1px 1px at 15% 60%, var(--star-white), transparent),
    radial-gradient(1px 1px at 45% 80%, var(--star-white), transparent),
    radial-gradient(1.5px 1.5px at 75% 65%, var(--star-white), transparent),
    radial-gradient(1px 1px at 90% 90%, var(--star-white), transparent),
    radial-gradient(1px 1px at 10% 90%, var(--star-white), transparent),
    radial-gradient(1px 1px at 30% 45%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 95% 50%, rgba(255,255,255,0.5), transparent);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

[data-theme="light"] .stars-bg::before {
  opacity: 0;
}

/* Star twinkle animation pour quelques étoiles spécifiques */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.star-twinkle {
  animation: twinkle 4s ease-in-out infinite;
}

/* Glow pulse plus subtil pour CTA primaires */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(73, 151, 208, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(73, 151, 208, 0); }
}

.cta-pulse {
  animation: cta-pulse 2.5s ease-out infinite;
}

/* Stagger children animation (utility) */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out-expo) both;
}

.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 80ms; }
.stagger-children > *:nth-child(3) { animation-delay: 160ms; }
.stagger-children > *:nth-child(4) { animation-delay: 240ms; }
.stagger-children > *:nth-child(5) { animation-delay: 320ms; }
.stagger-children > *:nth-child(6) { animation-delay: 400ms; }
.stagger-children > *:nth-child(7) { animation-delay: 480ms; }
.stagger-children > *:nth-child(8) { animation-delay: 560ms; }
.stagger-children > *:nth-child(n+9) { animation-delay: 640ms; }

/* Cursor blink type terminal (pour input focus) */
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.cursor-blink::after {
  content: '|';
  color: var(--primary);
  animation: cursor-blink 1s step-end infinite;
  margin-left: 2px;
}

/* ============================================================
   SIGNATURES FUTURISTES PROPRIÉTAIRES v4
   ============================================================ */

/* Aurora border : gradient animé qui tourne autour de la card (signature card featured) */
@property --aurora-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes aurora-rotate {
  to { --aurora-angle: 360deg; }
}

.aurora-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  isolation: isolate;
}

.aurora-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--aurora-angle),
    transparent 0deg,
    var(--primary) 60deg,
    var(--accent-cool) 120deg,
    transparent 180deg,
    transparent 270deg,
    var(--primary) 330deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: aurora-rotate 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.aurora-border > * { position: relative; z-index: 1; }

/* Cursor-follow glow : variable CSS mise à jour par JS via mouvement souris */
.cursor-glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cursor-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(73, 151, 208, 0.10),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  pointer-events: none;
  z-index: 0;
}

.cursor-glow:hover::before { opacity: 1; }

.cursor-glow > * { position: relative; z-index: 1; }

/* Iridescent edge : bordure dégradé subtile (glass panel premium) */
.iridescent-edge {
  position: relative;
  border-radius: var(--radius-lg);
  background-clip: padding-box;
}

.iridescent-edge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(125, 211, 252, 0.4) 0%,
    rgba(73, 151, 208, 0.2) 30%,
    transparent 50%,
    rgba(125, 211, 252, 0.3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Glow halo très fort (gauge, KPI featured, hero CTA) */
.glow-strong {
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 0 24px rgba(73, 151, 208, 0.4),
    0 0 64px rgba(73, 151, 208, 0.25),
    0 0 120px rgba(125, 211, 252, 0.15);
}

/* Glow text intense (pour chiffres KPI premium) */
.text-glow-strong {
  color: var(--accent-cool);
  text-shadow:
    0 0 10px var(--primary-glow-strong),
    0 0 24px rgba(125, 211, 252, 0.4),
    0 0 48px rgba(73, 151, 208, 0.25);
}

/* Line glow pour les charts (drop-shadow CSS) */
.line-glow {
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

/* Counter (placeholder, animé par JS Z.counter) */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* Beveled button : highlight top + shadow bottom (effet 3D subtil) */
.btn-beveled {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 24px var(--primary-glow);
}

.btn-beveled:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 32px var(--primary-glow-strong);
}

/* Dot pulse (point qui pulse, pour fin de sparkline ou indicateur live) */
@keyframes dot-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--primary-glow-strong);
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
}

.dot-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cool);
  box-shadow: 0 0 12px var(--accent-cool);
  animation: dot-pulse 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   MODE CLAIR RETIRÉ : le sombre est le seul thème. On masque le
   bouton de bascule de thème partout (topbars) et le sélecteur
   d'apparence des paramètres, s'ils traînent encore dans le HTML.
   ============================================================ */
.theme-toggle { display: none !important; }

/* Préférence "Réduire les animations" (Paramètres > Préférences) : coupe les
   animations/transitions à la demande, comme prefers-reduced-motion mais piloté
   par l'user. Appliqué très tôt via theme.js (attribut sur <html>). */
:root[data-reduce-motion="1"] *,
:root[data-reduce-motion="1"] *::before,
:root[data-reduce-motion="1"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
