/* ============================================================================
   VNCT Design System — vnct-design-system.css
   Version : 1.2.0
   Date    : 2026-04-21

   v1.2.0 (2026-04-21) : ajout du composant `.vnct-progress-bar` (rail + fill
   gradient accent-soft/accent avec glow neon qui s'intensifie pendant le
   mouvement). Inclut une variante `.vnct-progress-bar--floating` pour le
   reading progress (pilule fixed centree en bas, au-dessus du FAB).
   Extraction du pattern eprouve sur Ostra live (bars de vote) en composant
   reutilisable. A propager a tous les services.

   v1.1.1 (2026-04-18) : ajout --text-4xl (49px) et --text-5xl (61px) pour
   completer l'echelle typo. Progression geometrique ratio 1.25 preservee.
   Raison : Ostra mode focus utilisait var(--text-5xl) inexistant, clamp
   invalide, question affichee a la taille default h2 (plus petite que les
   options du sondage — contre-intuitif). A propager a tous les services.

   Ce fichier est la SOURCE DE VÉRITÉ pour tout le styling VNCT.
   NE PAS modifier les valeurs ici sans mettre à jour la DA.
   NE PAS ajouter de styles spécifiques à un service dans ce fichier.

   Structure :
   1. Reset & Base
   2. Variables — Accent & Neon
   3. Variables — Thème sombre (défaut)
   4. Variables — Thème clair
   5. Variables — Typographie
   6. Variables — Spacing
   7. Variables — Border radius
   8. Variables — Animations
   9. Typographie — Règles de base
   10. Composants — Tiles
   11. Composants — Boutons
   12. Composants — Inputs
   13. Composants — Cards
   13b. Composants — Login (introduit en v1.1.0)
   14. Composants — Modals
   15. Composants — Toasts
   16. Composants — FAB
   17. Composants — Navigation desktop
   18. Composants — Navigation mobile
   19. Composants — Badge version
   20. Utilitaires — Glassmorphism
   21. Utilitaires — Neon hover
   22. Utilitaires — Text
   23. Animations — Keyframes
   24. Animations — Transitions de page
   25. Composants — Footer
   26. Accessibilité
   27. Composants — Progress Bar (introduit en v1.2.0)
   ============================================================================ */

/* ============================================================================
   1. RESET & BASE
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--duration-normal) ease,
              color var(--duration-normal) ease;
  min-height: 100vh;
}

/* Disable iOS tap highlight on all interactive elements */
a, button, [role="button"], input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Safety-net : aucun element stylise en bouton ne doit etre souligne,
   meme si c'est un <a> (auth Discord, CTA, landing-btn, vnct-btn, etc.).
   Cible tout lien avec une classe contenant "-btn" ou "btn--",
   plus le composant standard .vnct-btn.
   Voir VNCT-Design-System-DA.md section "Boutons et liens stylises". */
a.vnct-btn,
a.vnct-btn:hover,
a[class*="-btn"],
a[class*="-btn"]:hover,
a[class*="btn--"],
a[class*="btn--"]:hover {
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ============================================================================
   2. VARIABLES — ACCENT & NEON
   Couleur d'accent FIXE : Rose. PAS de personnalisation.
   data-accent="rose" est le seul preset. Ne JAMAIS ajouter d'autres presets.
   Tout le reste est dérivé automatiquement de --accent-h, --accent-s, --accent-l.
   ============================================================================ */

:root {
  /* --- Accent (fixé : Rose) --- */
  --accent-h: 330;
  --accent-s: 90%;
  --accent-l: 60%;
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-soft: hsl(var(--accent-h), var(--accent-s), 80%);
  --accent-glow: hsl(var(--accent-h), var(--accent-s), 65%);
  --accent-dim: hsl(var(--accent-h), var(--accent-s), 35%);

  /* --- Accent backgrounds pré-calculés --- */
  --accent-bg-subtle: var(--accent-bg-subtle);
  --accent-bg-light: var(--accent-bg-light);
  --accent-bg-medium: var(--accent-bg-medium);

  /* --- Neon glow (dérivé de l'accent) --- */
  --neon-shadow-sm: 0 0 6px hsla(var(--accent-h), var(--accent-s), 60%, 0.4);
  --neon-shadow-md: 0 0 12px hsla(var(--accent-h), var(--accent-s), 60%, 0.5),
                    0 0 24px hsla(var(--accent-h), var(--accent-s), 60%, 0.2);
  --neon-shadow-lg: 0 0 16px hsla(var(--accent-h), var(--accent-s), 60%, 0.6),
                    0 0 32px hsla(var(--accent-h), var(--accent-s), 60%, 0.3),
                    0 0 64px hsla(var(--accent-h), var(--accent-s), 60%, 0.1);
}

/* --- Preset couleur unique : Rose (fixé, pas de personnalisation) --- */
[data-accent="rose"] {
  --accent-h: 330;
  --accent-s: 90%;
  --accent-l: 60%;
}

/* ============================================================================
   3. VARIABLES — THÈME SOMBRE (défaut)
   ============================================================================ */

[data-theme="dark"],
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a28;
  --bg-glass: rgba(18, 18, 26, 0.7);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b5;
  --text-muted: #606075;

  --border-default: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-accent: var(--accent);

  --surface-hover: rgba(255, 255, 255, 0.05);
  --surface-active: rgba(255, 255, 255, 0.08);

  --danger: #f04050;
  --success: #30d060;
  --warning: #f0a030;
  --info: var(--accent);

  --shadow-elevation-1: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-elevation-2: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-elevation-3: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* ============================================================================
   4. VARIABLES — THÈME CLAIR
   ============================================================================ */

[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8e8f0;
  --bg-glass: rgba(255, 255, 255, 0.75);

  --text-primary: #10101a;
  --text-secondary: #505068;
  --text-muted: #9090a5;

  --border-default: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --border-accent: var(--accent);

  --surface-hover: rgba(0, 0, 0, 0.04);
  --surface-active: rgba(0, 0, 0, 0.07);

  --danger: #d03040;
  --success: #20a050;
  --warning: #d08020;
  --info: var(--accent);

  --shadow-elevation-1: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-elevation-2: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-elevation-3: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Neon glow plus subtil en mode clair */
  --neon-shadow-sm: 0 0 4px hsla(var(--accent-h), var(--accent-s), 50%, 0.25);
  --neon-shadow-md: 0 0 8px hsla(var(--accent-h), var(--accent-s), 50%, 0.3),
                    0 0 16px hsla(var(--accent-h), var(--accent-s), 50%, 0.1);
  --neon-shadow-lg: 0 0 12px hsla(var(--accent-h), var(--accent-s), 50%, 0.35),
                    0 0 24px hsla(var(--accent-h), var(--accent-s), 50%, 0.15);
}

/* Accent cyan en mode clair — override le rose de [data-accent="rose"] */
[data-theme="light"][data-accent="rose"] {
  --accent-h: 185;
  --accent-s: 80%;
  --accent-l: 45%;
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-soft: hsl(var(--accent-h), var(--accent-s), 75%);
  --accent-glow: hsl(var(--accent-h), var(--accent-s), 50%);
  --accent-dim: hsl(var(--accent-h), var(--accent-s), 25%);
}

/* ============================================================================
   5. VARIABLES — TYPOGRAPHIE
   Police : Inter — Échelle : Major Third (1.25)
   ============================================================================ */

:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.563rem;    /* 25px */
  --text-2xl: 1.953rem;   /* 31px */
  --text-3xl: 2.441rem;   /* 39px */
  --text-4xl: 3.052rem;   /* 49px */
  --text-5xl: 3.815rem;   /* 61px */

  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
}

