/* ============================================
   STYLES GLOBAUX - GALERIE D'ART MODERNE
   ============================================ */

/* === Variables CSS === */
:root {
  /* Couleurs mode clair - Palette moderne et sophistiquée */
  --color-primary: #1d1d1f;
  --color-secondary: #007aff;
  --color-accent: #ff3b30;
  --color-bg: #fafafa;
  --color-text: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-bg-secondary: #f5f5f7;
  --color-border: #d2d2d7;
  --color-card-bg: #ffffff;
  --color-success: #30d158;
  --color-warning: #ff9500;
  
  /* Ombres subtiles avec effet 3D */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
  
  /* Ombres 3D pour relief */
  --shadow-3d-sm: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-3d-md: 0 4px 8px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-3d-lg: 0 8px 16px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(0, 0, 0, 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Polices modernes */
  --font-heading: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  
  /* Transitions fluides */
  --transition-fast: 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-base: 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Gradients modernes */
  --gradient-primary: linear-gradient(135deg, var(--color-secondary) 0%, #1e40af 100%);
  --gradient-card: linear-gradient(145deg, var(--color-card-bg) 0%, var(--color-bg-secondary) 100%);
  --gradient-text: linear-gradient(135deg, var(--color-text) 0%, var(--color-secondary) 100%);
  
  /* Effets de flou */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);
  --blur-xl: blur(24px);
  
  /* Espaces harmonieux */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Rayons de bordure */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
}

/* Mode sombre - Palette raffinée */
[data-theme="dark"] {
  --color-primary: #f5f5f7;
  --color-secondary: #0a84ff;
  --color-accent: #ff453a;
  --color-bg: #000000;
  --color-text: #f5f5f7;
  --color-text-secondary: #98989d;
  --color-bg-secondary: #1c1c1e;
  --color-border: #38383a;
  --color-card-bg: #1c1c1e;
  --color-success: #32d74b;
  --color-warning: #ff9f0a;
  
  /* Ombres pour mode sombre avec effet 3D */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 10px 20px -5px rgba(0, 0, 0, 0.6);
  
  /* Ombres 3D mode sombre */
  --shadow-3d-sm: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-3d-md: 0 4px 8px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-3d-lg: 0 8px 16px rgba(0, 0, 0, 0.7), 0 12px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.6);
}

