/* Bannière de consentement RGPD */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #a65902 0%, #8a4a02 100%);
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gdpr-banner.hidden {
    transform: translateY(100%);
}

.gdpr-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.gdpr-text {
    flex: 1;
    min-width: 300px;
    line-height: 1.5;
}

.gdpr-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #f4e4d0;
}

.gdpr-text p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.gdpr-links {
    margin: 10px 0;
}

.gdpr-links a {
    color: #f4e4d0;
    text-decoration: none;
    margin-right: 15px;
    font-size: 0.85em;
    transition: color 0.3s ease;
}

.gdpr-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.gdpr-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gdpr-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.gdpr-btn-accept {
    background: #27ae60;
    color: white;
}

.gdpr-btn-accept:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

.gdpr-btn-refuse {
    background: #e74c3c;
    color: white;
}

.gdpr-btn-refuse:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.gdpr-btn-customize {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gdpr-btn-customize:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Modal de personnalisation */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 16, 30, 0.56);
    backdrop-filter: blur(2px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100vh;
    width: 100vw;
    transition: opacity var(--modal-motion, 240ms cubic-bezier(0.2, 0.7, 0.3, 1));
}

.gdpr-modal.active {
    display: flex;
}

.gdpr-modal-content {
    background: white;
    border-radius: 14px;
    border: 1px solid #dfe5ec;
    max-width: 600px;
    width: 90%;
    height: 90vh;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 18px 52px rgba(14, 28, 45, 0.28);
    transform: translateY(18px) scale(0.97);
    opacity: 0.92;
    transition: transform var(--modal-motion, 240ms cubic-bezier(0.2, 0.7, 0.3, 1)), opacity var(--modal-motion, 240ms cubic-bezier(0.2, 0.7, 0.3, 1));
}

.gdpr-modal.active .gdpr-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gdpr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.1rem 0 0.85rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid #e5e9ef;
}

.gdpr-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: 1px solid transparent;
    font-size: 1.55rem;
    cursor: pointer;
    color: #526274;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gdpr-modal-close:hover {
    background: #eef3f8;
    border-color: #d7e0ea;
    color: #24364a;
}

.gdpr-modal h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.gdpr-cookie-category {
    margin: 0.85rem 0;
    padding: 0.85rem;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fbfdff;
}

.gdpr-cookie-category h3 {
    margin: 0 0 10px 0;
    color: #34495e;
    font-size: 1.1em;
}

.gdpr-cookie-category p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.gdpr-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.gdpr-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.gdpr-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .gdpr-slider {
    background-color: #27ae60;
}

input:checked + .gdpr-slider:before {
    transform: translateX(30px);
}

.gdpr-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e5e9ef;
    background: #f7f9fc;
}

/* Responsive */
@media (max-width: 767px) {
    .gdpr-content {
        flex-direction: column;
        text-align: center;
    }
    
    .gdpr-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .gdpr-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .gdpr-modal.active {
        padding: 0;
        align-items: stretch;
    }
    
    .gdpr-modal-content {
        padding: 1rem;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .gdpr-content {
        flex-direction: column;
        text-align: center;
    }
    
    .gdpr-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .gdpr-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .gdpr-modal-content {
        padding: 1rem;
        width: 95%;
        height: 95vh;
        max-height: 95vh;
    }
}
