
.sim-screen { animation: simFadeIn .35s ease; }
@keyframes simFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.sim-shell { max-width: 860px; margin: 0 auto; }

/* ---- Welcome ---- */
.sim-welcome { text-align: center; padding: 40px 10px 10px; }
.sim-welcome-icon {
    width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #ff5421, #ff8a5c);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(255, 84, 33, .35);
}
.sim-welcome-icon .material-icons { font-size: 42px; color: #fff; }
.sim-welcome h1 { font-size: 32px; font-weight: 800; margin: 0 0 14px; }
.sim-welcome p { font-size: 16px; line-height: 1.9; color: #6b6b78; max-width: 560px; margin: 0 auto 34px; }

/* ---- Buttons ---- */
.sim-btn {
    border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px;
    padding: 13px 26px; border-radius: 30px; display: inline-flex; align-items: center; gap: 8px;
    transition: all .2s;
}
.sim-btn .material-icons { font-size: 18px; }
.sim-btn-primary { background: #ff5421; color: #fff; }
.sim-btn-primary:hover { background: #e0430f; transform: translateY(-1px); }
.sim-btn-primary:disabled { background: #d9d9e3; cursor: not-allowed; transform: none; }
.sim-btn-ghost { background: transparent; color: #1d1d2b; border: 2px solid #ecebf1; }
.sim-btn-ghost:hover { border-color: #ff5421; color: #ff5421; }
.sim-btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---- Stepper ---- */
.sim-stepper { display: flex; align-items: flex-start; justify-content: center; margin: 10px 0 44px; }
.sim-step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; }
.sim-step-circle {
    width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #ecebf1;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #a5a5b3;
    transition: all .25s;
}
.sim-step-label { font-size: 12px; font-weight: 600; color: #a5a5b3; text-align: center; }
.sim-step-item.is-active .sim-step-circle { background: #ff5421; border-color: #ff5421; color: #fff; }
.sim-step-item.is-active .sim-step-label { color: #1d1d2b; }
.sim-step-item.is-done .sim-step-circle { background: #1d1d2b; border-color: #1d1d2b; color: #fff; }
.sim-step-line { flex: 1; height: 2px; background: #ecebf1; margin-top: 17px; max-width: 60px; }

@media (max-width: 600px) {
    .sim-step-label { display: none; }
    .sim-step-item { width: auto; }
    .sim-step-line { max-width: 24px; }
}

/* ---- Step headers ---- */
.sim-step-eyebrow { font-size: 13px; font-weight: 700; color: #ff5421; margin: 0 0 6px; }
.sim-step-title { font-size: 23px; font-weight: 800; margin: 0 0 6px; }
.sim-step-sub { font-size: 14px; color: #6b6b78; margin: 0 0 30px; }

/* ---- Slider ---- */
.sim-value-display { text-align: center; margin-bottom: 18px; }
.sim-value-display .sim-value-number { font-size: 40px; font-weight: 800; color: #ff5421; }
.sim-value-display .sim-value-unit { font-size: 15px; font-weight: 600; color: #6b6b78; margin-right: 6px; }
.sim-slider {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px;
    background: #ecebf1; outline: none; margin: 10px 0 22px;
}
[dir="rtl"] .sim-slider { direction: rtl; }
.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #ff5421;
    cursor: pointer; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(255, 84, 33, .5);
}
.sim-slider::-moz-range-thumb {
    width: 24px; height: 24px; border-radius: 50%; background: #ff5421; cursor: pointer;
    border: 4px solid #fff; box-shadow: 0 2px 8px rgba(255, 84, 33, .5);
}
.sim-slider-scale { display: flex; justify-content: space-between; font-size: 12px; color: #a5a5b3; margin-top: -14px; margin-bottom: 26px; }

.sim-shortcuts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.sim-shortcuts button {
    border: 2px solid #ecebf1; background: #fff; padding: 8px 18px; border-radius: 20px;
    font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; color: #1d1d2b; transition: all .2s;
}
.sim-shortcuts button:hover, .sim-shortcuts button.is-active { border-color: #ff5421; background: #fff1eb; color: #e0430f; }

/* ---- Choice cards (fuel / tariff) ---- */
.sim-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.sim-choice-card {
    border: 2px solid #ecebf1; background: #fff; border-radius: 14px; padding: 16px; cursor: pointer;
    transition: all .2s; text-align: start;
}
.sim-choice-card:hover { border-color: #ffcbb3; }
.sim-choice-card.is-active { border-color: #ff5421; background: #fff6f2; box-shadow: 0 6px 18px rgba(255, 84, 33, .12); }
.sim-choice-card .sim-choice-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.sim-choice-card .sim-choice-price { font-size: 13px; color: #6b6b78; }
.sim-choice-card.is-active .sim-choice-price { color: #e0430f; }
.sim-choice-card .sim-choice-price strong { color: #1f9d55; }

/* ---- Vehicle grid ---- */
.sim-vehicle-search { position: relative; margin-bottom: 18px; }
.sim-vehicle-search input {
    width: 100%; padding-block: 12px; padding-inline: 16px 42px; border-radius: 30px; border: 2px solid #ecebf1;
    font-family: inherit; font-size: 14px; outline: none;
}
.sim-vehicle-search input:focus { border-color: #ff5421; }
.sim-vehicle-search .material-icons { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: #a5a5b3; font-size: 20px; }

.sim-vehicle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-height: 460px; overflow-y: auto; padding: 4px 4px 10px; margin-bottom: 10px; }
.sim-vehicle-card {
    border: 2px solid #ecebf1; border-radius: 14px; background: #fff; cursor: pointer; overflow: hidden;
    transition: all .2s; text-align: start;
}
.sim-vehicle-card:hover { border-color: #ffcbb3; }
.sim-vehicle-card.is-active { border-color: #ff5421; box-shadow: 0 6px 18px rgba(255, 84, 33, .15); }
.sim-vehicle-card img { width: 100%; height: 110px; object-fit: contain; display: block; background: #f1f1f6; padding: 6px; }
.sim-vehicle-card-body { padding: 10px 12px 12px; }
.sim-vehicle-card-name { font-weight: 700; font-size: 13px; margin-bottom: 4px; line-height: 1.3; }
.sim-vehicle-card-price { font-size: 13px; font-weight: 700; color: #ff5421; margin-bottom: 6px; }
.sim-vehicle-card-meta { display: flex; gap: 10px; font-size: 11px; color: #6b6b78; flex-wrap: wrap; }
.sim-vehicle-card-meta span { display: flex; align-items: center; gap: 3px; }
.sim-vehicle-card-meta .material-icons { font-size: 13px; color: #a5a5b3; }

.sim-vehicle-empty { text-align: center; padding: 30px; color: #a5a5b3; font-size: 14px; }

.sim-vehicle-change-btn { display: flex; margin: 0 auto 24px; }

.sim-vehicle-detail {
    display: flex; gap: 16px; align-items: center; border: 2px solid #ff5421; background: #fff6f2;
    border-radius: 14px; padding: 14px 16px; margin-bottom: 24px;
}
.sim-vehicle-detail img { width: 90px; height: 68px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; flex-shrink: 0; }
.sim-vehicle-detail-name { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.sim-vehicle-detail-specs { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #6b6b78; }
.sim-vehicle-detail-specs strong { color: #1d1d2b; }

/* ---- Results ---- */
.sim-result-headline {
    text-align: center; background: linear-gradient(135deg, #ff5421, #ff8a5c); color: #fff;
    border-radius: 18px; padding: 30px 20px; margin-bottom: 30px;
}
.sim-result-headline .sim-result-big { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.sim-result-headline .sim-result-small { font-size: 14px; opacity: .92; }

.sim-result-table-wrap { overflow-x: auto; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
table.sim-result-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; min-width: 560px; }
table.sim-result-table th, table.sim-result-table td { padding: 14px 16px; font-size: 13px; text-align: center; border-bottom: 1px solid #ecebf1; }
table.sim-result-table thead th { background: #1d1d2b; color: #fff; font-weight: 700; }
table.sim-result-table td:first-child, table.sim-result-table th:first-child { text-align: start; font-weight: 700; }
table.sim-result-table tbody tr:last-child td { font-weight: 800; color: #1f9d55; }
table.sim-result-table tbody tr:last-child { background: #f3fbf5; }

.sim-result-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.sim-result-card { background: #fff; border: 2px solid #ecebf1; border-radius: 14px; padding: 14px 10px; text-align: center; }
.sim-result-card-label { font-size: 11px; color: #a5a5b3; font-weight: 600; margin-bottom: 6px; }
.sim-result-card-value { font-size: 16px; font-weight: 800; color: #1f9d55; }

/* ---- Selected vehicle summary + share ---- */
.sim-result-vehicle {
    display: flex; gap: 16px; align-items: center; background: #fff; border: 2px solid #ecebf1;
    border-radius: 14px; padding: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.sim-result-vehicle img { width: 110px; height: 82px; object-fit: contain; border-radius: 10px; background: #f7f7fa; padding: 6px; flex-shrink: 0; }
.sim-result-vehicle-info { flex: 1; min-width: 180px; }
.sim-result-vehicle-name { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.sim-result-vehicle-price { font-size: 13px; color: #6b6b78; }
.sim-result-vehicle-link {
    display: inline-flex; align-items: center; gap: 6px; background: #1d1d2b; color: #fff;
    padding: 9px 18px; border-radius: 20px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.sim-result-vehicle-link:hover { background: #ff5421; }
.sim-result-vehicle-link .material-icons { font-size: 16px; }

/* ---- Détail du calcul + avertissement ---- */
.sim-calc-details { background: #fff; border: 2px solid #ecebf1; border-radius: 14px; padding: 4px 18px; margin-bottom: 18px; }
.sim-calc-summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; list-style: none; }
.sim-calc-summary::-webkit-details-marker { display: none; }
.sim-calc-summary .material-icons { color: #ff5421; }
.sim-calc-summary::after { content: 'expand_more'; font-family: 'Material Icons'; margin-right: auto; color: #a5a5b3; font-size: 20px; }
details[open] .sim-calc-summary::after { content: 'expand_less'; }
.sim-calc-body { padding-top: 14px; margin-top: -4px; border-top: 1px solid #ecebf1; padding-bottom: 18px; }
.sim-calc-group { margin-bottom: 16px; }
.sim-calc-group:last-child { margin-bottom: 0; }
.sim-calc-group-title { font-weight: 700; font-size: 13px; color: #1d1d2b; margin-bottom: 6px; }
.sim-calc-line { font-size: 13px; color: #6b6b78; line-height: 1.9; }
.sim-calc-line strong { color: #1d1d2b; }
.sim-calc-result { color: #1f9d55; font-weight: 700; }

.sim-disclaimer {
    display: flex; gap: 10px; align-items: flex-start; background: #fff8e6; border: 1px solid #f4dfa0;
    border-radius: 12px; padding: 14px 16px; margin-bottom: 24px; font-size: 12.5px; color: #7a6320; line-height: 1.8;
}
.sim-disclaimer .material-icons { color: #c99a1f; font-size: 20px; flex-shrink: 0; }

.sim-share { text-align: center; margin-bottom: 24px; }
.sim-share-label { font-size: 13px; font-weight: 700; color: #6b6b78; margin-bottom: 12px; }
.sim-share-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sim-share-btn {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; transition: transform .2s, opacity .2s; border: none; cursor: pointer; font-family: inherit;
}
.sim-share-btn:hover { transform: translateY(-2px); opacity: .9; }
.sim-share-fb { background: #1877f2; }
.sim-share-whatsapp { background: #25d366; }
.sim-share-x { background: #000; }
.sim-share-copy { background: #6b6b78; }
.sim-share-copy.is-copied { background: #1f9d55; }

@media (max-width: 600px) {
    .sim-choice-grid { grid-template-columns: 1fr; }
    .sim-vehicle-grid { grid-template-columns: 1fr; max-height: 420px; }
    .sim-result-cards { grid-template-columns: repeat(2, 1fr); }
    .sim-result-vehicle { flex-direction: column; text-align: center; }
}

.sim-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.sim-nav.sim-nav-end { justify-content: center; gap: 12px; }
