/* classes utilitaires */
@media (min-width: 768px) { .mobile-only { display: none !important; }}
@media (max-width: 767px) { .desktop-only { display: none !important; }}

.vins-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    gap: 2rem;
}

.vins-section {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-base);
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

/* bouteille */
.bouteille-container {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: 100%; /* référence stable pour la bouteille */
}

.vins-section img.bouteille {
    width: auto;
    height: 95%;              /* Desktop : 95 % du container */
    object-fit: contain;
    margin-right: 1.5rem;
    border-radius: 12px;
    animation: zoomIn 1.8s ease-out forwards;
    transform-origin: center left;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* étiquettes */
.etiquette {
    position: absolute;
    opacity: 0;
    transform: translateX(-120%) rotate(-720deg);
    animation-fill-mode: forwards;
    z-index: 3;
    width: 100%;
    height: auto;
    max-width: 140px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* positions : goulot et milieu */
.etiquette.goulot {
    top: 10%;
    left: 6%;
}
.etiquette.milieu {
    top: 40%;
    left: 8%;
}

/* texte défilant uniquement */
.vins-section .texte {
    flex: 1;
    text-align: left;
    font-size: var(--font-size-base);
    color: var(--text-white);
    text-shadow: var(--shadow-text);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    max-height: 100%;
}
.vins-section .texte::-webkit-scrollbar {
    display: none;
}

/* MOBILE */
@media (max-width: 767px) {
    .vins-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .vins-section {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        height: 45vh;
        min-height: 250px;
        padding: 1rem;
    }

    .vins-section img.bouteille {
        height: 100%;           /* Mobile : 95 % du container */
        margin-right: 1rem;
        transform-origin: center left;
    }

    .etiquette {
        width: 75%;
        max-width: 120px;
    }
    .etiquette.goulot {
        top: 5%;
        left: 5%;
    }
    .etiquette.milieu {
        top: 40%;
        left: 7%;
    }

    .vins-section .texte {
        text-align: left;
        overflow-y: auto;
        max-height: 100%;
    }
}
