/*
 * Vineamea — CSS personnalisé
 * Consolidé depuis les blocs <style> inline de la page d'accueil
 * Chargé via wp_enqueue_style() dans vineamea-fiche-vin.php
 */

/* ====================================================
   Cartes produit
   ==================================================== */

/* --- 1. Style de la "Carte" (Commun) --- */
.wp-block-post {
    background-color: #ffffff !important;
    border-radius: 4px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.wp-block-post:hover {
    transform: translateY(-5px);
}

/* --- 2. Ajustement Ordinateur --- */
@media (min-width: 769px) {
    .wp-block-post {
        margin-left: 60px !important; 
        margin-right: 0 !important;
        margin-bottom: 40px !important;
    }
}

/* --- 3. Ajustement Mobile (Cadres plus étroits) --- */
@media (max-width: 768px) {
    .wp-block-post {
        /* On retire 50px au lieu de 30px pour rétrécir le cadre */
        /* Cela donne 25px de marge de chaque côté */
        width: calc(100% - 50px) !important; 
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 25px !important;
    }

    .wp-block-post-featured-image img {
        height: 200px !important;
    }
}

/* --- 4. Contenu Interne --- */
.wp-block-post-featured-image {
        margin-bottom: 0 !important;
}

.wp-block-post-featured-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* On a retiré .wp-block-post-excerpt de cette liste pour le traiter séparément */
.wp-block-post-title, 
.wp-block-post-date,
.wp-block-post-terms {
    padding-left: 25px;
    padding-right: 25px;
}

/* --- MASQUER LE SOUS-TITRE (EXTRAIT) SUR LES ARTICLES --- */
.wp-block-post-excerpt {
    display: none !important;
}

.wp-block-post-terms {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b38e5d; /* Or Vineama */
    margin-top: 20px;
    font-weight: 600;
}

.wp-block-post-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px !important;
    line-height: 1.2;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    color: #1a1a1a;
}