/* ============================================================================
   6. VARIABLES — SPACING
   Base 4px
   ============================================================================ */

:root {
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
}

/* ============================================================================
   7. VARIABLES — BORDER RADIUS
   ============================================================================ */

:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ============================================================================
   8. VARIABLES — ANIMATIONS
   ============================================================================ */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-page: 350ms;
}

/* ============================================================================
   9. TYPOGRAPHIE — RÈGLES DE BASE
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-3xl); font-weight: var(--font-bold); }
h2 { font-size: var(--text-2xl); font-weight: var(--font-bold); }
h3 { font-size: var(--text-xl);  font-weight: var(--font-semibold); }
h4 { font-size: var(--text-lg);  font-weight: var(--font-medium); }

p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

small, .vnct-text-sm {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.vnct-text-xs {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

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

.vnct-text-accent {
  color: var(--accent);
}

/* ============================================================================
   10. COMPOSANTS — TILES
   Unité de base de navigation. Inspirées Xbox + Windows Phone.
   Utilisées sur la landing page Atlas et dans les services.
   ============================================================================ */

.vnct-tile {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none !important;
  display: block;
  color: var(--text-primary);
}

.vnct-tile__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-bg-light);
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.3s var(--ease-smooth);
}

/* Pas de changement de fond sur l'icône au hover — le glow de la tile suffit */

.vnct-tile__icon img,
.vnct-tile__icon svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.vnct-tile__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.vnct-tile__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
}

.vnct-tile__badge {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--font-medium);
}

/* --- Status indicator (position absolue, haut droite de la tile) --- */
.vnct-tile__status {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.vnct-tile__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vnct-tile__status-text {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

/* En ligne — vert */
.vnct-tile__status[data-status="online"] .vnct-tile__status-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e88, 0 0 12px #22c55e44;
  animation: vnct-status-pulse 2s ease-in-out infinite;
}
.vnct-tile__status[data-status="online"] .vnct-tile__status-text {
  color: #22c55e;
}

/* En maintenance — jaune/orange */
.vnct-tile__status[data-status="maintenance"] .vnct-tile__status-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b88, 0 0 12px #f59e0b44;
  animation: vnct-status-pulse 2s ease-in-out infinite;
}
.vnct-tile__status[data-status="maintenance"] .vnct-tile__status-text {
  color: #f59e0b;
}

/* Hors ligne — rouge */
.vnct-tile__status[data-status="offline"] .vnct-tile__status-dot {
  background: #ef4444;
  box-shadow: 0 0 6px #ef444488, 0 0 12px #ef444444;
}
.vnct-tile__status[data-status="offline"] .vnct-tile__status-text {
  color: #ef4444;
}

@keyframes vnct-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- Desktop : hover néon Xbox style --- */
@media (min-width: 769px) {
  .vnct-tile:hover {
    border-color: var(--accent);
    box-shadow: var(--neon-shadow-md);
    transform: translateY(-2px);
    background: var(--surface-hover);
    text-decoration: none;
  }

  .vnct-tile:active {
    transform: translateY(0);
    box-shadow: var(--neon-shadow-sm);
  }

  /* Bordure néon animée (pour tiles importantes) */
  .vnct-tile--glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
      135deg,
      var(--accent) 0%,
      transparent 50%,
      var(--accent) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1.5px;
  }

  .vnct-tile--glow:hover::before {
    opacity: 1;
  }
}

/* --- Mobile : animations style Windows Phone --- */
@media (max-width: 768px) {
  .vnct-tile {
    border-radius: var(--radius-md);
    padding: var(--space-5);
  }

  .vnct-tile:active {
    transform: scale(0.97);
    background: var(--surface-active);
  }
}

/* ============================================================================
   11. COMPOSANTS — BOUTONS
   3 variantes : primary, secondary, ghost
   3 tailles : sm, (défaut), lg
   ============================================================================ */

.vnct-btn {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 300ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none !important;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.vnct-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — fond accent */
.vnct-btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

@media (min-width: 769px) {
  .vnct-btn--primary:hover {
    box-shadow: var(--neon-shadow-md);
    filter: brightness(1.1);
  }
}

.vnct-btn--primary:active {
  filter: brightness(0.95);
  transform: scale(0.96);
}

/* Secondary — contour accent */
.vnct-btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 769px) {
  .vnct-btn--secondary:hover {
    background: var(--accent-bg-light);
    box-shadow: var(--neon-shadow-sm);
  }
}

.vnct-btn--secondary:active {
  background: var(--accent-bg-medium);
  transform: scale(0.96);
}

/* Ghost — minimal */
.vnct-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

@media (min-width: 769px) {
  .vnct-btn--ghost:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
  }
}

.vnct-btn--ghost:active {
  background: var(--surface-active);
  transform: scale(0.96);
}

/* Danger */
.vnct-btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

@media (min-width: 769px) {
  .vnct-btn--danger:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 12px rgba(240, 64, 80, 0.4);
  }
}

.vnct-btn--danger:active {
  filter: brightness(0.95);
  transform: scale(0.96);
}

/* Tailles */
.vnct-btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.vnct-btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Touch targets mobile */
@media (max-width: 768px) {
  .vnct-btn {
    min-height: 44px;
    padding: var(--space-3) var(--space-6);
  }
}

/* ============================================================================
   12. COMPOSANTS — INPUTS
   ============================================================================ */

.vnct-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  display: block;
}

.vnct-input {
  font-family: var(--font-family);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-fast) ease;
  width: 100%;
  line-height: var(--leading-normal);
}

