/* =========
 Variables
=========== */
:root {
    --bg: #FCFCFC;
    --text: #1a1a1a;
    --accent: #000;
    --muted: #b8b8b8;
    --gap: 3rem;

    /* Système d’espacement */
    --container-width: 1400px;
    --section-gap: 50px;
    /* espace ENTRE sections */
    --grid-gap: 2.5rem;
    /* gap par défaut de toutes les grilles */
    --section-padding: 50px;
    /* padding vertical des sections */


    /* ROUGE = #ff4e66  */
}

/* Reset + logique bloc (vertical) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote, pre) {
    margin-block: 0;
}





/* Pour les liens normaux, garder le curseur "link" */
a {
    cursor: pointer;
    /* tu peux mettre "pointer" ou "default" selon style */
    text-decoration: none;
    /* supprime souligné par défaut */
    color:#000000;
}

/*
* {
  outline: 1px solid rgba(255,0,0,.2);
}*/




html,
body {
    height: 100%;

}

html {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;

}


body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden; /* empêche le scroll horizontal global */
  }


main {
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    /* pousse le footer en bas */
    background: var(--bg);
    padding: 100px 0;
    background: url('../img/logo/picto-vsc.svg') center/cover no-repeat;
    background-size: 50vh;
    background-attachment: fixed;
}

@media (max-width: 768px) {
  main {
    padding: 50px 0;
    background-attachment: scroll; /* 👈 ça c’est la clé */
    background-image: none;        /* optionnel, pour virer le pictogramme */
  }
}

section:last-child {
    margin-bottom: 0;
}

img.responsive {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

/* Typo titres */
h1 {
    font-family: 'Cinzel', serif;
    font-size: 4vw;
    font-weight: 100;
    text-align: center;
    line-height: 1;

}

.top-container-vin h1,
.top-container-cafe h1,
.top-container-domaines h1,
.top-container-spiritueux h1,
.top-container-contact h1
{
    font-size: clamp(30px, 8vw, 120px);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: white;
    animation: none !important;
    padding-top: 75px; /* compense la navbar */
}

@media (max-width: 768px) {
  .top-container-vin h1,
  .top-container-cafe h1,
  .top-container-domaines h1,
  .top-container-spiritueux h1,
  .top-container-contact h1
  {
  text-align: center;
  line-height: 1.3;
  font-weight: 400;
  }
}




h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(45px, 2.5vw, 5rem);
    font-weight: 200;
    line-height: 1.15;
    margin-bottom: 25px;
    color: #ff4e66;
}

p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    /* min 16px, fluide, max ~19px */
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 15px;
}

p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    p {
        text-align: center;
    }
    .texte p{
      text-align: center;
    }
    h2 {
text-align: center;   }
}

#presentation p{
  text-align: left;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}




#contact a {
  color: #000000;
  text-shadow: 0 1px 0 #e7f9f4;
  text-decoration: none;
  border-bottom: 1px solid #ff4e66;
  display: inline-block;
  position: relative;
  padding: 0 0.1em;
  transition: all 250ms;
  z-index: 1000;
}
#contact a:before {
  content: "";
  z-index: -1;
  width: 100%;
  height: 0%;
  background: #FAEBED;
  bottom: 0;
  left: 0;
  position: absolute;
  transition: height 250ms;
}
#contact a:hover {
  border-color: transparent;
}
#contact a:hover:before {
  height: 100%;
}
#contact .name{
  font-size: 25px;
}

/* Espacement ENTRE sections, y compris après le header */
header + section + section {
    margin-block-start: var(--section-gap);
}

strong {
    font-weight: 500;
}

.heavy {
    font-weight: 800;
}

/* Grilles : gap cohérent partout */
.grid,
.galerie-grid {
    gap: var(--grid-gap);
}

/* ===== NAVBAR ===== */
body.menu-open {
    overflow: hidden;
}

#gonnaBeOnTheBottom {
    position: absolute;
    bottom: 30px;
    display: inline-block;
    text-align: center;
}

#gonnaBeOnTheBottom a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    text-align: center;
    font-weight: 400;
    font-size: 1.3em;
    letter-spacing: 2px;
    color: var(--white);
    text-decoration: none;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

#gonnaBeOnTheBottom a:hover {
    margin-bottom: 5px;
}

.enter-link ion-icon {
    font-size: 2rem;
    /* taille de l’icône */
    color: #fff;
    /* couleur */
}

.centered-section {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding:  0;
}

#start {
    scroll-margin-top: 72px;
    /* ajuste la valeur selon ton header */
}



.space-o-matic-80:last-child{
  margin: 80px 0 0;
}
@media (max-width: 768px) {
  .space-o-matic-80{
    margin: 50px 0;
  }
}
/* =========================
   NAVIGATION - Base
========================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 10000;
    transition:
        background .24s cubic-bezier(.22, .61, .36, 1),
        box-shadow .24s cubic-bezier(.22, .61, .36, 1),
        backdrop-filter .24s cubic-bezier(.22, .61, .36, 1),
        border-color .24s cubic-bezier(.22, .61, .36, 1);
}

nav.scrolled {
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: saturate(125%) blur(10px);
    border-bottom-color: rgba(0, 0, 0, .06);
}

/* Fix overflow horizontal */
nav {
    padding-left: clamp(12px, 4vw, 32px);
    padding-right: clamp(12px, 4vw, 32px);
    box-sizing: border-box;
    /* ⚡ évite que le padding s'ajoute en plus de 100% */
}



.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20000;
}

.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}




.logo:hover img {
    transform: scale(1.05);
}

/* ================================
   NAVIGATION PRINCIPALE
   ================================ */

/* Conteneur UL */
nav ul.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    /* liens alignés à droite */
    gap: 1rem;
    /* écart constant entre les blocs */
    max-width: 100%;
    /* évite le débordement */
    box-sizing: border-box;
}

/* Chaque élément de menu occupe une largeur fixe */
nav ul.nav-links li {
    flex: 0 0 90px;
    /* largeur fixe de 90px */
}

@media (max-width: 968px) {
    nav ul.nav-links li {
        flex: 0 0 30px;
        /* largeur fixe de 90px */
    }
}

/* Lien principal */
nav ul.nav-links li a {
    display: flex;
    /* le lien occupe tout le bloc */
    justify-content: center;
    /* texte centré */
    align-items: center;
    width: 100%;
    color: var(--text);
    font-weight: 300;
    /* poids par défaut */
    text-decoration: none;
    position: relative;
    padding: .25rem 0;
    outline-offset: 3px;
    transition: color .2s cubic-bezier(.22, .61, .36, 1);
}

/* Span interne pour isoler le texte et gérer le soulignement */
nav ul.nav-links li a span {
    display: inline-block;
    position: relative;
}

