.main-footer {
    display: flex;
    justify-content: center;
    max-width: 85%;
    margin: 0 auto;
    gap: 25px;
    padding: 2.5rem 0 1.75rem;
    border-top: 1px solid var(--border-muted-color);
}

.footer-part {
    flex: 1;
    min-width: 0;
}

/* La présentation prend plus de place que les deux colonnes de liens */
.footer-about {
    flex: 2;
}

.footer-part h2 {
    margin: 0 0 0.75rem;
    font-weight: 600;
    color: var(--text-color);
}

.footer-part p {
    margin: 0;
    color: var(--text-secondary-color);
    line-height: 1.5;
}

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

.footer-part li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.footer-part a {
    text-decoration: none;
    color: var(--text-secondary-color);
    transition: color var(--transition-base);
}

.footer-part a:hover {
    color: var(--text-color);
}

/* Bouton présenté comme les liens du pied de page */
.footer-link-button {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    color: var(--text-secondary-color);
    cursor: pointer;
    transition: color var(--transition-base);
}

.footer-link-button:hover {
    color: var(--text-color);
}

.footer-part [hidden] {
    display: none;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-socials iconify-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@media (width < 768px) {
    .main-footer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-part,
    .footer-about {
        flex: none;
        width: 100%;
    }
}
