/* ===== Gestion du consentement RGPD / ePrivacy — BIP TV ===== */
:root {
    --bip-green: #9ea211;
    --bip-green-d: #868a0d;
    --bip-dark: #2e2d30;
}

/* --- Bandeau discret (premier contact) --- */
.bipc-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 12000;
    background: var(--bip-dark); color: #fff;
    box-shadow: 0 -4px 18px rgba(0,0,0,.25);
    padding: 16px 20px;
}
.bipc-banner-in {
    max-width: 1170px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
}
.bipc-banner-txt { flex: 1 1 460px; min-width: 260px; }
.bipc-banner-txt h2 { margin: 0 0 5px; font-size: 16px; font-family: "Gotham Bold", sans-serif; color: #fff; }
.bipc-banner-txt p { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: #d9d9da; }
.bipc-links a { color: #b9bb6a; font-size: 12px; text-decoration: underline; margin-right: 14px; }
.bipc-banner-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Boutons --- */
.bipc-btn {
    border: 1px solid transparent; border-radius: 4px; padding: 9px 18px;
    font-size: 13px; font-family: "Gotham Bold", sans-serif; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s; line-height: 1;
    background: transparent;
}
.bipc-btn-ghost { border-color: #6b6a6e; color: #fff; background: transparent; }
.bipc-btn-ghost:hover { border-color: #fff; }
.bipc-btn-primary { background: var(--bip-green); border-color: var(--bip-green); color: #fff; }
.bipc-btn-primary:hover { background: var(--bip-green-d); border-color: var(--bip-green-d); }
/* variantes claires (dans la modale blanche) */
.bipc-modal .bipc-btn-ghost { border-color: #cfcfcf; color: #444; }
.bipc-modal .bipc-btn-ghost:hover { border-color: #9a9a9a; color: #222; }

/* --- Modale (3 étapes) --- */
.bipc-modal {
    position: fixed; inset: 0; z-index: 12001;
    background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.bipc-modal[hidden] { display: none; }
.bipc-card {
    background: #fff; border-radius: 12px; width: 100%; max-width: 560px;
    max-height: 90vh; overflow: auto; box-shadow: 0 24px 70px rgba(0,0,0,.4);
    padding: 26px 28px 24px; animation: bipc-pop .18s ease;
}
@keyframes bipc-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bipc-step[hidden] { display: none; }
.bipc-eyebrow { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--bip-green); font-family: "Gotham Bold", sans-serif; margin-bottom: 6px; }
.bipc-card h2 { margin: 0 0 12px; font-size: 22px; font-family: "Gotham Bold", sans-serif; color: var(--bip-dark); }
.bipc-card p { font-size: 14px; line-height: 1.5; color: #444; margin: 0 0 12px; }
.bipc-card ul { margin: 0 0 16px; padding-left: 20px; }
.bipc-card ul li { font-size: 14px; color: #444; margin-bottom: 5px; }
.bipc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bipc-actions .bipc-grow { margin-left: auto; }

/* --- Interrupteurs (Étape 2) --- */
.bipc-purpose {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0; border-top: 1px solid #eee;
}
.bipc-purpose:first-of-type { border-top: none; }
.bipc-purpose-txt { flex: 1; }
.bipc-purpose-txt strong { display: block; font-size: 14px; color: var(--bip-dark); }
.bipc-purpose-txt small { font-size: 12.5px; color: #888; }
.bipc-always { font-size: 12px; color: var(--bip-green); font-family: "Gotham Bold", sans-serif; white-space: nowrap; padding-top: 2px; }

/* Toggle accessible (case à cocher stylée) */
.bipc-switch { position: relative; width: 46px; height: 26px; flex: none; }
.bipc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bipc-slider {
    position: absolute; inset: 0; background: #cfcfcf; border-radius: 999px; transition: background-color .15s;
    pointer-events: none;
}
.bipc-slider::before {
    content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
    background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.bipc-switch input:checked + .bipc-slider { background: var(--bip-green); }
.bipc-switch input:checked + .bipc-slider::before { transform: translateX(20px); }
.bipc-switch input:disabled + .bipc-slider { background: var(--bip-green); opacity: .55; }
.bipc-switch input:focus-visible + .bipc-slider { outline: 2px solid var(--bip-dark); outline-offset: 2px; }

/* Étape 3 — confirmation */
.bipc-confirm { text-align: center; padding: 8px 0; }
.bipc-check {
    width: 70px; height: 70px; border-radius: 50%; background: var(--bip-green);
    display: flex; align-items: center; justify-content: center; margin: 4px auto 16px;
}
.bipc-check svg { width: 34px; height: 34px; stroke: #fff; stroke-width: 3; fill: none; }

@media (max-width: 600px) {
    .bipc-banner-btns { width: 100%; }
    .bipc-banner-btns .bipc-btn { flex: 1; text-align: center; }
    .bipc-actions { flex-direction: column; }
    .bipc-actions .bipc-btn { width: 100%; }
    .bipc-actions .bipc-grow { margin-left: 0; }
}