.vnct-input::placeholder {
  color: var(--text-muted);
}

.vnct-input:focus {
  border-color: var(--accent);
  box-shadow: var(--neon-shadow-sm);
}

@media (min-width: 769px) {
  .vnct-input:hover:not(:focus) {
    border-color: var(--border-hover);
  }
}

.vnct-input--error {
  border-color: var(--danger);
}

.vnct-input--error:focus {
  box-shadow: 0 0 6px rgba(240, 64, 80, 0.3);
}

.vnct-input-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.vnct-input-hint--error {
  color: var(--danger);
}

/* Textarea */
.vnct-textarea {
  font-family: var(--font-family);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-fast) ease;
  width: 100%;
  min-height: 100px;
  resize: vertical;
  line-height: var(--leading-normal);
}

.vnct-textarea::placeholder {
  color: var(--text-muted);
}

.vnct-textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--neon-shadow-sm);
}

/* Select */
.vnct-select {
  font-family: var(--font-family);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  padding-right: var(--space-10);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-fast) ease;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
}

.vnct-select:focus {
  border-color: var(--accent);
  box-shadow: var(--neon-shadow-sm);
}

/* Touch targets mobile */
@media (max-width: 768px) {
  .vnct-input,
  .vnct-textarea,
  .vnct-select {
    min-height: 44px;
    font-size: 16px; /* Empêche le zoom iOS */
  }
}

/* ============================================================================
   13. COMPOSANTS — CARDS
   ============================================================================ */

.vnct-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--duration-fast) ease;
}

@media (min-width: 769px) {
  .vnct-card:hover {
    border-color: var(--border-hover);
  }
}

.vnct-card__header {
  margin-bottom: var(--space-4);
}

.vnct-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.vnct-card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.vnct-card__body {
  font-size: var(--text-base);
  color: var(--text-primary);
}

.vnct-card__footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Card interactive (cliquable) */
.vnct-card--interactive {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

@media (min-width: 769px) {
  .vnct-card--interactive:hover {
    border-color: var(--accent);
    box-shadow: var(--neon-shadow-sm);
    text-decoration: none;
  }
}

@media (max-width: 768px) {
  .vnct-card--interactive:active {
    background: var(--surface-active);
    transform: scale(0.97);
  }
}

/* ============================================================================
   13b. COMPOSANTS — LOGIN
   Pattern standardisé pour les écrans d'authentification.

   Deux usages :
   - Mode route dédiée (ex. /admin/login) : <div class="vnct-login">
   - Mode overlay in-page (ex. Nexus, DevPortal) : <div class="vnct-login vnct-login--overlay">

   Structure HTML attendue :
     <div class="vnct-login">
       <div class="vnct-login__card">
         <div class="vnct-login__header">
           <span class="vnct-login__logo">VNCT</span>
           <h1 class="vnct-login__title">NomDuService</h1>
           <p class="vnct-login__subtitle">Authentification requise</p>
         </div>
         <form class="vnct-login__form">
           <input class="vnct-input" ...>
           <button class="vnct-btn vnct-btn--primary vnct-login__btn">Se connecter</button>
           <p class="vnct-login__error"></p>
         </form>
         <p class="vnct-login__footer">Service privé — Venacity</p>
       </div>
     </div>
   ============================================================================ */

.vnct-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

/* Modifier : overlay fullscreen par-dessus l'app (ex. Nexus, DevPortal) */
.vnct-login--overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
}

.vnct-login__card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: center;
}

.vnct-login__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.vnct-login__logo {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.vnct-login__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.vnct-login__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.vnct-login__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.vnct-login__btn {
  width: 100%;
  height: 44px;
}

.vnct-login__error {
  color: var(--danger);
  font-size: var(--text-sm);
  min-height: 1.2em;
  margin: 0;
}

.vnct-login__footer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================================
   14. COMPOSANTS — MODALS
   Desktop : centrée avec neon border
   Mobile  : bottom sheet pleine largeur
   ============================================================================ */

.vnct-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation-name: vnct-fade-in;
  animation-duration: var(--duration-fast);
  animation-timing-function: ease;
}

.vnct-modal-overlay[aria-hidden="true"],
.vnct-modal-overlay.vnct-modal-overlay--closing {
  animation-name: vnct-fade-out;
  animation-duration: var(--duration-normal);
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

/* Fermeture : la modal elle-même se réduit */
.vnct-modal-overlay--closing .vnct-modal {
  animation-name: vnct-scale-out;
  animation-duration: var(--duration-normal);
  animation-timing-function: var(--ease-smooth);
  animation-fill-mode: forwards;
}

.vnct-modal {
  background: var(--bg-secondary);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation-name: vnct-scale-in;
  animation-duration: 450ms;
  animation-timing-function: var(--ease-spring);
  box-shadow: var(--neon-shadow-lg);
}

.vnct-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.vnct-modal__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

.vnct-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  font-size: var(--text-lg);
}

