
/* Overlay grisé qui couvre toute la page */
.cookie-banner-overlay-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

/* Bannière simple en bas */
.cookie-banner-simple {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideIn 0.5s ease;
    padding: 40px 0;
}

body.dark-mode .cookie-banner-simple {
    background: #2b2b2b;
    color: #e0e0e0;
}

.cookie-banner-content-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}

.cookie-title {
    font-size: 28px;
    font-weight: 700;
    color: #004aad;
    margin-bottom: 20px;
}

body.dark-mode .cookie-title {
    color: #5ca3ff;
}

.cookie-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0 auto 30px;
    max-width: 1000px;
}

body.dark-mode .cookie-text {
    color: #e0e0e0;
}

.cookie-link {
    color: #004aad;
    text-decoration: underline;
    font-weight: 600;
}

body.dark-mode .cookie-link {
    color: #5ca3ff;
}

.cookie-link:hover {
    text-decoration: none;
}

.cookie-buttons-simple {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.cookie-btn-simple {
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
    min-width: 200px;
}

.cookie-btn-outline {
    background: white;
    border: 2px solid #333;
    color: #333;
}

body.dark-mode .cookie-btn-outline {
    background: #2b2b2b;
    border-color: #e0e0e0;
    color: #e0e0e0;
}

.cookie-btn-outline:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

body.dark-mode .cookie-btn-outline:hover {
    background: #3a3a3a;
}

.cookie-btn-blue {
    background: #004aad;
    border: 2px solid #004aad;
    color: white;
}

body.dark-mode .cookie-btn-blue {
    background: #5ca3ff;
    border-color: #5ca3ff;
}

.cookie-btn-blue:hover {
    background: #003580;
    border-color: #003580;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
}

body.dark-mode .cookie-btn-blue:hover {
    background: #004aad;
    border-color: #004aad;
}

/* ============================================
   VERSION DÉTAILLÉE
   ============================================ */

.cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.cookie-banner-detailed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    z-index: 9999;
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cookie-banner-detailed {
    background: #1a1a1a;
    color: #e0e0e0;
}

.cookie-detailed-header {
    background: white;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .cookie-detailed-header {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.cookie-detailed-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #000;
}

body.dark-mode .cookie-detailed-header h2 {
    color: #e0e0e0;
}

.cookie-detailed-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.cookie-detailed-close-btn:hover {
    color: #000;
}

body.dark-mode .cookie-detailed-close-btn {
    color: #999;
}

body.dark-mode .cookie-detailed-close-btn:hover {
    color: #fff;
}

.cookie-detailed-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.cookie-detailed-sidebar {
    width: 280px;
    background: #f5f5f5;
    padding: 30px 0;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
}

body.dark-mode .cookie-detailed-sidebar {
    background: #2b2b2b;
    border-right-color: #333;
}

.cookie-detailed-sidebar h3 {
    padding: 0 25px;
    margin: 0 0 20px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #666;
}

body.dark-mode .cookie-detailed-sidebar h3 {
    color: #999;
}

.cookie-detailed-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-menu-item {
    padding: 15px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    border-left: 3px solid transparent;
}

body.dark-mode .cookie-menu-item {
    color: #e0e0e0;
}

.cookie-menu-item:hover {
    background: #ebebeb;
}

body.dark-mode .cookie-menu-item:hover {
    background: #3a3a3a;
}

.cookie-menu-item.active {
    background: white;
    border-left-color: #004aad;
    font-weight: 600;
}

body.dark-mode .cookie-menu-item.active {
    background: #1a1a1a;
    border-left-color: #5ca3ff;
}

.cookie-detailed-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: white;
}

body.dark-mode .cookie-detailed-main {
    background: #1a1a1a;
}

.cookie-content-section {
    display: none;
}

.cookie-content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.cookie-content-section h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #000;
}

body.dark-mode .cookie-content-section h3 {
    color: #e0e0e0;
}

.cookie-content-section p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

body.dark-mode .cookie-content-section p {
    color: #ccc;
}

.cookie-content-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.cookie-content-section li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

body.dark-mode .cookie-content-section li {
    color: #ccc;
}

.cookie-detailed-link {
    color: #004aad;
    text-decoration: underline;
    font-weight: 600;
}

body.dark-mode .cookie-detailed-link {
    color: #5ca3ff;
}

.cookie-detailed-link:hover {
    text-decoration: none;
}

.cookie-status-required {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-top: 20px;
    font-weight: 600;
    color: #856404 !important;
}

body.dark-mode .cookie-status-required {
    background: #3a3a1a;
    border-left-color: #ffc107;
    color: #ffc107 !important;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

body.dark-mode .cookie-toggle {
    background: #2b2b2b;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 15px;
}

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

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

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

input:checked + .cookie-slider {
    background-color: #004aad;
}

body.dark-mode input:checked + .cookie-slider {
    background-color: #5ca3ff;
}

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

.cookie-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

body.dark-mode .cookie-toggle-label {
    color: #e0e0e0;
}

.cookie-detailed-footer {
    background: white;
    padding: 25px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

body.dark-mode .cookie-detailed-footer {
    background: #1a1a1a;
    border-top-color: #333;
}

.cookie-detailed-btn {
    padding: 12px 28px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
}

.cookie-detailed-btn-primary {
    background: #000;
    color: white;
}

.cookie-detailed-btn-primary:hover {
    background: #333;
}

.cookie-detailed-btn-secondary {
    background: white;
    color: #000;
    border: 1px solid #000;
}

body.dark-mode .cookie-detailed-btn-secondary {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #555;
}

.cookie-detailed-btn-secondary:hover {
    background: #f5f5f5;
}

body.dark-mode .cookie-detailed-btn-secondary:hover {
    background: #2b2b2b;
}

.cookie-detailed-btn-tertiary {
    background: #004aad;
    color: white;
}

.cookie-detailed-btn-tertiary:hover {
    background: #003580;
}

/* ============================================
   BOUTON FLOTTANT
   ============================================ */

#cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #004aad;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cookie-settings-btn:hover {
    background: #003580;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode #cookie-settings-btn {
    background: #5ca3ff;
}

body.dark-mode #cookie-settings-btn:hover {
    background: #004aad;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .cookie-banner-content-simple {
        padding: 0 40px;
    }
    
    .cookie-buttons-simple {
        flex-direction: column;
        max-width: 400px;
    }
    
    .cookie-btn-simple {
        width: 100%;
    }
    
    .cookie-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .cookie-banner-simple {
        padding: 30px 0;
    }
    
    .cookie-banner-content-simple {
        padding: 0 20px;
    }
    
    .cookie-title {
        font-size: 22px;
    }
    
    .cookie-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .cookie-btn-simple {
        font-size: 13px;
        padding: 14px 24px;
        min-width: 100%;
    }
    
    #cookie-settings-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    
    .cookie-banner-detailed {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        top: 0;
        left: 0;
        transform: none;
    }
    
    .cookie-detailed-content {
        flex-direction: column;
    }
    
    .cookie-detailed-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 20px 0;
    }
    
    body.dark-mode .cookie-detailed-sidebar {
        border-bottom-color: #333;
    }
    
    .cookie-detailed-main {
        padding: 20px;
    }
    
    .cookie-detailed-footer {
        flex-direction: column;
    }
    
    .cookie-detailed-btn {
        width: 100%;
    }
}