/* =============================================================================
   14. FOOTER
   ============================================================================= */

/* -----------------------------------------------
   14.1 - Container & Grid
   ----------------------------------------------- */
.pied {
    position: relative;
    z-index: 9;
    background: var(--fond-page);
}

.pied .bande1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    padding-block: 5rem;
    padding-inline: 10%;
}

.pied .bande1.sans-horaires {
    grid-template-columns: 1fr 1fr 2fr;
}

@media (min-width: 992px) {
    .pied .bande1 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .pied .bande1 .footer-item:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1200px) {
    .pied .bande1 {
        grid-template-columns: 1fr 1fr 1fr 1.5fr;
    }
}

/* -----------------------------------------------
   14.2 - Liens footer
   ----------------------------------------------- */
.pied a {
    text-decoration: none;
}

.pied a:is(:hover, :active) {
    text-decoration: underline;
}

/* -----------------------------------------------
   14.4 - Titres colonnes footer
   ----------------------------------------------- */
.pied .title_footer {
    position: relative;
    padding: 0 0 1.25rem;
    color: var(--typo-sous-titre);
    font-family: var(--family-titre);
    font-size: var(--taille-font-xl);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.pied .title_footer::before {
    left: 0;
    bottom: 0;
    transform: translateX(0);
}

/* -----------------------------------------------
   14.3 - Contact & Address
   ----------------------------------------------- */
.pied address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.flex-address,
.liste-coordonnees li {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    align-items: start;
    gap: 0.75rem;
}

.liste-coordonnees {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

:is(.contact, .pied) address i {
    color: var(--typo-sous-titre);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

address .callTracker {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 1rem;
    padding: 0;
}

address .callTracker :is(.t_phone, .t_affiche) {
    grid-column: 2;
    grid-row: 1;
}

address {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

address p {
    margin: 0;
    padding: 0 0 0.5rem;
}

address .tel a {
    color: inherit;
    text-decoration: none;
}

address p a {
    color: inherit;
    text-decoration: none;
}

address p a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------
   14.4 - Horaires
   ----------------------------------------------- */

.horaire-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--taille-font-sm);
}

.horaire-table td {
    padding-block: 0.25rem;
}

.horaires-label-closed {
    color: var(--couleur-principale) !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* -----------------------------------------------
   14.5 - Menu référencement
   ----------------------------------------------- */
.pied .menu_referencement {
    color: var(--typo-corps);
    list-style: none;
    margin: 0;
    padding: 0 1rem 0 0;
    text-align: justify;
}

.pied .menu_referencement li {
    display: inline;
    padding: 0;
}

.pied .menu_referencement li:after {
    content: " - ";
}

.pied .menu_referencement li:last-child:after {
    content: "";
}

.pied .menu_referencement li a,
.pied .menu_referencement li a:visited {
    color: inherit;
    font-size: var(--taille-font-base);
    text-decoration: none;
}

.pied .menu_referencement li a:hover {
    color: var(--typo-sous-titre);
}

/* -----------------------------------------------
   14.6 - SEO Toggle & Scrollbars
   ----------------------------------------------- */
.footer-item-ref .scrollbars {
    max-height: 260px;
    scrollbar-width: thin;
    scrollbar-color: var(--couleur-gris-md) transparent;
}

.footer-ref-toggle {
    display: none;
}

/* -----------------------------------------------
   14.7 - Bande 2 & Socials
   ----------------------------------------------- */
.pied .bande2 {
    border-top: 1px solid var(--border-subtle);
    padding-block: 2.5rem;
}

#logo_FD {
    max-inline-size: 200px;
    height: auto;
}

#logo_FD path, #logo_FD polygon, #logo_FD rect {
    fill: var(--typo-titre);
}

.btn-liens-rs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-liens-rs div[data-name] {
    display: flex !important;
    align-items: center;
}

.btnrs svg.picto {
    width: 32px;
    height: 32px;
    fill: var(--couleur-gris-dk);
    transition: fill 0.3s ease, transform 0.2s ease;
}

.btnrs:hover svg.picto {
    fill: var(--couleur-principale);
    transform: translateY(-3px);
}

/* -----------------------------------------------
   14.8 - Copyright
   ----------------------------------------------- */
.copyright {
    text-align: justify;
}

.pied .copyright-footer {
    margin: 0;
    text-align: center;
}

/* -----------------------------------------------
   14.9 - Responsive
   ----------------------------------------------- */
@media (max-width: 1199px) {
    .pied .bande1 {
        padding-inline: 5%;
    }
}

@media (max-width: 991px) {
    .pied .bande1 {
        grid-template-columns: repeat(2, 1fr);
        padding: 3rem 5%;
    }

    .pied .bande1.sans-horaires {
        grid-template-columns: repeat(2, 1fr);
    }

    .pied .bande2 {
        padding-inline: 5%;
    }

    .bande_contact_footer {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .pied .bande1 {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .pied .bande2 {
        flex-direction: column;
    }

    .footer-item-ref .title_footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0;
    }

    .footer-ref-toggle {
        display: flex;
        align-items: center;
        gap: 0.4em;
        padding: 0.8em 1.5em;
        background: var(--fond-bouton);
        color: var(--typo-corps);
        border: none;
        border-radius: var(--radius-default);
        font-family: var(--family-titre);
        font-size: var(--taille-font-sm, 0.75rem);
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
        cursor: pointer;
    }

    .footer-ref-toggle i {
        transition: transform 0.2s ease;
    }

    .footer-item-ref .scrollbars {
        max-height: 7em;
        overflow: hidden;
        margin: 1rem 0 0;
        transition: max-height 0.4s ease;
    }

    .footer-item-ref.is-open .scrollbars {
        max-height: 999px;
    }
}