.vnct-modal__close:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.vnct-modal__body {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

.vnct-modal__footer {
  margin-top: var(--space-6);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* Desktop : neon border (hérité du .vnct-modal de base) */

/* Mobile : modal centrée avec marges (conserve les arrondis et le glow) */
@media (max-width: 768px) {
  .vnct-modal-overlay {
    align-items: center;
    padding: var(--space-4);
  }

  .vnct-modal {
    width: 90%;
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-xl);
    animation-name: vnct-scale-in;
    animation-duration: 450ms;
    animation-timing-function: var(--ease-spring);
    padding: var(--space-6);
    font-size: var(--text-sm);
  }

  .vnct-modal__title {
    font-size: var(--text-lg);
  }

  .vnct-modal__body {
    font-size: var(--text-sm);
  }

  .vnct-modal__body h4 {
    font-size: var(--text-base);
  }

  .vnct-modal__body p {
    font-size: var(--text-sm);
  }
}

/* ============================================================================
   15. COMPOSANTS — TOASTS
   Desktop : top-right
   Mobile  : bottom-center pleine largeur
   ============================================================================ */

.vnct-toast-container {
  position: fixed;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

/* Desktop : top right */
@media (min-width: 769px) {
  .vnct-toast-container {
    top: var(--space-6);
    right: var(--space-6);
    max-width: 400px;
  }
}

/* Mobile : bottom center */
@media (max-width: 768px) {
  .vnct-toast-container {
    bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
    left: var(--space-4);
    right: var(--space-4);
  }
}

.vnct-toast {
  font-family: var(--font-family);
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: var(--shadow-elevation-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  pointer-events: auto;
}

/* Animations d'entrée selon le support */
@media (min-width: 769px) {
  .vnct-toast {
    animation-name: vnct-slide-in-right;
    animation-duration: 0.3s;
    animation-timing-function: var(--ease-out-expo);
  }
}

@media (max-width: 768px) {
  .vnct-toast {
    animation-name: vnct-slide-up;
    animation-duration: 0.3s;
    animation-timing-function: var(--ease-out-expo);
  }
}

.vnct-toast--closing {
  animation-name: vnct-fade-out;
  animation-duration: var(--duration-fast);
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

/* Variantes par type — barre latérale colorée */
.vnct-toast--success { border-left: 3px solid var(--success); }
.vnct-toast--error   { border-left: 3px solid var(--danger); }
.vnct-toast--warning { border-left: 3px solid var(--warning); }
.vnct-toast--info    { border-left: 3px solid var(--accent); }

.vnct-toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.vnct-toast__content {
  flex: 1;
  min-width: 0;
}

.vnct-toast__title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.vnct-toast__message {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.vnct-toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease;
}

.vnct-toast__close:hover {
  color: var(--text-primary);
}

/* ============================================================================
   16. COMPOSANTS — FAB (Floating Action Button)
   Bouton flottant avec menu Késako / Bug Report / Suggestion
   ============================================================================ */

.vnct-fab {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-6);
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neon-shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@media (min-width: 769px) {
  .vnct-fab:hover {
    transform: scale(1.08);
    box-shadow: var(--neon-shadow-lg);
  }
}

.vnct-fab:active {
  transform: scale(0.95);
}

.vnct-fab--open {
  transform: rotate(45deg);
}

@media (min-width: 769px) {
  .vnct-fab--open:hover {
    transform: rotate(45deg) scale(1.08);
  }
}

/* Menu déplié */
.vnct-fab-menu {
  position: fixed;
  bottom: calc(56px + var(--space-6));
  right: var(--space-6);
  z-index: 899;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  animation-name: vnct-scale-in;
  animation-duration: var(--duration-fast);
  animation-timing-function: var(--ease-spring);
}

.vnct-fab-menu[aria-hidden="true"] {
  display: none;
}

/* Animation de fermeture */
.vnct-fab-menu--closing {
  animation-name: vnct-fab-menu-out;
  animation-duration: 200ms;
  animation-timing-function: var(--ease-smooth);
  animation-fill-mode: forwards;
}

.vnct-fab-menu--closing .vnct-fab-menu__item {
  animation: vnct-fab-item-out 150ms ease forwards;
}

.vnct-fab-menu--closing .vnct-fab-menu__item:nth-child(3) { animation-delay: 0s; }
.vnct-fab-menu--closing .vnct-fab-menu__item:nth-child(2) { animation-delay: 0.04s; }
.vnct-fab-menu--closing .vnct-fab-menu__item:nth-child(1) { animation-delay: 0.08s; }

@keyframes vnct-fab-menu-out {
  to { opacity: 0; transform: scale(0.95); }
}

@keyframes vnct-fab-item-out {
  to { opacity: 0; transform: translateY(8px) scale(0.95); }
}

.vnct-fab-menu__item {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  animation-name: vnct-fab-item-in;
  animation-duration: var(--duration-normal);
  animation-timing-function: var(--ease-spring);
  animation-fill-mode: backwards;
}

/* Staggered entrance — items apparaissent du bas vers le haut */
.vnct-fab-menu__item:nth-child(1) { animation-delay: 0.06s; }
.vnct-fab-menu__item:nth-child(2) { animation-delay: 0.12s; }
.vnct-fab-menu__item:nth-child(3) { animation-delay: 0.18s; }

@keyframes vnct-fab-item-in {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vnct-fab-menu__icon {
  font-size: var(--text-base);
  line-height: 1;
  flex-shrink: 0;
}

/* Light mode : items FAB plus contrastés */
[data-theme="light"] .vnct-fab-menu__item,
.light-ui .vnct-fab-menu__item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
}

@media (min-width: 769px) {
  .vnct-fab-menu__item:hover {
    border-color: var(--accent);
    box-shadow: var(--neon-shadow-sm);
  }
}

.vnct-fab-menu__item:active {
  background: var(--surface-active);
  transform: scale(0.96);
}

/* Mobile : safe area */
@media (max-width: 768px) {
  .vnct-fab {
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  }

  .vnct-fab-menu {
    bottom: calc(56px + var(--space-6) + env(safe-area-inset-bottom));
  }

  .vnct-fab-menu__item {
    min-height: 44px;
  }
}

/* FAB overlay (fond quand le menu est ouvert) */
.vnct-fab-overlay {
  position: fixed;
  inset: 0;
  z-index: 898;
  background: rgba(0, 0, 0, 0.3);
  animation-name: vnct-fade-in;
  animation-duration: var(--duration-normal);
  animation-timing-function: ease;
}

.vnct-fab-overlay[aria-hidden="true"] {
  display: none;
}

.vnct-fab-overlay--closing {
  animation-name: vnct-fade-out;
  animation-duration: var(--duration-normal);
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

/* ============================================================================
   17. COMPOSANTS — NAVIGATION DESKTOP
   Top bar commune à tous les services
   ============================================================================ */

.vnct-nav-desktop {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 800;
  transition: transform 0.3s var(--ease-smooth);
}

.vnct-nav-desktop--hidden {
  transform: translateY(-100%);
}

.vnct-nav-desktop__home {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
  margin-right: var(--space-4);
  transition: color var(--duration-fast) ease;
}

.vnct-nav-desktop__home:hover {
  color: var(--accent);
  text-decoration: none;
}

.vnct-nav-desktop__logo {
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  color: var(--accent);
}

.vnct-nav-desktop__separator {
  width: 1px;
  height: 24px;
  background: var(--border-default);
}

.vnct-nav-desktop__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
}

.vnct-nav-desktop__link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
}

.vnct-nav-desktop__link:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
  text-decoration: none;
}

.vnct-nav-desktop__link--active {
  color: var(--accent);
}

.vnct-nav-desktop__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

/* Masqué sur mobile */
@media (max-width: 768px) {
  .vnct-nav-desktop {
    display: none;
  }
}

/* ============================================================================
   18. COMPOSANTS — NAVIGATION MOBILE
   Bottom bar fixe + header mobile
   ============================================================================ */

/* Header mobile */
.vnct-header-mobile {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-3) var(--space-4);
  padding-top: calc(var(--space-3) + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(56px + env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 800;
  transition: transform 0.3s var(--ease-smooth);
}

.vnct-header-mobile--hidden {
  transform: translateY(-100%);
}

.vnct-header-mobile__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--accent);
}

.vnct-header-mobile__action {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* Bottom bar */
.vnct-nav-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-default);
  padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  z-index: 800;
}

