/* ==================== FOOTER ==================== */
.footer {
    background: white;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.04);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #DD9933, #c4872d, #DD9933) 1;
    width: 100%;
    position: relative;
}

/* Partie principale */
.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: start;
}

/* Colonne gauche - Réseaux */
.footer-social {
    justify-self: start;
}

.footer-title {
    font-family: 'Abril Fatface', serif;
    font-size: 18px;
    color: #222222;
    margin-bottom: 20px;
}

.footer-title .highlight {
    color: #DD9933;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: #f6eedc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.social-icon.linkedin:hover {
    background: #0A66C2;
}

.social-icon.github:hover {
    background: #24292e;
}

.social-icon.email:hover {
    background: linear-gradient(135deg, #DD9933 0%, #c4872d 100%);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #666666;
    transition: fill 0.3s ease;
}

.social-icon:hover svg {
    fill: white;
}

/* Colonne centre - Logo */
.footer-brand {
    text-align: center;
    justify-self: center;
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-copyright {
    font-size: 14px;
    color: #999999;
}

.footer-copyright strong {
    color: #222222;
}

/* Colonne droite - Liens légaux */
.footer-legal {
    justify-self: end;
    text-align: right;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-link,
.legal-link:visited,
.legal-link:link {
    font-family: 'Abril Fatface', serif;
    font-size: 15px;
    color: #222222 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.legal-link:hover {
    color: #DD9933 !important;
}

.legal-link svg {
    width: 16px;
    height: 16px;
    fill: #DD9933;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.legal-link:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* Barre du bas */
.footer-bottom {
    border-top: 1px solid #e8e8e8;
    padding: 20px 40px;
    text-align: center;
}

.footer-bottom-text {
    font-size: 13px;
    color: #999999;
}

.footer-bottom-text a {
    color: #DD9933;
    text-decoration: none;
}

.footer-bottom-text a:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */

/* Desktop large (1000px - 1200px) */
@media (max-width: 1200px) {
    .footer-main {
        padding: 55px 35px 35px;
        gap: 50px;
    }

    .footer-title {
        font-size: 17px;
    }

    .legal-link {
        font-size: 14px;
    }
}

/* Tablette large (769px - 1000px) */
@media (min-width: 769px) and (max-width: 1000px) {
    .footer-main {
        padding: 50px 30px 30px;
        gap: 40px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social,
    .footer-brand,
    .footer-legal {
        justify-self: center;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .legal-links {
        align-items: center;
    }

    .legal-link {
        justify-content: center;
    }

    .footer-bottom {
        padding: 18px 30px;
    }
}

/* Tablette (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
        padding: 45px 25px 28px;
    }

    .footer-social,
    .footer-brand,
    .footer-legal {
        justify-self: center;
        text-align: center;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .social-icons {
        justify-content: center;
        gap: 12px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }

    .footer-logo {
        width: 85px;
        margin-bottom: 12px;
    }

    .footer-copyright {
        font-size: 13px;
    }

    .legal-links {
        align-items: center;
        gap: 10px;
    }

    .legal-link {
        justify-content: center;
        font-size: 14px;
    }

    .footer-bottom {
        padding: 16px 25px;
    }

    .footer-bottom-text {
        font-size: 12px;
    }
}

/* Mobile (401px - 600px) */
@media (min-width: 401px) and (max-width: 600px) {
    .footer-main {
        padding: 40px 20px 25px;
        gap: 32px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social,
    .footer-brand,
    .footer-legal {
        justify-self: center;
        text-align: center;
    }

    .footer-title {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .social-icons {
        justify-content: center;
        gap: 12px;
    }

    .social-icon {
        width: 46px;
        height: 46px;
    }

    .social-icon svg {
        width: 21px;
        height: 21px;
    }

    .footer-logo {
        width: 75px;
        margin-bottom: 10px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .legal-links {
        align-items: center;
        gap: 9px;
    }

    .legal-link {
        justify-content: center;
        font-size: 13px;
    }

    .footer-bottom {
        padding: 15px 20px;
    }

    .footer-bottom-text {
        font-size: 11px;
    }
}

/* Très petit mobile (max 400px) */
@media (max-width: 400px) {
    .footer-main {
        padding: 35px 15px 20px;
        gap: 28px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social,
    .footer-brand,
    .footer-legal {
        justify-self: center;
        text-align: center;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .social-icons {
        justify-content: center;
        gap: 10px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .footer-logo {
        width: 65px;
        margin-bottom: 8px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    .legal-links {
        align-items: center;
        gap: 8px;
    }

    .legal-link {
        justify-content: center;
        font-size: 12px;
    }

    .footer-bottom {
        padding: 12px 15px;
    }

    .footer-bottom-text {
        font-size: 10px;
        line-height: 1.5;
    }
}