:root{ --topbar-offset: 96px; }

section[id], .slide[id]{
  scroll-margin-top: var(--topbar-offset);
}

/* ===================================
   Animation pour tous les éléments sauf les images
   =================================== */
[data-animate]:not(figure) {
  transform: translate3d(0, 3rem, 0);
  opacity: 0;
}

.animated:not(figure) {
  animation: animate 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: var(--stagger, 0ms);
}

@keyframes animate {
  to { transform: none; opacity: 1; }
}

/* ===================================
   Reveal pour les images dans figure
   =================================== */
figure[data-animate] {
  position: relative;
  overflow: hidden; /* masque le pseudo-élément */
}

figure[data-animate] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* fade-in */
}

/* Masque blanc pour le reveal */
figure[data-animate]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(0);
  z-index: 2;
  pointer-events: none;
}

/* Animation du voile et de l’image */
figure[data-animate].animated::before {
  animation: reveal 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

figure[data-animate].animated img {
  animation: fadeIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* Keyframes */
@keyframes reveal {
  to { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===================================
   Réduction du mouvement
   =================================== */
@media (prefers-reduced-motion: reduce) {
  figure[data-animate]::before { transform: none !important; display: none !important; }
  figure[data-animate] img { opacity: 1 !important; animation: none !important; }
  [data-animate]:not(figure) { transform: none !important; opacity: 1 !important; animation: none !important; }
}







html, body { font-family: "Jost"; color: #575a75; }

body {
  overflow-x: hidden;
}

a.bouteille { text-decoration: none; color: #a4a56c; transition: opacity .1s ease, transform .1s ease; }

a.bouteille:hover { opacity: 0.8; transform: scale(1.02); }

a.bouteille .titrebouteille {
  margin-top:1rem;
  font-weight: bold;
  letter-spacing:0.1rem;
}

/*
.bouteille:first-of-type {
  position: relative;
}

.bouteille:first-of-type::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: #f00;
}
*/

#vins h2 span {
  font-family: 'Jost';
  font-size: 1.2rem;
  font-weight: 400;
}
.btn-icon { 
    color: #13271b;
    text-decoration:none;
    padding: 0.75rem 3rem 0.75rem 0rem;
    border-radius: 0.5rem;
}
.btn-icon.achat {
  color: #fff;
  background: #a4a56c;
  padding: 0.75rem 3rem 0.75rem 3rem;
}
.btn-icon img {
  transition: transform 0.3s ease;
}
.btn-icon:hover img {
  transform: translateX(-6px);
}

.btn-custom {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background-color: #a4a56c;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 2.5rem;
  border-radius: 0.25rem;
  font-weight: bold;
  border: 0;
  transition: color .3s ease;
  z-index:1;
}

.btn-custom::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;                    /* top:0; right:0; bottom:0; left:auto */
  width: 0%;                            /* dÃ©marre Ã  0 */
  background: #fff;                     /* couleur de remplissage */
  z-index: -1;
  transition: width .35s ease;          /* anim largeur */
}

.btn-custom:hover::before, .btn-custom:focus-visible::before {
    left: 0;
    right: auto;
    width: 100%;
}

.btn-custom:hover,
.btn-custom:focus-visible {
  color: #a4a56c;                       /* texte devient lisible sur fond blanc */
}


blockquote footer { color:#a4a56c; }

.btn-icon .ico{ width:30px; height:30px; margin-right:.5rem; vertical-align:middle; }
.rb-quote{ position:relative; padding-left:2.2rem; margin:2rem 0; }
.rb-quote .quote-mark{ position:absolute; left:0; top:-0.5rem; width:26px; height:26px; }
.rb-quote p { font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;  }

hr {
  border: none;
  height: 1px;
  background-color: #bdaf82;
}

.container-menu {
  max-width: 1620px;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-right: auto;
  margin-left: auto;
}

.slide{
  height: auto;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
}

/* ronds de navigation */
#dotsNav{
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  display:flex; flex-direction:column; gap:10px; z-index:1000;
}
#dotsNav button{
  width:10px; height:10px; border-radius:50%; border:0; padding:0; cursor:pointer;
  background: rgba(255,255,255,.45); transition: transform .15s ease, background .15s ease;
}
#dotsNav button[aria-current="true"]{ background:#fff; transform: scale(1.35); }

.slide-home {
  position:relative;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 2;
}
@supports (height: 100svh) {
  .slide-home{
    min-height: 100svh; /* évite le "saut" quand la barre d’URL change */
  }
}
.slide-home::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.25); /* voile noir */
  z-index: 2;
}
.slide-home > * {
  position: relative;
  z-index: 3;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: crossfade 8s infinite;
}

.bg1 { background-image: url("img/bandeau-artisanspartisans-homepage01.webp"); animation-delay: 0s; }
.bg2 { background-image: url("img/bandeau-artisanspartisans-homepage02.webp"); animation-delay: 4s; }

@keyframes crossfade {
  0%   { opacity: 0; }   
  10%   { opacity: 1; }
  50%  { opacity: 1; }   /* reste bien visible */
  60%  { opacity: 0; }   /* fade out */
  100% { opacity: 0; }
}

.logo {
    width: 70%;
    max-width: 412px;
}
.stitle {
  width: 85%;
  max-width: 700px;
  margin-top: 7rem;
}

.form-result {
  font-size:1.4rem;
  font-weight: bold;
  color: #007A65;
}

/* TOPBAR */
.topbar{
  position: fixed; inset: 0 0 auto 0;
  z-index: 9000; pointer-events:auto;
  padding: 18px 28px;
  color:#fff;
  height: 96px;
  transition: background .1s ease;
}
.topbar a {
  color: #fff;
  text-decoration:none;
  font-size:1.2rem;
}
.topbar.is-solid a {
  color: #000;
}
.topbar.is-solid img {
  filter: invert(1);
}
.topbar .brand img{ opacity:0; display: none; height: 30px; transition: opacity .25s; }

.topbar.is-solid .brand img {
  display: block;
  opacity:1; 
}

/* Option: fond solide dès qu’on quitte la 1re slide */
.topbar.is-solid{
    background-image: url(img/bandeau-navigation-interieure.webp);
    background-color: #ffffff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
}

/* FLÈCHE BAS */
#arrowDown{
  position: absolute; left:50%; bottom: 30px; transform: translateX(-50%);
  width:54px; height:54px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent; color:#fff; cursor:pointer;
  display:grid; place-items:center; z-index:1100;
  outline:none;
}
#arrowDown .chevron{
  display:block;
  border-right:2px solid rgba(255,255,255,.7);
  border-bottom:2px solid rgba(255,255,255,.7);
  transform: translateY(-8px) rotate(45deg);
  transition: width .25s, height .25s;
  width:26px; height:26px;
}

