/* ============================================================================
   CRITICAL FIXES - Corrections ciblées sans casser le layout existant
   ============================================================================ */

/* ----------------------------------------------------------------------------
   FIX 1: TAILLE MINIMALE DES INPUTS POUR iOS (éviter le zoom)
   ---------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea {
  font-size: 16px !important; /* Minimum pour éviter zoom sur iOS */
}

/* ----------------------------------------------------------------------------
   FIX 2: FOCUS VISIBLE POUR ACCESSIBILITÉ
   ---------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #E31E24;
  outline-offset: 2px;
}

/* Remove default focus styles */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ----------------------------------------------------------------------------
   FIX 3: CONTRASTE TEXT/FOND (WCAG AA 4.5:1) - CIBLÉ
   ---------------------------------------------------------------------------- */

/* Texte gris trop clair - uniquement si la classe existe */
.g5, .g4, .g3 {
  color: #5a5a58;
}

/* ----------------------------------------------------------------------------
   FIX 4: PREFERS-REDUCED-MOTION
   ---------------------------------------------------------------------------- */
@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;
  }
}

/* ----------------------------------------------------------------------------
   FIX 5: SKIP LINK POUR ACCESSIBILITÉ
   ---------------------------------------------------------------------------- */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #E31E24;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
  top: 0;
}

/* ----------------------------------------------------------------------------
   FIX 6: DARK MODE SUPPORT (optionnel)
   ---------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0f0f0;
    --g1: #1a1a1a;
    --g5: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
    --beige: #1a1a1a;
  }
  
  body {
    background: #111;
    color: var(--ink);
  }
}

/* ----------------------------------------------------------------------------
   FIX 7: PRINT STYLES
   ---------------------------------------------------------------------------- */
@media print {
  .nav,
  .mobile-drawer-backdrop,
  .mobile-drawer-panel,
  .btn,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  p, li {
    page-break-inside: avoid;
  }
}
