/* Hoppi — Calculateur salaire medecin 2026
   Design system aligned with charte (Baloo 2 + charcoal #28536B + pink/peach mesh gradients). */

.calc-body { background: #fff; }
.calc-page { display: block; width: 100%; max-width: 100%; min-width: 0; padding-top: 88px; box-sizing: border-box; overflow-x: clip; }
@media (max-width: 768px) { .calc-page { padding-top: 72px; } }

/* ═══ HERO — clone spec de .bs-hero (navbar.css), width alignee sur container content ═══ */
.calc-hero {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1080px;
  margin: 8px auto 40px;
  padding: 56px 48px 40px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(238, 177, 213, 0.32) 0%, rgba(238, 177, 213, 0) 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(247, 227, 175, 0.24) 0%, rgba(247, 227, 175, 0) 55%),
    radial-gradient(100% 120% at 50% 120%, rgba(255, 245, 225, 0.35) 0%, rgba(255, 245, 225, 0) 60%),
    linear-gradient(180deg, #FFF5E1 0%, #FFFFFF 100%);
  border: 1px solid rgba(40, 83, 107, 0.06);
  border-radius: 32px;
  box-shadow: 0 2px 6px rgba(15, 27, 37, 0.02), 0 24px 60px rgba(15, 27, 37, 0.05);
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}
.calc-hero::before,
.calc-hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.5;
}
.calc-hero::before {
  background:
    radial-gradient(closest-side at 15% 20%, #EEB1D5 0%, transparent 60%),
    radial-gradient(closest-side at 85% 15%, #F7E3AF 0%, transparent 60%),
    radial-gradient(closest-side at 70% 90%, #FFF5E1 0%, transparent 60%);
}
.calc-hero::after {
  background:
    radial-gradient(closest-side at 40% 85%, rgba(238, 177, 213, 0.8) 0%, transparent 60%),
    radial-gradient(closest-side at 95% 55%, rgba(247, 227, 175, 0.7) 0%, transparent 60%);
  mix-blend-mode: screen;
}
.calc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.calc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #28536B;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(40, 83, 107, 0.08);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 22px;
}
.calc-hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EEB1D5;
  box-shadow: 0 0 0 3px rgba(238, 177, 213, 0.3);
}
.calc-hero-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #28536B;
  margin: 0 0 18px;
}
.calc-hero-accent {
  background: linear-gradient(135deg, #EEB1D5 0%, #F7E3AF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.calc-hero-lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: rgba(40, 83, 107, 0.75);
  max-width: 620px;
  margin: 0 auto 32px;
}
.calc-hero-lede strong { color: #28536B; font-weight: 600; }
.calc-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.calc-tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(40, 83, 107, 0.08);
  border-radius: 999px;
  color: rgba(40, 83, 107, 0.78);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 768px) {
  .calc-hero { padding: 48px 24px 28px; border-radius: 24px; margin: 0 12px 28px; }
  .calc-hero-eyebrow { font-size: 11px; padding: 5px 12px; margin-bottom: 16px; }
  .calc-hero-lede { margin-bottom: 24px; }
  .calc-hero::before, .calc-hero::after { display: none; }
  .calc-page { padding-top: 64px; }
}

/* ═══ WIZARD ═══ */
.calc-wizard {
  position: relative;
  padding: 40px 20px 80px;
  background: #fcfcfd;
}
.calc-wizard-inner {
  max-width: 820px;
  margin: 0 auto;
}

.calc-steps { display: flex; flex-direction: column; gap: 20px; }

/* ─── Trail : chips compacts pour les etapes completees ─── */
.calc-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
}
.calc-trail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 14px;
  background: #fff;
  border: 1px solid rgba(40,83,107,0.1);
  border-radius: 999px;
  color: #28536B;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 160ms, transform 160ms cubic-bezier(.22,.61,.36,1), box-shadow 160ms;
}
.calc-trail-chip:hover {
  border-color: rgba(238, 177, 213, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(40,83,107,0.06);
}
.calc-trail-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #EEB1D5;
  box-shadow: 0 0 0 3px rgba(238,177,213,0.3);
  flex-shrink: 0;
}
.calc-trail-chip-value { font-weight: 700; letter-spacing: -0.01em; }
.calc-trail-chip-edit {
  margin-left: 2px;
  opacity: 0.4;
  font-size: 11px;
  transition: opacity 160ms;
}
.calc-trail-chip:hover .calc-trail-chip-edit { opacity: 0.9; }
.calc-trail-sep { color: rgba(40,83,107,0.25); font-size: 14px; }

