/* Styles spécifiques pour la nouvelle page d'accueil HODEA */

/* Amélioration de l'animation du carrousel */
.carousel-track {
    display: flex;
    animation: scroll 60s linear infinite;
    gap: 30px;
    width: fit-content;
}

/* Animation fluide sans pause */
.schools-carousel {
    overflow: hidden;
    margin: 40px 0;
    width: 100%;
}

@keyframes scroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-50%); 
    }
}

/* Amélioration de l'effet des onglets */
.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1a3a5f, #87ceeb);
    transition: left 0.3s ease;
}

.tab-btn.active::after,
.tab-btn:hover::after {
    left: 0;
}

/* Effet parallax léger pour les sections */
.section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Animation d'apparition pour les cartes */
.profile-card,
.stat-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.profile-card:nth-child(2) {
    animation-delay: 0.2s;
}

.profile-card:nth-child(3) {
    animation-delay: 0.4s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amélioration des boutons */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

/* Amélioration responsive pour les onglets */
@media (max-width: 480px) {
    .tab-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .highlighted-title {
        font-size: 1.5rem;
    }
}

/* Style pour les logos d'écoles avec couleurs naturelles */
.school-logo img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-logo:hover img {
    transform: scale(1.1);
}

/* Amélioration des tags de profil */
.tag {
    transition: all 0.3s ease;
}

.tag:hover {
    background: #1a3a5f;
    color: white;
    transform: translateY(-2px);
}

/* Effet de survol pour les cartes de profil */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.05), rgba(135, 206, 250, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card {
    position: relative;
}

/* Amélioration de la section CTA */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(26, 58, 95, 0.1);
}

/* Animation pour les statistiques */
.stat-number {
    background: linear-gradient(135deg, #1a3a5f, #87ceeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Amélioration du responsive pour les containers flex */
@media (max-width: 992px) {
    .flex-container {
        gap: 30px;
    }
    
    .flex-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}
