html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêche le scroll horizontal */
}
.main-footer {
    background-color: #121212; /* Un fond sombre pour faire ressortir le texte */
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(173, 255, 47, 0.3); /* Bordure subtile en haut */
    text-align: center;
}

/* Section CV */
.cv-title {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.cv-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Pour que ça passe sur deux lignes sur mobile */
    margin-bottom: 40px;
}

.btn-cv-view, .btn-cv-down {
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    padding: 12px 25px;
    border: 1px solid greenyellow;
    color: greenyellow;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-cv-view:hover, .btn-cv-down:hover {
    background-color: greenyellow;
    color: #121212;
    box-shadow: 0 0 15px rgba(173, 255, 47, 0.5);
    transform: translateY(-2px);
}

/* Section Légale & Crédits */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.link-copyright {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.link-copyright:hover {
    color: greenyellow;
}

.credits-icons a {
    color: #555;
    text-decoration: none;
    font-size: 0.7rem;
    font-style: italic;
}

.credits-icons a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE FOOTER --- */

/* Pour les tablettes et mobiles (moins de 768px) */
@media screen and (max-width: 768px) {
    .main-footer {
        padding: 30px 15px 15px 15px; /* On réduit un peu le padding */
    }

    .cv-buttons {
        flex-direction: column; /* Les boutons s'empilent verticalement */
        gap: 15px; /* Espace entre les boutons empilés */
        align-items: center;
    }

    .btn-cv-view, .btn-cv-down {
        width: 100%; /* Les boutons prennent toute la largeur disponible */
        max-width: 300px; /* Mais on limite pour pas que ce soit trop géant */
        padding: 15px; /* Plus grand pour faciliter le clic au doigt */
        text-align: center;
    }

    .cv-title {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 10px;
    }

    .footer-legal {
        margin-top: 20px;
    }

    .link-copyright {
        font-size: 0.75rem;
    }

    .credits-icons a {
        font-size: 0.65rem;
        display: block; /* On les empile aussi pour éviter les débordements */
        margin-top: 10px;
    }
}

/* Pour les très petits mobiles (moins de 480px) */
@media screen and (max-width: 480px) {
    .main-footer {
        margin-top: 30px; /* On réduit l'espace avec le contenu au-dessus */
    }
}