/* Open Agency — calculateur de manque à gagner (v35, 17 novembre 2026).
   Se charge après style.css, seulement sur les pages du calculateur. Toutes les classes commencent par « mg- ». */

/* ---------- Mise en page ---------- */
.mg-sec { position: relative; z-index: 2; padding-block: 0 clamp(64px, 9vw, 112px); margin-top: calc(-1 * clamp(52px, 6vw, 80px)); }
.mg { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .82fr); gap: 20px; align-items: start; }
.mg__main { min-width: 0; display: grid; gap: 20px; }
.mg.is-done { grid-template-columns: minmax(0, 1fr); }
.mg.is-done .mg-live { display: none; }
@media (max-width: 980px) { .mg { grid-template-columns: minmax(0, 1fr); } }
.mg-hero .lead { max-width: 46rem; }

/* ---------- La carte du questionnaire ---------- */
.mg-card {
  display: grid; gap: 24px; padding: clamp(20px, 3.4vw, 40px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.mg-top { display: grid; gap: 12px; }
.mg-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: 500 .76rem/1.3 var(--mono); letter-spacing: .01em; color: var(--ink-soft); }
.mg-count [data-count] { color: var(--violet-deep); font-weight: 600; }
.mg-count__reste { margin-left: auto; }
.mg-segs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.mg-segs i { position: relative; height: 8px; border-radius: 999px; background: var(--violet-tint); overflow: hidden; }
.mg-segs i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: inherit; background: var(--violet); transition: width .45s var(--ease); }
.mg-segs i.is-done::after { width: 100%; }
.mg-segs i.is-cur::after { width: 45%; }
.mg-back { margin: 0; padding: 10px 16px; border-radius: 12px; background: var(--violet-tint); color: var(--violet-deep); font-size: .92rem; font-weight: 600; }

