.mp-calc{--mpc-ink:#141d26;--mpc-green:#2f5e50;--mpc-green-2:#244b40;--mpc-paper:#f5f7f8;--mpc-white:#fff;--mpc-line:rgba(20,29,38,.12);--mpc-muted:#64717e;max-width:980px;margin:2rem auto 3rem;color:var(--mpc-ink);font-family:inherit}.mp-calc *{box-sizing:border-box}.mp-calc__topline{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.mp-calc__eyebrow{color:var(--mpc-green);font-size:.75rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.mp-calc__status{color:var(--mpc-muted);font-size:.78rem}.mp-calc__grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);border:1px solid var(--mpc-line);border-radius:18px;overflow:hidden;background:var(--mpc-white);box-shadow:0 16px 45px rgba(20,29,38,.08)}.mp-calc__panel{padding:clamp(1.4rem,3vw,2.2rem)}.mp-calc__panel--inputs{background:linear-gradient(145deg,#f5f8f7,#eef3f1);border-right:1px solid var(--mpc-line)}.mp-calc__panel--results{display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 88% 15%,rgba(47,94,80,.18),transparent 12rem),var(--mpc-ink);color:#fff}.mp-calc__section-title{margin:0 0 .35rem;font-size:1.25rem}.mp-calc__section-copy{margin:0 0 1.5rem;color:var(--mpc-muted);font-size:.92rem}.mp-calc__fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.mp-calc__field{display:block}.mp-calc__label{display:block;margin:0 0 .45rem;font-size:.82rem;font-weight:750}.mp-calc__label small{font-size:.78rem;font-weight:600;color:var(--mpc-muted)}.mp-calc__input-wrap{display:flex;align-items:center;min-height:54px;border:1px solid rgba(20,29,38,.16);border-radius:10px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.mp-calc__input-wrap:focus-within{border-color:var(--mpc-green);box-shadow:0 0 0 3px rgba(47,94,80,.12)}.mp-calc__input{width:100%;min-width:0;padding:.8rem .9rem;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:var(--mpc-ink)!important;font:700 1.15rem/1.2 inherit}.mp-calc__input-wrap--suffix .mp-calc__input{padding-right:.35rem}.mp-calc__suffix{padding-right:.9rem;color:var(--mpc-muted);font-weight:700}.mp-calc__error{min-height:1.15rem;margin:.7rem 0 0;color:#a33b3b;font-size:.78rem}.mp-calc__result-main{padding-bottom:1.5rem;border-bottom:1px solid rgba(255,255,255,.14)}.mp-calc__result-label{display:block;margin-bottom:.35rem;color:#b9c5ca;font-size:.76rem;font-weight:750;letter-spacing:.07em;text-transform:uppercase}.mp-calc__result-value{display:block;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.7rem,6vw,4.7rem);font-weight:600;line-height:1;color:#fff;letter-spacing:-.04em}.mp-calc__result-note{display:block;margin-top:.35rem;color:#b9c5ca;font-size:.9rem}.mp-calc__result-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding-top:1.4rem}.mp-calc__result-small strong{display:block;color:#fff;font-size:1.15rem}.mp-calc__details{margin-top:1rem;border:1px solid var(--mpc-line);border-radius:14px;background:#fff;overflow:hidden}.mp-calc__details summary{cursor:pointer;padding:1rem 1.2rem;font-weight:750;list-style-position:inside}.mp-calc__details[open] summary{border-bottom:1px solid var(--mpc-line)}.mp-calc__table-wrap{overflow-x:auto}.mp-calc__table{width:100%;border-collapse:collapse;margin:0!important;font-size:.88rem}.mp-calc__table th,.mp-calc__table td{padding:.8rem 1rem;border-bottom:1px solid var(--mpc-line);text-align:right;white-space:nowrap}.mp-calc__table th:first-child,.mp-calc__table td:first-child{text-align:left}.mp-calc__table thead th{background:#f6f8f8;color:var(--mpc-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}.mp-calc__table tbody tr:last-child th,.mp-calc__table tbody tr:last-child td{border-bottom:0}.mp-calc__notice{margin-top:1rem;padding:1rem 1.15rem;border-left:3px solid var(--mpc-green);border-radius:0 10px 10px 0;background:#f2f5f4;color:#58636d;font-size:.86rem;line-height:1.55}.mp-calc__notice strong{color:var(--mpc-ink)}@media(max-width:760px){.mp-calc__grid{grid-template-columns:1fr}.mp-calc__panel--inputs{border-right:0;border-bottom:1px solid var(--mpc-line)}.mp-calc__fields{grid-template-columns:1fr}.mp-calc__topline{align-items:flex-start;flex-direction:column;gap:.25rem}}@media(max-width:480px){.mp-calc{margin-top:1.25rem}.mp-calc__panel{padding:1.2rem}.mp-calc__result-row{grid-template-columns:1fr}.mp-calc__result-small+.mp-calc__result-small{padding-top:1rem;border-top:1px solid rgba(255,255,255,.12)}}

/* v0.1.1 — introduction et infobulles issues du classeur Excel */
.mp-calc__intro{margin:0 0 1.25rem}.mp-calc__intro-headingline{display:flex;align-items:center;gap:.55rem}.mp-calc__intro-title{margin:0;color:var(--mpc-ink);font-size:clamp(1.25rem,2.4vw,1.65rem);line-height:1.25}.mp-calc__intro-copy{max-width:850px;margin:.55rem 0 0;color:var(--mpc-muted);font-size:.96rem;line-height:1.65}.mp-calc__intro-copy strong{color:var(--mpc-ink);font-weight:700}.mp-calc__topline{justify-content:flex-end}.mp-calc__help{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:19px;height:19px;border:1px solid rgba(47,94,80,.35);border-radius:50%;color:var(--mpc-green);font:800 11px/1 inherit;cursor:help;outline:0}.mp-calc__help::after{content:attr(data-tooltip);position:absolute;z-index:30;left:50%;bottom:calc(100% + 10px);width:min(310px,75vw);padding:.7rem .8rem;border-radius:8px;background:#101923;color:#fff;font:500 .78rem/1.45 inherit;letter-spacing:0;text-transform:none;text-align:left;box-shadow:0 10px 28px rgba(0,0,0,.2);opacity:0;visibility:hidden;transform:translate(-50%,5px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;pointer-events:none}.mp-calc__help::before{content:"";position:absolute;z-index:31;left:50%;bottom:calc(100% + 5px);width:8px;height:8px;background:#101923;opacity:0;visibility:hidden;transform:translateX(-50%) rotate(45deg);transition:opacity .14s ease,visibility .14s ease}.mp-calc__help:hover::after,.mp-calc__help:focus::after,.mp-calc__help:hover::before,.mp-calc__help:focus::before{opacity:1;visibility:visible}.mp-calc__help:hover::after,.mp-calc__help:focus::after{transform:translate(-50%,0)}.mp-calc__help--dark{width:17px;height:17px;border-color:rgba(255,255,255,.35);color:#d8e0e4;font-size:10px}.mp-calc__result-label--with-help{display:flex;align-items:center;gap:.42rem}.mp-calc__result-label--with-help .mp-calc__help{letter-spacing:0;text-transform:none}.mp-calc__notice strong{margin-right:.15rem}@media(max-width:480px){.mp-calc__help::after{left:auto;right:-12px;transform:translateY(5px)}.mp-calc__help:hover::after,.mp-calc__help:focus::after{transform:translateY(0)}.mp-calc__help::before{left:auto;right:4px;transform:rotate(45deg)}}

/* v0.1.2 — bankroll ajustable */
@media(max-width:900px) and (min-width:761px){.mp-calc__fields{grid-template-columns:1fr 1fr}.mp-calc__field:last-child{grid-column:1/-1;max-width:50%}}

.mp-calc__unit-lines{display:grid;gap:.18rem}.mp-calc__unit-lines strong{font-size:.98rem}.mp-calc__unit-lines strong+strong{color:#d2dade;font-weight:650}


/* v0.1.3 — alignement des champs et infobulles */
@media(min-width:761px){
  .mp-calc__field{display:flex;flex-direction:column}
  .mp-calc__label{display:flex;align-items:flex-end;min-height:2.5rem}
  .mp-calc__input-wrap{margin-top:auto}
}

/* Les infobulles du panneau sombre s'ouvrent vers le bas pour rester lisibles
   malgré le débordement masqué du cadre principal. */
.mp-calc__help--dark::after{
  top:calc(100% + 10px);
  bottom:auto;
  left:0;
  transform:translateY(-5px);
}
.mp-calc__help--dark::before{
  top:calc(100% + 5px);
  bottom:auto;
  left:5px;
  transform:rotate(45deg);
}
.mp-calc__help--dark:hover::after,
.mp-calc__help--dark:focus::after{transform:translateY(0)}

@media(max-width:480px){
  .mp-calc__help--dark::after{left:auto;right:-12px;top:calc(100% + 10px);bottom:auto}
  .mp-calc__help--dark::before{left:auto;right:4px;top:calc(100% + 5px);bottom:auto}
}


/* v0.2.0 — calculateur variance et écart-type */
.mp-calc__fields--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.mp-calc__field-note{display:block;margin-top:.42rem;color:var(--mpc-muted);font-size:.75rem;line-height:1.35}
@media(max-width:760px){.mp-calc__fields--two{grid-template-columns:1fr}}


/* v0.2.1 — mise habituelle et lecture dynamique de la variance */
.mp-calc__fields--variance{grid-template-columns:repeat(3,minmax(0,1fr))}
.mp-calc__field-note--empty{visibility:hidden}
.mp-calc__reading{margin-top:1rem;padding:1.05rem 1.15rem;border:1px solid rgba(47,94,80,.18);border-radius:12px;background:#f6f9f8;color:#526071;font-size:.9rem;line-height:1.65}
.mp-calc__reading strong{color:var(--mpc-ink);margin-right:.2rem}
@media(min-width:761px){
  .mp-calc--variance .mp-calc__field{display:flex;flex-direction:column}
  .mp-calc--variance .mp-calc__label{display:flex;align-items:flex-end;min-height:2.65rem}
  .mp-calc--variance .mp-calc__input-wrap{margin-top:0}
  .mp-calc--variance .mp-calc__field-note{min-height:1.15rem}
}
@media(max-width:900px) and (min-width:761px){
  .mp-calc__fields--variance{grid-template-columns:1fr 1fr}
  .mp-calc__fields--variance .mp-calc__field:last-child{grid-column:1/-1;max-width:50%}
}
@media(max-width:760px){.mp-calc__fields--variance{grid-template-columns:1fr}}


/* v0.3.0 — nombre de paris nécessaire pour juger un edge */
.mp-calc__fields--edge{grid-template-columns:repeat(3,minmax(0,1fr))}
.mp-calc__table-note{padding:.78rem 1.2rem;border-bottom:1px solid var(--mpc-line);background:#fbfcfc;color:var(--mpc-muted);font-size:.8rem;line-height:1.45}
@media(min-width:761px){
  .mp-calc--edge .mp-calc__field{display:flex;flex-direction:column}
  .mp-calc--edge .mp-calc__label{display:flex;align-items:flex-end;min-height:2.5rem}
  .mp-calc--edge .mp-calc__input-wrap{margin-top:auto}
}
@media(max-width:900px) and (min-width:761px){
  .mp-calc__fields--edge{grid-template-columns:1fr 1fr}
  .mp-calc__fields--edge .mp-calc__field:last-child{grid-column:1/-1;max-width:50%}
}
@media(max-width:760px){.mp-calc__fields--edge{grid-template-columns:1fr}}


/* v0.3.1 — clarification du niveau de confiance */
.mp-calc__confidence-note{
  margin:.7rem 0 0;
  padding:.72rem .82rem;
  border-radius:9px;
  background:rgba(47,94,80,.07);
  color:var(--mpc-muted);
  font-size:.79rem;
  line-height:1.5;
}


/* v0.3.2 — note méthodologique du calculateur d'edge */
.mp-calc__method{
  margin:1rem 0;
  padding:1rem 1.05rem;
  border:1px solid var(--mpc-line);
  border-radius:12px;
  background:#fff;
  color:var(--mpc-muted);
  font-size:.86rem;
  line-height:1.6;
}
.mp-calc__method strong{
  display:block;
  margin-bottom:.45rem;
  color:var(--mpc-ink);
  font-size:.9rem;
}
.mp-calc__method p{
  margin:0;
}
.mp-calc__method p + p{
  margin-top:.55rem;
}


/* v0.4.0 — série de pertes vs hasard */
.mp-calc__fields--streak{grid-template-columns:repeat(3,minmax(0,1fr))}
.mp-calc__scope-note{
  margin-top:1rem;
  padding:.9rem 1rem;
  border-radius:10px;
  background:#f5f7f8;
  color:var(--mpc-muted);
  font-size:.83rem;
  line-height:1.55;
}
.mp-calc__scope-note strong{color:var(--mpc-ink);margin-right:.15rem}
@media(min-width:761px){
  .mp-calc--streak .mp-calc__field{display:flex;flex-direction:column}
  .mp-calc--streak .mp-calc__label{display:flex;align-items:flex-end;min-height:3.35rem}
  .mp-calc--streak .mp-calc__input-wrap{margin-top:0}
  .mp-calc--streak .mp-calc__field-note{min-height:2.1rem}
}
@media(max-width:900px) and (min-width:761px){
  .mp-calc__fields--streak{grid-template-columns:1fr 1fr}
  .mp-calc__fields--streak .mp-calc__field:last-child{grid-column:1/-1;max-width:50%}
}
@media(max-width:760px){.mp-calc__fields--streak{grid-template-columns:1fr}}


/* v0.4.1 — clarification du tableau Série vs hasard */
.mp-calc__table-explainer{
  padding:.9rem 1rem 1rem;
  border-top:1px solid var(--mpc-line);
  background:#fafbfb;
  color:var(--mpc-muted);
  font-size:.8rem;
  line-height:1.55;
}
.mp-calc__table-explainer strong{
  display:block;
  margin-bottom:.3rem;
  color:var(--mpc-ink);
}
.mp-calc__table-explainer p{margin:0}


/* v0.5.0 — probabilité de toucher au moins un gagnant */
@media(min-width:761px){
  .mp-calc--hit .mp-calc__label{
    display:flex;
    align-items:flex-end;
    min-height:2.65rem;
  }
}


/* v0.5.1 — balise et usage promotions bookmakers */
.mp-calc__badge-row{
  display:flex;
  align-items:center;
  margin:0 0 .8rem;
}
.mp-calc__badge{
  display:inline-flex;
  align-items:center;
  min-height:1.65rem;
  padding:.28rem .62rem;
  border-radius:999px;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.075em;
  line-height:1;
  text-transform:uppercase;
}
.mp-calc__badge--promo{
  border:1px solid rgba(47,94,80,.28);
  background:rgba(47,94,80,.10);
  color:#2f5e50;
}
.mp-calc__promo-use{
  margin:.65rem 0 0;
  padding:.72rem .85rem;
  border-left:3px solid #2f5e50;
  border-radius:0 8px 8px 0;
  background:rgba(47,94,80,.065);
  color:var(--mpc-muted);
  font-size:.84rem;
  line-height:1.55;
}
.mp-calc__promo-use strong{
  color:var(--mpc-ink);
}


/* v0.6.0 — risque de ruine */
@media(min-width:761px){
  .mp-calc--ruin .mp-calc__label{
    display:flex;
    align-items:flex-end;
    min-height:2.65rem;
  }
}


/* v0.7.0 — série de pertes au moins une fois */
.mp-calc__fields--run{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media(min-width:761px){
  .mp-calc--run .mp-calc__label{
    display:flex;
    align-items:flex-end;
    min-height:2.8rem;
  }
  .mp-calc--run .mp-calc__field-note{
    min-height:1.35rem;
  }
}
@media(max-width:760px){
  .mp-calc__fields--run{
    grid-template-columns:1fr;
  }
}


/* v0.8.0 — simulateur de trajectoire */
.mp-calc__simulate-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:1rem;
  padding:.72rem 1rem;
  border:0;
  border-radius:9px;
  background:var(--mpc-ink);
  color:#fff;
  font:inherit;
  font-size:.86rem;
  font-weight:800;
  cursor:pointer;
  transition:transform .15s ease, opacity .15s ease;
}
.mp-calc__simulate-button:hover,
.mp-calc__simulate-button:focus{
  transform:translateY(-1px);
  opacity:.92;
}
.mp-calc__result-row--sim{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.mp-calc__sim-chart-card{
  margin-top:1rem;
  padding:1rem 1rem .8rem;
  border:1px solid var(--mpc-line);
  border-radius:12px;
  background:#fff;
}
.mp-calc__sim-chart-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.75rem;
}
.mp-calc__sim-chart-head strong{
  color:var(--mpc-ink);
  font-size:.95rem;
}
.mp-calc__sim-chart-head span{
  color:var(--mpc-muted);
  font-size:.78rem;
}
.mp-calc__sim-chart{
  width:100%;
  min-height:260px;
}
.mp-calc__sim-chart svg{
  display:block;
  width:100%;
  height:auto;
}
.mp-calc__sim-gridline{
  stroke:#dfe5e8;
  stroke-width:1;
}
.mp-calc__sim-zero{
  stroke:#9aa8b2;
  stroke-width:1.3;
  stroke-dasharray:5 5;
}
.mp-calc__sim-line{
  fill:none;
  stroke:#2f5e50;
  stroke-width:3;
  stroke-linejoin:round;
  stroke-linecap:round;
}
.mp-calc__sim-area{
  fill:rgba(47,94,80,.08);
}
.mp-calc__sim-axis-text{
  fill:#71808d;
  font-size:12px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.mp-calc__table--sim td:nth-child(2){
  font-weight:700;
}
@media(max-width:760px){
  .mp-calc__sim-chart-head{
    align-items:flex-start;
    flex-direction:column;
    gap:.2rem;
  }
  .mp-calc__result-row--sim{
    grid-template-columns:1fr;
  }
  .mp-calc__sim-chart{
    min-height:210px;
  }
}


/* v0.8.1 — simulateur variable de 10 à 10 000 paris */
.mp-calc__fields--sim{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.mp-calc__field--sim-count{
  grid-column:1 / -1;
  max-width:calc(50% - .5rem);
}
@media(min-width:761px){
  .mp-calc--sim .mp-calc__label{
    display:flex;
    align-items:flex-end;
    min-height:2.65rem;
  }
}
@media(max-width:760px){
  .mp-calc__fields--sim{
    grid-template-columns:1fr;
  }
  .mp-calc__field--sim-count{
    grid-column:auto;
    max-width:none;
  }
}


/* v0.8.2 — ajustements de lecture et infobulle demandés */
.mp-calc--variance [data-variance-reading]{
  white-space:pre-line;
}
.mp-calc--edge .mp-calc__help--field{
  margin-left:.35rem;
}
.mp-calc--edge .mp-calc__help--field::after{
  top:calc(100% + 10px);
  bottom:auto;
  left:auto;
  right:-12px;
  transform:translateY(-5px);
}
.mp-calc--edge .mp-calc__help--field::before{
  top:calc(100% + 5px);
  bottom:auto;
  left:auto;
  right:4px;
  transform:rotate(45deg);
}
.mp-calc--edge .mp-calc__help--field:hover::after,
.mp-calc--edge .mp-calc__help--field:focus::after{
  transform:translateY(0);
}


/* v0.8.3 — infobulle « Niveau de confiance visé » non rognée */
.mp-calc--edge .mp-calc__grid{
  overflow:visible;
}
.mp-calc--edge .mp-calc__panel--inputs{
  border-radius:18px 0 0 18px;
}
.mp-calc--edge .mp-calc__panel--results{
  border-radius:0 18px 18px 0;
}
.mp-calc--edge .mp-calc__help--field{
  z-index:50;
}
@media(max-width:760px){
  .mp-calc--edge .mp-calc__panel--inputs{
    border-radius:18px 18px 0 0;
  }
  .mp-calc--edge .mp-calc__panel--results{
    border-radius:0 0 18px 18px;
  }
}
