/* ========================================
   RESPONSIVE - Media Queries
   Mobile-First Approach
   ======================================== */

/* === Tablettes et petits écrans (max 768px) === */
@media (max-width: 768px) {
  /* Typographie */
  :root {
    --font-taille-h1: 2rem;
    --font-taille-h2: 1.75rem;
    --font-taille-h3: 1.35rem;
    --espacement-xxl: 3rem;
    --espacement-xl: 2rem;
  }

  /* Header et navigation */
  .header-content {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .nav {
    order: 4;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.active {
    max-height: 500px;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--espacement-sm) 0;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--gris-moyen);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: var(--espacement-sm) 0;
  }

  .nav-menu a::after {
    display: none;
  }

  .btn-rdv-header {
    margin-top: var(--espacement-sm);
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* Grilles */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Trust banner */
  .trust-items {
    flex-direction: column;
  }

  .trust-item {
    min-width: 100%;
  }

  /* Cards */
  .card {
    margin-bottom: var(--espacement-md);
  }

  /* Galerie */
  .gallery-item {
    height: 220px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--espacement-lg);
  }

  /* Container */
  .container {
    padding: 0 var(--espacement-sm);
  }

  /* Tableau */
  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: var(--espacement-xs) var(--espacement-sm);
  }
}

/* === Smartphones (max 480px) === */
@media (max-width: 480px) {
  :root {
    --font-taille-h1: 1.75rem;
    --font-taille-h2: 1.5rem;
    --font-taille-h3: 1.25rem;
    --espacement-xl: 1.5rem;
  }

  .hero {
    padding: var(--espacement-xl) 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: var(--espacement-sm) var(--espacement-md);
    font-size: 0.9375rem;
  }

  .btn-large {
    padding: var(--espacement-sm) var(--espacement-lg);
    font-size: 1rem;
  }

  section {
    padding: var(--espacement-xl) 0;
  }

  .card {
    padding: var(--espacement-md);
  }

  /* Galerie */
  .gallery-item {
    height: 200px;
  }

  .logo-img {
    height: 40px;
  }
}

/* === Grands écrans (min 1200px) === */
@media (min-width: 1200px) {
  :root {
    --font-taille-h1: 3rem;
    --font-taille-h2: 2.25rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }
}

/* === Tablettes en paysage et petits desktops (768px - 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* === Accessibilité - Réduction des animations === */
@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;
  }
}

/* === Mode sombre (optionnel, pour utilisateurs le préférant) === */
@media (prefers-color-scheme: dark) {
  /* Désactivé par défaut pour un site médical (clarté prioritaire) */
  /* Peut être activé si souhaité */
}

/* === Print === */
@media print {
  .header,
  .footer,
  .btn,
  .nav,
  .menu-toggle,
  .cta-section {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}
