/* ============================================================
   GALERIE CERCLE 3D (v2 - anneau) - page-caroussel-cercle3d-v2.css
   (migration Karcher)
   ============================================================ */

body {
    background-color: #050505;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Conteneur principal élargi pour ne rien couper sur les côtés */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
}

/* Le point pivot central du cercle 3D */
.slider {
    position: absolute;
    width: 0px;
    height: 0px;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Chaque carte/élément du carrousel */
.item {
    position: absolute;
    width: 220px;
    height: 310px;
    top: -155px;
    left: -110px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #444;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: border-color 0.3s, filter 0.3s;
    backface-visibility: hidden;
}

.item:hover {
    filter: brightness(1.2);
    border-color: #c9a24a;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carte texte (fallback quand nom_fichier est vide) */
.item.item-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-text-inner {
    padding: 20px;
    text-align: center;
}

.item-text-inner h3 {
    font-family: "Cinzel", serif;
    font-size: 1.1rem;
    color: #c9a24a;
    margin: 0 0 10px 0;
}

.item-text-inner p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
    margin: 0;
}

/* Boutons de navigation */
.buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.buttons button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.buttons button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #c9a24a;
    color: #c9a24a;
}

/* Style de la Lightbox */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;   /* image en haut, titre dessous */
    cursor: pointer;
}

#lightbox img {
    max-width: 90%;
    max-height: 72vh;         /* laisse la place au titre sous l'image */
    border-radius: 8px;
    border: 4px solid #c9a24a;
    box-shadow: 0 0 30px rgba(197, 155, 39, 0.8);
    object-fit: contain;
}

/* Titre sous l'image agrandie (même style que le manège des adultes) */
#lightbox #lightbox-title {
    font-family: 'Cinzel', serif;
    color: #c59b27;
    font-size: 26px;
    letter-spacing: .06em;
    text-align: center;
    max-width: 90vw;
    margin: 18px 0 0;
}

/* Pas de titre : pas de place réservée */
#lightbox #lightbox-title:empty {
    display: none;
}
