/**
 * CARROUSEL SIMPLE - FLUIDANSE
 * CSS simple et fonctionnel respectant l'architecture du projet
 */

/* === SECTION CARROUSEL === */
.carrousel-moderne {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--fluidanse-noir);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

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

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(184, 49, 47, 0.3) 0%,
        rgba(232, 160, 130, 0.3) 50%,
        rgba(184, 49, 47, 0.3) 100%
    );
    z-index: 1;
}

/* === CONTENU CENTRAL === */
.carrousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--fluidanse-blanc);
    z-index: 10;
    max-width: 600px;
    padding: 2rem;
}

.carrousel-logo {
    margin-bottom: -3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.logo-image {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.7));
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.logo-image:hover {
    filter: drop-shadow(2px 2px 12px rgba(0, 0, 0, 0.9));
    transform: scale(1.05);
}

.carrousel-content p {
    font-family: var(--font-texte);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    margin-top: -0.5rem;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: var(--fluidanse-beige);
}

.btn-principal {
    display: inline-block;
    background: var(--fluidanse-rouge);
    color: var(--fluidanse-blanc);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-texte);
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(184, 49, 47, 0.4);
    border: 2px solid transparent;
}

.btn-principal:hover {
    background: var(--fluidanse-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(184, 49, 47, 0.6);
    border-color: var(--fluidanse-blanc);
}

/* === NAVIGATION === */
.carrousel-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.nav-arrow {
    width: 80px;
    height: 80px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: var(--fluidanse-blanc);
    font-size: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.nav-arrow:active {
    transform: scale(0.95);
}

/* === DOTS DE NAVIGATION === */
.carrousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--fluidanse-blanc);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

/* === COMPTEUR === */
.carrousel-counter {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--fluidanse-blanc);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-texte);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carrousel-counter #currentSlide {
    color: var(--fluidanse-orange);
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .carrousel-moderne {
        height: 60vh;
        min-height: 400px;
    }
    
    .carrousel-logo {
        margin-bottom: -2.5rem;
    }
    
    .logo-image {
        max-width: 220px;
    }
    
    .carrousel-content p {
        font-size: 1.2rem;
        margin-top: -0.3rem;
    }
    
    .btn-principal {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    
    .carrousel-navigation {
        padding: 0 0.5rem;
    }
    
    .nav-arrow {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(5px);
    }
    
    .nav-arrow:hover {
        background: rgba(255, 255, 255, 0.6);
        transform: scale(1.05);
    }
    
    .carrousel-counter {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .carrousel-moderne {
        height: 50vh;
        min-height: 350px;
    }
    
    .carrousel-content {
        padding: 1rem;
    }
    
    .carrousel-logo {
        margin-bottom: -2rem;
    }
    
    .logo-image {
        max-width: 180px;
    }
    
    .carrousel-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        margin-top: -0.2rem;
    }
    
    .btn-principal {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    .carrousel-dots {
        bottom: 1rem;
        gap: 0.8rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .carrousel-navigation {
        padding: 0 0.2rem;
    }
    
    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(3px);
    }
    
    .nav-arrow:hover {
        background: rgba(255, 255, 255, 0.7);
        transform: scale(1.02);
    }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    .slide,
    .dot,
    .nav-arrow,
    .btn-principal {
        transition: none;
    }
}

/* === FOCUS POUR ACCESSIBILITÉ === */
.nav-arrow:focus,
.dot:focus,
.btn-principal:focus {
    outline: 2px solid var(--fluidanse-orange);
    outline-offset: 2px;
} 