/* Footer unifié (landing + pages légales / contact / reset) */

.footer.landing-footer,
.landing-footer {
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--background, #f9f1db);
    border-top: 1px solid rgba(180, 172, 185, 0.45);
    padding: 20px 32px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.landing-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-footer .footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.landing-footer .footer-link {
    color: var(--on-background-light, #776c81);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.landing-footer .footer-link:hover {
    color: var(--primary, #6f4096);
}

.landing-footer .footer-separator {
    color: var(--on-background-light, #776c81);
    font-size: 14px;
}

.landing-footer .footer-language {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.landing-footer .footer-language-label {
    font-size: 12px;
    color: var(--on-background-light, #776c81);
    font-weight: 500;
}

.landing-footer .footer-language-select {
    padding: 6px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--on-background, #281934);
    background-color: var(--surface, #fffcfa);
    border: 1px solid var(--outline-light, #b4acb9);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    min-width: 120px;
}

.landing-footer .footer-language-select:focus {
    border-color: var(--primary, #6f4096);
    box-shadow: 0 0 0 3px rgba(111, 64, 150, 0.1);
}

.lang-picker-open {
    display: none;
}

@media (max-width: 768px) {
    .landing-footer {
        padding-left: 28px;
        padding-right: 28px;
    }

    .landing-footer .footer-content {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-footer .footer-language {
        width: 100%;
        max-width: min(100%, 360px);
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .landing-footer .footer-language-label {
        font-size: 14px;
    }

    .landing-footer .footer-language-select {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .lang-picker-open {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px;
        font-family: inherit;
        font-weight: 500;
        line-height: 1.2;
        text-align: left;
        color: var(--on-background, #28202e);
        background: #fff;
        border: 1px solid rgba(180, 172, 185, 0.65);
        border-radius: 12px;
        cursor: pointer;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    .lang-picker-open::after {
        content: '';
        width: 0.55em;
        height: 0.55em;
        margin-left: 12px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        opacity: 0.55;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .landing-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 769px) {
    .lang-picker-open {
        display: none !important;
    }
}

.lang-picker[hidden] {
    display: none !important;
}

.lang-picker:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
}

body.lang-picker-open-body {
    overflow: hidden;
}

.lang-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 28, 0.45);
}

.lang-picker-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(78dvh, 640px);
    display: flex;
    flex-direction: column;
    padding: 10px 0 env(safe-area-inset-bottom, 12px);
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(20, 12, 28, 0.18);
    box-sizing: border-box;
}

.lang-picker-handle {
    width: 40px;
    height: 4px;
    margin: 4px auto 12px;
    border-radius: 999px;
    background: rgba(40, 32, 46, 0.2);
}

.lang-picker-title {
    margin: 0 20px 12px;
    font-size: 18px;
    font-weight: 700;
    color: #28202e;
}

.lang-picker-list {
    list-style: none;
    margin: 0;
    padding: 0 12px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lang-picker-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    margin: 0;
    font-size: 17px;
    font-family: inherit;
    font-weight: 500;
    text-align: left;
    color: #28202e;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.lang-picker-list > li + li {
    margin-top: 2px;
}

.lang-picker-option.is-selected {
    background: rgba(111, 64, 150, 0.12);
    color: var(--primary, #6f4096);
    font-weight: 600;
}

.lang-picker-option:focus-visible {
    outline: 3px solid var(--primary, #6f4096);
    outline-offset: 2px;
}
