/* =============================================
   PRODUITS.CSS — Page produits côté client
   Dépend de : ../style.css
============================================= */

/* =============================================
   HERO
============================================= */
.produits-hero {
  background: var(--beige);
  border-bottom: 1px solid rgba(139, 0, 0, 0.1);
  padding: 56px 48px 48px;
}

.produits-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.produits-hero-label {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--rouge);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}

.produits-hero h1 {
  font-family: 'SnotmasterV', 'EB Garamond', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--noir);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 12px;
}

.produits-hero p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gris-texte);
}

/* =============================================
   TITRES DE SECTION COMMUNS
============================================= */
.section-tailles .tailles-inner h2,
.section-vieillissement .vieillissement-inner h2,
.section-coffret .coffret-inner h2 {
  font-family: 'SnotmasterV', 'EB Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--noir);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

/* =============================================
   SECTION TAILLES
============================================= */
.section-tailles {
  background: var(--beige);
  padding: 72px 48px 80px;
}

.tailles-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tailles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.taille-card {
  background: var(--blanc);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px var(--ombre);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.taille-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

.taille-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--beige); 
}

.taille-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}

.taille-card:hover .taille-card-img img {
  transform: scale(1.05);
}

.taille-card-body {
  padding: 20px 20px 28px;
}

.taille-card-body h3 {
  font-family: 'SnotmasterV', 'EB Garamond', Georgia, serif;
  font-size: 1.6rem;
  color: var(--rouge);
  margin-bottom: 10px;
}

.taille-card-body p {
  font-family: 'EB Garamond', serif;
  font-size: 0.97rem;
  color: var(--gris-texte);
  line-height: 1.65;
}

/* =============================================
   SECTION VIEILLISSEMENT
============================================= */
.section-vieillissement {
  background: var(--blanc);
  padding: 72px 0 80px;
  overflow: hidden;
}

.vieillissement-inner {
  max-width: 1100px;
  margin: 0 auto 36px;
  padding: 0 48px;
}

.vieillissement-intro {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gris-texte);
  line-height: 1.7;
  margin-top: -16px;
}

.produits-empty {
  font-family: 'Lora', serif;
  font-style: italic;
  color: #bbb;
  font-size: 1rem;
  padding: 0 48px 8px;
}

/* ── Carousel bières ── */
.biere-carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.biere-carousel-wrapper {
  overflow: hidden;
  flex: 1;
  border-radius: 10px;
}

.biere-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.biere-carousel-slide {
  flex-shrink: 0;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Flèches */
.biere-carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--rouge);
  background: var(--blanc);
  color: var(--rouge);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  z-index: 2;
  box-shadow: 0 2px 10px var(--ombre);
}

.biere-carousel-btn:hover {
  background: var(--rouge);
  color: var(--blanc);
  transform: scale(1.08);
}

/* Points */
.biere-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 48px;
}

.biere-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--rouge);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.biere-carousel-dot--active {
  background: var(--rouge);
}

/* ── Carte bière ── */
.biere-card {
  background: var(--beige-clair);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px var(--ombre);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.biere-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}

.biere-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--beige); 
}

.biere-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}

.biere-card:hover .biere-card-img img {
  transform: scale(1.05);
}

.biere-card-img-placeholder {
  width: 100%; height: 100%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #bbb;
}

.biere-card-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.biere-card-body h3 {
  font-family: 'SmithyXT', 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: var(--noir);
}

.biere-desc {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  color: var(--gris-texte);
  line-height: 1.5;
}

.biere-age {
  display: inline-block;
  margin-top: 4px;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rouge);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
  align-self: flex-start;
}

/* =============================================
   SECTION COFFRET
============================================= */
.section-coffret {
  background: var(--beige);
  padding: 72px 48px 88px;
  border-top: 1px solid rgba(139, 0, 0, 0.08);
}

.coffret-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Un seul coffret : featured ── */
.coffret-featured {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  background: var(--blanc);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 28px var(--ombre);
}

.coffret-featured-img {
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  background: var(--beige); 
}

.coffret-featured-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.coffret-featured:hover .coffret-featured-img img {
  transform: scale(1.04);
}

.coffret-featured-body {
  padding: 40px 40px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Plusieurs coffrets : grille ── */
.coffrets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.coffret-card {
  background: var(--blanc);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px var(--ombre);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.coffret-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

.coffret-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--beige); 
}

.coffret-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}

.coffret-card:hover .coffret-card-img img {
  transform: scale(1.05);
}

.coffret-card-body {
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.coffret-card-body h3 {
  font-family: 'SnotmasterV', 'EB Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--noir);
}

/* Éléments communs featured + card */
.coffret-badge {
  display: inline-block;
  background: var(--rouge);
  color: var(--blanc);
  font-family: 'EB Garamond', serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

.coffret-featured-body h3 {
  font-family: 'SnotmasterV', 'EB Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--noir);
  margin: 0;
}

.coffret-tagline {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--rouge);
}

.coffret-desc {
  font-family: 'EB Garamond', serif;
  font-size: 1.02rem;
  color: var(--gris-texte);
  line-height: 1.75;
}

.coffret-btn {
  align-self: flex-start;
  margin-top: 4px;
}

.coffret-img-placeholder {
  width: 100%; height: 100%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #bbb;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .tailles-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .coffret-featured {
    grid-template-columns: 1fr;

  }

  .coffret-featured-img { min-height: 240px; }

  .coffret-featured-body {
    padding: 28px 24px 32px;
  }
}

@media (max-width: 760px) {
  .produits-hero,
  .section-tailles,
  .section-coffret {
    padding: 40px 20px 56px;
  }

  .vieillissement-inner {
    padding: 0 20px;
    margin-bottom: 24px;
  }

  .biere-carousel-outer {
    padding: 0 16px;
    gap: 8px;
  }

  .biere-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .biere-carousel-dots {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .produits-hero h1 { font-size: 3rem; }
}