.calc-step {
  position: relative;
  background: #fff;
  border: 1px solid rgba(40,83,107,0.08);
  border-radius: 24px;
  padding: 36px 36px 32px;
  box-shadow: 0 2px 6px rgba(15,27,37,0.02), 0 20px 40px rgba(15,27,37,0.04);
  animation: calcStepIn 540ms cubic-bezier(.22,.61,.36,1) forwards;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  overflow: hidden;
  isolation: isolate;
}
.calc-step::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(238,177,213,0.14), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.calc-step > * { position: relative; z-index: 1; }
@keyframes calcStepIn {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .calc-step { animation: none; opacity: 1; transform: none; }
}

.calc-step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: rgba(40,83,107,0.55);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.calc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EEB1D5 0%, #F7E3AF 100%);
  color: #28536B;
  font-size: 12px;
  font-weight: 800;
}

.calc-step-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: #28536B;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.calc-step-help {
  font-size: 15px;
  color: rgba(40,83,107,0.68);
  margin: 0 0 24px;
  line-height: 1.55;
}
.calc-step-help a { color: #28536B; text-decoration: none; }
.calc-step-help a:hover { text-decoration: underline; }

/* Choice cards */
.calc-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.calc-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 22px;
  background: #fff;
  border: 1.5px solid rgba(40,83,107,0.1);
  border-radius: 18px;
  color: #28536B;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms, transform 220ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms, background 180ms;
  overflow: hidden;
}
.calc-choice::after {
  content: "\2192";
  position: absolute;
  right: 20px; top: 22px;
  font-size: 18px;
  color: rgba(40,83,107,0.25);
  transition: transform 220ms cubic-bezier(.22,.61,.36,1), color 180ms;
}
.calc-choice:hover {
  border-color: rgba(238,177,213,0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(40,83,107,0.06);
  background: linear-gradient(135deg, rgba(255, 245, 225,1) 0%, rgba(255, 245, 225,1) 100%);
}
.calc-choice:hover::after { transform: translateX(4px); color: #28536B; }
.calc-choice-label { font-size: 16px; font-weight: 700; padding-right: 24px; letter-spacing: -0.01em; }
.calc-choice-desc { font-size: 13.5px; color: rgba(40,83,107,0.62); line-height: 1.5; padding-right: 24px; }
.calc-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(238,177,213,0.18) 0%, rgba(247, 227, 175,0.2) 100%);
  border-radius: 10px;
  font-size: 18px;
  margin-bottom: 6px;
}

/* Inputs */
.calc-fields { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: end; }
.calc-fields.two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.calc-fields + .calc-fields { margin-top: 18px; }
.calc-toggles-list { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 620px) { .calc-fields.two-col { grid-template-columns: 1fr; } }

.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #28536B;
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: -0.005em;
}
.calc-field-hint { font-size: 12px; color: rgba(40,83,107,0.58); font-weight: 500; line-height: 1.35; }
.calc-field-hint a { color: #28536B; text-decoration: none; }

.calc-input,
.calc-select {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid rgba(40,83,107,0.14);
  border-radius: 12px;
  color: #28536B;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 180ms, box-shadow 180ms;
  -webkit-appearance: none;
  appearance: none;
}
.calc-input:focus,
.calc-select:focus {
  outline: none;
  border-color: #EEB1D5;
  box-shadow: 0 0 0 4px rgba(238, 177, 213, 0.12);
}
.calc-input-suffix {
  position: relative;
}
.calc-input-suffix .calc-input { padding-right: 50px; }
.calc-input-suffix-tag {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(40,83,107,0.5);
  font-weight: 600;
  font-size: 13px;
  pointer-events: none;
}

.calc-select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6" fill="none"><path d="M1 1l4 4 4-4" stroke="%2328536b" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}

.calc-slider { width: 100%; }
.calc-slider-track {
  position: relative;
  height: 8px;
  background: rgba(40,83,107,0.08);
  border-radius: 999px;
  margin: 10px 0 6px;
}
.calc-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #EEB1D5 0%, #F7E3AF 100%);
  border-radius: 999px;
  pointer-events: none;
}
.calc-slider-input {
  position: absolute;
  inset: -6px 0;
  width: 100%;
  height: 20px;
  opacity: 0;
  cursor: pointer;
}
.calc-slider-thumb {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px solid #EEB1D5;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(238, 177, 213, 0.3);
}
.calc-slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(40,83,107,0.5);
  margin-top: 6px;
}

