:root {
  --navy: #0a3d62;
  --navy-2: #213c67;
  --teal: #17c4d0;
  --teal-soft: #e7fafc;
  --orange: #f2a20c;
  --text: #263d5f;
  --muted: #72829a;
  --line: #dfe7f1;
  --soft: #f5f9fd;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(10, 61, 98, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body { overflow-x: hidden; }

.lc-sim-page {
  width: min(1500px, calc(100% - 8px));
  margin: 0 auto;
  padding: 4px 0 8px;
}

.lc-simulator-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 4px;
}

/* =========================================================================
   LAYOUT 2 COLONNES — PARAMÈTRES + MACBOOK
   ========================================================================= */
.lc-sim-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.3fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: stretch;
}

/* COLONNE GAUCHE : INPUTS */
.lc-controls {
  display: grid;
  gap: 16px;
  align-content: start;
}

.lc-input-card {
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(10, 61, 98, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.lc-input-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(10, 61, 98, 0.08);
}

.lc-field-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lc-field-head label {
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.lc-field-head output {
  min-width: 110px;
  text-align: center;
  border: 2px solid #e8f0f7;
  border-radius: 14px;
  padding: 10px 14px;
  color: #0b2b53;
  font-size: 20px;
  font-weight: 800;
  background: #fff;
}

.lc-input-card p {
  color: #7a8ca5;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 8px 0 0;
}

.lc-minmax {
  display: flex;
  justify-content: space-between;
  color: #647894;
  font-size: 13.5px;
  margin-top: 10px;
}

input[type="range"] {
  width: 100%;
  height: 12px;
  border: 0;
  outline: none;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 65%, #e9f0f6 65%, #e9f0f6 100%);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid #edf3f8;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(10, 61, 98, 0.20);
}

input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid #edf3f8;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(10, 61, 98, 0.20);
}

.lc-reading-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(180deg, var(--teal-soft), #fff);
  border-color: #cdeef2;
}

.lc-reading-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy);
  border: 1px solid #cdeef2;
}
.lc-reading-ico svg { width: 22px; height: 22px; }

.lc-reading-body strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.lc-reading-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5b6e86;
}

.lc-reading-fine {
  margin-top: 8px !important;
  font-size: 12px !important;
  color: #8090a8 !important;
}

.lc-reading-repere {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid #d7eef1;
  font-size: 13px !important;
  line-height: 1.55;
  color: #5b6e86;
}

.lc-reading-repere span {
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

/* =========================================================================
   COLONNE DROITE : MACBOOK
   ========================================================================= */
.lc-results {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.lc-macbook {
  width: 100%;
  max-width: 720px;
  position: relative;
  filter: drop-shadow(0 30px 50px rgba(10, 61, 98, 0.18));
}

.lc-macbook-screen {
  background: #1a1a1a;
  border-radius: 18px 18px 4px 4px;
  padding: 14px 12px 12px 12px;
  border: 2px solid #2a2a2a;
  border-bottom: none;
  position: relative;
}

.lc-macbook-screen::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
  box-shadow: inset 0 0 0 2px #1a1a1a;
}

.lc-macbook-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #2a2a2a;
  border-radius: 10px 10px 0 0;
  padding: 8px 14px;
  border-bottom: 1px solid #333;
}

.lc-macbook-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.lc-macbook-url {
  flex: 1;
  text-align: center;
  background: #1a1a1a;
  color: #aaa;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-left: 8px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.3px;
}

.lc-macbook-content {
  position: relative;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  padding: clamp(22px, 2.6vw, 34px);
  min-height: 420px;
}

