
/* Styles de la bannière des cookies */
.cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: block;
    z-index: 1000;
}

.cookie-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.cookie-content p {
    font-size: 14px;
    margin-bottom: 15px;
}

.cookie-options {
    text-align: left;
    margin-bottom: 15px;
}

.cookie-options label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
}

.cookie-buttons button {
    flex: 1;
    margin: 5px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.cookie-buttons button:hover {
    opacity: 0.8;
}

.cookie-buttons .reject {
    background: #f44336;
    color: white;
}

.cookie-buttons button:not(.reject) {
    background: #4CAF50;
    color: white;
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 1px solid #eee;
}

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

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-icon {
    width: 24px;
    height: 24px;
    fill: #4a6cf7;
}

.cookie-title {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.cookie-description {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: 24px;
}

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

input:checked + .cookie-slider {
    background-color: #4a6cf7;
}

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

input:disabled + .cookie-slider {
    background-color: #4a6cf7;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-label {
    flex: 1;
}

.cookie-label strong {
    display: block;
    color: #333;
    margin-bottom: 2px;
}

.cookie-label small {
    color: #888;
    font-size: 0.85rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

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

.cookie-btn {
    background: #4a6cf7;
    color: white;
}

.cookie-btn:hover {
    background: #3a5ce6;
    transform: translateY(-1px);
}

.cookie-btn.primary {
    background: #4a6cf7;
    color: white;
}

.cookie-btn.primary:hover {
    background: #3a5ce6;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
}

@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}