/* footer.css */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 5rem 0 3rem;
    /* Un peu plus d'espace en haut pour aérer */
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Partie Haute : Layout global */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Section Marque (Gauche - prend moins de place maintenant) */
.footer-brand-section {
    max-width: 280px;
    flex-shrink: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

/* footer.css - Version Améliorée pour la visibilité */

.footer-logo-icon {
    /* On garde une belle taille */
    width: 4rem;
    height: 4rem;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;

    /* Positionnement */
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

/* Gestion de la couleur et de l'animation */
.footer-logo-icon img {

    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
    object-fit: contain;
    /* S'assure que le logo ne soit pas déformé */
}

/* Effet au survol : Un simple zoom fluide */
.footer-logo:hover .footer-logo-icon img {
    transform: scale(1.1);
    /* Grossit légèrement */
    opacity: 1;
    /* filter: none; */
}

/* Sécurité : On s'assure que le conteneur ne réagisse plus au survol (plus de fond bleu) */
.footer-logo:hover .footer-logo-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Section Navigation (Grille 4 colonnes) */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 colonnes sur mobile/tablette */
    gap: 2.5rem 2rem;
    flex-grow: 1;
    max-width: 800px;
    /* Limite la largeur pour que ça ne s'étire pas trop */
}

@media (min-width: 768px) {
    .footer-nav {
        grid-template-columns: repeat(4, 1fr);
        /* 4 colonnes sur desktop */
        margin-left: auto;
        /* Pousse la nav vers la droite sur desktop */
    }
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-col a {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col a:hover {
    color: var(--accent-light);
    transform: translateX(2px);
    /* Petit effet de glissement au survol */
}

/* Style spécial pour le lien email */
.contact-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

.contact-link svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent-primary);
}

/* Partie Basse (inchangée mais propre) */
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.trust-badge svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-tertiary);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}



@media (max-width: 767px) {
    footer {
        padding: 3.5rem 0 2rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-top {
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .footer-brand-section {
        max-width: 100%;
    }

    .footer-logo-icon {
        width: 3rem;
        height: 3rem;
        margin-right: 0.75rem;
    }

    .footer-logo-text {
        font-size: 1.125rem;
    }

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

    .footer-nav {
        gap: 2rem 1.5rem;
    }

    .footer-col h4 {
        font-size: 0.6875rem;
        margin-bottom: 1rem;
    }

    .footer-col ul {
        gap: 0.75rem;
    }

    .footer-col a {
        font-size: 0.875rem;
    }

    .contact-link svg {
        width: 0.875rem;
        height: 0.875rem;
    }

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

    .copyright {
        font-size: 0.8125rem;
        text-align: center;
    }

    .trust-badges {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .trust-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.6875rem;
    }

    .trust-badge svg {
        width: 0.875rem;
        height: 0.875rem;
    }

    .social-links {
        gap: 0.875rem;
    }

    .social-link {
        width: 1.875rem;
        height: 1.875rem;
    }

    .social-link svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}

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

    .footer-container {
        padding: 0 0.75rem;
    }

    .footer-top {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-logo-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.5rem;
    }

    .footer-logo-text {
        font-size: 1rem;
    }

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

    .footer-nav {
        gap: 1.75rem 1.25rem;
    }

    .footer-col h4 {
        font-size: 0.625rem;
        margin-bottom: 0.875rem;
    }

    .footer-col ul {
        gap: 0.625rem;
    }

    .footer-col a {
        font-size: 0.8125rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        gap: 1rem;
    }

    .copyright {
        font-size: 0.75rem;
    }

    .trust-badges {
        gap: 0.5rem;
    }

    .trust-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 1.75rem;
        height: 1.75rem;
    }

    .social-link svg {
        width: 0.8125rem;
        height: 0.8125rem;
    }
}

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

    .footer-top {
        gap: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .footer-logo-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .footer-logo-text {
        font-size: 0.9375rem;
    }

    .footer-nav {
        gap: 1.5rem 1rem;
    }

    .footer-col a {
        font-size: 0.75rem;
    }

    .trust-badges {
        flex-direction: column;
        width: 100%;
    }

    .trust-badge {
        width: 100%;
        justify-content: center;
    }
}