.wp-block-post-date {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* ====================================================
   Bloc ATTRIBUTS
   ==================================================== */

/*-------------------*/
/*-----ATTRIBUTS-----*/
/*-------------------*/

/* Masquer spécifiquement le bloc de termes de catégorie du produit */
.wp-block-post-terms.taxonomy-product_cat {
    display: none !important;
}

/* 1. Conteneur principal : Flexbox pour alignement horizontal */
.single-product .shop_attributes, 
.single-product .shop_attributes tbody {
    display: flex !important; 
    width: 100% !important;
    border: none !important;
    margin-bottom: 2em; 
    padding: 10px 0;
    justify-content: space-around; 
    text-align: center;
}

/* 2. Chaque attribut (TR) devient la colonne */
.single-product .shop_attributes tr.woocommerce-product-attributes-item {
    display: flex !important; 
    flex-direction: column !important;
    flex: 1 !important;
    border: none !important;
    padding: 0 10px;
    vertical-align: top;
    min-width: 80px; 
    text-align: center;
    width: auto !important; 
}

/* 3. Titre (TH) et Valeur (TD) : s'empilent dans la colonne TR */
.single-product .shop_attributes th,
.single-product .shop_attributes td {
    border: none !important;
    background: transparent !important;
    padding: 0;
    display: block !important; 
    text-align: center !important;
}

/* Style spécifique pour le titre */
.single-product .shop_attributes th {
    color: #666; 
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: 500;
    padding-bottom: 5px;
    text-align: center;
}

/* Style spécifique pour la valeur */
.single-product .shop_attributes td {
    color: #8c5a5a; 
    font-size: 1em;
    font-weight: 600;
    text-align: center;
}

/******************
 *** Description haute***
 ***************/

/* Style pour le sous-titre  */
.single-product .product-subtitle {
    color: #9e7f4f;
    font-size: 1.5em;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: -30px;
    font-family: 'Didot', 'Bodoni MT', 'Times New Roman', serif;
}

.wp-block-post-excerpt__excerpt {
    margin-top: -20px;
}

/* STYLE BOUTON */
/* --- Style du bouton Ajouter au panier (pour ressembler à l'Image 1) --- */

.single-product .single_add_to_cart_button {
    background-color: #7C2828 !important; 
    color: #ffffff !important; 
    border: none !important;
    box-shadow: none !important;
    padding: 15px 30px !important;
    font-size: 1.1em !important;
    font-weight: 700; 
    border-radius: 4px;
    text-align: center;
    line-height: 1.5;
    position: relative; /* Ajouté pour le positionnement de ::before */
}

/* Effet au survol */
.single-product .single_add_to_cart_button:hover {
    background-color: #6a2323 !important; 
}

/* Correction : utilisation de ::before pour ajouter un contenu d'icône */
/* Le PNG n'est pas toujours recommandé, mais le style est conservé */
.woocommerce .single_add_to_cart_button::before {
    content: ''; 
    display: inline-block;
    width: 25px; 
    height: 25px; 
    vertical-align: middle;
    margin-right: 5px; 
    
    /* Intégration de l'image (PNG ou SVG) */
    background-image: url('/wp-content/uploads/2025/11/cadenas.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ======================================================= */
/* 1. STYLES DU CONTENEUR GLOBAL (Le grand cadre avec ombre) */
/* ======================================================= */

.section {
    width: 90%; 
    max-width: none;
    margin: 40px auto; 
    background-color: #ffffff; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); 
    border: 1px solid #f0f0f0; 
    padding: 40px 20px;
}

/* ======================================================= */
/* 2. STYLES DU HEADER (Titres et Séparateur) */
/* ======================================================= */

.degustation-header {
    text-align: center;
    margin-bottom: 40px;
}

.sous-titre {
    font-size: 0.8em;
    color: #900; 
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}

.titre-principal {
    font-family: serif; 
    /* CORRECTION : L'unité `em` manquait, valeur mise à 2.5em */
    font-size: 2.5em; 
    margin: 5px 0 10px;
    text-align: center;
}

.separateur-rouge {
    width: 60px;
    height: 2px;
    background-color: #900; 
    margin: 0 auto; 
}

/* ======================================================= */
/* 3. STYLES DES CARTES ET MISE EN PAGE FLEXBOX */
/* ======================================================= */

.cartes-conteneur {
    display: flex; 
    justify-content: center; 
    flex-direction: column;
    gap: 20px; 
    padding: 0; 
    max-width: 100%; 
}

.carte-degustation {
    flex: 1 1 100%; 
    border: 1px solid #d9d9d9;
    padding: 20px;
    text-align: center;
    background-color: #ffffff; 
    border-radius: 12px; 
    transition: all 0.3s ease-in-out;
    max-width: 100%;
}

@media (min-width: 768px) {
    .cartes-conteneur {
        flex-direction: row; /* Alignement horizontal sur grand écran */
    }
    .carte-degustation {
        flex: 1 1 30%; /* Pour trois colonnes égales sur grand écran */
    }
}


.carte-degustation:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background-color: #f9f9f9; 
    transform: translateY(-5px); 
}

.carte-degustation:hover .icone-cercle {
    transform: scale(1.1); 
    background-color: #f7eded; 
}

.section .carte-titre {
    font-family: serif;
    font-size: 1.5em;
    margin-top: 5px;
    margin-bottom: 15px;
    color: #333;
}

.carte-description {
    color: #666;
    line-height: 1.6;
}

.accent-rouge {
    color: #900; 
    font-weight: 600;
}


/* ======================================================= */
/* 4. STYLES DES ICÔNES ET DU CERCLE */
/* ======================================================= */

.icone-cercle {
    background-color: #fcf5f5; 
    border: 1px solid #f0e0e0; 
    border-radius: 50%; 
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em; 
    color: #900; 
}

/* Les styles spécifiques aux N-ième enfant sont conservés pour cibler les icônes */
.cartes-conteneur .carte-degustation:nth-child(1) .icone-cercle {
    background-image: url('/wp-content/uploads/2025/11/oeuil.png');
    background-size: 60%; 
    background-repeat: no-repeat;
    background-position: center;
}

.cartes-conteneur .carte-degustation:nth-child(2) .icone-cercle {
    background-image: url('/wp-content/uploads/2025/11/nez.png');
    background-size: 60%; 
    background-repeat: no-repeat;
    background-position: center;
}

.cartes-conteneur .carte-degustation:nth-child(3) .icone-cercle {
    background-image: url('/wp-content/uploads/2025/11/verre-a-vin.png');
    background-size: 60%; 
    background-repeat: no-repeat;
    background-position: center;
}

/* Variables pour les couleurs */
:root {
    --color-primary: #4b3e36; 
    --color-secondary: #5c534d; 
    --color-accent: #8B0000; 
    --color-rougeclair: #915959;
    --color-background: #fff; 
    --color-card-bg: #fcfbfa; 
    --color-bar-light: #E6E6E6; 
    --color-text-neutral: #666; 
    --color-default-description: #999; 
    --color-grey-icon: #f0f0f0; 
}

/* Styles généraux de la section */
.lux-blanc-production {
    font-family: 'Georgia', serif; 
    background-color: var(--color-background); 
    padding: 60px 20px 150px; 
    text-align: center;
    position: relative;
}

.lux-blanc-production .container {
    position: relative; 
    z-index: 1; 
    max-width: 90%; 
    margin: 0 auto;
}

/* Titres */
.subtitles {
    font-size: 18px;
    color: var(--color-secondary);
    margin-bottom: 40px;
}

/* Conteneur Flex pour les deux colonnes (Encépagement + Terroir) */
.content-flex-container {
    display: flex;
    gap: 40px;
    text-align: left;
    align-items: flex-start;
}

/* --- Carte d'Encépagement (Colonne Gauche) --- */
.card-encapagement {
    flex: 1; 
    background-color: var(--color-card-bg); 
    padding: 15px 30px;
    margin: 30px 30px;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    max-width: 50%; /* Ajustement à 50% sur grand écran si vous voulez deux colonnes égales */
}

/* Mise à jour pour que les colonnes soient égales sur grand écran */
@media (min-width: 992px) {
    .content-flex-container {
        justify-content: space-between;
    }
    .card-encapagement {
        max-width: calc(50% - 20px); /* 50% moins la moitié du gap (20px) */
    }
    .details-terroir {
        max-width: calc(50% - 20px);
    }
}


.card-title {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 40px;
    border-bottom: 1px solid #666;
    text-align: center;
    font-weight: normal;
}

.decorative-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    color: #ccc;
}

/* Pourcentages */
.chart-percentages {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.percentage-item {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    padding: 0 5px; 
}

/* Labels (Noms des cépages) */
.chart-labels {
    display: flex;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-primary);
}

/* --- Détails Terroir (Colonne Droite) --- */
.details-terroir {
    flex: 1; 
    padding: 20px 0;
}


.details-section-title {
    display: inline-block; 
    font-size: 16px;
    color: var(--color-accent);
    text-align: left;
    padding: 5px 15px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0; 
}

.grape-detail {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.grape-detail h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.grape-detail p {
    margin-top: 5px;
    color: var(--color-secondary);
    line-height: 1.5;
    text-align:justify;
}

.grape-detail h3 {
    display: inline-block;
    text-align:left;
    padding: 5px 15px;
    flex-grow: 0; 
    flex-shrink: 1;
}

.garde-detail {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.garde-detail h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.garde-detail p {
    margin-top: 5px;
    color: var(--color-secondary);
    line-height: 1.5;
    text-align:justify;
}

.garde-detail h3 {
    display: inline-block;
    text-align:left;
    padding: 5px 15px;
    flex-grow: 0; 
    flex-shrink: 1;
}

.ombre-service:hover {   
    box-shadow: none; /* Supprimé ou réglé à none pour ne pas avoir d'ombre au survol */
} 


.header-row {
    display: flex;
    align-items: center; 
    margin-bottom: 5px; 
}


.learn-more-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Media Query pour la réactivité */
@media (max-width: 768px) {
    .content-flex-container {
        flex-direction: column;
        gap: 20px;
    }
    .section{
        width:90%;
    }
    /* Correction : styles déplacés à l'intérieur de la media query */
    .card-encapagement {
        max-width: 100%;
        padding: 20px; 
        margin: 0 auto;
    }
    .chart-content {
        display: flex; 
        justify-content: space-around; 
        gap: 10px;
        flex-wrap: wrap; 
    }
    .chart-content .cepage-item {
        flex-basis: 45%; 
        min-width: 100px; 
    }
    
    /* --- 3. Détails du Terroir (.details-terroir) --- */
    .details-terroir {
        flex: 1 1 100%;
        padding: 0;
    }

    /* Assurer l'alignement à gauche des titres de cépage */
    .grape-detail {
        align-items: flex-start;
        padding: 0 10px;
    }

    .grape-detail p {
        text-align: justify; 
    }
    /* --- 4. Conteneur des deux colonnes (Vinification / Élevage) --- */
    .conteneur-colonnes {
        flex-direction: column;
        align-items:center;
        width:100%;
        padding: 0 10px;
        gap: 30px;
    }

    /* 5. Styles des colonnes empilées */
    .colonne {
        border-left: none;
        max-width: 100%;
        padding-left: 0;
        width: 90%;
        margin: 0 auto;
    }

    .colonne-gauche, .colonne-droite {
        margin: 0 auto;
        padding: 0;
        text-align: center;
        width:100%;
    }
    
    /* Maintient l'alignement du titre et de l'icône sur la même ligne */
    .header-row {
        justify-content: center;
    }
    /* Ajout de style pour l'image dans la colonne sur mobile */
    .colonne-droite img, .colonne-gauche img {
        width: 100%;
        height: auto;
    }

}
/* Styles généraux pour le conteneur des colonnes */
.conteneur-colonnes {
    display: flex; 
    width: 100%;
    margin: 0 auto;        
    padding:0px 10px 0px 10px;

}

.colonne {
    flex: 1; 
    border-left: 3px solid transparent;
    border-image: linear-gradient(to bottom, #d8d8d8, #fff) 1;
    padding-left:20px;
    width: 100%;
    box-sizing: border-box;
}

/* Correction : Rendre les classes de colonne flexibles et supprimer les marges conflictuelles */
.colonne-gauche {
    margin:0px 20px 0px 0px; 
    padding-right:20px;
}

.colonne-droite {
    margin:0px 20px 0px 0px; 
    padding-right:20px; 
}

/* CORRECTION : L'image doit prendre toute la largeur de sa colonne */
.colonne img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Appliquer le border-radius à l'image */
}

.attribut{
    padding-left:10px;
    color: var(--color-accent);
}
/* --- Styles des Cercles d'Encépagement et Icônes --- */

.icone-cercle1, .icone-cercle2, .icone-cercle3 {
    border: 1px solid #f0e0e0;  
    border-radius: 50%;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', sans-serif;  
    font-weight: 900;  
    font-size: 26px;  
}

.icone-cercle1 {
    background-color: #fcf5f5; 
    color: #964654; 
}
.icone-cercle2 {
    background-color: #fff9f0; 
    color: #9e7f4f; 
}
.icone-cercle3 {
    /* Style plus petit pour les icônes de Vinification/Élevage/Accords */
    width: 50px;
    height: 50px;
    margin: 0 10px 0 0; 
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.15);
    font-size: 1.2em; 
    color: #9e7f4f; 
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.icone-cercle3 img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}
.label {
    text-align: center;
    color:#666;
}

/* --- Styles de la Barre de Température --- */

.temperature-range-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 20px auto; 
    padding: 0;
    box-sizing: border-box;
}

.range-label {
    font-size: 14px;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.progress-bar {
    flex-grow: 1;
    height: 12px; 
    background-color: #e0e0e0; 
    border-radius: 3px;
    margin: 0 10px;
    position: relative; 
    overflow: hidden;
}

/* Le Remplissage Vert (ou Rouge Vin, selon --color-accent) */
.progress-fill {
    height: 100%; 
    background-color: var(--color-accent); 
    border-radius: 3px;
    position: absolute;  
}

/* --- Styles pour la Barre de Garde --- */

/* Conteneur général */
.garde-range-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 0;
    box-sizing: border-box;
}

/* Piste de la barre entière */
.garde-bar {
    flex-grow: 1;
    height: 12px;       
    background-color: #e0e0e0; 
    border-radius: 3px;
    margin: 0 10px;
    position: relative;
    overflow: hidden; 
}

/* NOUVEAU STYLE : Remplissage pour la zone pré-optimale (Millésime à Garde Min) */
.garde-fill-early {
    position: absolute;
    top: 0;
    left: 0; 
    height: 100%;
    border-radius: 3px;
    background-color: #900; 
    z-index: 2; 
}
/* MODIFIÉ : Remplissage pour la zone optimale (Garde Min à Garde Max - Dégradé) */
.garde-fill-optimal { 
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 3px;
    z-index: 3; 
    background: linear-gradient(
        to right,
        #900 0%,          
        #e57373 100%      
    );
}

/* 1. Style du Conteneur de Carte (Inchangé) */
.accord-carte {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid #e0e0e0;  
    border-radius: 8px;
    transition: all 0.3s ease-out;  
    cursor: pointer;
}

/* 2. Effet Hover du Conteneur */
.accord-carte-hover:hover {
    border-color: var(--color-accent); 
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.15); 
    transform: translateY(-2px);
}

