/* css/style.css */

/* Variables de couleurs personnalisées */
:root {
    --primary-color: #ec4899; /* Couleur principale (pink-600) */
    --primary-hover: #be185d; /* Couleur au survol (pink-700) */
    --secondary-color: #8b5cf6; /* Couleur secondaire (purple-500) */
    --text-color: #1f2937; /* Couleur de texte principale (gray-800) */
    --light-text: #6b7280; /* Couleur de texte claire (gray-500) */
}

/* Styles généraux */
html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

/* Animation pour les liens */
a {
    transition: all 0.3s ease;
}

/* Styles pour les boutons */
.btn {
    transition: all 0.3s ease;
}

/* Animation pour les cartes */
.formation-card,
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formation-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Style pour les titres de section */
.section-title {
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Style pour le menu mobile */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}
#mobile-menu.show {
    max-height: 300px;
}

/* Personnalisation des formulaires */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

/* Animation pour les boutons de filtre */
.category-btn {
    transition: all 0.3s ease;
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Style pour le message de succès/erreur du formulaire */
#form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.375rem;
    display: block;
}

#form-message.error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.375rem;
    display: block;
}

/* Media queries */
@media (max-width: 768px) {
    .section-title::after {
        width: 60px;
    }
}

/* Styles pour le carrousel d'experts */
.experts-swiper {
    padding: 20px 10px 60px;
}

.swiper-button-next.experts-next,
.swiper-button-prev.experts-prev {
    color: #db2777; /* Rose */
}

.swiper-pagination-bullet-active {
    background: #db2777; /* Rose */
}

/* Animation au survol des cartes d'experts */
.swiper-slide .bg-white {
    transition: all 0.3s ease;
}

.swiper-slide .bg-white:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Style pour l'image en format carré */
.relative.pb-\[100\%\] {
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
}

@media (max-width: 640px) {
    .experts-swiper {
        padding-bottom: 50px;
    }
}
/* Video modal styles */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.video-modal.active {
    display: flex;
}
.video-modal video {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/**
 * ===================================================================
 * STYLES POUR LES MODALES ET ANIMATIONS - À ajouter dans style.css
 * ===================================================================
 */

/* 🎨 ANIMATIONS PERSONNALISÉES */
@keyframes pulse-slow {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 🚀 CLASSES D'ANIMATION */
.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-slide-in-up {
    animation: slide-in-up 0.6s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.animate-bounce-in {
    animation: bounce-in 0.5s ease-out;
}

/* 🔐 STYLES POUR LES MODALES */
#login-modal,
#registration-modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#login-modal .relative,
#registration-modal .relative {
    animation: bounce-in 0.3s ease-out;
}

/* Amélioration des champs de formulaire */
#login-modal input:focus,
#registration-modal input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
}

/* Style pour les boutons de modal */
#login-modal button[type="submit"],
#registration-modal button[type="submit"] {
    transition: all 0.3s ease;
    transform: translateY(0);
}

#login-modal button[type="submit"]:hover,
#registration-modal button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

/* Animation des liens dans les modales */
#login-modal a,
#registration-modal a,
#login-modal button:not([type="submit"]),
#registration-modal button:not([type="submit"]) {
    transition: all 0.2s ease;
}

#login-modal a:hover,
#registration-modal a:hover,
#login-modal button:not([type="submit"]):hover,
#registration-modal button:not([type="submit"]):hover {
    transform: translateX(2px);
}

/* 🎯 NAVIGATION D'ANCRAGE */
.nav-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.anchor-nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.anchor-nav-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Styles pour les ancres actives */
.anchor-active {
    color: #e91e63 !important;
    background-color: rgba(233, 30, 99, 0.1) !important;
    border-radius: 0.5rem;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.anchor-link {
    transition: all 0.2s ease;
    position: relative;
}

.anchor-link:hover {
    transform: translateY(-1px);
}

.anchor-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #e91e63;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.anchor-link:hover::after {
    width: 100%;
}

/* 📱 RESPONSIVE - MASQUER LA SCROLLBAR */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 🎨 BANNIÈRE D'ALERTE */
#top-announcement {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

#top-announcement::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 🎯 AMÉLIORATIONS GÉNÉRALES */
/* Smooth scrolling pour toute la page */
html {
    scroll-behavior: smooth;
}

/* Amélioration des transitions pour les éléments interactifs */
button,
a,
input,
select,
textarea {
    transition: all 0.2s ease;
}

/* Animation au focus pour l'accessibilité */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
    animation: pulse-focus 0.3s ease;
}

@keyframes pulse-focus {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

/* Animation pour les cartes et éléments hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading animation pour les boutons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 📱 AMÉLIORATIONS MOBILE */
@media (max-width: 768px) {
    /* Amélioration des modales sur mobile */
    #login-modal .relative,
    #registration-modal .relative {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    /* Navigation d'ancrage plus accessible sur mobile */
    .anchor-link {
        min-width: 120px;
        text-align: center;
        white-space: nowrap;
    }

    /* Amélioration des animations sur mobile (réduction pour les performances) */
    .animate-pulse-slow {
        animation-duration: 2s;
    }
}

/* 🎨 THÈME SOMBRE (optionnel) 
@media (prefers-color-scheme: dark) {
    #login-modal .relative, #registration-modal .relative {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    #login-modal input, #registration-modal input {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    #login-modal input:focus, #registration-modal input:focus {
        border-color: #e91e63;
        background-color: #4b5563;
    }
}*/

/* 🔧 UTILITAIRES */
.transition-fast {
    transition: all 0.15s ease;
}
.transition-normal {
    transition: all 0.3s ease;
}
.transition-slow {
    transition: all 0.5s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}
.hover-scale:hover {
    transform: scale(1.05);
}
.hover-rotate:hover {
    transform: rotate(2deg);
}

/* Effet de glassmorphism pour les éléments modernes */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* CSS Personnalisé pour les vidéos */
.video-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(236, 72, 153, 0.1);
}

.video-wrapper {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
}

.video-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(147, 51, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.video-wrapper:hover::before {
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(236, 72, 153, 0.9);
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-overlay:hover {
    background: rgba(236, 72, 153, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
}

.video-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(236, 72, 153, 0.95);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 3;
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 3;
}

.trending-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    animation: pulse 2s infinite;
}

.new-badge {
    background: linear-gradient(135deg, #00b894, #00a085);
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #ec4899, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    background: linear-gradient(90deg, transparent, #ec4899, transparent);
    height: 2px;
    margin: 2rem 0;
}

.social-share-btn {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
