/* =====================================================
   Lua d'Enigmas – Global Stylesheet
   - Unified English comments
   - Grouped by scope (Base, Layout, Components, Pages)
   - Removed unused Age Gate block and duplicates
   - Kept only rules used in current HTML pages
   ===================================================== */

/* =============================================
   1) Base reset & globals
   ============================================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

body {
  background-color: #ffffff;
  color: #000000;
  padding-top: 110px;            /* equals fixed header height */
  transition: padding-top 0.3s ease;
}

/* Compact body padding when header shrinks on scroll */
body.header-scrolled { padding-top: 80px; }

/* Default headings (color set per-section where needed) */
h1, h2, h3, h4, h5, h6 { color: #ffffff; }

p { margin: 0 0 1rem 0; }

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: #80bfff; }

/* Visually hidden elements (for screen readers) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   2) Header & mobile navigation
   ============================================= */
header {
  background-color: #000;
  color: #fff;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 110px;
  transition: all 0.3s ease;
}

/* Compact header when scrolling */
header.scrolled {
  height: 80px;
  background-color: rgba(0, 0, 0, 0.5);
}

.header-content { display: flex; align-items: center; }

/* Logo */
.logo-container {
  width: 120px;
  height: 110px;
  background-image: url("../assets/photo/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  transition: all 0.3s ease;
}

/* Smaller logo on scroll */
header.scrolled .logo-container {
  width: 90px;
  height: 80px;
}

/* Site title */
.site-title {
  font-size: 5rem;
  margin-left: 5px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Smaller title on scroll */
header.scrolled .site-title { font-size: 3.5rem; }

/* Hamburger */
:root { --header-height: 110px; }

.menu-toggle {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  position: relative;
  z-index: 1001; /* above slide menu */
}

.hamburger {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  position: relative;
  transition: all 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  left: 0;
  transition: all 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after  { top:  8px; }

/* Cross animation when menu is open */
.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .hamburger::after  { transform: rotate(-45deg); top: 0; }

/* Slide-out menu */
.slide-menu {
  position: fixed;
  top: var(--header-height);
  right: -300%;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 1000;
  transition: right 0.3s ease;
}

/* Adjusted position when header is compact */
body.header-scrolled .slide-menu {
  top: 80px;
  height: calc(100vh - 80px);
}

/* Open state */
.slide-menu.active {
  right: 0;
  background-color: rgba(0, 0, 0, 0.95);
}

.slide-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.slide-menu ul li { margin: 30px 0; }
.slide-menu ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 2.5rem;
  display: block;
  transition: color 0.3s ease;
}
.slide-menu ul li a:hover { color: #cccccc; }

/* Current page link (disabled look) */
.slide-menu .current-page {
  font-weight: bold;
  font-size: 3rem;
  color: #aaa;
  pointer-events: none;
  cursor: default;
  user-select: none;
}
.slide-menu .current-page:hover { color: #aaa; }

/* Language selector inside the menu */
.language-switcher {
  position: absolute;
  bottom: 100px;
  right: 10%;
  transform: translateX(50%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 1000;
}
.language-switcher label { display: none; }
.language-switcher select {
  appearance: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  outline: none;
}
.language-switcher select:hover,
.language-switcher select:focus {
  background-color: rgba(0, 0, 0, 0.7);
  border-color: #ffffff;
  box-shadow: none;
}

/* =============================================
   3) Footer
   ============================================= */
footer {
  background-color: #000;
  color: #fff;
  padding: 0;
  margin: 0;
  min-height: 200px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}
.footer-content .footer-section:first-child {
  flex: 1;
  max-width: 300px;
}
.footer-content .footer-section:last-child {
  flex: 1;
  max-width: 300px;
  text-align: right;
}
.footer-bottom {
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid #333;
}
.footer-bottom p { margin: 0; font-size: 0.8rem; }

/* =============================================
   4) Reusable components
   ============================================= */
/* Hero video banner (fix) */
.hero-video {
  position: relative;
  width: 100%;
  height: 43vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000;
}

.hero-video video {
  position: absolute;
  inset: 0;    
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;  
  transform: none;
  backface-visibility: hidden;
}

.hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: center;
  z-index: 1;
}
.hero-content h1 {
  font-size: 6rem;
  margin: 0;
  text-shadow: none;
}

/* Full-surface link (used in split sections) */
.split-link {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  text-align: center;
  transition: background-color 0.3s ease;
}
.split-link:hover { background-color: rgba(0, 0, 0, 0.2); }

/* Social & contact icons */
.social-icon, .contact-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  text-decoration: none;
  color: transparent;
}
.social-icon { margin-right: 5px; }
.social-icon:hover { opacity: 0.8; }

/* Background images for icons */
.social-icon.instagram, .contact-icon.instagram { background-image: url("../assets/photo/instagram.png"); }
.social-icon.linkedin,  .contact-icon.linkedin  { background-image: url("../assets/photo/linkedin.png"); }
.social-icon.x { background-image: url("../assets/photo/twitter.png"); }
.social-icon.bereal { background-image: url("../assets/photo/Bereal.png"); }
.social-icon.tiktok { background-image: url("../assets/photo/TikTok.png"); }
.contact-icon.email { background-image: url("../assets/photo/email.png"); }

/* Action buttons */
.contact-email-btn, .find-wine-btn {
  display: block;
  padding: 15px 30px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 4px;
  transition: background 0.3s ease;
  margin: 0 auto;
  width: fit-content;
}
.contact-email-btn:hover, .find-wine-btn:hover { background: #333; }

/* Animated sections (revealed via JS) */
.animated-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}
.animated { opacity: 1; }

/* =============================================
   5) Home page
   ============================================= */

/* Team section */
.notre-equipe {
  padding: 2rem 0;
  margin-top: -2rem;
  color: #000;
}
.notre-equipe h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: none;
  color: #000;
}

.membre-equipe {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.membre-equipe .photo-membre {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: none;
  outline: none;
  box-shadow: none;
}
.membre-equipe .description-membre { flex-grow: 1; max-width: calc(100% - 230px); }
.description-membre h3 { margin-bottom: 0; }
.fonction-membre { font-size: 1rem; font-style: italic; margin: 0; }

.bio-membre {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.6;
  text-align: justify; text-justify: inter-word; hyphens: auto;
}

/* Member contact icons row */
.contacts-membre { display: flex; gap: 15px; margin-top: 10px; }

/* Alternating blocks */
.membre-equipe.sacha {
  background-color: #000; color: #fff;
  flex-direction: row;
  animation: slideInLeft 1s forwards;
}
.membre-equipe.david {
  background-color: #fff; color: #000;
  flex-direction: row-reverse;
  animation: slideInRight 1s forwards;
}
.membre-equipe.david .description-membre h3,
.membre-equipe.david .description-membre .fonction-membre {
  color: #000; text-align: right;
}
.membre-equipe.david .description-membre p {
  color: #000;
  text-align: justify; text-justify: inter-word; hyphens: auto;
}
.membre-equipe.david .contacts-membre { justify-content: flex-end; }

/* Profile pictures */
.membre-equipe.sacha .photo-membre { background-image: url("../assets/photo/accueil/Sacha_profil.jpg"); }
.membre-equipe.david .photo-membre { background-image: url("../assets/photo/accueil/David_profil.jpg"); }

/* Contact CTA at bottom of home */
.contact-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
  height: calc(30vh - 10px);
  margin-top: -2rem;
  margin-bottom: 0;
  padding: 0;
}
.contact-unique {
  position: relative;
  overflow: hidden;
  background-image: url("../assets/photo/accueil/visite.png");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  height: 100%;
}
.contact-unique .split-content h2 {
  font-size: 2.5rem;
  color: #ffffff;
  text-shadow: none;
  margin: 0;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .membre-equipe { flex-direction: column; text-align: center; }
  .membre-equipe .description-membre { max-width: 100%; }
}

/* =============================================
   6) Domain & Consulting pages
   ============================================= */

/* Alternating full-height sections */
.domaine-section1, .domaine-section2, .domaine-section3, .domaine-section4,
.cabinet-section1, .cabinet-section2, .cabinet-section3 {
  display: flex;
  align-items: stretch;
  height: 80vh;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}
.domaine-section2, .domaine-section4, .cabinet-section2 { flex-direction: row-reverse; }
.domaine-section2, .domaine-section4, .cabinet-section1, .cabinet-section3 {
  background-color: #000; color: #fff;
}

/* Image blocks (50% width) */
.domaine-section1-image, .domaine-section3-image,
.cabinet-section1-image, .cabinet-section3-image {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 50vw; background-size: cover; background-repeat: no-repeat;
}
.domaine-section2-image, .domaine-section4-image,
.cabinet-section2-image {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 50vw; background-size: cover; background-repeat: no-repeat;
}

/* Domain images */
.domaine-section1-image { background-image: url("../assets/photo/domaine/domaine_1.jpg"); background-position: top; }
.domaine-section2-image { background-image: url("../assets/photo/domaine/domaine_2.jpg"); background-position: center top; }
.domaine-section3-image { background-image: url("../assets/photo/domaine/domaine_3.jpg"); background-position: bottom; }
.domaine-section4-image { background-image: url("../assets/photo/domaine/domaine_4.jpg"); background-position: bottom; }

/* Consulting images */
.cabinet-section1-image { background-image: url("../assets/photo/conseil/conseil_1.jpeg"); background-position: center top; }
.cabinet-section2-image { background-image: url("../assets/photo/conseil/conseil_2.jpg"); background-position: top; }
.cabinet-section3-image { background-image: url("../assets/photo/conseil/conseil_3.jpg"); background-position: center; }

/* Text halves */
.domaine-section1-text, .domaine-section3-text,
.cabinet-section1-text, .cabinet-section3-text {
  width: 50%; margin-left: 50vw; padding: 40px; box-sizing: border-box;
}
.domaine-section2-text, .domaine-section4-text, .cabinet-section2-text {
  width: 50%; margin-right: 50vw; padding: 40px; box-sizing: border-box;
}
.cabinet-section2-text { margin-left: 0; }

/* Stack on mobile */
@media (max-width: 768px) {
  .domaine-section2, .domaine-section4, .cabinet-section2 { flex-direction: column; }
  .domaine-section2-text, .domaine-section4-text, .cabinet-section2-text { margin-right: 0; }
}

/* Titles inside these sections */
.domaine-section1 h2, .domaine-section2 h2, .domaine-section3 h2, .domaine-section4 h2,
.cabinet-section1 h2, .cabinet-section2 h2, .cabinet-section3 h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
  text-shadow: none;
  box-shadow: none;
}

/* Bottom split CTA on Domain page */
.split-section-domaine {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  height: calc(30vh - 10px);
  margin: 0;
  padding: 0;
}
.boutique, .contact {
  flex: 1; position: relative; overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.boutique { background-image: url("../assets/photo/domaine/boutique.png"); }
.contact  { background-image: url("../assets/photo/domaine/visite.png"); }
.split-content-domaine { padding: 20px; margin-bottom: 0; }
.split-content-domaine h2 {
  font-size: 3.5rem; color: #fff; text-shadow: none; margin: 0;
}

/* Social/contact icons: never show link text */
a.social-icon,
a.contact-icon {
  color: transparent !important;
  text-decoration: none !important;
  font-size: 0;           /* masque tout texte éventuel */
  line-height: 0;
}
a.social-icon:hover,
a.social-icon:focus,
a.contact-icon:hover,
a.contact-icon:focus {
  color: transparent !important;
  text-decoration: none !important;
}

/* =============================================
   7) “Nos vins” page (carousel)
   ============================================= */
.carousel-section { padding: 0; }
.carousel-title {
  text-align: center;
  font-size: 2.5rem;
  color: #fff;
  margin: 0;
  background-color: #000;
}
.carousel {
  width: 100%;
  height: 400px;
  margin: 0;
  overflow: hidden;
  background-color: #000;
  position: relative;
}
.carousel-track-container {
  width: 100%;
  overflow: hidden;
  text-align: center;
  position: relative;
}
.carousel-track {
  display: inline-flex;
  list-style: none;
  margin: 0; padding: 0;
  transition: transform 0.4s ease-in-out;
}
.carousel-item {
  position: relative;
  width: 300px;
  margin: 0 10px;
  flex-shrink: 0;
  text-align: center;
  border-radius: 15px;
  max-height: 390px;
}
.carousel-item img {
  max-height: 390px;
  width: auto; height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  transform-origin: center;
}
.carousel-item:hover img { transform: scale(1.05); }
.overlay {
  position: absolute; inset: 0;
  background-color: rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  opacity: 0; pointer-events: none;
  border-radius: 15px;
  transition: opacity 0.3s ease;
}
.carousel-item a { display: block; }
.carousel-item:hover .overlay { opacity: 1; border-radius: 15px; }

.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; font-size: 2rem;
  background: rgba(0,0,0,0.5); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; z-index: 10;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.7); }

/* =============================================
   8) Contact page
   ============================================= */
.contact-page { padding-top: 0; background: #f0f0f0; color: #000; }

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "cordoner map bouton"
    "social   map bouton";
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cordoner { grid-area: cordoner; }
.map      { grid-area: map; }
.bouton   { grid-area: bouton; position: relative; }
.social   { grid-area: social; }

.cordoner, .map, .bouton, .social {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-container h2 { color: #000; text-align: center; margin-bottom: 15px; }
.social .social-icons { display: flex; justify-content: center; align-items: center; gap: 15px; }
.map h2, .bouton h2 { text-align: center; margin-bottom: 15px; }

.bouton .middle-button {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%); text-align: center;
}

/* =============================================
   9) “Où trouver nos vins” page
   ============================================= */
.wine-lieu-section {
  padding: 40px 20px;
  background-color: #f8f8f8;
}
.wine-lieu-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.wine-lieu-container > div {
  flex: 1 1 45%;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.wine-lieu-container h2 {
  font-size: 1.8rem; color: #333; margin-bottom: 20px;
}
.wine-lieu-container p, .wine-lieu-container li {
  font-size: 1rem; color: #555; line-height: 1.6;
}
.wine-lieu-container ol { margin-left: 20px; }
.wine-lieu-container ul { list-style-type: none; margin: 0; padding: 0; }
.wine-lieu-section .middle-button { position: static; transform: none; margin-top: 20px; text-align: center; }

/* =============================================
   10) Wine presentation pages (Citrinitas / Nigredo)
   ============================================= */
/* Title block */
.wine-title-section { background-color: #000; padding: 2rem 0; }
.wine-title-section .wine-title {
  text-align: center; font-size: 3rem; color: #fff; margin: 0;
}
.wine-title-section .wine-p {
  text-align: center; font-size: 1rem; margin: 60px 0 10px;
}

/* Image + info */
.wine-presentation-section { padding: 1rem; }
.wine-details-container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem;
}
.wine-image { flex: 1 1 300px; text-align: center; }
.wine-image img { max-width: 100%; height: 500px; border-radius: 8px; }
.wine-info { flex: 1 1 400px; }
.info-item { margin-bottom: 1rem; }

/* Feature table */
.wine-info h3::before { content: none; } /* guard against external styles */
.wine-info h3 { margin-bottom: 10px; color: #333; text-align: center; position: relative; }

.info-table { width: 800px; table-layout: fixed; border-collapse: collapse; margin: 0 auto; }
.info-table td { border: none; vertical-align: middle; padding: 0.5rem; }
.pictogram-cell { width: 30px; text-align: center; }
.pictogram-image { display: block; margin: 0 auto; max-width: 80px; height: auto; }
.title-cell h3 { margin: 0; text-align: center; color: #333; }
.paragraph-cell p { margin: 0; text-align: center; }

/* =============================================
   11) Timeline & vintage details
   ============================================= */
.wine-timeline-section { padding: 1rem 0; }

.timeline-container {
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
  padding: 20px 0;
  text-align: center;
  scrollbar-width: none;         /* Firefox */
}
.timeline-container::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Horizontal line at mid-height */
.timeline-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  border-top: 2px solid #ddd;
  z-index: 0;
}

.timeline {
  display: inline-flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.timeline-year {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #ddd; border-radius: 50%;
  background: #fff; color: #333;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}
.timeline-year.active {
  transform: scale(1.3);
  background: #aaa;
  border-color: #aaa;
  color: #fff;
}

/* Two-column layout for attributes + description */
.vintage-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "left right";
  column-gap: 32px;
  align-items: start;
  width: 100vw;
  max-width: 100vw;
  margin: 20px 0 40px 0;
  padding: 0 40px;
  box-sizing: border-box;
}

/* Left column wrapper */
.vintage-left-wrapper { grid-area: left; display: flex; flex-direction: column; gap: 16px; }

/* Attributes grid (2 per row) */
.vintage-attributes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  row-gap: 40px;
  width: 100%;
  align-items: start;
}
.vintage-attribute {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  color: #000;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0;
  border: none;
  background: none;
}
.vintage-attribute img {
  width: 42px; height: 42px; object-fit: contain; display: block;
}
.vintage-attribute span {
  display: block; font-size: 0.95rem; line-height: 1.4; color: #000;
}

/* Right column: status + Spotify + description */
.vintage-right {
  grid-area: right;
  display: flex; flex-direction: column;
  justify-content: flex-start; width: 100%;
}

/* Status badge */
.vintage-status {
  display: table;                    /* auto-sized badge */
  margin-left: auto; margin-right: auto;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: #f2f4f7;
  border: 1px solid #e3e7ee;
  color: #000;
}
.vintage-status[data-status="commercialisation"] { background: #bf5139; border-color: #bf5139; }
.vintage-status[data-status="bouteille"]        { background: #5dcdaf; border-color: #5dcdaf; }
.vintage-status[data-status="barrique"]         { background: #896a6a; border-color: #896a6a; }

/* Spotify widget */
.spotify-widget-container {
  max-width: 320px; height: 80px;
  border-radius: 8px; overflow: hidden; margin: 0 auto;
}
.spotify-widget-container iframe {
  display: block;
  width: 100%;
  height: 80px;
  border: 0;
  border-radius: 8px;
}

/* Description block */
.wine-description {
  width: 100%; max-width: none;
  text-align: justify; line-height: 1.6; font-size: 1.05rem;
}
.wine-description p { margin-bottom: 1em; text-align: justify; }
.description-title { font-size: 1.5rem; color: #000; text-align: center; margin-bottom: 10px; }

/* =============================================
   12) Animations
   ============================================= */
@keyframes slideInLeft   { from { transform: translateX(-50%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight  { from { transform: translateX( 50%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInFromLeft  { 0% { transform: translateX(-100%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes slideInFromRight { 0% { transform: translateX(100%);  opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }

/* Trigger classes (added via JS IntersectionObserver) */
.domaine-section1.animated { animation: slideInFromLeft  1s forwards; }
.domaine-section2.animated { animation: slideInFromRight 1s forwards; }
.domaine-section3.animated { animation: slideInFromLeft  1s forwards; }
.domaine-section4.animated { animation: slideInFromRight 1s forwards; }
.cabinet-section1.animated { animation: slideInFromLeft  1s forwards; }
.cabinet-section2.animated { animation: slideInFromRight 1s forwards; }
.cabinet-section3.animated { animation: slideInFromLeft  1s forwards; }


/* =============================================
   Entry / Age Gate & Access Denied pages
   ============================================= */
body.age-gate, body.age-blocked {
  padding-top: 0;
  background: #000;
  color: #fff;
  height: 100vh;           /* lock page to viewport height */
  overflow: hidden;        /* prevent page scrolling */
  overscroll-behavior: none;
}
@supports (height: 100dvh) {
  body.age-gate, body.age-blocked { height: 100dvh; }
}

.bg-video {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.video-title {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  text-align: center;
  font-size: clamp(3.2rem, 8.5vw, 6rem);
  letter-spacing: 0.18rem;
  color: #fff;
  margin: 0;
  text-shadow: none;
}

.gate-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.gate-card, .blocked-card {
  width: 100%;
  max-width: 540px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
.gate-card h1, .blocked-card h1 { margin-top: 0; text-align: center; font-size: 2rem; }
/* Index text should be readable and aligned */
.gate-card p { text-align: justify; text-justify: inter-word; }

.gate-row {
  margin: 14px 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.gate-row label { font-size: 0.95rem; color: #ddd; }
.gate-row select {
  width: 100%;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
.gate-row select:focus { border-color: #888; }

.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.gate-btn, .blocked-btn {
  display: inline-block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  font-weight: 600;
}
.gate-btn.yes { background: #1f8a3a; color: #fff; border-color: #1f8a3a; }
.gate-btn.no  { background: #5a1d1d; color: #fff; border-color: #5a1d1d; }
.gate-btn:hover { transform: translateY(-1px); }

.gate-small { margin-top: 10px; font-size: 0.85rem; color: #bbb; text-align: center; }

/* Access denied */
.blocked-card p { text-align: center; }
.blocked-btn {
  background: #222; color: #fff; border-color: #444;
  display: inline-block;
  width: auto; max-width: 320px;
  margin: 14px auto 0; /* center in card */
  padding: 12px 20px;
}
.blocked-btn:hover { background: #333; }


/* ==== Restore base layout for hero videos on non-home pages ==== */
body:not(.home-page) .hero-video video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block;
}

/* ==== Homepage-only hover effect (zoom + B/W) ==== */
@media (hover: hover) and (pointer: fine) {
  body.home-page .hero-video video {
    transition: transform .5s ease, filter .5s ease;
    transform-origin: center;
    will-change: transform, filter;
  }
  body.home-page .hero-video:hover video {
    transform: scale(1.04);
    filter: grayscale(100%);
  }
}

/* Make sure background videos (age gate, etc.) are never affected */
.bg-video video { filter: none !important; transform: none !important; }
/* Hide original bios on home page when a second, revised bio is present */
.home-page .description-membre p.bio-membre:first-of-type {
  display: none;
}
