/* =============================================================================
   Majors Brain — campagne « Première vague » sur majors.fr
   Bandeau contextuel · section #majors-brain · modal d'audit · exit intent.

   Charte reprise de brain.majors.fr (« Le grand livre ») : bleu d'encre, laiton
   pour ce qui vit, violet réservé au bouton d'action ; Source Serif 4 pour le
   discours, Public Sans pour l'interface, IBM Plex Mono pour les mentions et
   les chiffres. Seul ajout demandé pour la campagne : un halo violet très léger.

   Tout est préfixé mb- pour rester étanche au thème du site.
   ============================================================================= */

.mb-ui,
.mb-section {
  --mb-ink: #0A1018;
  --mb-ink-deep: #070C12;
  --mb-card: #141E2B;
  --mb-card-soft: #0E1620;
  --mb-brass: #C9A227;
  --mb-brass-soft: rgba(201, 162, 39, .30);
  --mb-brass-wash: rgba(201, 162, 39, .07);
  --mb-violet: #6742D6;
  --mb-violet-hi: #7C5AE4;
  --mb-halo: rgba(122, 77, 255, .16);
  --mb-txt: #E9EEF4;
  --mb-txt-soft: rgba(233, 238, 244, .74);
  --mb-txt-muted: rgba(233, 238, 244, .62);
  --mb-line: rgba(233, 238, 244, .11);
  --mb-line-soft: rgba(233, 238, 244, .06);
  --mb-field-line: rgba(233, 238, 244, .16);
  --mb-error: #F0A3A8;
  --mb-r-sm: 2px;
  --mb-r: 3px;
  --mb-r-lg: 5px;
  --mb-title: "Source Serif 4", Georgia, serif;
  --mb-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mb-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --mb-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

.mb-ui [hidden],
.mb-section [hidden],
.mb-ui[hidden] {
  display: none !important;
}

.mb-ui,
.mb-ui *,
.mb-section,
.mb-section * {
  box-sizing: border-box;
}

.mb-ui button:focus-visible,
.mb-ui a:focus-visible,
.mb-ui input:focus-visible,
.mb-section a:focus-visible {
  outline: 2px solid var(--mb-brass);
  outline-offset: 3px;
}

/* -----------------------------------------------------------------------------
   Bouton d'action — le seul emploi du violet
   -------------------------------------------------------------------------- */
.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 14px 26px;
  font-family: var(--mb-body);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .005em;
  color: #fff !important;
  text-decoration: none !important;
  background: var(--mb-violet);
  border: 1px solid var(--mb-violet);
  border-radius: var(--mb-r);
  cursor: pointer;
  transition: transform .2s var(--mb-ease), filter .2s var(--mb-ease);
}

.mb-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.mb-btn[disabled] {
  cursor: progress;
  filter: saturate(.6);
  transform: none;
}

.mb-btn .mb-arr {
  display: inline-block;
  transition: transform .25s var(--mb-ease);
}

.mb-btn:hover .mb-arr {
  transform: translateX(4px);
}

.mb-btn-block {
  width: 100%;
}

.mb-eyebrow {
  margin: 0 0 18px;
  font-family: var(--mb-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mb-brass);
}

/* -----------------------------------------------------------------------------
   1. Bandeau contextuel
   -------------------------------------------------------------------------- */
.mb-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  /* au-dessus du header du thème (.header-wrapper : 1030) */
  overflow: hidden;
  font-family: var(--mb-body);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--mb-txt);
  /* Encre violine plus lumineuse que le noir : le bandeau doit se détacher
     du blanc du site comme de la barre violette du menu. */
  background-color: #120E30;
  background-image:
    radial-gradient(560px 130px at 50% 0%, rgba(124, 90, 228, .48), transparent 72%),
    linear-gradient(90deg, #0B1020 0%, #1C1450 50%, #0B1020 100%);
  border-bottom: 1px solid rgba(201, 162, 39, .5);
  -webkit-font-smoothing: antialiased;
  animation: mb-drop .6s var(--mb-ease) both;
}

/* Reflet laiton qui balaie lentement le filet du bas : du mouvement, sans clignotement. */
.mb-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(236, 204, 110, .95), transparent);
  transform: translateX(-100%);
  pointer-events: none;
  animation: mb-sweep 7s var(--mb-ease) 1s infinite;
}

/* Reflet jumeau sur le bord haut, de la droite vers la gauche. */
.mb-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(236, 204, 110, .95), transparent);
  transform: translateX(100%);
  pointer-events: none;
  animation: mb-sweep-rtl 7s var(--mb-ease) 1s infinite;
}