/* Soulignement animé (uniquement sous le texte) */
nav ul.nav-links li a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.2em;
    height: 2px;
    width: 0;
    background: #ff4e66;
    transition: width .2s cubic-bezier(.22, .61, .36, 1);
}

/* ================================
   ÉTAT PAR DÉFAUT (pages scrolled)
   ================================ */
nav ul.nav-links li a:hover,
nav ul.nav-links li a:focus-visible {
    color: var(--accent);
}

nav ul.nav-links li a:hover span::after,
nav ul.nav-links li a:focus-visible span::after {
    width: 100%;
    /* suit uniquement la largeur du texte */
}

/* ================================
   ÉTAT TRANSPARENT (index avant scroll)
   ================================ */
nav.transparent ul.nav-links li a {
    color: #fff;
    /* texte blanc */
}

nav.transparent ul.nav-links li a:hover,
nav.transparent ul.nav-links li a:focus-visible {
    color: #fff;
    /* hover reste blanc */
}

nav.transparent ul.nav-links li a span::after {
    background: #fff;
    /* filet blanc au survol */
}

/* ================================
   ACTIF
   ================================ */
nav ul.nav-links li a.active {
    font-weight: 600;
    /* seul l’actif est en gras */
    pointer-events: none;
    /* pas de clic possible */
}

/* ================================
   RESPONSIVE
   ================================ */
/* Par défaut : nav responsive cachée */
@media (max-width: 968px) {
    nav ul.nav-links {
        display: none;
        /* jamais visible sans action */
        opacity: 0;
        /* sécurité anti-flash */
        pointer-events: none;
        transition: opacity .3s ease;
    }

    /* Quand le JS ajoute la classe .open */
    nav ul.nav-links.open {
        display: flex;
        /* menu vertical */
        flex-direction: column;
        align-items: center;
        opacity: 1;
        pointer-events: auto;
    }

    /* Burger visible en responsive */
    nav .burger {
        display: block;
    }
}



/* =========================
   NAVIGATION - Transparent
========================= */
nav.transparent .nav-links li a {
    color: white;
}

nav.transparent .nav-links li a::after {
    background: currentColor;
}

nav.transparent .nav-links li a:hover,
nav.transparent .nav-links li a:focus-visible {
    color: #fff;
}

nav.transparent .burger span,
nav.transparent .burger::before,
nav.transparent .burger::after {
    background: #fff;
}



#mes-choix-li {
    flex: 0 0 auto !important;
    /* largeur auto */
}




/* =========================
   NAVIGATION - Burger Menu
========================= */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    position: relative;
    cursor: pointer;
    z-index: 11000;
}

.burger span,
.burger::before,
.burger::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    top: 50%;
    background: var(--text);
    transition:
        transform .2s cubic-bezier(.22, .61, .36, 1),
        opacity .2s cubic-bezier(.22, .61, .36, 1);
}

.burger span {
    transform: translateY(-50%);
}

.burger::before {
    top: 14px;
}

.burger::after {
    bottom: 14px;
    top: auto;
}

.burger.open span {
    opacity: 0;
}

.burger.open::before {
    transform: translateY(7px) rotate(45deg);
}

.burger.open::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   NAVIGATION - Responsive (<768px)
========================= */
@media (max-width: 968px) {
    nav ul.nav-links {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #fff;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 10001;
        transition: opacity .24s ease, visibility .24s ease;
    }

    nav ul.nav-links.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    nav ul.nav-links li {
        padding: .6rem 18px;
    }

    nav ul.nav-links li a {
        display: inline-block;
        padding: 0;
        line-height: 1.1;
        font-size: 1.4rem;
        font-weight: 300;
    }

    nav ul.nav-links li a::after {
        bottom: 0;
        left: 0;
        height: 2px;
        width: 0;
    }

    nav .nav-links.open li a {
        color: var(--text) !important;
    }

    nav .nav-links.open li a::after {
        background: var(--accent) !important;
    }

    .burger {
        display: block;
    }

    .burger.open span,
    .burger.open::before,
    .burger.open::after {
        background: var(--text) !important;
    }
}


/* ===== HEADER ===== */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    margin: 0;
    background: url('../img/photos/ambiance-3.jpg') center/cover no-repeat;
    flex: 0 0 auto;
    animation: bgslide 8s infinite;
}

@keyframes bgslide {
    0% {
        background-image: url('../img/photos/ambiance-1.jpg');
    }

    33% {
        background-image: url('../img/photos/ambiance-2.jpg');
    }

    66% {
        background-image: url('../img/photos/ambiance-3.jpg');
    }

    100% {
        background-image: url('../img/photos/ambiance-1.jpg');
    }
}


header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 6vw, 6rem);
    max-width: 80%;
    font-weight: 300;
    line-height: 1.3;
}


header p {
    font-size: 2rem;
}

/* === HEADER SWIPER === */
header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Swiper plein écran derrière le contenu */
header .header-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

header .header-swiper .swiper-wrapper,
header .header-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

header .header-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
}


.top-container-vin {
  min-height: clamp(300px, 35vh, 800px);
    background: #ccc;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/bg/bg-vin-1.webp') center/cover no-repeat;
}
.top-container-cafe {
  min-height: clamp(300px, 35vh, 800px);
    background: #ccc;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/bg/bg-cafe.webp') center/cover no-repeat;
}

.top-container-domaines {
  min-height: clamp(300px, 35vh, 800px);
    background: #ccc;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/bg/bg-domaines.webp') center/cover no-repeat;
}

.top-container-spiritueux {
  min-height: clamp(300px, 35vh, 800px);
  background: #ccc;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/bg/bg-spiritueux.webp') center/cover no-repeat;
}

.top-container-contact {
  min-height: clamp(300px, 35vh, 800px);
  background: #ccc;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/bg/bg-contact.webp') center/cover no-repeat;
}

/* --- Version mobile (<768px) : plus bas --- */
@media (max-width: 768px) {
  .top-container-vin,
  .top-container-cafe,
  .top-container-domaines,
  .top-container-spiritueux,
  .top-container-contact {
    min-height: clamp(200px, 35vh, 400px);
  }
}

.contact-infos{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-infos p{
line-height: 2;
text-align: left;
}


.contact-infos a{
  transition: all .15s ease;
}

.contact-infos img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0 50px;
  border-radius: 5px;
}

.contact-infos a:hover{
color: #ff4e66;
}

#spiritueux{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4em;
}

@media (max-width: 968px) {
  #spiritueux{
        display: grid;
        grid-template-columns:  1fr;
        gap: 2em;
        justify-items: center;
      }
      h2{
        text-align: center;
        margin-bottom: 50px;
      }
    }


#spiritueux img{
max-height: 200px;
pointer-events: none;
}





/*  CAFÉS  */

#cafe h2{
  font-size: 2rem;
  text-align: center;
  margin-top: 30px;
}
#cafe p{
  text-align: center;
}

