/* ============================================================
   medO marcus — product page styles  (MDS Templates plugin)
   Figma: desktop 3839-35122 (1920) / mobile 5118-41299 (414).

   Loaded only on posts that contain the [mds_marcus] shortcode.
   Typography always comes from the DS classes in the markup
   (.h2/.h3/.h4/.h5, .text-p1–.text-p4 + .fw-*) — this file carries
   layout, colour and documented deviations only.
   ============================================================ */
.marcus-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* page-scoped border-box: several blocks pair a % width or a min-height with
   padding, and the DS does not set a global box-sizing */
[class^="marcus-"], [class*=" marcus-"] { box-sizing: border-box; }

/* 1420 content container, sized as a % of the 1920 design width and centred */
.marcus-in {
  width: calc(100% - 2 * var(--section-gutter)); /* 1420 cap, gutters below it */
  max-width: var(--section-container);
  margin-inline: auto;
}
.accordion-body a {
    color: rgb(12 103 233);
    text-decoration: underline;
}
details.accordion.accordion-md p {
    margin-top: var(--spacing-step-7);
}
.marcus-pad { padding-block: var(--spacing-step-11); } /* 64px */

/* icon box — exported vectors keep their own aspect ratio inside it */
.marcus-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.marcus-ico svg { display: block; width: 100%; height: 100%; }

/* Figma "Features Accolade" corner brackets (same 24px corner as alys) */
.marcus-brackets { position: relative; }
.marcus-brackets > .c { position: absolute; width: 24px; height: 24px; pointer-events: none; }
.marcus-brackets > .c svg { width: 100%; height: 100%; display: block; }
.marcus-brackets > .tr { top: 0; right: 0; }
.marcus-brackets > .br { bottom: 0; right: 0; transform: rotate(90deg); }
.marcus-brackets > .bl { bottom: 0; left: 0; transform: rotate(180deg); }
.marcus-brackets > .tl { top: 0; left: 0; transform: rotate(-90deg); }

/* ============================================================
   1. Hero (3839-35125) — single flattened background
   ============================================================ */
.marcus-hero {
  display: flex;
  align-items: center;
  min-height: 568px;
  background: var(--marcus-hero-bg, url("../img/marcus-hero.jpg")) center / cover no-repeat;
  color: var(--neutrals-100-white);
  border-bottom: 1px solid var(--neutrals-500);
}
.marcus-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-step-10); /* 48px */
  width: 47.68%; /* 677/1420 */
  min-width: 420px;
}
.marcus-hero-text { display: flex; flex-direction: column; gap: var(--spacing-step-6); }
.marcus-hero-text .marcus-hero-kicker { margin-bottom: var(--spacing-step-3); } /* Figma 8px under the kicker */
/* Figma lets the H1 run 807px wide — past its 677px column — so it keeps 2 lines */
.marcus-hero-text .h2 { width: 119.2%; } /* 807/677 */

/* ============================================================
   2. "Votre allié" band (4589-42141) — flattened V2 illustration

   The art is a layer of its own so it can hold a <video> (uploaded through
   ACF) instead of the still: the video fills the same box and the flattened
   Figma export stays behind it as the background + poster, so the section
   looks right whether or not a video is set.
   ============================================================ */
.marcus-band {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1920 / 1023;
}
.marcus-band-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--marcus-band-art, url("../img/marcus-band.jpg")) center bottom / cover no-repeat;
}
/* 1px bleed: a <video> composites over a black backing, and at fractional
   layout sizes the scaled frame rounds short of the box edge, leaking that
   backing as a 1px black seam — the bleed keeps the edge cropped */
.marcus-band-media video {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  display: block;
}
.marcus-band > .marcus-in { position: relative; } /* copy sits above the art */
.marcus-band-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-step-6);
  padding-top: 62px; /* Figma frame y, no token */
  text-align: center;
  color: var(--neutrals-950);
}

/* ============================================================
   3. "marcus ne remplace pas l'entretien" split (4538-38351)
   ============================================================ */