.lc-macbook-base {
  background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 60%, #989898 100%);
  height: 16px;
  border-radius: 4px 4px 14px 14px;
  position: relative;
  margin: 0 -8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.lc-macbook-notch {
  width: 90px;
  height: 5px;
  background: #888;
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  position: relative;
  top: -1px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

/* ---- État "analyse en cours" -------------------------------------------- */
.lc-analyse {
  position: absolute;
  top: 14px;
  right: clamp(22px, 2.6vw, 34px);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.lc-macbook-content.is-analysing .lc-analyse {
  opacity: 1;
  transform: translateY(0);
}

.lc-analyse-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .01em;
}

.lc-analyse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .35;
  animation: analysePulse 1s ease-in-out infinite;
}
.lc-analyse-dot:nth-child(2) { animation-delay: .15s; }
.lc-analyse-dot:nth-child(3) { animation-delay: .30s; }

@keyframes analysePulse {
  0%, 100% { opacity: .3; transform: scale(.85); }
  50%      { opacity: 1;  transform: scale(1); }
}

/* léger voile pendant l'analyse pour calmer la lecture des chiffres */
.lc-macbook-content.is-analysing .lc-result-row strong {
  opacity: .35;
  transition: opacity .2s ease;
}

/* arrivée en fondu des résultats une fois posés */
.lc-macbook-content.results-in .lc-result-row {
  animation: resultIn .42s ease both;
}
.lc-macbook-content.results-in .lc-result-row:nth-of-type(1) { animation-delay: .04s; }
.lc-macbook-content.results-in .lc-result-row:nth-of-type(2) { animation-delay: .10s; }
.lc-macbook-content.results-in .lc-result-row:nth-of-type(3) { animation-delay: .16s; }

@keyframes resultIn {
  from { opacity: .4; transform: translateY(5px); }
  to   { opacity: 1;  transform: translateY(0); }
}

/* ---- Contenu écran ------------------------------------------------------- */
.lc-screen-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.lc-check {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  flex-shrink: 0;
}
.lc-check svg { width: 24px; height: 24px; }

.lc-screen-top h2 {
  color: #0b2b53;
  font-size: 21px;
  line-height: 1.12;
  margin: 0;
}

.lc-title-line {
  width: 100px;
  height: 3px;
  background: rgba(23, 196, 208, .65);
  border-radius: 999px;
  margin-top: 8px;
}

.lc-screen-intro {
  font-size: 13px;
  line-height: 1.55;
  color: #7a8ca5;
  margin: 0 0 14px;
}

/* ---- Bandeau "démarrage d'abord / remboursement ensuite" ---------------- */
.lc-startbanner {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 6px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--teal-soft), #fff);
  border: 1px solid #cdeef2;
}

.lc-startbanner-phase {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e3eef5;
}

.lc-phase-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.lc-phase-start .lc-phase-tag { color: var(--teal); }
.lc-phase-repay .lc-phase-tag { color: var(--navy-2); }

.lc-phase-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.lc-phase-sub {
  font-size: 11.5px;
  color: #7a8ca5;
}

.lc-startbanner-arrow {
  display: grid;
  place-items: center;
  color: var(--teal);
  flex-shrink: 0;
}
.lc-startbanner-arrow svg { width: 22px; height: 22px; }

/* apparition du bandeau quand les résultats se posent */
.lc-macbook-content.results-in .lc-startbanner {
  animation: bannerIn .5s ease both;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lc-result-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #eef2f7;
}

.lc-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
}
.lc-result-icon svg { width: 22px; height: 22px; }

.lc-result-icon-orange { background: var(--orange); }

.lc-result-row h3 {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.lc-result-text p {
  color: #8090a8;
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0;
}

.lc-result-row strong {
  color: #0b2b53;
  font-size: clamp(22px, 2.3vw, 29px);
  white-space: nowrap;
}

/* le seul accent orange sur le chiffre du coût */
.lc-result-row-cost strong { color: var(--orange); }

.lc-screen-note {
  border-top: 1px solid #eef2f7;
  color: #667891;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 8px 0 0;
  padding-top: 16px;
}

.lc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 22px;
  background: var(--teal);
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(23, 196, 208, .24);
  transition: transform .18s ease, box-shadow .18s ease;
}

.lc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(23, 196, 208, .30);
}

/* =========================================================================
   BLOC 5 — NOTE D'ACCOMPAGNEMENT
   ========================================================================= */
/* =========================================================================
   BLOC FRISE — CALENDRIER DE FINANCEMENT
   ========================================================================= */
.lc-frise {
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(20px, 2.4vw, 30px);
  background: linear-gradient(180deg, var(--soft), #fff);
  border: 1px solid #e8f0f7;
  border-radius: 22px;
}

.lc-frise-title {
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 20px;
}

.lc-frise-track {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.lc-frise-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lc-frise-step-wide { flex: 1.4; }

.lc-frise-visual {
  background: #fff;
  border: 1px solid #e3eef5;
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 12px;
}
.lc-frise-visual svg { width: 100%; height: auto; display: block; }

.lc-frise-cap { padding: 0 4px; }

.lc-frise-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin-bottom: 5px;
}
.lc-tag-accent { color: var(--teal); }

.lc-frise-cap p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7d94;
  margin: 0;
}
.lc-frise-cap p span { font-weight: 800; color: var(--navy); white-space: nowrap; }

.lc-frise-link {
  align-self: center;
  flex: 0 0 18px;
  height: 2px;
  margin-top: -34px;
  background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px);
}

/* échéances dynamiques */
.lc-frise-echeances {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
  border: 1px solid #e3eef5;
  border-radius: 14px;
  padding: 12px 10px;
  margin-bottom: 12px;
  min-height: 64px;
  align-content: center;
}
.lc-ech {
  flex: 1 1 auto;
  min-width: 38px;
  text-align: center;
  background: var(--soft);
  border: 1px solid #e3eef5;
  border-radius: 8px;
  padding: 6px 4px;
}
.lc-ech-m { display: block; font-size: 9.5px; font-weight: 700; color: var(--muted); }
.lc-ech-v { display: block; font-size: 11.5px; font-weight: 800; color: var(--navy); }

