/* ==========================================
   🎨 FOOTER MODERNE
   ========================================== */

/* ==========================================
   🎨 BACKGROUND UNI SOMBRE
   ========================================== */

.footer-modern {
    background: #0f0f1a; /* Couleur unie sombre */
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* Grille subtile animée */
.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 25s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Glow effect très subtil */
.footer-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.03) 0%,
        rgba(123, 44, 191, 0.02) 40%,
        transparent 70%
    );
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Container principal */
.footer-modern .container {
    position: relative;
    z-index: 10;
}


/* ==========================================
   ✨ SÉPARATEUR DU HAUT
   ========================================== */

.footer-divider {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.5) 20%,
        rgba(123, 44, 191, 0.5) 50%,
        rgba(0, 212, 255, 0.5) 80%,
        transparent
    );
    margin-bottom: 60px;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==========================================
   📦 CONTENU PRINCIPAL (3 COLONNES)
   ========================================== */

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 50px;
}

/* ==========================================
   🏷️ COLONNE BRANDING
   ========================================== */

.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 400px;
}

/* ==========================================
   🔗 COLONNE NAVIGATION
   ========================================== */

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: scale(1.2);
}

/* ==========================================
   📞 COLONNE CONTACT
   ========================================== */

.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-contact-item i {
    font-size: 1.1rem;
    color: #00d4ff;
    min-width: 20px;
}

a.footer-contact-item:hover {
    color: #00d4ff;
    transform: translateX(3px);
}

/* Statut disponibilité */
.footer-status {
    margin-top: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.status-indicator {
    font-size: 0.6rem;
    color: #00ff88;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==========================================
   🌐 RÉSEAUX SOCIAUX
   ========================================== */

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.footer-social a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.footer-social a:hover::before {
    opacity: 0.2;
}

.footer-social a i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.footer-social a:hover i {
    transform: scale(1.2);
    color: #00d4ff;
}

/* Couleurs spécifiques par réseau */
.social-linkedin:hover {
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

.social-github:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.social-email:hover {
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.4);
}

/* ==========================================
   📜 BARRE DE COPYRIGHT
   ========================================== */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright strong {
    color: #00d4ff;
    font-weight: 600;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-meta a:hover {
    color: #00d4ff;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

.made-with {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.made-with i {
    font-size: 0.8rem;
}

.made-with .bi-heart-fill {
    color: #ff4757;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.made-with .bi-code-slash {
    color: #00d4ff;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* ==========================================
   📱 RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-modern {
        padding: 60px 0 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-tagline {
        font-size: 1rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ==========================================
   ♿ ACCESSIBILITÉ
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .footer-modern::before,
    .footer-glow,
    .footer-divider,
    .status-indicator,
    .made-with .bi-heart-fill,
    .footer-social a,
    .footer-links a,
    .footer-contact-item {
        animation: none;
        transition: none;
    }
}

/* Focus visible pour navigation clavier */
.footer-links a:focus-visible,
.footer-contact-item:focus-visible,
.footer-social a:focus-visible,
.footer-meta a:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 3px;
    border-radius: 4px;
}