.marcus-split {
  background: var(--marcus-split-bg, url("../img/marcus-split-bg.jpg")) center / cover no-repeat;
  color: var(--neutrals-100-white);
}
.marcus-split-row { display: flex; align-items: stretch; gap: var(--spacing-step-7); } /* 24px */
.marcus-split-copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: var(--spacing-step-11); /* 64px */
}
.marcus-split-text { display: flex; flex-direction: column; gap: var(--spacing-step-6); max-width: 579px; }
/* Figma mixes weights inside the one H4 line */
.marcus-split-title .light { font-weight: var(--fw-regular); }
.marcus-split-text > div { display: flex; flex-direction: column; gap: var(--spacing-step-6); }
.marcus-split-text .text-p3 { color: var(--neutrals-100-white); }
/* clinicien / patient switch (component set 6391:42716) */
.marcus-who {
  flex: 0 0 50%; /* 710/1420 */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 21px; /* Figma, no token */
  padding-block: var(--spacing-step-11); /* 64px */
}
.marcus-who > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.marcus-who-tabs { display: flex; gap: 21px; }
.marcus-who-tab {
  /* inactive corners are Figma #D9DBE9 — not a DS token */
  --who-corner: #d9dbe9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-step-4); /* 8px */
  border-radius: var(--radius-sm); /* 4px */
  color: var(--neutrals-100-white);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* 8px rounded corner brackets. Figma centres the 1px stroke ON the tab edge;
   at 1x that straddles two pixels and smears into a dark half-tone smudge, so
   the symbol is redrawn on a whole 8px grid, half a pixel inward, so every
   straight leg lands on exactly one pixel (Figma path shifted by -0.5) */
.marcus-who-tab > .c { position: absolute; width: 8px; height: 8px; color: var(--who-corner); pointer-events: none; }
.marcus-who-tab > .c svg { width: 100%; height: 100%; min-height: 0; display: block; overflow: visible; }
.marcus-who-tab > .tr { top: 0; right: 0; }
.marcus-who-tab > .br { bottom: 0; right: 0; transform: rotate(90deg); }
.marcus-who-tab > .bl { bottom: 0; left: 0; transform: rotate(180deg); }
.marcus-who-tab > .tl { top: 0; left: 0; transform: rotate(-90deg); }
/* Tab (Light version) 6391:42112 — Default / Hover / Active */
@media (hover: hover) {
  .marcus-who-tab:hover { background: var(--opacity-light-20); }
}
.marcus-who > input:nth-of-type(1):checked ~ .marcus-who-tabs .marcus-who-tab:nth-child(1),
.marcus-who > input:nth-of-type(2):checked ~ .marcus-who-tabs .marcus-who-tab:nth-child(2) {
  --who-corner: var(--primary-default);
  background: var(--neutrals-100-white);
  color: var(--primary-default);
  cursor: default;
}
.marcus-who > input:nth-of-type(1):focus-visible ~ .marcus-who-tabs .marcus-who-tab:nth-child(1),
.marcus-who > input:nth-of-type(2):focus-visible ~ .marcus-who-tabs .marcus-who-tab:nth-child(2) {
  outline: 2px solid var(--neutrals-100-white);
  outline-offset: 2px;
}
.marcus-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
}
.marcus-who > input:nth-of-type(1):checked ~ .marcus-steps:nth-of-type(1),
.marcus-who > input:nth-of-type(2):checked ~ .marcus-steps:nth-of-type(2),
.marcus-who > .marcus-steps:only-of-type { display: flex; }
.marcus-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-step-6);
  padding: var(--spacing-step-7);
  border: 1px solid var(--opacity-light-20);
}
.marcus-step + .marcus-step { margin-top: -1px; }
.marcus-step .marcus-ico { width: 28px; height: 28px; color: var(--neutrals-100-white); }
.marcus-step-body { display: flex; flex-direction: column; gap: var(--spacing-step-3); } /* 6px */
.marcus-step-head { display: flex; gap: var(--spacing-step-5); } /* 12px between "1." and label */
.marcus-step-desc { color: var(--opacity-light-80); }
.marcus-step-desc a { color: var(--neutrals-100-white); text-decoration: underline; }

