/* ===================================
   CAROUSEL HERO
   =================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--vert-institutionnel) 0%, #034544 100%);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 5rem 5%;
    text-align: center;
    color: var(--blanc-pur);
}

.carousel-slide h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-slide .hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--vert-citron);
    margin-bottom: 2rem;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-slide p {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* Indicateurs du carousel */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-indicator.active {
    background-color: var(--vert-citron);
    transform: scale(1.3);
}

/* Boutons de navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--blanc-pur);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background-color: rgba(199, 200, 4, 0.3);
    border-color: var(--vert-citron);
}

.carousel-prev {
    left: 2%;
}

.carousel-next {
    right: 2%;
}

/* ===================================
   RÉSEAUX SOCIAUX AMÉLIORÉS v2.2
   =================================== */
.social-links-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
    /* Centrage parfait pour SVG et emojis */
    position: relative;
    overflow: hidden;
}

.social-link-enhanced:hover {
    background-color: var(--vert-citron);
    border-color: var(--vert-citron);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(199, 200, 4, 0.3);
}

.social-link-enhanced svg {
    width: 20px;
    height: 20px;
    fill: var(--blanc-pur);
    transition: fill 0.3s ease;
    display: block;
    /* Centrage absolu pour SVG */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social-link-enhanced:hover svg {
    fill: var(--noir-profond);
}

/* Fix pour les emojis si utilisés */
.social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Centrage parfait des emojis */
    font-size: 20px;
    line-height: 1;
    padding: 0;
}

.social-link:hover {
    background-color: var(--vert-citron);
    border-color: var(--vert-citron);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(199, 200, 4, 0.3);
}

/* ===================================
   AMÉLIORATIONS MOBILES
   =================================== */
@media (max-width: 768px) {
    /* Hero Carousel Mobile */
    .carousel-slide {
        padding: 3rem 5%;
    }
    
    .carousel-slide h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .carousel-slide .hero-subtitle {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }
    
    .carousel-slide p {
        font-size: 1rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
    
    /* Footer Mobile */
    .site-footer {
        padding: 3rem 5% 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .social-links-enhanced {
        justify-content: center;
    }
    
    /* Navigation Mobile Améliorée */
    .main-navigation {
        background-color: var(--vert-institutionnel);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .main-navigation.active {
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Boutons Mobile */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Très petits écrans */
    .carousel-slide h1 {
        font-size: 1.75rem;
    }
    
    .carousel-slide .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .carousel-slide p {
        font-size: 0.95rem;
    }
    
    .social-link-enhanced {
        width: 40px;
        height: 40px;
    }
    
    .social-link-enhanced svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-section h4 {
        font-size: 1.125rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
    }
}

/* ===================================
   ACCESSIBILITÉ MOBILE
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .carousel-container {
        transition: none;
    }
    
    .social-link-enhanced {
        transition: none;
    }
    
    .carousel-nav,
    .carousel-indicator {
        transition: none;
    }
}

/* Support du mode sombre système */
@media (prefers-color-scheme: dark) {
    .content-section:nth-child(even) {
        background-color: #1a1a1a;
    }
    
    .card {
        background: #2a2a2a;
        color: var(--blanc-pur);
    }
    
    .card h3 {
        color: var(--vert-citron);
    }
}