.logo-brulerie{
  max-height:120px;
  margin-bottom: 50px;
}

.cafe-liste {
  display: flex;
  flex-direction: column;
  align-items: flex-start;; /* centre horizontalement */
  gap: 15px 0;
  padding: 15px 0;
}

.cafe-liste a{
  display: inline-block; /* évite l'étirement */
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color: #000000;
  transition: all .15s ease-in-out;
  border-radius: 3px;
}


.cafe-liste a:hover{
  font-weight: 700;
  color: #ff4e66;
}

.accordion {
  margin: 1.5rem 0;
  background: #fff;
  border:  0 solid #BFB6B6;
  padding: 5px 25px;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.03),
             0 2px 2px rgba(0,0,0,0.03),
             0 4px 4px rgba(0,0,0,0.03),
             0 6px 8px rgba(0,0,0,0.03),
             0 8px 16px rgba(0,0,0,0.03);
}
.accordion span{
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  color: #000000;
 }

.accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.8rem 0;
}

.accordion-toggle ion-icon {
  transition: transform 0.3s ease;
  font-size: 1.4rem;
}

.accordion-toggle[aria-expanded="true"] ion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content.open {
  max-height: 500px; /* adapte si besoin */
}
.accordion-toggle ion-icon {
  color: #ff4e66; /* rouge plus profond, moins “alerte” */
  font-size: 1.4rem; /* optionnel */
}

.modal {
  display: none; /* cachée par défaut */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centre horizontalement */
  text-align: center;    /* centre le texte */
  justify-content: center;
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.modal-content button {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  padding: 0;
  border-radius: 5px;
  transition: all 0.15s ease;
  border: 5px;
  cursor: pointer;
  margin-top: 20px;
  padding: 10px 15px;
  background: #000;
}

.modal-content button:hover {
  color: #ffffff;
  background: #ff4e66;

}


.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: #333; /* couleur par défaut */
  transition: color 0.3s ease;
}

.modal .close:hover {
  color: #ff4e66;
}

.modal-content img {
  width: 150px;       /* taille du cercle */
  height: 150px;
  object-fit: cover;  /* recadre bien l’image */
  border-radius: 50%; /* rend l’image circulaire */
  display: block;
  margin: 1rem auto; /* centre + espace sous l’image */
}

@media (max-width: 600px) {
  .modal .modal-content > img {
    display: none !important;
  }
}

#favoris-panel {
  z-index: 1000;
}

.modal {
  z-index: 2000;
}


/* ===== CONTENT ===== */
.cols-1 {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2.5rem;
}

.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
}

.cols-2:last-child {
    margin-top: 0;
}

.cols-2 img {
    width: 100%;
}

.cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 50px;
}

/* --- à 750px : deux colonnes, 3e bloc en full width --- */
@media (max-width: 1024px) {
  .cols-3 {
    grid-template-columns: 1fr 1fr;
  }

  .cols-3 > div:nth-child(3) {
    grid-column: 1 / -1; /* occupe toute la largeur */
  }
}

/* --- en mobile : une seule colonne --- */
@media (max-width: 668px) {
  .cols-3 {
    grid-template-columns: 1fr;
  }

  .cols-3 > div:nth-child(3) {
    grid-column: auto; /* revient au flux normal */
  }
}




.cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "img1 txt1 img2 txt2"
        "txt3 img3 txt4 img4";
    width: 100%;
    background: #EBE5E4;
    overflow: hidden;
}

.cols-4 > :nth-child(1) {
    grid-area: img1;
}

.cols-4 > :nth-child(2) {
    grid-area: txt1;
}

.cols-4 > :nth-child(3) {
    grid-area: img2;
}

.cols-4 > :nth-child(4) {
    grid-area: txt2;
}

.cols-4 > :nth-child(5) {
    grid-area: txt3;
}

.cols-4 > :nth-child(6) {
    grid-area: img3;
}

.cols-4 > :nth-child(7) {
    grid-area: txt4;
}

.cols-4 > :nth-child(8) {
    grid-area: img4;
}

/* Tablette : 2 colonnes inversées */
@media (max-width: 1350px) and (min-width: 600px) {
    .cols-4 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "img1 txt1"
            "txt2 img2"
            "img3 txt3"
            "txt4 img4";
    }
}

/* Mobile : 1 colonne (ordre normal) */
@media (max-width: 599px) {
    .cols-4 {
        grid-template-columns: 1fr;
        grid-template-areas:
            "img1"
            "txt1"
            "img2"
            "txt2"
            "img3"
            "txt3"
            "img4"
            "txt4";
    }
}



.cols-4 > div {
    aspect-ratio: 1/1;
    /* chaque case reste carrée */
    overflow: hidden;
    /* coupe ce qui dépasse */
}

.cols-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* l’image remplit la case sans déformation */
    display: block;
}

.cols-4 h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #543535;
    letter-spacing: .5px;
    line-height: 1.15;
    margin-bottom: 25px;
}


.rounded-img{
  width: 250px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}



.centered-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    max-width: 1400px;
    width: 90%;
    margin: auto;
}

@media (max-width:668px) {
  .centered-container {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 0 50px;
  }
  .centered-container:last-child {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0;
  }


}

.centered-container:first-child {
    padding: 0;
}
/*
.centered-container:last-child {
    padding: 80px 0 0;
}*/


.centered-container h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    color: #543535;
    position: relative;
    text-align: center;
    /* pour centrer le h2 et son filet */
    display: inline-block;
    /* permet de centrer le filet par rapport au texte */
}

.centered-container h2::after {
    content: "";
    display: block;
    width: 25%;
    /* le filet fait 35% de la largeur du h2 */
    height: 2px;
    /* épaisseur du filet */
    background: #ff4e66;
    /* couleur du filet */
    margin: 20px auto 0;
    /* espace au-dessus et centrage horizontal */
}


.content-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(40px, 2vw, 40px);
}



.small-icon img {
    display: block;
    height: 40px;
    /* taille fixe */
    width: auto;
    margin: 0 auto;
}

.large-icon img {
    display: block;
    height: 75px;
    width: auto;
    margin: 0 auto;
}

.large-icon {
    height: 75px;
    width: auto;
    /* garde les proportions de l’image */
    vertical-align: middle;
    /* si tu veux qu’elle soit alignée avec du texte */
}
.centered-small-screen{
  display: flex;
  justify-content: flex-start;
}
@media (max-width: 968px) {
  .centered-small-screen{
    display: flex;
    justify-content: center;
  }
}
.cols-2-vins {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    /* en haut */
    justify-items: center;
    /* contenu aligné à gauche */
    gap: 2.5rem;
}

@media (max-width: 968px) {
    .cols-2-vins {
        display: grid;
        grid-template-columns: 40% 1fr;
        align-items: start;
        gap: 2.5rem;
        margin: 0;
    }
}

