body{
	font-family : "Tahoma"
}



/* ── Page wrapper ───────────────────────────────────────────────── */
.pa-simul-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.pa-simul-hero {
    text-align: center;
    margin-bottom: 2rem;
}
.pa-simul-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #1E3A5F;
    margin-bottom: .5rem;
}
.pa-simul-hero p {
    color: #555;
    line-height: 1.6;
    margin: .3rem 0;
}
.pa-simul-hero__note {
    font-size: .85rem;
    color: #888;
}
.pa-simul-hero__note a {
    color: #1E3A5F;
    font-weight: 600;
}

/* ── Card principale ────────────────────────────────────────────── */
.pa-simul-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 28px rgba(30,58,95,.12);
    overflow: hidden;
}

/* ── Onglets ────────────────────────────────────────────────────── */
.pa-simul-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pa-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: 1.25rem 1rem;
    background: #F0F4F9;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    font-family: inherit;
}
.pa-tab:hover {
    background: #E4ECF5;
}
.pa-tab--active {
    background: #fff;
    border-bottom-color: #E8811A;
}
.pa-tab__icon {
    font-size: 1.5rem;
}
.pa-tab__label {
    font-size: .95rem;
    font-weight: 700;
    color: #1E3A5F;
}
.pa-tab__sub {
    font-size: .78rem;
    color: #777;
}

/* ── Panneaux ───────────────────────────────────────────────────── */
.pa-simul-panel {
    display: none;
    padding: 2rem;
}
.pa-simul-panel--active {
    display: block;
}

/* ── Champ de saisie ────────────────────────────────────────────── */
.pa-simul-input-wrap {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}
.pa-simul-input-wrap label {
    font-weight: 600;
    font-size: .95rem;
    color: #1E3A5F;
    text-align: center;
}
.pa-simul-field {
    display: flex;
    align-items: center;
    border: 2px solid #C8D6E8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
    background: #fff;
}
.pa-simul-field:focus-within {
    border-color: #1E3A5F;
    box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}
.pa-simul-field input {
    flex: 1;
    border: none;
    outline: none;
    padding: .75rem 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1E3A5F;
    font-family: inherit;
    background: transparent;
    width: 100%;
}
.pa-simul-unit {
    padding: 0 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #999;
    border-left: 1px solid #eee;
}
.pa-simul-min {
    text-align: center;
    font-size: .8rem;
    color: #999;
    margin: 0;
}
.pa-simul-btn {
    align-self: center;
    background: #E8811A;
    color: #fff;
    border: none;
    padding: .8rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, transform .1s;
    margin-top: .5rem;
}
.pa-simul-btn:hover  { background: #d07318; }
.pa-simul-btn:active { transform: scale(.98); }

/* ── Résultats ──────────────────────────────────────────────────── */
.pa-simul-result {
    min-height: 60px;
}
.pa-simul-result__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 480px) {
    .pa-simul-result__grid { grid-template-columns: 1fr; }
}

.pa-simul-kpi {
    background: #F7F9FC;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    border: 1px solid #E4ECF5;
}
.pa-simul-kpi--main {
    background: #EAF7EF;
    border-color: #3CAB6E;
}
.pa-simul-kpi--accent {
    background: #FFF4E8;
    border-color: #E8811A;
}
.pa-simul-kpi--trm {
    background: #EEF3FA;
    border-color: #1E3A5F;
}
.pa-simul-kpi__label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #777;
}
.pa-simul-kpi--main  .pa-simul-kpi__label { color: #1a5c36; }
.pa-simul-kpi--accent .pa-simul-kpi__label { color: #a05a10; }
.pa-simul-kpi--trm   .pa-simul-kpi__label { color: #1E3A5F; }

.pa-simul-kpi__val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1E3A5F;
}
.pa-simul-kpi--main   .pa-simul-kpi__val { color: #1a5c36; }
.pa-simul-kpi--accent .pa-simul-kpi__val { color: #E8811A; }

.pa-simul-result__note {
    font-size: .85rem;
    color: #555;
    text-align: center;
    margin: .5rem 0 0;
}

/* ── Loader ─────────────────────────────────────────────────────── */
.pa-simul-loader {
    display: flex;
    justify-content: center;
    gap: .4rem;
    padding: 1.5rem;
}
.pa-simul-loader span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #1E3A5F;
    animation: pa-bounce .9s ease-in-out infinite;
}
.pa-simul-loader span:nth-child(2) { animation-delay: .15s; }
.pa-simul-loader span:nth-child(3) { animation-delay: .30s; }

@keyframes pa-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: .4; }
    40%           { transform: scale(1); opacity: 1;  }
}

/* ── Erreur ─────────────────────────────────────────────────────── */
.pa-simul-error {
    text-align: center;
    color: #c0392b;
    font-weight: 600;
    padding: 1rem;
    background: #fdecea;
    border-radius: 6px;
}

/* ── CTA bas ────────────────────────────────────────────────────── */
.pa-simul-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #F0F4F9;
    border-radius: 8px;
    text-align: center;
}
.pa-simul-cta p {
    width: 100%;
    margin: 0 0 .25rem;
    font-weight: 600;
    color: #1E3A5F;
}
.pa-simul-cta__btn {
    display: inline-block;
    padding: .7rem 1.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s;
    background: #E8811A;
    color: #fff;
    border: 2px solid #E8811A;
}
.pa-simul-cta__btn:hover { background: #d07318; border-color: #d07318; color: #fff; }
.pa-simul-cta__btn--outline {
    background: transparent;
    color: #1E3A5F;
    border-color: #1E3A5F;
}
.pa-simul-cta__btn--outline:hover {
    background: #1E3A5F;
    color: #fff;
}