.lc-frise-note {
  font-size: 12px;
  line-height: 1.5;
  color: #8090a8;
  margin: 16px 0 0;
}

/* ---- Animations de la frise (jouées une fois, au scroll) ---------------- */
/* état repos par défaut ; .is-playing déclenche */
.lc-truck   { transform: translateX(-40px); opacity: 0; }
.lc-drop    { opacity: 0; }
.lc-box     { opacity: 1; }
.lc-coin    { opacity: 0; }
.lc-growth  { stroke-dasharray: 140; stroke-dashoffset: 140; }

.lc-frise.is-playing .lc-truck {
  animation: truckIn .8s ease forwards;
}
.lc-frise.is-playing .lc-drop {
  animation: dropIn .5s ease .7s forwards;
}
.lc-frise.is-playing .lc-box-4 { animation: boxOut .4s ease 1.0s forwards; }
.lc-frise.is-playing .lc-box-3 { animation: boxOut .4s ease 1.25s forwards; }
.lc-frise.is-playing .lc-coin-1 { animation: coinUp .5s ease 1.1s forwards; }
.lc-frise.is-playing .lc-coin-2 { animation: coinUp .5s ease 1.35s forwards; }
.lc-frise.is-playing .lc-growth { animation: drawGrowth 1s ease 1.2s forwards; }
.lc-frise.is-playing .lc-done-check { animation: checkPop .4s ease 2s forwards; }

/* cascade des échéances : classe ajoutée par JS au redraw */
.lc-ech { opacity: 0; transform: translateY(6px); }
.lc-frise.is-playing .lc-ech { animation: echIn .35s ease forwards; }

@keyframes truckIn  { to { transform: translateX(0); opacity: 1; } }
@keyframes dropIn   { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes boxOut   { to { opacity: 0; transform: translateY(-8px); } }
@keyframes coinUp   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawGrowth { to { stroke-dashoffset: 0; } }
@keyframes checkPop { to { r: 7; } }
@keyframes echIn    { to { opacity: 1; transform: translateY(0); } }

.lc-bottom-note {
  margin-top: clamp(24px, 3vw, 34px);
  background: #f8fbff;
  border: 1px solid #e1e9f2;
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  padding: 18px 22px;
  color: #51657d;
  font-size: 14px;
  line-height: 1.65;
}

.lc-bottom-note strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1050px) {
  .lc-sim-layout { grid-template-columns: 1fr; }
  .lc-macbook { max-width: 600px; margin: 0 auto; }
  /* frise : passe en vertical */
  .lc-frise-track { flex-direction: column; gap: 0; }
  .lc-frise-step, .lc-frise-step-wide { flex: none; }
  .lc-frise-link {
    width: 2px; height: 18px; margin: 4px 0 4px 22px; align-self: flex-start;
    background: repeating-linear-gradient(180deg, var(--line) 0 5px, transparent 5px 9px);
  }
  .lc-frise-visual { max-width: 240px; }
  .lc-frise-cap { margin-bottom: 8px; }
}

@media (max-width: 680px) {
  .lc-sim-page {
    width: min(100% - 16px, 1500px);
    padding: 12px 0 20px;
  }
  .lc-simulator-card { border-radius: 0; padding: 4px; }
  .lc-input-card { padding: 16px; border-radius: 16px; }
  .lc-field-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .lc-field-head output { width: 100%; }
  .lc-macbook-url { font-size: 9.5px; }
  .lc-macbook-content { padding: 16px; min-height: auto; }
  .lc-analyse { right: 16px; }
  .lc-result-row { grid-template-columns: 40px 1fr; }
  .lc-result-row strong { grid-column: 2; margin-top: -2px; }
  .lc-startbanner { flex-direction: column; gap: 8px; }
  .lc-startbanner-arrow { transform: rotate(90deg); }
}

/* =========================================================================
   ACCESSIBILITÉ — mouvement réduit
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .lc-analyse-dot { animation: none; }
  .lc-macbook-content.results-in .lc-result-row { animation: none; }
  .lc-macbook-content.results-in .lc-startbanner { animation: none; }
  .lc-truck, .lc-drop, .lc-coin, .lc-ech { opacity: 1 !important; transform: none !important; animation: none !important; }
  .lc-box { opacity: 1 !important; }
  .lc-growth { stroke-dashoffset: 0 !important; animation: none !important; }
  .lc-done-check { r: 7 !important; animation: none !important; }
  .lc-input-card { transition: none; }
  .lc-cta { transition: none; }
}
