:root {
    --primary: #8B008B;
    --primary-dark: #6c3483;
    --primary-light: #f5eeff;
    --gray-dark: #4a4a4a;
    --gray-light: #f8f6fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(142, 68, 173, 0.1);
    --shadow-md: 0 4px 6px rgba(142, 68, 173, 0.15);
    --transition: all 0.3s ease;
    --primary-lighter: #f5eeff;
    --track-color: #e0e0e0;
    --thumb-color: #8B008B;
}

header{
    background-color: white;
}

.titre4{
    color: #8B008B;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    padding: 15px 0;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.titre4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    border-radius: 2px;
}

.form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(142, 68, 173, 0.1);
    transition: var(--transition);
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(142, 68, 173, 0.2);
}

.slider-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}
.slider-container label {
    font-size: 20px;
    color: #333;
    font-weight: 500;
    }

.slider-value {
    font-size: 20px;
    color: #8e44ad;
    font-weight: 600;
    text-align: right;
    min-width: 80px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--track-color);
    outline: none;
    background-color: white;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--thumb-color);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.slider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(
        to right,
        var(--primary) 0%,
        var(--primary) var(--slider-progress, 80%),
        var(--track-color) var(--slider-progress, 20%)
    );
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--thumb-color);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: var(--track-color);
}

.slider::-webkit-slider-thumb{
    height: 10px;
    width:  10px;
    margin-bottom: 100px;
    box-shadow: 0 0 0 3px var(--primary);
}
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}

.slider:focus {
    outline: none;
}

.slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.result-section {
    background: var(--gray-light);
    border-radius: 16px;
    position: relative;
}

.result-amount {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    letter-spacing: -0.5px;
}

.button {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.calculation-details {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.calculation-details h4 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.calculation-grid {
    display: grid;
    gap: 1rem;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    flex-direction: column;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(142, 68, 173, 0.1);
    transition: var(--transition);
    width: 800px;
}

.calc-item:hover {
    background: var(--primary-light);
    border-radius: 8px;
}

.calc-label {
    color: var(--gray-dark);
    font-size: 18px;
    font-weight: 500;
}

.calc-value {
    font-weight: 600;
    color: var(--primary);
}

.highlight {
    background: var(--primary-light);
    border-radius: 12px;
    border: 2px solid rgba(142, 68, 173, 0.1);
    transform: scale(1.02);
}

.highlight .calc-label,
.highlight .calc-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

a:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}




/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 

.layout-wrapper {
   display: flex;
   align-items: normal;
   justify-items: center;
   gap:10%;
}

.main-result {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    text-align: center;
}

.main-result h3 {
    color: white;
}

.main-result p {
    color: var(white);
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 12px;
}

.calculation-details {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.button-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    margin-top: 1.5rem;
}

.button-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.expenses-inputs {
    background: var(--primary-light);
    border-radius: 8px;
    transition: var(--transition);
}

.expenses-inputs.hidden {
    display: none;
}


.input-group label {
    display: block;
    color: var(--gray-dark);
    font-weight: 500;
}

.input-with-euro {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-euro input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(142, 68, 173, 0.1);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.input-with-euro input:focus {
    border-color: var(--primary);
    outline: none;
}

.euro-symbol {
    position: absolute;
    right: 1rem;
    color: var(--gray-dark);
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expenses-inputs:not(.hidden) {
    animation: slideDown 0.3s ease-out;
}

.input-section.hidden {
    display: none;
}

#ca-input {
    width: 100%;
    border: 2px solid rgba(142, 68, 173, 0.1);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

#ca-input:focus {
    border-color: var(--primary);
    outline: none;
}

#chart_div {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    font-size: medium;
    transition: var(--transition);
    width: 100%; /* Ajustez selon vos besoins (e.g., 80%, 500px) */
    max-width: 800px; /* Limite la largeur maximale si nécessaire */
    height: auto;
    text-align: center;
}

#chart_div:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
#chart_div {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(142, 68, 173, 0.1);
}

.pdf-button-container {
    text-align: center;
}

.button-primary {
    background-color: #8B008B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button-primary:hover {
    background-color: #6c3483;
}


.form-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(142, 68, 173, 0.1);
}