/* ============================================================
   4. Features carousel (component set 4457-29969/30068/30337)
   3 panels — same CSS-only radio mechanics as the alys page.
   ============================================================ */
.marcus-features { display: flex; flex-direction: column; gap: var(--spacing-step-10); }
.marcus-features-title { color: var(--neutrals-950); max-width: 721px; }
.marcus-feat { position: relative; }
.marcus-feat > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.marcus-feat-stage {
  position: relative;
  aspect-ratio: 1420 / 745;
  border-radius: var(--radius-7md); /* 16px */
  overflow: hidden;
  box-shadow: 0 var(--dropshadow-positioning-2xs) var(--dropshadow-blur-2xs-2) var(--opacity-dark-10);
}
.marcus-feat-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background: center / cover no-repeat;
  transition: opacity 0.35s ease;
}
/* Overlay-Top + Overlay-Bottom from Figma, as scrims behind the live text */
.marcus-feat-panel::before,
.marcus-feat-panel::after { content: ""; position: absolute; pointer-events: none; }
.marcus-feat-panel::before {
  left: 0; right: 0; top: 0;
  height: 17.45%; /* 130/745 */
  background: linear-gradient(180deg, var(--opacity-dark-60) 5.371%, rgb(0 0 0 / 0) 84.156%);
}
.marcus-feat-panel::after {
  inset: 0;
  /* the Figma blob is 736x851 centred at 146/541 in a 1420x745 panel */
  background: radial-gradient(51.83% 114.23% at 10.28% 72.62%, var(--feat-scrim-stops));
}
.marcus-feat-copy {
  position: absolute;
  left: 1.83%;   /* 26/1420 */
  bottom: 6.71%; /* 50/745 */
  width: var(--panel-w, 37%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 29px; /* Figma text block → button, no token */
  color: var(--neutrals-100-white);
}
.marcus-feat-head { display: flex; flex-direction: column; gap: var(--spacing-step-6); }
.marcus-feat-desc { color: var(--opacity-light-90); }
/* panel 3 replaces the paragraph with a bulleted list (Figma 4460-30786) */
.marcus-feat-list { margin: 0; padding-left: 30px; display: flex; flex-direction: column; gap: 21px; color: var(--opacity-light-90); }
/* Figma lays the 3 tabs left-aligned with an 8px gap (unlike alys' spread) */
.marcus-feat-tabs {
  position: absolute;
  left: 1.83%;
  right: 1.83%;
  top: 3.22%; /* 24/745 */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--spacing-step-4); /* 8px */
  z-index: 2;
}
.marcus-feat-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-step-4);
  padding: var(--spacing-step-5) var(--spacing-step-7); /* 12px 24px */
  border-radius: 60px; /* no 60px radius token */
  background: var(--opacity-light-20);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  color: var(--neutrals-100-white);
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.marcus-feat-tab:hover { background: var(--opacity-light-30); }
.marcus-feat-tab .marcus-ico { width: 24px; height: 24px; }
.marcus-feat-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--primary-default);
}
.marcus-feat-tab > :not(.marcus-feat-fill) { position: relative; z-index: 1; }

/* autoplay: 3 slides × 4s, looping (same mechanics as alys, re-phased) */
@keyframes marcus-panel {
  0%      { opacity: 0; visibility: hidden; }
  1%      { opacity: 1; visibility: visible; }
  33.333% { opacity: 1; visibility: visible; }
  36%     { opacity: 0; visibility: hidden; }
  100%    { opacity: 0; visibility: hidden; }
}
@keyframes marcus-fill-1 { 0%          { width: 0; } 33.333% { width: 100%; } 100% { width: 100%; } }
@keyframes marcus-fill-2 { 0%, 33.333% { width: 0; } 66.667% { width: 100%; } 100% { width: 100%; } }
@keyframes marcus-fill-3 { 0%, 66.667% { width: 0; } 100%    { width: 100%; } }

