/* ========================================
   COOKIE BANNER STYLES
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #00B4DB;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #00B4DB;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #00B4DB 0%, #0099CC 100%);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #0099CC 0%, #0077AA 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 219, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cookie-btn-decline:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: transparent;
    color: #00B4DB;
    border: 2px solid #00B4DB;
}

.cookie-btn-settings:hover {
    background: #00B4DB;
    color: white;
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cookie-settings-header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 24px;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-close-btn:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cookie-category.required {
    border-color: #e0e0e0;
    background: #f9f9f9;
}

.cookie-category.optional {
    border-color: #00B4DB;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-toggle.active {
    background: #00B4DB;
}

.cookie-toggle.disabled {
    background: #e0e0e0;
    cursor: not-allowed;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-toggle.active::after {
    transform: translateX(25px);
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-settings-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.cookie-save-btn {
    background: linear-gradient(135deg, #00B4DB 0%, #0099CC 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-save-btn:hover {
    background: linear-gradient(135deg, #0099CC 0%, #0077AA 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 219, 0.3);
}

.cookie-cancel-btn {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-cancel-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-settings-content {
        margin: 10px;
        padding: 20px;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
    
    .cookie-save-btn,
    .cookie-cancel-btn {
        width: 100%;
    }
}

/* Animation pour l'apparition */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    animation: slideUp 0.3s ease-out;
}

/* Animation pour le modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-settings-modal.show .cookie-settings-content {
    animation: fadeIn 0.3s ease-out;
}
