/* Source and licensing information for the line(s) below can be found at https://pic.commerce.mg/modules/custom/step_by_step/assets/css/step-by-step-summary.css. */
/* ═══════════════════════════════════════════════════════════
   step-by-step-summary.css — Design MODULE 1 Coûts & Délais
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary:       #003366;
  --button:        #037f3b;
  --light:         #F5F7FA;
  --border:        #E0E4E8;
  --text:          #1A1A1A;
  --muted:         #666666;
  --accent-orange: #FF6B35;
  --cost-color:    #E74C3C;
  --delay-color:   #F39C12;
}

/* ── Navbar ── */
.psum-navbar {
  background: #fff;
  border-bottom: 4px solid var(--button);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.psum-logo { font-size: 20px; font-weight: 700; color: var(--button); }
.psum-breadcrumb { font-size: 12px; color: var(--muted); }
.psum-breadcrumb a { color: var(--button); text-decoration: none; font-weight: 600; }

/* ── Container ── */
.psum-page { font-family: 'Segoe UI', Arial, sans-serif; background: var(--light); min-height: 100vh; color: var(--text); }
.psum-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ── Header ── */
.psum-header {
  background: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-left: 5px solid var(--button);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.psum-header h1 { font-size: 26px; color: #003366; font-weight: 700; margin: 0 0 10px; }
.psum-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.psum-tag {
  background: linear-gradient(135deg, var(--button), #025c2b);
  color: #fff; padding: 6px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
}
.psum-tag-sh { background: linear-gradient(135deg, #025c2b, var(--button)); }
.psum-header-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

/* ── KPI Grid ── */
.psum-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.psum-kpi-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-top: 5px solid var(--button);
  text-align: center;
}
.psum-kpi-label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  font-weight: 600; letter-spacing: .5px; margin-bottom: 10px;
}
.psum-kpi-val {
  font-size: 30px; color: #003366; font-weight: 700; margin-bottom: 6px;
}
.psum-kpi-unit { font-size: 13px; color: var(--muted); }
.psum-kpi-sub {
  font-size: 11px; color: var(--muted); margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* ── Règle de gestion ── */
.psum-rule-box {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-left: 4px solid var(--button);
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #003366;
}
.psum-rule-box strong { display: block; margin-bottom: 4px; font-weight: 700; color: #003366; }

/* ── Timeline section ── */
.psum-timeline-section {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  margin-bottom: 24px;
}
.psum-section-title {
  font-size: 17px; color: #003366; font-weight: 700;
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 2px solid var(--light);
}

/* ── Timeline ── */
.psum-timeline { position: relative; padding: 16px 0; }
.psum-timeline::before {
  content: '';
  position: absolute;
  left: 42px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}

/* ── Item étape ── */
.psum-timeline-item {
  position: relative;
  padding-left: 110px;
  margin-bottom: 20px;
  cursor: pointer;
}
.psum-timeline-item:last-child { margin-bottom: 0; }

/* Numéro rond VERT */
.psum-timeline-marker {
  position: absolute;
  left: 24px; top: 12px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--button), #025c2b);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 12px rgba(3,127,59,.3);
  z-index: 1;
  transition: transform .2s;
}
.psum-timeline-item:hover .psum-timeline-marker { transform: scale(1.1); }

/* ── Header étape cliquable ── */
.psum-step-header {
  background: linear-gradient(135deg, #F9F9F9, #F5F7FA);
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--button);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: background .15s;
  user-select: none;
}
.psum-step-header:hover {
  background: linear-gradient(135deg, #f0faf0, #e8f5e9);
}

/* Texte étape — VISIBLE en bleu foncé */
.psum-step-title {
  font-weight: 700;
  color: #003366;
  font-size: 15px;
  flex: 1;
  min-width: 0;
}

.psum-step-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Badges colorés */
.psum-badge-cost {
  background: #fdecea; color: #c0392b;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  border: 1px solid #f5b7b1;
}
.psum-badge-dur {
  background: #fff8e1; color: #e67e22;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  border: 1px solid #fce4a0;
}
.psum-badge-entity {
  background: #e8f5e9; color: var(--button);
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  border: 1px solid #a5d6a7;
}

.psum-toggle {
  font-size: 16px; color: var(--muted);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.psum-toggle.open { transform: rotate(180deg); }

/* ── Corps étape ── */
.psum-step-body {
  display: none;
  padding: 14px 20px 4px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e8f5e9;
  border-top: none;
}
.psum-step-body.open { display: block; }

/* ── Grille coût + délai ── */
.psum-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}
@media (max-width: 640px) { .psum-info-grid { grid-template-columns: 1fr; } }

.psum-info-box {
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border);
}
.psum-info-box-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* Valeur principale */
.psum-cost-precise {
  font-size: 20px; font-weight: 700;
  color: var(--cost-color); margin-bottom: 8px; line-height: 1.2;
}
.psum-dur-avg {
  font-size: 20px; font-weight: 700;
  color: var(--delay-color); margin-bottom: 8px; line-height: 1.2;
}
.psum-avg-badge {
  font-size: 10px; color: #fff; font-weight: 600;
  background: var(--button); padding: 2px 6px;
  border-radius: 10px; margin-left: 6px;
  vertical-align: middle; display: inline-block;
}

/* Min / Max */
.psum-minmax-row {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px;
}
.psum-minmax-item { display: flex; flex-direction: column; gap: 2px; }
.psum-minmax-label {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  font-weight: 700; letter-spacing: .5px;
}
.psum-minmax-val { font-size: 14px; font-weight: 700; color: var(--text); }
.psum-minmax-val.cost { color: var(--cost-color); }
.psum-minmax-val.delay { color: var(--delay-color); }

/* Libellés textuels */
.psum-desc {
  font-size: 12px; color: #444; margin-top: 4px;
  line-height: 1.5; padding: 4px 0;
  border-top: 1px dashed #eee;
}
.psum-desc b { color: #003366; }

/* Entité */
.psum-entity-row {
  display: flex; align-items: center; gap: 8px;
  background: #e8f5e9; border-radius: 6px;
  padding: 8px 12px; margin-bottom: 12px;
  font-size: 12px; font-weight: 600; color: var(--button);
  border: 1px solid #a5d6a7;
}

/* ── Sous-étapes ── */
.psum-substep-list { margin-top: 12px; }
.psum-substep-item {
  border-left: 3px solid var(--button);
  margin-left: 12px;
  margin-bottom: 8px;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
}
.psum-substep-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #f5fbf5;
  cursor: pointer;
  transition: background .15s;
  flex-wrap: wrap;
}
.psum-substep-header:hover { background: #e8f5e9; }
.psum-substep-arrow { color: var(--button); font-weight: 700; font-size: 12px; flex-shrink: 0; }

/* Texte sous-étape — VISIBLE */
.psum-substep-name {
  flex: 1;
  font-weight: 600;
  color: #003366;
  font-size: 13px;
  min-width: 0;
}

.psum-substep-toggle { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.psum-substep-body {
  display: none;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #e8f5e9;
}
.psum-substep-body.open { display: block; }

/* ── Simulateur DD/TVA ── */
.psum-simu-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.psum-simu-header {
  background: linear-gradient(135deg, var(--button), #025c2b);
  color: #fff; padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 13px; font-weight: 600;
}
.psum-simu-body { padding: 16px; }
.psum-simu-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.psum-simu-input {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 12px;
}
.psum-simu-label {
  font-size: 11px; font-weight: 700; color: #003366;
  display: block; margin-bottom: 4px;
}
.psum-simu-result {
  margin-top: 12px; background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 6px; padding: 12px; display: none;
}
.psum-simu-result-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; text-align: center;
}
.psum-simu-result-label { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.psum-simu-result-val { font-size: 16px; font-weight: 700; color: #003366; }
.psum-simu-total { color: var(--button) !important; font-size: 20px !important; }

/* ── Boutons ── */
.psum-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 24px;
  border-top: 2px solid var(--light);
}
.psum-btn {
  padding: 12px 22px; border: none; border-radius: 8px;
  font-weight: 600; font-size: 13px; cursor: pointer;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px; transition: all .2s;
  font-family: inherit; color: #fff;
}
.psum-btn-primary {
  background: linear-gradient(135deg, var(--button), #025c2b);
  color: #fff;
}
.psum-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3,127,59,.3);
  color: #fff;
}
.psum-btn-secondary {
  background: var(--light); color: #003366;
  border: 2px solid var(--border);
}
.psum-btn-secondary:hover { background: var(--button); color: #fff; border-color: var(--button); }
.psum-btn-impact {
  background: linear-gradient(135deg, #f0b14f, #d4880e);
  color: #172327;
}

/* ── Vide ── */
.psum-empty { text-align: center; padding: 40px; color: var(--muted); }

/* ── Print ── */
@media print {
  .psum-navbar, .psum-header-actions, .psum-actions, .psum-simu-box { display: none !important; }
  .psum-step-body, .psum-substep-body { display: block !important; }
}

/* ── Navbar ── */
.psum-navbar {
  background: #fff;
  border-bottom: 4px solid var(--primary);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.psum-logo { font-size: 20px; font-weight: 700; color: #003366; }
.psum-breadcrumb { font-size: 12px; color: var(--muted); }
.psum-breadcrumb a { color: var(--button); text-decoration: none; font-weight: 600; }

/* ── Container ── */
.psum-page { font-family: 'Segoe UI', Arial, sans-serif; background: var(--light); min-height: 100vh; }
.psum-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ── Header ── */
.psum-header {
  background: #fff;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-left: 5px solid var(--button);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.psum-header h1 { font-size: 26px; color: #003366; font-weight: 700; margin: 0 0 10px; }
.psum-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.psum-tag {
  background: linear-gradient(135deg, var(--primary), #004A7F);
  color: #fff; padding: 6px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
}
.psum-tag-sh { background: linear-gradient(135deg, #004A7F, #0066cc); }
.psum-header-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

/* ── KPI Grid ── */
.psum-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.psum-kpi-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-top: 5px solid var(--button);
  text-align: center;
}
.psum-kpi-label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  font-weight: 600; letter-spacing: .5px; margin-bottom: 10px;
}
.psum-kpi-val {
  font-size: 32px; color: #003366; font-weight: 700; margin-bottom: 6px;
}
.psum-kpi-unit { font-size: 13px; color: var(--muted); }
.psum-kpi-sub {
  font-size: 11px; color: var(--muted); margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--border);
}

/* ── Règle de gestion ── */
.psum-rule-box {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-left: 4px solid var(--button);
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #003366;
}
.psum-rule-box strong { display: block; margin-bottom: 4px; font-weight: 700; }

/* ── Timeline section ── */
.psum-timeline-section {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  margin-bottom: 24px;
}
.psum-section-title {
  font-size: 17px; color: #003366; font-weight: 700;
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 2px solid var(--light);
}

/* ── Timeline ── */
.psum-timeline { position: relative; padding: 16px 0; }
.psum-timeline::before {
  content: '';
  position: absolute;
  left: 42px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}

/* ── Item étape ── */
.psum-timeline-item {
  position: relative;
  padding-left: 110px;
  margin-bottom: 20px;
  cursor: pointer;
}
.psum-timeline-item:last-child { margin-bottom: 0; }

.psum-timeline-marker {
  position: absolute;
  left: 24px; top: 12px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--button), #025c2b);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 12px rgba(3,127,59,.2);
  z-index: 1;
  transition: transform .2s;
}
.psum-timeline-item:hover .psum-timeline-marker { transform: scale(1.1); }

/* ── Header étape (cliquable) ── */
.psum-step-header {
  background: linear-gradient(135deg, #F9F9F9, #F5F7FA);
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--button);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .15s;
  user-select: none;
}
.psum-step-header:hover { background: linear-gradient(135deg, #f0f8f0, #e8f5e9); }

.psum-step-title {
  font-weight: 700; color: #003366; font-size: 15px; flex: 1;
}
.psum-step-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.psum-badge-cost {
  background: #fdecea; color: var(--cost-color);
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.psum-badge-dur {
  background: #fff8e1; color: var(--delay-color);
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.psum-badge-entity {
  background: #e8f0fe; color: #003366;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.psum-toggle { font-size: 18px; color: var(--muted); transition: transform .2s; }
.psum-toggle.open { transform: rotate(180deg); }

/* ── Corps étape (dépliable) ── */
.psum-step-body {
  display: none;
  padding: 16px 20px 4px;
}
.psum-step-body.open { display: block; }

/* ── Grille coût + délai ── */
.psum-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 14px;
}
@media (max-width: 640px) { .psum-info-grid { grid-template-columns: 1fr; } }

.psum-info-box {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border);
}
.psum-info-box-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Coût précis principal */
.psum-cost-precise {
  font-size: 22px; font-weight: 700;
  color: var(--cost-color); margin-bottom: 8px;
}
.psum-cost-precise .psum-avg-badge {
  font-size: 11px; color: var(--muted); font-weight: 400;
  background: #f0f0f0; padding: 2px 6px; border-radius: 10px;
  margin-left: 6px; vertical-align: middle;
}

/* Min / Max en ligne */
.psum-minmax-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.psum-minmax-item { display: flex; flex-direction: column; gap: 2px; }
.psum-minmax-label {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  font-weight: 600; letter-spacing: .5px;
}
.psum-minmax-val {
  font-size: 15px; font-weight: 700;
}
.psum-minmax-val.cost { color: var(--cost-color); }
.psum-minmax-val.delay { color: var(--delay-color); }

/* Délai précis principal */
.psum-dur-avg {
  font-size: 22px; font-weight: 700;
  color: var(--delay-color); margin-bottom: 8px;
}

/* Libellés textuels */
.psum-desc { font-size: 12px; color: #444; margin-top: 4px; line-height: 1.5; }
.psum-desc b { color: #003366; }

/* Entité */
.psum-entity-row {
  display: flex; align-items: center; gap: 8px;
  background: #e8f0fe; border-radius: 6px;
  padding: 8px 12px; margin-bottom: 10px;
  font-size: 12px; font-weight: 600; color: #003366;
}

/* ── Sous-étapes ── */
.psum-substep-list { margin-top: 12px; }
.psum-substep-item {
  border-left: 3px solid #e0e0e0;
  margin-left: 16px;
  margin-bottom: 10px;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
}
.psum-substep-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: #fafbfc;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
  flex-wrap: wrap;
}
.psum-substep-header:hover { background: #f0f4f8; }
.psum-substep-arrow { color: #003366; font-weight: 700; font-size: 13px; }
.psum-substep-name { flex: 1; font-weight: 600; color: var(--text); }
.psum-substep-toggle { font-size: 13px; color: var(--muted); }

.psum-substep-body {
  display: none;
  padding: 14px 16px;
  background: #fff;
}
.psum-substep-body.open { display: block; }

/* ── Simulateur DD/TVA ── */
.psum-simu-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 14px;
  overflow: hidden;
}
.psum-simu-header {
  background: linear-gradient(135deg, var(--primary), #004A7F);
  color: #fff; padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 13px; font-weight: 600;
}
.psum-simu-body { padding: 16px; }
.psum-simu-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.psum-simu-input {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 12px;
}
.psum-simu-label { font-size: 11px; font-weight: 700; color: #003366; display: block; margin-bottom: 4px; }
.psum-simu-result {
  margin-top: 12px; background: #e8f5e9;
  border-radius: 6px; padding: 12px;
  display: none;
}
.psum-simu-result-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; text-align: center;
}
.psum-simu-result-label { font-size: 10px; color: var(--muted); }
.psum-simu-result-val { font-size: 16px; font-weight: 700; color: #003366; }
.psum-simu-total { color: var(--button) !important; font-size: 20px !important; }

/* ── Actions ── */
.psum-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 24px;
  border-top: 2px solid var(--light);
}
.psum-btn {
  padding: 12px 22px; border: none; border-radius: 8px;
  font-weight: 600; font-size: 13px; cursor: pointer;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px;
  transition: all .2s; font-family: inherit;
}
.psum-btn-primary {
  background: linear-gradient(135deg, var(--button), #025c2b);
  color: #fff;
}
.psum-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(3,127,59,.25); color: #fff; }
.psum-btn-secondary { background: var(--light); color: #003366; border: 2px solid var(--border); }
.psum-btn-secondary:hover { background: var(--primary); color: #fff; border-color: #003366; }
.psum-btn-impact { background: linear-gradient(135deg, #f0b14f, #e09020); color: #172327; }

/* ── Spinner ── */
.psum-empty { text-align: center; padding: 40px; color: var(--muted); }

/* ── Print ── */
@media print {
  .psum-navbar, .psum-header-actions, .psum-actions, .psum-simu-box { display: none !important; }
  .psum-step-body, .psum-substep-body { display: block !important; }
}

/* ═══════════════════════════════════════════════════════════
   SIMULATEUR ETAPES — styles
   ═══════════════════════════════════════════════════════════ */

/* Bouton simuler */
.psimu-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border: none; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, #037f3b, #025c2b);
  color: #fff; margin-top: 8px; font-family: inherit;
  transition: all .2s;
}
.psimu-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(3,127,59,.25); }

/* Container simulateur */
.psimu-container {
  margin-top: 10px; border-radius: 8px; overflow: hidden;
}

/* Box simulateur */
.psimu-box {
  padding: 14px 16px; border-radius: 8px; font-size: 13px;
  border: 1px solid #e0e4e8;
}
.psimu-gratuit  { background: linear-gradient(135deg,#e8f5e9,#c8e6c9); border-color:#a5d6a7; display:flex; align-items:center; gap:12px; }
.psimu-douane   { background: linear-gradient(135deg,#fff3e0,#ffe0b2); border-color:#ffcc80; }
.psimu-usd      { background: linear-gradient(135deg,#e3f2fd,#bbdefb); border-color:#90caf9; }
.psimu-fourchette { background: linear-gradient(135deg,#fce4ec,#f8bbd0); border-color:#f48fb1; }
.psimu-variable { background: linear-gradient(135deg,#f3e5f5,#e1bee7); border-color:#ce93d8; }

.psimu-icon { font-size: 28px; flex-shrink: 0; }
.psimu-title { font-weight: 700; color: #003366; margin-bottom: 6px; font-size: 13px; }
.psimu-detail { font-size: 11px; color: #555; line-height: 1.5; margin-bottom: 10px; font-style: italic; }
.psimu-gratuit-label { font-weight: 700; color: #037f3b; font-size: 15px; }
.psimu-ref { font-size: 10px; color: #888; margin-top: 8px; border-top: 1px dashed #ddd; padding-top: 6px; }

/* Formulaire */
.psimu-form { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.psimu-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.psimu-field label { font-size: 11px; font-weight: 700; color: #003366; text-transform: uppercase; letter-spacing: .4px; }
.psimu-field input, .psimu-field select {
  padding: 7px 10px; border: 1px solid #dee2e6;
  border-radius: 6px; font-size: 12px; font-family: inherit;
}
.psimu-field input:focus, .psimu-field select:focus {
  outline: none; border-color: #037f3b; box-shadow: 0 0 0 2px rgba(3,127,59,.15);
}
.psimu-range-hint { font-size: 11px; color: #888; margin-bottom: 4px; }
.psimu-field input[type=range] { padding: 0; cursor: pointer; accent-color: #037f3b; }

/* Résultats */
.psimu-result {
  background: #fff; border-radius: 6px; padding: 10px 12px;
  border: 1px solid #e0e4e8; margin-top: 4px;
}
.psimu-result-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px; text-align: center;
}
.psimu-result-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.psimu-result-val { font-size: 15px; font-weight: 700; color: #003366; margin-top: 3px; }
.psimu-total { color: #E74C3C !important; font-size: 18px !important; }

/* Total étape */
.psimu-step-total {
  font-size: 12px; color: #555; margin-top: 6px;
  padding: 4px 10px; background: #f8f9fa; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Grand total simulé (dans KPI) */
#psum-simu-grand-total {
  transition: background .3s, color .3s;
  border-radius: 4px; padding: 2px 4px;
}
.psimu-kpi-note {
  display: none; font-size: 10px; color: #037f3b;
  font-weight: 600; margin-top: 4px;
}

/* Source and licensing information for the above line(s) can be found at https://pic.commerce.mg/modules/custom/step_by_step/assets/css/step-by-step-summary.css. */