/* ============================================================
   medO gestionnaires de clinique — page styles  (MDS Templates plugin)
   Figma 6366-18152 (desktop 1920). Forked from mds-corps-medical.css:
   same section family (hero, split, 3-tab carousel, band, flow,
   integrations, testimonials, cards, CTA). No mobile frame exists:
   the ≤1023 layout follows the acto / alys / corps mobile patterns.

   Loaded only on posts that contain the [mds_gestionnaires] shortcode.
   Typography always comes from the DS classes in the markup
   (.h2/.h4/.h5/.h6, .text-p1-.text-p4 + .fw-*) - this file
   carries layout, colour and documented deviations only.
   ============================================================ */
.gest-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^="gest-"], [class*=" gest-"] { box-sizing: border-box; }

/* 1420 content container, sized as a % of the 1920 design width and centred */
.gest-in {
  width: calc(100% - 2 * var(--section-gutter)); /* 1420 cap, gutters below it */
  max-width: var(--section-container);
  margin-inline: auto;
}
.gest-pad { padding-block: var(--spacing-step-11); } /* 64px */

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

/* viewfinder corners (Figma Vector 20/24: 24px, 1px stroke) */
.gest-brackets { position: relative; }
.gest-brackets > .c { position: absolute; width: 24px; height: 24px; pointer-events: none; color: var(--site-accent); }
.gest-brackets > .c svg { width: 100%; height: 100%; display: block; }
.gest-brackets > .tr { top: 0; right: 0; }
.gest-brackets > .br { bottom: 0; right: 0; transform: rotate(90deg); }
.gest-brackets > .bl { bottom: 0; left: 0; transform: rotate(180deg); }
.gest-brackets > .tl { top: 0; left: 0; transform: rotate(270deg); }

/* ============================================================
   1. Hero (6366-18158) — one flattened background: reception photo,
   medO mark and the masked brand gradient exported together.
   ============================================================ */
.gest-hero {
  display: flex;
  align-items: center;
  min-height: 568px;
  background: var(--gest-hero-bg, url("../img/gest-hero.jpg")) center / cover no-repeat;
  color: var(--neutrals-100-white);
}
.gest-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;
  margin-top: -15px; /* Figma centres the block 7.5px above the band's midline */
}
.gest-hero-text { display: flex; flex-direction: column; gap: var(--spacing-step-6); }
.gest-hero-text h1 { max-width: 695px; } /* Figma title box is 695 wide, wider than its 677 column */

/* ============================================================
   2. Pensés pour votre équipe (6366-18179)
   ============================================================ */
.gest-temps { display: flex; align-items: center; gap: var(--spacing-step-10); padding-block: var(--spacing-step-11); }
.gest-temps-media {
  flex: 0 0 44.37%; /* 630/1420 */
  border-radius: var(--radius-7md); /* 16px */
  overflow: hidden;
}
.gest-temps-media img { display: block; width: 100%; height: auto; aspect-ratio: 630 / 565; object-fit: cover; }
.gest-temps-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 65px; /* Figma copy → button, no token */
  color: var(--neutrals-950);
}
.gest-temps-head { display: flex; flex-direction: column; gap: var(--spacing-step-6); }
/* the DS .check-list li hard-codes P3; this list is P2, so the size rides on the
   .text-p2 that sits on the <ul> and the items simply inherit it */