@media (max-width: 868px) {
    .cols-2-vins {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 2.5rem;
        margin: 0;
    }
}

@media (max-width: 1300px) {
    .cols-2-vins .select-container {
        width: 100%;
        /* occupe toute la largeur */
        max-width: none;
        /* enlève la limite de 500px que tu avais mis */
        margin: 0;
        /* pas de centrage auto */
    }
}

.cols-2-vins > div {
    margin: 0;
    /* supprime le centrage auto éventuel */
}

.cols-2-inner {
    display: grid;
    grid-template-columns: 20% 1fr;
    align-items: center;
    gap: 10px;
}

.flex-left img {
    margin: 0 !important;
    align-self: flex-start !important;
    display: inline-block !important;
}

/* ===== SPACERS ===== */
.flex-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* au centres */
    align-items: flex-start;
    /* à gauche */
}

.flex-left h2 {
    font-size: 2.5rem;
}

.flex-left img {
    align-self: flex-start;
    /* l’image aussi collée à gauche */
}

.bottom-20 {
    margin-bottom: 20px;
}

.bottom-50 {
    margin-bottom: 50px;
}

.bottom-80 {
    margin-bottom: 80px;
}

@media (max-width: 968px) {
  .bottom-80 {
      margin-bottom: 0;
  }
}

.bottom-100 {
    margin-bottom: 100px;
}

@media (max-width: 968px) {
  .bottom-100 {
      margin-bottom: 50px;
  }
}

.top-100 {
    margin-top: 100px;
}

@media (max-width: 968px) {
  .top-100 {
      margin-top: 50px;
  }
}

.top-30px {
    margin-top: 30px;
}

.top-50px {
    margin-top: 50px;
}

.centered-all {
    margin: auto;
}



/* ===== FOOTER ===== */

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ff4e66;
    background: #383232;
    color: white;
    font-weight: 200;
    text-align: center;
    padding: 2rem;
    font-size: .85rem;
    min-height: 350px;
}

footer img {
    height: 100px;
    margin-bottom: 20px;
    pointer-events: none;
}


footer br {
  line-height: 2; /* certains navigateurs en tiennent compte */
}

footer p{
  line-height: 1.8;
  display: inline-block;
  color: #ffffff;
  transition: all .15s ease;
}

footer a{
  line-height: 1.8;
  display: inline-block;
  color: #ffffff;
  transition: all .15s ease;
}

footer a:hover{
font-weight: 600;}


/* ===== PAGE DE VINS ===== */

.infos-vin {
    display: grid;
    grid-template-columns: 30% 1fr;
    justify-items: start;
    align-items: center;
    /* centre verticalement chaque cellule */
    gap: 4rem;
    /*border-top: 1px solid #E8E3E3;
    border-bottom: 1px solid #E8E3E3;*/
    margin-top: 50px;
}