.marcus-feat-panel { animation: marcus-panel 12s linear infinite both; }
.marcus-feat-panel:nth-of-type(2) { animation-delay: -8s; }
.marcus-feat-panel:nth-of-type(3) { animation-delay: -4s; }
.marcus-feat-fill { animation: 12s linear infinite both; }
.marcus-feat-tab:nth-of-type(1) .marcus-feat-fill { animation-name: marcus-fill-1; }
.marcus-feat-tab:nth-of-type(2) .marcus-feat-fill { animation-name: marcus-fill-2; }
.marcus-feat-tab:nth-of-type(3) .marcus-feat-fill { animation-name: marcus-fill-3; }

/* hovering anywhere in the block freezes the rotation */
.marcus-feat:hover .marcus-feat-panel,
.marcus-feat:hover .marcus-feat-fill { animation-play-state: paused; }

/* picking a tab takes over: autoplay stops and that slide stays put */
.marcus-feat:has(> input:checked) .marcus-feat-panel,
.marcus-feat:has(> input:checked) .marcus-feat-fill { animation: none; }
.marcus-feat:has(> input:checked) .marcus-feat-panel { opacity: 0; visibility: hidden; }
.marcus-feat:has(> input:checked) .marcus-feat-fill { width: 0; }
.marcus-feat:has(> input:nth-of-type(1):checked) .marcus-feat-tab:nth-of-type(1) .marcus-feat-fill,
.marcus-feat:has(> input:nth-of-type(2):checked) .marcus-feat-tab:nth-of-type(2) .marcus-feat-fill,
.marcus-feat:has(> input:nth-of-type(3):checked) .marcus-feat-tab:nth-of-type(3) .marcus-feat-fill { width: 100%; }
.marcus-feat:has(> input:nth-of-type(1):checked) .marcus-feat-panel:nth-of-type(1),
.marcus-feat:has(> input:nth-of-type(2):checked) .marcus-feat-panel:nth-of-type(2),
.marcus-feat:has(> input:nth-of-type(3):checked) .marcus-feat-panel:nth-of-type(3) { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .marcus-feat-panel, .marcus-feat-fill { animation: none; }
  .marcus-feat-panel { opacity: 0; visibility: hidden; }
  .marcus-feat-panel:nth-of-type(1) { opacity: 1; visibility: visible; }
  .marcus-feat-tab:nth-of-type(1) .marcus-feat-fill { width: 100%; }
}

/* ============================================================
   5. Mieux préparer la rencontre (4538-40231)
   ============================================================ */
.marcus-time { display: flex; flex-direction: column; gap: 41px; } /* Figma 41px, no token */
.marcus-time-head { display: flex; flex-direction: column; gap: var(--spacing-step-6); color: var(--neutrals-950); }
.marcus-time-head p { color: var(--neutrals-800); max-width: 656px; }
.marcus-time-row { display: flex; align-items: center; gap: var(--spacing-step-10); } /* 48px */
.marcus-benefits {
  flex: 0 0 50%; /* 710/1420 */
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-self: center;
}
.marcus-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-step-4); /* 8px */
  padding: var(--spacing-step-7);
  border: 1px solid var(--neutrals-400);
}
.marcus-benefit + .marcus-benefit { margin-top: -1px; }
.marcus-benefit .marcus-ico { width: 28px; height: 28px; color: var(--primary-default); }
.marcus-benefit-body { display: flex; flex-direction: column; justify-content: center; gap: var(--spacing-step-3); }
.marcus-benefit-body .t { color: var(--neutrals-950); }
.marcus-benefit-body .d { color: var(--neutrals-800); }
.marcus-time-vr { width: 1px; align-self: center; height: 364px; background: var(--neutrals-500); flex-shrink: 0; }
.marcus-auds { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--spacing-step-7); align-self: stretch; justify-content: center; }
.marcus-aud {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-step-6);
  padding: var(--spacing-step-7);
  background: rgb(0 106 250 / 0.1); /* Figma tint of the site accent, not a token */
  color: var(--neutrals-950);
}
.marcus-aud > .c { color: var(--site-accent); }
.marcus-aud-head { display: flex; align-items: flex-start; gap: var(--spacing-step-6); }
.marcus-aud-head .marcus-ico { width: 28px; height: 28px; color: var(--primary-default); }
.marcus-aud-desc { color: var(--neutrals-800); }

