/* ============================================================
   illus-simulation.css — Carte illustration « Simulation d'impact »
   Charte PrediPlan · accent teal #12938e
   ============================================================ */

:root {
  --sc:        #12938e;
  --sc-bg:     #f0fdfa;
  --sc-border: #e5e7eb;
}

/* ── Carte enveloppe ─────────────────────────────────────── */

.sc-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  box-sizing: border-box;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .10), 0 1px 4px rgba(0, 0, 0, .06);
}

/* ── En-tête ─────────────────────────────────────────────── */

.sc-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #111827;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ── Flux 3 étapes ───────────────────────────────────────── */

.sc-flow {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

/* Étape générique */
.sc-step {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1.5px solid var(--sc-border);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

/* Flèche pointillée */
.sc-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ── Étape 1 : congé ─────────────────────────────────────── */

.sc-step-illus {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-step-main {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  display: block;
}

.sc-sep {
  width: 100%;
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0;
}

.sc-dates {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: stretch;
}

.sc-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: #374151;
}

/* ── Étape 2 : personne ──────────────────────────────────── */

.sc-avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: #e6f4f3;
  flex-shrink: 0;
}

.sc-avatar-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sc-step-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  display: block;
  margin: 0;
}

.sc-step-hours {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc);
  display: block;
}

.sc-step-when {
  font-size: 0.8rem;
  color: #6b7280;
  display: block;
}

/* ── Étape 3 : résultat ──────────────────────────────────── */

.sc-check-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-result-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  display: block;
  line-height: 1.3;
}

.sc-result-ok {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sc);
  display: block;
  line-height: 1.4;
}

.sc-result-note {
  font-size: 0.8rem;
  color: #6b7280;
  display: block;
  line-height: 1.4;
}

/* ── Barre d'information ─────────────────────────────────── */

.sc-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sc-bg);
  border: 1.5px solid rgba(18, 147, 142, 0.30);
  border-radius: 12px;
  padding: 11px 16px;
}

.sc-info-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--sc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-info-text {
  font-size: 0.86rem;
  color: #374151;
  margin: 0;
  line-height: 1.5;
}

.sc-info-text strong {
  color: var(--sc);
  font-weight: 700;
}

/* ── Responsive mobile — flux horizontal maintenu ─────── */
@media (max-width: 520px) {
  .sc-card {
    padding: 12px 9px;
    gap: 10px;
    border-radius: 12px;
  }
  .sc-title { font-size: 0.95rem; }

  /* Flux reste horizontal */
  .sc-flow {
    flex-direction: row;
    align-items: stretch;
    gap: 2px;
  }

  /* Flèches compactes */
  .sc-arrow {
    flex-shrink: 0;
    align-self: center;
    padding: 0;
    width: 16px;
  }
  .sc-arrow svg { width: 16px; height: auto; }

  /* Étapes */
  .sc-step {
    flex: 1;
    min-width: 0;
    padding: 8px 5px;
    gap: 4px;
    border-radius: 8px;
  }

  /* Illustration étape 1 — réduite */
  .sc-step-illus { height: 44px; }
  .sc-step-illus svg { width: 44px; height: auto; }

  .sc-sep { display: none; }

  /* Étape 1 : congé */
  .sc-step-main { font-size: 0.68rem; }
  .sc-dates { flex-direction: column; gap: 3px; }
  .sc-date-row { font-size: 0.62rem; gap: 3px; }
  .sc-date-row svg { width: 10px; height: 10px; flex-shrink: 0; }

  /* Étape 2 : personne */
  .sc-avatar-wrap { width: 36px; height: 36px; }
  .sc-step-name { font-size: 0.82rem; }
  .sc-step-hours { font-size: 0.67rem; }
  .sc-step-when { font-size: 0.6rem; }

  /* Étape 3 : résultat */
  .sc-check-circle { width: 30px; height: 30px; }
  .sc-check-circle svg { width: 15px; height: 15px; }
  .sc-result-title { font-size: 0.65rem; line-height: 1.3; }
  .sc-result-note { font-size: 0.6rem; }

  .sc-info { padding: 8px 10px; gap: 8px; }
  .sc-info-text { font-size: 0.78rem; }
}
