/* ===== HEADER ===== */
.bg-bandeau {
  background: linear-gradient(90deg, #7a1f1f, #a52a2a);
  position: relative;
  z-index: 1000;
}

/* MENU */
nav ul li a {
  color: white;
  font-weight: 600;
}

/* ===== DROPDOWN ===== */
.dropdown {
  width: 100%;
  background: white;

  display: none;
  position: relative;

  padding: 20px 0;
  justify-content: center;
  gap: 40px;
}

.dropdown.active {
  display: flex;
}

.dropdown a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.dropdown a:hover {
  color: #7a1f1f;
}

/* ===== HORAIRES ===== */
#hoursGrid [data-day].today {
  color: #000;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 10px 8px;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

/* petit bonus pour lisibilité */
#hoursGrid [data-day].today p:first-child {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== FORMULAIRE ===== */
.bg-formulaire {
  color:#7a1f1f;
  position: relative;
  z-index: 1000;
}

#doors {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}

/* portes */
.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #7a1f1f; /* ton rouge boucherie */
  transition: transform 1.2s ease-in-out;
}

/* porte gauche */
.door.left {
  left: 0;
  transform-origin: left;
}

/* porte droite */
.door.right {
  right: 0;
  transform-origin: right;
}

/* texte central */
.door-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  z-index: 2;
}

/* animation ouverture */
#doors.open .door.left {
  transform: translateX(-100%);
}

#doors.open .door.right {
  transform: translateX(100%);
}

/* disparition du overlay */
#doors.fade {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#doors.open .door-content {
  opacity: 0;
  transform: scale(1.1);
  filter: blur(6px);
  transition: all 0.8s ease;
}

/*item du menu principal*/

.menu-item {
  position: relative;
}

/* soulignement animé */
.menu-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: white;
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* activation */
.menu-item.active::after {
  width: 80%;
}

/* ===== CARROUSEL BOUCHERIE ===== */
.carousel-wrapper{
  position: relative;
  overflow: hidden;

  width: 100%;
  max-width: 780px;
  margin: auto;

  padding: 6px 30px;
}

/* =========================
   TRACK
========================= */
.carousel-track{
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
}

/* =========================
   CARD (comme épicerie/cave)
========================= */
.card{
  flex: 0 0 100%;
  position: relative;

  aspect-ratio: 4 / 3;
  max-height: 420px;

  overflow: hidden;
  border-radius: 20px;
  background: #111827;
}

/* =========================
   SLIDES
========================= */
.slideshow{
  position: absolute;
  inset: 0;
}

.slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  background: #111827;

  opacity: 0;
  transition: opacity .6s ease;
  z-index: 0;
}

.slide.active{
  opacity: 1;
  z-index: 1;
}

/* =========================
   NAVIGATION (IDENTIQUE CAVE)
========================= */
.carousel-nav{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

/* boutons */
.nav-btn{
  position: static;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: white;
  color: #111;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  font-size: 20px;
  font-weight: 700;

  box-shadow: 0 3px 10px rgba(0,0,0,0.15);

  transition: background .2s ease, opacity .2s ease;
}

/* hover IDENTIQUE cave */
.nav-btn:hover{
  background: #7a1f1f;
  opacity: 0.85;
}

/* =========================
   DOTS
========================= */
.carousel-dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;

  border: none;
  background: white;
  opacity: 0.35;

  cursor: pointer;
  transition: all .3s ease;
}

.dot:hover{
  opacity: 0.7;
  transform: scale(1.15);
}

.dot.active{
  background: #7a1f1f;
  opacity: 1;
  transform: scale(1.35);
  box-shadow: 0 0 0 2px rgba(122,31,31,.2);
}

