/* ---------- Pied de page ----------
   Mobile d'abord : tout est empilé et centré, les liens forment une grille
   de « pastilles » faciles à toucher. À partir de 768px : marque + coordonnées
   côte à côte, liens en ligne, copyright en bas. */

.site-footer {
    position: relative;
    background-color: #A61B2E;
    color: rgba(255, 255, 255, 0.88);
    padding-block: 44px 28px;
}

/* Bande arc-en-ciel en haut, comme celle du header */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg,
        #E53935 0 16.66%, #F5C518 16.66% 33.33%, #A5C61B 33.33% 50%,
        #22B0E0 50% 66.66%, #B39DDB 66.66% 83.33%, #F48FB1 83.33% 100%);
}

.site-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

/* Marque */
.footer-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.footer-tagline {
    margin-top: 6px;
    max-width: 34ch;
    margin-inline: auto;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Coordonnées */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}
.footer-contact li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-contact-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F5C518;
}
.footer-contact a {
    font-weight: 700;
    font-size: 0.95rem;
    overflow-wrap: anywhere; /* le courriel est long : il revient à la ligne au lieu de déborder */
}
.footer-contact a:hover,
.footer-contact a:focus-visible {
    text-decoration: underline;
}

/* Liens : grille de pastilles en mobile */
.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
.footer-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* cible tactile confortable */
    padding: 8px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
    transition: background-color 0.2s ease, color 0.2s ease;
}
/* Un nombre impair de liens : le dernier prend toute la largeur */
.footer-nav a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
    background-color: #F5C518;
    color: #3b2a5a;
}

/* Copyright */
.footer-copy {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Tablette et ordinateur ---------- */
@media (min-width: 768px) {
    .site-footer {
        padding-block: 56px 28px;
    }
    .site-footer-container {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 32px 48px;
        text-align: left;
    }
    .footer-tagline {
        margin-inline: 0;
    }
    .footer-contact {
        width: auto;
        gap: 12px;
    }
    .footer-nav {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: auto;
    }
    .footer-nav a {
        min-height: 38px;
        padding: 6px 16px;
    }
    .footer-copy {
        grid-column: 1 / -1;
        text-align: center;
    }
}
