/* ========================================
   📦 SECTION NAVIGATION FOOTER
   ======================================== */

/* ==========================================
   🎨 BACKGROUND UNI SOMBRE (identique footer)
   ========================================== */

.navigation-footer-section {
    padding: 100px 0 80px;
    background: #0f0f1a; /* Même couleur que footer */
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    margin-top: 0;
    margin-bottom: 0;
}

/* Grille animée subtile */
.navigation-footer-section::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: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

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

/* Gradient radial central très subtil */
.navigation-footer-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.04) 0%,
        rgba(123, 44, 191, 0.03) 40%,
        transparent 70%
    );
    border-radius: 50%;
    animation: pulseGlow 6s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Container au-dessus du background */
.navigation-footer-section > .container {
    position: relative;
    z-index: 10;
}


/* ========================================
   📝 EN-TÊTE DE LA NAVIGATION
   ======================================== */

.navigation-footer-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.navigation-footer-header h3 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 
        0 0 25px rgba(0, 212, 255, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #33dfff, #9d4fd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.navigation-footer-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
}

/* ========================================
   🎯 GRILLE DE NAVIGATION
   ======================================== */

.navigation-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ========================================
   🔘 BOUTONS DE NAVIGATION
   ======================================== */

.nav-footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 2rem 1.5rem;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 212, 255, 0.03);
}

/* Effet de brillance au survol */
.nav-footer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.15),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 0;
}

.nav-footer-btn:hover::before {
    left: 100%;
}

/* Fond dégradé subtil au hover */
.nav-footer-btn > * {
    position: relative;
    z-index: 1;
}

.nav-footer-btn:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 
        0 15px 40px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 0 50px rgba(0, 212, 255, 0.08);
    color: #00d4ff;
}

.nav-footer-btn:active {
    transform: translateY(-4px) scale(1);
}

/* ========================================
   🎨 ICÔNE DU BOUTON
   ======================================== */

.nav-footer-btn i {
    font-size: 2.5rem;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.nav-footer-btn:hover i {
    transform: scale(1.15) translateY(-3px);
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
    animation: iconFloatHover 2s ease-in-out infinite;
}

@keyframes iconFloatHover {
    0%, 100% { 
        transform: scale(1.15) translateY(-3px); 
    }
    50% { 
        transform: scale(1.15) translateY(-8px); 
    }
}

/* ========================================
   📝 TEXTE DU BOUTON
   ======================================== */

.nav-footer-btn span {
    line-height: 1.4;
    transition: all 0.3s ease;
}

.nav-footer-btn:hover span {
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
    letter-spacing: 0.5px;
}

/* ========================================
   🌟 BOUTON PRINCIPAL (CONTACT)
   ======================================== */

.nav-footer-btn-primary {
    grid-column: 2 / 3;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.15) 0%,
        rgba(123, 44, 191, 0.15) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 10px 35px rgba(0, 212, 255, 0.35),
        inset 0 0 50px rgba(0, 212, 255, 0.1);
}

.nav-footer-btn-primary:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.25) 0%,
        rgba(123, 44, 191, 0.25) 100%
    );
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 
        0 20px 50px rgba(0, 212, 255, 0.5),
        0 0 50px rgba(0, 212, 255, 0.35),
        inset 0 0 70px rgba(0, 212, 255, 0.15);
    transform: translateY(-10px) scale(1.05);
}

.nav-footer-btn-primary i {
    font-size: 2.8rem;
}

.nav-footer-btn-primary:hover i {
    animation: iconFloatHover 1.5s ease-in-out infinite;
}

.nav-footer-btn-primary span {
    font-size: 1.05rem;
    font-weight: 700;
}

/* ========================================
   🏷️ PAGE COURANTE
   ======================================== */

.nav-footer-btn.active-page {
    background: linear-gradient(
        135deg, 
        rgba(0, 102, 255, 0.25), 
        rgba(0, 204, 255, 0.15)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: #0066ff;
    box-shadow: 
        0 10px 30px rgba(0, 102, 255, 0.4),
        inset 0 0 40px rgba(0, 102, 255, 0.1);
    position: relative;
}

.nav-footer-btn.active-page::after {
    content: '●';
    position: absolute;
    top: 12px;
    right: 12px;
    color: #00d4ff;
    font-size: 1.2rem;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.nav-footer-btn.active-page:hover {
    border-color: #00d4ff;
    box-shadow: 
        0 15px 45px rgba(0, 102, 255, 0.6),
        0 0 50px rgba(0, 212, 255, 0.3),
        inset 0 0 60px rgba(0, 102, 255, 0.15);
}

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

/* Tablettes */
@media (max-width: 768px) {
    .navigation-footer-section {
        padding: 80px 0 60px;
        min-height: 50vh;
    }

    .navigation-footer-header h3 {
        font-size: 2rem;
    }

    .navigation-footer-header p {
        font-size: 1rem;
    }

    .navigation-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        max-width: 600px;
    }

    .nav-footer-btn {
        padding: 1.5rem 1.25rem;
        font-size: 0.9rem;
    }

    .nav-footer-btn i {
        font-size: 2rem;
    }

    /* Contact centré sur 2 colonnes */
    .nav-footer-btn-primary {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .nav-footer-btn-primary i {
        font-size: 2.3rem;
    }

    /* Gradient responsive */
    .navigation-footer-section::after {
        width: 600px;
        height: 600px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .navigation-footer-section {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .navigation-footer-header {
        margin-bottom: 2.5rem;
    }

    .navigation-footer-header h3 {
        font-size: 1.75rem;
    }

    .navigation-footer-header p {
        font-size: 0.95rem;
    }

    .navigation-footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        padding: 0 15px;
    }

    .nav-footer-btn {
        padding: 1.25rem 1rem;
        font-size: 0.9rem;
    }

    .nav-footer-btn i {
        font-size: 1.875rem;
    }

    .nav-footer-btn-primary {
        grid-column: 1;
        max-width: 100%;
    }

    .nav-footer-btn-primary i {
        font-size: 2.125rem;
    }

    /* Gradient mobile */
    .navigation-footer-section::after {
        width: 400px;
        height: 400px;
    }

    /* Grille plus fine sur mobile */
    .navigation-footer-section::before {
        background-size: 30px 30px;
    }

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

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

/* Focus pour navigation clavier */
.nav-footer-btn:focus {
    outline: 3px solid rgba(0, 212, 255, 0.6);
    outline-offset: 4px;
}

.nav-footer-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
    .nav-footer-btn,
    .nav-footer-btn i,
    .nav-footer-btn::before,
    .navigation-footer-section::before,
    .navigation-footer-section::after,
    .nav-footer-btn.active-page::after {
        animation: none;
        transition: none;
    }

    .nav-footer-btn:hover {
        transform: none;
    }

    .nav-footer-btn:hover i {
        transform: scale(1.1);
    }
}

/* ========================================
   ✨ ANIMATIONS JAVASCRIPT
   ======================================== */

/* État initial */
.nav-footer-btn {
    opacity: 0;
    transform: translateY(30px);
}

/* État visible */
.nav-footer-btn.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Effet ripple */
.nav-footer-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.4);
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple-animation {
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Section visible au scroll */
.navigation-footer-section {
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.navigation-footer-section.visible {
    opacity: 1;
}