#arrowDown[hidden]{ display:none; }

.burgermenu {
  position: relative;
  border: none;
  background: none;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  outline:0;
}

/* Container central invisible */
.burgermenu span {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transform: translateY(-50%);
}

/* Traits visibles */
.burgermenu span::before,
.burgermenu span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.19,1,0.22,1);
}
.burgermenu.opened:hover {
  transform: rotate(90deg);
  transition: transform 0.6s ease-in-out;
}

.topbar.is-solid .burgermenu span::before,
.topbar.is-solid .burgermenu span::after {
  background: #000;
}

.burgermenu span::before { top: -5px; }
.burgermenu span::after  { top:  5px; }

.burgermenu:hover span::before {
  transform: translateY(-2px);
}
.burgermenu:hover span::after {
  transform: translateY(2px);
}

.burgermenu.opened span::before {
  transform: translateY(5px) rotate(45deg);
}
.burgermenu.opened span::after {
  transform: translateY(-5px) rotate(-45deg);
}


/* ----- Overlay ----- */
#menuOverlay{
  position: fixed; inset:0; z-index:3000;
  display:block; opacity:0; pointer-events:none;
  transition: opacity .28s cubic-bezier(.4,0,.2,1);
}
#menuOverlay .menu-bg{
  position:absolute; inset:0;
  background: url(img/bandeau-artisanspartisans-homepage01.webp);
  background-size: cover;
}
#menuOverlay::after{                        /* voile sombre + léger blur */
  content:""; position:absolute; inset:0;
  background: rgba(0,0,0,.5);
}
#menuOverlay .menu-content{
  position:relative; z-index:1; color:#fff;
  padding: clamp(28px,4vw,56px) 0;
}
#menuOverlay .menu-logo { 
    height: 48px;
    margin-top: 6rem;
}