.gest-temps .check-list { gap: var(--spacing-step-4); }
.gest-temps .check-list li { font-size: inherit; line-height: inherit; }
/* Figma ticks sit on the "Gradient V1" disc (#017dc8 → #0064c6), not a flat blue */
.gest-temps .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23017dc8'/%3E%3Cstop offset='1' stop-color='%230064c6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='10' cy='10' r='10' fill='url(%23g)'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ============================================================
   3. Le bon outil, au bon moment (6366-18205) — features carousel,
   component set 6366-18814 (3 variants, same art as corps médical's).
   CSS-only: 3 radios drive the tab chrome and the panels together.
   ============================================================ */
.gest-features { display: flex; flex-direction: column; gap: var(--spacing-step-10); }
/* Figma's frame leaves 128 below the stage, but with the next section's own 64
   that read as a 192px hole (client feedback 2026-10-20) — back to the page's
   standard 64 + 64 rhythm */
.gest-features-pad { padding-bottom: var(--spacing-step-11); } /* 64px */
.gest-features-head { display: flex; align-items: flex-start; gap: var(--spacing-step-6); color: var(--neutrals-950); }
.gest-features-head > * { flex: 1 1 0; min-width: 0; margin: 0; }
.gest-feat { position: relative; }
.gest-feat > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.gest-feat-stage {
  position: relative;
  aspect-ratio: 1420 / 745;
  border-radius: var(--radius-7md);
  overflow: hidden;
  box-shadow: 0 var(--dropshadow-positioning-2xs) var(--dropshadow-blur-2xs-2) var(--opacity-dark-10);
}
.gest-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 */
.gest-feat-panel::before,
.gest-feat-panel::after { content: ""; position: absolute; pointer-events: none; }
.gest-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%);
}
.gest-feat-panel::after {
  inset: 0;
  background: radial-gradient(51.83% 114.23% at 10.28% 72.62%, var(--feat-scrim-stops));
}
.gest-feat-copy {
  position: absolute;
  left: 1.83%;   /* 26/1420 */
  bottom: 6.71%; /* 50/745 */
  width: var(--panel-w, 33.66%); /* 478/1420 */
  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);
}
.gest-feat-head { display: flex; flex-direction: column; gap: var(--spacing-step-6); }
.gest-feat-head .h5 { white-space: nowrap; }
.gest-feat-desc { color: var(--opacity-light-90); }
.gest-feat-tabs {
  position: absolute;
  left: 1.83%;
  right: 1.83%;
  top: 3.22%; /* 24/745 */
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-step-4);
  z-index: 2;
}
.gest-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;
}
.gest-feat-tab:hover { background: var(--opacity-light-30); }
.gest-feat-tab .gest-ico { width: 24px; height: 24px; }
/* the blue progress fill sweeps left→right under the label */
.gest-feat-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--primary-default);
}
.gest-feat-tab > :not(.gest-feat-fill) { position: relative; z-index: 1; }

/* ── autoplay: 3 slides × 3s, looping ── */
@keyframes gest-panel {
  0%    { opacity: 0; visibility: hidden; }
  1%    { opacity: 1; visibility: visible; }
  33.3% { opacity: 1; visibility: visible; }
  36%   { opacity: 0; visibility: hidden; }
  100%  { opacity: 0; visibility: hidden; }
}
@keyframes gest-fill-1 { 0%         { width: 0; } 33.3% { width: 100%; } 100% { width: 100%; } }
@keyframes gest-fill-2 { 0%, 33.3%  { width: 0; } 66.6% { width: 100%; } 100% { width: 100%; } }
@keyframes gest-fill-3 { 0%, 66.6%  { width: 0; } 100%  { width: 100%; } }

.gest-feat-panel { animation: gest-panel 9s linear infinite both; }
.gest-feat-panel:nth-of-type(2) { animation-delay: -6s; }
.gest-feat-panel:nth-of-type(3) { animation-delay: -3s; }
.gest-feat-fill { animation: 9s linear infinite both; }
.gest-feat-tab:nth-of-type(1) .gest-feat-fill { animation-name: gest-fill-1; }
.gest-feat-tab:nth-of-type(2) .gest-feat-fill { animation-name: gest-fill-2; }
.gest-feat-tab:nth-of-type(3) .gest-feat-fill { animation-name: gest-fill-3; }

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

/* picking a tab takes over: autoplay stops and that slide stays put.
   The radios therefore ship UNCHECKED — a pre-checked one would kill autoplay. */
.gest-feat:has(> input:checked) .gest-feat-panel,
.gest-feat:has(> input:checked) .gest-feat-fill { animation: none; }
.gest-feat:has(> input:checked) .gest-feat-panel { opacity: 0; visibility: hidden; }
.gest-feat:has(> input:checked) .gest-feat-fill { width: 0; }
.gest-feat:has(> input:nth-of-type(1):checked) .gest-feat-tab:nth-of-type(1) .gest-feat-fill,
.gest-feat:has(> input:nth-of-type(2):checked) .gest-feat-tab:nth-of-type(2) .gest-feat-fill,
.gest-feat:has(> input:nth-of-type(3):checked) .gest-feat-tab:nth-of-type(3) .gest-feat-fill { width: 100%; }
.gest-feat:has(> input:nth-of-type(1):checked) .gest-feat-panel:nth-of-type(1),
.gest-feat:has(> input:nth-of-type(2):checked) .gest-feat-panel:nth-of-type(2),
.gest-feat:has(> input:nth-of-type(3):checked) .gest-feat-panel:nth-of-type(3) { opacity: 1; visibility: visible; }

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

/* ============================================================
   4. Votre clinique, bien en main (6366-18211) — title over a
   2-column accolade grid. Figma is a 710px flex-wrap with mr -1px
   (columns share a hairline) and rows that keep their own height
   (align-start), so short cards leave the gaps the design shows.
   ============================================================ */