/* Main result styling */
.main-result {
    background: linear-gradient(135deg, #8e44ad 10%, #446ead 90%);
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(142, 68, 173, 0.2);
}

.main-result h3 {
    font-size: 28px;
}

.result-amount {
    font-size: 2rem;
    font-weight: bold;
}

/* Calculation details and chart section */
.calculation-detailssss {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(142, 68, 173, 0.1);
    flex: 1;
}



/* Radio buttons */
input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    outline: none;
    position: relative;
    cursor: pointer;
}

input[type="radio"]:checked {
    background: var(--primary);
}

input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%; 
    transform: translate(-50%, -50%);
}



.layout-r {
    display: grid;
    grid-template-rows: auto auto; /* Chaque élément prendra une rangée */
    gap: 2rem; /* Espacement entre les éléments */
}

.calc-label strong {
    color: #8e44ad;  /* Purple color matching your theme */
    font-weight: 600;
}


/* Slider container layout */
.slider-container {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* Grid layout for label and value */
.slider-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.slider-container label {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.slider-value {
    font-size: 20px;
    color: #8e44ad;
    font-weight: 600;
    text-align: right;
    min-width: 80px;
}

/* Slider styling */
.slider {
    width: 100%;
}

/* Cookie Banner Styles */
.cookie-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.cookie-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Common styles for both popups */
.popup-base {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

/* Cookie Consent Popup */
.cookie-popup {
    z-index: 1100; /* Higher z-index to show above registration */
}

.cookie-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(142, 68, 173, 0.2);
}

/* Registration Popup */
.registration-popup {
    z-index: 1000;
}

.registration-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 520px;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(142, 68, 173, 0.2);
    position: relative;
}

/* Registration Form Popup Styles */
#popup-overlay {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

#popup-content {
    transform: scale(1); 
    background: white;
    top: -30px;
    border-radius: 24px;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(142, 68, 173, 0.2);
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-header {
    text-align: center;
    position: relative;
}

#popup-content h2 {
    color: #8B008B;
    /* font-size: 32px;
    font-weight: 700; */
    letter-spacing: -0.5px;
}


.popup-subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 8px;
    font-weight: 400;
}

.close-popup {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #8e44ad;
    font-size: 20px;
}

.close-popup:hover {
    transform: rotate(90deg);
    background: #8e44ad;
    color: white;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.2);
}

/* Form Groups */
.form-group {
    position: relative;
}

.form-group label    {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}



.form-group input,.form-group textarea,
.form-group select {
    width: 90%;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
}


.form-group .input-icon {
    position: absolute;
    color: #8B008B;
    opacity: 0.8;
    transition: all 0.3s ease;
}


.form-group input:focus ~ .input-icon, .form-group textarea:focus ~ .input-icon,
.form-group select:focus ~ .input-icon {
    opacity: 1;
    transform: scale(1.1);
}

.form-group input:focus, .form-group textarea:focus,
.form-group select:focus {
    border-color: #8e44ad;
    outline: none;
    box-shadow: 0 0 0 4px rgba(142, 68, 173, 0.1);
    background: white;
}

.form-group input:hover,.form-group textarea:hover,
.form-group select:hover {
    border-color: #8e44ad;
}


.form-group label,.form-group option {
    position: absolute;
    top: 10px;
    left: 14px;
    background: transparent;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,.form-group input:not(:placeholder-shown) ~ label ,
.form-group select:focus ~ label,.form-group select.filled ~ label{
    top: -10px;
    left: 14px;
    font-size: 12px;
    color: #8B008B;
    background: white;
    font-weight: 600;
}

/* Required Field Indicator */
.form-group label.required::after {
    content: '*';
    color: #8B008B;
    margin-left: 4px;
    font-size: 14px;
}

/* Form Validation Styles */
.form-group input:valid:not(:placeholder-shown) {
    border-color: #2ecc71;
    background: #f0fff4;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
    background: #fff5f5;
}

.form-group .error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    color: #e74c3c;
    font-size: 13px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.form-group input:invalid:not(:placeholder-shown) ~ .error-message {
    opacity: 1;
    transform: translateY(0);
}

/* Submit Button */
.button-primary {
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, #8B008B 0%, #9b59b6 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: all 0.5s ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.3);
}

.button-primary:hover::before {
    left: 100%;
}

.button-primary:active {
    transform: translateY(0);
}

/* Loading State */
.button-primary.loading {
    background: #6c3483;
    pointer-events: none;
}

.button-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    color: #2ecc71;
    padding: 16px;
    border-radius: 14px;
    background: #f0fff4;
    margin-top: 20px;
    font-weight: 500;
    border: 2px solid rgba(46, 204, 113, 0.2);
}

