/**
 * cuvees-archive.css — Layout immersif page /cuvees/
 *
 * Scroll vertical snappé : une cuvée = une section plein écran.
 * Navigation verticale fixe à droite (dots dorés + nom au survol).
 * Sections paires : image à droite (layout inversé).
 */


/* ================================================================
   CONTENEUR PRINCIPAL
================================================================ */

.archive-scroll {
    position: relative;
    /* Pas de overflow:hidden ici — le scroll-wrap gère son propre overflow */
}


/* ================================================================
   WRAP SCROLLABLE — scroll-snap container
================================================================ */

.cuvees-scroll-wrap {
    /* Hauteur = viewport moins le header ; affinée par JS via --hh */
    height: calc(100svh - var(--hh, 70px));
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    /* Scrollbar invisible mais fonctionnelle */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cuvees-scroll-wrap::-webkit-scrollbar {
    display: none;
}


/* ================================================================
   SECTION — une cuvée = un panneau plein écran
================================================================ */

.cuvee-panel {
    height: calc(100svh - var(--hh, 70px));
    display: grid;
    grid-template-columns: 45% 55%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

/* Sections paires : image à droite */
.cuvee-panel--reverse {
    grid-template-columns: 55% 45%;
}

.cuvee-panel--reverse .cuvee-panel__visual {
    order: 2;
}

.cuvee-panel--reverse .cuvee-panel__body {
    order: 1;
}


/* ================================================================
   PANNEAU VISUEL — bouteille sur fond IVOIRE
   (inverse du reste du site : ici c'est le fond clair)
================================================================ */

.cuvee-panel__visual {
    background: var(--couleur-fond);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Halo or chaud centré derrière la bouteille */
.cuvee-panel__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 52% 60% at 50% 54%,
        rgba(196, 163, 90, 0.14) 0%,
        transparent 68%
    );
    pointer-events: none;
}

/* Filet or vertical sur le bord intérieur (séparation douce) */
.cuvee-panel__visual::after {
    content: '';
    position: absolute;
    top: 12%;
    bottom: 12%;
    right: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(196, 163, 90, 0.35) 30%,
        rgba(196, 163, 90, 0.35) 70%,
        transparent
    );
}

.cuvee-panel--reverse .cuvee-panel__visual::after {
    right: auto;
    left: 0;
}

.cuvee-panel__visual img {
    display: block;
    max-height: 78%;
    max-width: 52%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(196, 163, 90, 0.18))
            drop-shadow(0 6px 16px rgba(0, 0, 0, 0.10));
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cuvee-panel:hover .cuvee-panel__visual img {
    transform: translateY(-10px) scale(1.025);
}

/* Placeholder si pas d'image */
.cuvee-panel__no-img {
    width: 80px;
    height: 220px;
    background: rgba(196, 163, 90, 0.10);
    border: 1px solid rgba(196, 163, 90, 0.25);
    border-radius: 40px;
}


/* ================================================================
   PANNEAU CONTENU — texte ivoire/or sur VERT BOUTEILLE
   (inverse du reste du site : ici c'est le fond foncé)
================================================================ */

.cuvee-panel__body {
    background: var(--couleur-principale);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--espace-2xl) var(--espace-2xl);
    position: relative;
    overflow: hidden;
}

/* Sections paires : vert légèrement plus clair */
.cuvee-panel--reverse .cuvee-panel__body {
    background: var(--couleur-principale-2);
}

/* Reflet or discret en coin */
.cuvee-panel__body::before {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(
        ellipse,
        rgba(196, 163, 90, 0.08) 0%,
        transparent 68%
    );
    pointer-events: none;
}

.cuvee-panel__inner {
    max-width: 460px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Badge type (Brut, Rosé…) — or sur vert */
.cuvee-panel__type {
    display: inline-block;
    font-family: var(--police-texte);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--couleur-accent);
    margin-bottom: var(--espace-sm);
}

/* Nom de la cuvée — ivoire clair */
.cuvee-panel__title {
    font-family: var(--police-titre);
    font-weight: 300;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    letter-spacing: 0.04em;
    color: var(--couleur-fond);
    line-height: 1.12;
    margin: 0;
}

/* Filet or */
.cuvee-panel__ornement {
    width: 48px;
    height: 1px;
    background: var(--couleur-accent);
    margin: var(--espace-md) 0;
}

