/* =============================================================================
   Faith'SchooLab - Styles CSS Personnalisés

   Ce fichier contient tous les styles personnalisés du site Faith'SchooLab,
   incluant les animations, les effets visuels et les composants spécifiques.

   Organisation :
   1. Hero Section & Vidéos d'arrière-plan
   2. Google Translate
   3. Navigation & Menus
   4. Animations & Effets visuels
   5. Galerie & Lightbox
   6. Formulaires & Inputs
   7. Composants divers (Timeline, Messages, etc.)

   Auteur : Faith'SchooLab Team
   Date : Janvier 2026
============================================================================= */


/* =============================================================================
   1. HERO SECTION - Vidéos d'arrière-plan
============================================================================= */

/* Section Hero avec fond vidéo */
.hero-video-section {
    position: relative;
    min-height: 100vh;
}

/* Conteneur des vidéos d'arrière-plan */
#hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Style des vidéos de fond */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Transition fluide pour le changement de vidéo */
    transition: opacity 1s ease-in-out;
}

/* Z-index personnalisé pour l'overlay vidéo */
.z-5 {
    z-index: 5;
}


/* =============================================================================
   2. GOOGLE TRANSLATE - Sélecteur de langue
============================================================================= */

/* Conteneur du bouton Google Translate */
#google_translator {
    display: flex;
    align-items: center;
}

/* Titre du sélecteur de langue */
#google_translator_title {
    font-size: 14px;
    user-select: none;
}

/* Icône de langue */
#google_translator_title .fa-language {
    font-size: 20px;
}

/* Widget Google Translate - Style personnalisé */
.goog-te-gadget {
    font-family: 'Inter', sans-serif !important;
    font-size: 0 !important;
}

/* Liste déroulante des langues */
.goog-te-gadget .goog-te-combo {
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

/* Hover sur la liste déroulante */
.goog-te-gadget .goog-te-combo:hover {
    border-color: #2563EB;
}

/* Focus sur la liste déroulante */
.goog-te-gadget .goog-te-combo:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Masquer la bannière Google Translate */
.goog-te-banner-frame {
    display: none !important;
}

/* Empêcher le décalage du body par Google Translate */
body {
    top: 0 !important;
}

/* Masquer l'icône du popup Google */
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}

/* Masquer le texte "Powered by" de Google Translate */
.goog-te-gadget > span {
    display: none !important;
}

/* Masquer les liens Google dans le widget */
#google_translate_element a {
    display: none !important;
}

/* Masquer le logo Google */
.goog-logo-link {
    display: none !important;
}

/* Masquer l'iframe skiptranslate mais garder les dropdowns */
.skiptranslate iframe {
    display: none !important;
}


/* =============================================================================
   3. NAVIGATION & MENUS
============================================================================= */

/* Défilement fluide sur toute la page */
html {
    scroll-behavior: smooth;
}

/* Scrollbar personnalisée - Track (fond) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Scrollbar personnalisée - Thumb (curseur) */
::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E40AF;
}

/* Navbar avec effet de scroll */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Menu mobile - Animation d'ouverture */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}


/* =============================================================================
   4. ANIMATIONS & EFFETS VISUELS
============================================================================= */

/* --- Animation de dégradé pour le Hero (ancien) --- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-gradient {
    background: linear-gradient(-45deg, #2563EB, #1E40AF, #10B981, #059669);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* --- Effet de survol sur les cartes --- */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* --- Compteur animé --- */
.counter {
    display: inline-block;
}

/* --- Effet ripple sur les boutons --- */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.btn-ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* --- Animation pulse pour les CTA --- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* --- Animation de flottement --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* --- Animation de rotation lente (casque VR) --- */
@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.slow-rotate {
    animation: slowRotate 20s linear infinite;
}

/* --- Spinner de chargement --- */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563EB;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* =============================================================================
   5. GALERIE & LIGHTBOX
============================================================================= */

/* Élément de galerie - Conteneur */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* Overlay au survol */
.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Effet de zoom sur les images/vidéos au survol */
.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-item img,
.gallery-item video {
    transition: transform 0.5s ease;
}

/* Lightbox - Affichage plein écran */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}


/* =============================================================================
   6. FORMULAIRES & INPUTS
============================================================================= */

/* Style de focus pour tous les champs de formulaire */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* =============================================================================
   7. COMPOSANTS DIVERS
============================================================================= */