.menu-content .row { max-width: 50rem; }

.col-img{ position:relative; }                 /* parent de référence */
.col-img .media-cover{ flex: 1;           /* prend toute la hauteur dispo */
  display: flex; }
.col-img .media-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/* Liens */
.menu-primary a {
  font-family: "Anton";
  font-weight: 100;
}
.menu-primary a, .menu-secondary a{ 
  display:block; color:#fff; text-decoration:none;
  font-size:clamp(1.25rem, 1.2vw, 1.75rem);
  padding:.35rem 0;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-primary a:hover, .menu-secondary a:hover {
  opacity:.8;
  transform: translateX(6px);
}
.menu-secondary h3{
  font-weight:800; font-size:clamp(1.25rem,1.2vw,1.75rem); margin-bottom:.75rem;
}
.menu-secondary a{ 
  display:block;
}
.menu-secondary a:first-of-type::before{
  content:"";
  display:block;
  width:60px;
  height:1px;
  background: rgba(255,255,255,.25);
  margin-bottom:.6rem; /* espace entre le trait et le lien */
}
.menu-secondary a::after{
  content:"";
  display:block;
  width:60px;                 /* le trait de 100px */
  height:1px;
  background: rgba(255,255,255,.25);
  margin-top:.6rem;            /* espace au-dessus du trait */
}
a.legal {color: #fff; display:inline-block; }
.vert { color: #132819; }
/* option : pas de trait après le dernier lien */
.menu-secondary a:last-child::after{ content:none; }
/* Etat ouvert */
body.menu-open #menuOverlay{ opacity:1; pointer-events:auto; }

/* Cacher tout le reste de la topbar quand le menu est ouvert (sauf burger) */
body.menu-open .topbar .brand,
body.menu-open .topbar .topbar-actions, body.menu-open a.lang { opacity:0; visibility:hidden; pointer-events:none; }

a.lang, .topbar-actions a {
  transition: opacity .2s ease;
}
a.lang:hover, .topbar-actions a:hover {
  opacity:.6;
}
a.lang.active {
  font-weight: bold;
}
.accroche {
    font-size: clamp(27px, 4vw, 4vw);
    font-family: 'Poppins';
    font-weight: 100;
}
.accroche span {
  font-weight: 300;
}
.links a {
  color: #fff;
  text-decoration:none;
  font-size: 1.2rem;
}
.links a:hover img {
    transform: translateX(-6px);
}
.links a img {
    transition: transform 0.3s ease;
}

/* Assure la visibilité du burger au-dessus de l’overlay */
.btn-menu{ position:relative; z-index:3100; }

/* Option accessibilité focus */
#menuOverlay a:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

.terroir {
  background: url(img/image-terroir01.webp);
  color: #626351 !important;
}

.engagements {
  background: url(img/image-nosengagements01.webp);
  color: #626351 !important;
}

.cave {
  background: url(img/image-lacave02.webp);
  color: #fff !important;
}
#news, #news-detail {
  background-color: #f6f6f4;
}
.news-detail {
  padding-top: 3rem !important;
  color: #13271b !important;
}
.news-detail h4 {
  font-style: normal;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #13271b;
}
.news-detail a.back {
  color: #13271b;
  text-decoration: none;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  font-weight: bold;
}
.news-detail a.back img {
  width: 20px;
  transition: transform 0.3s ease;
}

.news-detail a.back:hover img {
  transform: translateX(-6px); /* décalage vers la gauche */
}

.contact {
  background: url(img/bandeau-vins.webp);
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #989b66;
  color: #fff !important;
  background-size: contain;
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left:2rem;
  padding-right:2rem;
  font-size: 1.2rem;
}

.section-content {
    background-size: cover;
    background-position: center center;
    min-height: 100dvh;
}
#carte {
  background-image: url(img/caret-domaines-homepage.webp);
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #162e18;
  color: #fff !important;
  background-position: top center;
  aspect-ratio: 16 / 8.4;
  width: 100%;
}
#carte.fond4domaines{
  background-image:
    url(img/couche-4domaines.webp),
    url(img/caret-domaines-homepage.webp);
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: contain, contain;
}
#carte.fondpartenaires{
  background-image:
    url(img/couche-partenaires.webp),
    url(img/caret-domaines-homepage.webp);
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: contain, contain;
}

