/* ─────────────────────────────────────────────────────────
   Tania — Simulateur facturation électronique
   Direction artistique V3 : produit SaaS, premium accessible, sobre.
   ───────────────────────────────────────────────────────── */

/* ─── Design tokens ─── */
:root {
  --bg:            var(--mist);
  --surface:       var(--paper);
  --surface-soft:  var(--mist);
  --text-1:        var(--ink);
  --text-2:        var(--ink-soft);
  --text-3:        var(--ink-faint);
  --text-muted:    var(--line-strong);
  --brand:         var(--emerald);
  --brand-strong:  var(--forest);
  --brand-deep:    var(--emerald-deep);
  --brand-soft:    var(--mint);
  --brand-line:    var(--shg);
  --border:        var(--line);
  --border-soft:   var(--mist);
  --warn-bg:       var(--tile2);
  --warn-text:     var(--ink-soft);
  --info-bg:       var(--tile2);
  --info-text:     var(--ink-soft);
  --shadow-sm:     2px 2px 0 var(--sh);
  --shadow-md:     3px 3px 0 var(--sh);
  --shadow-lg:     5px 5px 0 var(--sh);
  --radius-sm:     9px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     20px;
}

/* Offset pour éviter que le header sticky (64px) ne cache le haut au scrollIntoView */
.sim-quiz, .sim-result, #sim-question-container { scroll-margin-top: 80px; }

body { background: var(--bg); color: var(--text-1); margin: 0; }

/* ─── Header sticky (remplace Tailwind) ─── */
.sim-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--mist);
}
.sim-site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sim-header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease;
}
.sim-header-cta:hover { background: var(--brand-strong); color: #fff; }

/* ─── Footer (remplace Tailwind) ─── */
.sim-site-footer {
  background: var(--ink);
  color: var(--line-strong);
  padding: 3rem 0;
  margin-top: 2rem;
}
.sim-site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.sim-site-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.sim-site-footer__links a {
  color: var(--line-strong);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sim-site-footer__links a:hover { color: #fff; }
@media (min-width: 768px) {
  .sim-site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Offset pour header sticky 64px */
.sim-quiz, .sim-result, #sim-question-container { scroll-margin-top: 80px; }

/* ─── Wrapper ─── */
.sim-page { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sim-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ─── Hero (deux colonnes desktop) ─── */
.sim-hero {
  padding: 3rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.sim-hero__content { max-width: 540px; }

.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 2px solid var(--line);
}
.sim-badge__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 2px #25D366;
}

.sim-hero h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin: 0 0 1rem;
}
.sim-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sim-hero .sim-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 480px;
}

/* ─── CTAs Hero ─── */
.sim-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.sim-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--shg); border: 2.5px solid var(--line);
  transition: .12s;
  min-height: 48px;
}
.sim-btn-primary:hover {
  background: var(--brand-strong);
  transform: translate(2px,2px);
  box-shadow: 3px 3px 0 var(--shg);
  color: #fff;
}
.sim-btn-primary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.sim-btn-secondary {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.sim-btn-secondary:hover { color: var(--text-1); border-bottom-color: var(--text-2); }

/* ─── Pills de réassurance ─── */
.sim-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.sim-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
}
.sim-pills li svg { color: var(--brand); flex-shrink: 0; }