@keyframes mb-sweep-rtl {
  0% {
    transform: translateX(100%);
  }

  55%,
  100% {
    transform: translateX(-250%);
  }
}

@keyframes mb-drop {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: none;
  }
}

@keyframes mb-sweep {
  0% {
    transform: translateX(-100%);
  }

  55%,
  100% {
    transform: translateX(250%);
  }
}

@keyframes mb-ping {
  0% {
    opacity: .9;
    transform: scale(1);
  }

  80%,
  100% {
    opacity: 0;
    transform: scale(3.2);
  }
}

.mb-banner-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1680px;
  min-height: 44px;
  margin: 0 auto;
  /* Marges symétriques : le groupe texte + compteur + bouton reste centré
     malgré la croix de fermeture à droite. */
  padding: 7px 56px;
}

/* Écrans portables : la phrase secondaire passe sous le titre plutôt que
   d'être coupée. Sous 1100 px, elle ne tiendrait plus : on la retire. */
@media (min-width: 1100px) and (max-width: 1799px) {
  .mb-banner-text {
    display: flex;
    flex-direction: column;
    white-space: normal;
  }

  .mb-banner-text strong,
  .mb-banner-sub {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mb-banner-sub {
    margin-left: 0;
    font-size: 12.5px;
  }
}

@media (max-width: 1099px) {
  .mb-banner-sub {
    display: none;
  }
}

.mb-banner-label {
  flex: none;
  padding: 3px 8px;
  font-family: var(--mb-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mb-brass);
  background: rgba(201, 162, 39, .12);
  border: 1px solid rgba(201, 162, 39, .45);
  border-radius: var(--mb-r-sm);
}

.mb-banner-text {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--mb-txt);
}

.mb-banner-text strong {
  font-size: 14px;
  font-weight: 600;
}

.mb-banner-sub {
  margin-left: 10px;
  color: var(--mb-txt-muted);
}

.mb-banner-mobile {
  display: none;
}

.mb-banner-count {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-family: var(--mb-mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--mb-txt);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(233, 238, 244, .18);
  border-radius: 999px;
}

.mb-banner-count::before,
.mb-banner-count::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mb-brass);
}

/* Onde lente autour du point : le compteur « respire ». */
.mb-banner-count::after {
  position: absolute;
  top: calc(50% - 3px);
  left: 12px;
  animation: mb-ping 2.6s ease-out infinite;
}

.mb-banner .mb-btn {
  flex: none;
  padding: 8px 16px;
  font-size: 12.5px;
  background: var(--mb-violet-hi);
  border-color: var(--mb-violet-hi);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px -6px rgba(124, 90, 228, .8);
}

.mb-banner .mb-m {
  display: none;
}

.mb-banner-x {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  color: var(--mb-txt-muted);
  background: transparent;
  border: 0;
  border-radius: var(--mb-r);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color .15s, background-color .15s;
}

.mb-banner-x:hover {
  color: var(--mb-txt);
  background: var(--mb-line-soft);
}

/* Le bandeau pousse la page et le header fixe du thème. Le header mobile
   (.wsmobileheader) est positionné à l'intérieur de .header-wrapper : le
   décaler lui aussi doublerait l'écart. */
html.mb-banner-on body {
  padding-top: var(--mb-bh, 44px);
}

html.mb-banner-on #header .header-wrapper {
  top: var(--mb-bh, 44px);
}

/* Menu mobile ouvert : il occupe tout l'écran, le bandeau s'efface. */
.wsactive .mb-banner {
  visibility: hidden;
}

@media (max-width: 767px) {
  .mb-banner-in {
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 6px 48px 6px 16px;
  }

  .mb-banner-label,
  .mb-banner-text,
  .mb-banner-count {
    display: none;
  }

  .mb-banner-mobile {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    margin: 0;
  }

  .mb-banner-mobile strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mb-txt);
  }

  .mb-banner-mobile span {
    font-family: var(--mb-mono);
    font-size: 11.5px;
    color: var(--mb-brass);
  }

  .mb-banner .mb-d {
    display: none;
  }

  .mb-banner .mb-m {
    display: inline;
  }

  .mb-banner-x {
    right: 6px;
  }
}

/* -----------------------------------------------------------------------------
   2. Section #majors-brain
   -------------------------------------------------------------------------- */