@media (max-width: 1024px) {
    .infos-vin {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.flex-left p{
  text-align: left;
}

.bg-infos-vins {
    background: #F2ECEB;

}

.infos-vin:last-child {
    margin-top: 0;
}

.infos-vin img {
    width: 100%;
    border-radius: 15px;
}

.infos-vin strong {
    color: #ff4e66;
    font-weight: 600;
}

.vin-item {
    display: grid;
    grid-template-columns: 380px 1fr;
    justify-items: start;
    align-items: center;
    /* centre verticalement chaque cellule */
    gap: 4rem;
    margin-bottom: 100px;
    border-top: 1px solid #D1CBCB;
    padding: 50px 0;
    margin: 80px 0 0;
}


@media (max-width: 968px) {
    .vin-item {
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: center;
        text-align: center;
        gap: 1rem;
        margin-bottom: 90px;
        padding: 80px 0 0;
    }
    .vin-item:last-child {
        padding: 80px 0 30px;
    }
    .vin-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* centre les enfants horizontalement */
        text-align: center;
        /* centre le texte */
    }

    .vin-content h3,
    .vin-content button {
        text-align: center !important;
        margin-left: 0;
        margin-right: 0;
    }

    .vin-content p {
        width: 100%;
        /* ✅ occupe toute la largeur */
        max-width: 90%;
        /* pour éviter trop de longueur */
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .vin-texte h3::after,
    .vin-content h3::after {
        content: "";
        display: block;
        width: 80px;
        /* longueur du filet */
        height: 2px;
        /* épaisseur */
        background: #ff4e66;
        margin: 10px auto 20px;
        /* auto pour centrer */
    }
}


.vin-producer{
  font-weight: 900;
  text-transform: uppercase;
  font-size:13px;
  letter-spacing: 1.5px;
}


.vin-item:last-child {
    margin-bottom: 0;
}

.vin-item img {
    max-height: 200px;
    width: auto;
}

.vin-item .vin-image img {
    max-height: 450px;
    width: auto;/* garde les proportions */
    height: auto;/* évite l’étirement */
    display: block;/* supprime les petits espaces sous l’image */
    margin: 0 auto;/* centre horizontalement si nécessaire */
}

@media (max-width: 668px) {
  .vin-item .vin-image img {
      max-height: 250px;
      width: auto;/* garde les proportions */
      height: auto;/* évite l’étirement */
      display: block;/* supprime les petits espaces sous l’image */
      margin: 0 auto;/* centre horizontalement si nécessaire */
    }
  }

.vin-meta{
  font-weight: 600;
  color: #ff4e66;
}

.wine-container {
    display: grid;
    place-items: center;
    padding: 0;
    width: 100%;

}

.vin-details {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 80px;
    height: 100%;
    width: 100%;
}

.vin-details .btn {
    margin-bottom: 0;
}

.vin-details h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;

}

.border-letf {
    display: flex;
    align-items: center;
    border-left: 1px solid #D1CBCB;
    height: 100%;
    padding-left: 50px;
}


@media (max-width: 1024px) {
    .border-letf {
        border-top: 1px solid #D1CBCB;
        border-left: 0;
        margin-top: 30px;
        padding-left: 0;

    }

    .border-letf p {
        margin-left: 0;
        padding-top: 20px;
    }
}

.btn-retirer {
    background: none;
    /* pas de fond */
    border: none;
    /* pas de bordure */
    cursor: pointer;
    /* pointeur main */
    font-size: 1rem;
    /* taille du symbole ❌ */
    color: #c00;
    /* rouge par exemple */
    padding: 0;
    margin: 0;
    text-decoration: none;
    /* enlève le soulignement */

}

.btn-retirer:hover {
    text-decoration: none;
    /* enlève le soulignement */
    color: #900;
    /* optionnel : changer couleur au hover */
}

/* ===== Galerie ===== */
.galerie-domaine {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-block: var(--section-padding);
    padding-inline: var(--side-pad);
}

.galerie-domaine .section-title {
    margin: 0 0 1rem;
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}


.galerie-grid figure {
    margin: 0;
    border-radius: 15px;
    overflow: hidden;
    background: #eee;
}

.galerie-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.galerie-grid figure {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.galerie-grid figure {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.galerie-grid figure img {
    transition: transform 0.25s ease-out;
}

.galerie-grid figure:hover img {
    transform: scale(1.05);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    display: none !important;
    place-items: center;
    background: rgba(0, 0, 0, .85);
    z-index: 999999;
    isolation: isolate;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.lightbox.open {
    display: grid !important;
    opacity: 1;
    pointer-events: auto;
}

.lightbox:not(.open) * {
    display: none !important;
}

.lb-frame {
    position: relative;
    display: inline-block;
    margin: 0;
}

#lightboxImage {
    display: block;
    width: auto;
    max-width: min(92vw, 1020px);
    max-height: 88vh;
    border-radius: 15px;
    background: #000;
}

.lb-btn {
    position: absolute;
    background: transparent;
    border: 0;
    padding: 2px;
    cursor: pointer;
    z-index: 5;
    color: #fff;
}

.lb-btn svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 50px;
    height: 50px;
}

@media (max-width: 768px) {
    .lb-btn svg {
        width: 25px;
        height: 25px;
    }
}

.lb-prev {
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-close {
    right: 5px;
    top: 5px;
}

@media (max-width: 768px) {
    .lb-prev {
        left: -5px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lb-next {
        right: -5px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lb-close {
        right: 0px;
        top: 0px;
    }
}

@media (hover: hover) {
    .lb-btn:hover {
        opacity: .65;
    }
}

[class^="lightbox__"],
[class*=" lightbox__"] {
    all: unset;
}

@media (max-width: 668px),
(hover: none) {

    #lightbox,
    #lightbox * {
        pointer-events: auto !important;
        cursor: auto !important;
    }
}


/* Responsive grille cols-2 */
@media (max-width: 768px) {
    .cols-2 {
        grid-template-columns: 1fr;
    }
}


/* ===== Boutons SOBRES (arrondi total) ===== */
.btn {
    --fg: var(--ink);
    --bg: #fff;
    --bd: #111;
    --y: 0;
    --scale: 1;
    display: inline-block;
    border: 1px solid var(--bd);
    color: var(--fg);
    background: var(--bg);
    border-radius: var(--radius-pill);
    padding: 52px 22px;
    font-weight: 500;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(var(--y)) scale(var(--scale));
    border-radius: 30px;
    transition: all 0.15s ease;
    z-index: 3000;
    margin: 25px 0;
}

.btn:hover {
    color: #fff;
    background: var(--accent);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 var(--ring) rgba(0, 0, 0, .15);
}

.btn:active {
    --y: 1px;
    --scale: .98;
}

.btn a {
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
}



.icon-pdf {
    width: auto;
    height: 60px;
    cursor: pointer;
    /* main au survol */
    display: inline-block;
    transition: transform 0.2s ease;
    margin: 10px;
    border-radius: 0 !important;
}

.icon-pdf:hover {
    transform: scale(1) translateY(-5px);
    /* petit zoom au survol */

}
.pdf-selection img {
  width: auto !important;
  height: auto !important;
  max-width: 120px !important;
  max-height: 180px !important; /* limite la hauteur sans écraser */
  object-fit: contain !important;
}


/* 1) Filet noir → remplissage noir au survol */
.btn-outline-black {
    --bg: transparent;
    --fg: #111;
    --bd: #111;
    background: transparent;
}

.btn-outline-black:hover {
    background: #111;
    color: #fff;
}

/* 2) Filet gris → remplissage noir progressif (transition douce) */
.btn-outline-soft {
    background: transparent;
    color: #000;
    border-radius: 25px;
}

.btn-outline-soft:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* 3) Plein noir sobre */
.btn-solid-black {
    background: #111;
    color: #fff;
    border-color: #111;
}

.btn-solid-black:hover {
    filter: brightness(1.05);
}


/* 5) Icône seule arrondie */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0 0;
    justify-content: center;
}

.linked {
  position: relative;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
}

.linked::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor; /* prend la couleur du texte */
  transition: transform 0.15s ease;
  transform-origin: left;
  transform: scaleX(1);
}

.linked:hover::after {
  transform: scaleX(0);
}

.linked:hover {
  color: red;
}
.cafe-btn{
  display: inline-block;
}

hr.style1 {
    width: 100%;
    background-color: #bfbfb8;
    border: none;
    height: 1px;
    margin: 80px 0;
    opacity: .6;
}
@media (max-width: 768px) {
  hr.style1 {
      margin: 30px 0;
      opacity: .6;
  }
}


.liste-vins .btn {
    --fg: var(--ink);
    --bg: #fff;
    --bd: #111;
    --y: 0;
    --scale: 1;
    display: inline-block;
    border: 1px solid var(--bd);
    color: var(--fg);
    background: var(--bg);
    border-radius: var(--radius-pill);
    padding: 15px;
    font-weight: 900;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2px;
    text-decoration: none;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(var(--y)) scale(var(--scale));
    border-radius: 0px;
    transition: all 0.25s ease;
    z-index: 10;
    margin: 30px 0 0;
}

.liste-vins .btn:hover {
    display: inline-block;
    border: 1px solid var(--bd);
    color: #fff;
    background: #000;
}


/* Tailles */
.xs {
    padding: 8px 17px 6px;
    font-size: 12px;
}

.sml {
    padding: 15px 18px;
    font-size: 15px;
}

.lg {
    padding: 14px 26px;
    font-size: 17px;
    border-radius: 60px;
}




/* ===== Effets pour textes ===== */

.blur-in {
    animation: blurIn 2s ease-in-out alternate;
}

@keyframes blurIn {
    from {
        filter: blur(10px);
        opacity: 0;
    }

    to {
        filter: blur(0);
        opacity: 1;
    }
}


.spacer {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-section {
    height: auto;
    position: relative;
    overflow: visible;
    /* ✅ Safari */
}


@media (min-width: 768px) {
    .zoom-section div:first-child {
        margin-bottom: 50px;
    }

}


.zone-texte {
    padding: 0;
    color: #000;
    /* texte noir sur fond jaune */
    max-width: 1400px;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 50px 0;
    background: #F0EDEB;
    width: 100%;
    padding: 20px;
    z-index: -10;
    border-radius: 15px;
}

.sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
    z-index: 20;
}

@media (max-width: 768px) {
    .sticky-container {
        background: #fff;
        display: flex;
        align-items: flex-end;
        height: 35vh;
        top: 45px;
    }

    .zone-texte {
        margin: 25px 0;
    }
}

@media (max-width: 768px) {
    .sticky-container img.image-final {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        left: auto !important;
        top: auto !important;
    }
}

.sticky-container img {
    width: auto;
    height: auto;
    transform-origin: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.1s linear, opacity 0.1s linear;
    border-radius: 15px;
}

.sticky-container img {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-transform: translate(-50%, -50%) scale(1);
}

.image-final {
    opacity: 0;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.1s linear;
    font-weight: 200;
    color: white;
    font-size: clamp(2rem, 5vw, 9rem);
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 668px) {
    .text-overlay {
        margin: 25px 0 0;
        width: 90%;
        font-weight: 400;

    }
}

/* Conteneurs de base */
.pause-section {
    position: relative;
    overflow: hidden;
}

#slides-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#slides {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
}