/* 3. Texte (Ajustements des couleurs par défaut) */
.accord-titre {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-primary); 
    margin: 0 0 4px 0;
    transition: color 0.3s ease-out;
}

.accord-exemples {
    font-size: 0.9em;
    color: var(--color-text-neutral); 
    margin: 0 0 5px 0;
}

/* 4. Style de la Description (Couleur par défaut et transition) */
.accord-description {
    font-size: 0.85em;
    color: var(--color-default-description); 
    font-style: italic;
    font-weight: 600;
    margin: 0;
    opacity:0; 
    transition: opacity 0.5s ease-out, color 0.5s ease-out; 
}

/* 5. Changement de Visibilité/Couleur du Texte au Survol */
.accord-carte-hover:hover .accord-description {
    opacity: 1;
    color: var(--color-accent);
}

/* icone-plat-conteneur */
.icone-plat-conteneur {
    flex-shrink: 0; 
    width: 60px;    
    height: 60px;   
    border-radius: 6px;
    background-color: var(--color-grey-icon);  
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

/* L'Image elle-même (L'icône du plat) */
.icone-plat {
    width: 60px;        
    height: 60px;
    object-fit: contain;  
}
/* --- Section principale du Terroir --- */
.section-terroir-principal {
    position: relative; 
    width: 100%;
    min-height: 550px; 
    display: flex;
    align-items: flex-end; 
    justify-content: center; 
    text-align: center; 
    color: #fff; 
    overflow: hidden; 
    border-radius: 15px; 
    margin: 20px auto; 
    max-width: 100%; 
    background-color: transparent; 
}
/* --- Conteneur de l'image et de l'overlay --- */
.terroir-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* CORRECTION : Doit être 100% pour couvrir le conteneur */
    height: 100%; /* CORRECTION : Doit être 100% pour couvrir le conteneur */
    z-index: 1; 
}

