/* ════════════════════════════════
   COOKIE BANNER — Licorne Passion
   Minimal flat design : fond blanc, traits fins, Urbanist
════════════════════════════════ */

/* ── Banner ── */
.cb-banner {
    position: fixed; z-index: 9998;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 22px 26px;
    max-width: 460px;
    font-family: 'Urbanist', sans-serif;
    color: #000;
    animation: cbSlideUp .35s cubic-bezier(.22,.68,0,1.2) both;
}

.cb-banner.bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }
.cb-banner.bottom-left   { bottom: 20px; left: 20px; }
.cb-banner.bottom-right  { bottom: 20px; right: 20px; }

@keyframes cbSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cb-banner.bottom-left  { animation-name: cbSlideUpEdge; }
.cb-banner.bottom-right { animation-name: cbSlideUpEdge; }
@keyframes cbSlideUpEdge {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cb-banner h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    margin: 0 0 6px;
}

.cb-banner p {
    font-size: 12px;
    color: #4a5565;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.01em;
    margin: 0 0 16px;
}

.cb-buttons {
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Boutons — style "link minimal" du front office ── */
.cb-btn {
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: opacity .18s, background-color .18s, color .18s;
    padding: 9px 0;
}

.cb-btn-accept {
    padding: 9px 18px;
    background: #000;
    color: #fff;
    margin-right: 10px;
}
.cb-btn-accept:hover { opacity: 0.75; }

.cb-btn-refuse, .cb-btn-necessary {
    padding: 9px 18px;
    background: transparent;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.15);
    margin-right: 10px;
}
.cb-btn-refuse:hover, .cb-btn-necessary:hover {
    border-color: #000;
}

.cb-btn-customize {
    padding: 9px 0 9px 4px;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.cb-btn-customize:hover { opacity: 0.65; }

/* ── Customize panel overlay ── */
.cb-panel-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.35);
    display: flex; align-items: center; justify-content: center;
    animation: cbFadeIn .2s;
    padding: 16px;
}
@keyframes cbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.cb-panel {
    width: 480px; max-width: 100%; max-height: 85vh;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    display: flex; flex-direction: column;
    font-family: 'Urbanist', sans-serif;
    color: #000;
    animation: cbPanelIn .25s cubic-bezier(.22,.68,0,1.2);
}
@keyframes cbPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cb-panel-head {
    padding: 22px 26px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex; align-items: center; justify-content: space-between;
}
.cb-panel-head h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    margin: 0;
}
.cb-panel-close {
    width: 28px; height: 28px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .18s, opacity .18s;
}
.cb-panel-close:hover { border-color: #000; }
.cb-panel-close svg { width: 11px; height: 11px; stroke: #000; fill: none; stroke-width: 1.8; }

.cb-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 26px;
}

.cb-category {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.cb-category:last-child { border-bottom: none; }

.cb-category-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.cb-category-info { flex: 1; min-width: 0; }
.cb-category-info h4 {
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    margin: 0 0 4px;
}
.cb-category-info p {
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    color: #4a5565;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}
.cb-category-badge {
    font-family: 'Urbanist', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    color: #000;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Toggle minimaliste ── */
.cb-toggle {
    position: relative;
    width: 32px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.cb-toggle input { opacity: 0; width: 0; height: 0; }
.cb-toggle-slider {
    position: absolute; inset: 0;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background .18s, border-color .18s;
}
.cb-toggle-slider::before {
    content: ''; position: absolute;
    width: 12px; height: 12px;
    background: rgba(0, 0, 0, 0.25);
    left: 2px; top: 2px;
    transition: transform .2s, background .2s;
}
.cb-toggle input:checked + .cb-toggle-slider {
    background: #000;
    border-color: #000;
}
.cb-toggle input:checked + .cb-toggle-slider::before {
    transform: translateX(13px);
    background: #fff;
}
.cb-toggle input:disabled + .cb-toggle-slider { opacity: .5; cursor: not-allowed; }

/* Liste de cookies sous chaque catégorie */
.cb-category > div[style] {
    font-family: 'Urbanist', sans-serif !important;
    font-size: 11px !important;
    color: #6a7282 !important;
    letter-spacing: 0.01em;
}

.cb-panel-foot {
    padding: 16px 26px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .cb-banner {
        max-width: calc(100% - 24px);
        left: 12px;
        right: 12px;
        padding: 18px 20px;
    }
    .cb-banner.bottom-center { transform: none; }
    @keyframes cbSlideUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .cb-panel { width: 100%; max-height: 90vh; }
    .cb-buttons { flex-direction: column; align-items: stretch; }
    .cb-btn-accept, .cb-btn-refuse, .cb-btn-necessary { margin-right: 0; text-align: center; }
    .cb-btn-customize { text-align: center; }
}