.vnct-nav-mobile__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.vnct-nav-mobile__item--active {
  color: var(--accent);
}

.vnct-nav-mobile__icon {
  width: 24px;
  height: 24px;
}

/* Masqué sur desktop */
@media (min-width: 769px) {
  .vnct-nav-mobile,
  .vnct-header-mobile {
    display: none;
  }
}

/* ============================================================================
   19. COMPOSANTS — BADGE VERSION
   ============================================================================ */

.vnct-version-badge {
  position: fixed;
  bottom: var(--space-2);
  left: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-family);
  z-index: 1;
  opacity: 0.6;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 768px) {
  .vnct-version-badge {
    bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
  }
}

/* ============================================================================
   20. UTILITAIRES — GLASSMORPHISM
   ============================================================================ */

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

/* ============================================================================
   21. UTILITAIRES — NEON HOVER
   Ajouter à tout élément qui doit avoir le glow néon au hover.
   ============================================================================ */

.vnct-neon-hover {
  transition: box-shadow var(--duration-normal) ease,
              border-color var(--duration-normal) ease;
}

@media (min-width: 769px) {
  .vnct-neon-hover:hover {
    border-color: var(--accent);
    box-shadow: var(--neon-shadow-md);
  }
}

/* ============================================================================
   22. UTILITAIRES — TEXT
   ============================================================================ */

.vnct-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vnct-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================================
   22b. COMPOSANTS — UPLOAD (champ image dans les formulaires feedback)
   ============================================================================ */

.vnct-upload {
  position: relative;
}

/* Input file caché */
.vnct-upload__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Zone cliquable / droppable */
.vnct-upload__dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease;
}

.vnct-upload__dropzone:hover {
  border-color: var(--border-hover);
}

.vnct-upload__dropzone--dragover {
  border-color: var(--accent);
  background: var(--accent-bg-subtle);
}

.vnct-upload__icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.vnct-upload__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

/* Galerie multi-images */
.vnct-upload__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.vnct-upload__gallery:empty {
  display: none;
}

/* Preview d'une image */
.vnct-upload__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  width: 120px;
  height: 90px;
  overflow: hidden;
}

.vnct-upload__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* Bouton supprimer (X) superposé en haut-droite */
.vnct-upload__remove {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  line-height: 1;
  cursor: pointer;
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.vnct-upload__remove:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* ============================================================================
   22c. COMPOSANTS — BETA BANNER
   Bandeau d'avertissement pour les services en développement.
   Se place juste après la nav (desktop) / header (mobile).
   ============================================================================ */

.vnct-beta-banner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: hsla(35, 90%, 50%, 0.08);
  border-bottom: 1px solid hsla(35, 90%, 50%, 0.25);
  font-family: var(--font-family);
  font-size: var(--text-xs);
  color: var(--warning);
  line-height: var(--leading-normal);
  text-align: left;
}

.vnct-beta-banner__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* Variante success (services sécurisés / P2P) */
.vnct-beta-banner--success {
  background: hsla(160, 80%, 45%, 0.08);
  border-bottom: 1px solid hsla(160, 80%, 45%, 0.25);
  color: var(--success);
}

@media (max-width: 768px) {
  .vnct-beta-banner {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-2xs, 11px);
  }
}

/* ============================================================================
   23. ANIMATIONS — KEYFRAMES
   ============================================================================ */

@keyframes vnct-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes vnct-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes vnct-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes vnct-scale-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.95); }
}

@keyframes vnct-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vnct-slide-down {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}

@keyframes vnct-slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --- Transitions de page style Windows Phone --- */
@keyframes vnct-page-enter-right {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes vnct-page-exit-left {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-30%); }
}

@keyframes vnct-page-enter-left {
  from { opacity: 0; transform: translateX(-100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes vnct-page-exit-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30%); }
}