.terroir-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
}

/* --- L'Overlay Noir avec Dégradé --- */
.terroir-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; 
    background: linear-gradient(
        to top,                          
        rgba(0, 0, 0, 0.75) 0%,           
        rgba(0, 0, 0, 0.4) 50%,           
        rgba(0, 0, 0, 0.2) 75%,           
        rgba(0, 0, 0, 0) 100%             
    );
}

/* --- Masquer l'icône de loupe sur l'image (souvent injectée par un plugin) --- */
.terroir-image-container .icone-loupe,
.terroir-image-container .wp-block-image a[href*=".png"]::before,
.zoomIcon {
    display: none !important;
}

/* Si l'icône est un lien de zoom sur l'image */
.terroir-image-container a {
    pointer-events: none; 
    cursor: default;
    width:100%; /* CORRECTION : Doit être 100% de la div parente */
    height:100%; /* CORRECTION : Doit être 100% de la div parente */
    max-width:100%; /* Assure que le lien ne force pas une grande taille */
    max-height:100%;
}
.terroir-content {
    position: relative; 
    z-index: 3; 
    max-width: 800px; /* Conserver le max-width pour la lisibilité du texte */
    padding: 20px; 
    background-color: transparent; 
    margin-bottom: 20px; 
}

.terroir-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2); 
    color: var(--color-accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5); 
}

