/* =========================================================
   UMHM – Footer global
   Palette cohérente avec la nouvelle navigation
   ========================================================= */

#idFooter.umhm-footer {
    --footer-blue: #173D60;
    --footer-blue-soft: #58758A;
    --footer-gold: #B38C29;
    --footer-ivory: #F7F5EF;
    --footer-line: #E5E0D5;
    margin-top: 54px;
    color: var(--footer-blue);
    background: var(--footer-ivory);
    border-top: 1px solid var(--footer-line);
}

.umhm-footer-inner {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: 38px 0 18px;
    box-sizing: border-box;
}

.umhm-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(160px, .8fr) minmax(180px, .8fr);
    align-items: center;
    gap: 42px;
    padding-bottom: 30px;
}

.umhm-footer-contact {
    font-size: .98rem;
    line-height: 1.75;
}

.umhm-footer-contact p {
    margin: 0 0 8px;
}

.umhm-footer-contact .umhm-footer-name {
    margin-bottom: 8px;
    color: var(--footer-blue);
    font-size: 1.08rem;
    font-weight: 600;
}

.umhm-footer-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.umhm-footer-detail i {
    width: 18px;
    color: var(--footer-gold);
    text-align: center;
}

.umhm-footer a {
    color: var(--footer-blue);
    text-decoration: none;
    transition: color .2s ease;
}

.umhm-footer a:hover,
.umhm-footer a:focus {
    color: var(--footer-gold);
    text-decoration: underline;
}

.umhm-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: .98rem;
}

.umhm-footer-brand {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.umhm-footer-brand img {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
}

.umhm-footer-copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 18px;
    padding-top: 16px;
    border-top: 1px solid var(--footer-line);
    color: var(--footer-blue-soft);
    font-size: .86rem;
    line-height: 1.6;
    text-align: center;
}

.umhm-footer-validation i {
    margin-right: 5px;
    color: #63866A;
}

@media (max-width: 760px) {
    .umhm-footer-inner {
        width: min(100% - 32px, 560px);
        padding-top: 30px;
    }

    .umhm-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding-bottom: 24px;
    }

    .umhm-footer-contact {
        grid-column: 1 / -1;
    }

    .umhm-footer-brand {
        justify-content: flex-end;
    }

    .umhm-footer-brand img {
        width: 145px;
    }

    .umhm-footer-copyright {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 420px) {
    .umhm-footer-main {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .umhm-footer-contact,
    .umhm-footer-links,
    .umhm-footer-brand {
        grid-column: auto;
    }

    .umhm-footer-brand {
        justify-content: flex-start;
    }

    .umhm-footer-brand img {
        width: 130px;
    }
}
