/* ============================================
   RESPONSIVE — Breakpoints
   ============================================
   Mobile first :
   - base    : 0 — 767px   (mobile)
   - md      : 768px+       (tablette)
   - lg      : 1024px+      (desktop)
   - xl      : 1280px+      (grand ecran)
   ============================================ */

/* --- Tablette (768px+) --- */

@media (min-width: 768px) {
  h1, .h1 {
    font-size: var(--text-5xl);
  }

  h2, .h2 {
    font-size: var(--text-4xl);
  }

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

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

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

/* --- Mobile (< 768px) --- */

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  h1, .h1 {
    font-size: var(--text-3xl);
  }

  h2, .h2 {
    font-size: var(--text-2xl);
  }

  h3, .h3 {
    font-size: var(--text-xl);
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section--lg {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* Nav : burger visible, liens masques */
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

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

  /* Footer en colonne */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__bottom-links {
    justify-content: center;
  }

  /* Boutons full width en mobile */
  .btn--mobile-full {
    width: 100%;
  }

  /* Pricing card */
  .pricing-card {
    padding: var(--space-xl);
  }
}

/* --- Desktop (1024px+) --- */

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* --- Grand ecran (1280px+) --- */

@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-xl);
  }
}