.mb-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  font-family: var(--mb-body);
  color: var(--mb-txt);
  background: var(--mb-ink);
  scroll-margin-top: calc(var(--mb-bh, 0px) + 64px);
  -webkit-font-smoothing: antialiased;
}

.mb-section::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  z-index: -1;
  width: 820px;
  height: 640px;
  background: radial-gradient(closest-side, var(--mb-halo), transparent);
  pointer-events: none;
  animation: mb-drift 30s ease-in-out infinite alternate;
}

@keyframes mb-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-80px, 60px, 0);
  }
}

.mb-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section repliable : bandeau de présentation + chevron, fermée par défaut */
.mb-details>summary {
  list-style: none;
  cursor: pointer;
}

.mb-details>summary::-webkit-details-marker {
  display: none;
}

.mb-summary {
  display: block;
  position: relative;
  color: var(--mb-txt);
  background-color: #120E30;
  background-image:
    radial-gradient(620px 140px at 50% 0%, rgba(124, 90, 228, .42), transparent 72%),
    linear-gradient(90deg, #0B1020 0%, #1C1450 50%, #0B1020 100%);
  border-top: 1px solid rgba(201, 162, 39, .5);
  border-bottom: 1px solid rgba(201, 162, 39, .5);
}

.mb-summary:focus-visible {
  outline: 2px solid var(--mb-brass);
  outline-offset: -4px;
}

.mb-summary-in {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.mb-section .mb-summary-emblem {
  flex: none;
  width: 28px;
  height: auto;
}

.mb-summary-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
  font-family: var(--mb-title);
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--mb-txt);
}

.mb-summary-text strong {
  font-weight: 600;
}

.mb-summary-text span {
  font-weight: 400;
  color: var(--mb-txt-soft);
}

.mb-summary-more {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  font-family: var(--mb-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--mb-txt);
}

.mb-chevron {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--mb-brass);
  border: 1px solid rgba(201, 162, 39, .5);
  border-radius: 50%;
  transition: transform .35s var(--mb-ease), background-color .2s;
}

.mb-summary:hover .mb-chevron {
  background: var(--mb-brass-wash);
}

.mb-details[open] .mb-chevron {
  transform: rotate(180deg);
}

.mb-when-open,
.mb-details[open] .mb-when-closed {
  display: none;
}

.mb-details[open] .mb-when-open {
  display: inline;
}

.mb-panel {
  padding: 88px 0 96px;
}

.mb-details[open] .mb-panel {
  animation: mb-reveal .5s var(--mb-ease) both;
}

@keyframes mb-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.mb-section p,
.mb-section h2,
.mb-section h3,
.mb-section ul,
.mb-section ol,
.mb-section li,
.mb-section figure {
  margin: 0;
  padding: 0;
}

.mb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
}

.mb-logo {
  display: block;
  width: auto;
  height: 40px;
  margin: 0 0 30px;
}

.mb-section .mb-title {
  margin: 0 0 22px;
  font-family: var(--mb-title);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--mb-txt);
}

.mb-section .mb-lede {
  max-width: 540px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--mb-txt-soft);
}

/* Visuel : sources métier → Majors Brain → modèles d'IA */
.mb-flow {
  position: relative;
  padding: 58px 20px 26px;
}

.mb-flow-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  height: 360px;
}

.mb-flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.mb-flow-lines path {
  fill: none;
  stroke: rgba(201, 162, 39, .42);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  animation: mb-line 7s ease-in-out infinite;
}

.mb-flow-lines path.mb-out {
  stroke: rgba(124, 90, 228, .7);
}

.mb-flow-lines path:nth-child(2) {
  animation-delay: .8s;
}

.mb-flow-lines path:nth-child(3) {
  animation-delay: 1.6s;
}

.mb-flow-lines path:nth-child(4) {
  animation-delay: 2.4s;
}

.mb-flow-lines path:nth-child(5) {
  animation-delay: 3.2s;
}

.mb-flow-lines path:nth-child(6) {
  animation-delay: 4s;
}

.mb-flow-lines path:nth-child(7) {
  animation-delay: 4.8s;
}

.mb-flow-lines path:nth-child(8) {
  animation-delay: 2s;
}

.mb-flow-lines path:nth-child(9) {
  animation-delay: 3s;
}

.mb-flow-lines path:nth-child(10) {
  animation-delay: 4s;
}

.mb-flow-lines path:nth-child(11) {
  animation-delay: 5s;
}

@keyframes mb-line {

  0%,
  100% {
    opacity: .45;
  }

  50% {
    opacity: 1;
  }
}