/* ─── Carte preview produit (colonne droite) ─── */
.sim-preview {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}
.sim-preview::before {
  content: '';
  position: absolute;
  inset: -20px -20px auto auto;
  width: 220px;
  height: 220px;
  background: none;
  z-index: -1;
  pointer-events: none;
  filter: blur(8px);
}
.sim-preview__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--rowline);
  margin-bottom: 1rem;
}
.sim-preview__dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 2px #25D366;
}
.sim-preview__chrome-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.sim-preview__chrome-step {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sim-preview__bar {
  height: 5px;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.sim-preview__bar > span {
  display: block;
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  border-radius: 999px;
}
.sim-preview__q {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 0.85rem;
  line-height: 1.4;
}
.sim-preview__opts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.sim-preview__opt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-1);
  background: var(--surface);
}
.sim-preview__opt::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}
.sim-preview__opt.is-selected {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-deep);
  font-weight: 600;
}
.sim-preview__opt.is-selected::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px var(--brand-soft);
}
.sim-preview__footer {
  background: var(--surface-soft);
  border: 2px solid var(--rowline);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sim-preview__footer-tag {
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ─── Section "Ce qui change" (sobre, secondaire) ─── */
.sim-change {
  background: var(--surface);
  border: 2px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.05rem;
  margin: 0.5rem auto 2rem;
  max-width: 680px;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.sim-change__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-strong);
}
.sim-change__icon svg { width: 14px; height: 14px; }
.sim-change__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin: 0 0 0.2rem;
}
.sim-change__text {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}
.sim-change__text strong { color: var(--text-1); font-weight: 600; }
.sim-change__text-final {
  margin-top: 0.2rem;
  font-weight: 500;
  color: var(--text-1);
  font-size: 0.84rem;
}

/* ─── Simulateur (quiz card premium) ─── */
.sim-quiz { display: none; padding: 0 0 3rem; }
.sim-quiz.active { display: block; }

.sim-quiz__head {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.sim-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
}
.sim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
  border-radius: 999px;
}
.sim-progress-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.sim-question {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
  animation: simFadeIn 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes simFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sim-question h2 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.35;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
}

/* Options — états distincts : normal / hover (gris) / selected (vert) */
.sim-options {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sim-options label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  font-size: 0.95rem;
  color: var(--text-1);
  font-weight: 500;
  min-height: 48px;
  position: relative;
}
/* Hover : neutre, jamais confondu avec sélectionné */
.sim-options label:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}
.sim-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sim-options label::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  flex-shrink: 0;
  transition: all 0.15s ease;
}
/* Sélectionné : vert net, jamais ambigu */
.sim-options label:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px #25D366;
}
.sim-options label:has(input:checked)::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px var(--brand-soft);
}
.sim-options input:focus-visible + span,
.sim-options label:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }

.sim-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.sim-nav-prev {
  background: transparent;
  color: var(--text-3);
  border: none;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.65rem 0.5rem;
}
.sim-nav-prev:hover { color: var(--text-1); }
.sim-nav-prev:disabled { opacity: 0.35; cursor: default; }
.sim-nav-next {
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 46px;
  transition: all 0.18s ease;
  box-shadow: 3px 3px 0 var(--shg);
}
.sim-nav-next:hover:not(:disabled) { background: var(--brand-strong); transform: translate(2px,2px); }
.sim-nav-next:disabled { background: var(--line-strong); cursor: not-allowed; box-shadow: none; }

/* ─── Résultat (fiche conseil) ─── */
.sim-result { display: none; padding: 0 0 3rem; max-width: 760px; margin: 0 auto; }
.sim-result.active { display: block; animation: simFadeIn 0.32s ease-out; }

.sim-plan-header {
  text-align: center;
  padding: 0.5rem 0.5rem 1.5rem;
}
.sim-plan-header h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.sim-plan-header p {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.55;
}

.sim-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-sm);
}
.sim-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
}

/* Niveau */
.sim-card-level {
  text-align: center;
  padding: 1.4rem 1.25rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}
.sim-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}
.sim-level-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.sim-level-prepare { background: var(--warn-bg); color: var(--warn-text); }
.sim-level-verify  { background: #FEF9C3; color: #A16207; }
.sim-level-clarify { background: var(--info-bg); color: var(--info-text); }
.sim-level-desc {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 460px;
}

/* "Ce que cela signifie" */
.sim-meaning-list { display: flex; flex-direction: column; gap: 0.85rem; }
.sim-meaning-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.sim-meaning-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 2px solid var(--line);
}
.sim-meaning-item--warn .sim-meaning-icon { background: var(--warn-bg); color: var(--warn-text); border-color: #FDE68A; }
.sim-meaning-item--info .sim-meaning-icon { background: var(--info-bg); color: var(--info-text); border-color: #C7D2FE; }
.sim-meaning-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 0.15rem;
  line-height: 1.35;
}
.sim-meaning-text {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

/* Actions numérotées */
.sim-card-actions { background: var(--surface-soft); border-color: var(--border-soft); }
.sim-actions-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.sim-action-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}
.sim-action-item:hover { border-color: var(--brand-line); }
.sim-action-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.sim-action-text {
  font-size: 0.92rem;
  color: var(--text-1);
  line-height: 1.45;
  font-weight: 500;
}

/* ─── Carte profil (chips + principale échéance) ─── */
.sim-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem;
}
.sim-profile__left .sim-card-title,
.sim-profile__right .sim-card-title { margin-bottom: 0.5rem; }
.sim-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sim-chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft);
  border: 2px solid var(--border);
  color: var(--text-2);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}