/* Description — ivoire atténué */
.cuvee-panel__desc {
    font-family: var(--police-titre);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.82;
    color: rgba(247, 243, 236, 0.72);
    margin-bottom: var(--espace-xl);
}

/* Bouton CTA — outline or sur fond vert bouteille */
.cuvee-panel__cta.btn {
    background: transparent;
    border-color: rgba(196, 163, 90, 0.55);
    color: var(--couleur-accent-clair);
    letter-spacing: 0.16em;
}

.cuvee-panel__cta.btn:hover {
    background: var(--couleur-accent);
    border-color: var(--couleur-accent);
    color: var(--couleur-principale);
}


/* Numéro décoratif en fond — or très transparent */
.cuvee-panel__num {
    position: absolute;
    bottom: var(--espace-lg);
    right: var(--espace-xl);
    font-family: var(--police-titre);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 300;
    color: rgba(196, 163, 90, 0.09);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.02em;
}

.cuvee-panel--reverse .cuvee-panel__num {
    right: auto;
    left: var(--espace-xl);
}


/* ================================================================
   NAVIGATION VERTICALE FIXE
================================================================ */

.cuvees-vnav {
    position: fixed;
    top: 50%;
    right: var(--espace-lg);
    transform: translateY(-50%);
    z-index: 300;
    pointer-events: none;
    /* Centrage vertical compensé par la hauteur du header */
    margin-top: calc(var(--hh, 70px) / 2);
}

.cuvees-vnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.cuvees-vnav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    pointer-events: all;
    cursor: pointer;
}

/* Label — caché par défaut, visible au survol ou actif */
.cuvees-vnav__label {
    font-family: var(--police-texte);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--couleur-principale);
    background: rgba(247, 243, 236, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 4px 10px;
    border-radius: 2px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Dot */
.cuvees-vnav__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid rgba(28, 43, 29, 0.35);
    background: transparent;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

/* Survol : label apparaît */
.cuvees-vnav__link:hover .cuvees-vnav__label {
    opacity: 1;
    transform: translateX(0);
}

/* Dot doré + agrandi si actif */
.cuvees-vnav__link.is-active .cuvees-vnav__dot {
    background: var(--couleur-accent);
    border-color: var(--couleur-accent);
    transform: scale(1.5);
}

/* Label toujours visible si actif */
.cuvees-vnav__link.is-active .cuvees-vnav__label {
    opacity: 1;
    transform: translateX(0);
    color: var(--couleur-principale);
    font-weight: 700;
}

/* Survol non-actif */
.cuvees-vnav__link:hover .cuvees-vnav__dot {
    background: rgba(196, 163, 90, 0.55);
    border-color: var(--couleur-accent);
}


/* ================================================================
   RESPONSIVE
================================================================ */

@media (max-width: 900px) {

    /* Panneau pleine largeur empilé */
    .cuvee-panel,
    .cuvee-panel--reverse {
        grid-template-columns: 1fr;
        grid-template-rows: 45svh auto;
        height: auto;
        min-height: 100svh;
    }

    .cuvee-panel--reverse .cuvee-panel__visual,
    .cuvee-panel--reverse .cuvee-panel__body {
        order: unset;
    }

    .cuvee-panel__visual {
        min-height: 45svh;
    }

    .cuvee-panel__visual img {
        max-height: 85%;
        max-width: 40%;
    }

    .cuvee-panel__body {
        padding: var(--espace-xl) var(--espace-lg);
        align-items: flex-start;
    }

    .cuvee-panel__num {
        display: none;
    }

    /* Scroll wrap : hauteur auto sur mobile */
    .cuvees-scroll-wrap {
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none;
    }

    /* Navigation : barre horizontale de dots en bas */
    .cuvees-vnav {
        position: fixed;
        top: auto;
        bottom: var(--espace-md);
        right: 50%;
        transform: translateX(50%);
        margin-top: 0;
        background: rgba(247, 243, 236, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: var(--espace-xs) var(--espace-md);
        border-radius: 24px;
        border: 1px solid rgba(196, 163, 90, 0.25);
    }

    .cuvees-vnav__list {
        flex-direction: row;
        gap: var(--espace-md);
        align-items: center;
    }

    .cuvees-vnav__label {
        display: none;
    }

    .cuvees-vnav__dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 520px) {
    .cuvee-panel__title {
        font-size: 1.8rem;
    }

    .cuvee-panel__body {
        padding: var(--espace-lg) var(--espace-md);
    }

    .cuvee-panel__prix {
        gap: var(--espace-lg);
    }
}