.gest-main { display: flex; flex-direction: column; gap: var(--spacing-step-10); color: var(--neutrals-950); } /* 48px */
.gest-main-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.gest-main-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-step-4);
  padding: var(--spacing-step-7);
  /* Figma strokes sit inside the card, so the hairline is an inset shadow */
  box-shadow: inset 0 0 0 1px var(--neutrals-400);
}
.gest-main-item:nth-child(even) { margin-left: -1px; } /* Figma mr-[-1px]: the columns share one hairline */
.gest-main-item .gest-ico { width: 28px; height: 28px; color: var(--primary-default); }
.gest-main-item .gest-ico.is-24 { width: 24px; height: 24px; } /* « Les rendez-vous » sits in a 24px icon frame */
.gest-main-body { display: flex; flex-direction: column; justify-content: center; gap: var(--spacing-step-3); }
.gest-main-body .t { color: var(--neutrals-950); }
.gest-main-body .d { color: var(--neutrals-800); }

/* ============================================================
   5. Votre allié dans la gestion d'une clinique (6366-18280) — blue
   band. Same art as corps médical's band (diff 2/255), so the bundled
   corps-band(-mobile) files are shared; --gest-band-bg comes from ACF.
   ============================================================ */
.gest-band {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 376px;
  padding: var(--spacing-step-10) var(--spacing-step-7); /* 48px 24px */
  background: var(--gest-band-bg, url("../img/corps-band.jpg")) center / cover no-repeat;
  color: var(--neutrals-100-white);
}
.gest-band-text { display: flex; flex-direction: column; gap: var(--spacing-step-4); width: 28.5%; } /* 391 of the 1372 content box */
.gest-band-text .h5 { width: 101.5%; } /* Figma title box is 397, 6px wider than its column */
/* mobile-only spacer that reserves the portrait area of the card */
.gest-band-art { display: none; }

/* ============================================================
   6. Avant, pendant, après la consultation (6366-18298) — head,
   then a centred certification line above the 205px step row
   ============================================================ */
.gest-flow { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-step-6); } /* 16px */
.gest-flow-pad { padding-block: var(--spacing-step-11); }
.gest-flow-note { margin: 0 0 var(--spacing-step-7); text-align: center; color: var(--neutrals-950); } /* 24px above the row */
.gest-flow-body { width: 100%; }
.gest-flow-head {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-step-6);
  width: 58.17%; /* 826/1420 */
  text-align: center;
  color: var(--neutrals-950);
}
.gest-flow-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 205px; /* Figma's fixed step row */
}
.gest-flow-step {
  flex: 0 0 13.94%; /* 198/1420 */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gest-flow-tag {
  width: 100%;
  margin-top: 1.5px;
  padding: var(--spacing-step-4) var(--spacing-step-7); /* 8px 24px */
  text-align: center;
  background: rgb(0 106 250 / 0.1); /* Figma tint, not a token */
  color: var(--primary-default);
}
.gest-flow-logo { display: block; height: 24px; width: auto; margin-top: 38.5px; } /* Figma tag bottom → logo top */
.gest-flow-logo.is-alys { height: 29px; }
.gest-flow-logo-link { display: block; transition: opacity 0.2s ease; } /* logo links to its product page */
.gest-flow-logo-link:hover { opacity: 0.75; }
.gest-flow-list { margin: 11px 0 0; padding-left: 24px; color: var(--neutrals-950); }
/* dotted connector (Vector 70: 154px, 1px #0c67e9, dash 2/2) centred in each 228px gutter */
.gest-flow-link { flex: 0 0 16.06%; display: flex; justify-content: center; padding-top: 23px; }
.gest-flow-link::before {
  content: "";
  width: 67.54%; /* 154/228 */
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--primary-default) 0 2px, transparent 2px 4px);
}

/* ============================================================
   7. Intégrations et certifications (6366-18332) — full-bleed glow
   background: the same export as facturation médicale's (same node
   crop, 1920×460), white copy, TGV card
   ============================================================ */
.gest-integr {
  min-height: 460px;
  background: var(--gest-integr-bg, url("../img/fact-integrations.jpg")) center / cover no-repeat;
  color: var(--neutrals-100-white);
}
.gest-integr-inner { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-step-10); }
.gest-integr-head { display: flex; flex-direction: column; gap: var(--spacing-step-6); width: 58.17%; text-align: center; }
.gest-integr-head p { margin: 0; }
.gest-cert {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 91px; /* Figma, no token */
  width: 81.9%; /* 1163/1420 */
  padding: var(--spacing-step-7);
  background: var(--opacity-light-20);
}
.gest-cert > .c { color: var(--neutrals-100-white); }
.gest-cert-l { display: flex; align-items: center; gap: var(--spacing-step-7); }
.gest-cert-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--opacity-light-30);
  border: 1.2px solid var(--opacity-light-10);
  color: var(--neutrals-100-white);
}
.gest-cert-ico svg { width: 29.5px; height: 34.5px; }
.gest-cert-txt { display: flex; flex-direction: column; gap: var(--spacing-step-3); }