/* ============================================================
   6. marcus ne s'arrête pas à la porte du bureau (3839-35319)
   Flattened right visual (render + node diagram), alys-kit pattern.
   ============================================================ */
.marcus-alys { position: relative; display: flex; align-items: center; min-height: 443px; overflow: hidden; }
.marcus-alys-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
  width: 42.68%; /* 606/1420 */
  padding-block: var(--spacing-step-11);
}
.marcus-alys-head { display: flex; flex-direction: column; gap: var(--spacing-step-6); color: var(--neutrals-950); }
.marcus-alys-head p { color: var(--neutrals-800); }
.marcus-alys-visual {
  position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--marcus-alys-visual, url(../img/marcus-alys-visual.jpg)) right center / contain no-repeat;
}

/* ============================================================
   7. FAQ (4460-30909) — DS .accordion .accordion-md
   ============================================================ */
.marcus-faq { display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-step-8); }
.marcus-faq-head { display: flex; flex-direction: column; gap: var(--spacing-step-6); max-width: 50%; }
.marcus-faq-head .h4 { color: var(--neutrals-950); }
.marcus-faq-head p { color: var(--neutrals-800); }
.marcus-faq-row { display: flex; align-items: stretch; gap: var(--spacing-step-7); width: 100%; }
.marcus-faq-items { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--spacing-step-6); }
.marcus-faq-items .accordion { border: 1px solid #8adcf6; } /* gradient/primary/light, no matching token */
.marcus-faq-items .accordion-body ul { margin: 0; padding-left: 24px; }
.marcus-faq-media {
  flex: 0 0 49.15%; /* 698/1420 */
  border-radius: var(--radius-7md);
  overflow: hidden;
  background: linear-gradient(178.12deg, var(--neutrals-400) 5.28%, var(--neutrals-500) 156.72%);
}
.marcus-faq-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   8. Vos données, protégées (4460-31225) — centred variant of the
   alys rows, three equal bracket cards
   ============================================================ */
.marcus-data { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-step-10); } /* 48px */
.marcus-data-head {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-step-4); /* 8px */
  text-align: center;
  color: var(--neutrals-950);
  max-width: 1007px;
}
.marcus-data-list {
  /* 6269-32560: 2 x 2 — 24px gutters, both rows as tall as the tallest cell
     (the certification card is the only two-line one). */
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: var(--spacing-step-7);
  width: 100%;
}
.marcus-data-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-step-7);
  padding: var(--spacing-step-7);
  background: rgb(0 106 250 / 0.1);
  color: var(--neutrals-950);
}
.marcus-data-row > .c { color: var(--site-accent); }
.marcus-data-row .marcus-ico { width: 31px; height: 31px; color: var(--primary-default); }
/* Certification TGV — the alys cert card as the 4th cell: same box as a row,
   with the name over its sub-line. */
.marcus-data-cert-txt { display: flex; flex-direction: column; gap: var(--spacing-step-3); }
/* mds_marcus_icon() inlines a size taken from the viewBox (29.46 x 34.49);
   Figma draws the shield at the same 31px height as the other three, and only
   !important reaches past an inline style. */
.marcus-data-cert .marcus-ico { width: auto !important; height: 31px !important; }

/* ============================================================
   9. Coup d'œil sur nos solutions phares (3839-35362)
   ============================================================ */
.marcus-solutions { display: flex; align-items: flex-start; gap: var(--spacing-step-6); }
.marcus-solutions-head {
  flex: 0 0 37.39%; /* 531/1420 */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-step-6);
  color: var(--neutrals-950);
}
.marcus-solutions-cards { flex: 1 1 0; min-width: 0; display: flex; gap: var(--spacing-step-6); }
.marcus-solutions-cards .card-product { flex: 1 1 0; min-width: 0; }
.marcus-solutions-cards .card-ghost .btn-icon { width: 16px; height: 16px; }

/* ============================================================
   10. Dual CTA (3839-35371) — gradient panel + blend texture,
   two centred halves split by a hairline
   ============================================================ */