.mb-flow-col {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.mb-section .mb-flow-cap {
  position: absolute;
  top: -36px;
  left: 0;
  right: 0;
  font-family: var(--mb-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mb-txt-muted);
}

.mb-section .mb-flow-src .mb-flow-cap {
  text-align: right;
}

.mb-section .mb-flow-core .mb-flow-cap {
  text-align: center;
}

.mb-section .mb-flow-models .mb-flow-cap {
  text-align: left;
}

.mb-section .mb-flow-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  list-style: none;
}

.mb-section .mb-flow-src .mb-flow-list {
  justify-content: space-between;
  align-items: flex-end;
}

.mb-section .mb-flow-models .mb-flow-list {
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
}

.mb-section .mb-flow-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  color: var(--mb-txt);
  background: var(--mb-card);
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-r);
}

.mb-section .mb-flow-node::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mb-brass);
}

.mb-section .mb-flow-models .mb-flow-node {
  height: 48px;
  padding: 0 16px;
  font-size: 13.5px;
}

.mb-section .mb-flow-models .mb-flow-node::before {
  background: var(--mb-violet-hi);
}

.mb-core-disc {
  position: absolute;
  top: calc(50% - 64px);
  left: 50%;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  background: var(--mb-ink-deep);
  border: 1px solid var(--mb-brass-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 10px var(--mb-card-soft), 0 0 64px -8px var(--mb-halo);
  transform: translateX(-50%);
}

.mb-core-disc::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(201, 162, 39, .2);
  border-radius: 50%;
  animation: mb-breathe 6s ease-in-out infinite;
}

@keyframes mb-breathe {

  0%,
  100% {
    opacity: .5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.mb-core-disc img {
  display: block;
  width: 62px;
  height: auto;
}

.mb-core-label {
  position: absolute;
  top: calc(50% + 82px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.mb-core-label strong {
  font-family: var(--mb-title);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--mb-txt);
}

.mb-core-label>span {
  font-family: var(--mb-mono);
  font-size: 11px;
  color: var(--mb-txt-muted);
}

.mb-section .mb-core-shield {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 60px;
  padding: 4px 8px;
  font-family: var(--mb-body);
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--mb-brass);
  background: var(--mb-brass-wash);
  border: 1px solid var(--mb-brass-soft);
  border-radius: var(--mb-r-sm);
}

/* Première vague */
.mb-wave {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  margin-top: 88px;
  padding: 48px;
  background: var(--mb-card-soft);
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-r-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 30px 70px -34px rgba(0, 0, 0, .85);
}

.mb-wave::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 48px;
  width: 64px;
  height: 2px;
  background: var(--mb-brass);
}

.mb-section .mb-wave-title,
.mb-section .mb-how-title {
  margin: 0 0 18px;
  font-family: var(--mb-title);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--mb-txt);
}

.mb-section .mb-wave-main p:not(.mb-eyebrow) {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mb-txt-soft);
}

.mb-wave-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.mb-slots {
  padding: 20px 22px;
  background: var(--mb-ink-deep);
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-r);
}

.mb-section .mb-slots-kicker {
  margin: 0 0 10px;
  font-family: var(--mb-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mb-brass);
}

.mb-section .mb-slots-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.mb-slots-count {
  font-family: var(--mb-title);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--mb-txt);
}

.mb-slots-label {
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--mb-txt-soft);
}

.mb-dots {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 6px;
  max-width: 250px;
  margin-top: 16px;
}

.mb-dots:empty {
  display: none;
}

.mb-dots i {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(233, 238, 244, .28);
  border-radius: 50%;
}

.mb-dots i.is-taken {
  background: var(--mb-brass);
  border-color: var(--mb-brass);
}

.mb-section .mb-slots-reserved {
  margin-top: 10px;
  font-family: var(--mb-mono);
  font-size: 11.5px;
  color: var(--mb-txt-muted);
}

.mb-section .mb-wave-note {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--mb-txt-muted);
}

.mb-section .mb-link {
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--mb-txt);
  text-decoration: none;
  border-bottom: 1px solid var(--mb-brass-soft);
  transition: border-color .2s;
}

.mb-section .mb-link:hover {
  color: var(--mb-txt);
  border-bottom-color: var(--mb-brass);
}

/* Comment ça fonctionne */
.mb-how {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
  margin-top: 96px;
  scroll-margin-top: calc(var(--mb-bh, 0px) + 96px);
}

.mb-section .mb-how-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mb-txt-soft);
}

