/* ============================================
   FOOTER - Composant réutilisable
   ============================================ */

.site-footer {
    background: #111827;
    color: #e5e7eb;
    margin-top: 4rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: 0.3px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    text-decoration: none;
}
.footer-logo-square {
    width: 36px;
    height: 36px;
    background: var(--primary, #2563eb);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -1px;
    flex-shrink: 0;
    /* Ajouter le logo */
    background-image: url('../images/logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Cacher le texte */
    text-indent: -9999px;
    overflow: hidden;
}
.footer-logo-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    background: var(--primary, #2563eb);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

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

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary, #2563eb);
}

.footer-newsletter {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.footer-newsletter-text {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1.2rem;
    max-width: 500px;
    line-height: 1.5;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.8rem;
    max-width: 500px;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.footer-newsletter-input::placeholder {
    color: #6b7280;
}

.footer-newsletter-input:focus {
    border-color: var(--primary, #2563eb);
    background: rgba(255, 255, 255, 0.08);
}

.footer-newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: inherit;
}

.footer-newsletter-btn:hover {
    background: var(--primary-hover, #1d4ed8);
    transform: translateY(-1px);
}

.footer-newsletter-btn svg {
    width: 16px;
    height: 16px;
}

.footer-newsletter-success {
    display: none;
    color: #22c55e;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    font-weight: 500;
}

.footer-newsletter-success.visible {
    display: block;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 3rem 1rem 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-col-title {
        margin-bottom: 0.8rem;
    }
    .footer-newsletter {
        padding: 2rem 0;
    }
    .footer-newsletter-form {
        flex-direction: column;
    }
    .footer-newsletter-btn {
        justify-content: center;
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        justify-content: center;
        gap: 1rem;
    }
}