/* ============================================================
   CARROUSEL EN ARC - ADULTES - page-caroussel-adultes-arc.css
   (migration Karcher)
   ============================================================ */

:root {
    --bg: #2b2b2b;
    --card-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.stage {
    position: relative;
    width: 900px;
    max-width: 96vw;
    height: 640px;
    perspective: 1400px;
    user-select: none;
    cursor: grab;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.stage:active {
    cursor: grabbing;
}

.track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.card {
    position: absolute;
    top: 50%;
    left: 50%;
   /* width: 150px;
    height: 110px;*/
    width: 120px;
    height: 150px;

    margin: -55px 0 0 -75px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #444;
    border: 1px solid rgba(197, 155, 39, 0.5);
    box-sizing: border-box;
    transition: box-shadow .3s ease;
    will-change: transform, opacity;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
    z-index:999 !important;
}

/* Bandeau : bouton précédent - texte d'aide - bouton suivant, tous sur une ligne */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 70px;          /* était 20px : on descend la barre sous la carte du centre */
    position: relative;
    z-index: 2000;             /* la barre passe devant, pour que les boutons restent cliquables */
    flex-wrap: wrap;
}

.hint {
    font-family: 'Cinzel', serif;
    color: #c59b27;
    font-size: 12px;
    letter-spacing: .04em;
    text-align: center;
    order: 2;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.nav-btn:first-of-type {
    order: 1;
}

.nav-btn:last-of-type {
    order: 3;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}

#lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 85vw;
    max-height: 80vh;
    border-radius: 8px;
    border: 1px solid rgba(197, 155, 39, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
}

#lightbox img {
    max-width: 90vw;
    max-height: 72vh;      /* laisse de la place au titre dessous */
    object-fit: contain;
}

#lightbox #lightboxTitle {
    display: block;
    font-family: 'Cinzel', serif;
    color: #c59b27 !important;
    font-size: 26px;
    letter-spacing: .06em;
    text-align: center;
    max-width: 90vw;
    margin: 18px 0 0;
}

@media (max-width: 600px) {
    .card {
        width: 90px;
        height: 66px;
        margin: -33px 0 0 -45px;
    }

    .stage {
        height: 420px;
    }

    .hint {
        font-size: 11px;
        max-width: 70%;
    }
}
