/* =========================================================
   ALVERHNE SYNDIC — FOOTER
   ========================================================= */

.alv-footer {
    position: relative;
    background: var(--alv-blue-dark);
    color: rgba(255, 255, 255, .78);
}

.alv-footer a {
    text-decoration: none;
}


/* =========================================================
   FOOTER PRINCIPAL
   ========================================================= */

.alv-footer__main {
    padding: 72px 0 62px;
}

.alv-footer__grid {
    display: grid;
    grid-template-columns: 1.15fr 1.35fr .95fr .95fr;
    gap: clamp(35px, 4vw, 65px);
    align-items: start;
}


/* =========================================================
   IDENTITÉ
   ========================================================= */

.alv-footer__brand {
    min-width: 0;
}

.alv-footer__logo {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
}

.alv-footer__logo-image {
    display: block;
    width: auto;
    max-width: 185px;
    height: auto;
}

.alv-footer__baseline {
    max-width: 280px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.65;
}

.alv-footer__values {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 18px 0 0;
    color: var(--alv-copper);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.alv-footer__values span {
    opacity: .55;
}


/* =========================================================
   TITRES
   ========================================================= */

.alv-footer__title {
    position: relative;
    margin: 0 0 25px;
    padding-bottom: 13px;
    color: var(--alv-blue-dark);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.alv-footer__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2px;
    background: var(--alv-copper);
}


/* =========================================================
   CONTACT
   ========================================================= */

.alv-footer__contact {
    min-width: 0;
}

.alv-footer__contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, .82);
}

a.alv-footer__contact-link {
    transition:
        color var(--alv-transition),
        transform var(--alv-transition);
}

a.alv-footer__contact-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.alv-footer__contact-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(185, 103, 36, .75);
    border-radius: 50%;
    color: var(--alv-copper);
}

.alv-footer__contact-icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alv-footer__contact-link > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.alv-footer__contact-link small {
    color: rgba(255, 255, 255, .52);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.alv-footer__contact-link strong {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.alv-footer__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.alv-footer__menu li {
    margin: 0 0 10px;
}

.alv-footer__menu a {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 600;
    transition:
        color var(--alv-transition),
        padding-left var(--alv-transition);
}

.alv-footer__menu a:hover {
    padding-left: 4px;
    color: var(--alv-copper);
}

.alv-footer__extranet {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 11px 15px;
    border: 1px solid var(--alv-copper);
    border-radius: 50px;
    background: #ffffff;
    color: var(--alv-copper);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .025em;
    transition:
        background var(--alv-transition),
        color var(--alv-transition),
        transform var(--alv-transition);
}

.alv-footer__extranet:hover {
    background: var(--alv-copper);
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   RÉSEAUX / PARTENAIRES
   ========================================================= */

.alv-footer__connect p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    line-height: 1.6;
}

.alv-footer__socials {
    display: flex;
    align-items: center;
    gap: 9px;
}

.alv-footer__social {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(185, 103, 36, .75);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    color: var(--alv-copper);
}

.alv-footer__social svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alv-footer__partners-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    transition:
        color var(--alv-transition),
        gap var(--alv-transition);
}

.alv-footer__partners-link:hover {
    gap: 13px;
    color: var(--alv-copper);
}


/* =========================================================
   BARRE LÉGALE
   ========================================================= */

.alv-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, .09);
    background: rgba(0, 0, 0, .13);
}

.alv-footer__legal-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 70px;
}

.alv-footer__copyright {
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
}

.alv-footer__legal-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.alv-footer__legal-navigation a {
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    transition: color var(--alv-transition);
}

.alv-footer__legal-navigation a:hover {
    color: var(--alv-copper);
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 980px) {

    .alv-footer__main {
        padding: 58px 0 50px;
    }

    .alv-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 55px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .alv-footer__main {
        padding: 48px 0 40px;
    }

    .alv-footer__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .alv-footer__logo-image {
        max-width: 165px;
    }

    .alv-footer__title {
        margin-bottom: 20px;
    }

    .alv-footer__legal-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .alv-footer__legal-navigation {
        justify-content: flex-start;
        gap: 10px 18px;
    }
}


/* =========================================================
   PETIT MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .alv-footer__contact-link strong {
        font-size: 12px;
    }

    .alv-footer__extranet {
        width: 100%;
    }
}

/* Ajustements footer — titres + SNPI */
.alv-footer .alv-footer__title {
    color: #ffffff !important;
}

.alv-footer__snpi {
    display: inline-block;
    margin-top: 14px;
}

.alv-footer__snpi img {
    width: 110px;
    max-width: 110px;
    height: auto;
    border-radius: 6px;
}


/* =========================================================
   RETOUR EN HAUT
   ========================================================= */

.alv-back-to-top {
    position: fixed;
    z-index: 99990;
    right: 22px;
    bottom: 22px;

    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;

    background: var(--alv-blue);
    color: #ffffff;

    box-shadow: 0 8px 24px rgba(7, 63, 102, .24);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    cursor: pointer;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .2s ease;
}

.alv-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.alv-back-to-top:hover,
.alv-back-to-top:focus-visible {
    background: var(--alv-blue-dark);
    transform: translateY(-2px);
}


/* =========================================================
   FOOTER — MOBILE CENTRÉ
   ========================================================= */

@media (max-width: 767px) {

    .alv-footer__grid {
        text-align: center;
    }

    .alv-footer__brand,
    .alv-footer__contact,
    .alv-footer__navigation,
    .alv-footer__connect {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .alv-footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .alv-footer__contact-link {
        justify-content: center;
        text-align: left;
    }

    .alv-footer__menu {
        width: 100%;
        text-align: center;
    }

    .alv-footer__socials {
        justify-content: center;
    }

    .alv-footer__legal-inner {
        align-items: center;
        text-align: center;
    }

    .alv-footer__legal-navigation {
        justify-content: center;
    }
}


/* =========================================================
   PETIT MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .alv-back-to-top {
        right: 14px;
        bottom: 14px;
        width: 43px;
        height: 43px;
    }
}
