/* ═══════════════════════════════════════════════════════════════
   SIMULATEUR DOUANE — Design Lotooti (sobre, aéré, Apple-like)
   ═══════════════════════════════════════════════════════════════ */

.sim-douane {
    background: #f9fafb;
    padding-bottom: 80px;
}

.sim-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── HERO ─── */
.sim-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.sim-badge {
    display: inline-block;
    background: #eef2ff;
    color: #3D5AFE;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.sim-hero-title {
    font-family: 'Sora', 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sim-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #6e6e73;
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 40px;
}

.sim-taux {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.sim-taux-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 24px;
    min-width: 200px;
}

.sim-taux-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6e6e73;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sim-taux-input {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d1d1f;
}

.sim-taux-input input {
    width: 90px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-align: right;
    padding: 0;
    outline: none;
}

.sim-taux-input span {
    font-size: 0.85rem;
    color: #6e6e73;
    font-weight: 500;
}

/* ─── ÉTAPES ─── */
.sim-form {
    padding: 60px 0;
}

.sim-step {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    overflow: hidden;
}

.sim-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: #fafbfc;
    border-bottom: 1px solid #f3f4f6;
}

.sim-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3D5AFE;
    color: #ffffff;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sim-step-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.sim-step-body {
    padding: 28px;
}

.sim-field {
    margin-bottom: 20px;
}

.sim-field:last-child {
    margin-bottom: 0;
}

.sim-field label,
.sim-group-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.sim-field input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    background: #ffffff;
    transition: border-color 0.2s;
}

.sim-field input:focus {
    outline: none;
    border-color: #3D5AFE;
}

.sim-field-group {
    margin-bottom: 24px;
}

.sim-field-group:last-child {
    margin-bottom: 0;
}

/* ─── OPTIONS (boutons) ─── */
.sim-options {
    display: grid;
    gap: 12px;
}

.sim-options-carburant {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.sim-options-cylindree {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.sim-options-statut {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sim-opt {
    padding: 16px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sim-opt:hover:not(:disabled) {
    border-color: #3D5AFE;
    background: #f5f7ff;
}

.sim-opt-active {
    border-color: #3D5AFE !important;
    background: #eef2ff !important;
    color: #3D5AFE !important;
}

.sim-opt-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sim-opt-main {
    font-weight: 700;
}

.sim-opt-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sim-opt-active .sim-opt-tag {
    color: #3D5AFE;
}

/* ─── RÉSULTAT ─── */
.sim-result {
    padding: 0 0 60px;
}

.sim-result-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(61, 90, 254, 0.08);
    border: 1px solid #eef2ff;
}

.sim-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.sim-result-icon {
    font-size: 1.8rem;
}

.sim-result-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.sim-total {
    text-align: center;
    padding: 32px 0;
    margin-bottom: 24px;
}

.sim-total-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.sim-total-value {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #3D5AFE;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.sim-total-eur {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #6e6e73;
    font-weight: 500;
}

.sim-detail {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.sim-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.sim-detail-row:last-child {
    border-bottom: none;
}

.sim-detail-row strong {
    font-family: 'Sora', sans-serif;
    color: #1d1d1f;
    font-weight: 700;
}

.sim-detail-total {
    padding-top: 16px !important;
    margin-top: 8px;
    border-top: 2px solid #3D5AFE !important;
    border-bottom: none !important;
    font-size: 1rem;
    color: #1d1d1f;
}

.sim-detail-total strong {
    color: #3D5AFE;
    font-size: 1.2rem;
}

.sim-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sim-btn-primary,
.sim-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
    min-width: 220px;
}

.sim-btn-primary {
    background: #3D5AFE;
    color: #ffffff;
}

.sim-btn-primary:hover {
    background: #2a44d4;
    transform: translateY(-1px);
}

.sim-btn-secondary {
    background: #ffffff;
    color: #3D5AFE;
    border: 1.5px solid #3D5AFE;
}

.sim-btn-secondary:hover {
    background: #eef2ff;
}

.sim-warning {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6e6e73;
    text-align: center;
    line-height: 1.5;
    padding: 16px;
    background: #fffbeb;
    border-radius: 12px;
    border: 1px solid #fef3c7;
}

/* ─── GUIDE ─── */
.sim-guide {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.sim-guide-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #1d1d1f;
    text-align: center;
    margin: 0 0 48px;
    letter-spacing: -0.02em;
}

.sim-guide-section {
    position: relative;
    padding-left: 80px;
    margin-bottom: 48px;
}

.sim-guide-section:last-child {
    margin-bottom: 0;
}

.sim-guide-num {
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #3D5AFE;
    opacity: 0.15;
    line-height: 1;
}

.sim-guide-section h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 16px;
    line-height: 1.3;
}

.sim-guide-section p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 16px;
}

.sim-guide-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sim-guide-section li {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    padding: 8px 0 8px 24px;
    position: relative;
}

.sim-guide-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3D5AFE;
}

.sim-guide-section li strong {
    color: #1d1d1f;
    font-weight: 700;
}

/* ─── CTA FINAL ─── */
.sim-cta {
    padding: 80px 0;
    text-align: center;
}

.sim-cta h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #1d1d1f;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.sim-cta p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.sim-cta .sim-btn-primary {
    display: inline-flex;
    flex: none;
}

/* ─── MOBILE ─── */
@media (max-width: 640px) {
    .sim-container {
        padding: 0 16px;
    }
    .sim-hero {
        padding: 48px 0 32px;
    }
    .sim-taux {
        flex-direction: column;
    }
    .sim-taux-card {
        min-width: 0;
    }
    .sim-step-body {
        padding: 20px;
    }
    .sim-result-card {
        padding: 24px 20px;
    }
    .sim-actions {
        flex-direction: column;
    }
    .sim-btn-primary,
    .sim-btn-secondary {
        width: 100%;
        min-width: 0;
    }
    .sim-guide-section {
        padding-left: 0;
    }
    .sim-guide-num {
        position: relative;
        display: block;
        margin-bottom: 8px;
        font-size: 1.5rem;
        opacity: 0.4;
    }
    .sim-guide-section h3 {
        font-size: 1.1rem;
    }
}

/* ─── PRINT ─── */
@media print {
    .sim-hero, .sim-form, .sim-guide, .sim-cta, .sim-actions, .sim-badge,
    body > header, footer, .hdr-desktop-header {
        display: none !important;
    }
    .sim-result {
        padding: 0;
    }
    .sim-result-card {
        box-shadow: none;
        border: none;
    }
    body {
        background: #ffffff !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Note diesel — discrète, style naturel
   ═══════════════════════════════════════════════════════════════ */
.sim-note-diesel {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #6e6e73;
    margin: 12px 0 0;
    line-height: 1.5;
    font-style: italic;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   Taux — cartes cliquables avec état actif
   ═══════════════════════════════════════════════════════════════ */
.sim-taux-card {
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
}

.sim-taux-card:hover {
    border-color: #3D5AFE;
    background: #f5f7ff;
}

.sim-taux-active {
    border-color: #3D5AFE !important;
    background: #eef2ff !important;
    box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.12);
}

.sim-taux-active .sim-taux-label {
    color: #3D5AFE;
    font-weight: 600;
}

.sim-taux-input input {
    cursor: text;
    pointer-events: auto;
}

.sim-taux-hint {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6e6e73;
    margin: 16px 0 0;
    font-style: italic;
}