.terroir-title {
    font-size: 3em; 
    margin-bottom: 10px;
    font-weight: 700; 
    line-height: 1.1;
}

.terroir-subtitle {
    font-size: 2em; 
    font-weight: 900; 
    margin-top: 0;
    margin-bottom: 25px;
    color: white; 
}

.terroir-separator {
    width: 80px; 
    height: 6px; 
    background-color: var(--color-accent); 
    margin: 0 auto 30px auto; 
}

.terroir-description {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    color: #fff; 
}

/* --- Media Query pour la responsivité (pour les écrans de 500px ou moins) --- */
@media (max-width: 500px) {
    .section-terroir-principal {
        min-height: 550px;
        border-radius: 0; 
    }
    .terroir-title {
        font-size: 1.3em;
    }
    .terroir-subtitle {
        font-size: 1em;
    }
    .terroir-description {
        font-size: 0.8em;
    }
    .terroir-badge {
        font-size: 0.7em;
        padding: 6px 10px;
    }
}

/* Définition des variables */
:root {
    --color-primary: #4b3e36;    
    --color-secondary: #666;      
    --color-accent: #8B0000;      
    --color-icon-bg: #f9f9f9;     
}

/* NOUVEAU: Conteneur global pour les détails et l'image */
.product-info-flex-container {
    display: flex;
    gap: 30px; 
    align-items: flex-start; 
    max-width: 1200px; 
    margin: 40px auto; 
}