.mg-step { display: grid; gap: 14px; min-width: 0; animation: mg-entree .38s var(--ease) both; }
.mg-step:focus { outline: none; }
.mg-step[hidden] { display: none; }
@keyframes mg-entree { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.mg-q { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.12; font-stretch: 108%; font-weight: 760; letter-spacing: -.022em; text-wrap: balance; }
.mg-help { color: var(--ink-soft); max-width: 42rem; }
.mg-hint { min-height: 1.4em; margin: 0; font-size: .95rem; font-weight: 600; color: var(--violet-deep); }
.mg-hint--jour { color: var(--ink); }

/* Boutons de réponse rapide */
.mg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-chip {
  min-height: 48px; min-width: 56px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: 650 1rem/1.1 var(--sans); font-variant-numeric: tabular-nums;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease);
}
.mg-chip:hover { border-color: #CFA6E6; background: var(--violet-tint); }
.mg-chip:active { transform: scale(.97); }
.mg-chip[aria-pressed="true"] { border-color: var(--violet); background: var(--violet); color: #fff; }
.mg-chip:focus-visible, .mg-stepper__b:focus-visible, .mg-cal__d:focus-visible, .mg-sig__t:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.mg-chips--grand .mg-chip { min-height: 56px; padding-inline: 22px; font-size: 1.05rem; }

/* 1. Le calendrier des journées vides */
.mg-vides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; align-items: center; }
@media (max-width: 640px) { .mg-vides { grid-template-columns: minmax(0, 1fr); } }
.mg-vides__side { display: grid; gap: 14px; justify-items: start; }
.mg-cal, .mg-pcal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mg-cal__h { text-align: center; font: 500 .72rem/1 var(--mono); color: var(--ink-soft); padding-bottom: 2px; }
.mg-cal__d {
  position: relative; aspect-ratio: 1.25; min-height: 40px; border-radius: 9px; cursor: pointer; border: 1.5px solid transparent;
  background: var(--violet); color: rgba(255, 255, 255, .78); padding: 0;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.mg-cal__d:hover { transform: translateY(-1px); }
.mg-cal__n { position: absolute; top: 5px; left: 7px; font: 500 .66rem/1 var(--mono); }
.mg-cal__d.is-vide { background: #FFF8DB; border: 1.5px dashed #D9A900; color: #8A6A00; }
.mg-vides__cal { display: grid; gap: 10px; }
.mg-legende { display: flex; gap: 18px; margin: 0; font: 500 .74rem/1 var(--mono); color: var(--ink-soft); }
.mg-legende span { display: inline-flex; align-items: center; gap: 7px; }
.mg-legende i { width: 14px; height: 14px; border-radius: 4px; background: var(--violet); }
.mg-legende i.v { background: #FFF8DB; border: 1.5px dashed #D9A900; }
.mg-stepper { display: flex; align-items: center; gap: 14px; }
.mg-stepper__b {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--white); color: var(--violet-deep);
}
.mg-stepper__b:hover { border-color: var(--violet); background: var(--violet-tint); }
.mg-stepper__b svg { width: 22px; height: 22px; }
.mg-stepper__v { display: grid; justify-items: center; min-width: 120px; margin: 0; line-height: 1.1; }
.mg-stepper__v output { font: 780 2.8rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.mg-stepper__v span { font-size: .85rem; color: var(--ink-soft); text-align: center; }

/* 2. Le montant d'un chantier */
.mg-big { position: relative; display: block; max-width: 420px; }
.mg-big input {
  width: 100%; height: 72px; padding: 0 92px 0 22px; border-radius: 16px; border: 2px solid var(--line); background: var(--paper);
  font: 760 2rem/1 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.mg-big input::placeholder { color: #B9AFC2; font-weight: 600; }
.mg-big input:focus { outline: none; border-color: var(--violet); background: var(--white); box-shadow: 0 0 0 4px var(--violet-tint); }
.mg-big__u { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 600 1rem/1 var(--mono); color: var(--ink-soft); pointer-events: none; }
.mg-safe {
  display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 0; padding: 14px 16px; border-radius: 14px;
  background: var(--ok-tint); color: #1F4D33; font-size: .93rem; line-height: 1.45; max-width: 42rem;
}
.mg-safe svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--ok); }
.mg-safe b { color: #123A24; }

/* 3. La durée */
.mg-autre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .95rem; color: var(--ink-soft); }
.mg-autre input { width: 92px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: 650 1.05rem/1 var(--sans); color: var(--ink); text-align: center; }
.mg-autre input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint); }

/* 4. Les devis signés */
.mg-sig { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .mg-sig { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mg-sig__t {
  display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-soft);
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.mg-sig__t svg { width: 30px; height: 30px; fill: #fff; stroke: #C4B8CF; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.mg-sig__t .pli { fill: none; }
.mg-sig__t .ok { fill: none; stroke: transparent; stroke-width: 2.2; }
.mg-sig__t b { font: 700 .95rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.mg-sig__t:hover { border-color: #CFA6E6; }
.mg-sig__t.is-on { border-color: var(--violet); background: var(--violet-tint); color: var(--violet-deep); }
.mg-sig__t.is-on svg { fill: var(--violet); stroke: var(--violet); }
.mg-sig__t.is-on .pli { stroke: rgba(255, 255, 255, .7); }
.mg-sig__t.is-on .ok { stroke: #fff; }
.mg-sig__non { justify-self: start; }

/* 5. Le type de chantier */
.mg-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .mg-picks { grid-template-columns: minmax(0, 1fr); } }
.mg-pick { position: relative; cursor: pointer; }
.mg-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mg-pick span {
  display: flex; align-items: center; gap: 12px; min-height: 58px; height: 100%; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; line-height: 1.25;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.mg-pick span::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #CBBFD5; background: #fff center / 14px no-repeat;
}
.mg-pick:hover span { border-color: #CFA6E6; }
.mg-pick input:checked + span { border-color: var(--violet); background: var(--violet-tint); }
.mg-pick input:checked + span::before {
  border-color: var(--violet); background-color: var(--violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.mg-pick input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.mg-precision { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; max-width: 520px; }
.mg-precision[hidden] { display: none; }
.mg-precision em { font-style: normal; font-weight: 400; color: var(--ink-soft); }

/* 6. Les coordonnées */
.mg-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 560px) { .mg-contact { grid-template-columns: minmax(0, 1fr); } }
.mg-f { display: grid; gap: 6px; align-content: start; font-weight: 600; font-size: .95rem; }
.mg-f em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.mg-f input, .mg-precision input {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  font: 500 1.05rem/1.3 var(--sans); color: var(--ink);
}
.mg-f input:focus, .mg-precision input:focus { outline: none; border-color: var(--violet); background: var(--white); box-shadow: 0 0 0 3px var(--violet-tint); }
.mg-conseil { font-weight: 500; font-size: .88rem; color: var(--ink-soft); }
.mg-lien { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 650; color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px; }
.mg-lien[aria-pressed="true"] { color: var(--ink); }
.mg-bot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mg-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mg-badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: var(--ok-tint); color: #1F4D33; font-size: .86rem; font-weight: 600;
}
.mg-badges svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.mg-notice { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); max-width: 44rem; }
.mg-notice a { color: var(--violet-deep); font-weight: 600; }

.mg-err { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--bad-tint); color: #8E2F29; font-size: .95rem; font-weight: 600; }
.mg-nav { display: flex; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.mg-nav [data-next] { margin-left: auto; min-height: 54px; padding-inline: 26px; font-size: 1.02rem; }
@media (max-width: 480px) { .mg-nav [data-next] { flex: 1; justify-content: center; } }

/* ---------- Le calcul en direct (colonne de droite) ---------- */
.mg-live {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: grid; gap: 18px; justify-items: start;
  margin-top: clamp(52px, 6vw, 80px); padding: 26px; border-radius: var(--r-lg); color: var(--on-night); background: var(--night);
}
@media (max-width: 980px) { .mg-live { position: static; margin-top: 0; } }
.mg-live h3 { color: #fff; font-size: 1.3rem; line-height: 1.2; text-wrap: balance; }
.mg-f-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; counter-reset: none; }
.mg-f-lines li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 12px 12px 10px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.mg-f-lines li.is-ready { border-color: rgba(211, 142, 242, .45); background: rgba(160, 26, 198, .14); }
.mg-f-lines li.is-off { opacity: .45; }
.mg-f-lines__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font: 600 .8rem/1 var(--mono); color: var(--on-night-soft); }
.mg-f-lines li.is-ready .mg-f-lines__n { background: var(--violet); color: #fff; }
.mg-f-lines b { display: block; margin-bottom: 6px; font-size: .93rem; font-weight: 650; color: #fff; }
.mg-f-lines p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 600 .95rem/1 var(--mono); color: var(--on-night-soft); }
.mg-f-lines i {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 8px; font: 500 .78rem/1.15 var(--sans); font-style: normal;
  border: 1px dashed rgba(255, 255, 255, .22); color: var(--on-night-soft);
}
.mg-f-lines i.is-set { border-style: solid; border-color: var(--violet-light); color: #fff; background: rgba(211, 142, 242, .12); font-weight: 650; }
.mg-f-lines i.is-res { border-style: solid; border-color: rgba(255, 210, 63, .5); color: var(--spark); }
.mg-f-lines i.is-res.is-set { background: rgba(255, 210, 63, .12); }
.mg-f-lines i svg { width: 13px; height: 13px; }
.mg-live__fin { margin: 0; font-size: .86rem; color: var(--on-night-soft); }
.mg-live__badges { list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 12px; width: 100%; border-top: 1px solid var(--night-line); }
.mg-live__badges li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .86rem; line-height: 1.4; color: var(--on-night-soft); }
.mg-live__badges svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(29, 143, 84, .16); color: #6FD39C; }
.mg-live__badges b { display: block; color: #fff; font-weight: 650; }

/* ---------- Chargement ---------- */
.mg-loading { display: grid; justify-items: center; gap: 8px; padding: clamp(36px, 7vw, 72px) 20px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.mg-loading[hidden] { display: none; }
.mg-loading__t { margin: 0; font: 720 1.35rem/1.2 var(--display); font-stretch: 106%; letter-spacing: -.015em; }
.mg-loading__s { margin: 0; color: var(--ink-soft); }

/* ---------- Résultat ---------- */
.mg-res { display: grid; gap: 22px; padding: clamp(20px, 3.4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.mg-res[hidden] { display: none; }
.mg-sent { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--ok-tint); color: #1F4D33; font-weight: 650; }
.mg-sent svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.mg-res__head { display: grid; gap: 10px; justify-items: start; }
.mg-res__title { font-size: clamp(1.7rem, 3.8vw, 2.9rem); line-height: 1.08; font-stretch: 108%; letter-spacing: -.025em; max-width: 24ch; text-wrap: balance; }
.mg-res__title:focus { outline: none; }
.mg-res__title .hl { color: var(--violet); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mg-res__sub { margin: 0; color: var(--ink-soft); font-size: 1.05rem; max-width: 44rem; }

/* La preuve : le mois type, puis les opérations */
.mg-proof {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 32px); align-items: start;
  padding: clamp(18px, 3vw, 30px); border-radius: var(--r-lg); background: var(--night); color: var(--on-night);
}
.mg-proof[hidden] { display: none; }
@media (max-width: 760px) { .mg-proof { grid-template-columns: minmax(0, 1fr); } }
.mg-proof__cal { margin: 0; display: grid; gap: 12px; }
.mg-proof__cal figcaption { display: grid; gap: 4px; }
.mg-proof__cal figcaption span { font: 500 .74rem/1.2 var(--mono); color: var(--violet-light); }
.mg-proof__cal figcaption small { font-size: .86rem; line-height: 1.4; color: var(--on-night-soft); }
.mg-pcal .mg-cal__h { color: var(--on-night-soft); }
.mg-pcal__d { position: relative; aspect-ratio: 1.25; min-height: 36px; border-radius: 8px; background: rgba(160, 26, 198, .55); color: rgba(255, 255, 255, .55); }
.mg-pcal__d.is-vide { background: transparent; border: 1.5px dashed rgba(255, 210, 63, .55); }
.mg-pcal__v {
  position: absolute; inset: 0; display: grid; place-items: center; padding-top: 8px; border-radius: 7px;
  font: 700 .74rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--night); background: var(--spark);
  opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .35s cubic-bezier(.2, 1.5, .4, 1);
}
.mg-pcal__d.is-on .mg-pcal__v { opacity: 1; transform: none; }
.mg-proof__tot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--night-line); }
.mg-proof__tot span { font-size: .9rem; color: var(--on-night-soft); }
.mg-proof__tot b { font: 780 1.7rem/1 var(--display); letter-spacing: -.02em; color: var(--spark); font-variant-numeric: tabular-nums; }

.mg-proof__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mg-pl {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding: 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.mg-pl.is-on { opacity: 1; transform: none; }
.mg-pl__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font: 600 .8rem/1 var(--mono); }
.mg-pl__t { display: block; margin-bottom: 8px; color: #fff; font-size: .98rem; font-weight: 650; }
.mg-pl__eq { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 600 1rem/1 var(--mono); color: var(--on-night-soft); }
.mg-pl__eq i { padding: 6px 9px; border-radius: 8px; border: 1px solid var(--violet-light); background: rgba(211, 142, 242, .12); color: #fff; font: 600 .82rem/1.15 var(--sans); font-style: normal; }
.mg-pl small { display: block; margin-top: 8px; font-size: .8rem; color: var(--on-night-soft); }
.mg-pl__v { grid-column: 2; justify-self: start; margin-top: 10px; font: 780 1.35rem/1.1 var(--display); letter-spacing: -.015em; color: var(--spark); font-variant-numeric: tabular-nums; }

/* La suite apparaît une fois le calcul déroulé */
.mg-later { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mg-later.is-on { opacity: 1; transform: none; }
.mg-block { display: grid; gap: 8px; padding-top: 6px; }
.mg-block[hidden] { display: none; }
.mg-block h3 { font-size: 1.35rem; }
.mg-block > p { margin: 0; color: var(--ink-soft); }
.mg-cap { font-size: .84rem; color: var(--ink-soft); }
.mg-block .cumul .bar { animation: mg-barre .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transform-box: fill-box; transform-origin: bottom; }
@keyframes mg-barre { from { transform: scaleY(0); } to { transform: none; } }

.mg-bridge { display: grid; gap: 12px; justify-items: start; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); background: var(--violet-tint); }
.mg-bridge .pill { color: var(--violet-deep); font-weight: 600; }
.mg-bridge h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.15; max-width: 26ch; }
.mg-bridge .hl { color: var(--violet); }
.mg-bridge p { margin: 0; font-size: 1.05rem; max-width: 46rem; }
.mg-bridge small { color: var(--ink-soft); }

.mg-next { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: start; }
@media (max-width: 760px) { .mg-next { grid-template-columns: minmax(0, 1fr); } }
.mg-next h3 { font-size: 1.35rem; margin-bottom: 12px; }
.mg-next__steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.mg-next__steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.mg-next__steps li > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--spark); font: 600 .85rem/1 var(--mono); }
.mg-next__steps b { display: block; margin-bottom: 2px; }
.mg-next__steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.mg-next__steps a { color: var(--violet-deep); font-weight: 600; }
.mg-next__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* v43 : après l'envoi, le visiteur peut réserver son appel tout de suite (agenda cal.com). */
.mg-rdv { display: grid; gap: 12px; justify-items: start; margin: 0 0 14px; padding: 16px 18px; border-radius: 14px; background: var(--night); }
.mg-rdv p { margin: 0; font-size: .98rem; color: rgba(255, 255, 255, .86); }
.mg-rdv b { color: #fff; }
.mg-next .merci__video { max-width: 200px; }
@media (max-width: 760px) { .mg-next .merci__video { max-width: none; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 14px; } }

.mg-note { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--paper); font-size: .9rem; color: var(--ink-soft); }
.mg-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pendant le calcul : la page se resserre sur le questionnaire */
body.mg-fini .mg-hero .lead { display: none; }

@media (prefers-reduced-motion: reduce) {
  .mg-step, .mg-block .cumul .bar { animation: none; }
  .mg-pl, .mg-later, .mg-pcal__v { transition: none; }
}

/* ---------- v36 : moins de texte, cadenas « Informations sécurisées » en haut de la carte ---------- */
.mg-count { align-items: center; }
.mg-secure {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--ok-tint); color: #1F4D33; font: 650 .8rem/1 var(--sans); letter-spacing: 0; white-space: nowrap;
}
.mg-secure svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
@media (max-width: 420px) { .mg-count__nom { display: none; } }
.mg-live { gap: 14px; padding: 22px; }
.mg-live__t { margin: 0; }
.mg-live__t .eyebrow { margin: 0; }
.mg-f-lines li { padding: 10px 10px 10px 8px; }
.mg-f-lines b { margin-bottom: 5px; }
.mg-live__fin { display: flex; gap: 8px; align-items: center; font-size: .84rem; }
.mg-live__fin svg { width: 15px; height: 15px; color: #6FD39C; flex: none; }
/* sur téléphone, le calcul en direct ne s'affiche pas : il est détaillé au résultat */
@media (max-width: 980px) { .mg-live { display: none; } }
.mg-hint:empty { display: none; }
/* v38 : le nom de l'entreprise (facultatif) prend toute la largeur */
.mg-f--large { grid-column: 1 / -1; }
