/* ==========================================================================
 *  FOOTER PÉPITES DÉCOUVERTE (Compatible Dark/Light Mode)
 *  Fichier : /assets/css/partials/footer-new.css
 *  ========================================================================== */

.p-footer {
    background-color: var(--v3-surface);
    color: var(--v3-text);
    padding: 2rem 2rem 2rem;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1.5rem;
}

.p-footer__container {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- HAUT DU FOOTER --- */
.p-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* Bordure neutre qui marche en clair comme en sombre */
    border-bottom: 1px solid rgba(127, 127, 127, 0.2);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .p-footer__top {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
        text-align: left;
    }
}

/* Identité */
.p-footer__identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .p-footer__identity {
        flex-direction: row;
    }
}

.p-footer__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    /* S'adapte à la couleur du texte */
    border: 2px solid var(--v3-text);
    opacity: 0.2;
}

.p-footer__title {
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

/* Navigation */
.p-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.p-footer__link {
    color: var(--v3-text); /* Hérite de la couleur du thème */
    opacity: 0.7; /* Donne l'effet grisé sans forcer le blanc */
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.p-footer__link:hover {
    opacity: 1;
    color: var(--v3-color-brand, var(--v3-text)); /* Utilise ta couleur de marque si dispo */
}

/* Réseaux Sociaux */
.p-footer__socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .p-footer__socials {
        justify-content: flex-end;
    }
}

.p-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(127, 127, 127, 0.1); /* Fond grisâtre neutre */
    color: var(--v3-text); /* Icône foncée en light, claire en dark */
    text-decoration: none;
    transition: all 0.3s ease;
}

.p-footer__social-link:hover {
    background: var(--v3-text);
    color: var(--v3-surface); /* Inverse les couleurs au survol */
    transform: translateY(-3px);
}

/* --- BAS DU FOOTER (Copyright) --- */
.p-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--v3-text);
    opacity: 0.5; /* Grisé propre au lieu du blanc forcé */
    font-family: var(--v3-font-ui, sans-serif);
}

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