/* Optimisations spécifiques mode sombre */
[data-theme="dark"] .info-icon {
  background: linear-gradient(135deg, var(--color-secondary), #1e40af);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

[data-theme="dark"] .social-link:hover {
  box-shadow: 0 10px 25px rgba(10, 132, 255, 0.4);
}

[data-theme="dark"] .page-header::before {
  background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .contact-page::before {
  background: linear-gradient(45deg, transparent 0%, rgba(10, 132, 255, 0.08) 50%, transparent 100%);
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Préférence pour les animations réduites */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Support du mode de contraste élevé */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  }
  
  [data-theme="dark"] {
    --color-border: #ffffff;
    --color-text-secondary: #ffffff;
  }
}

/* === Optimisation pour les écrans haute résolution === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .info-icon,
  .social-icon,

  .filter-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* === Protection contre la sélection indésirable === */
.gallery-item,
.gallery-link,
.canvas-wrapper,
.item-info {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Permettre la sélection pour le texte important seulement */
.item-title,
.item-artist,
.item-price {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* === Améliorations pour l'impression === */
@media print {
  .filters-section,
  .social-section,
  .btn-reset,
  footer {
    display: none !important;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* === Variables supplémentaires pour les nouveaux composants === */
:root {
  /* Animation shimmer pour les effets de brillance */
  --shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  
  /* Gradients avancés */
  --gradient-hero: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  
  /* Espacements fins */
  --spacing-xxs: 0.25rem;
  --spacing-4xl: 5rem;
  --spacing-5xl: 6rem;
  
  /* Z-index système */
  --z-dropdown: 100;
  --z-modal: 1000;
  --z-tooltip: 1100;
  --z-toast: 1200;
}

/* Mode sombre - Variables étendues */
[data-theme="dark"] {
  --gradient-hero: linear-gradient(135deg, var(--color-bg) 0%, #0a0a0a 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.55;
  transition: background-color var(--transition-base),
              color var(--transition-base);
  min-height: 100vh;
  letter-spacing: -0.003em;
}

/* === Typographie moderne === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem); 
  font-weight: 700;
  letter-spacing: -0.025em;
}
h2 { 
  font-size: clamp(2rem, 4vw, 3rem); 
  font-weight: 650;
}
h3 { 
  font-size: clamp(1.75rem, 3vw, 2.25rem); 
}
h4 { 
  font-size: clamp(1.5rem, 2.5vw, 1.875rem); 
}
h5 { 
  font-size: clamp(1.25rem, 2vw, 1.5rem); 
}
h6 { 
  font-size: clamp(1.125rem, 1.5vw, 1.25rem); 
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

.text-large {
  font-size: 1.125rem;
  line-height: 1.55;
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

a:hover {
  color: var(--color-secondary);
  opacity: 0.8;
}

/* Exception pour les liens de galerie */
.gallery-link:hover {
  opacity: 1;
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* États de focus améliorés */
.info-card:focus-within {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-xl);
}

.social-link:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-xl);
}

/* Micro-interactions */
.info-card h3 {
  transition: color var(--transition-base);
}

.info-card:hover h3 {
  color: var(--color-secondary);
}

/* États de loading et de skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-secondary) 25%, rgba(255,255,255,0.2) 50%, var(--color-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--color-secondary);
  border-radius: inherit;
  opacity: 0;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

/* === Conteneurs === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === Images === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Animations et effets modernes === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* === Utilitaires visuels === */
.glass-effect {
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.125);
}

[data-theme="dark"] .glass-effect {
  background: rgba(28, 28, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
}

/* === Améliorations typographiques === */
.display-text {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-text {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text-secondary);
}

.fine-print {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  opacity: 0.8;
}

/* === Grille moderne et mise en page === */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === Système de boutons moderne === */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    letter-spacing: -0.01em;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }/* Bouton primaire */
.btn-primary {
  background: var(--color-secondary) !important;
  color: white !important;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-secondary) !important;
}

.btn-primary:hover {
  background: var(--color-secondary) !important;
  color: white !important;
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary) !important;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Correction spécifique mode sombre */
[data-theme="dark"] .btn-primary {
  background: #0a84ff !important;
  color: white !important;
  border-color: #0a84ff !important;
}

[data-theme="dark"] .btn-primary:hover {
  background: #0a84ff !important;
  color: white !important;
  border-color: #0a84ff !important;
  opacity: 0.9;
}

/* Bouton secondaire */
.btn-secondary {
  background: var(--color-card-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Bouton outline */
.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: white;
  transform: translateY(-1px);
}

/* Bouton ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: none;
  opacity: 0.8;
}

.btn-ghost:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  opacity: 1;
}

/* Tailles de boutons */
.btn-small {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.875rem;
  min-height: 36px;
}

.btn-large {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.0625rem;
  min-height: 52px;
}

/* États et focus */
.btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* === Cartes modernes === */
  .card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  .card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--color-secondary);
  }

  /* Meilleur support tactile pour les cartes */
  @media (hover: none) and (pointer: coarse) {
    .card:active {
      transform: scale(0.98);
      transition: transform 0.1s ease;
    }
  }.card-compact {
  padding: var(--spacing-lg);
}

.card-spacious {
  padding: var(--spacing-3xl);
}

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

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iconLoad {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.info-icon {
  animation: iconLoad 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.info-card:nth-child(1) .info-icon { animation-delay: 0.2s; }
.info-card:nth-child(2) .info-icon { animation-delay: 0.3s; }
.info-card:nth-child(3) .info-icon { animation-delay: 0.4s; }

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* === Grilles et layouts modernes === */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.flex {
  display: flex;
  gap: var(--spacing-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === Utilitaires modernes === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-bg-secondary); }
.bg-card { background-color: var(--color-card-bg); }

/* Espacements */
.m-0 { margin: 0; }
.p-0 { padding: 0; }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }

.px-md { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }

  /* === Responsive moderne avec optimisations tactiles === */
  
  /* Améliorations spécifiques aux appareils tactiles */
  @media (hover: none) and (pointer: coarse) {
    .btn {
      min-height: 52px;
      padding: var(--spacing-lg) var(--spacing-xl);
    }
    
    .btn-small {
      min-height: 48px;
      padding: var(--spacing-md) var(--spacing-lg);
    }
    
    /* Augmenter les zones de touch pour les liens */
    a:not(.btn) {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
    }
  }
  
  /* Tablettes */
  @media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 var(--spacing-lg); }
    
    /* Améliorer l'espacement sur tablette */
    .btn { min-height: 50px; }
  }

  /* Smartphones paysage et tablettes portrait */
  @media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .flex { flex-direction: column; }
    .flex-between { flex-direction: column; align-items: stretch; gap: var(--spacing-md); }
    
    .container { padding: 0 var(--spacing-md); }
    .card { padding: var(--spacing-lg); }
  }

  /* Smartphones portrait */
  @media (max-width: 480px) {
    .container { padding: 0 var(--spacing-sm); }
    .card { padding: var(--spacing-md); }
    
    /* Optimiser pour les petits écrans */
    .btn {
      width: 100%;
      justify-content: center;
    }
  }
  
  /* Orientation paysage sur smartphone */
  @media (max-width: 812px) and (orientation: landscape) {
    .container {
      padding: 0 var(--spacing-lg);
    }
  }/* === Scrollbar moderne === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-secondary);
  border-radius: var(--radius-lg);
  opacity: 0.5;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text);
  opacity: 0.8;
}

/* === Animations modernes === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.animate-slide-in {
  animation: slideIn 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.animate-scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

  /* === États interactifs === */
  .interactive {
    transition: all var(--transition-base);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .interactive:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
  
  /* Focus states améliorés pour le tactile */
  .interactive:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
    transform: translateY(-1px);
  }
  
  /* Support tactile pour les éléments interactifs */
  @media (hover: none) and (pointer: coarse) {
    .interactive:hover {
      transform: none;
      box-shadow: var(--shadow-sm);
    }
    
    .interactive:active {
      transform: scale(0.98);
      transition: transform 0.1s ease;
    }
  }/* === Indicateurs de focus modernes === */
.focus-ring {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
  border-radius: var(--radius-md);
}

  /* === Performance et qualité === */
  * {
    backface-visibility: hidden;
  }

  .gpu-accelerated {
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }
  
  /* === Optimisations tactiles === */
  
  /* Supprimer le délai de 300ms sur mobile */
  * {
    touch-action: manipulation;
  }
  
  /* Améliorer le feedback tactile */
  button, .btn, [role="button"] {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Optimiser les transitions pour le tactile */
  @media (prefers-reduced-motion: no-preference) {
    .interactive:active {
      transition: transform 0.1s ease;
    }
  }
  
  /* Améliorer la lisibilité sur petits écrans */
  @media (max-width: 768px) {
    * {
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }
  }/* === Print === */
@media print {
  body {
    color: #000;
    background: #fff;
  }
  
  .no-print {
    display: none !important;
  }
}