/* Styles pour chaque slide */
.slide {
    position: absolute;
    width: 50%;
    height: 50%;
    background-size: cover;
    background-position: center;
}

.slide:nth-child(1) {
    transform: translate(0, 0);
}

.slide:nth-child(2) {
    transform: translate(0, 100%);
}

/* Légendes (captions) */
.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}




/* ===== Sélecteur Vins ===== */


label {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

label:first-child {
    margin-top: 0;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 1px solid #ff4e66;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    color: #333;
    background-image: none;
}

select:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

#liste-producteurs {
    display: none;
    list-style: none;
    margin-top: 2.2rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
}

#liste-producteurs ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#liste-producteurs li {
    margin-bottom: 0.35rem;
}

#liste-producteurs li:last-child {
    margin-bottom: 0;
}

#liste-producteurs a {
    display: inline-block;
    padding: 0.5rem 0;
    text-decoration: none;
    font-size: 1rem;
    transition: all .2s ease;
    color: #000;
}

#liste-producteurs a:hover {
    margin-left: 3px;
    color: #ff4e66;
    font-weight: 600;
}

@media (max-width: 480px) {
    #liste-producteurs a {
        font-size: 1.05rem;
    }
}

.page {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

@media (max-width: 768px) {
    .page {
        gap: 30px;
    }
}

.select-container {
    background-color: #ff4e66;
    /*background-color: rgba(0, 0, 0, 0.35); */
    padding: 1.5rem;
    border-radius: 4px;
    color: white;
    margin: auto;
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 768px) {
  .select-container {
      pointer-events: auto !important;
      opacity: 1 !important;
      transform: none !important;
  }
}

.spiritueux-page .select-container {
  grid-column: 1 / -1; /* le bloc prend toute la largeur de la grille */
 width: 900px;
}

.select-container label {
    color: white;
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 25px;
    margin-top: 1rem;
}

.select-container select:focus {
    outline: none;
    border: 1px solid #fff;
}


.icon-xs {
    height: 80px;
    margin: 0 0 20px;
    pointer-events: none;
}


.icon-xl {
    height: 180px;
    margin: 0 0 20px;
    pointer-events: none;
}

.icon-md {
    max-width: 220px;
    /* empêche de s’étirer trop en largeur */
    height: auto;
    width: auto;
    margin: 0 0 20px;
    pointer-events: none;
}


.icon-page-wine {
    display: inline-block;
    /* évite le centrage auto des block */
    margin: 0 !important;
    /* supprime tout margin auto */
    align-self: flex-start;
    /* colle à gauche dans flex */
    max-width: 50px;
    /* adapte selon ta taille */
    height: auto;
    padding-bottom: 10px;
}

/*  alerte popup vin selectionné */
.notif {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4CAF50;
    /* vert succès */
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
    z-index: 1000;
}

.notif.show {
    opacity: 1;
    transform: translateY(0);
}





/* NEW */

.btn-retirer {
    background: none;
    /* pas de fond */
    border: none;
    /* pas de bordure */
    cursor: pointer;
    /* curseur main */
    padding: 0.3rem;
    /* un peu d’espace autour */
    display: flex;
    /* pour centrer l’icône */
    align-items: center;
    justify-content: center;
}

.btn-retirer ion-icon {
    font-size: 1.4rem;
    /* taille de l’icône */
    color: #d32f2f;
    /* rouge type “danger” */
    transition: color 0.2s ease;
}

.btn-retirer:hover ion-icon {
    color: #b71c1c;
    /* rouge plus foncé au survol */
}







.image-overlay {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* carré */
    overflow: hidden;
}

/* cadre qui apparait au hover */
.image-overlay::after {
    content: "";
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    /* clics passent à travers */
    transform: scale(1.05);
    /* petit zoom out initial */
}


.image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* remplit toujours */
    display: block;
}

/* overlay */
.image-overlay .overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 78, 102, 0.2);
    /* ton voile bordeaux */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* bouton cliquable */
.btn-voir {
    background: rgba(290, 290, 290, 1);
    padding: 0.7rem 1.2rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0;
    font-size: 1rem;
    color: #543535;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.15s ease, transform 0.25s ease;
    transition-delay: 0s;
}

/* bouton cliquable */
.btn-voir:hover {
    background: rgba(255, 78, 102, 0.93);
    /* bordeaux/brun */
    color: white;

}

/* hover */
.image-overlay:hover .overlay {
    opacity: 1;
}

.image-overlay:hover .btn-voir {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    /* petit délai pour l’animation */
}




.container-xl, .centered-section {
    max-width: 1400px !important;
    width: 90% !important;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container-xl, .centered-section  {
        width: 90% !important;
        margin: 0 auto !important;
    }

    .top-100 {
        padding-top: 50px;
    }
}

.photo-section {
    position: relative;
    width: 100%;
    height: 60vh;
    /* ici tu règles la hauteur de la section */
    overflow: hidden;
}

.photo-section h2 {
    animation: flicker 2.8s infinite;
}

/* image en fond */
.photo-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* texte centré au-dessus */
.centered-all {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
}





/* ===============================
   WIDGET FAVORIS
   =============================== */

/* Bouton rouge "Favoris (x)" */
#favoris-toggle {
    position: fixed;
    top: 100px;
    /* sous la navbar */
    right: 30px;
    /*background: #ff4e66; */
    background: rgba(255, 78, 102, 0.93);
    /* bordeaux/brun */
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
    /* masqué si aucun favori */
    align-items: center;
    gap: 6px;
    z-index: 1000;
}


/* Panneau qui glisse depuis la droite */
#favoris-panel {
    position: fixed;
    top: 145px;
    /* aligné avec le bouton */
    right: -300px;
    /* caché hors écran */
    width: auto;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    border-top-right-radius: 4px;
    padding: 20px;
    font-family: "Plus Jakarta Sans", sans-serif;
    z-index: 1000;
    opacity: 0;
    transition: right 0.3s ease, opacity 0.3s ease;
    box-shadow:
  0 2px 6px rgba(0, 0, 0, 0.15),   /* ombre proche */
  0 8px 20px rgba(0, 0, 0, 0.1);   /* ombre plus diffuse */
}

