/* ============================================
   CHRU Nancy — Footer (ref: chru-2026.dev-commpagnie.com)
   Adapted from chru-nancy-footer v1.3.0
   Mobile-first — 768px / 1024px
   ============================================ */

footer.chru-footer {
    background: var(--chru-blue-service, #14446B);
    color: #FAFAFA;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    margin-top: 0;
}

footer.chru-footer *,
footer.chru-footer *::before,
footer.chru-footer *::after {
    box-sizing: border-box;
}

footer.chru-footer a {
    color: #FAFAFA;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
footer.chru-footer a:hover,
footer.chru-footer a:focus-visible {
    opacity: 0.8;
}

footer.chru-footer .chru-footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 20px 16px;
}

/* Main layout */
footer.chru-footer .chru-footer__main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 24px;
}

/* -- LEFT COLUMN -- */
footer.chru-footer .chru-footer__left {
    display: flex;
    flex-direction: column;
}

/* Logos */
footer.chru-footer .chru-footer__brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
footer.chru-footer .chru-footer__logo-main {
    display: block;
    width: 110px;
    height: auto;
    object-fit: contain;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0;
}
footer.chru-footer .chru-footer__logo-ght {
    display: block;
    width: 160px;
    height: auto;
    object-fit: contain;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0;
}

/* Etablissements */
footer.chru-footer .chru-footer__etablissements {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-underline-offset: 6px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

/* Phone */
footer.chru-footer .chru-footer__phone {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
footer.chru-footer .chru-footer__phone-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
footer.chru-footer .chru-footer__phone-label {
    display: block;
    font-size: 16px;
    font-weight: 400;
}
footer.chru-footer .chru-footer__phone-number {
    display: block;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #FAFAFA;
}
footer.chru-footer .chru-footer__phone-number:hover {
    text-decoration: underline;
}
footer.chru-footer .chru-footer__phone-hours {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

/* Social icons */
footer.chru-footer .chru-footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
footer.chru-footer .chru-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
}
footer.chru-footer .chru-footer__social-link:hover {
    opacity: 0.7;
}
footer.chru-footer .chru-footer__social-link svg {
    width: 32px;
    height: 32px;
}

/* Eco */
footer.chru-footer .chru-footer__eco {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
}
footer.chru-footer .chru-footer__eco svg { flex-shrink: 0; }
footer.chru-footer .chru-footer__eco a { text-decoration: underline; }

/* -- RIGHT COLUMN -- */
footer.chru-footer .chru-footer__right {
    display: flex;
    flex-direction: column;
}

/* Search */
footer.chru-footer .chru-footer__search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
footer.chru-footer .chru-footer__search-input,
footer.chru-footer .chru-footer__search-input[type="search"] {
    flex: 1;
    height: 50px;
    min-width: 0;
    background: white !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 0 22px !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 600;
    color: var(--chru-blue-service, #14446B);
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    width: auto;
}
footer.chru-footer .chru-footer__search-input::placeholder {
    color: var(--chru-blue-service, #14446B);
    opacity: 1;
}
footer.chru-footer .chru-footer__search-btn,
footer.chru-footer .chru-footer__search-btn[type="submit"],
footer.chru-footer button.chru-footer__search-btn {
    flex-shrink: 0;
    height: 50px;
    padding: 0 24px !important;
    background: var(--chru-blue-service, #14446B) !important;
    border: 1px solid #DEDEDE !important;
    border-radius: 25px !important;
    color: #FAFAFA !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.2s ease;
    box-shadow: none !important;
    line-height: 1;
}
footer.chru-footer .chru-footer__search-btn:hover,
footer.chru-footer .chru-footer__search-btn:focus {
    background: #003750 !important;
}
footer.chru-footer .chru-footer__search-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Separator */
footer.chru-footer .chru-footer__separator {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    margin: 20px 0;
}

/* "Vous etes" column — arrow after each link (Figma) */
footer.chru-footer .chru-footer__column-list--arrows li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    text-decoration: none;
}
footer.chru-footer .chru-footer__column-list--arrows li a::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 9px;
    background: url("data:image/svg+xml,%3Csvg width='18' height='9' viewBox='0 0 18 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 4.5L17.5 4.5M17.5 4.5L13.25 8.5M17.5 4.5L13.25 0.5' stroke='%23FAFAFA' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}

/* Columns */
footer.chru-footer .chru-footer__columns {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
footer.chru-footer .chru-footer__column-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #FAFAFA;
}
footer.chru-footer .chru-footer__column-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
footer.chru-footer .chru-footer__column-list li {
    margin-bottom: 14px;
}
footer.chru-footer .chru-footer__column-list li:last-child {
    margin-bottom: 0;
}
footer.chru-footer .chru-footer__column-list li a {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
}
footer.chru-footer .chru-footer__column-list li a:hover {
    text-decoration: underline;
}

/* Bottom bar */
footer.chru-footer .chru-footer__bottom-separator {
    height: 1px;
    background: white;
    opacity: 0.2;
}
footer.chru-footer .chru-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
}
footer.chru-footer .chru-footer__accessibility {
    font-size: 14px;
    font-weight: 600;
}
footer.chru-footer .chru-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
footer.chru-footer .chru-footer__legal a {
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}
footer.chru-footer .chru-footer__legal a:hover {
    text-decoration: underline;
}

/* .screen-reader-text — défini dans rgaa.css (source unique) */

/* ======================================
   TABLET (>= 768px)
   ====================================== */
@media (min-width: 768px) {
    footer.chru-footer .chru-footer__inner { padding: 40px 40px 20px; }
    footer.chru-footer .chru-footer__columns { flex-direction: row; gap: 50px; }
    footer.chru-footer .chru-footer__column { flex: 1; }
    footer.chru-footer .chru-footer__phone-number { font-size: 25px; }
    footer.chru-footer .chru-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
    footer.chru-footer .chru-footer__legal { gap: 30px; }
}

/* ======================================
   DESKTOP (>= 1024px)
   ====================================== */
@media (min-width: 1024px) {
    footer.chru-footer .chru-footer__inner { padding: 41px 80px 20px; }

    /* 2 columns */
    footer.chru-footer .chru-footer__main {
        flex-direction: row;
        gap: 50px;
        align-items: flex-start;
    }

    /* Left fixed width */
    footer.chru-footer .chru-footer__left {
        width: 370px;
        flex-shrink: 0;
    }

    /* Logos desktop */
    footer.chru-footer .chru-footer__logo-main { width: 143px; }
    footer.chru-footer .chru-footer__logo-ght { width: 214px; }

    /* Right flex */
    footer.chru-footer .chru-footer__right { flex: 1; min-width: 0; }

    footer.chru-footer .chru-footer__columns { gap: 60px; }
    footer.chru-footer .chru-footer__legal { gap: 45px; }
}