/* ── Bandeau cookies RGPD, LP Charpente ── */

.lp-cookie-banner {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    right: auto;
    top: auto;
    z-index: 10050;
    width: min(420px, calc(100vw - 2rem));
    padding: 0;
    pointer-events: none;
}

.lp-cookie-banner:not([hidden]) {
    pointer-events: auto;
}

.lp-cookie-banner-panel {
    max-width: none;
    margin: 0;
    padding: 1.25rem 1.35rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(140, 87, 36, .18);
    box-shadow: 0 18px 60px rgba(15, 12, 10, .18);
    backdrop-filter: blur(12px);
}

.lp-cookie-banner-kicker {
    margin: 0 0 .35rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8C5724;
}

.lp-cookie-banner-title {
    margin: 0 0 .55rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1c1917;
}

.lp-cookie-banner-text {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: #57534e;
}

.lp-cookie-banner-text a {
    color: #8C5724;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lp-cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.lp-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 40px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: 'Outfit', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: .2s ease;
}

.lp-cookie-btn--primary {
    background: linear-gradient(135deg, #8C5724, #BB7B39);
    color: #fff;
    box-shadow: 0 8px 20px rgba(140, 87, 36, .22);
}

.lp-cookie-btn--primary:hover {
    transform: translateY(-1px);
}

.lp-cookie-btn--outline {
    background: #fff;
    border-color: rgba(140, 87, 36, .28);
    color: #8C5724;
}

.lp-cookie-btn--ghost {
    background: #f5f5f4;
    border-color: #e7e5e4;
    color: #57534e;
}

.lp-cookie-prefs {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lp-cookie-prefs[hidden] {
    display: none;
}

.lp-cookie-prefs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 10, .45);
    backdrop-filter: blur(4px);
}

.lp-cookie-prefs-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(140, 87, 36, .15);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.lp-cookie-prefs-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem .75rem;
    border-bottom: 1px solid #f5f5f4;
}

.lp-cookie-prefs-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
}

.lp-cookie-prefs-sub {
    margin: .35rem 0 0;
    font-size: .82rem;
    color: #78716c;
    line-height: 1.45;
}

.lp-cookie-prefs-close {
    width: 36px;
    height: 36px;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    background: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #78716c;
}

.lp-cookie-prefs-body {
    padding: 1rem 1.35rem;
    display: grid;
    gap: .75rem;
}

.lp-cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    background: #fafaf9;
}

.lp-cookie-pref-info strong {
    display: block;
    font-size: .88rem;
    color: #1c1917;
}

.lp-cookie-pref-info span {
    display: block;
    margin-top: .2rem;
    font-size: .78rem;
    line-height: 1.45;
    color: #78716c;
}

.lp-cookie-pref-info code {
    font-size: .75rem;
}

.lp-cookie-pref-badge {
    flex-shrink: 0;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(140, 87, 36, .1);
    color: #8C5724;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.lp-cookie-pref input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8C5724;
    flex-shrink: 0;
}

.lp-cookie-prefs-foot {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    padding: .85rem 1.35rem 1.25rem;
    border-top: 1px solid #f5f5f4;
}

.lp-cookie-manage-fab {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 10040;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(140, 87, 36, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: #8C5724;
    box-shadow: 0 8px 24px rgba(15, 12, 10, .12);
    cursor: pointer;
}

.lp-cookie-manage-fab[hidden] {
    display: none;
}

.lp-cookie-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1c1917;
    overflow: hidden;
    border-radius: inherit;
}

.lp-cookie-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.lp-cookie-embed--maps {
    aspect-ratio: 4 / 3;
    min-height: 220px;
}

.lp-cookie-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    height: 100%;
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, #292524, #1c1917);
    color: #fafaf9;
}

.lp-cookie-placeholder-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(187, 123, 57, .16);
    color: #BB7B39;
}

.lp-cookie-placeholder-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    font-weight: 800;
}

.lp-cookie-placeholder-text {
    margin: 0;
    max-width: 36ch;
    font-size: .78rem;
    line-height: 1.5;
    color: #d6d3d1;
}

.lp-cookie-placeholder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: .25rem;
}

@media (max-width: 768px) {
    .lp-cookie-banner {
        left: .75rem;
        bottom: .75rem;
        width: min(420px, calc(100vw - 1.5rem));
    }

    .lp-cookie-banner-panel {
        padding: 1rem;
    }

    .lp-cookie-banner-actions {
        flex-direction: column;
    }

    .lp-cookie-banner-actions .lp-cookie-btn {
        width: 100%;
    }

    .lp-cookie-manage-fab {
        left: .75rem;
        bottom: .75rem;
    }
}

@media (max-width: 768px) {
    body.lp-cookie-banner-open .lp-cookie-manage-fab {
        bottom: 1rem;
    }
}