/* ============================================================
   8. La confiance, ça se mérite (6366-18355) — DS .testimonials,
   corps médical's set 6369-19716 unchanged
   ============================================================ */
.gest-testi-wrap { display: flex; flex-direction: column; gap: var(--spacing-step-8); }
.gest-trust-title { color: var(--neutrals-950); }
/* slides 3–4 share the square acto illustration; the Figma box is 485×369.33 */
.gest-testi .testimonial-photo.is-illustration { aspect-ratio: 485 / 369.33; }
.gest-testi .testimonial-photo.is-illustration img { height: 100%; object-fit: cover; }
/* the DS leaves .testimonial-logo img at its natural size, so wide logos are
   clipped by the 64px tile; Figma fits them: 64×33 (St-Georges), 48×30 (Hampstead) */
.gest-testi .testimonial-logo img { width: 100%; height: auto; }
.gest-testi .testimonial-logo img.is-narrow { width: 75%; }

/* ============================================================
   9. Le soin, la gestion, la facturation (6366-18360)
   ============================================================ */
.gest-solutions { display: flex; align-items: flex-start; gap: var(--spacing-step-6); padding: 49px 0 var(--spacing-step-11); } /* Figma 49/64, no 49px token */
.gest-solutions-head { flex: 0 0 36.76%; color: var(--neutrals-950); } /* 522/1420 */
.gest-solutions-cards { flex: 1 1 0; min-width: 0; display: flex; align-items: stretch; gap: var(--spacing-step-6); }
.gest-solutions-cards .card-product { flex: 1 1 0; min-width: 0; justify-content: space-between; }
.gest-solutions-cards .card-ghost { height: 23px; }
.gest-solutions-cards .card-ghost .btn-icon { width: 16px; height: 16px; }

/* ============================================================
   10. CTA (6366-18368) — same flattened gradient + colour-burn
   texture as acto's CTA, centred copy (948px title, 738px text)
   ============================================================ */
.gest-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 494px;
  padding: var(--spacing-step-10) var(--spacing-step-7); /* 48px 24px */
  background: var(--gest-cta-bg, url("../img/acto-cta.jpg")) center / cover no-repeat;
  color: var(--neutrals-100-white);
}
.gest-cta-text { display: flex; flex-direction: column; align-items: center; gap: var(--spacing-step-6); text-align: center; }
.gest-cta-text .h4 { max-width: 948px; }
.gest-cta-text p { max-width: 738px; }
.gest-cta-actions { display: flex; align-items: center; gap: var(--spacing-step-6); }

/* 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; margin-right: 34px; background-clip: padding-box; border-radius: 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-color: transparent; }
.qa-hover.mds-nav-cta { padding: 7px 21px; margin-right: 31px; border-radius: 25px; }

/* ============================================================
   Tablet (1024–1439): fixed-geometry blocks get room to breathe
   ============================================================ */
@media (max-width: 1439px) and (min-width: 1024px) {
  .gest-feat-head .h5 { white-space: normal; }
  .gest-feat-copy { width: max(var(--panel-w, 33.66%), 420px); }
  .gest-band-text { width: 40%; }
  .gest-cert { width: 100%; gap: var(--spacing-step-8); }
  .gest-flow-head, .gest-integr-head { width: 80%; }
}

/* ============================================================
   Mobile (≤1023) — no Figma frame; acto / alys mobile patterns
   ============================================================ */