.marcus-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 78px; /* Figma, no token */
  min-height: 494px;
  padding: var(--spacing-step-10) var(--spacing-step-7); /* 48px 24px */
  overflow: hidden;
  background: linear-gradient(-71deg, var(--site-accent-deep) 3.5%, var(--site-accent) 30.7%, var(--site-accent) 69.7%, var(--site-accent-deep) 89.4%);
  color: var(--neutrals-100-white);
}
.marcus-cta > * { position: relative; }
.marcus-cta-texture {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  width: 100%;
  max-width: none;
  mix-blend-mode: color-burn;
  opacity: 0.8;
  pointer-events: none;
}
.marcus-cta-half {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-step-10); /* 48px */
  text-align: center;
}
.marcus-cta-text { display: flex; flex-direction: column; gap: var(--spacing-step-6); max-width: 608px; }
.marcus-cta-text p { max-width: 570px; margin-inline: auto; }
.marcus-cta-vr { width: 1px; align-self: stretch; background: var(--opacity-light-40); flex-shrink: 0; }

/* hover states reproduced for headless screenshots — mirrors every :hover rule,
   including the .btn-secondary and .mds-nav-cta overrides, so measured widths match */
.qa-hover.btn-pill { padding: 8px 24px; border: 0 solid transparent; border-right-width: 34px; background-clip: padding-box; border-radius: 28px 62px 62px 28px / 28px; }
.qa-hover.btn-pill .btn-icon-circle { width: 0; opacity: 0; margin-right: -10px; }
.qa-hover.btn-pill .btn-icon-pop { opacity: 1; transform: scale(1); }
.qa-hover.btn-secondary { border-width: 1px 34px 1px 1px; }
.qa-hover.mds-nav-cta { padding: 7px 21px; border-right-width: 31px; border-radius: 25px 56px 56px 25px / 25px; }

/* ============================================================
   Mobile — 5118-41299
   ============================================================ */
