/* ========================================
   FOOTER - STYLE GRAPHITEX
   ======================================== */

footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content .col-lg-4,
.footer-content .col-lg-2,
.footer-content .col-md-6 {
    flex: 1;
    min-width: 200px;
}

/* Footer Brand */
.footer-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: white;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ff006b 0%, #ff4d9c 100%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #ff006b, #ff4d9c);
    transform: translateY(-3px);
}

/* Grid Navigation + Service */
.footer-links-grid {
    display: flex;
    gap: 3rem;
}

/* Footer Links */
.footer-links h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ff006b;
    padding-left: 5px;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

/* Responsive */
@media (max-width: 992px) {
    .footer-content .col-lg-4 {
        flex: 1 1 100%;
    }
    
    .footer-content .col-lg-2,
    .footer-content .col-md-6 {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 2.5rem 0 1.5rem;
    }

    /* Conteneur principal Bootstrap */
    footer .container {
        padding: 0 20px;
    }

    footer .row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Brand : compact avec social inline */
    footer .col-lg-4:first-child {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        margin-bottom: 1.5rem;
    }

    footer .col-lg-4:first-child p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem !important;
        color: rgba(255,255,255,0.5) !important;
    }

    .footer-brand {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .social-links {
        justify-content: flex-start;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Navigation + Service : 2 colonnes côte à côte */
    footer .col-lg-4:first-child ~ div {
        display: contents;
    }

    footer .row {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* Les 2 cols liens en grille 2 colonnes */
    .footer-links-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        margin-bottom: 1.5rem;
    }

    .footer-links h5 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: rgba(255,255,255,0.9);
    }

    .footer-links a {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        color: rgba(255,255,255,0.55);
    }

    /* Contact : 2 colonnes */
    .footer-links-contact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .footer-links-contact a {
        font-size: 0.82rem;
        margin-bottom: 0.25rem;
        color: rgba(255,255,255,0.55);
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .footer-bottom p {
        font-size: 0.78rem;
    }

    /* mb-4 override */
    .mb-4 {
        margin-bottom: 0 !important;
    }
}

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

    .footer-links h5 {
        font-size: 0.85rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}