/* ===== VARIABLES & RESET ===== */
/* ===== TYPOGRAPHIE ===== */
.text p {
    margin-bottom: 0.3rem;
}

.text p:last-child {
    margin-bottom: 0.5rem;
}

.centered-container {
    background: linear-gradient(180deg, var(--saison-color-80) 0%, var(--black-color-70) 100%),
                url('../images/cepages/conservatoire.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.centered-container p {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: clamp(1rem, 0.7vw + 0.3rem, 1.1rem);
    text-align: left;
}

/* ===== EFFET FLIP (3D) ===== */
/* Conteneur du flip */
.flip-container {
    perspective: 1000px;
    width: 20%;
    float: left; 														/* Alignement à gauche */
    margin: 0 1rem 1rem 0;
    position: relative;
}

/* Élément qui effectue la rotation */
.flip-container .flipper {
    position: relative;
    width: 100%;
    transition: transform 0.6s, box-shadow 0.6s; 						/* Animation fluide pour la rotation et l'ombre */
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px var(--black-color-90); 						/* Ombre par défaut */
}

/* Rotation au survol */
.flip-container:hover .flipper {
    transform: rotateY(180deg);
    box-shadow: 0 10px 30px var(--black-color-50); 						/* Ombre plus marquée au survol */
}

/* Faces avant et arrière */
.flip-container .front,
.flip-container .back {
    width: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
}

.flip-container .front {
    position: relative;
}

.flip-container .back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    box-shadow: 0 10px 30px var(--black-color-50); 						/* Ombre pour la face arrière */
}

/* Style des images dans le flip */
.flip-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    box-shadow: 0 3px 10px var(--black-color-10); 						/* Ombre légère par défaut */
}

/* ===== BARRE DE TITRE & NAVIGATION ===== */
.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.nav-buttons {
    display: flex;
    gap: 0.6rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 4px var(--black-color-20);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-btn:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}

.nav-btn img {
    width: 18px;
    height: 18px;
}

.nav-btn.round {
    background-color: rgba(200, 200, 200, 0.8);
}

/* ===== AFFICHAGE RESPONSIVE (DESKTOP/MOBILE) ===== */
/* Par défaut : Desktop */
.text-desktop { display: block; }
.text-mobile { display: none; }

/* Mobile : ≤ 767px */
@media (max-width: 767px) {
    .centered-container h3 {
        margin-bottom: 0.2rem;
    }

    .centered-container img {
        float: none;
        width: 100%;
        margin: 0 0 1rem 0;
        display: block;
    }

    /* Inversion texte desktop/mobile */
    .text-desktop { display: none; }
    .text-mobile { display: block; }

    /* Conteneur principal en mobile */
    .centered-container {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Contenu défilable */
    .scrollable-content {
        flex: 1;
        overflow-y: auto !important;
        padding: 1rem;
        padding-bottom: 20px;
        scrollbar-width: thin;
        scrollbar-color: var(--saison-color-80) var(--white-color-10);
    }

    /* Bandeau fixe mobile */
    .bottom-fixed-banner {
        position: relative !important;
        flex-shrink: 0;
        height: 60px;
        background: linear-gradient(90deg, var(--saison-color-95) 0%, var(--black-color-90) 100%);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 20px;
        box-shadow: 0 -2px 10px var(--black-color-50);
        border-radius: 0 0 15px 15px;
        box-sizing: border-box;
    }

    /* Boutons du bandeau mobile */
    .banner-button {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: 2px solid var(--white-color-80);
        background: var(--saison-color-20) !important;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px var(--black-color-20);
        overflow: visible !important;
    }

    /* Icônes de drapeau */
    .flag-icon {
        width: 45px !important;
        height: 45px !important;
        border-radius: 2px !important;
        object-fit: cover !important;
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Animation pour le contenu de langue */
    .language-content {
        transition: opacity 0.3s ease-in-out;
    }
}

/* Masquage des éléments mobiles sur desktop */
@media (min-width: 768px) {
    .bottom-fixed-banner,
    .text-mobile,
    .language-content {
        display: none !important;
    }
}

/* ===== BARRE DE NAVIGATION MOBILE ===== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, var(--saison-color-90) 0%, var(--black-color-90) 100%);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 -5px 20px var(--black-color-50);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, var(--saison-color-80), rgba(56, 142, 60, 0.8));
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--black-color-30);
    text-shadow: 1px 1px 2px var(--black-color-50);
}

.mobile-btn:hover,
.mobile-btn:active {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--saison-color-40);
    background: linear-gradient(145deg, var(--saison-color-100), rgba(56, 142, 60, 1));
}

.mobile-btn:active {
    transform: scale(0.95);
}