/* --- Tile entrance (landing page) --- */
@keyframes vnct-tile-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Entrance animations (page load) --- */
@keyframes vnct-appear {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vnct-appear-hero {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes vnct-appear-subtle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   24. ANIMATIONS — TRANSITIONS DE PAGE
   Classes appliquées dynamiquement par vnct-common.js
   ============================================================================ */

.vnct-page-transition--enter-right {
  animation-name: vnct-page-enter-right;
  animation-duration: var(--duration-page);
  animation-timing-function: var(--ease-out-expo);
}

.vnct-page-transition--exit-left {
  animation-name: vnct-page-exit-left;
  animation-duration: var(--duration-page);
  animation-timing-function: var(--ease-out-expo);
}

.vnct-page-transition--enter-left {
  animation-name: vnct-page-enter-left;
  animation-duration: var(--duration-page);
  animation-timing-function: var(--ease-out-expo);
}

.vnct-page-transition--exit-right {
  animation-name: vnct-page-exit-right;
  animation-duration: var(--duration-page);
  animation-timing-function: var(--ease-out-expo);
}

/* ============================================================================
   24b. ANIMATIONS — ENTRÉE DE PAGE (classes utilitaires)
   Ajouter ces classes aux éléments HTML pour des animations d'apparition
   fluides au chargement. Respecte prefers-reduced-motion.

   .vnct-appear          → fade + slide-up standard (sections, cards, inputs…)
   .vnct-appear--hero    → fade + slide-up + scale subtil (titres principaux)
   .vnct-appear--subtle  → fade + micro slide-up (éléments secondaires)

   Stagger : .vnct-stagger sur le parent → les enfants .vnct-appear
   s'enchaînent avec 60ms de décalage (jusqu'à 12 enfants).
   ============================================================================ */

/* --- Apparition standard --- */
.vnct-appear {
  animation-name: vnct-appear;
  animation-duration: 550ms;
  animation-timing-function: var(--ease-out-expo);
  animation-fill-mode: backwards;
}

/* --- Apparition hero (titres, héros) --- */
.vnct-appear--hero {
  animation-name: vnct-appear-hero;
  animation-duration: 650ms;
  animation-timing-function: var(--ease-out-expo);
  animation-fill-mode: backwards;
}

/* --- Apparition subtile (badges, texte secondaire) --- */
.vnct-appear--subtle {
  animation-name: vnct-appear-subtle;
  animation-duration: var(--duration-slow);
  animation-timing-function: var(--ease-out-expo);
  animation-fill-mode: backwards;
}

/* --- Délais manuels (pour usage sans .vnct-stagger) --- */
.vnct-appear--d1 { animation-delay: 0.10s; }
.vnct-appear--d2 { animation-delay: 0.20s; }
.vnct-appear--d3 { animation-delay: 0.30s; }
.vnct-appear--d4 { animation-delay: 0.40s; }
.vnct-appear--d5 { animation-delay: 0.50s; }
.vnct-appear--d6 { animation-delay: 0.60s; }
.vnct-appear--d7 { animation-delay: 0.70s; }
.vnct-appear--d8 { animation-delay: 0.80s; }

/* --- Stagger automatique --- */
/* Parent .vnct-stagger → enfants directs .vnct-appear décalés de 100ms */
.vnct-stagger > .vnct-appear:nth-child(1)  { animation-delay: 0.10s; }
.vnct-stagger > .vnct-appear:nth-child(2)  { animation-delay: 0.20s; }
.vnct-stagger > .vnct-appear:nth-child(3)  { animation-delay: 0.30s; }
.vnct-stagger > .vnct-appear:nth-child(4)  { animation-delay: 0.40s; }
.vnct-stagger > .vnct-appear:nth-child(5)  { animation-delay: 0.50s; }
.vnct-stagger > .vnct-appear:nth-child(6)  { animation-delay: 0.60s; }
.vnct-stagger > .vnct-appear:nth-child(7)  { animation-delay: 0.70s; }
.vnct-stagger > .vnct-appear:nth-child(8)  { animation-delay: 0.80s; }
.vnct-stagger > .vnct-appear:nth-child(9)  { animation-delay: 0.90s; }
.vnct-stagger > .vnct-appear:nth-child(10) { animation-delay: 1.00s; }
.vnct-stagger > .vnct-appear:nth-child(11) { animation-delay: 1.10s; }
.vnct-stagger > .vnct-appear:nth-child(12) { animation-delay: 1.20s; }

/* --- Nav entrance — barre de nav apparaît en douceur --- */
.vnct-nav-desktop,
.vnct-header-mobile {
  animation-name: vnct-appear-subtle;
  animation-duration: var(--duration-normal);
  animation-timing-function: var(--ease-out-expo);
}

/* ============================================================================
   24c. STANDALONE WEB APP — Animations différées
   En mode standalone (web app iOS), les animations CSS jouent pendant le
   splash screen avant que la page soit visible. On les pause en CSS,
   puis vnct-common.js ajoute .vnct-animate sur <html> pour les lancer.
   ============================================================================ */
/* --- iOS Safari : activer :active au toucher ---
   Safari iOS ne déclenche pas :active sur touch par défaut.
   vnct-common.js ajoute un listener touchstart vide pour l'activer.
   Aucun CSS supplémentaire nécessaire ici. */

/* ============================================================================
   26. COMPOSANTS — FOOTER
   Footer standardisé présent sur TOUTES les pages publiques des services VNCT.
   Contient : copyright Venacity + liens légaux (ML, PDC, CGU).
   ============================================================================ */

.vnct-footer {
  margin-top: auto;
  padding: var(--space-6) var(--space-4);
  border-top: 1px solid var(--border-default);
  text-align: center;
}

.vnct-footer__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.vnct-footer__brand {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--font-regular);
}

.vnct-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.vnct-footer__links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
}

.vnct-footer__links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.vnct-footer__sep {
  color: var(--text-muted);
  font-size: var(--text-xs);
  user-select: none;
}

@media (max-width: 480px) {
  .vnct-footer__links {
    flex-direction: column;
    gap: var(--space-2);
  }
  .vnct-footer__sep {
    display: none;
  }
}

/* ============================================================================
   27. ACCESSIBILITÉ
   ============================================================================ */

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Contraste élevé */
@media (prefers-contrast: high) {
  :root,
  [data-theme="dark"] {
    --border-default: rgba(255, 255, 255, 0.3);
    --border-hover: rgba(255, 255, 255, 0.5);
    --text-secondary: #c0c0d0;
    --text-muted: #8080a0;
  }

  [data-theme="light"] {
    --border-default: rgba(0, 0, 0, 0.2);
    --border-hover: rgba(0, 0, 0, 0.4);
    --text-secondary: #303050;
    --text-muted: #606080;
  }
}

/* ============================================================================
   27. COMPOSANTS — PROGRESS BAR
   Barre de progression avec esthetique neon VNCT : rail semi-transparent
   avec backdrop blur, fill en degrade accent-soft -> accent (clair a gauche,
   sature a droite), glow multi-couches qui s'intensifie pendant le mouvement
   puis fade en douceur a l'arret. Pattern eprouve sur Ostra live, extrait
   en composant reutilisable en v1.2.0.

   Usage inline (ex: bar de vote dans un dashboard) :
     <div class="vnct-progress-bar">
       <div class="vnct-progress-bar__fill" style="width: 65%"></div>
     </div>

   Usage floating (ex: reading progress sur un long article) :
     <div class="vnct-progress-bar vnct-progress-bar--floating">
       <div class="vnct-progress-bar__fill"></div>
     </div>

   Cote JS : toggler la classe .is-moving sur le fill pendant les updates
   pour activer le glow intense, et la retirer ~200ms apres le dernier update
   pour declencher le fade en douceur.
   ============================================================================ */

.vnct-progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: color-mix(in srgb, var(--bg-tertiary) 80%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  overflow: visible;
}

@supports not (backdrop-filter: blur(10px)) {
  .vnct-progress-bar {
    background: var(--bg-tertiary);
  }
}

.vnct-progress-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  border-radius: var(--radius-full);
  box-shadow: 0 0 4px hsla(var(--accent-h), var(--accent-s), 50%, 0.25);
  transition:
    width 80ms linear,
    box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vnct-progress-bar__fill.is-moving {
  box-shadow:
    0 0 10px hsla(var(--accent-h), var(--accent-s), 55%, 0.9),
    0 0 22px hsla(var(--accent-h), var(--accent-s), 60%, 0.7),
    0 0 38px hsla(var(--accent-h), var(--accent-s), 65%, 0.4);
  transition:
    width 80ms linear,
    box-shadow 0.15s ease-in;
}

[data-theme="light"] .vnct-progress-bar__fill {
  box-shadow: 0 0 4px hsla(var(--accent-h), var(--accent-s), 45%, 0.3);
}

[data-theme="light"] .vnct-progress-bar__fill.is-moving {
  box-shadow:
    0 0 8px  hsla(var(--accent-h), var(--accent-s), 45%, 0.75),
    0 0 18px hsla(var(--accent-h), var(--accent-s), 50%, 0.55),
    0 0 30px hsla(var(--accent-h), var(--accent-s), 55%, 0.3);
}

