/* ===== Cookie Consent Banner & Modal ===== */

#cookieBanner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f47509;
    color: black;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: Arial, sans-serif;
}

#cookieBanner.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

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

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

.cookie-text p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.cookie-text a {
    color: #ffffff;
    text-decoration: underline !important;
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

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

.cookie-btn-accept:hover {
    background: #229954;
}

.cookie-btn-reject {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn-reject:hover {
    background: white;
    color: #2c3e50;
}

.cookie-btn-settings {
    background: #000000;
    color: white;
}

.cookie-btn-settings:hover {
    background: #2c3e50;
}

/* Modal des paramètres */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal .modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal .modal-header {
    margin-bottom: 20px;
    flex-direction: column;
    align-items: flex-start;
}

.cookie-modal .modal-header h2 {
    margin-bottom: 0.25em;
    color: #2c3e50;
    line-height: 1.125;
}

.cookie-option {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.cookie-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-option-info {
    flex: 1;
    margin-right: 10px;
}

.cookie-option h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.cookie-option p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Floating cookie settings button */
#ccSettingsBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f47509;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.3s;
}

#ccSettingsBtn.visible {
    display: flex;
}

#ccSettingsBtn:hover {
    opacity: 0.85;
}

#ccSettingsBtn svg {
    width: 24px;
    height: 24px;
    display: block;
    margin: auto;
}