/* ============================================
   GRAIN DE BEAUTÉ — Responsive (Mobile-First)
   ============================================ */

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {

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

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

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

  /* Header */
  .hamburger {
    display: none;
  }

  .header__nav {
    display: flex;
  }

  .header__social {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  /* Hero */
  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }

  /* About */
  .about__inner {
    flex-direction: row;
    gap: var(--space-lg);
    text-align: left;
    align-items: flex-start;
  }

  .about__image {
    width: 40%;
    flex-shrink: 0;
  }

  .about__text {
    text-align: left;
  }

  /* Testimonials */
  .testimonial-card {
    min-width: 340px;
    max-width: 450px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .footer__brand {
    align-items: flex-start;
  }

  /* Ebook cards */
  .ebook-card {
    flex-direction: row;
    text-align: left;
    gap: var(--space-md);
  }

  .ebook-card__cover {
    margin-bottom: 0;
  }

  /* Formation detail cards */
  .formation-detail {
    display: flex;
    gap: var(--space-md);
    text-align: left;
  }

  /* Payment buttons : alignés sur le texte, désormais à gauche */
  .payment-buttons {
    align-items: flex-start;
  }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {

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

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

  /* Testimonials */
  .testimonial-card {
    min-width: 380px;
    max-width: 500px;
  }

  /* Forms */
  .form {
    max-width: 700px;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
}

/* ===== LARGE DESKTOP (1440px+) ===== */
@media (min-width: 1440px) {

  :root {
    --container-max: 1320px;
  }

  .hero__title {
    font-size: 5rem;
  }
}

/* Les deux boutons des aperçus ebooks partagent la même ligne de base. */
@media (min-width: 768px) {
  .ebook-preview__body {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }

  .ebook-preview__body .btn {
    margin-top: auto;
  }
}