@media (max-width: 1023px) {
.marcus-band-media video {
inset: unset;
height: 50%;
}


  .marcus-in { width: 88.406%; } /* 366/414 */
  .marcus-pad { padding-block: var(--spacing-step-10); } /* 48px */

  /* hero has its own flattened composite (art + gradient, 414×750) */
  .marcus-hero {
    min-height: 750px;
    align-items: flex-start;
    background: var(--marcus-hero-bg-mobile, url("../img/marcus-hero-mobile.jpg")) center / cover no-repeat;
  }
  .marcus-hero .marcus-in { padding-top: var(--spacing-step-10); }
  .marcus-hero-copy { width: 100%; min-width: 0; gap: var(--spacing-step-8); } /* 32px */
  .marcus-hero-text .h2 { width: 100%; }

  /* band: copy on white, then the mobile crop of the illustration below it,
     bleeding to both screen edges the way the mobile frame does */
  .marcus-band { aspect-ratio: auto; }
  .marcus-band-copy { padding-top: var(--spacing-step-10); text-align: center; align-items: flex-start; }
  .marcus-band-media {
    position: static;
    order: 2;                 /* the art follows the copy on mobile */
    width: 100%;
    aspect-ratio: 414 / 233;
    background-image: var(--marcus-band-art-mobile, url("../img/marcus-band-mobile.jpg"));
    background-position: center;
  }

  /* split: text → tabs → steps → button (Figma 5118-42149) */
  .marcus-split-row { flex-direction: column; gap: 0; }
  .marcus-split-copy { display: contents; }
  .marcus-split-text { order: 1; max-width: none; padding-top: var(--spacing-step-10); }
  .marcus-who { order: 2; flex: none; gap: var(--spacing-step-7); padding: var(--spacing-step-7) 0 0; }
  .marcus-who-tabs { gap: var(--spacing-step-6); }
  /* fill the row from content width: equal halves are ~1px too narrow for
     « marcus pour le clinicien » at 414; labels only wrap on narrower phones */
  .marcus-who-tab { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; }
  .marcus-step { padding: var(--spacing-step-6); gap: var(--spacing-step-4); } /* 16 / 8 */
  .marcus-split-copy .btn-pill { order: 3; margin-block: var(--spacing-step-7) var(--spacing-step-10); }

  .marcus-features { gap: var(--spacing-step-7); }
  .marcus-features-title { max-width: none; }
  .marcus-feat-stage { aspect-ratio: 366 / 687; }
  /* each mobile variant offsets its art differently; --panel-pos carries the
     position matched against the Figma mobile renders (5118-42807/43081/43605) */
  .marcus-feat-panel { background-position: var(--panel-pos, 66%) center; }
  .marcus-feat-panel::before { height: 18.92%; } /* 130/687 */
  /* mobile keeps the very same ellipse, now on a 366-wide panel */
  .marcus-feat-panel::after {
    background: radial-gradient(201.09% 123.87% at 39.89% 78.75%, var(--feat-scrim-stops));
  }
  .marcus-feat-tabs {
    left: 0; right: 0; top: 24px;
    padding-inline: var(--spacing-step-6);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .marcus-feat-tabs::-webkit-scrollbar { display: none; }
  .marcus-feat-tab { padding: 10px var(--spacing-step-6); }
  .marcus-feat-copy { left: var(--spacing-step-6); right: var(--spacing-step-6); width: auto; bottom: var(--spacing-step-7); gap: var(--spacing-step-7); }

  .marcus-time-row { flex-direction: column; align-items: stretch; gap: var(--spacing-step-7); }
  .marcus-benefits { flex: none; }
  .marcus-benefit { padding: var(--spacing-step-7) var(--spacing-step-7); }
  .marcus-time-vr { width: auto; height: 1px; align-self: stretch; }
  .marcus-auds { flex: none; }

  .marcus-alys { flex-direction: column; align-items: stretch; min-height: 0; overflow: visible; }
  .marcus-alys-copy { width: 100%; padding-block: var(--spacing-step-10); gap: var(--spacing-step-8); justify-content: flex-start; }
  /* the visual becomes its own edge-to-edge block below the copy (5118-41506),
     from its own mobile export — the desktop art crops the labels off here */
  .marcus-alys-visual {
    position: static;
    width: 113.115%;
    height: auto;
    margin-inline: -6.557%;
    aspect-ratio: 414 / 247;
    background-image: var(--marcus-alys-visual-mobile, url("../img/marcus-alys-visual-mobile.jpg"));
    background-position: center;
  }

  .marcus-faq-head { max-width: none; }
  .marcus-faq-row { flex-direction: column; }
  .marcus-faq-media { flex: none; order: -1; aspect-ratio: 366 / 291; }

  .marcus-data { align-items: flex-start; gap: var(--spacing-step-8); }
  .marcus-data-head { text-align: left; }
  .marcus-data-list { grid-template-columns: 1fr; gap: var(--spacing-step-6); }
  /* Figma mobile rows 5118-47691: 14px all round, 16px icon gap, 31px icon,
     label = DS p2 (16/24, 75 Bold on mobile) — 366 − 28 − 31 − 16 = 291px
     holds « confidentialité — conforme à la loi 25 » (286px) on one line */
  .marcus-data-row { padding: 14px; gap: var(--spacing-step-6); } /* 14px: Figma, no token */

  .marcus-solutions { flex-direction: column; }
  .marcus-solutions-head { flex: none; }
  .marcus-solutions-cards { flex-direction: column; width: 100%; }

  .marcus-cta { flex-direction: column; align-items: stretch; gap: var(--spacing-step-8); min-height: 775px; justify-content: flex-start; }
  .marcus-cta-half { align-items: flex-start; text-align: left; gap: var(--spacing-step-8); }
  .marcus-cta-text p { margin-inline: 0; }
  .marcus-cta-vr { width: auto; height: 1px; align-self: stretch; }
  .marcus-cta-texture { top: auto; bottom: 0; transform: translate(-50%, 0); width: 160%; }
}
/* « …conforme à la loi 25 » below Figma's 414 frame (390/393 iPhones): same
   type and icon, tighter sides — 8 + 31 + 8 + 287 + 8 = 342 fits the 345px
   row at 390 (Figma's 14/16 leaves only 271px there) */
@media (max-width: 413px) {
  .marcus-data-row { padding-inline: var(--spacing-step-4); gap: var(--spacing-step-4); } /* 8px */
}
