/* ============================================================
   Kinder Land — Footer bloc
   Layout : 2 colonnes (carte | formulaire+contacts)
   Responsive : stack vertical sous 768px
   ============================================================ */

/* ── Wrapper principal ───────────────────────────────────── */
.kl-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* align-items: stretch assure que les deux colonnes ont la même hauteur */
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    background-color: #363d41;
}

/* ── Colonne gauche : carte ───────────────────────────────── */
.kl-footer__map {
    position: relative;
    /* min-height garantit une hauteur minimale si le panel est très court */
    min-height: 500px;
    overflow: hidden;
}

.kl-footer__map iframe {
    /* position absolute + inset 0 = l'iframe remplit exactement la colonne */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.kl-footer__map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a3035;
    color: #6c757d;
    font-size: 13px;
    padding: 24px;
    text-align: center;
}

/* ── Colonne droite : panel ───────────────────────────────── */
.kl-footer__panel {
    background-color: #363d41;
    padding: 32px 28px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* ── Titres "Get in touch" & "Contacts" ──────────────────── */
.kl-footer__title {
    font-family: 'MarkoOne', 'Georgia', serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.2;
}

.kl-footer__title--contacts {
    margin-top: 36px;
}

/* ── Overrides du formulaire dans le footer ──────────────── */
/* Le formulaire [kl_contact_form] a déjà son propre fond #363d41.
   Dans le footer on supprime le fond redondant pour un rendu flat. */
.kl-footer__panel .kl-contact-form-wrap {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

/* ── Bloc contacts (dl) ───────────────────────────────────── */
.kl-footer__contacts {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 16px;
    margin: 0 0 32px;
}

.kl-footer__contacts dt {
    color: #90959e;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 2px;
    /* align vertical avec la valeur */
    align-self: start;
}

.kl-footer__contacts dd {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.kl-footer__contacts dd a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.kl-footer__contacts dd a:hover {
    color: #9ac14e;
    text-decoration: underline;
}

/* Lien tel: et mailto: — indication visuelle cliquable */
.kl-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kl-footer__contact-link::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9ac14e;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.kl-footer__contact-link:hover::before {
    opacity: 1;
}

/* ── Copyright + réseaux sociaux ─────────────────────────── */
.kl-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.kl-footer__copyright {
    color: #90959e;
    font-size: 12px;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.kl-footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kl-footer__social li {
    flex-shrink: 0;
}

.kl-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #41494e;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.kl-footer__social a:hover {
    background-color: #9ac14e;
    transform: scale(1.1);
}

.kl-footer__social svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ── Responsive tablette (≤ 900px) ───────────────────────── */
@media (max-width: 900px) {
    .kl-footer {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .kl-footer__map {
        min-height: 360px;
        position: relative;
    }

    .kl-footer__map iframe {
        position: static;
        height: 360px;
    }

    .kl-footer__panel {
        padding: 28px 20px 24px;
    }
}

/* ── Responsive mobile (≤ 600px) ─────────────────────────── */
@media (max-width: 600px) {
    .kl-footer__map iframe {
        height: 280px;
    }

    .kl-footer__contacts {
        grid-template-columns: 90px 1fr;
        gap: 8px 12px;
    }

    .kl-footer__title {
        font-size: 24px;
    }

    .kl-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .kl-footer__panel {
        padding: 22px 16px 20px;
    }
}
