* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    padding: 0;
}

/* ========== BANNIÈRE COOKIES ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -8px 32px rgba(30, 175, 31, 0.15);
    border-top: 3px solid #1EAF1F;
    padding: 28px 32px;
    z-index: 9999;
    /* animation: slideUpBanner 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); */
    transform: translateY(100%);
        transition: transform 0.3s ease
}
/* 
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
} */

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

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    color: #1EAF1F;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-text p {
    color: #495057;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.cookie-text a {
    color: #1EAF1F;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.cookie-text a:hover {
    color: #168a19;
    border-bottom-color: #1EAF1F;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.btn-success {
    background: linear-gradient(135deg, #1EAF1F 0%, #17a01c 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #17a01c 0%, #138f18 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 175, 31, 0.3);
}

.btn-danger {
    background: #ffffff;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #495057;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #1EAF1F;
    color: #1EAF1F;
    transform: translateY(-2px);
}

/* ========== MODAL PARAMÈTRES ========== */
#consentSettingsModal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#consentSettingsModal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 48px;
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(30, 175, 31, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(30, 175, 31, 0.1);
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 3px solid #1EAF1F;
    padding-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #1EAF1F;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

#closeConsentModal {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#closeConsentModal:hover {
    background: #1EAF1F;
    color: white;
    transform: rotate(90deg);
}

.modal-text {
    color: #495057;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.info-box {
    background: linear-gradient(135deg, #e8f8e9 0%, #f0fdf0 100%);
    padding: 20px;
    border-left: 5px solid #1EAF1F;
    border-radius: 10px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(30, 175, 31, 0.1);
}

.info-box p {
    margin: 0;
    font-size: 14px;
    color: #1d6f21;
}

.info-box strong {
    color: #1EAF1F;
    font-weight: 700;
}

.modal-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.modal-buttons-grid button {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#acceptAllBtn {
    background: linear-gradient(135deg, #1EAF1F 0%, #17a01c 100%);
    color: white;
}

#acceptAllBtn:hover {
    background: linear-gradient(135deg, #17a01c 0%, #138f18 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 175, 31, 0.3);
}

#refuseAllBtn {
    background: #ffffff;
    color: #495057;
    border: 2px solid #dee2e6;
}

#refuseAllBtn:hover {
    background: #f8f9fa;
    border-color: #dc3545;
    color: #dc3545;
    transform: translateY(-2px);
}

#savePreferencesBtn {
    width: 100%;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

#savePreferencesBtn:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 20px;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }

    .modal-content {
        padding: 32px 24px;
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .modal-buttons-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar personnalisée */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #1EAF1F;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #168a19;
}