.mb-section .mb-steps {
  list-style: none;
  border-top: 1px solid var(--mb-line);
}

.mb-section .mb-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mb-line-soft);
}

.mb-step-n {
  padding-top: 3px;
  font-family: var(--mb-mono);
  font-size: 12px;
  color: var(--mb-brass);
}

.mb-step-t {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mb-txt);
}

.mb-step-d {
  display: block;
  margin-top: 2px;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--mb-txt-muted);
}

@media (max-width: 1099px) {

  .mb-hero,
  .mb-wave,
  .mb-how {
    grid-template-columns: minmax(0, 1fr);
  }

  .mb-hero {
    gap: 48px;
  }

  .mb-wave {
    gap: 32px;
  }

  .mb-how {
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .mb-panel {
    padding: 56px 0 64px;
  }

  .mb-summary-in {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .mb-summary-text {
    font-size: 1.0625rem;
  }

  .mb-summary-text span {
    flex-basis: 100%;
    font-size: .9375rem;
  }

  .mb-when-closed,
  .mb-details[open] .mb-when-open {
    display: none;
  }

  .mb-section .mb-title {
    font-size: 1.75rem;
  }

  .mb-section .mb-wave-title,
  .mb-section .mb-how-title {
    font-size: 1.375rem;
  }

  .mb-flow {
    padding: 22px 16px;
  }

  .mb-flow-stage {
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: auto;
  }

  .mb-flow-lines {
    display: none;
  }

  .mb-section .mb-flow-cap {
    position: static;
    margin-bottom: 10px;
  }

  .mb-section .mb-flow-src .mb-flow-cap,
  .mb-section .mb-flow-models .mb-flow-cap {
    text-align: center;
  }

  .mb-section .mb-flow-src .mb-flow-list,
  .mb-section .mb-flow-models .mb-flow-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: auto;
  }

  .mb-section .mb-flow-node,
  .mb-section .mb-flow-models .mb-flow-node {
    height: 32px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .mb-flow-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .mb-core-disc,
  .mb-core-label {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .mb-core-disc {
    width: 96px;
    height: 96px;
  }

  .mb-core-disc img {
    width: 46px;
  }

  .mb-wave {
    margin-top: 56px;
    padding: 28px 20px;
  }

  .mb-wave::before {
    left: 20px;
  }

  .mb-how {
    margin-top: 64px;
  }
}

/* -----------------------------------------------------------------------------
   3. Modal d'audit et exit intent
   -------------------------------------------------------------------------- */
html.mb-lock,
html.mb-lock body {
  overflow: hidden;
}

.mb-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--mb-body);
  color: var(--mb-txt);
  -webkit-font-smoothing: antialiased;
}

.mb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, .74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s var(--mb-ease);
}

.mb-modal.is-open .mb-backdrop {
  opacity: 1;
}

.mb-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-content: start;
  width: min(1000px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--mb-ink);
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-r-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s var(--mb-ease), transform .3s var(--mb-ease);
}

.mb-modal.is-open .mb-modal-panel {
  opacity: 1;
  transform: none;
}

.mb-modal p,
.mb-modal h2,
.mb-modal h3,
.mb-modal ul,
.mb-modal li,
.mb-modal fieldset,
.mb-modal legend {
  margin: 0;
  padding: 0;
}

.mb-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  color: var(--mb-txt-muted);
  background: transparent;
  border: 0;
  border-radius: var(--mb-r);
  cursor: pointer;
  transition: color .15s, background-color .15s;
}

.mb-x:hover {
  color: var(--mb-txt);
  background: var(--mb-line-soft);
}

/* Pas d'overflow: hidden ici : dans une grille de hauteur contrainte, il
   autoriserait la rangée à s'écraser à zéro (constaté en mobile). */
.mb-modal-aside {
  position: relative;
  padding: 44px 36px;
  background-color: var(--mb-ink-deep);
  background-image: radial-gradient(360px 280px at 0% 0%, var(--mb-halo), transparent 70%);
  border-right: 1px solid var(--mb-line);
}

.mb-modal-emblem {
  display: block;
  width: 44px;
  height: auto;
  margin: 0 0 28px;
}

.mb-modal .mb-modal-title {
  margin: 0 0 14px;
  font-family: var(--mb-title);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--mb-txt);
}

.mb-modal-title:focus {
  outline: none;
}

.mb-modal .mb-modal-sub {
  font-size: .97rem;
  line-height: 1.65;
  color: var(--mb-txt-soft);
}

