/* ==========================================================================
   RESPONSIVE — CB Creations Luxury Edition
   Breakpoints: Tablet (960), Mobile (640), Small (420)
   ========================================================================== */

/* ---------- BASE TOKENS ---------- */
:root {
  --touch-target: 48px;
}

/* ---------- GLOBAL IMAGE RESETS ---------- */
.jewel-card img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.product-main-img {
  object-fit: contain !important;
}

/* ---------- HERO IMAGE FLUID ---------- */
.hero-art img {
  height: auto;
  max-height: clamp(300px, 42vh, 520px);
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* ---------- PRODUCT GALLERY ---------- */
.product-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- BUTTONS TOUCH TARGETS ---------- */
.btn {
  min-height: var(--touch-target);
  padding: 12px 24px;
}

/* ---------- FOCUS STATES ---------- */
.nav-links a:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(201, 168, 76, 0.4);
  outline-offset: 3px;
}

/* ---------- ACCESSIBILITY ---------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   TABLETTE — max 960px
   ========================================================================== */
@media (max-width: 960px) {
  .container {
    width: min(1120px, calc(100% - 32px));
  }

  .home-categories-bar {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 20px;
    padding: 14px 8px;
    flex-wrap: nowrap;
  }
  .home-categories-bar::-webkit-scrollbar { display: none; }

  .home-category-link {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }

  .home-main-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 16px 8px 10px;
  }
  .home-main-spacer { display: none; }
  .home-main-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .home-brand-image { max-height: 90px; }

  .hero,
  .home-overview,
  .story-grid,
  .journey-grid,
  .guide-steps,
  .contact-layout,
  .editorial-grid,
  .product-hero,
  .collection-hero,
  .atelier-contact,
  .editorial-points,
  .atelier-steps,
  .atelier-benefits {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    gap: 22px;
    padding: 28px 0 22px;
  }
  .hero-art { min-height: 0; }
  .hero-art img { max-height: 360px; }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .hero-gallery-card,
  .hero-gallery-card img { min-height: 260px; }

  .product-visual img,
  .product-main-image-wrap {
    max-height: 400px;
  }

  .trust-band {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   MOBILE — max 640px
   ========================================================================== */
@media (max-width: 640px) {
  .container {
    width: calc(100% - 20px);
  }

  .home-main-links { gap: 12px; }
  .home-brand-image { max-height: 72px; }

  .home-categories-bar {
    gap: 14px;
    padding: 10px 6px;
  }
  .home-category-link {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .hero { padding: 16px 0 14px; gap: 16px; }
  .hero-copy {
    padding: 18px;
    border-radius: var(--radius-lg);
  }
  .hero-copy h1 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    line-height: 1.06;
  }
  .hero-copy p { font-size: 0.94rem; }
  .hero-art img { max-height: 280px; border-radius: var(--radius-lg); }

  .hero-gallery { grid-template-columns: 1fr; }
  .hero-gallery-card,
  .hero-gallery-card img { min-height: 200px; }

  .hero-points { flex-direction: column; }
  .hero-points span { width: 100%; justify-content: center; }

  .cards-grid-catalogue { grid-template-columns: 1fr; }
  .jewel-card img { max-height: 320px; }
  .jewel-content { padding: 12px; }

  .hero-actions,
  .card-actions { flex-direction: column; }
  .hero-actions .btn,
  .card-actions .btn,
  .cta-band .btn,
  .home-overview-card .btn { width: 100%; }

  .home-overview { gap: 12px; }
  .home-overview-card { padding: 18px; border-radius: var(--radius-lg); }
  .home-overview-card h2 { font-size: 1.4rem; }

  .section-title h1,
  .section-title h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.1;
  }

  .product-page { padding-top: 16px; }
  .product-visual img,
  .product-main-image-wrap { max-height: 340px; }
  .gallery-thumbs-strip {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-thumb-btn { width: 64px; height: 64px; }

  .collection-panel,
  .atelier-panel,
  .review-card,
  .journey-grid article,
  .story-grid article,
  .editorial-grid article,
  .guide-steps article { padding: 16px; }

  .collection-panel.visual,
  .atelier-panel.visual { min-height: 200px; }

  .atelier-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .copyright { margin-top: 10px; }

  .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .contact-layout { gap: 14px; }
}

/* ==========================================================================
   PETIT ÉCRAN — max 420px
   ========================================================================== */
@media (max-width: 420px) {
  :root { --radius: 10px; --radius-lg: 14px; --radius-xl: 18px; }
  .container { width: calc(100% - 14px); }
  .home-brand-image { max-height: 58px; }
  .home-categories-bar { gap: 10px; padding: 8px 4px; }
  .home-category-link { font-size: 0.7rem; }
  .hero-copy h1 { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .jewel-content { padding: 10px; }
  .gallery-thumb-btn { width: 52px; height: 52px; }
}

/* ==========================================================================
   REDUCED MOTION (accessibility)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