/* Variante "floating" : pilule fixed en bas de l'ecran, centree horizontalement.
   Positionnee legerement plus bas que le FAB, avec un z-index inferieur : si la
   pilule et le FAB se chevauchent horizontalement, le FAB flotte au-dessus de la
   barre sans conflit visuel. Le calc bottom utilise safe-area-inset-bottom pour
   rester au-dessus des coins iPhone et de la barre de navigation mobile.
   Usage : reading progress pour du long contenu scrollable (Strata, Nexus, etc.). */
.vnct-progress-bar--floating {
  position: fixed;
  bottom: calc(var(--space-1) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - var(--space-8)));
  box-shadow: var(--shadow-elevation-2);
  z-index: 800;
  pointer-events: none;
}

@media print {
  .vnct-progress-bar--floating {
    display: none !important;
  }
}

/* ============================================================================
   COMPOSANTS ADDITIONNELS — migrés depuis playground.html (DS v1.0.0)
   Source : WEB-APP/DA-VNCT/playground.html (préfixe .pg-* renommés en vnct-*).
   Ajoute aussi les variantes colorées des composants existants (callouts).
   ============================================================================ */

/* ---------- Callouts (info / success / warning / danger) ---------- */
.vnct-callout {
  position: relative;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-5);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.vnct-callout strong { color: var(--text-primary); }
.vnct-callout--info {
  border-left-color: var(--accent);
  background: hsla(var(--accent-h), var(--accent-s), 60%, 0.08);
}
.vnct-callout--success {
  border-left-color: var(--success);
  background: hsla(140, 60%, 50%, 0.08);
}
.vnct-callout--warning {
  border-left-color: var(--warning);
  background: hsla(35, 90%, 55%, 0.08);
}
.vnct-callout--danger {
  border-left-color: var(--danger);
  background: hsla(355, 85%, 60%, 0.08);
}
.vnct-callout__title {
  display: block;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

/* ---------- Code block (inline + bloc) ---------- */
.vnct-code {
  display: block;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: var(--text-sm);
  color: var(--text-primary);
  overflow-x: auto;
  line-height: var(--leading-relaxed);
}
.vnct-code--inline {
  display: inline;
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
}
.vnct-code__keyword  { color: hsl(330, 90%, 70%); }
.vnct-code__string   { color: hsl(140, 60%, 65%); }
.vnct-code__comment  { color: var(--text-muted); font-style: italic; }
.vnct-code__function { color: hsl(200, 80%, 70%); }

/* ---------- Checkbox / Radio / Toggle ---------- */
.vnct-check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.vnct-check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vnct-check__box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
}
.vnct-check__box::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  transform: scale(0);
  transition: transform var(--duration-fast) var(--ease-spring);
  box-shadow: var(--neon-shadow-sm);
}
.vnct-check__input:checked + .vnct-check__box {
  border-color: var(--accent);
  background: hsla(var(--accent-h), var(--accent-s), 60%, 0.1);
}
.vnct-check__input:checked + .vnct-check__box::after { transform: scale(1); }
.vnct-check__input:focus-visible + .vnct-check__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.vnct-check__input:disabled ~ * { opacity: 0.4; cursor: not-allowed; }

.vnct-radio__box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
}
.vnct-radio__box::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--duration-fast) var(--ease-spring);
  box-shadow: var(--neon-shadow-sm);
}
.vnct-check__input:checked + .vnct-radio__box {
  border-color: var(--accent);
}
.vnct-check__input:checked + .vnct-radio__box::after { transform: scale(1); }

.vnct-toggle__track {
  width: 44px;
  height: 24px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--duration-normal) var(--ease-smooth);
  flex-shrink: 0;
}
.vnct-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--duration-normal) var(--ease-spring);
}
.vnct-check__input:checked + .vnct-toggle__track {
  background: hsla(var(--accent-h), var(--accent-s), 60%, 0.2);
  border-color: var(--accent);
}
.vnct-check__input:checked + .vnct-toggle__track::after {
  transform: translateX(20px);
  background: var(--accent);
  box-shadow: var(--neon-shadow-sm);
}

/* ---------- Slider ---------- */
.vnct-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  outline: none;
  border: 1px solid var(--border-default);
}
.vnct-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--neon-shadow-sm);
  transition: transform var(--duration-fast) var(--ease-smooth);
}
.vnct-slider::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: var(--neon-shadow-md); }
.vnct-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: var(--neon-shadow-sm);
}

/* ---------- Dropdown ---------- */
.vnct-dropdown { position: relative; display: inline-block; }
.vnct-dropdown__menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevation-2);
  padding: var(--space-1);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-smooth);
  z-index: 100;
}
.vnct-dropdown.is-open .vnct-dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.vnct-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--text-primary);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth);
}
.vnct-dropdown__item:hover { background: var(--surface-hover); }
.vnct-dropdown__item--danger { color: var(--danger); }
.vnct-dropdown__sep {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-1) 0;
}

/* ---------- Tabs ---------- */
.vnct-tabs__list {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-4);
  overflow-x: auto;
}
.vnct-tabs__tab {
  padding: var(--space-2) var(--space-4);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
}
.vnct-tabs__tab:hover { color: var(--text-primary); }
.vnct-tabs__tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.vnct-tabs__panel { display: none; padding: var(--space-3) 0; color: var(--text-secondary); }
.vnct-tabs__panel--active { display: block; }

/* ---------- Accordion ---------- */
.vnct-accordion {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.vnct-accordion__item { border-bottom: 1px solid var(--border-default); }
.vnct-accordion__item:last-child { border-bottom: none; }
.vnct-accordion__trigger {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--duration-fast) var(--ease-smooth);
}
.vnct-accordion__trigger:hover { background: var(--surface-hover); }
.vnct-accordion__icon {
  transition: transform var(--duration-normal) var(--ease-spring);
  color: var(--text-muted);
}
.vnct-accordion__item.is-open .vnct-accordion__icon { transform: rotate(180deg); color: var(--accent); }
.vnct-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-smooth);
}
.vnct-accordion__item.is-open .vnct-accordion__content { max-height: 300px; }
.vnct-accordion__inner {
  padding: 0 var(--space-4) var(--space-4) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ---------- Stepper ---------- */
.vnct-stepper {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}
.vnct-stepper__step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.vnct-stepper__bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--duration-normal) var(--ease-spring);
}
.vnct-stepper__step--done .vnct-stepper__bullet {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--neon-shadow-sm);
}
.vnct-stepper__step--active .vnct-stepper__bullet {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--neon-shadow-sm);
}
.vnct-stepper__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.vnct-stepper__step--active .vnct-stepper__label,
.vnct-stepper__step--done .vnct-stepper__label {
  color: var(--text-primary);
  font-weight: var(--font-medium);
}
.vnct-stepper__line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  background: var(--border-default);
  border-radius: var(--radius-full);
}
.vnct-stepper__step--done + .vnct-stepper__line { background: var(--accent); }

