/* Carousel Simple Styles */
.carousel-3d-section {
    width: 100%;
    min-height: 450px; /* Réduit de 600px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0 1rem 0; /* Réduit le padding bas */
}

.carrousel {
    width: 900px;
    height: 380px; /* Réduit de 450px */
    margin: auto;
    font-size: 0;
    overflow: hidden;
    position: relative;
    text-align: left;
}

.carrousel .screens {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transform: translate(0%, -20%); /* Ajusté pour remonter les cartes */
}

.carrousel .screens > li {
    width: 50%;
    height: 50%;
    display: inline-block;
    font-size: 15px;
    overflow: hidden;
    background: #bbb;
    border-radius: 16px;
    opacity: 0;
    filter: blur(5px);
    cursor: pointer;
    position: absolute;
    bottom: 0;
    transform: translate(50%, 0);
    transition: all .7s;
    pointer-events: none;
    background-size: cover;
    background-position: top left;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carrousel .screens > li:hover {
    filter: none;
    opacity: 1;
}

.carrousel .screens > li.active {
    opacity: 1;
    filter: none;
    width: 70%;
    height: 70%;
    z-index: 100;
    transform: translate(20%, 0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(46, 84, 155, 0.6); /* --primary-color */
}

.carrousel .screens > li.active,
.carrousel .screens > li.left,
.carrousel .screens > li.right {
    pointer-events: all;
}

.carrousel .screens > li.left,
.carrousel .screens > li.right {
    transform: translate(0%, 0);
    opacity: .6;
    filter: blur(3px) brightness(0.9);
}

.carrousel .screens > li.left {
    transform: translate(0%, 0);
    border-color: rgba(196, 181, 253, 0.4);
}

.carrousel .screens > li.right {
    transform: translate(100%, 0);
    border-color: rgba(251, 207, 232, 0.4);
}

.carrousel .screens > li .carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 1rem;
    background: rgba(46, 84, 155, 0.95); /* --primary-color #2e549b avec transparence */
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.carrousel .screens > li .carousel-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #ffffff;
    text-shadow: none;
}

.carrousel .screens > li .carousel-description {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #e0e7ff; /* blue-100 pour un blanc légèrement bleuté */
    text-shadow: none;
}

.carrousel .pagination {
    list-style: none;
    padding: 5px;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
}

.carrousel .pagination li {
    display: inline-block;
    vertical-align: middle;
    width: 10px;
    height: 10px;
    margin: 5px;
    opacity: .3;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 100%;
    transition: all .3s ease;
}

.carrousel .pagination li:hover {
    opacity: .6;
    background: #93c5fd;
}

.carrousel .pagination li.active {
    opacity: 1;
    background: #2e549b; /* --primary-color */
    transform: scale(1.2);
}

.carousel-instructions {
    text-align: center;
    margin-top: 0.5rem; /* Réduit de 2rem */
    color: #6b7280;
    font-size: 0.875rem;
}

.carousel-instructions i {
    color: #2e549b; /* --primary-color */
}

/* Animation pulse pour le bouton "Essayer gratuitement" sur la page home */
@keyframes pulse-glow-button {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(46, 84, 155, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(46, 84, 155, 0);
    }
}

.btn-primary.auth-check-btn {
    animation: pulse-glow-button 2s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .carrousel {
        width: 700px;
        height: 300px; /* Réduit de 350px */
    }
}

@media (max-width: 768px) {
    .carrousel {
        width: 90%;
        max-width: 500px;
        height: 250px; /* Réduit de 300px */
    }
    
    .carrousel .screens > li .carousel-title {
        font-size: 1.2rem;
    }
    
    .carrousel .screens > li .carousel-description {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .carrousel {
        width: 95%;
        height: 220px; /* Réduit de 250px */
    }
    
    .carrousel .screens > li .carousel-overlay {
        padding: 1rem;
    }
    
    .carrousel .screens > li .carousel-title {
        font-size: 1rem;
    }
    
    .carrousel .screens > li .carousel-description {
        font-size: 0.75rem;
    }
}

