#header{
    background-color: black;
}

#header .box-nav-ul .item-link {
    color: white;
}

#header .box-nav-ul .item-link .active {
    color: #BB992B;
}

#header .box-nav-ul .item-link::before {
    background: #BB992B;
}

#header .nav-icon .icon {
    color: #BB992B;
}

.tf-page-title h1 {
    color: #BB992B;
    font-size: 42px;
}

.tf-page-title {
    background-image : url(../image/page-title.png);
}


/*.grid-masonry { display: flex; margin: 0 auto; max-width: 1200px; }*/
/*.grid-item-masonry { width: 30%; margin-bottom: 10px; }*/
/*.grid-item-masonry img { width: 100%; display: block; }*/

.grid-masonry {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-sizer-masonry {
    width: 32%;
}

.grid-item-masonry {
    width: 32%;
    padding: 5px;
    box-sizing: border-box;
}

.grid-item-masonry img {
    width: 100%;
    display: block;
    border-radius: 0px;
}

.card-product-wrapper {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    overflow: hidden;
    height: 100%; /* Assure une hauteur uniforme */
    background-color: white; /* Évite les coupures de fond */
}

.card-product .card-product-wrapper img{
    margin-left: auto;
    margin-right: auto;
}

/* Assure que toutes les cartes ont une hauteur identique */
.card-product {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Assure un bon espacement */
    align-items: center;
    height: 500px !important;
    min-height: 450px; /* Ajuste selon la hauteur souhaitée */
    padding: 15px;
}

/* S'assure que le wrapper image occupe un espace cohérent */


.img-product {
    width: auto !important;  /* Évite l'écrasement */
    height: 100% !important; /* L'image prend toute la hauteur */
    max-width: 100%; /* S'assure qu'elle ne dépasse pas en largeur */
    object-fit: contain !important; /* Empêche le rognage */
}

.img-hover {
    width: auto !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: contain !important;
}

/* Corrige le comportement du Grid pour éviter les chevauchements */
.tf-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Ajuste les colonnes de manière fluide */
    gap: 20px; /* Ajoute un espacement entre les cartes */
    align-items: start; /* Assure que toutes les cartes s'alignent correctement */
}


.history-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 600px;
    text-align: justify;
}

.w-100 {
    width: 100%;
    max-width: 100% !important;
}

.history-text h2 {
    font-size: 26px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

.history-text p {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.history-text strong {
    color: #BB992B; /* doré pour mettre en avant les dates et personnages */
    font-weight: bold;
}


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Fond sombre */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Conteneur de l'image et du texte */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column; /* Ajouté pour empiler l'image et le texte */
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Image dans le lightbox */
.lightbox img {
    max-width: 90vw; /* Max 90% de la largeur de l'écran */
    max-height: 70vh; /* Max 70% de la hauteur de l'écran pour laisser de l'espace au texte */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.3s ease-in-out;
    margin-bottom: 20px; /* Ajout d'un espace entre l'image et le texte */
}

/* Texte sous l'image */
#lightbox-text {
    color: white; /* Texte en blanc */
    font-size: 1.2rem; /* Taille du texte */
    margin-top: 10px; /* Un peu d'espace entre l'image et le texte */
    text-align: left; /* Centrer le texte */
    font-family: Arial, sans-serif;
    padding: 10px; /* Un peu d'espace autour du texte */
    max-width: 90%; /* Ne pas laisser dépasser le texte de la largeur de l'image */
}


/* Effet de fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Centrer et styliser la popup */
.modal-content {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

/* Boutons */
.age-verification-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.age-verification-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Image */
.modal-top img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.text-gold {
    color: #BB992B;
}



.vignoble.swiper-slide {
    display: flex; /* Permet de centrer les images */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    height: 600px; /* Définis une hauteur fixe (ajuste selon tes besoins) */
    overflow: hidden; /* Évite que l'image dépasse */
}

.vignoble.swiper-slide img {
    height: 600px; /* Remplit la hauteur du conteneur */
    width: auto; /* Garde le ratio de l'image */
    object-fit: cover; /* Ajuste pour éviter les déformations */
}


.list-parcelles {
    text-align: left;
    list-style-position: inside;
    padding-left: 0;
}

.list-parcelles ul {
    padding-left: 20px; /* Pour les sous-listes */
}

.list-parcelles li {
    margin-bottom: 8px; /* Espacement entre les éléments */
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

h2.heading {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    font-family: "Albert Sans", sans-serif;
    margin-bottom: 20px;
    line-height: 33.6px;
}


.blog-article-item.style-row .article-content .article-label span{
    background-color: var(--white);
    border: 1px solid var(--line);
}
.blog-article-item .article-label span {
    background-color: var(--white);
    color: var(--main);
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    padding: 0 16px;
    height: 31px;
    border-color: var(--white);
}

.tf-languages {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tf-languages button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
}

.tf-languages button.active,
.tf-languages button:hover {
    opacity: 1;
}

.tf-languages img {
    display: block;
    width: 20px;
    height: auto;
}

.lang-switch img {
    width: 24px;
    height: 16px;
    object-fit: contain;
    display: block;
}



.legal-wrapper {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h5 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #BB992B;
}

.legal-section ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.legal-section ul li {
    margin-bottom: 0.4rem;
}

.legal-wrapper a {
    color: #BB992B;
    text-decoration: underline;
}

.legal-wrapper a:hover {
    text-decoration: none;
}








