/* Styles pour le Carrousel Sisme */

/* Conteneur principal */
.sisme-carrousel-container {
    perspective: 2500px; 
    width: 95%;
    max-width: 1600px; 
    position: relative;
    margin: 0 auto;
}

/* Zone d'affichage (Viewport) */
.sisme-carrousel-viewport {
    position: relative;
    width: 100%;
    height: 600px; /* Hauteur ajustée pour ratio horizontal */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transform-style: preserve-3d;
}

/* Carte de base */
.sisme-carrousel-card {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, box-shadow 0.3s, filter 0.5s, width 0.5s ease-in-out, height 0.5s ease-in-out;
    backface-visibility: hidden; 
    transform-style: preserve-3d;
    position: absolute;
    top: 50%;
    left: 50%;
    
    /* État par défaut (centré avant transformation) */
    transform: translate(-50%, -50%); 

    /* Dimensions Ratio Horizontal */
    width: 750px; 
    height: 450px;
    overflow: hidden;
    background-color: #1e293b;
    border-radius: 1rem; 
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2; 
}

/* État : Image Centrale (Focus) */
.sisme-carrousel-focus {
    transform: translate(-50%, -50%) translateZ(150px);
    opacity: 1;
    filter: brightness(1);
    z-index: 10;
    width: 800px;
    height: 500px;
    box-shadow: 0 0 50px rgba(129, 140, 248, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.7); 
}

/* État : Image Précédente (Gauche) - RÉDUCTION DE LA TRANSLATION */
.sisme-carrousel-prev {
    transform: translate(-50%, -50%) translateX(-450px) rotateY(20deg) scale(0.8) translateZ(0px); 
    opacity: 0.9; 
    filter: brightness(0.7); 
    z-index: 5;
}

/* État : Image Suivante (Droite) - RÉDUCTION DE LA TRANSLATION */
.sisme-carrousel-next {
    transform: translate(-50%, -50%) translateX(450px) rotateY(-20deg) scale(0.8) translateZ(0px);
    opacity: 0.9; 
    filter: brightness(0.7);
    z-index: 5;
}

/* État : Images éloignées */
.sisme-carrousel-far {
    transform: translate(-50%, -50%) translateX(0px) rotateY(0deg) scale(0.4) translateZ(-800px);
    opacity: 0; 
    filter: blur(4px) brightness(0.5); 
    pointer-events: none;
    z-index: 1;
}

/* État : Caché */
.sisme-carrousel-hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1) translateZ(-1000px);
    pointer-events: none;
    z-index: 0;
}

/* Overlay Textuel */
.sisme-carrousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background-color: rgba(10, 15, 25, 0.95); 
    color: white;
    padding: 1.5rem;
    border-radius: 0 0 1rem 1rem;
    transform: translateY(100%); 
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0; 
    display: flex; 
    flex-direction: column;
    justify-content: flex-end;
    z-index: 15;
    text-align: left; /* Reset text align for WP themes */
}

/* Reset typography inside overlay to avoid Theme Conflicts */
.sisme-carrousel-overlay h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a5b4fc; /* Indigo 300 */
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}
.sisme-carrousel-overlay h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #c7d2fe; /* Indigo 200 */
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}
.sisme-carrousel-overlay p {
    font-size: 1rem;
    color: #d1d5db; /* Gray 300 */
    margin: 0;
    line-height: 1.5;
}

/* Interaction Overlay */
.sisme-carrousel-card:hover .sisme-carrousel-overlay {
    transform: translateY(0); 
    opacity: 1;
    /* Applique la hauteur agrandie de l'overlay au survol */
    height: 155px; 
}

/* Boutons de Navigation */
.sisme-carrousel-nav-btn {
    background-color: #818cf8; 
    color: #0f172a;
    padding: 0.75rem;
    border-radius: 9999px; 
    box-shadow: 0 4px 10px rgba(129, 140, 248, 0.2); 
    transition: all 0.2s;
    z-index: 20; 
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sisme-carrousel-nav-btn:hover {
    background-color: #6366f1; 
    transform: scale(1.1);
}
.sisme-carrousel-nav-btn:disabled {
     background-color: #475569; 
     color: #94a3b8;
     box-shadow: none;
     cursor: not-allowed;
}

/* Positionnement des contrôles */
.sisme-carrousel-controls {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    pointer-events: none; 
}
.sisme-carrousel-controls > button {
    pointer-events: auto; 
}