/* =========================================================
   Camila — pied de page complet (parts/site-footer.php)
   Carte rose pâle de 1600px au plus, posée sur un cercle de points :
   inscription à la newsletter, puis trois colonnes de liens.
   ========================================================= */

/* Le cercle dépasse de la carte en haut et en bas : place réservée au-dessus et en dessous */
.footer {
    isolation: isolate;
    padding: clamp(4rem, 2rem + 6vw, 9rem) 0 clamp(2rem, 6vw, 9rem);
}

.footer-card {
    position: relative;
    width: min(100% - 2 * var(--gutter), 1600px);
    margin-inline: auto;
    padding: clamp(2.5rem, 2rem + 2vw, 4rem) var(--gutter) 1.5rem;
    border-radius: 12px;
    background: var(--c-surface);
    text-align: center;
}

/* Cercle de points centré sur la carte, derrière elle : 1,45 fois sa hauteur.
   (La carte n'a pas de z-index : le cercle passe sous son fond.) */
.footer-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    height: 145%;
    aspect-ratio: 1;
    background: url("../img/cercle-points.svg") center / contain no-repeat;
    transform: translate(-50%, -50%);
}

/* ---------- Newsletter ---------- */

.footer .footer-title {
    max-width: 16em;
    margin: 0 auto 1.5rem;
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.footer-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.footer-input {
    width: min(100%, 380px);
    height: 3.25rem;
    padding: 0 1em;
    border: 1px solid #eba597;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font: inherit;
    text-align: center;
}

.footer-input::placeholder {
    color: var(--c-text-soft);
}

.footer-input:focus-visible {
    border-color: var(--c-accent-ink);
    outline-offset: 2px;
}

/* Champ piège : hors de l'écran (pas display: none, que certains robots repèrent) */
.footer-trap {
    position: absolute;
    left: -9999px;
}

.footer-submit {
    justify-content: center;
    min-width: 10rem;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.footer-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.footer-status:empty {
    display: none;
}

.footer-status {
    max-width: 32em;
    font-weight: 700;
}

.footer-status[data-state="success"] {
    color: #2f6b3c;
}

.footer-status[data-state="error"] {
    color: var(--c-accent-ink);
}

.footer-note {
    color: var(--c-text-soft);
    font-size: .875rem;
}

/* ---------- Colonnes de liens ---------- */

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem clamp(2rem, 1rem + 4vw, 5rem);
    margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    text-align: left;
}

.footer-col {
    min-width: 11rem;
}

.footer .footer-col-title {
    margin-bottom: .6rem;
    font-size: 1.25rem;
}

.footer-links {
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: .35rem;
}

.footer-links a {
    color: #000;
    font-weight: 300;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--c-accent-ink);
    text-decoration: underline;
}

/* Lien vers une page pas encore créée (visible seulement connecté) */
.footer-missing {
    color: var(--c-text-soft);
    text-decoration: line-through dashed;
    cursor: help;
}

.footer-copy {
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    color: var(--c-text-soft);
    font-size: .875rem;
}

/* ---------- Mobile ---------- */

/* Carte plus haute que large : pas de cercle, colonnes centrées les unes sous les autres */
@media (max-width: 767px) {
    .footer-card::before {
        display: none;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