.calc-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid rgba(40,83,107,0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, transform 220ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms;
  user-select: none;
}
.calc-toggle:hover {
  border-color: rgba(238,177,213,0.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(40,83,107,0.05);
}
.calc-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}
.calc-toggle-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(40,83,107,0.22);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 220ms cubic-bezier(.22,.61,.36,1);
}
.calc-toggle-check::after {
  content: '';
  width: 0; height: 0;
  border-right: 2px solid #28536B;
  border-bottom: 2px solid #28536B;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  margin-top: -2px;
  transition: all 220ms cubic-bezier(.22,.61,.36,1);
}
.calc-toggle:has(input:checked) {
  border-color: rgba(238,177,213,0.55);
  background: linear-gradient(135deg, rgba(238,177,213,0.12) 0%, rgba(247,227,175,0.12) 100%);
}
.calc-toggle:has(input:checked) .calc-toggle-check {
  border-color: transparent;
  background: linear-gradient(135deg, #EEB1D5 0%, #F7E3AF 100%);
}
.calc-toggle:has(input:checked) .calc-toggle-check::after {
  width: 6px; height: 10px;
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.calc-toggle-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.calc-toggle-label { font-size: 15px; font-weight: 700; color: #28536B; letter-spacing: -0.01em; }
.calc-toggle-help { font-size: 12.5px; color: rgba(40,83,107,0.6); line-height: 1.45; }
.calc-toggle-trailing { margin-left: auto; flex-shrink: 0; }

/* Recap card — pour l'etape remuneration */
.calc-recap-card {
  background: rgba(247, 227, 175, 0.18);
  border: 1px solid rgba(40, 83, 107, 0.1);
  border-radius: 16px;
  padding: 18px 22px;
}
.calc-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14.5px;
  color: rgba(40, 83, 107, 0.82);
}
.calc-recap-row + .calc-recap-row { border-top: 1px dashed rgba(40, 83, 107, 0.1); }
.calc-recap-label { font-weight: 500; }
.calc-recap-value { font-weight: 700; color: #28536B; font-variant-numeric: tabular-nums; }
.calc-recap-neg { color: #b46a8c; }
.calc-recap-total { padding-top: 10px; border-top: 1px solid rgba(40, 83, 107, 0.15) !important; }
.calc-recap-total .calc-recap-label { font-weight: 700; color: #28536B; }
.calc-recap-total .calc-recap-value { font-family: 'Baloo 2', cursive; font-size: 18px; }
.calc-recap-net { background: linear-gradient(135deg, rgba(238, 177, 213, 0.18), rgba(247, 227, 175, 0.18)); }
.calc-recap-big {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #28536B;
}
.calc-live-preview { padding: 12px 18px; background: rgba(255, 255, 255, 0.6); border: 1px dashed rgba(40, 83, 107, 0.15); border-radius: 12px; }
.calc-toggle-trailing .calc-input-suffix { width: 140px; }

/* Animation appear on toggle reveal */
@keyframes calcToggleSubExpand {
  from { opacity: 0; max-height: 0; margin-top: 0; }
  to   { opacity: 1; max-height: 120px; margin-top: 10px; }
}
.calc-toggle-sub {
  overflow: hidden;
  animation: calcToggleSubExpand 300ms cubic-bezier(.22,.61,.36,1) forwards;
}

/* Actions */
.calc-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.calc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #28536B;
  border: 1.5px solid #28536B;
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.22,.61,.36,1), background 180ms;
}
.calc-btn:hover { transform: translateY(-1px); background: #1d3e54; }
.calc-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.calc-btn-ghost {
  padding: 10px 16px;
  background: transparent;
  border: 1.5px solid rgba(40,83,107,0.15);
  border-radius: 999px;
  color: #28536B;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms, background 180ms;
}
.calc-btn-ghost:hover { border-color: rgba(238, 177, 213, 0.4); background: rgba(238, 177, 213, 0.04); }

/* ═══ RESULT ═══ */
.calc-result { margin-top: 32px; display: none; }
.calc-result[data-show="true"] { display: block; animation: calcStepIn 620ms cubic-bezier(.22,.61,.36,1) forwards; }
.calc-result-card {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(238, 177, 213, 0.22) 0%, rgba(238, 177, 213, 0) 55%),
    radial-gradient(120% 80% at 0% 100%, rgba(126, 168, 190, 0.18) 0%, rgba(126, 168, 190, 0) 55%),
    linear-gradient(135deg, #28536B 0%, #234a60 100%);
  color: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.calc-result-eyebrow {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
  margin-bottom: 8px;
}
.calc-result-big {
  position: relative;
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(42px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.calc-result-unit {
  position: relative;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  margin-bottom: 18px;
}
.calc-result-subgrid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.calc-result-sub { display: flex; flex-direction: column; gap: 2px; }
.calc-result-sub-label { font-size: 12px; color: rgba(255,255,255,0.68); font-weight: 500; }
.calc-result-sub-value { font-size: 18px; font-weight: 700; font-family: 'Baloo 2', sans-serif; }

.calc-result-breakdown {
  margin-top: 24px;
  background: #fff;
  border: 1px solid rgba(40,83,107,0.08);
  border-radius: 20px;
  padding: 24px;
}
.calc-result-breakdown h3 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 18px;
  margin: 0 0 14px;
  color: #28536B;
}
.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(40,83,107,0.1);
  font-size: 14.5px;
}
.calc-breakdown-row:last-child { border: none; font-weight: 700; padding-top: 14px; }
.calc-breakdown-label { color: rgba(40,83,107,0.75); }
.calc-breakdown-value { color: #28536B; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-breakdown-value.negative { color: #28536B; }
.calc-breakdown-value.positive { color: #28536B; }

/* ═══ IR panel (collapsed by default) ═══ */
.calc-ir-panel {
  margin-top: 20px;
  background: #fff;
  border: 1px solid rgba(40,83,107,0.1);
  border-radius: 16px;
  overflow: hidden;
  animation: calcStepIn 420ms cubic-bezier(.22,.61,.36,1) forwards;
  transition: border-color 220ms, box-shadow 220ms;
}
.calc-ir-panel[open] {
  border-color: rgba(238,177,213,0.35);
  box-shadow: 0 4px 20px rgba(40,83,107,0.05);
  background: linear-gradient(135deg, rgba(238,177,213,0.05) 0%, rgba(247,227,175,0.05) 100%);
}
.calc-ir-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  transition: background 180ms;
}
.calc-ir-summary::-webkit-details-marker { display: none; }
.calc-ir-summary:hover { background: rgba(238,177,213,0.04); }
.calc-ir-panel[open] > .calc-ir-summary { border-bottom: 1px solid rgba(40,83,107,0.08); }
.calc-ir-summary-ic {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(238,177,213,0.25) 0%, rgba(247,227,175,0.25) 100%);
  border-radius: 12px;
  font-size: 20px;
}
.calc-ir-summary-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.calc-ir-summary-title {
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  font-weight: 700;
  color: #28536B;
  letter-spacing: -0.01em;
}
.calc-ir-summary-sub {
  font-size: 12.5px;
  color: rgba(40,83,107,0.6);
}
.calc-ir-summary-arrow {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(40,83,107,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #28536B;
  transition: transform 260ms cubic-bezier(.22,.61,.36,1), background 220ms;
}
.calc-ir-panel[open] .calc-ir-summary-arrow { transform: rotate(45deg); background: rgba(238,177,213,0.25); }
.calc-ir-header { padding: 20px 22px 0; }
.calc-ir-intro { font-size: 13px; color: rgba(40,83,107,0.7); line-height: 1.5; }
.calc-ir-inputs { margin: 16px 22px 20px !important; }
.calc-ir-panel .calc-ir-grid { margin: 0 22px; }
.calc-ir-panel .calc-ir-note { margin: 14px 22px 20px; }
.calc-ir-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}
@media (max-width: 620px) { .calc-ir-grid { grid-template-columns: 1fr; } }
.calc-ir-side {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid rgba(40,83,107,0.08);
  border-radius: 14px;
}
.calc-ir-side-after {
  background: linear-gradient(135deg, #28536B 0%, #1a3d52 100%);
  border-color: transparent;
  color: #fff;
}
.calc-ir-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(40,83,107,0.55);
  margin-bottom: 4px;
}
.calc-ir-big {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  color: #28536B;
  letter-spacing: -0.01em;
}
.calc-ir-sub { font-size: 12.5px; color: rgba(40,83,107,0.6); margin-top: 4px; }
.calc-ir-tranches { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.calc-ir-tranche {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(40,83,107,0.7);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(40,83,107,0.08);
}
.calc-ir-tranche:last-child { border: none; }
.calc-ir-tranche-value { font-weight: 700; color: #28536B; font-variant-numeric: tabular-nums; }
.calc-ir-tranche-zero { color: rgba(40,83,107,0.55); font-style: italic; }
.calc-ir-after-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
  margin-bottom: 6px;
}
.calc-ir-after-value {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.calc-ir-after-sub { font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 4px; }
.calc-ir-note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(40,83,107,0.55);
  line-height: 1.5;
}

.calc-wizard-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.calc-share-feedback {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #28536B;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(40,83,107,0.2);
  transition: transform 300ms cubic-bezier(.22,.61,.36,1);
  z-index: 1000;
}
.calc-share-feedback[data-show="true"] { transform: translateX(-50%) translateY(0); }

/* Source tooltip */
.calc-source-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  background: rgba(40,83,107,0.1);
  color: rgba(40,83,107,0.6);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
}

/* ═══ INFO (FAQ + sources) ═══ */
.calc-info {
  padding: 64px 20px;
  background: linear-gradient(180deg, #fcfcfd 0%, #FFF5E1 100%);
}
.calc-info-inner { max-width: 820px; margin: 0 auto; }
.calc-info h2 {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(26px, 3.5vw, 34px);
  color: #28536B;
  margin: 0 0 10px;
}
.calc-info-lede {
  color: rgba(40,83,107,0.7);
  font-size: 15.5px;
  line-height: 1.5;
  margin: 0 0 28px;
}
/* FAQ — pattern Hoppi (flat, bottom-bordered, chevron + qui rotate) */
.calc-info-grid { display: flex; flex-direction: column; gap: 0; margin-top: 24px; }
.calc-info-item {
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(40,83,107,0.1);
  border-radius: 0;
  transition: background 220ms;
}
.calc-info-item:first-child { border-top: 1px solid rgba(40,83,107,0.1); }
.calc-info-item:hover { background: rgba(247,227,175,0.08); }
.calc-info-item[open] { background: transparent; }
.calc-info-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: #28536B;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}
.calc-info-item summary strong { font-weight: 600; }
.calc-info-item summary::-webkit-details-marker { display: none; }
.calc-info-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: #28536B;
  border-radius: 999px;
  background: rgba(40,83,107,0.05);
  transition: transform 280ms cubic-bezier(.22,.61,.36,1), background 220ms, color 220ms;
}
.calc-info-item:hover summary::after { background: rgba(238,177,213,0.2); color: #28536B; }
.calc-info-item[open] summary::after { transform: rotate(45deg); background: rgba(238,177,213,0.35); }
.calc-info-item p {
  margin: 14px 2px 0;
  color: rgba(40,83,107,0.82);
  font-size: 15px;
  line-height: 1.65;
}
.calc-info-item p a { color: #28536B; text-decoration: underline; text-decoration-color: rgba(238,177,213,0.6); text-underline-offset: 3px; font-weight: 500; }
.calc-info-item p a:hover { text-decoration-color: #EEB1D5; }
.calc-info-item p a { color: #28536B; text-decoration: none; }
.calc-info-item p a:hover { text-decoration: underline; }
.calc-info-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 640px) { .calc-info-meta { grid-template-columns: 1fr; } }
.calc-info-meta-item {
  padding: 22px 24px;
  background: rgba(255, 245, 225,0.8);
  border: 1px solid rgba(238,177,213,0.2);
  border-radius: 16px;
  backdrop-filter: blur(4px);
}
.calc-info-meta-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #28536B;
  margin-bottom: 8px;
}
.calc-info-meta-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(40,83,107,0.8);
}
.calc-info-meta-item p a { color: #28536B; text-decoration: underline; text-decoration-color: rgba(40,83,107,0.3); text-underline-offset: 3px; }
.calc-info-meta-item p a:hover { text-decoration-color: #EEB1D5; }
.calc-info-meta-item p code {
  padding: 2px 6px;
  background: rgba(40,83,107,0.06);
  border-radius: 4px;
  font-size: 12px;
  color: #28536B;
}

/* ═══ RELATED ═══ */
.calc-related {
  padding: 56px 20px 80px;
  background: #fcfcfd;
  border-top: 1px solid rgba(40,83,107,0.06);
}
.calc-related-inner { max-width: 1080px; margin: 0 auto; }
.calc-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.calc-related h2 {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  color: #28536B;
  margin: 0;
}
.calc-related-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1.5px solid rgba(40,83,107,0.15);
  border-radius: 999px;
  color: #28536B;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 200ms, background 200ms, transform 220ms cubic-bezier(.22,.61,.36,1);
}
.calc-related-cta span { transition: transform 220ms cubic-bezier(.22,.61,.36,1); }
.calc-related-cta:hover {
  border-color: rgba(238,177,213,0.5);
  background: rgba(238,177,213,0.08);
  transform: translateY(-1px);
}
.calc-related-cta:hover span { transform: translateX(3px); }

/* Base .h-study (mirroir de js/etudes-callout.js ensureStyles — needed si etudes-callout.js non charge sur cette page) */
.h-study {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(238,177,213,0.14), rgba(255,255,255,0.6));
  border: 1px solid rgba(40,83,107,0.12);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15,27,37,0.04);
  text-decoration: none;
  color: #28536B;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.h-study:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(15,27,37,0.08); border-color: rgba(40,83,107,0.22); }
.h-study-ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #EEB1D5;
  box-shadow: 0 2px 8px rgba(15,27,37,0.06);
  font-size: 22px;
}
.h-study-body { flex: 1; min-width: 0; }
.h-study-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(40,83,107,0.65);
  font-weight: 600;
  margin: 0 0 4px;
}
.h-study-title { font-size: 16px; font-weight: 600; color: #28536B; margin: 0; line-height: 1.4; }
.h-study-arrow {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: rgba(40,83,107,0.5);
  transition: transform 0.2s ease, color 0.2s ease;
}
.h-study:hover .h-study-arrow { transform: translateX(3px); color: #28536B; }
@media (max-width: 560px) {
  .h-study { padding: 18px 20px; gap: 14px; }
  .h-study-title { font-size: 15px; }
}

/* Callout études promo — avant le related grid */
.calc-etudes-promo {
  padding: 0 20px;
  max-width: 1080px;
  margin: 32px auto 56px;
}
.calc-etudes-promo .h-study {
  margin: 0 !important;
  padding: 26px 30px !important;
  background: linear-gradient(135deg, rgba(238,177,213,0.18), rgba(247,227,175,0.18)) !important;
}
.calc-etudes-promo .h-study-ic {
  background: #fff !important;
  font-size: 24px !important;
}
.calc-etudes-promo .h-study-title { font-size: 17px !important; }
.calc-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
/* Related cards — pattern .e-spe-card (etudes.css) : top bar accent + radial hover */
.calc-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid #E8ECEF;
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(.4,0,.2,1),
    box-shadow 0.3s cubic-bezier(.4,0,.2,1),
    border-color 0.25s ease;
  will-change: transform;
  --spe-accent: #EEB1D5;
}
.calc-related-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--spe-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.calc-related-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--spe-accent), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.calc-related-card > * { position: relative; z-index: 1; }
.calc-related-card:hover::before { transform: scaleX(1); }
.calc-related-card:hover::after { opacity: 0.05; }
.calc-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(40,83,107,0.1);
  border-color: var(--spe-accent);
}
.calc-related-card:nth-child(1) { --spe-accent: #28536B; }
.calc-related-card:nth-child(2) { --spe-accent: #EEB1D5; }
.calc-related-card:nth-child(3) { --spe-accent: #F7E3AF; }
.calc-related-card:nth-child(4) { --spe-accent: #7EA8BE; }
.calc-related-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(40, 83, 107, 0.55);
}
.calc-related-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #28536B;
}

/* Responsive */
@media (max-width: 640px) {
  .calc-hero { padding: 56px 18px 40px; }
  .calc-step { padding: 22px 20px; }
  .calc-step[data-done="true"] { padding: 14px 18px; }
  .calc-result-card { padding: 28px 22px; border-radius: 20px; }
  .calc-result-breakdown { padding: 18px 20px; }
}
