/* ============================================
   RESPONSIVE.CSS — SECK PHOTOGRAPHIE
   Mobile-first réel : la base ci-dessous est le
   comportement MOBILE. Chaque breakpoint ajoute
   des règles pour les écrans plus grands.
   Breakpoints CodeZen : 480 / 576 / 768 / 992 / 1280
   ============================================ */

/* ============================================
   BASE MOBILE (< 480px et jusqu'à 767px)
   ============================================ */

/* Navigation : menu hamburger par défaut sur mobile */
.nav-toggle {
  display: flex;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(80vw, 320px);
  background-color: var(--color-black);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  z-index: var(--z-overlay);
}

.nav-menu.is-open {
  transform: translateX(0);
}

.nav-menu a {
  font-size: 1.1rem;
}

/* Empêche le scroll du body quand le menu mobile est ouvert */
body.menu-open {
  overflow: hidden;
}

/* Hero : padding réduit sur petit écran */
.hero-content h1 { font-size: var(--fs-h1); }
.hero-actions { width: 100%; }
.hero-actions .btn { width: 100%; }

/* WhatsApp flottant : légèrement plus petit sur très petit écran */
.whatsapp-float {
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  bottom: var(--space-sm);
  right: var(--space-sm);
}

/* Galerie : 1 colonne sur mobile (défini en base dans global.css) */

/* ============================================
   ≥ 480px — grand mobile
   ============================================ */
@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    width: auto;
    justify-content: center;
  }
  .hero-actions .btn { width: auto; }

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

/* ============================================
   ≥ 576px — mobile large / petite tablette
   ============================================ */
@media (min-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   ≥ 768px — tablette : navigation desktop revient
   ============================================ */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    background-color: transparent;
    padding: 0;
    transform: none;
    transition: none;
  }
  .nav-menu a { font-size: var(--fs-small); }

  body.menu-open { overflow: auto; }

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

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   ≥ 992px — desktop
   ============================================ */
@media (min-width: 992px) {
  section { padding-block: 7rem; }

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

  .hero-content { max-width: 820px; }

  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }
}

/* ============================================
   ≥ 1280px — grand desktop
   ============================================ */
@media (min-width: 1280px) {
  .container { padding-inline: var(--space-lg); }
}

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