#favoris-panel.show {
    right: 20px;
    /* collé à droite */
    opacity: 1;
}

/* Panneau ouvert */
#favoris-panel.open {
    right: 30px;
    opacity: 1;
}


#favoris-panel:not(.open) {
  pointer-events: none;
}


#favoris-panel[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* ← la clé */
}

#favoris-panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Mobile */
@media (max-width: 768px) {
    #favoris-toggle {
        top: 90px;
        right: 20px;
    }

    #favoris-panel {
        top: 135px;
        right: 20px;
        width: calc(100vw - 40px);
        /* 20px de chaque côté */
        max-height: 60vh;
    }

    #favoris-panel.open {
        right: 20px;
        opacity: 1;
    }
}
@media (max-width: 768px) {
  #favoris-panel[aria-hidden="true"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Titre */
#favoris-panel h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    margin: 0 0 10px;
    font-size: .85rem;
    letter-spacing: 3px;
    font-weight: 600;
    margin-top: 5px;
}

#favoris-panel h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    margin: 12px 0 6px;
    text-transform: uppercase;
    padding-top: 8px;
    /* espace avant le filet */
    border-bottom: 1px solid rgba(58, 24, 24, 0.09);
    /* filet gris clair */
    color: rgba(255, 78, 102, 0.93);
    /* rouge catégorie */
}

#favoris-toggle ion-icon {
    transition: transform 0.3s ease;
}

/* Liste des favoris */
#favoris-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#favoris-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 400
}

/* Bouton retirer (ion-icon) */
#favoris-list .btn-retirer {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #000;
    /* noir, sobre */
    padding-left: 25px;
    /* 👉 espace à gauche du X */
}




/* Icône de suppression par défaut */
#favoris-list .btn-retirer ion-icon {
    color: #000;
    font-size: 1.3rem;
    pointer-events: none;
    /* le clic reste sur le bouton */
    transition: color 0.2s ease;
}

/* Au survol du bouton → change la couleur de l’icône */
#favoris-list .btn-retirer:hover ion-icon {
    color: #FF8166;
}

#favoris-count-widget {
    margin-right: -4px;
    /* resserre contre la parenthèse ) */
    margin-left: -4px;
    /* resserre contre la parenthèse ) */
}

#favoris-toggle ion-icon {
    margin-left: 0;
    /* ajoute un espace contrôlé entre (1) et le + */
}


/* Scrollbar stylisée pour le panneau Favoris */
#favoris-panel {
    scrollbar-width: thin;
    scrollbar-color: #FF8166 transparent;
    padding-top: 5px;
    /* espace en haut */
    padding-bottom: 5px;
    /* espace en bas */
}

/* Webkit (Chrome, Edge, Safari) */
#favoris-panel::-webkit-scrollbar {
    width: 4px;
    /* 👉 plus fine */
}

#favoris-panel::-webkit-scrollbar-track {
    background: #fff;
    /* fond blanc identique au panneau */
    margin: 5px 0;
    /* 👉 raccourcit la barre */
}

#favoris-panel::-webkit-scrollbar-thumb {
    background-color: #FF8166;
    /* rouge */
    border-radius: 10px;
}

#favoris-panel::-webkit-scrollbar-thumb:hover {
    background-color: #c7381c;
    /* rouge foncé au hover */
}



#favoris-toggle ion-icon {
    transition: transform 0.2s ease;
}

/* Quand le panneau est ouvert → flèche vers le bas */
#favoris-toggle.open ion-icon {
    transform: rotate(90deg);
}


/* Bloc des actions en bas du widget */
.favoris-actions {
    display: inline-block;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(58, 24, 24, 0.1);
}

/* Bouton "Vider tout" déjà stylisé, on laisse léger à gauche */

#favoris-clear {
    all: unset;
    /* reset complet */
    display: inline-block;
    flex: 0 0 auto;
    /* <-- empêche le bouton de s'étirer */
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    background: none;
}


#favoris-clear:hover {
    color: #FF8166;
}


/* Bouton rouge "ENVOYER MA SÉLECTION" */
#favoris-envoyer {
    background: rgba(255, 78, 102, 0.93);
    border: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: "Plus Jakarta Sans", sans-serif;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    max-width: 90px;
    margin-bottom: 10px;
}

#favoris-envoyer:hover {
    background: #363332;
}

#favoris-voir {
    background: rgba(255, 78, 102, 0.93);
    border: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: "Plus Jakarta Sans", sans-serif;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    max-width: 90px;
}

#favoris-voir:hover {
    background: #363332;
}

#favoris-voir,
#favoris-envoyer {
    margin-left: 0.4em;
    /* petit espace entre eux */
}


/* café = image ronde */
.favoris-item[data-type="cafe"] img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}



.favoris-actions a,
.favoris-actions button {
    flex: 1;
}



.vin-texte h3,
.vin-content h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.7rem;
    margin-bottom: 10px;
    letter-spacing: .2px;
}

@media (max-width: 668px) {
  .vin-texte h3,
  .vin-content h3 {
      font-size: 1.3rem;
  }
}


.vin-texte h3::after,
.vin-content h3::after {
    content: "";
    display: block;
    width: 120px;
    /* longueur du filet */
    height: 2px;
    /* épaisseur */
    background: #ff4e66;
    margin-top: 10px;
    /* espace entre texte et trait */
}

.vin-texte p {
    margin: 0;
    text-align: left;
}
@media (max-width: 668px) {
  .vin-texte p {
      margin: 0;
      text-align: center;
  }
}

.vin-image, .wine-container {
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 0;
    width: 100%;
    padding: 50px;
    pointer-events: auto;
}

.vin-image img, .wine-container img {
    max-width: 100%;
    max-height: 450px;
    object-fit: cover;
    /* couvre toute la zone */
    object-position: center;
    /* bien centré */
    display: block;
}

/* Mobile */
@media (max-width: 968px) {
  .vin-image, .wine-container{
    background: none !important;
    padding: 0;
    background: transparent;
    pointer-events: auto !important;
  }
  .vin-image img, .wine-container img {
      max-width: 100%;
      max-height: 250px;
      object-fit: cover;
      /* couvre toute la zone */
      object-position: center;
      /* bien centré */
      display: block;
  }
}

@media (max-width: 768px) {
  .select-container,
  .vin-content,
  .vin-item {
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }
}




/* ====== LOGO NAVBAR ====== */
.logo img {
    display: block;
    height: 50px;
    /* taille uniforme du logo */
    width: auto;
    /* conserve les proportions */
    transition: transform .15s ease-in-out;
}

/* Logo blanc quand la navbar est transparente (home en haut de page) */
nav.transparent .logo img {
    content: url('../img/logo/logo-vsc-white.svg');
}

/* Logo noir quand la navbar est en mode scrolled (pages ou après scroll) */
nav.scrolled .logo img {
    content: url('../img/logo/logo-vsc-noir.svg');
}