#carte .domaines-hotspots, #carte .domaines-hotspots-partenaires{
  position: absolute;
  inset: 0;
  z-index: 4; /* au-dessus des backgrounds, sous .links si tu veux */
}

/* zone cliquable */
#carte .domaines-hotspots .hs, #carte .domaines-hotspots-partenaires .hs{
  position: absolute;
  display: block;
}
#carte .domaines-hotspots .hs:hover, #carte .domaines-hotspots-partenaires .hs:hover{
  background: rgba(0,0,0,.1);
}

#carte .hs-1{ left: 34.41%; top: 50.14%; width: 8.48%;  height: 13.65%; }  /* Murailles */
#carte .hs-2{ left: 30.16%; top: 64%; width: 9.21%;  height: 9%; }         /* Pierre Bories */
#carte .hs-3{ left: 12.19%; top: 68.64%; width: 12.43%; height: 12.07%; }  /* Rives-Blanques */
#carte .hs-4{ left: 29.48%; top: 73.84%; width: 11.06%; height: 11.79%; }  /* Ollieus Romanis */

#carte .hs-a{ left: 45.8%; top: 30.2%; width: 7.8%; height: 13.7%; }  /* zone Faugères */
#carte .hs-b{ left: 68.4%; top: 20.1%; width: 9.2%; height: 11.10%; }  /* zone Pic Saint-Loup */
#carte .hs-c{ left: 31.2%; top: 82.6%; width: 11.8%; height: 11.40%; }  /* zone Fitou */



.chateau {
  z-index:2;
  max-width:740px;
  text-align:center;
  font-size:1.3rem;
}
.ollieux, .rivesblanques, .champdesmurailles, .pierrebories {
  background-size: cover !important;
  background-position: center center !important;
  min-height: 100dvh;
}
.ollieux {
  background-image: url(img/ollieux-romanis.webp) !important;
}
.rivesblanques {
  background-image: url(img/rives-blanques.webp) !important;
}
.champdesmurailles {
  background-image: url(img/champdesmurailles.webp) !important;
}
.pierrebories {
  background-image: url(img/pierre-bories.webp) !important;
}
.fond-chateau::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

#carte .links {
  top: 2rem;
  left: 2rem;
  z-index: 8;
}
@media (min-width: 1200px) {
  #carte .links {
    left: 9rem;
  }
}

#carte .links a {
  opacity: .6;
}
#carte .links a.active {
  font-weight: bold;
  opacity: 1;
}
.external {
  background: rgba(0,0,0,.35);
  padding:0.5rem;
  padding-left:2rem;
  padding-right:2rem;
  color: #fff;
  letter-spacing:0.5rem;
  text-decoration:none;
}
.external img {
  transition: transform 0.3s ease;
}
a.external:hover img {
  transform: translateX(-6px); /* décalage vers la gauche */
}

