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

.stage {
    --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    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;
    margin: -55px 0 0 -75px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #444;
    border: 3px solid rgba(255, 255, 255, 0.9);
    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);
}

/* Phrase d'aide : au centre de la rangée de boutons (plus en position absolue) */
.hint {
    flex: 1;
    margin: 0;
    text-align: center;
    color: #c9a24a;
    font-family: "Cinzel", serif;
    font-size: clamp(11px, 1.6vw, 16px);
    letter-spacing: .04em;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 900px;
    max-width: 96vw;
    margin: 20px auto 0;
}

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

.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;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

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

.lightbox p {
    color: white;
    margin-top: 16px;
    font-size: 16px;
}
/* --- thêm 08/11/2026-- */

/* --- Zoom dans la lightbox --- */
.lightbox {
    overflow: hidden;            /* l'image zoomée ne crée pas de barres de défilement */
}

#lightboxImg {
    cursor: zoom-in;             /* la loupe + */
    transition: transform 0.25s ease;   /* le zoom glisse au lieu de sauter */
    touch-action: none; /* le doigt deplace la zoom. il ne fait pas defiler la page */
}

#lightboxImg.zoomed {
    cursor: zoom-out;            /* la loupe − */
}
