/* assets/css/style.css */

/* --- 1. CONFIGURATION DE BASE & POLICE --- */
body {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    /* Le fameux dégradé animé */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    
    /* --- OPTIMISATION MOBILE --- */
    min-height: 100vh;
    min-height: 100dvh; /* Utilise la hauteur dynamique pour mobiles (évite les sauts barre d'adresse) */
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Empêche le scroll horizontal accidentel sur mobile */
}

/* Overlay sombre pour améliorer la lisibilité */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: -2; /* Tout au fond */
    pointer-events: none;
}

/* --- 2. ANIMATIONS --- */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideStars {
    from { background-position: 0% 0; }
    to { background-position: -300px 0; }
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes text-glow {
    0% { text-shadow: 0 0 5px rgba(249, 115, 22, 0.5), 0 0 10px rgba(249, 115, 22, 0.3); }
    50% { text-shadow: 0 0 10px rgba(249, 115, 22, 0.8), 0 0 20px rgba(249, 115, 22, 0.6); }
    100% { text-shadow: 0 0 5px rgba(249, 115, 22, 0.5), 0 0 10px rgba(249, 115, 22, 0.3); }
}

.animate-text-glow { animation: text-glow 2.5s infinite alternate; }
.nav-logo-animation { animation: pulseLogo 3s ease-in-out infinite; }

/* --- 3. EFFETS SPÉCIAUX (Glassmorphism & Étoiles) --- */
.stars-overlay {
    position: fixed; /* FIXE pour que ça reste joli au scroll sur mobile */
    top: 0; left: 0;
    width: 200%; height: 100%;
    background-image: radial-gradient(1px 1px at 25px 5px, white, transparent), 
                      radial-gradient(2px 2px at 50px 25px, white, transparent);
    background-size: 300px 100%;
    animation: slideStars 60s linear infinite;
    z-index: -1; /* Derrière le contenu mais devant le fond */
    opacity: 0.6;
    pointer-events: none;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Support Safari Mobile */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1f2937;
}

/* --- 4. UTILITAIRES & SCROLLBAR --- */
[x-cloak] { display: none !important; }

/* -- Scrollbar Personnalisée (PC/Desktop) -- */
@media (min-width: 768px) {
    .custom-scrollbar::-webkit-scrollbar {
        width: 8px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
        background: #fb923c; /* Orange */
        border-radius: 4px;
        border: 2px solid #f1f1f1;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #ea580c;
    }
}

/* -- Scrollbar Mobile (Fine et fluide) -- */
@media (max-width: 767px) {
    .custom-scrollbar {
        -webkit-overflow-scrolling: touch; /* Scroll élastique iOS */
        scrollbar-width: thin;
    }
    .custom-scrollbar::-webkit-scrollbar {
        width: 4px; /* Très fin sur mobile */
    }
    .custom-scrollbar::-webkit-scrollbar-track {
        background: transparent;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
        background: rgba(251, 146, 60, 0.5); /* Semi-transparent */
        border-radius: 10px;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Boutons de partage réseaux sociaux */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.share-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.share-btn svg { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; }

.whatsapp { background-color: #25D366; }
.facebook { background-color: #1877F2; }
.twitter { background-color: #1DA1F2; }
.telegram { background-color: #0088cc; }
.email { background-color: #6b7280; }

/* --- 5. EFFETS DE TEXTE MAGIQUES --- */
@keyframes rainbow-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.magic-text {
    background: linear-gradient(to right, #1f2937, #1f2937);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    color: #1f2937; /* Fallback */
    transition: all 0.3s ease;
}

.group:hover .magic-text {
    background: linear-gradient(90deg, #ff5f6d, #ffc371, #ff5f6d);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-move 3s linear infinite;
    transform: scale(1.05);
    display: inline-block;
}