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

   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
   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. Accessibilité
   ============================================================================ */

/* ============================================================================
   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;
}

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 */

  --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 VenacityOS 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 var(--duration-fast) 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);
  }
}

/* ============================================================================
   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-6);
  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: all 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-8));
  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-6) + env(safe-area-inset-bottom));
  }

  .vnct-fab-menu {
    bottom: calc(56px + var(--space-8) + 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);
}

/* ============================================================================
   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. */

/* ============================================================================
   25. 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;
  }
}
