/* gdpr.css - Système RGPD unifié pour MiaouIsLost 🐱 */

:root {
    --gdpr-bg-dark: #07070a;
    --gdpr-glass-bg: rgba(255, 255, 255, 0.05);
    --gdpr-glass-border: rgba(255, 255, 255, 0.08);
    --gdpr-glass-highlight: rgba(255, 255, 255, 0.15);
    --gdpr-text-primary: #f5f5f7;
    --gdpr-text-secondary: #86868b;
    --gdpr-accent-gradient: linear-gradient(135deg, #0071e3, #bf5af2);
    --gdpr-font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.hidden {
    display: none !important;
}

/* Bannière RGPD (Cookie Banner - Fullscreen Blocker) */
.rgpd-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Plus haut que tout */
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.rgpd-banner.show {
    opacity: 1;
    pointer-events: auto;
}

.rgpd-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.show .modal-content {
    transform: scale(1);
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gdpr-glass-border);
}

.pref-info strong {
    font-size: 0.95rem;
    color: var(--gdpr-text-primary);
}

.pref-info p {
    font-size: 0.8rem;
    color: var(--gdpr-text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

/* Switch iOS Style */
.toggle-switch {
    position: relative;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: 0.3s;
}

.toggle-switch label::before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + label {
    background: var(--gdpr-accent-gradient);
}

.toggle-switch input:checked + label::before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.gdpr-btn {
    border: none;
    font-family: var(--gdpr-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    text-decoration: none;
}

.gdpr-btn-primary {
    background: var(--gdpr-accent-gradient);
    color: #ffffff !important;
}

.gdpr-btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.4);
    transform: scale(1.02);
}

.gdpr-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gdpr-text-primary) !important;
    border: 1px solid var(--gdpr-glass-border);
}

.gdpr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gdpr-glass-highlight);
}
