/* =========================================================
   Breakpoints
   - ≤992px : tablette & petits laptops
   - ≤768px : mobile
   ========================================================= */

/* =========================
   ≤ 992px
   ========================= */
@media (max-width: 992px) {
    .product-image {
      height: 190px;
    }
    .current-price {
    font-size: .9rem;
    }
    .old-price {
        font-size: .9rem;
    }
    h3.product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
    button.add-to-cart {
        font-size: 10px;
    }
  /* Grille produits */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

  /* Filtres (état ouvert : adoucit l’UI en mobile/tablette) */
  .filters-sidebar.open {
    border-radius: 0;
    box-shadow: none;
  }

  /* Hero */
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 50px;
  }

  .hero-image {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  section.hero {
    height: fit-content;
    margin-top: 20px;
    padding-bottom: 10px;
  }

  /* Header / Navigation */
  nav ul {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: 20px;
  }

  .header-actions {
    display: none;
  }

  /* Menu mobile (caché par défaut, slide-in) */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(-150%);
    transition: transform 0.5s ease;
    z-index: 999;
  }

  .mobile-menu.active {
    transform: translateY(0);
  }

  .mobile-menu ul {
    list-style: none;
  }

  .mobile-menu ul li {
    margin-bottom: 15px;
  }

  .mobile-menu ul li a {
    display: block;
    padding: 10px;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text-dark);
  }

  .mobile-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  /* Boutons / toggles visibles sur petits écrans */
  .close-filters,
  .filter-toggle-btn {
    display: inline-block;
  }
}

/* =========================
   ≤ 768px
   ========================= */
@media (max-width: 768px) {
  /* Filtres (panneau plein écran) */
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
  }

  .filters-sidebar.open {
    left: 0;
  }

  .filter-toggle-btn {
    display: block;
    padding: 10px 15px;
    font-size: 1rem;
    color: #fff;
    background: var(--accent-purple);
    border: none;
    border-radius: var(--border-radius);
    margin: 15px;
    cursor: pointer;
  }

  .filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
  }

  .filters-overlay.show {
    display: block;
  }

  /* Hero / About */
  .about-hero {
    height: 49vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .about-section {
    padding: 20px 5%;
  }

  .hero-image {
    display: none;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Promo */
  .promo-slide {
    flex-direction: column;
  }

  .promo-text {
    padding-right: 0;
    margin-bottom: 30px;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
    gap: 15px;
  }

  .newsletter-form input,
  .newsletter-form button {
    padding: 15px;
    border-radius: 30px;
  }
}
