.cookie-consent {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.cookie-content {
    padding: 2rem;
}

.cookie-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cookie-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.cookie-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

.subtitle {
    color: #666;
    margin: 0.5rem 0;
    font-size: 1rem;
}

.cookie-body {
    margin-bottom: 1.5rem;
}

.cookie-body h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.cookie-body p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cookie-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.cookie-certification {
    margin-top: 1rem;
    text-align: center;
    color: #999;
    font-size: 0.8rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-cookie {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept {
    background: #007bff;
    color: white;
}

.btn-accept:hover {
    background: #0056b3;
}

.btn-settings {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-settings:hover {
    background: #e9ecef;
}

.btn-refuse {
    background: transparent;
    color: #666;
}

.btn-refuse:hover {
    color: #333;
    background: #f8f9fa;
}

.cookie-consent.show {
    display: block;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cookie-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.cookie-settings.show {
    display: block;
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9999;
}

.cookie-overlay.show {
    display: block;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.cookie-description {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Styles pour la modal des paramètres */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cookie-settings-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-settings-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.cookie-settings-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 2rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

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

.cookie-category h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.cookie-category p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .slider {
    background-color: #007bff;
}

input:disabled + .slider {
    background-color: #e9ecef;
    cursor: not-allowed;
}

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

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-save {
    background: #007bff;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 0;
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cookie-settings-content {
        width: 95%;
        max-height: 85vh;
        margin: 20px;
    }
}
