/* uc-consent/assets/style.css */
/* Variables CSS */
:root {
    --bg-dark: #1a1a1a;
    --bg-medium: #2d2d2d;
    --bg-light: #404040;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-primary: #4a90e2;
    --accent-hover: #357abd;
    --border: #555555;
    --shadow: rgba(0, 0, 0, 0.5);
}

/* Reset de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    padding: 20px;
}

h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

p, ul {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Bannière de consentement */
.uc-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-medium);
    border-top: 2px solid var(--border);
    padding: 20px;
    box-shadow: 0 -4px 12px var(--shadow);
    z-index: 1000;
    display: none;
}

.uc-consent-banner.visible {
    display: block;
}

.uc-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.uc-banner-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-secondary);
    font-size: 14px;
}

.uc-banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Boutons */
.uc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 120px;
}

.uc-btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.uc-btn-primary {
    background: var(--accent-primary);
    color: white;
}

.uc-btn-primary:hover {
    background: var(--accent-hover);
}

.uc-btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.uc-btn-secondary:hover {
    background: var(--border);
}

.uc-btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.uc-btn-outline:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* Modal de personnalisation */
.uc-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.uc-consent-modal.visible {
    display: flex;
}

.uc-modal-content {
    background: var(--bg-medium);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px var(--shadow);
}

.uc-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uc-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.uc-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.uc-modal-close:hover {
    color: var(--text-primary);
}

.uc-modal-body {
    padding: 20px;
}

.uc-consent-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.uc-consent-option:last-child {
    border-bottom: none;
}

.uc-option-info {
    flex: 1;
    margin-right: 20px;
}

.uc-option-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.uc-option-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Switch/Toggle */
.uc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.uc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.uc-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-light);
    transition: 0.2s;
    border-radius: 24px;
}

.uc-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.uc-switch input:checked + .uc-switch-slider {
    background-color: var(--accent-primary);
}

.uc-switch input:checked + .uc-switch-slider:before {
    transform: translateX(26px);
}

.uc-switch input:focus + .uc-switch-slider {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.uc-switch input:disabled + .uc-switch-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.uc-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Bouton flottant */
.uc-consent-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-medium);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.2s ease;
    z-index: 999;
}

.uc-consent-float-btn.visible {
    display: flex;
}

.uc-consent-float-btn:hover {
    background: var(--bg-light);
    transform: scale(1.05);
}

.uc-consent-float-btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .uc-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .uc-banner-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .uc-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .uc-modal-footer {
        flex-direction: column;
    }
    
    .uc-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Accessibilité - high contrast */
@media (prefers-contrast: high) {
    :root {
        --bg-dark: #000000;
        --bg-medium: #1a1a1a;
        --text-primary: #ffffff;
        --border: #ffffff;
    }
}

/* Accessibilité - reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}