/* ================================================================
   FOOTER — Bio et Local
   Couleurs : Rose FRAB #D2097A | Vert FRAB #009C50
   ================================================================ */

/* ── Section newsletter (fond blanc) ────────────────────────── */
.footer-newsletter {
    padding: 24px 0 0;
    position: relative;
    top: 50px;
    z-index: 2;
}

.footer-newsletter .container {
    max-width: 540px;
}

.footer-newsletter-icon {
    display: block;
    width: 57px;
    height: 65px;
    object-fit: contain;
    margin: 0 auto -22px;
    position: relative;
    z-index: 2;
}

.footer-newsletter-card {
    background: #009C50;
    border-radius: 14px;
    padding: 36px 24px 28px;
    text-align: center;
}

.footer-newsletter-title {
    font-weight: 500;
    font-size: 22px;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.3;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-newsletter-input {
    width: 100%;
    max-width: 320px;
    height: 42px;
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.46);
    outline: none;
    box-sizing: border-box;
}

.footer-newsletter-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.footer-newsletter-btn {
    background: #fff;
    color: #D2097A;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 12px 48px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}

.footer-newsletter-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ── Corps du footer (fond rose) ────────────────────────────── */
.footer-main {
    background: #D2097A;
    padding: 50px 0 36px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.footer-bg-leaf {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    height: auto;
    pointer-events: none;
}

/* ── Icônes sociales ─────────────────────────────────────────── */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 36px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #D2097A;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: visible;
    transition:
        transform .45s cubic-bezier(.34, 1.56, .64, 1),
        background-color .3s ease,
        box-shadow .3s ease,
        color .25s ease;
}

.footer-social-link--rounded {
    border-radius: 12px;
}

/* Anneau qui pulse et s'évanouit en s'étalant */
.footer-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #D2097A;
    opacity: 0;
    pointer-events: none;
}

.footer-social-link--rounded::before {
    border-radius: 12px;
}

.footer-social-link:hover::before {
    animation: footer-social-ring .7s ease-out;
}

@keyframes footer-social-ring {
    0%   { opacity: .55; transform: scale(1);   }
    100% { opacity: 0;   transform: scale(1.8); }
}

.footer-social-link i {
    font-size: 22px;
    line-height: 1;
}

.footer-social-link:hover {
    transform: translateY(-5px) scale(1.15) rotate(-6deg);
    background: #D2097A;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* Les voisins se rétrécissent légèrement quand un lien est ciblé */
.footer-social:has(.footer-social-link:hover) .footer-social-link:not(:hover) {
    transform: scale(.9);
}

@media (prefers-reduced-motion: reduce) {
    .footer-social-link,
    .footer-social-link::before { transition: none; animation: none; }
    .footer-social-link:hover { transform: none; }
}

/* ── Navigation footer ───────────────────────────────────────── */
.footer-nav {
    margin-left: 40px;
    margin-bottom: 36px;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    border-left: 3px solid #fff;
}

.footer-nav-list .menu-item,
.footer-nav-list li {
    border: none;
}

.footer-nav-list > .menu-item > a,
.footer-nav-list > li > a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 0;
    line-height: 1.3;
}

.footer-nav-list .menu-item a:hover,
.footer-nav-list li a:hover {
    text-decoration: underline;
}

/* Sous-menu avec puces */
.footer-nav-list .sub-menu {
    list-style: disc;
    padding: 0 0 4px 20px;
    margin: 0;
}

.footer-nav-list .sub-menu .menu-item a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 3px 0;
    line-height: 1.3;
}

/* ── Section "Site géré par" / FRAB / "Nous contacter" ───────── */
.footer-managed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.footer-managed-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-frab-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.footer-frab-card:hover {
    opacity: 0.9;
}

.footer-frab-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 8px;
    object-fit: contain;
}

.footer-frab-name {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.2;
}

.footer-frab-desc {
    font-size: 10px;
    color: #555;
    margin: 0;
    line-height: 1.35;
}

.footer-contact-link {
    /* color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s; */
    width: fit-content;
    background: #fff;
    color: #D2097A;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-decoration-thickness: auto;
    border-radius: 8px;
    padding: 12px 32px;
    transition: background-color 0.2s;
}

.footer-contact-link:hover {
    /* color: #FFDB16; */
    background: #FFDB16;
    color: #D2097A;
}

/* Bouton "Nous contacter" — caché en mobile, affiché et centré à
   partir de 768px. En display:block ici (pas d'utilitaire Bootstrap
   d-md-inline-block : il pose display:inline-block en !important, ce
   qui empêche margin:auto de le centrer). */
.footer-contact-btn {
    display: none;
    width: fit-content;
    background: #fff;
    color: #D2097A;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 32px;
    transition: background-color 0.2s;
}

.footer-contact-btn:hover {
    background: #FFDB16;
    color: #D2097A;
}

@media (min-width: 768px) {
    .footer-contact-btn {
        display: block;
        margin: 0 auto 36px;
    }
}

/* "Site géré par", en vert, dans l'encadré blanc du logo FRAB */
.footer-frab-label {
    display: block;
    color: #009C50;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ── Section "Financé par" (fond blanc) ──────────────────────── */
.footer-financed {
    background: #fff;
    padding: 0 0 20px;
}

.footer-financed-label {
    text-align: center;
    color: #D2097A;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
}

.footer-financed-main-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -50px;
}

.footer-financed-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 32px;
}

.footer-financed-logo {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

/* ── Bas de page (fond rose) ─────────────────────────────────── */
.footer-legal {
    background: #D2097A;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px;
    color: #fff;
    text-align: center;
}

.footer-bottom-link {
    color: #fff;
    text-decoration: none;
}

.footer-bottom-link:hover {
    text-decoration: underline;
}

.footer-bottom-sep {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Tablette (≥ 576px) ──────────────────────────────────────── */
@media (min-width: 576px) {
    .footer-newsletter .container {
        max-width: 580px;
    }

    .footer-newsletter-card {
        padding: 38px 48px 32px;
    }
}

/* ── Desktop (≥ 992px) ───────────────────────────────────────── */
@media (min-width: 992px) {
    .footer-newsletter .container {
        max-width: 620px;
    }

    .footer-newsletter-form {
        flex-direction: row;
        justify-content: center;
    }

    .footer-newsletter-input {
        max-width: 260px;
        flex: 1;
    }

    .footer-main {
        padding-top: 100px;
    }

    .footer-nav-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 40px;
        border-left: none;
        padding-left: 0;
        border-top: 3px solid #fff;
        padding-top: 16px;
    }

    .footer-nav-list > .menu-item > a,
    .footer-nav-list > li > a {
        font-size: 17px;
        padding: 6px 0;
    }

    .footer-financed-logos {
        gap: 70px;
    }

    .footer-financed-logo {
        height: 56px;
        max-width: 150px;
    }
}