/* =========================
   PAUSE
========================= */
.carousel-controls{
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.pause-btn{
  background: white;
  border: none;
  width: 44px;
  height: 44px;

  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.pause-icon.pause{
  display: flex;
  gap: 3px;
}

.pause-icon.pause span{
  width: 4px;
  height: 14px;
  background: black;
  border-radius: 1px;
  display: block;
}

.pause-icon.play{
  width: 0;
  height: 0;
  border-left: 10px solid black;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  .card{
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px){
  .card{
    flex: 0 0 100%;
  }

  .carousel-wrapper{
    padding: 10px 40px;
  }
}

/* couleur de fond de section */
.section-light {
  background: white;
  color: #1f2937;
}

.section-dark {
  background: #111827;
  color: white;
}

/* =========================
   EPICERIE CAROUSEL FIX
========================= */

/* =========================
   EPICERIE CAROUSEL (CAVE COPY)
========================= */

.epicerie-carousel{
  position:relative;
  max-width:900px;
  margin:auto;
}

/* zone image */
.epicerie-slides{
  position:relative;
  width:100%;
  aspect-ratio:4 / 3;
  max-height:420px;
  overflow:hidden;
  border-radius:20px;
  background:#fff;
}

/* slides */
.epicerie-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;

  object-fit:contain;
  object-position:center;

  background:#fff;

  opacity:0;
  transition:opacity .6s ease;
  z-index:0;
}

/* active */
.epicerie-slide.active{
  opacity:1;
  z-index:1;
}

/* =========================
   NAVIGATION (IDENTIQUE CAVE)
========================= */

.epicerie-navigation{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  margin-top:18px;
}

/* boutons */
.epicerie-prev,
.epicerie-next{
  position: static;

  width:42px;
  height:42px;

  border:none;
  border-radius:50%;

  background:#1f2937;
  color:#fff;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  font-size:20px;
  font-weight:700;

  box-shadow:0 3px 10px rgba(0,0,0,0.15);

  transition: background .2s ease, opacity .2s ease;
}

/* hover cave */
.epicerie-prev:hover,
.epicerie-next:hover{
  background:#000;
  opacity:0.85;
}

/* =========================
   DOTS
========================= */

.epicerie-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}

.epicerie-dot{
  width:10px;
  height:10px;
  border-radius:50%;

  background:#1f2937;
  opacity:0.35;

  cursor:pointer;
  transition:all .3s ease;
}

.epicerie-dot:hover{
  opacity:0.7;
  transform:scale(1.15);
}

.epicerie-dot.active{
  background:#7a1f1f;
  opacity:1;
  transform:scale(1.35);
  box-shadow:0 0 0 2px rgba(122,31,31,.2);
}

/* =========================
   PAUSE BUTTON
========================= */

.epicerie-controls{
  display:flex;
  justify-content:center;
  margin-top:15px;
}

.epicerie-pause-btn{
  background:#1f2937;
  border:none;
  width:44px;
  height:44px;

  border-radius:50%;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:0 3px 10px rgba(0,0,0,0.15);
}

.epicerie-pause-icon.pause{
  display:flex;
  gap:3px;
}

.epicerie-pause-icon.pause span{
  width:4px;
  height:14px;
  background:white;
  border-radius:1px;
  display:block;
}

.epicerie-pause-icon.play{
  width:0;
  height:0;
  border-left:10px solid white;
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
}

/* =========================
   CARROUSEL CAVE
========================= */

.cave-carousel{
  position:relative;
  max-width:900px;
  margin:auto;
}

/* zone image */
.cave-slides{
  position:relative;
  width:100%;
  aspect-ratio:4 / 3;
  max-height:420px;
  overflow:hidden;
  border-radius:20px;
  background:#111827;
}

/* images */
.cave-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;

  object-fit:contain;
  object-position:center;

  background:#111827;

  opacity:0;
  transition:opacity .6s ease;
  z-index:0;
}

/* slide actif */
.cave-slide.active{
  opacity:1;
  z-index:1;
}

/* =========================
   FLECHES
========================= */

.cave-prev,
.cave-next{
  position: static; /* <-- clé importante */

  width:42px;
  height:42px;

  border:none;
  border-radius:50%;

  background:white;
  color:#111;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  font-size:20px;
  font-weight:700;

  transition:all .25s ease;
}

.cave-prev:hover,
.cave-next:hover{
  background:#7a1f1f;
  opacity:0.85;
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}

.cave-prev{
  left:15px;
}

.cave-next{
  right:15px;
}

/* =========================
   DOTS
========================= */

.cave-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}

.cave-dot{
  width:10px;
  height:10px;

  border-radius:50%;

  background:white;
  opacity:.35;

  cursor:pointer;

  transition:all .3s ease;
}

.cave-dot:hover{
  opacity:.7;
  transform:scale(1.15);
}

.cave-dot.active{
  background:#7a1f1f;
  opacity:1;
  transform:scale(1.35);
  box-shadow:0 0 0 2px rgba(122,31,31,.2);
}

.cave-dot:focus{
  outline:2px solid #7a1f1f;
  outline-offset:2px;
}

/* =========================
   BOUTON PAUSE / PLAY
========================= */

.cave-controls{
  display:flex;
  justify-content:center;
  margin-top:15px;
}

.cave-pause-btn{
  background:white;
  border:none;

  width:44px;
  height:44px;

  border-radius:50%;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:0 3px 10px rgba(0,0,0,.15);
  transition:transform .2s ease;
}

.cave-pause-btn:hover{
  transform:scale(1.05);
  background:#7a1f1f;
}

/* icône pause */

.cave-pause-icon.pause{
  display:flex;
  gap:3px;
}

.cave-pause-icon.pause span{
  width:4px;
  height:14px;
  background:black;
  border-radius:1px;
  display:block;
}

/* icône play */

.cave-pause-icon.play{
  width:0;
  height:0;
  border-left:10px solid black;
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
}

/* navigation sous le carrousel */

.cave-navigation{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  margin-top:18px;
}