/* ══════════════════════════════════════════════════════════════
   BURNING BLUE — Responsive CSS
   Tablette : ≤ 1024px
   Mobile   : ≤ 768px
   Petit mob : ≤ 480px
══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────
   TABLETTE (≤ 1024px)
──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Container */
  .container { padding: 0 32px; }

  /* Typographie */
  h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
  h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); }

  /* Section */
  .section { padding: 72px 0; }

  /* Header */
  .site-header { padding: 22px 28px; }

  /* Footer */
  footer { padding: 80px 0 60px; }
  .footer-grid { gap: 28px; }

  /* Hero (index.html) */
  .hero-content { padding: 48px 24px; }

  /* Shop tunnel */
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cart-sidebar { position: static; }

  /* Galerie shop (gal-gen-grid) */
  .gal-gen-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Produit hero */
  .product-hero {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  /* Collection panel (index) */
  .collection-panel.active {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Grid 4 → 2 cols */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* col-panel produit */
  .col-panel.active { grid-template-columns: 1fr; gap: 32px; }

}

/* ────────────────────────────────────────────────────────────
   MOBILE (≤ 768px)
──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Container */
  .container { padding: 0 20px; }

  /* Section */
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }

  /* ── Header ── */
  .site-header {
    padding: 14px 20px;
    grid-template-columns: auto 1fr auto;
    gap: 0;
  }
  /* Cacher les boutons de nav texte au profit du hamburger */
  .gh-btns { display: none; }
  /* Lang buttons : compactes */
  .gh-lang { gap: 3px; }
  .gh-lang .lang-btn {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  /* ── Typographie ── */
  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.15; }
  h2 { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
  h3 { font-size: 1.1rem; }
  p  { font-size: 0.95rem; }

  /* ── Hero (index.html) ── */
  .hero { min-height: 80vh; }
  .hero-content { padding: 40px 16px 32px; }
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
  .hero-logos { gap: 20px; flex-wrap: wrap; justify-content: center; }

  /* ── Footer ── */
  footer { padding: 56px 0 40px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand p { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding-top: 20px;
  }

  /* ── Grids ── */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 24px; }

  /* ── Section title ── */
  .section-title { margin-bottom: 40px; }
  .section-title h2 { font-size: 1.4rem; }
  .section-title p { font-size: 0.9rem; }

  /* ── Boutique (shop.html) ── */
  .gal-gen-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .gal-gen-title { font-size: clamp(1.4rem, 6vw, 2rem) !important; }

  /* Formulaire shop : pleine largeur */
  .order-form-wrapper { padding: 24px 18px; }
  .order-form-wrapper h2 { font-size: 1.3rem; }

  /* ── Tunnel d'achat (cart.html) ── */
  .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .cart-sidebar { position: static; top: auto; }
  .cart-title { font-size: 0.95rem; }

  /* ── Pages produit ── */
  .product-page { padding-top: calc(var(--nav-h, 70px) + 32px); }
  .product-hero {
    grid-template-columns: 1fr !important;
    gap: 32px;
    margin-bottom: 48px;
  }
  .product-name { font-size: 1.6rem; }
  .product-gallery-thumbs { gap: 8px; }
  .gallery-thumb { width: 60px; height: 60px; }
  .add-to-cart-btn { padding: 16px; font-size: 0.95rem; }

  /* ── About / Concept (grid-2 stacking) ── */
  .grid-2[style*="gap:60px"],
  .grid-2[style*="gap: 60px"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* ── Contact form ── */
  .grid-2[style*="max-width:900px"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* ── FAQ ── */
  .faq-question { font-size: 0.95rem; padding: 18px 0; }
  .faq-list { max-width: 100%; }

  /* ── Success ── */
  .success-page { padding-top: calc(var(--nav-h, 70px) + 32px); }

  /* ── Collection tabs ── */
  .collections-tabs {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  .tab-btn { padding: 8px 14px; font-size: 0.78rem; }

  /* ── Collection panel ── */
  .collection-panel.active { grid-template-columns: 1fr; gap: 24px; }

  /* ── col-panel (product details in index) ── */
  .col-panel.active { grid-template-columns: 1fr; gap: 24px; }

  /* ── Témoignages / Testimonials ── */
  .testimonial-card { flex: 0 0 calc(88% - 12px); }

  /* ── Boutons CTA ── */
  .btn-lg { padding: 14px 28px; font-size: 0.9rem; }

  /* ── Drawer panier ── */
  .cart-drawer { width: 100vw; }

  /* ── Modale confirmation ── */
  .confirm-modal-box { padding: 28px 20px; }
  .confirm-modal-actions { flex-direction: column; }

}

/* ────────────────────────────────────────────────────────────
   PETIT MOBILE (≤ 480px)
──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Container */
  .container { padding: 0 16px; }

  /* Section */
  .section { padding: 44px 0; }

  /* ── Header ultra-compact ── */
  .site-header { padding: 12px 16px; }
  .gh-circle { width: 38px; height: 38px; }
  /* Masquer les lang buttons sur très petit écran — lang accessible via menu */
  .gh-lang { display: none; }

  /* ── Typographie ── */
  h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  h2 { font-size: clamp(1.2rem, 6vw, 1.5rem); }

  /* ── Hero ── */
  .hero-content { padding: 32px 12px 28px; }

  /* ── Footer ── */
  footer { padding: 44px 0 32px; }

  /* ── Produit ── */
  .product-hero { gap: 24px; margin-bottom: 36px; }
  .product-name { font-size: 1.4rem; }
  .size-option { padding: 12px 14px; }
  .gallery-thumb { width: 52px; height: 52px; }

  /* ── Shop form ── */
  .order-form-wrapper { padding: 20px 14px; }
  .gal-gen-title { font-size: clamp(1.2rem, 7vw, 1.6rem) !important; }

  /* ── FAQ ── */
  .faq-question { font-size: 0.9rem; }
  .faq-icon { width: 20px; height: 20px; font-size: 0.8rem; }

  /* ── Collection tabs ── */
  .tab-btn { padding: 7px 12px; font-size: 0.74rem; }

  /* ── Panier ── */
  .cart-drawer-body { padding: 18px; }
  .cart-item { padding: 12px; gap: 12px; }
  .cart-item-img { width: 60px; height: 60px; }

  /* ── Boutons ── */
  .btn { padding: 12px 20px; font-size: 0.85rem; }
  .btn-lg { padding: 13px 22px; font-size: 0.88rem; }

  /* ── Section title ── */
  .section-title { margin-bottom: 28px; }

}

/* ────────────────────────────────────────────────────────────
   AJUSTEMENTS TACTILES UNIVERSELS
──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Espacement touch-friendly sur les liens et boutons */
  .gh-btn, .lang-btn, .tab-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Liens FAQ accessibles au toucher */
  .faq-question { min-height: 52px; }

  /* Inputs plus grands pour le clavier mobile */
  .form-input, input[type="text"], input[type="email"], select, textarea {
    font-size: 16px; /* évite le zoom auto iOS */
    padding: 12px 14px;
  }

  /* Éviter le débordement horizontal */
  body { overflow-x: hidden; }
  img, video, svg { max-width: 100%; }

}
