body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fc; /* Fond clair */
    color: #333; /* Texte principal */
    line-height: 1.7;
    margin: 0;
}

/* Bandeau Hero */
.hero {
    background-color: #274F57;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(39, 79, 87, 0.95), rgba(39, 79, 87, 0.8));
    z-index: 1;
}

.hero h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.estimation-page {
    padding: 40px;
    background-color: #f5f7fc; /* Modifié pour correspondre au style global */
    font-family: 'Inter', sans-serif; /* Modifié pour correspondre au style global */
}

.estimation-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Zone info gauche */
.estimation-info {
    flex: 1;
    min-width: 300px;
}

.estimation-info h2 {
    color: #274F57; /* Modifié pour correspondre à la palette de couleurs */
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
}

.estimation-info h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4FAE9A; /* Couleur secondaire */
    margin-top: 10px;
}

.estimation-info p {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.05rem;
}

.estimation-step {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    background-color: #274F57; /* Modifié pour correspondre à la palette */
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
}

.step-text {
    font-size: 1.1rem;
    color: #333;
}

/* Simulateur (zone droite) */
.estimation-simulator {
    flex: 1;
    min-width: 350px;
}

.simulator-card {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.simulator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.simulator-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #274F57;
    position: relative;
    padding-bottom: 10px;
}

.simulator-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #4FAE9A;
}

form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #274F57;
}

/* Input groups et contrôles */
.input-group {
    margin-bottom: 25px;
}

.slider-with-input {
    display: flex;
    flex-direction: column;
    position: relative;
}

input[type="range"] {
    width: 100%;
    accent-color: #4FAE9A;
    height: 6px;
    margin-bottom: 12px;
    cursor: pointer;
}

.input-value-container {
    display: flex;
    align-items: center;
    background-color: #f5f7fc;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin-left: auto;
    position: relative;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.input-value-container:hover, .input-value-container:focus-within {
    border-color: #4FAE9A;
    box-shadow: 0 0 0 2px rgba(79, 174, 154, 0.1);
}

.input-value-container::before {
    content: "Cliquez pour modifier";
    position: absolute;
    bottom: calc(100% + 5px);
    right: 0;
    background-color: #274F57;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.input-value-container:hover::before {
    opacity: 1;
    transform: translateY(0);
}

input[type="number"] {
    border: none;
    background: transparent;
    text-align: right;
    font-weight: bold;
    color: #274F57;
    font-size: 0.95rem;
    width: 70px;
    padding: 6px 8px;
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.unit {
    background-color: #e0e0e0;
    padding: 6px 8px;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Animation pour indiquer qu'on peut cliquer */
@keyframes pulse-input {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 174, 154, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(79, 174, 154, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 174, 154, 0);
    }
}

.input-value-container:focus-within {
    animation: pulse-input 1.5s 1;
}

.btn-simulate {
    background-color: #4FAE9A;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(79, 174, 154, 0.3);
}

.btn-simulate:hover {
    background-color: #3d9a88;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(79, 174, 154, 0.4);
}

/* Résultats */
.simulation-results {
    margin-top: 40px;
    background-color: #f5f7fc;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #4FAE9A;
    display: none; /* Cache les résultats initialement */
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.simulation-results.show-results {
    transform: translateY(0);
    opacity: 1;
}

.simulation-results h4 {
    margin-bottom: 20px;
    color: #274F57;
    font-size: 1.2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-item:last-child {
    border-bottom: none;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.result-item span {
    color: #555;
}

.result-item strong {
    color: #274F57;
    font-weight: 600;
}

.result-item.commission strong {
    color: #ed4545;
}

.result-item.salary-net {
    font-size: 1.1rem;
}

.result-item.salary-net strong {
    color: #4FAE9A;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Animation pour les résultats */
@keyframes highlight-item {
    0% {
        background-color: rgba(79, 174, 154, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

.result-item.highlighted {
    animation: highlight-item 0.8s ease-out;
}

/* Media queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .estimation-page {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }
    
    .simulator-card {
        padding: 20px;
    }

    .input-value-container {
        width: 100%;
        margin-top: 5px;
    }
    
    input[type="number"] {
        flex: 1;
    }
}