/* --- Cartes d'équipe avec bio expansible --- */
.team-card .team-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.team-card:hover .team-bio {
    max-height: 200px;
}

/* --- Logos des partenaires --- */
.partner-logo {
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.08);
}

/* --- Timeline (page À Propos) --- */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2563EB;
    border: 3px solid #DBEAFE;
}

/* --- Messages Toast (notifications) --- */
.message-toast {
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 4.7s;
    animation-fill-mode: forwards;
}

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}


/* =============================================================================
   8. HERO MÉDICAL ANIMÉ - Circuits et éléments de santé
============================================================================= */

/* Conteneur du hero avec animation médicale */
.hero-medical-bg {
    position: relative;
    overflow: hidden;
}

/* Fond animé avec motifs médicaux */
.hero-medical-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* Grille de circuits */
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Animation de mouvement de la grille */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Conteneur des particules/icônes médicales flottantes */
.medical-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Style de base des icônes médicales flottantes */
.medical-icon {
    position: absolute;
    opacity: 0.15;
    animation: floatMedical 15s ease-in-out infinite;
}

/* Variations de position et timing pour chaque icône */
.medical-icon:nth-child(1) { left: 5%; top: 20%; animation-delay: 0s; animation-duration: 18s; }
.medical-icon:nth-child(2) { left: 15%; top: 60%; animation-delay: -3s; animation-duration: 22s; }
.medical-icon:nth-child(3) { left: 25%; top: 30%; animation-delay: -6s; animation-duration: 16s; }
.medical-icon:nth-child(4) { left: 35%; top: 70%; animation-delay: -9s; animation-duration: 20s; }
.medical-icon:nth-child(5) { left: 45%; top: 15%; animation-delay: -2s; animation-duration: 24s; }
.medical-icon:nth-child(6) { left: 55%; top: 50%; animation-delay: -5s; animation-duration: 17s; }
.medical-icon:nth-child(7) { left: 65%; top: 25%; animation-delay: -8s; animation-duration: 21s; }
.medical-icon:nth-child(8) { left: 75%; top: 65%; animation-delay: -1s; animation-duration: 19s; }
.medical-icon:nth-child(9) { left: 85%; top: 40%; animation-delay: -4s; animation-duration: 23s; }
.medical-icon:nth-child(10) { left: 95%; top: 80%; animation-delay: -7s; animation-duration: 15s; }
.medical-icon:nth-child(11) { left: 10%; top: 85%; animation-delay: -10s; animation-duration: 25s; }
.medical-icon:nth-child(12) { left: 90%; top: 10%; animation-delay: -11s; animation-duration: 14s; }

/* Animation de flottement médical avec rotation légère */
@keyframes floatMedical {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-50px) rotate(-3deg) scale(1.1);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-20px) rotate(3deg) scale(1.02);
        opacity: 0.18;
    }
}

/* Ligne de circuit animée (ECG style) */
.circuit-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(16, 185, 129, 0.3) 20%,
        rgba(37, 99, 235, 0.5) 50%,
        rgba(16, 185, 129, 0.3) 80%,
        transparent 100%);
    animation: circuitPulse 3s ease-in-out infinite;
}

.circuit-line:nth-child(1) { top: 20%; animation-delay: 0s; }
.circuit-line:nth-child(2) { top: 40%; animation-delay: -1s; }
.circuit-line:nth-child(3) { top: 60%; animation-delay: -2s; }
.circuit-line:nth-child(4) { top: 80%; animation-delay: -0.5s; }

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

/* Points de connexion (noeuds du circuit) */
.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(16, 185, 129, 0.5);
    border-radius: 50%;
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.2);
    }
}

/* ADN Helix animé */
.dna-helix {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 200px;
    opacity: 0.1;
}

.dna-strand {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: dnaRotate 8s linear infinite;
}

.dna-strand:nth-child(2) {
    animation-delay: -4s;
}

@keyframes dnaRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Battement de coeur ECG */
.heartbeat-line {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 200%;
    height: 50px;
    opacity: 0.2;
    animation: heartbeatMove 4s linear infinite;
}

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

/* Molécules flottantes */
.molecule {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: moleculeFloat 12s ease-in-out infinite;
}

.molecule::before,
.molecule::after {
    content: '';
    position: absolute;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
}

.molecule::before {
    width: 12px;
    height: 12px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.molecule::after {
    width: 16px;
    height: 16px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes moleculeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-40px) rotate(120deg); }
    66% { transform: translateY(-20px) rotate(240deg); }
}