.success-message.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: successIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-message i {
    font-size: 20px;
}

@keyframes successIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* IntlTelInput Custom Styles */
.iti {
    width: 100%;
}

.iti__flag-container {
    height: 50px;
}

.iti__selected-flag {
    height: 50px;
    padding: 0 12px;
    background-color: #f8f9fa !important;
    border-radius: 12px 0 0 12px;
    border: 1px solid #E0E0E0;
    border-right: none;
}

.iti__selected-flag:hover {
    background-color: #f0f0f0 !important;
}



/* Country dropdown styles */
.iti__country-list {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0E0E0;
}

.iti__country {
    display: flex;
    align-items: center;
}

.iti__country:hover {
    background-color: #f5eeff;
}

.iti__country.iti__active {
    background-color: #8B008B;
    color: white;
}

/* Cookie Settings Popup */
.cookie-settings-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    backdrop-filter: blur(5px);
}

.settings-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

.settings-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.close-settings {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-settings:hover {
    background: #f5f5f5;
    color: #333;
}

.settings-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-option {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.option-info {
    display: flex;
    gap: 16px;
    flex: 1;
}

.option-icon {
    width: 24px;
    height: 24px;
}

.option-text h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.option-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #8B008B;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.settings-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.save-settings-btn {
    background: #8B008B;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.save-settings-btn:hover {
    background: #6c3483;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
     .close-btn-popup {
        position: absolute;
        right: -20px;
        top: -20px;
        width: 30px;
        height: 30px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        color: #8B008B;
        font-size: 20px;
    }
    
    .close-btn-popup:hover {
        transform: rotate(90deg);
        background: #8B008B;
        color: white;
        box-shadow: 0 4px 12px rgba(142, 68, 173, 0.2);
    } 
    
    
/* Responsive Design */
@media (max-width: 480px) {


}

/* Adaptation mobile */
@media (max-width: 768px) {
    #chart_div {
        /* width: 80%; */
        padding: 15px;
        font-size: small;
    }

    .layout-wrapper {
        flex-direction: column;
     }
 
     .main-result{
        margin-top: 1rem;
         width: 460px;
     }   

     .form-section,.calculation-detailssss,#chart_div {
        margin-top: 1rem;
         width: 460px;
     } 

     .result-amount {
        font-size: 2rem;
    }
    .calc-item {
        width: 400px;
    }

    .calc-label {
        font-size: 12px;
    }
    
    .calc-value {   
     font-size: 12px;
    }

    .titre4{
        font-size: 20px;
        padding: 10px 0;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }

.titre4::after {
    width: 90px;
    height: 3px;
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    border-radius: 2px;
}

.highlight .calc-label,
.highlight .calc-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.settings-content {
    width: 95%;
    max-height: 90vh;
}

.settings-body {
    max-height: 50vh;
}

#popup-content {
    padding: 30px 20px;
}

#popup-content h2 {
    font-size: 26px;
}

.popup-subtitle {
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    font-size: 14px;
}

.button-primary {
    padding: 14px 24px;
    font-size: 13px;
}

.button-secondary {
    font-size: 15px;
}

.main-result h3{
    font-size: 20px;
}
.result-amount{
    font-size: 20px;
}
.main-result{
    flex:1;
}

.radio-group label, .slider-header label, .slider-header .slider-value {
    font-size: 15px;
}

.entete h1{
    font-size: 30px;
}

}

@media (max-width: 1024px) {
    div[style="display: flex;"] {
        flex-direction: column;
    }
}


.disabled-inputs {
    opacity: 0.6;
    pointer-events: none;
}

.error-message {
    color: #d32f2f;
    background-color: #fde0e0;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.input-with-euro {
    position: relative;
}

.input-with-euro .euro-symbol {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-with-euro input {
    padding-left: 20px;
}