/**
 * Footer Xtranumerik Contrôle - Design Moderne avec Glassmorphism
 * Couleurs: Navy (#030b15) + Bleu Xtranumerik Contrôle (#00A8FF)
 */

/* ========== FOOTER PRINCIPAL ========== */
.xtr-footer {
    background: linear-gradient(180deg, rgba(3, 11, 21, 0.95) 0%, rgba(5, 15, 28, 0.98) 100%);
    color: #e2e8f0;
    padding: 4rem 2rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 168, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Effet de particules en arrière-plan */
.xtr-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 168, 255, 0.5) 50%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

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

/* Pattern background subtil */
.xtr-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 168, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========== CONTAINER ========== */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

/* ========== COLONNES ========== */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

/* ========== LOGO ET BRAND ========== */
.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 168, 255, 0.5));
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.938rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

/* ========== RÉSEAUX SOCIAUX ========== */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 50%;
    color: #00A8FF;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00A8FF 0%, #4FC3F7 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: #00A8FF;
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover svg {
    color: #ffffff;
    transform: scale(1.1);
}

/* ========== HEADINGS ========== */
.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00A8FF 0%, transparent 100%);
}

/* ========== LIENS ========== */
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.938rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00A8FF;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-link:hover {
    color: #00A8FF;
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 100%;
}

/* ========== CONTACT ITEMS ========== */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item svg {
    color: #00A8FF;
    flex-shrink: 0;
    stroke-width: 2;
}

.footer-text {
    color: #cbd5e1;
    font-size: 0.938rem;
}

/* ========== CTA BUTTON ========== */
.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #00A8FF 0%, #0078D4 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.938rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.footer-cta:active::before {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

.footer-cta svg {
    transition: transform 0.3s ease;
}

.footer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.5);
}

.footer-cta:hover svg {
    transform: translateX(5px);
}

/* ========== FOOTER BOTTOM ========== */
.footer-bottom {
    background: rgba(3, 11, 21, 0.9);
    border-top: 1px solid rgba(0, 168, 255, 0.15);
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

.footer-brand-link {
    color: #00A8FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-brand-link:hover {
    color: #4FC3F7;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-legal-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: #00A8FF;
}

.separator {
    color: #475569;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
        align-items: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

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

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

    .footer-cta {
        width: 100%;
        justify-content: center;
    }

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

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

@media (max-width: 480px) {
    .xtr-footer {
        padding: 2rem 1rem 0;
    }

    .footer-logo img {
        max-width: 140px;
    }

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

    .footer-link,
    .footer-text {
        font-size: 0.875rem;
    }
}

/* ========== ANIMATIONS SCROLL ========== */
@media (prefers-reduced-motion: no-preference) {
    .xtr-footer {
        animation: footerFadeIn 0.8s ease-out;
    }

    @keyframes footerFadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    /* Déjà optimisé pour dark mode */
}

/* ========== HIGH CONTRAST ========== */
@media (prefers-contrast: high) {
    .xtr-footer {
        border-top-width: 2px;
    }

    .footer-link,
    .footer-heading {
        font-weight: 700;
    }

    .social-link {
        border-width: 2px;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .xtr-footer {
        background: white;
        color: black;
        border-top: 2px solid black;
    }

    .footer-social,
    .footer-cta {
        display: none;
    }

    .footer-link {
        color: black;
        text-decoration: underline;
    }
}