.mb-modal .mb-modal-slots,
.mb-modal .mb-exit-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mb-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--mb-txt-soft);
}

.mb-modal .mb-modal-slots {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--mb-line);
}

.mb-modal-slots::before,
.mb-exit-line::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mb-brass);
  transform: translateY(-1px);
}

.mb-modal-body {
  padding: 40px 40px 32px;
}

.mb-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mb-field--full {
  grid-column: 1 / -1;
}

.mb-modal .mb-label {
  display: block;
  margin: 0;
  font-family: var(--mb-body);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mb-txt);
}

.mb-opt {
  font-weight: 400;
  color: var(--mb-txt-muted);
}

.mb-modal .mb-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  font-family: var(--mb-body);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--mb-txt);
  background: var(--mb-card-soft);
  border: 1px solid var(--mb-field-line);
  border-radius: var(--mb-r);
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}

.mb-modal select.mb-input {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.mb-modal select.mb-input option {
  color: var(--mb-txt);
  background: var(--mb-card-soft);
}

.mb-modal textarea.mb-input {
  height: auto;
  min-height: 76px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.mb-modal .mb-input::placeholder {
  color: rgba(233, 238, 244, .38);
}

.mb-modal .mb-input:focus {
  border-color: var(--mb-brass);
  box-shadow: 0 0 0 3px var(--mb-brass-wash);
}

.mb-modal .mb-input[aria-invalid="true"] {
  border-color: var(--mb-error);
}

.mb-err {
  font-size: .78rem;
  line-height: 1.4;
  color: var(--mb-error);
}

.mb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mb-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.mb-modal .mb-form-msg {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--mb-error);
}

.mb-modal .mb-form-note {
  font-size: .8125rem;
  line-height: 1.55;
  text-align: center;
  color: var(--mb-txt-muted);
}

.mb-success-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--mb-brass);
  border: 1px solid var(--mb-brass-soft);
  border-radius: 50%;
}

.mb-success:focus {
  outline: none;
}

.mb-modal .mb-success-title {
  margin: 0 0 12px;
  font-family: var(--mb-title);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--mb-txt);
}

.mb-modal .mb-success p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--mb-txt-soft);
}

.mb-modal .mb-success-list {
  margin: 0 0 28px;
  list-style: none;
  border-top: 1px solid var(--mb-line);
}

.mb-modal .mb-success-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  color: var(--mb-txt);
  border-bottom: 1px solid var(--mb-line-soft);
}

.mb-success-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  font-family: var(--mb-mono);
  color: var(--mb-brass);
}

/* Exit intent : une modal légère, une seule colonne */
.mb-exit .mb-modal-panel {
  display: block;
  width: min(520px, 100%);
  padding: 40px 40px 30px;
}

.mb-exit .mb-modal-emblem {
  width: 36px;
  margin-bottom: 22px;
}

.mb-modal .mb-exit-title {
  margin: 0 0 14px;
  padding-right: 24px;
  font-family: var(--mb-title);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--mb-txt);
}

.mb-modal .mb-exit-line {
  margin-bottom: 26px;
}

.mb-exit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.mb-later {
  margin: 0;
  padding: 8px 2px;
  font-family: var(--mb-body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--mb-txt-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}

.mb-later:hover {
  color: var(--mb-txt);
}

@media (max-width: 767px) {
  .mb-modal {
    align-items: stretch;
    padding: 0;
  }

  .mb-modal-panel {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .mb-modal-aside {
    padding: 26px 20px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--mb-line);
  }

  .mb-modal .mb-modal-title {
    padding-right: 36px;
    font-size: 1.375rem;
  }

  .mb-modal .mb-modal-sub {
    font-size: .9rem;
  }

  .mb-modal .mb-modal-slots {
    margin-top: 16px;
    padding-top: 12px;
  }

  .mb-modal-body {
    padding: 22px 20px 32px;
  }

  .mb-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .mb-form {
    gap: 14px;
  }

  /* 16 px : iOS ne zoome pas sur le champ */
  .mb-modal .mb-input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .mb-banner,
  .mb-banner::before,
  .mb-banner::after,
  .mb-banner-count::after,
  .mb-details[open] .mb-panel,
  .mb-section::before,
  .mb-flow-lines path,
  .mb-core-disc::after {
    animation: none;
  }

  .mb-btn,
  .mb-btn .mb-arr,
  .mb-backdrop,
  .mb-modal-panel {
    transition: none;
  }

  .mb-btn:hover,
  .mb-btn:hover .mb-arr {
    transform: none;
  }
}