.sim-deadline {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-deep);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.sim-deadline__sub {
  font-size: 0.82rem;
  color: var(--text-3);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

/* ─── Timeline 2026 / 2027 ─── */
.sim-timeline-card { padding: 1.25rem; }
.sim-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0.5rem 0.5rem;
  margin-bottom: 0.85rem;
}
.sim-timeline__line {
  position: absolute;
  top: 1.3rem;
  left: 12%;
  right: 12%;
  height: 3px;
  background: linear-gradient(90deg, var(--border) 0%, var(--brand-line) 50%, var(--border) 100%);
  border-radius: 999px;
  z-index: 0;
}
.sim-timeline__milestone {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  text-align: center;
  width: 130px;
  max-width: 45%;
}
.sim-timeline__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 2.5px solid var(--text-muted);
  margin: 0 auto 0.5rem;
  transition: all 0.2s ease;
}
.sim-timeline__milestone.is-current .sim-timeline__dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 2px #25D366;
  transform: scale(1.15);
}
.sim-timeline__date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
  margin: 0 0 0.15rem;
}
.sim-timeline__milestone.is-current .sim-timeline__date { color: var(--brand-deep); }
.sim-timeline__label {
  font-size: 0.75rem;
  color: var(--text-3);
  margin: 0;
  line-height: 1.35;
}
.sim-timeline__hint {
  font-size: 0.85rem;
  color: var(--text-2);
  text-align: center;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-soft);
}
.sim-timeline__hint strong { color: var(--brand-deep); }

/* ─── Carte Tania ─── */
.sim-card-tania {
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--surface) 100%);
  border-color: var(--brand-line);
  padding: 1.4rem 1.25rem;
}
.sim-card-tania .sim-card-title { color: var(--brand-deep); }
.sim-tania-text {
  font-size: 0.92rem;
  color: var(--text-1);
  line-height: 1.6;
  margin: 0 0 1rem;
}

/* ─── Boutons résultat — hiérarchie claire ─── */
.sim-btn-block { width: 100%; }

.sim-utils-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
}
.sim-btn-util {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--surface);
  color: var(--text-2);
  border: 2px solid var(--border);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  min-height: 40px;
  transition: all 0.15s ease;
}
.sim-btn-util:hover {
  border-color: var(--brand-line);
  color: var(--brand-deep);
  background: var(--brand-soft);
}
.sim-btn-util.copied { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.sim-btn-util svg { color: var(--text-3); }
.sim-btn-util:hover svg { color: var(--brand); }

.sim-btn-ghost-center {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.85rem auto 0;
}

.sim-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sim-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 50px;
  box-shadow: 5px 5px 0 var(--shg); border: 2.5px solid var(--line);
}
.sim-btn-whatsapp:hover { background: var(--brand-strong); transform: translate(2px,2px); color: #fff; }
.sim-btn-whatsapp svg { color: #fff; }

.sim-btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--text-2);
  border: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 46px;
  transition: all 0.15s ease;
}
.sim-btn-copy:hover { border-color: var(--brand-line); color: var(--text-1); background: var(--brand-soft); }
.sim-btn-copy.copied { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }

.sim-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-3);
  border: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  cursor: pointer;
}
.sim-btn-ghost:hover { color: var(--brand-deep); }