/* ---------- Tooltip ---------- */
.vnct-tooltip { position: relative; display: inline-block; }
.vnct-tooltip__bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-smooth);
  box-shadow: var(--shadow-elevation-2);
  z-index: 50;
}
.vnct-tooltip:hover .vnct-tooltip__bubble,
.vnct-tooltip:focus-within .vnct-tooltip__bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Pills / Badges ---------- */
.vnct-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
}
.vnct-pill--accent {
  background: hsla(var(--accent-h), var(--accent-s), 60%, 0.15);
  color: var(--accent);
  border-color: hsla(var(--accent-h), var(--accent-s), 60%, 0.3);
}
.vnct-pill--success { background: hsla(140, 60%, 50%, 0.15); color: var(--success); border-color: hsla(140, 60%, 50%, 0.3); }
.vnct-pill--warning { background: hsla(35, 90%, 55%, 0.15); color: var(--warning); border-color: hsla(35, 90%, 55%, 0.3); }
.vnct-pill--danger  { background: hsla(355, 85%, 60%, 0.15); color: var(--danger); border-color: hsla(355, 85%, 60%, 0.3); }
.vnct-pill--solid {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: var(--neon-shadow-sm);
}

/* ---------- Status dots ---------- */
.vnct-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.vnct-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vnct-status__dot--online  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.vnct-status__dot--offline { background: var(--danger); }
.vnct-status__dot--idle    { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.vnct-status__dot--neutral { background: var(--text-muted); }
.vnct-status__dot--pulse {
  background: var(--success);
  animation: vnct-pulse 2s ease-in-out infinite;
}
@keyframes vnct-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsla(140, 60%, 50%, 0.6); }
  50%      { box-shadow: 0 0 0 6px hsla(140, 60%, 50%, 0); }
}

/* ---------- Skeleton ---------- */
.vnct-skeleton {
  background: linear-gradient(90deg,
    var(--bg-tertiary) 0%,
    var(--surface-hover) 50%,
    var(--bg-tertiary) 100%);
  background-size: 200% 100%;
  animation: vnct-skeleton 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes vnct-skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.vnct-skeleton--text   { height: 12px; margin-bottom: var(--space-2); }
.vnct-skeleton--circle { border-radius: 50%; }

/* ---------- Empty state ---------- */
.vnct-empty {
  text-align: center;
  padding: var(--space-10) var(--space-4);
  color: var(--text-muted);
}
.vnct-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  color: var(--text-muted);
  opacity: 0.6;
}
.vnct-empty__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.vnct-empty__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto var(--space-4);
  line-height: var(--leading-relaxed);
}

/* ---------- Table ---------- */
.vnct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.vnct-table thead { background: var(--bg-tertiary); }
.vnct-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
}
.vnct-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
}
.vnct-table tbody tr {
  transition: background var(--duration-fast) var(--ease-smooth);
}
.vnct-table tbody tr:hover { background: var(--surface-hover); }
.vnct-table tbody tr:last-child td { border-bottom: none; }
.vnct-table--bordered {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---------- Pagination ---------- */
.vnct-pagination {
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
}
.vnct-pagination__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-2);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}
.vnct-pagination__btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--text-primary);
}
.vnct-pagination__btn--active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: var(--neon-shadow-sm);
}
.vnct-pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vnct-pagination__ellipsis { color: var(--text-muted); padding: 0 var(--space-1); }

/* ---------- Breadcrumb ---------- */
.vnct-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-muted);
  align-items: center;
}
.vnct-breadcrumb__item { display: inline-flex; align-items: center; gap: var(--space-1); }
.vnct-breadcrumb__link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-smooth);
}
.vnct-breadcrumb__link:hover { color: var(--accent); background: var(--surface-hover); }
.vnct-breadcrumb__sep { color: var(--text-muted); }
.vnct-breadcrumb__current { color: var(--text-primary); font-weight: var(--font-medium); }

/* ---------- Avatar ---------- */
.vnct-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  border: 1px solid var(--border-default);
  overflow: hidden;
  flex-shrink: 0;
}
.vnct-avatar--sm { width: 28px; height: 28px; font-size: var(--text-xs); }
.vnct-avatar--lg { width: 56px; height: 56px; font-size: var(--text-lg); }
.vnct-avatar--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: white;
  border-color: var(--accent);
  box-shadow: var(--neon-shadow-sm);
}
.vnct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vnct-avatar-group { display: inline-flex; }
.vnct-avatar-group .vnct-avatar { margin-left: -10px; border: 2px solid var(--bg-primary); }
.vnct-avatar-group .vnct-avatar:first-child { margin-left: 0; }

/* ---------- Divider ---------- */
.vnct-divider {
  height: 1px;
  background: var(--border-default);
  border: none;
  margin: var(--space-4) 0;
}
.vnct-divider--accent {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 8px hsla(var(--accent-h), var(--accent-s), 60%, 0.3);
}
.vnct-divider--label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin: var(--space-4) 0;
}
.vnct-divider--label::before,
.vnct-divider--label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* ---------- Custom scrollbar ---------- */
.vnct-scroll {
  max-height: 200px;
  overflow-y: scroll;
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.vnct-scroll::-webkit-scrollbar { width: 8px; }
.vnct-scroll::-webkit-scrollbar-track { background: transparent; }
.vnct-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: var(--radius-full);
}
.vnct-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: var(--neon-shadow-sm);
}

/* ---------- Animations supplémentaires (spin / bounce / glow / float) ---------- */
.vnct-anim-spin   { animation: vnct-anim-spin 2s linear infinite; }
.vnct-anim-bounce { animation: vnct-anim-bounce 1.4s var(--ease-spring) infinite; }
.vnct-anim-glow   { animation: vnct-anim-glow 2s ease-in-out infinite; }
.vnct-anim-float  { animation: vnct-anim-float 3s ease-in-out infinite; }
@keyframes vnct-anim-spin   { to { transform: rotate(360deg); } }
@keyframes vnct-anim-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes vnct-anim-glow {
  0%, 100% { box-shadow: var(--neon-shadow-sm); }
  50%      { box-shadow: var(--neon-shadow-lg); }
}
@keyframes vnct-anim-float {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