#domaine {
  background-image: url(img/photo-qui-sommes-nous01.webp);
  background-color: #162e18;
  color: #fff !important;
}
#territoire {
  background-image: url(img/photo-qui-sommes-nous02.webp);
  background-color: #162e18;
  color: #fff !important;
}
#manifeste {
  background-image: url(img/photo-manifeste01.webp);
  background-color: #162e18;
  color: #fff !important;
}
#viticulture {
  background-image: url(img/photo-viticulture.webp);
  background-color: #162e18;
  color: #fff !important;
}
#cultivons {
  background-image: url(img/photo-cequenouscultivons-innover01.webp);
  background-color: #162e18;
  color: #fff !important;
}
#modele-hybride {
  background-image: url(img/photo-hybride-cultiver01.webp);
  background-color: #162e18;
  color: #fff !important;
}
#valeurs {
  background-image: url(img/photo-hybride-valeurs01.webp);
  background-color: #162e18;
}
#nos4domaines, #valeurs, #domaines-partenaires
{
  background-color: #efefe7;
  color: #13271b;
}
#vins {
  background: url(img/bandeau-vins.webp);
  background-color: #f6f6f3;
  background-size: auto;
  background-position: top center;
  background-repeat: no-repeat;
  color: #575a75;
}
#vins a.back {
  color: #13271b;
  text-decoration: none;
  transition: transform 0.3s ease;
  margin-left:6px;
}

#vins a.back img {
 transition: transform 0.3s ease;
}

#vins a.back:hover img {
  transform: translateX(-6px); /* décalage vers la gauche */
}

.paper{
  position: relative;
  padding: 3rem;
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.h-100-dvh {
  min-height:100dvh;
}
.paper h2, #vins h2, #contact h2, #equipe h2 {
  font-family: "Anton";
  font-size: 2rem;
  line-height: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 100;
}
#vins h2, #nos4domaines h2, #domaines-partenaires h2, .section-content h2 {
  color: #a4a56c;
}
#equipe h2
{
  color: #cdcfaa;
}
.paper a {
  color: #13271b;
}
.paper a:hover, a.links-domain:hover {
  opacity: .8;
}

.paper ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.paper ul li {
  position: relative;
  padding-left: 3rem; /* espace pour l’icône */
  margin-bottom: .75rem;
}

.paper ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em; /* aligne avec la première ligne du texte */
  width: 32px;
  height: 16px;
  background: url("img/picto-fleche-droite.svg") no-repeat center;
  background-size: contain;
}
b, strong {
    font-weight: 600;
}
.paper h3 {
  font-family: 'Poppins';
  font-weight:100;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}
.paper h4 {
  font-size: 1.8rem;
}
.paper p, label, .paper ul li, #vins ul li {
  font-size: 1.3rem;
}
#vins p {
  font-size: 1.3rem;
  color: #13271b;
}

a[href^="tel:"] {
  text-decoration: none; /* pas de soulignement */
}

a[href^="tel:"]:hover {
  color: #fff;          /* reste blanc au survol */
  text-decoration: underline; /* ou none si tu veux jamais de souligné */
}
.next {
  background: #132819;
  color: #fff;
  border:0;
  border-radius: 0.5rem;
  border: 1px solid #b2b38b;
  outline:0;
  font-size: 1.1rem;
  padding:1rem;
  padding-left: 3rem;
  padding-right: 3rem;
  font-weight: bold;
}
.next:hover {
  background: #fff;
  color: #132819;
}

.form-control {
    background: #9d9f6e;
    border: 0;
    padding: 1.2rem;
    border-radius: 0.5rem;
    border: 1px solid #b0b08a;
    color: #fff;
}

.coords p {
  margin:0;
}

.coords a {
  color: #fff;
}

 .leaflet-map-300{ width:100%; height:300px; border-radius:.5rem; overflow:hidden; }
  /* optionnel : un peu d'ombre à l’icône */
  .map-pin { filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }

  .leaflet-map-300 .leaflet-tile {
  filter: grayscale(100%) contrast(1.05) brightness(0.95);
}

