/* ================================
   STYLES COMMUNS - SITE SLAYXI
   ================================ */

/* --- VARIABLES CSS --- */
:root {
    /* Couleurs principales */
    --color-teal-primary: #14b8a6;
    --color-cyan-secondary: #06b6d4;
    --color-cyan-light: #81e6d9;

    /* Backgrounds */
    --bg-dark-1: #0f1419;
    --bg-dark-2: #1a202c;
    --bg-dark-3: #2d3748;

    /* Glass effect */
    --glass-bg: rgba(26, 32, 44, 0.7);
    --glass-border: rgba(56, 178, 172, 0.2);

    /* Text colors */
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --text-muted: #94a3b8;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 50%, var(--bg-dark-3) 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

/* --- UTILITAIRES --- */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

/* Logo navbar - masquer le fond */
nav img[alt*="Logo"] {
    background: transparent !important;
    mix-blend-mode: screen;
    filter: brightness(1.3) contrast(1.2) saturate(1.1);
}

.text-gradient {
    background: linear-gradient(135deg, #38b2ac, #4fd1c7, #81e6d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-blur {
    background: rgba(26, 32, 44, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 178, 172, 0.3);
}

.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-teal-primary), var(--color-cyan-secondary), var(--color-teal-primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.hidden {
    display: none !important;
}

/* --- ANIMATIONS --- */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 20px rgba(56, 178, 172, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(56, 178, 172, 0.6), 0 0 40px rgba(79, 209, 199, 0.3);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes smoothBlink {
    0%, 45% {
        opacity: 1;
    }
    50%, 95% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

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

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- EFFETS HOVER --- */
.social-hover {
    transition: all 0.3s ease;
}

.social-hover:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.2);
}

.card-hover {
    transition: all 0.4s ease;
}

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

/* --- FOOTER --- */
footer {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95), rgba(26, 32, 44, 0.9));
    backdrop-filter: blur(20px);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 178, 172, 0.5), transparent);
}

footer h3 {
    position: relative;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-teal-primary), var(--color-cyan-secondary));
    border-radius: 1px;
}

footer ul li {
    transition: all 0.2s ease;
    cursor: pointer;
}

footer ul li:hover {
    transform: translateX(5px);
}

footer a {
    position: relative;
    transition: all 0.3s ease;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--color-teal-primary), var(--color-cyan-secondary));
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

footer .grid > div {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

footer .grid > div:nth-child(1) { animation-delay: 0.1s; }
footer .grid > div:nth-child(2) { animation-delay: 0.2s; }
footer .grid > div:nth-child(3) { animation-delay: 0.3s; }
footer .grid > div:nth-child(4) { animation-delay: 0.4s; }

#backToTop {
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: translateY(10px);
}

#backToTop:hover {
    transform: translateY(0) scale(1.05);
    opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr;
        gap: 6rem;
    }

    footer .flex.flex-col.md\:flex-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- ACCESSIBILITÉ --- */
@media (prefers-reduced-motion: reduce) {
    .floating-animation,
    .pulse-glow,
    .typewriter-cursor,
    .card-hover,
    .social-hover {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus visible pour l'accessibilité */
:focus-visible {
    outline: 2px solid var(--color-teal-primary);
    outline-offset: 2px;
    border-radius: 4px;
}
