/* =====================================================================
   FOOTER — fond brand-black (--color-bg-dark) + texture pattern en overlay,
   bloc logo/présentation + 4 colonnes de liens (menu WP "footer") + colonne
   Contact (champs ACF Options), puis barre copyright/liens légaux.
   Mobile-first : colonnes empilées -> grille 2 colonnes -> grille 5 colonnes.
   ===================================================================== */

.footer {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-dark);
    padding: 64px 0 60px;
}

@media (min-width: 1200px) {
    .footer {
        padding: 120px 0 60px;
    }
}

.footer__pattern {
    position: absolute;
    inset: 0;
    background-image: url(../../img/naturea-texture-footer.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ---------- Bloc haut : agence + colonnes + contact ---------- */

.footer__top {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

@media (min-width: 1200px) {
    .footer__top {
        flex-direction: row;
    }
}

.footer__agency {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 1200px) {
    .footer__agency {
        width: 180px;
        flex-shrink: 0;
    }
}

.footer__agency img {
    display: block;
    height: 32px;
}

.footer__agency p {
    max-width: 420px;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-bg);
    /* cream */
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    flex: 1;
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .footer__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Les 4 colonnes deviennent des enfants directs de .footer__grid, pour que
   la grille (2 puis 5 colonnes) s'applique uniformément avec le bloc Contact. */
.footer__columns {
    display: contents;
}

.footer__column,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer__column {
    ul li {
        &:before {
            display: none;
        }
    }
}

.footer__column h3,
.footer__contact>h3 {
    margin: 0;
    font-size: 18px;
    line-height: 20px;
    font-weight: var(--regular);
    color: var(--color-primary);
    /* apricot */
}

.footer__column ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__column ul a {
    font-size: 13px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.5);
    /* white/50 */
    text-decoration: none;
    transition: var(--transition);
}

.footer__column ul a:hover {
    color: var(--white);
}

/* ---------- Colonne Contact ---------- */

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer__contact-item p {
    margin: 0;
    padding-top: 4px;
    font-size: 13px;
    line-height: 16px;
    color: var(--white);
}

.footer__contact-item a {
    color: inherit;
    text-decoration: none;
}

.footer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: var(--border-radius-full);
    background: var(--color-secondary-muted);
    /* green */
}

.footer__icon:before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-color: var(--white);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.footer__icon--location:before {
    mask-image: url(../../img/naturea-icon-localisation.svg);
    -webkit-mask-image: url(../../img/naturea-icon-localisation.svg);
}

.footer__icon--phone:before {
    mask-image: url(../../img/naturea-icon-telephone.svg);
    -webkit-mask-image: url(../../img/naturea-icon-telephone.svg);
}

/* CTA "Demander un dossier" : réutilise .bouton (css/base/cta.css) pour la
   couleur/le radius/le hover, avec un gabarit compact propre au footer et
   l'icône dossier fixe (non éditable) portée par --picto-url. */
.footer__cta {
    align-self: flex-start;
    padding: 8px 12px !important;
    min-height: auto;
    font-size: 13px;
    line-height: 16px;
    gap: 6px;
    --picto-url: url(../../img/naturea-icon-postuler.svg);
}

/* ---------- Bloc bas : copyright + liens légaux ---------- */

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    /* white/24 */
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        align-items: center;
    }
}

.footer__copyright {
    margin: 0;
    font-size: 13px;
    line-height: 16px;
    color: var(--white);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.footer__legal a {
    font-size: 13px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.5);
    /* white/50 */
    text-decoration: none;
    transition: var(--transition);
}

.footer__legal a:hover {
    color: var(--white);
}

.footer__legal-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    /* white/50 */
}