.list-green{
  --dot: #132819;          /* vert */
  list-style: none;
  margin:0;
  padding: 0;
}
.list-green li{
  position: relative;
  padding-left: 1.25rem;   /* espace pour la pastille */
  margin: .35rem 0;
}
.list-green li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;             /* centrage vertical approximatif */
  transform: translateY(-50%);
  width: .3em;
  height: .3em;
  border-radius: 50%;
  background: var(--dot);
}

.vins-stage{ 
  display:grid;
  overflow:hidden;
  margin-top: 5rem;
  margin-bottom: 5rem;
}
.panel{ grid-area:1/1; transition:transform 420ms cubic-bezier(.18,.88,.22,1); will-change:transform,opacity; }

/* états par défaut */
.panel-level1{ transform:translateX(0);    pointer-events:auto; }
.panel-detail{ transform:translateX(100%);  pointer-events:none; }

#vins.state-detail .panel-detail{ transform:translateX(0);    pointer-events:auto; }

#vins.state-detail .panel-level1 {
  transform: translateX(-100%);
  pointer-events: none;
  height: 0;
}


/* conteneur */
.tabs { width:100%; }

/* scène : superposition des panneaux, overflow caché */
.tabs-stage{
  display:grid;
  overflow:hidden;
  position:relative;
}

/* panneaux */
.tabs-stage > div{
  grid-area:1/1;
  transform:translateX(100%);
  opacity:0;
  visibility: hidden;
  pointer-events:none;
  transition:transform 420ms cubic-bezier(.18,.88,.22,1), opacity 420ms;
  will-change:transform,opacity;
}

/* état actif */
.tabs-stage > div.is-active{
  transform:translateX(0);
  opacity:1;
  visibility: visible;
  pointer-events:auto;
}

/* états de sortie du panneau courant */
.tabs-stage > div.to-left  { transform:translateX(-100%); }
.tabs-stage > div.to-right { transform:translateX(100%); }

/* états d'entrée du nouveau panneau (avant activation) */
.tabs-stage > div.from-right{ transform:translateX(100%); opacity:0; }
.tabs-stage > div.from-left { transform:translateX(-100%); opacity:0; }

/* pager */
.tabs-pager{
  margin-top:1rem;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
}
.tabs-pager .pager-btn{
  min-width:24px; height:34px; padding:0;
  border:0;
  background:transparent;
  color: #fff;
  line-height:32px;
  text-align:center;
  cursor:pointer;
  font-size: 1.3rem;
}
.tabs-pager .pager-btn[disabled]{ opacity:0; cursor:default; }
.tabs-pager .pager-num[aria-current="true"]{
    background: transparent;
    color: #a4a56c;
    font-weight: bold;
    border-bottom: 1px solid #a4a56c;
}
.tabs-pager .pager-btn img
{
    height: 30px;
    margin-bottom: 3px;
    transition: transform 0.3s ease;
}
.tabs-pager.beige .pager-btn{
  color: #13271b;
}
.tabs-pager.beige .pager-num[aria-current="true"]
 {
  color: #a4a56c;
  border-bottom: 1px solid #a4a56c;
 }

.pager-prev:hover img {
  transform: translateX(-6px);
}
.pager-next:hover img {
  transform: translateX(6px);
}
.pager-num {
  transition: opacity 0.1s ease;
}
.pager-num:hover {
  opacity:.8;
}


.img-tile {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.img-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TEXTE CENTRÉ HORIZONTALEMENT + EN BAS */
.img-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;          /* ajuste la hauteur si besoin */
  text-align: center;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  pointer-events: none;
  font-size: 1.3rem;
}


#news {
  background: url(img/bandeau-vins.webp);
  background-position: top center;
  background-repeat: no-repeat;
            padding: 80px 0;
        }

