/* ============================================================
   CARROUSEL 3D LIGHTBOX - page-caroussel-3d.css
   (migration Karcher)
   ============================================================ */

body {
    background-color: #111;
    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;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.slider {
    position: relative;
    width: 220px;
    height: 320px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out;
}

.item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #333;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    cursor: pointer;
}

.item:hover {
    filter: brightness(1.15);
}

.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: 10px;
    text-align: center;
}

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

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

.item-text-inner {
    padding: 15px 40px;       /* 15px haut/bas, 40px gauche/droite */
    text-align: center;
}

/* Boutons de navigation */
.buttons {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 20px;
}

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

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

/* Lightbox (agrandissement) */
#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;
    cursor: pointer;
    overflow: hidden;
    flex-direction: column;      /* image au-dessus, légende en dessous */

}
/*
#lightbox {
    overflow: hidden;
    flex-direction: column;      
}*/

#lightbox img {
    max-width: 90%;
    max-height: 65vh;
    border-radius: 8px;
    border: 8px solid #f4f4f4;
    box-shadow: 0 5px 20px rgba(197, 155, 39, 0.8);
    object-fit: contain;
}


/* l'image zoomée ne crée pas de barres de défilement */


#lightbox-img {
    cursor: zoom-in;             /* la loupe + */
    transition: transform 0.25s ease;
}

#lightbox-img.zoomed {
   /*  transform: scale(2);       2 fois plus grand */
    cursor: zoom-out;            /* la loupe − */
}
#lightbox-close {
    position: absolute;          /* se place par rapport à #lightbox (qui est fixed) */
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;                 /* reste au-dessus de l'image zoomée */
}

#lightbox-close:hover {
    border-color: #c9a24a;
    color: #c9a24a;
}
#pause {
    background: none;
    border: none;
    width: 45px;
    height: 45px;
    padding: 0;
    /*font-size: 1.1rem;*/
    font-size: 1.4rem;
    font-weight: 700;             /* gras */
    line-height: 1;
    /*letter-spacing: -1px;*/
    /*color: #000;                   noir */
    color: #fff;   
}

#pause:hover {
    background: none;
    color: #c9a24a;               /* doré au survol, comme le reste du site */
}



#lightbox-legende {
    max-width: 90%;
    margin-top: 15px;
    text-align: center;
}

#legende-titre {
    font-family: "Cinzel", serif;
    font-size: 1.1rem;
    color: #c9a24a;
    margin: 0 0 4px 0;
}

#legende-desc {
    font-size: 0.95rem;
    color: #ccc;
    margin: 0;
}


@media (hover: hover) {
    .item:hover {
        filter: brightness(1.15);
    }

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

    #pause:hover {
        background: none;
        color: #c9a24a;
    }
}

/* ===== BLOC AVIS (à coller à la fin de page-caroussel-3d.css) ===== */
.avis-bloc {
    max-width: 700px;
    margin: 60px auto 40px;
    padding: 0 20px;
    text-align: left;
}
.avis-bloc h3 {
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* Une carte = un avis validé */
.avis-carte {
    border: 1px solid rgba(201, 162, 39, 0.5);   /* liseré doré */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.06);
}
.avis-texte     { margin: 0 0 8px; line-height: 1.5; }
.avis-signature { margin: 0; font-size: 1em; opacity: 0.8; font-style: italic; }
.avis-vide      { text-align: center; opacity: 0.8; }

/* Message de confirmation / d'erreur */
.avis-info    { padding: 10px 15px; border-radius: 6px; text-align: center; }
.avis-ok      { border: 1px solid #6bbf6b; }
.avis-erreur  { border: 1px solid #d9534f; }

/* Formulaire */
.avis-form { margin-top: 30px; display: flex; flex-direction: column; gap: 8px; }
.avis-form input,
.avis-form textarea {
    padding: 10px;
    font-size: 1rem;          /* assez grand pour les seniors et pour l'iPhone */
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 6px;
    font-family: inherit;
}
.avis-form small { opacity: 0.8; }
.avis-bouton {
    margin-top: 10px;
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid #c9a227;
    border-radius: 6px;
    background: transparent;
    color: inherit;
}
.avis-bouton:hover { background: rgba(201, 162, 39, 0.2); }


/* Piège à robots : sorti de l'écran, invisible pour les humains */
.avis-piege { position: absolute; left: -9999px; }


/*.avis-etoiles {
    color: #c9a227!important;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 0 0 8px;
}*/

.avis-bloc .avis-etoiles { 
    color: #c9a227!important; 
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 0 0 8px;
}
