/* 
 * RGPD Cookie Consent - Styles
 */

/* Bandeau principal */
.rgpd-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    animation: slideIn 0.5s ease-out;
}

.rgpd-banner-bottom {
    bottom: 0;
}

.rgpd-banner-top {
    top: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.rgpd-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.rgpd-banner-text {
    flex: 1;
}

.rgpd-banner-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.rgpd-banner-message {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.rgpd-banner-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.rgpd-banner-links a {
    font-size: 13px;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.rgpd-banner-links a:hover {
    opacity: 1;
}

/* Actions / Boutons */
.rgpd-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}

.rgpd-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
}

.rgpd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rgpd-btn-accept {
    color: #fff;
}

.rgpd-btn-refuse {
    color: #fff;
}

.rgpd-btn-customize {
    background-color: transparent;
    border: 2px solid currentColor;
    padding: 10px 24px;
}

/* Modal de personnalisation */
.rgpd-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rgpd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.rgpd-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

.rgpd-modal-header {
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rgpd-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.rgpd-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.rgpd-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.rgpd-modal-body {
    padding: 25px;
}

.rgpd-modal-body > p {
    margin: 0 0 20px 0;
    color: #666;
}

.rgpd-cookie-category {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.rgpd-cookie-category:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.rgpd-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 8px;
}

.rgpd-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.rgpd-checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.rgpd-category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.rgpd-mandatory {
    font-size: 12px;
    font-weight: normal;
    color: #0073aa;
    margin-left: 8px;
}

.rgpd-category-description {
    margin: 0;
    padding-left: 32px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.rgpd-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.rgpd-modal-footer .rgpd-btn {
    flex: 1;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Styles pour les pages de politique */
.rgpd-privacy-policy,
.rgpd-cookie-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rgpd-privacy-policy h1,
.rgpd-cookie-policy h1 {
    color: #0073aa;
    margin-bottom: 20px;
}

.rgpd-privacy-policy h3,
.rgpd-cookie-policy h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.rgpd-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
}

.rgpd-privacy-policy ul,
.rgpd-cookie-policy ul {
    line-height: 1.8;
    margin: 15px 0;
}

.rgpd-privacy-policy li,
.rgpd-cookie-policy li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .rgpd-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .rgpd-banner-actions {
        width: 100%;
        min-width: auto;
    }
    
    .rgpd-banner-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .rgpd-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .rgpd-modal-footer {
        flex-direction: column;
    }
    
    .rgpd-banner-title {
        font-size: 18px;
    }
    
    .rgpd-banner-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .rgpd-banner {
        padding: 15px;
    }
    
    .rgpd-modal-header {
        padding: 20px;
    }
    
    .rgpd-modal-body {
        padding: 20px;
    }
    
    .rgpd-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .rgpd-banner {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    .rgpd-modal-content {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .rgpd-modal-header {
        border-bottom-color: #444;
    }
    
    .rgpd-modal-header h2 {
        color: #e0e0e0;
    }
    
    .rgpd-cookie-category {
        border-color: #444;
        background: #252525;
    }
    
    .rgpd-cookie-category:hover {
        border-color: #0073aa;
        background: #2a2a2a;
    }
    
    .rgpd-category-name {
        color: #e0e0e0;
    }
    
    .rgpd-category-description {
        color: #b0b0b0;
    }
}