#news .row > div:nth-child(1), #news .row > div:nth-child(3) {
  margin-top: 6rem;
}


/* ===== Réglage hauteur fixe desktop/tablette ===== */
:root {
  --news-carousel-h: 700px; /* ajuste ici la hauteur désirée */
}

/* --- Titre --- */
.news-title {
  font-size: 2rem;
  font-family: "Anton";
  font-weight: 700;
  color: #a4a56c;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

/* --- Carte --- */
.news-card {
  display: block;
  border-radius: 0;
  height: 100%;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.news-card:hover { transform: translateY(-5px); }

.news-image {
  width: 100%;
  display: block;
  /* Réserve d’espace pour éviter le reflow avant chargement image */
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.news-content { padding-top: 1rem; }

.news-date {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #a4a56c;
  margin-bottom: 20px;
}

.news-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #13271b;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #13271b;
}

/* --- Carousel Desktop/Tablette --- */
#newsCarousel .carousel-inner {
  display: grid;                 /* superpose les slides */
  position: relative;
  overflow: hidden;              /* supprime toute scrollbar interne */
}

/* Chaque slide remplit la cellule grid et la hauteur fixée */
#newsCarousel .carousel-item {
  grid-area: 1 / 1;
  transition: transform .6s ease, opacity .6s ease;
  transform: translateX(0);
  opacity: 0;
  visibility: hidden;
}
#newsCarousel .carousel-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Assure la même hauteur visuelle à l’intérieur du slide */
#newsCarousel .carousel-item > .row {
  min-height: var(--news-carousel-h);
  align-items: stretch;
}

/* états de transition */
#newsCarousel .carousel-item.to-left   { transform: translateX(-100%); opacity: 0; }
#newsCarousel .carousel-item.to-right  { transform: translateX(100%);  opacity: 0; }
#newsCarousel .carousel-item.from-left { transform: translateX(-100%); opacity: 0; }
#newsCarousel .carousel-item.from-right{ transform: translateX(100%);  opacity: 0; }

/* --- Contrôles --- */
#newsCarousel .carousel-prev,
#newsCarousel .carousel-next {
  width: 30px;
  height: 30px;
  top: 160px;
  position: absolute;
  bottom: 0;
  z-index: 1;
  background: transparent;
  border: 0;
}
#newsCarousel .carousel-prev { left: -100px; }
#newsCarousel .carousel-next { right: -50px; }

#newsCarousel .carousel-prev img,
#newsCarousel .carousel-next img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
}

#newsCarousel .carousel-next:hover img {
  transform: translateX(6px);
}
#newsCarousel .carousel-prev:hover img {
  transform: translateX(-6px);
}

#newsPager {
    display:none !important;
  }

.carousel-prev.is-hidden,
.carousel-control-prev.is-hidden,
.carousel-next.is-hidden,
.carousel-control-next.is-hidden {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 1560px) {
  #newsCarousel .carousel-prev,
  #newsCarousel .carousel-next {
    display:none;
  }
}

@media (min-width: 992px) and (max-width: 1560px) {
  #newsPager {
    display: flex !important;
  }
}

@media (max-width: 992px) {

  #newsCarousel .carousel-inner {
    display: inline-block;
  }
  #newsCarousel .carousel-item {
      display: block;
      float: none;
      grid-area: none;
      opacity: 1;
      visibility: visible;
  }

  #news .row > div:nth-child(1), #news .row > div:nth-child(3) {
    margin-top: 4rem;
  }

  .btn-icon.achat {
    padding: 0.75rem 2rem 0.75rem 2rem;
  }

}





@media (max-width: 600px){
  .brand {
    display:none;
  }
}

@media (max-width: 1200px){
  #dotsNav, #arrowDown{ display:none !important; }  /* cache les aides */

  /* cacher le pager */
  .tabs-pager {
    display: none !important;
  }

  /* scène = affichage normal */
  .tabs-stage {
    display: block;
    overflow: visible;
  }

  /* panneaux : s'affichent à la suite */
  .tabs-stage > div {
    position: relative;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: none !important;
    margin-bottom: 2rem; /* espace entre blocs si besoin */
  }
   
   .section-content {
        background-image: none !important;
    }
}

