/* ============================================================
   CARTE.CSS — Styles spécifiques à notre-carte.html
   (barre de catégories sticky, contenu catégorie, grille produits)
   ============================================================ */

/* Réduit le chevauchement bas de la bande Arlequin juste au-dessus,
   pour créer un espace visible avec la barre de catégories (spécifique à cette page) */
.pattern-band--carte-nav {
  margin-bottom: -8px;
}

/* ============ BARRE CATÉGORIES (sticky) ============ */
.cat-nav {
  position: sticky;
  top: 96px;
  z-index: 50;
  background: var(--ivoire);
}
/* Fade indicateur de scroll à droite (mobile) */
.cat-nav::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--ivoire));
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}
.cat-nav.has-overflow::after { opacity: 1; }

.cat-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--vert-fonce) transparent;
  -webkit-overflow-scrolling: touch;
  padding: 0 8px;
  scroll-snap-type: x proximity;
}
.cat-nav-inner::-webkit-scrollbar { height: 4px; }
.cat-nav-inner::-webkit-scrollbar-track { background: transparent; }
.cat-nav-inner::-webkit-scrollbar-thumb {
  background: var(--vert-fonce);
  border-radius: 3px;
}
.cat-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--vert-fonce);
  border: none;
  padding: 14px 20px 12px;
  min-width: 100px;
  font-family: 'Lilita One', cursive;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
  scroll-snap-align: center;
}
.cat-nav-btn .cat-icon {
  width: 32px;
  height: 32px;
  display: block;
  transition: transform 0.2s;
}
.cat-nav-btn .cat-icon svg { width: 100%; height: 100%; display: block; }
.cat-nav-btn:hover .cat-icon { transform: scale(1.1); }
.cat-nav-btn.active .cat-icon { transform: scale(1.05); }
.cat-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 4px;
  background: var(--vert-fonce);
  transform: scaleX(0);
  transition: transform 0.2s;
  border-radius: 3px 3px 0 0;
}
.cat-nav-btn:hover::after { transform: scaleX(1); }
.cat-nav-btn.active { color: var(--vert-fonce); }
.cat-nav-btn.active::after {
  transform: scaleX(1);
  background: var(--vert-vif);
  height: 5px;
}

/* ============ CONTENU CATÉGORIE ============ */
.cat-section {
  background: var(--ivoire);
  padding: 80px 48px;
  position: relative;
}
.cat-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cat-header {
  text-align: center;
  margin-bottom: 56px;
}
.cat-header .surtitre {
  font-family: 'Caveat', cursive;
  color: var(--vert-vif);
  font-size: 28px;
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
}
.cat-header h2 {
  font-family: 'League Gothic', sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  color: var(--vert-fonce);
  line-height: 1;
  margin-bottom: 12px;
}
.cat-header p {
  color: var(--vert-fonce);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}
.cat-note {
  text-align: center;
  color: var(--vert-fonce);
  opacity: 0.7;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 32px;
}

/* Sous-catégorie (Soft, Eaux, Cafés, etc.) */
.subcat-title {
  font-family: 'Lilita One', cursive;
  color: var(--vert-fonce);
  font-size: 28px;
  text-transform: uppercase;
  margin: 48px 0 24px;
  text-align: center;
  position: relative;
}
.subcat-title::before,
.subcat-title::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 3px;
  background: var(--vert-vif);
  vertical-align: middle;
  margin: 0 16px;
  border-radius: 2px;
}
.subcat-title:first-of-type { margin-top: 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(2, 89, 70, 0.08);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(2, 89, 70, 0.15);
}
.product-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}
.product-info {
  padding: 20px;
  text-align: center;
}
.product-info h3 {
  font-family: 'Lilita One', cursive;
  color: var(--vert-fonce);
  font-size: 22px;
  margin-bottom: 6px;
}
.product-info p {
  font-family: 'Poppins', sans-serif;
  color: var(--vert-fonce);
  font-size: 13px;
  opacity: 0.75;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  nav.cat-nav { display: block; }
  .page-hero { padding: 60px 24px 40px; }
  .cat-section { padding: 60px 24px; }
  .cat-nav { top: 96px; }
  .cat-nav-btn {
    padding: 12px 14px 10px;
    font-size: 11px;
    min-width: 88px;
  }
  .cat-nav-btn .cat-icon { width: 26px; height: 26px; }
  .cat-nav-inner { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product-info h3 { font-size: 16px; }
  .product-info p { font-size: 12px; }
}
