/* ============================================================
   FOOTER 6 — COLONNES EDITORIALES
   Surface douce (--gray-light). Quatre colonnes separees par de fins
   filets : identite, ou venir, quand venir, joindre. Ligne basse
   discrete pour la navigation, les liens legaux et le copyright.
   Signature : les filets se dessinent de haut en bas, puis les colonnes
   apparaissent en leger decalage.
   Aucun selecteur ne se termine sur une balise nue (§4.12) : seul le
   balisage de social_links() et le HTML du backlink, que la variante ne
   peut pas classer, sont vises sous un ancetre qui leur est propre.
   ============================================================ */

.footer-6 {
    --footer-6-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --footer-6-filet: color-mix(in srgb, var(--black) 16%, transparent);
    --footer-6-lien-hover: color-mix(in srgb, var(--secondary) 82%, var(--black));

    background: var(--gray-light);
    color: var(--black);
    padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
}

.footer-6__inner {
    max-width: 1300px;
    margin: 0 auto;
}

/* ---- Les colonnes ------------------------------------------ */
.footer-6__colonnes {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 0;
}

.footer-6__col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
    padding: 0.25rem clamp(1.25rem, 2.6vw, 2.5rem);
}

.footer-6__col--identite {
    padding-left: 0;
    gap: 1.25rem;
}

/* Le filet vertical, a gauche de chaque colonne d'information. */
.footer-6__filet {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: var(--footer-6-filet);
    transform-origin: top;
}

.footer-6__marque {
    display: inline-block;
    color: var(--black);
    text-decoration: none;
    border-radius: 4px;
}

.footer-6__marque:hover,
.footer-6__marque:focus-visible {
    color: var(--black);
}

.footer-6__marque:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* La largeur vient de main.css ([data-footer] .logo), commune aux frères. */
.footer-6__logo {
    display: block;
    height: auto;
}

.footer-6__nom {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    color: var(--black);
}

.footer-6__accroche {
    margin: 0;
    max-width: 34ch;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-dark);
}

/* Intitule de colonne : petit, espace, mais une vraie hierarchie Hn. */
.footer-6__titre,
.footer-6__titre:hover {
    margin: 0 0 0.2rem;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--gray-dark);
}

.footer-6__adresse {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-style: normal;
}

.footer-6__ligne {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
    color: var(--black);
}

.footer-6__horaires {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-6__horaire {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.footer-6__jours {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: var(--gray-dark);
}

.footer-6__plages {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.5vw, 1.3rem);
    line-height: 1.35;
    color: var(--black);
}


.footer-6__telephone {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    white-space: nowrap;
    color: var(--black);
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-6__telephone:hover,
.footer-6__telephone:focus-visible {
    color: var(--footer-6-lien-hover);
}

/* ---- Liens et bouton ---------------------------------------- */
.footer-6__lien {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.2rem 0;
    background: none;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--black) 28%, transparent);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    color: var(--black);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-6__lien:hover,
.footer-6__lien:focus-visible {
    color: var(--footer-6-lien-hover);
    border-bottom-color: currentColor;
}

.footer-6__fleche {
    flex: none;
    width: 1em;
    height: 1em;
    transition: transform 0.3s var(--footer-6-ease);
}

.footer-6__lien:hover .footer-6__fleche,
.footer-6__lien:focus-visible .footer-6__fleche {
    transform: translate(2px, -2px);
}

.footer-6__rdv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 0.5rem;
    padding: 0.85rem 1.7rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--on-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-6__rdv:hover,
.footer-6__rdv:focus-visible {
    background: color-mix(in srgb, var(--secondary) 84%, var(--black));
    color: var(--on-secondary);
}

.footer-6__lien:focus-visible,
.footer-6__telephone:focus-visible,
.footer-6__rdv:focus-visible,
.footer-6__nav-lien:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ---- Reseaux : balisage de social_links(), non classable ----- */
.footer-6__reseaux .social {
    display: flex;
    gap: 0.5rem;
}

.footer-6__reseaux .social > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--footer-6-filet);
    border-radius: 50%;
    background: none;
    color: var(--black);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-6__reseaux .social > a:hover,
.footer-6__reseaux .social > a:focus-visible {
    border-color: var(--footer-6-lien-hover);
    color: var(--footer-6-lien-hover);
}

.footer-6__reseaux .social > a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.footer-6__reseaux .social svg {
    width: 18px;
    height: 18px;
}

/* ---- Section libre du CRM : on lui laisse sa place, rien d'autre. */
.footer-6__encart {
    margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---- Ligne basse -------------------------------------------- */
.footer-6__bas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 2rem;
    margin-top: clamp(2.75rem, 5vw, 4rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--footer-6-filet);
}

.footer-6__nav {
    margin-right: auto;
}

.footer-6__nav-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-6__nav-item {
    color: var(--gray-dark);
}

.footer-6__nav-lien {
    display: inline-block;
    padding: 0.35rem 0;
    background: none;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--gray-dark);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-6__nav-lien:hover,
.footer-6__nav-lien:focus-visible {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-6__copyright,
.footer-6__backlink {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--gray-dark);
}

/* Le backlink est du HTML brut venu de la data : son <a> n'a pas de classe. */
.footer-6__backlink a {
    color: var(--gray-dark);
}

.footer-6__backlink a:hover,
.footer-6__backlink a:focus-visible {
    color: var(--black);
}

/* ---- Signature : filets dessines, colonnes en decalage ------ */
/* Etat de depart pose par le JS seulement (--arme) : sans JS, sans
   IntersectionObserver ou en mouvement reduit, tout est visible. */
.footer-6--arme .footer-6__filet {
    transform: scaleY(0);
}

.footer-6--arme .footer-6__col {
    opacity: 0;
    transform: translateY(14px);
}

.footer-6--visible .footer-6__filet {
    transform: scaleY(1);
    transition: transform 0.9s var(--footer-6-ease);
}

.footer-6--visible .footer-6__col {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--footer-6-ease), transform 0.9s var(--footer-6-ease);
    transition-delay: calc(0.35s + var(--footer-6-rang, 0) * 0.09s);
}

/* ---- Responsive --------------------------------------------- */
@media (max-width: 1024px) {
    .footer-6__colonnes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2.5rem;
    }

    .footer-6__col--identite {
        grid-column: 1 / -1;
    }

    /* La 2e ligne commence sans filet a gauche. */
    .footer-6__col--identite + .footer-6__col {
        padding-left: 0;
    }

    .footer-6__col--identite + .footer-6__col > .footer-6__filet {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-6__colonnes {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }

    .footer-6__col,
    .footer-6__col--identite + .footer-6__col {
        padding: 1.6rem 0;
    }

    .footer-6__col--identite {
        padding-top: 0;
    }

    /* Le filet devient horizontal et se dessine de gauche a droite. */
    .footer-6__filet,
    .footer-6__col--identite + .footer-6__col > .footer-6__filet {
        display: block;
        top: 0;
        bottom: auto;
        right: 0;
        width: auto;
        height: 1px;
        transform-origin: left;
    }

    .footer-6--arme .footer-6__filet {
        transform: scaleX(0);
    }

    .footer-6--visible .footer-6__filet {
        transform: scaleX(1);
    }

    .footer-6__bas {
        flex-direction: column;
        align-items: flex-start;
    }
}