/* Share + restart */
.sim-share {
  margin: 1.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  text-align: center;
}
.sim-share-title {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 0;
  font-weight: 500;
}
.sim-share-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.sim-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-2);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sim-share-btn:hover { border-color: var(--brand-line); color: var(--brand-deep); }
.sim-share-btn.copied { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }

.sim-restart-row { text-align: center; margin: 1.25rem 0 0.5rem; }
.sim-btn-restart {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-3);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sim-btn-restart:hover { border-color: var(--text-3); color: var(--text-1); }

/* ─── FAQ (sobre, secondaire) ─── */
.sim-faq {
  max-width: 720px;
  margin: 3rem auto 1rem;
}
.sim-faq h2 {
  font-size: 1.25rem;
  color: var(--text-1);
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.sim-faq details {
  border: 2px solid var(--rowline);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  margin-bottom: 0.5rem;
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.sim-faq details[open] { border-color: var(--brand-line); }
.sim-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-1);
  font-size: 0.96rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.sim-faq summary::-webkit-details-marker { display: none; }
.sim-faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--brand);
  transition: transform 0.2s ease;
  line-height: 1;
  font-weight: 300;
}
.sim-faq details[open] summary::after { transform: rotate(45deg); }
.sim-faq .faq-a { margin-top: 0.65rem; color: var(--text-2); font-size: 0.92rem; line-height: 1.6; }

/* ─── Disclaimer ─── */
.sim-disclaimer {
  background: var(--surface-soft);
  border: 2px solid var(--rowline);
  border-left: 3px solid var(--text-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.9rem 1.15rem;
  font-size: 0.83rem;
  color: var(--text-3);
  line-height: 1.6;
  margin: 1.75rem auto;
  max-width: 760px;
}

/* ─── Toast ─── */
.sim-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-1);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.3);
}
.sim-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Desktop ≥ 980px ─── */
@media (min-width: 980px) {
  .sim-hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    padding: 4rem 0 3rem;
  }
  .sim-profile {
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    align-items: center;
  }
  .sim-profile__right {
    border-left: 1px solid var(--border-soft);
    padding-left: 1.5rem;
  }
  .sim-utils-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Print stylesheet (PDF via window.print()) ─── */
@media print {
  body { background: #fff !important; }
  header, footer, .sim-hero, .sim-change, .sim-quiz, .sim-faq,
  .sim-share, .sim-restart-row, .sim-toast,
  .sim-btn-whatsapp, .sim-utils-row, .sim-btn-ghost-center { display: none !important; }
  .sim-result { display: block !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
  .sim-result .sim-card { box-shadow: none !important; border: 1px solid var(--line) !important; break-inside: avoid; page-break-inside: avoid; }
  .sim-card-tania { background: var(--mist) !important; }
  .sim-tania-text { margin-bottom: 0 !important; }
  .sim-plan-header { padding: 0 0 1rem !important; }
  .sim-plan-header h2 { font-size: 1.5rem !important; }
  .sim-timeline-card { break-inside: avoid; }
}

/* ─── Tablet ─── */
@media (max-width: 760px) {
  .sim-hero { padding: 2rem 0 1.5rem; gap: 1.75rem; }
  .sim-hero .sim-sub { font-size: 1rem; }
  .sim-question { padding: 1.5rem 1.25rem; }
  .sim-question h2 { font-size: 1.15rem; }
  .sim-card { padding: 1.25rem; }
  .sim-card-level { padding: 1.5rem 1.25rem; }
  .sim-change { padding: 1rem 1.15rem; gap: 0.85rem; }
}

/* ─── Mobile 320-380 ─── */
@media (max-width: 380px) {
  .sim-page, .sim-wrap { padding: 0 16px; }
  .sim-cta-row { gap: 0.75rem; }
  .sim-btn-primary { width: 100%; }
  .sim-btn-secondary { width: 100%; text-align: center; padding: 0.5rem; }
  .sim-preview { padding: 1rem; }
  .sim-preview__q { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sim-question, .sim-result, .sim-progress-fill,
  .sim-btn-primary, .sim-btn-whatsapp, .sim-btn-copy { animation: none !important; transition: none !important; }
}