@media (min-width: 1400px){
  .paper{
    padding-left: 6rem;
    padding-right: 10rem;
  }
  .territoire, .manifeste, .news-detail {
    padding-left: 6rem;
  }
}

@media (min-width: 1200px) {
    .col-xl-44 {
        flex: 0 0 auto;
        width: 43.5%;
    }
    .col-xl-56 {
        flex: 0 0 auto;
        width: 56.5%;
    }

    .col-xl-37 {
        flex: 0 0 auto;
        width: 36.5%;
    }
    .col-xl-63 {
        flex: 0 0 auto;
        width: 63.5%;
    }
}



.slide.equipe{
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}
.row-equipe {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* Colonnes pleine hauteur */
.equipe-left,
.equipe-right{
  min-height: 100dvh;
}

/* Grande image à gauche */
.equipe-hero{
  position: relative;
}
.equipe-hero img{
  object-fit: cover;
  display: block;
}

/* Pagination 1..10 en bas de l'image gauche (comme la capture) */
.equipe-pagination{
  position: absolute;
  left: 13rem;
  top: -3rem;
  gap: 1rem;
}
.equipe-pagination span{
  font-family: "Anton";
  font-size: 1.2rem;
  letter-spacing: .02em;
  color: #a4a56c;
}

/* Panneau vert à droite */
.equipe-panel{
  background: #8f9360; /* vert olive proche capture */
  color: #1a1a1a;
  display: flex;
  align-items: flex-start;
}
.equipe-panel-inner{
  padding: 5rem 3.5rem 9.5rem; /* gros padding + place pour la carte en bas */
  max-width: 1000px;
}

.equipe-middle-card, .equipe-small-card {
  z-index:99;
}

/* Titres */
.equipe-lead{
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.equipe-text{
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  opacity: .92;
}

/* Vignettes avec bandeau nom blanc */
.equipe-thumb{
  overflow: hidden;
}
.equipe-thumb img{
  object-fit: cover;
  display: block;
}
.equipe-middle-card img
{
  aspect-ratio: 3 / 3.7;
}
.equipe-small-card img
{
  aspect-ratio: 1 / 1;
}
.equipe-thumb-name{
  background: #fff;
  text-align: center;
  padding: .9rem 1rem;
  font-weight: 600;
  font-size: 1rem;
}
.mb-negative-8 {
  margin-bottom: -8rem;
}

/* Carte blanche en bas (chevauche) */
.equipe-card{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: #fff;
}

.equipe-card-inner{
  padding: 2.2rem 0;
}

/* Arrows à gauche */
.equipe-arrows{
  gap: 2rem;
  padding-top: .15rem;
}
.equipe-arrow{
  width: 40px;
}
.equipe-arrow:hover, .equipe-pagination span:hover{
  opacity:.8;
}

/* Contenu carte */
.equipe-card-content
{
  color: #1a1a1a;
}
.equipe-name{
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .35rem;
}
.equipe-role{
  font-size: 1rem;
  margin-bottom: .6rem;
  opacity: .9;
}
.equipe-bio{
  font-size: 1rem;
  line-height: 1.7;
  max-width: 920px;
  min-height: 80px;
}
#equipe .equipe-pagination span.is-active{
  font-size:1.6rem;
  color: #fff;
  line-height: 1.7rem;
}

/* Responsive : sur mobile la carte reste en bas mais la section s'étire */
/*@media (max-width: 1199.98px){
  .slide.equipe{
    min-height: auto;
  }
  .equipe-left,
  .equipe-right{
    min-height: auto;
  }
  .equipe-panel-inner{
    padding: 2.75rem 1.25rem 9.5rem;
    max-width: none;
  }
}*/