/* ========================================
   PRIVACY PANEL - Talaria Style
   ======================================== */

/* Overlay */
.privacy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(78, 32, 61, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Panel principal */
.privacy-panel {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9999;
    width: 560px;
    max-width: calc(100% - 32px);
    background: #FDFAF1;
    border: 2px solid rgba(78, 32, 61, 0.1);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(78, 32, 61, 0.15), 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    box-sizing: border-box;
}

/* Header */
.privacy-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.privacy-panel__icon {
    width: 40px;
    height: 40px;
    background: rgba(78, 32, 61, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.privacy-panel__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    color: #4E203D;
}

/* Texte */
.privacy-panel__text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    color: #6F6F6F;
    margin-bottom: 20px;
}

/* Options */
.privacy-panel__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.priv-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(78, 32, 61, 0.03);
    transition: background 0.2s ease;
}

.priv-option:hover {
    background: rgba(78, 32, 61, 0.06);
}

.priv-option__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.priv-option__label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #4E203D;
}

.priv-option__desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #999;
}

/* Toggle switch */
.priv-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.priv-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.priv-toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(78, 32, 61, 0.15);
    border-radius: 24px;
    transition: background 0.3s ease;
}

.priv-toggle__slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.priv-toggle input:checked+.priv-toggle__slider {
    background: #4E203D;
}

.priv-toggle input:checked+.priv-toggle__slider::before {
    transform: translateX(20px);
}

.priv-toggle input:disabled+.priv-toggle__slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Boutons */
.privacy-panel__actions {
    display: flex;
    gap: 10px;
}

.priv-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 32px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 120%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.priv-btn--confirm {
    background: #4E203D;
    color: #FDFAF1;
}

.priv-btn--confirm:hover {
    background: #3a1830;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 32, 61, 0.25);
}

.priv-btn--decline {
    background: rgba(78, 32, 61, 0.08);
    color: #4E203D;
}

.priv-btn--decline:hover {
    background: rgba(78, 32, 61, 0.14);
    transform: translateY(-1px);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .privacy-panel {
        bottom: 12px;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .privacy-panel__title {
        font-size: 18px;
    }

    .privacy-panel__actions {
        flex-direction: column;
    }
}