/* NOUVEAU: Colonne des détails (gauche) */
.product-details-column {
    flex: 1; 
    max-width: 50%; 
    padding-right: 20px; 
}

/* NOUVEAU: Colonne de l'image (droite) */
.image-column {
    flex: 1; 
    max-width: 50%; 
}

/* NOUVEAU: Wrapper pour l'image (permet de positionner le dégradé) */
.image-wrapper {
    position: relative; 
    width: 100%;
    max-width: 500px; 
    overflow: hidden; 
    border-radius: 0px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

/* Style de l'image elle-même */
.product-image {
    width: 100%;        
    height: auto;
    display: block;      
    object-fit: cover;  
}

/* NOUVEAU: Dégradé d'opacité en bas de l'image (pour fondre dans le blanc) */
.image-wrapper::after {
    content: ''; 
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; 
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); /* Du blanc opaque au transparent */
    pointer-events: none; 
    z-index: 1; 
}

/* Styles pour les détails (colonne droite - ou seule) */
.product-details-container {
    max-width: 400px; 
    padding: 20px;
    align-items: center;
    text-align: center;
    width: 100%; /* A ajuster si vous l'utilisez dans une colonne flex */
    margin: 0 auto;
}

/* Style de chaque bloc d'information */
.detail-bloc {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee; 
    text-align: center;
}

/* Style du titre et de l'icône sur la même ligne */
.header-info {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre les éléments dans le bloc */
    margin-bottom: 10px;
}

/* Conteneur de l'icône (le cercle) */
.icon-cercle-small {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    margin-right: 15px;
    background-color: var(--color-icon-bg); 
    border-radius: 50%;
    color: var(--color-accent); 
    font-size: 1.1em;
}

/* Titre de la section (SOLS, ÉLEVAGE, etc.) */
.detail-titre {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--color-accent); 
    text-transform: uppercase;
    margin: 0;
}

/* Texte général (descriptions) */
.detail-texte, .detail-sous-texte {
    color: var(--color-secondary);
    font-size: 1em;
    margin: 5px 0;
    /* Suppression du padding-left pour centrer ou laisser l'alignement par défaut du conteneur */
    padding-left: 0; 
    line-height: 1.4;
    text-align: center;
}

.detail-sous-texte {
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
}

/* ======================================================= */
/* Styles spécifiques à l'Encépagement dans la section technique */
/* ======================================================= */

.cepage-repartition {
    display: flex;
    justify-content: center; /* Centrer les pourcentages */
    gap: 30px;
    padding-left: 0; /* Suppression du padding qui désalignait le contenu centré */
}

.cepage-item-inline {
    text-align: center;
}

/* Pourcentages */
.cepage-pourcentage {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-secondary); 
    margin-bottom: 5px;
}

/* Application de la couleur d'accentuation pour le pourcentage dominant (70%) */
.cepage-pourcentage.accent-couleur {
    color: var(--color-accent); 
}

/* Noms des cépages (CLAIRETTE, ROUSSANNE) */
.cepage-nom {
    font-size: 0.7em;
    color: var(--color-secondary);
    text-transform: uppercase;
}

/* ======================================================= */
/* STYLES DE LA SECTION : ATELIER VINS UNIQUES             */
/* ======================================================= */