@media (max-width: 1023px) {
  .gest-in { width: 88.406%; } /* 366/414 */
  .gest-pad, .gest-flow-pad { padding-block: var(--spacing-step-10); } /* 48px */

  /* hero: copy on the brand gradient, clinic photo along the bottom */
  .gest-hero {
    min-height: 750px;
    align-items: flex-start;
    background: var(--gest-hero-bg-mobile, url("../img/gest-hero-mobile.jpg")) center bottom / cover no-repeat;
  }
  .gest-hero .gest-in { padding-top: var(--spacing-step-10); }
  .gest-hero-copy { width: 100%; min-width: 0; margin-top: 0; gap: var(--spacing-step-8); }
  .gest-hero-text p br { display: none; }

  /* split: title → photo → text → checklist → button */
  .gest-temps { flex-direction: column; align-items: stretch; gap: 0; padding-block: var(--spacing-step-10); }
  .gest-temps-content, .gest-temps-head { display: contents; }
  .gest-temps-title { order: 1; }
  .gest-temps-media { order: 2; flex: none; margin-top: var(--spacing-step-6); }
  .gest-temps-text { order: 3; margin-top: var(--spacing-step-6); }
  .gest-temps .check-list { order: 4; margin-top: var(--spacing-step-6); }
  .gest-temps-content > .btn-pill { order: 5; margin-top: var(--spacing-step-8); align-self: flex-start; }

  .gest-features { gap: var(--spacing-step-7); }
  .gest-features-head { flex-direction: column; }
  .gest-features-head > * { flex: none; }
  .gest-feat-stage { aspect-ratio: 366 / 687; }
  .gest-feat-panel { background-position: var(--panel-pos-m, 62%) center; }
  .gest-feat-panel::before { height: 18.92%; } /* 130/687 */
  .gest-feat-panel::after {
    background: radial-gradient(201.09% 123.87% at 39.89% 78.75%, var(--feat-scrim-stops));
  }
  .gest-feat-tabs {
    left: 0; right: 0; top: 24px;
    padding-inline: var(--spacing-step-6);
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gest-feat-tabs::-webkit-scrollbar { display: none; }
  .gest-feat-tab { padding: 10px var(--spacing-step-6); }
  .gest-feat-copy { left: var(--spacing-step-6); right: var(--spacing-step-6); width: auto; bottom: var(--spacing-step-7); gap: var(--spacing-step-7); }
  .gest-feat-head .h5 { white-space: normal; }
  .gest-feat-desc br { display: none; }

  /* accolades: title → single column, rows overlap their hairlines */
  .gest-main { gap: var(--spacing-step-8); }
  .gest-main-grid { grid-template-columns: 1fr; }
  .gest-main-item:nth-child(even) { margin-left: 0; }
  .gest-main-item + .gest-main-item { margin-top: -1px; }
  .gest-main-body .d br { display: none; } /* the desktop row-height filler line */

  /* band becomes an inset card: copy, button, then the portrait inside */
  .gest-band {
    min-height: 0;
    justify-content: flex-start;
    gap: var(--spacing-step-7);
    padding: var(--spacing-step-7) var(--spacing-step-7) 0;
    background-image: var(--gest-band-bg-mobile, url("../img/corps-band-mobile.jpg"));
    background-position: center bottom;
  }
  .gest-band-text { width: 100%; }
  .gest-band-text .h5 { width: auto; }
  .gest-band-art { display: block; width: calc(100% + 2 * var(--spacing-step-7)); margin-inline: calc(-1 * var(--spacing-step-7)); aspect-ratio: 549 / 356; }

  /* flow: the three steps stack, connectors turn vertical */
  .gest-flow-head { width: 100%; }
  .gest-flow-head p br { display: none; }
  .gest-flow-row { flex-direction: column; align-items: center; min-height: 0; }
  .gest-flow-step { flex: none; width: 198px; }
  .gest-flow-tag { margin-top: 0; }
  .gest-flow-logo { margin-top: var(--spacing-step-7); }
  .gest-flow-link { flex: none; height: 64px; padding-top: 0; align-items: center; }
  .gest-flow-link::before {
    width: 1px;
    height: 40px;
    background: repeating-linear-gradient(180deg, var(--primary-default) 0 2px, transparent 2px 4px);
  }

  .gest-integr-head { width: 100%; text-align: left; }
  .gest-cert { width: 100%; flex-direction: column; align-items: flex-start; gap: var(--spacing-step-7); }
  .gest-cert-l { align-items: flex-start; gap: var(--spacing-step-6); }
  .gest-cert-txt br { display: none; }

  .gest-solutions { flex-direction: column; padding-block: var(--spacing-step-10); }
  .gest-solutions-head { flex: none; }
  .gest-solutions-cards { flex-direction: column; width: 100%; }

  .gest-cta {
    min-height: 775px;
    justify-content: flex-start;
    align-items: flex-start;
    background-image: var(--gest-cta-bg-mobile, url("../img/acto-cta-mobile.jpg"));
  }
  .gest-cta-text { align-items: flex-start; text-align: left; }
  .gest-cta-text br { display: none; }
  /* stacked pills share one width: a single max-content track sized by the
     wider button, both stretched to it (hover still trades padding for the
     34px margin, so the footprint holds); content stays left-aligned (icon + label at the start) —
     same fix as the facturation CTA */
  .gest-cta-actions { display: grid; grid-template-columns: max-content; justify-content: start; margin-top: var(--spacing-step-4); }
}
