/* ═══════════════════════════════════════
   COOKIE CONSENT MANAGER — .cc-*
═══════════════════════════════════════ */

.cc-launcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0a0a0a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(10,10,10,.22);
    z-index: 9997;
    border: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cc-launcher:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(10,10,10,.3); }
.cc-launcher svg { width: 22px; height: 22px; display: block; }

/* Éviter le chevauchement avec le widget IA (bottom-right reste libre) */
@media (max-width: 480px) {
    .cc-launcher { bottom: 16px; left: 16px; width: 42px; height: 42px; }
}

/* OVERLAY */
.cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,.45);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
}
.cc-overlay.open { display: flex; }

@media (min-width: 640px) {
    .cc-overlay { align-items: center; justify-content: center; }
}

/* MODAL */
.cc-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(10,10,10,.35);
    font-family: var(--font-sans, 'Inter', sans-serif);
    animation: ccPopIn .2s ease;
}
@keyframes ccPopIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #ececf1;
    flex-shrink: 0;
}
.cc-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: .95rem;
    color: #0a0a0a;
}
.cc-header-brand img { height: 20px; }
.cc-close-btn {
    width: 30px; height: 30px;
    border: 1px solid #dcdce4;
    border-radius: 8px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #0a0a0a;
    transition: background .15s ease;
}
.cc-close-btn:hover { background: #f2f2f5; }
.cc-close-btn svg { width: 14px; height: 14px; }

.cc-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.cc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a0a0a;
    margin: 0 0 12px;
}
.cc-desc {
    font-size: .82rem;
    line-height: 1.6;
    color: #4a4a52;
    margin: 0 0 22px;
}

.cc-sub-title {
    font-size: .98rem;
    font-weight: 800;
    color: #0a0a0a;
    margin: 0 0 12px;
}

.cc-category {
    border: 1px solid #ececf1;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.cc-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    gap: 12px;
}
.cc-category-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: #0a0a0a;
}
.cc-category-toggle-icon {
    background: none; border: none; cursor: pointer;
    color: #8a8a92; padding: 0; display: flex; align-items: center;
}
.cc-category-toggle-icon svg { width: 12px; height: 12px; transition: transform .15s ease; }
.cc-category.expanded .cc-category-toggle-icon svg { transform: rotate(45deg); }

.cc-category-desc {
    display: none;
    padding: 0 14px 14px;
    font-size: .78rem;
    line-height: 1.55;
    color: #6b6b74;
}
.cc-category.expanded .cc-category-desc { display: block; }

.cc-always-active {
    font-size: .74rem;
    font-weight: 700;
    color: #4f46e5;
}

/* SWITCH */
.cc-switch {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-switch-track {
    position: absolute;
    inset: 0;
    background: #d8d8de;
    border-radius: 22px;
    cursor: pointer;
    transition: background .2s ease;
}
.cc-switch-track::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 2px; top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cc-switch input:checked + .cc-switch-track {
    background: #16a34a;
}
.cc-switch input:checked + .cc-switch-track::before {
    transform: translateX(18px);
}
.cc-switch input:disabled + .cc-switch-track {
    cursor: not-allowed;
}

.cc-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #ececf1;
    flex-shrink: 0;
}
.cc-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity .15s ease;
    font-family: inherit;
}
.cc-btn:hover { opacity: .85; }
.cc-btn-reject {
    background: #0a0a0a;
    color: #fff;
}
.cc-btn-confirm {
    background: #0a0a0a;
    color: #fff;
}

.cc-powered {
    text-align: center;
    font-size: .68rem;
    color: #9a9aa5;
    padding: 8px 0 14px;
    flex-shrink: 0;
}