/* Conteneur principal */
.atelier-container {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Section Introduction --- */
.atelier-intro-box {
    background-color: #fdfaf6;
    border-left: 5px solid #722f37;
    padding: 25px 30px;
    margin-bottom: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.atelier-intro-title {
    color: #722f37;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.atelier-intro-text {
    font-size: 1.05em;
    margin-bottom: 15px;
}

.atelier-intro-text:last-child {
    margin-bottom: 0;
}

/* --- Section Programme --- */
.atelier-program-section {
    margin-top: 40px;
}

.atelier-program-title {
    text-align: center;
    color: #b59a5d;
    font-size: 1.5em;
    border-bottom: 1px solid #e0d8c3;
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.atelier-program-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.atelier-program-item {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 18px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.atelier-program-icon {
    font-size: 1.4em;
    margin-right: 15px;
    filter: grayscale(20%) sepia(20%);
}

.atelier-program-label {
    color: #722f37;
    margin-right: 8px;
}

/* --- Section Conclusion --- */
.atelier-conclusion-box {
    margin-top: 45px;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.atelier-conclusion-text {
    margin: 0;
    font-size: 1.15em;
    font-style: italic;
}

.atelier-conclusion-highlight {
    color: #b59a5d;
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ====================================================
   Navigation custom
   ==================================================== */

/* --- BASE & TYPO --- */
.custom-nav {
    font-family: sans-serif;
    padding: 15px;
}

.custom-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    justify-content: flex-end; /* Aligné à droite sur PC */
}

/* --- STYLE DES LIENS (Version Desktop) --- */
.custom-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.custom-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #800020;
    transition: width 0.4s ease-in-out;
}

.custom-menu li a:hover::after { width: 100%; }
.custom-menu li a:hover { color: #800020; }

/* --- LOGIQUE DU MENU MOBILE (Masqué par défaut) --- */
.menu-toggle, .hamburger-icon {
    display: none; /* Caché sur ordinateur */
}

/* --- ADAPTATION MOBILE (Responsive) --- */
@media (max-width: 768px) {
    /* On affiche l'icône hamburger */
    .hamburger-icon {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 1000;
    }

    /* Les 3 barres du hamburger */
    .hamburger-icon span, 
    .hamburger-icon span::before, 
    .hamburger-icon span::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #333;
        transition: 0.3s;
    }
    .hamburger-icon span { top: 50%; transform: translateY(-50%); }
    .hamburger-icon span::before { top: -8px; }
    .hamburger-icon span::after { bottom: -8px; }

    /* Transformation en "X" quand on coche */
    .menu-toggle:checked + .hamburger-icon span { background: transparent; }
    .menu-toggle:checked + .hamburger-icon span::before { transform: rotate(45deg); top: 0; }
    .menu-toggle:checked + .hamburger-icon span::after { transform: rotate(-45deg); bottom: 0; }

    /* Le menu devient une colonne masquée */
    .custom-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Sort de l'écran par la droite */
        width: 70%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* Affichage du menu quand la case est cochée */
    .menu-toggle:checked ~ .custom-menu {
        right: 0;
    }
}

/* ====================================================
   Horaires
   ==================================================== */

/* ===================================================================
       STYLE DES HORAIRES VINEAMA
    =================================================================== */
    .vineama-horaires {
        max-width: 380px; /* Largeur idéale pour garder le texte groupé */
        margin: 0 auto; /* Centre le bloc si l'espace est plus large */
        font-family: 'Inter', sans-serif;
        color: #1a1a1a;
        background: transparent; /* Conserve la couleur de fond de votre site */
    }
    
    .vineama-horaires-titre {
        font-family: 'Playfair Display', serif;
        color: #630d16; /* Rouge Bourgogne Vineama */
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1.5rem;
        font-weight: 400;
        letter-spacing: 0.02em;
    }

    .vineama-horaires-liste {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .vineama-horaires-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid rgba(184, 146, 82, 0.2); /* Ligne séparatrice Or légère */
        font-size: 1rem;
    }

    /* Enlève la ligne sous le dernier élément */
    .vineama-horaires-item:last-child {
        border-bottom: none;
    }

    .vineama-jour {
        font-weight: bold;
        color: #b89252; /* Or Vineama */
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-size: 0.80rem;
    }

    .vineama-heures {
        font-weight: 400;
        color: #444444;
        font-style: italic; /* Touche d'élégance pour les heures */
    }

/* ====================================================
   Section intro
   ==================================================== */

/* --- STYLE SECTION 1 --- */
    .vineamea-intro-section {
        background-color: #F3EFEC;
        padding: 100px 20px;
        text-align: center;
        font-family: 'Georgia', serif;
        color: #333;
    }

    .vineamea-intro-container {
        max-width: 950px;
        margin: 0 auto;
    }

    /* Titre principal "Qui sommes nous ?" */
    .vineamea-intro-section h1 {
        font-size: 3.8rem;
        font-weight: 400;
        margin-bottom: 50px;
        color: #1a1a1a;
        letter-spacing: -1px;
    }

    /* L'accroche en bordeaux (main-quote) */
    .vineamea-intro-section .philosophie-quote {
        font-size: 2rem;
        color: #800020; /* Bordeaux Vineamea */
        font-style: italic;
        margin-bottom: 50px;
        line-height: 1.4;
        font-weight: 400;
    }

    /* Blocs de texte de description */
    .vineamea-intro-section .description-text {
        font-family: 'Arial', sans-serif;
        font-size: 1.15rem;
        color: #555;
        line-height: 1.8;
        margin-bottom: 30px;
        font-weight: 300;
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .vineamea-intro-section h1 {
            font-size: 2.8rem;
        }
        .vineamea-intro-section .philosophie-quote {
            font-size: 1.5rem;
        }
    }

/* ====================================================
   Section équipe
   ==================================================== */

/* --- STYLE SECTION 2 --- */
    .vineamea-team-section {
        background-color: #E2E1DD;
        padding: 80px 20px;
        font-family: 'Georgia', serif;
        color: #333;
    }

    .team-inner-container {
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .team-intro-label {
        font-family: 'Arial', sans-serif;
        font-size: 11px;
        letter-spacing: 3px;
        color: #b08d57;
        text-transform: uppercase;
        margin-bottom: 15px;
        display: block;
    }

    .team-main-title {
        font-style: italic;
        font-weight: 400;
        font-size: 1.55rem;
        color: #4a4a4a;
        max-width: 800px;
        margin: 0 auto 60px;
        line-height: 1.5;
    }

    .bios-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 35px;
        flex-wrap: nowrap;
    }

    .bio-card {
        display: flex;
        background: #ffffff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        flex: 1;
        max-width: 550px;
        text-align: left;
        align-items: center;
        overflow: hidden;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    }

    .bio-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    /* --- MODIFICATION ICI : LE CADRE PHOTO --- */
    .bio-image-box {
        width: 180px; /* Ajusté légèrement pour le cadre */
        height: 240px;
        flex-shrink: 0;
        margin-left: 20px; /* Espace par rapport au bord gauche de la carte */
        padding: 10px; /* L'espace blanc intérieur */
        background-color: #fff;
        border: 1px solid #e0e0e0; /* Bordure extérieure fine */
        position: relative;
        overflow: hidden;
    }

    .bio-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
        /* Ajout d'un fin filet gris autour de l'image elle-même */
        outline: 1px solid #efefef;
        outline-offset: -5px; 
    }

    .bio-card:hover .bio-image-box img {
        transform: scale(1.08);
    }

    .bio-text-content {
        padding: 25px 30px;
    }

    .bio-text-content h2 {
        font-size: 1.35rem;
        margin: 0;
        color: #1a1a1a;
        font-weight: 400;
    }

    .bio-separator {
        width: 40px;
        border: none;
        border-top: 2px solid #800020;
        margin: 15px 0;
        transition: width 0.4s ease;
    }

    .bio-card:hover .bio-separator {
        width: 65px;
    }

    .bio-text-content p {
        font-family: 'Arial', sans-serif;
        font-size: 0.95rem;
        color: #666;
        margin: 0;
        line-height: 1.6;
        font-weight: 300;
    }

    /* Responsive */
    @media (max-width: 992px) {
        .bios-wrapper {
            flex-wrap: wrap;
        }
        .bio-card {
            flex: none;
            width: 100%;
            max-width: 550px;
            margin: 0 auto;
        }
    }

    @media (max-width: 600px) {
        .bio-card {
            flex-direction: column;
            text-align: center;
            padding-top: 20px;
        }
        .bio-image-box {
            margin-left: 0;
            width: 220px;
            height: 280px;
        }
        .bio-separator {
            margin: 15px auto;
        }
    }

/* ====================================================
   Citation footer
   ==================================================== */

/* --- STYLE SECTION 3 --- */
    .vineamea-footer-quote-section {
        background-color: #7A2812; /* Bordeaux profond caractéristique */
        color: #ffffff;
        text-align: center;
        padding: 100px 20px;
        font-family: 'Georgia', serif;
    }

    .quote-inner-container {
        max-width: 900px;
        margin: 0 auto;
    }

    /* Icône stylisée de verre à vin */
    .wine-icon-footer {
        font-size: 28px;
        color: #b08d57; /* Rappel de la couleur or mat */
        margin-bottom: 25px;
        display: block;
    }

    /* Citation principale */
    .vineamea-footer-quote-section blockquote {
        font-size: 1.8rem;
        font-style: italic;
        line-height: 1.5;
        font-weight: 300;
        margin: 0 auto 45px;
        border: none;
        padding: 0;
    }

    /* Note finale en majuscules */
    .brand-promise-note {
        font-family: 'Arial', sans-serif;
        font-size: 10px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #f0f0f0;
        opacity: 0.9;
        max-width: 700px;
        margin: 0 auto;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .vineamea-footer-quote-section {
            padding: 70px 20px;
        }
        .vineamea-footer-quote-section blockquote {
            font-size: 1.4rem;
        }
        .brand-promise-note {
            font-size: 9px;
            letter-spacing: 1.5px;
        }
    }