/* ====== FORM ====== */


.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.error {
    color: #c00;
    font-size: 0.9rem;
    margin-top: 4px;
    display: block;
}

.btn-send {
  display: inline-block;
    background: #e6792a;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
}

.btn-send:hover {
    background: #c85c10;
}

@media (max-width: 600px) {
    .form-group {
        margin-bottom: 16px;
    }

    input,
    textarea {
        font-size: 1rem;
    }

    .btn-send {
        font-size: 1rem;
        padding: 12px;
    }
}

label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;

}

.btn-send {
    display: inline-block;
    background: #ff4e66;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 1.1rem;
    font-weight: 600;
    width: auto;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-send:hover {
    background: #ff4e66;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-send:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .btn-send {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
    }
}

.required-info {
    font-size: 0.9rem;
    margin: 10px 0 20px;
    color: #444;
}

.required-info {
    color: #e6792a;
    font-style: normal;
    font-weight: 600;
    text-align: left;

}

.required-info p {
    font-size: .85rem;
    color: #ff4e66;
}

.red {
    color: #ff4e66;
    font-weight: 300;
}



#liste-produits {
    list-style: none;
    /* supprime la puce */
    padding-left: 0;
    margin-top: 20px;
}

#liste-produits .liste-item {
    background: #f7f7f7;
    padding: 12px 15px;
    margin-top: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

#liste-produits .liste-item a {
    text-decoration: none;
    color: #222;
    font-weight: 400;
    display: block;
    transition: all .2s ease;
}

#liste-produits .liste-item a:hover {
    text-decoration: none;
    color: #ff4e66;
    font-weight: 500;
    margin-left: 5px;
}
#liste-produits .liste-item:hover {
    background: #eaeaea;
}





.produit-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    /* espace entre image et texte */
    margin-bottom: 3rem;
    /* espace entre les produits */
}

.produit-image {
    flex: 0 0 250px;
    /* largeur fixe de la colonne image */
}

.produit-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.produit-content {
    flex: 1;
    /* occupe le reste de la largeur */
}

.produit-nom {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
}

.produit-producer {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.produit-desc {
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.produit-meta {
    font-style: italic;
    margin: 0 0 1rem 0;
}

.produit-content .btn {
    margin-top: 0.5rem;
}

.vin-content .vin-meta {
    margin-bottom: 0;
}

.border-left {
    display: flex;
    align-items: center;
    border-left: 1px solid #D1CBCB;
    height: 100%;
    padding-left: 50px;
}

@media (max-width: 1024px) {
.border-left {
    display: flex;
    align-items: center;
    border-left: 0 ;
    height: 100%;
    padding-left: 0;
}

.border-left p{
  text-align: left;}
}

#selection-vins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4rem; /* espace entre les cartes */
}

.vin-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s;
}

.vin-card img {
  max-height: 200px;
  display: block;
}

.vin-card h3 {
  font-size: 1rem;
  margin: 0.8rem 0 0.4rem;
}
.vin-card p {
  font-size: 0.9rem;
  margin: 0.2rem 0;
}




/* Modale full screen */
.age-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 0 30px;
}

/* Boîte centrale */
.age-modal-content {
  background: #fff;
  color: #000;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
/* Boîte centrale */
.age-modal-content p{
  color: #000;
  text-align: center;
}
/* Boutons */
.age-buttons button {
  margin: 1rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

#age-yes {
  background: #ff4e66;
  font-weight: 500;
  color: #fff;
}

#age-yes:hover {
  background: #302D2D;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),   /* ombre fine proche */
    0 2px 6px rgba(0, 0, 0, 0.05);   /* ombre plus large et diffuse */
}

#age-no {
  background: #B0A7A7;
  color: #fff;
}

#age-no:hover {
  background: #302D2D;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),   /* ombre fine proche */
    0 2px 6px rgba(0, 0, 0, 0.05);   /* ombre plus large et diffuse */

}



/* = = = = = = PAGE DOMAINES = = = = = = = */

.domaines-container{
  display: grid;
  max-width: 1400px;
  width: 90%;
  margin: auto;
}

.domaines-container p{
  text-align: center;
}

.liste-domaines {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row; /* colonne au lieu de ligne */
  justify-content: center;;    /* centre les éléments horizontalement */
  gap: 2rem;
}
@media (max-width: 600px) {
  .liste-domaines {
    justify-content: center;;    /* centre les éléments horizontalement */
    gap: 1rem;
  }
}

.liste-domaines a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.7rem;
  color: #543535;
  font-weight: 500; /* optionnel, pour rappeler ta nav */
  padding: 0.25rem 0;
}

.liste-domaines a:hover {
  color: #ff4e66;
}

.liste-domaines a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.liste-domaines a:hover::after {
  width: 100%;
}

.liste-domaines a.active {
  pointer-events: none;    /* désactive le clic */
  cursor: default;         /* curseur normal, plus la main */
  color: #ff4e66;          /* ta couleur accent */
}

.liste-domaines a.active::after {
  display: none;           /* supprime la ligne soulignée */
}

.domaine-template{
  display: grid;

}
/* = = = = = = PAGES PRODUCTEURS = = = = = = = */

.producteur {
  display: grid;
  gap: 3rem; /* espace entre les blocs */
  margin: 80px auto 0;
  max-width: 1400px;
  width: 90%;
  border-top: 1px solid #D1CBCB;
  padding-top: 50px;
}

.producteur h2{
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(35px, 2.5vw, 5rem);
  font-weight: 200;
  line-height: 1.15;
  margin-bottom: 25px;
  color: #ff4e66;
  text-align: center;
}

/* Texte haut et bas : 100% largeur */
.texte-haut,
.texte-bas {
  width: 100%;
}

.texte-haut p,
.texte-bas p {
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Galerie photo */
.galerie {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.galerie img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* force le carré */
  object-fit: cover;     /* rogne l’image pour remplir le carré */
}

/* Responsive */
@media (max-width: 1224px) {
  .galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .galerie {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 1023px) {
  .hide-xs {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-xl {
    display: none !important;
  }
}


.error-message {
  color: #d8000c;
  font-size: 0.85rem;
  margin-top: 4px;
}



form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

button.btn-send {
  display: inline-block;
  width: auto;
  align-self: flex-start; /* facultatif si tu veux le caler à gauche */
  padding: 10px 20px; /* adapte selon ton design */
  font-weight: 400;
}

label {
  font-weight: 600;
}
input, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
   }

   textarea {
     min-height: 120px;
     resize: vertical;
   }

   .error-message {
     color: #ff4e66;
     font-size: 0.85rem;
     margin-top: 4px;
   }

   .success-message {
     background: #ff4e66;
     color: #3c763d;
     padding: 10px;
     margin-bottom: 15px;
     border-radius: 4px;
   }
