/* Styles spécifiques pour le slider JURISMODERNA */

/* Container principal du slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
}

/* Slides individuelles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

/* Contenu des slides */
.slide-content {
    text-align: center;
    z-index: 20;
    max-width: 900px;
    padding: 0 2rem;
    position: relative;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: slideInUp 1s ease-out;
}

.slide-subtitle {
    font-size: 1.3rem;
    color: #64b5f6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.4;
    animation: slideInUp 1s ease-out 0.3s both;
}

/* Styles spécifiques pour chaque slide */
.slide:nth-child(1) .slide-title {
    background: linear-gradient(135deg, #4a90e2, #64b5f6, #90caf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide:nth-child(2) .slide-title {
    color: #4a90e2;
}

.slide:nth-child(3) .slide-title {
    color: #357abd;
}

.slide:nth-child(4) .slide-title {
    color: #2196f3;
}

.slide:nth-child(5) .slide-title {
    color: #1976d2;
}

.slide:nth-child(6) .slide-title {
    color: #1565c0;
}

.slide:nth-child(7) .slide-title {
    color: #0d47a1;
}

.slide:nth-child(8) .slide-title {
    color: #64b5f6;
}

/* Vidéos de fond */
.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlays pour chaque slide */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    background: rgba(0, 0, 0, 0.4);
}

/* Overlays spécifiques avec dégradés */
.slide:nth-child(1) .slide-overlay {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.6), rgba(26, 26, 46, 0.4));
}

.slide:nth-child(2) .slide-overlay {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(0, 0, 0, 0.5));
}

.slide:nth-child(3) .slide-overlay {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.4), rgba(63, 81, 181, 0.3));
}

.slide:nth-child(4) .slide-overlay {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.4), rgba(25, 118, 210, 0.3));
}

.slide:nth-child(5) .slide-overlay {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.4), rgba(30, 136, 229, 0.3));
}

.slide:nth-child(6) .slide-overlay {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.4), rgba(33, 150, 243, 0.3));
}

.slide:nth-child(7) .slide-overlay {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.4), rgba(33, 150, 243, 0.3));
}

.slide:nth-child(8) .slide-overlay {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(100, 181, 246, 0.3));
}

/* Indicateurs de slides */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator:hover {
    background: rgba(74, 144, 226, 0.8);
    transform: scale(1.1);
}

.indicator.active {
    background: #4a90e2;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
}

.indicator.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 50%;
    animation: indicatorPulse 2s infinite;
}

@keyframes indicatorPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Contrôles de navigation (optionnels) */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
}

.slider-container:hover .slider-nav {
    opacity: 1;
    visibility: visible;
}

.slider-nav:hover {
    background: rgba(74, 144, 226, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Animations d'entrée pour le contenu */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de transition entre slides */
.slide-transition-fade {
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-transition-slide {
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress bar pour l'auto-slide (optionnel) */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #64b5f6);
    width: 0%;
    transition: width 0.1s linear;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
    }
    
    .slide-content {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .slider-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .slider-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slider-indicators {
        bottom: 15px;
        gap: 8px;
        padding: 8px 15px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Mode paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
    }
    
    .slider-indicators {
        bottom: 10px;
    }
}

/* Optimisations pour les écrans haute résolution */
@media (min-width: 1920px) {
    .slide-title {
        font-size: 4rem;
    }
    
    .slide-subtitle {
        font-size: 1.5rem;
    }
    
    .slide-content {
        max-width: 1200px;
    }
}

/* Mode sombre pour les préférences système */
@media (prefers-color-scheme: dark) {
    .slider-indicators {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Réduction des animations pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
    }
    
    .slide-title,
    .slide-subtitle {
        animation: none;
    }
    
    .indicator.active::after {
        animation: none;
    }
}