.mobile-programme, .mobile-engagement { display: none; }

@media (max-width: 767px) {
  .parent-section[data-mobile-program-replaced] { display: none; }
  .mobile-programme, .mobile-engagement {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: clamp(40px, 8svh, 68px) var(--mobile-section-copy-inset, 25px) 32px;
    background: var(--black);
    color: var(--blanc);
    font-family: Bourgeois, Arial, sans-serif;
    overflow-anchor: none;
  }
  .mobile-programme__title {
    margin: 0;
    font-size: var(--mobile-section-title-font-size, 2.3rem);
    font-weight: inherit;
    line-height: .95;
    text-transform: uppercase;
  }
  .mobile-programme__title span { color: var(--yellow); }
  .mobile-programme p,
  .mobile-programme__toggle,
  .mobile-programme__modules,
  .mobile-engagement p,
  .mobile-day-intro .mobile-day-intro__origins .hero-video-cta {
    font-size: var(--mobile-section-copy-font-size, max(16px, 1rem));
    font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .mobile-programme__intro { margin: var(--mobile-section-copy-gap, 1.125rem) 0 0; }
  .mobile-programme__modules { line-height: 1.4; }
  .mobile-programme { --mobile-programme-weeks-gap: clamp(32px, 5svh, 44px); --mobile-programme-row-inset: 20px; }
  .mobile-programme__weeks { margin-top: var(--mobile-programme-weeks-gap); border-bottom: 1px solid #2a2a2a; }
  .mobile-programme__week {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    overflow: hidden;
  }
  .mobile-programme__week[data-programme-suppressed] { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
  .mobile-programme__week-inner { min-height: 0; overflow: hidden; }
  .mobile-programme__week-title { margin: 0; border-top: 1px solid #2a2a2a; }
  .mobile-programme__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: var(--mobile-programme-row-inset) 0;
    padding-right: 12px;
    border: 0;
    background: transparent;
    color: var(--blanc);
    font-family: inherit;
    font-size: var(--mobile-section-subtitle-font-size);
    font-weight: var(--mobile-section-subtitle-font-weight);
    line-height: 1.1;
    white-space: nowrap;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease;
  }
  .mobile-programme__toggle[aria-expanded="true"] {
    color: var(--yellow);
    padding-bottom: calc(var(--mobile-programme-row-inset) * .8);
  }
  .mobile-programme__toggle:focus-visible { outline: 1px solid var(--yellow); outline-offset: -3px; }
  .mobile-programme__details { overflow: hidden; }
  .mobile-programme__details[hidden] { display: none; }
  .mobile-programme__details p { margin: 0 0 20px; }
  .mobile-programme__week .mobile-programme__details > p { color: var(--mobile-section-copy-color, #a0a0a0); }
  .mobile-programme__asterisk {
    position: static;
    vertical-align: super;
    font-size: .7em;
    line-height: 0;
    color: var(--mobile-section-copy-color, #a0a0a0);
  }
  .mobile-programme__resources {
    display: grid;
    grid-template-rows: 1fr;
    margin-top: var(--mobile-programme-weeks-gap);
    opacity: 1;
    visibility: visible;

  }
  .mobile-programme__resources[data-programme-suppressed] {
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;

  }
  .mobile-programme__resources p {
    min-height: 0;
    position: relative;
    margin: 0;
    font-size: var(--mobile-section-copy-font-size, 15.5px);
    letter-spacing: -.01em;
    color: var(--mobile-section-copy-color, #a0a0a0);
    text-transform: none;
  }
  .mobile-programme__resources .mobile-programme__asterisk {
    position: absolute;
    left: -.5rem;
    top: .3em;
    font-size: 1.05em;
  }
  .mobile-programme__journey {
    --programme-step-gap: 7.5px;
    display: grid;
    gap: var(--programme-step-gap);
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
  }
  .mobile-programme__step { position: relative; }
  .mobile-programme__step::before {
    content: '';
    position: absolute;
    z-index: 1;
    left: 26px;
    top: calc(50% + 19.2px);
    bottom: calc(-50% - var(--programme-step-gap) + 19.2px);
    width: 1px;
    background: linear-gradient(to bottom, transparent, #606060 30%, #606060 70%, transparent);
  }
  .mobile-programme__step:last-child::before { display: none; }
  .mobile-programme__step-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 57px;
    padding: 7px 10px;
    border: 0;
    background: transparent;
  }
  .mobile-programme__step-marker {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    justify-self: center;
    width: 38.4px;
    height: 38.4px;
    border: 0;
    background: transparent;
  }
  /* SVG viewBoxes trim export margins so this shared size matches the visible drawings. */
  .mobile-programme__step-artwork {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
  .mobile-programme__week-introduction {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-inline: 10px;
    margin-bottom: 20px;
  }
  .mobile-programme__week-introduction::after {
    content: '';
    position: absolute;
    left: 26px;
    top: calc(50% + 19.2px);
    /* Continue across the 20px gap to the first 57px weekend row. */
    bottom: calc(-20px - 57px / 2 + 19.2px);
    width: 1px;
    background: linear-gradient(to bottom, transparent, #606060 30%, #606060 70%, transparent);
    pointer-events: none;
  }
  .mobile-programme__week .mobile-programme__week-introduction p {
    margin: 2px 0 0;
    color: var(--mobile-section-copy-color, #a0a0a0);
    text-transform: none;
  }
  .mobile-programme__step-copy { min-width: 0; }
  .mobile-programme__step-title,
  .mobile-programme__step-description {
    display: block;
    font-size: var(--mobile-section-copy-font-size, 15.5px);
    font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .mobile-programme__step-title { color: var(--blanc); font-weight: 500; }
  .mobile-programme__step-description {
    margin-top: 2px;
    color: var(--mobile-section-copy-color, #a0a0a0);
    text-transform: none;
    white-space: normal;
  }
  .mobile-programme__modules {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    color: #c8c8c8;
  }
  .mobile-programme__modules li { overflow-wrap: anywhere; }
  .mobile-programme__evolution { margin: 32px 0 0; color: #a0a0a0; }

  .mobile-engagement__selector { margin-top: clamp(28px, 4.5svh, 38px); }
  .mobile-engagement .mobile-engagement__time-note { margin: 20px 0 0; color: var(--mobile-section-copy-color, #a0a0a0); font-size: var(--mobile-section-indication-font-size, 14.5px); font-weight: 400; line-height: 1.4; text-transform: none; }
  .mobile-engagement .mobile-engagement__time-note p { margin: 0; font: inherit; text-transform: none; }
  .mobile-engagement .mobile-engagement__time-note p + p { margin-top: 16px; }
  .mobile-engagement__time-note strong { display: block; margin-bottom: 4px; color: var(--blanc, #fff); font-weight: 500; text-transform: uppercase; }
  .mobile-engagement__comparison {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .mobile-engagement__comparison::before,
  .mobile-engagement__comparison::after {
    content: '';
    position: absolute;
    background: #2a2a2a;
    pointer-events: none;
  }
  .mobile-engagement__comparison::before {
    inset: 0 auto 0 50%;
    width: 1px;
    transform: translateX(-50%);
  }
  .mobile-engagement__comparison::after {
    inset: 50% 0 auto;
    height: 1px;
    transform: translateY(-50%);
  }
  .mobile-engagement__level {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 168px;
    padding: 16px 8px;
    color: var(--blanc);
    font-family: inherit;
    text-align: center;
  }
  .mobile-engagement__name {
    margin: 0;
    font-size: var(--mobile-section-subtitle-font-size);
    font-weight: var(--mobile-section-subtitle-font-weight);
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .mobile-engagement__rank-icon {
    display: block;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    object-fit: contain;
    transform: translateY(var(--rank-icon-offset, 1px)) scale(var(--rank-icon-scale, 1));
  }
  /* Preserve the optical balance of the four supplied contour drawings. */
  .mobile-engagement__rank-icon.is--recrue { --rank-icon-scale: .88; }
  .mobile-engagement__rank-icon.is--veteran { --rank-icon-offset: -.75px; }
  .mobile-engagement__rank-icon.is--mercenaire {
    --rank-icon-scale: 1.18;
    --rank-icon-offset: 2px;
  }
  .mobile-engagement__duration {
    color: var(--mobile-section-copy-color);
    font-size: var(--mobile-section-copy-font-size, 15.5px);
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
  }
  .mobile-day-intro .mobile-day-intro__origins .hero-video-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: .7rem .55rem;
    border: 1px solid #2a2a2a;
    border-radius: 0;
    background: transparent;
    color: #a0a0a0;
    font-family: inherit;
    font-size: var(--mobile-section-button-font-size, max(16px, 1rem));
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
  }
  .mobile-day-intro .mobile-day-intro__origins .hero-video-cta {
    /* Enlarge equally around the compact button's original centre. */
    --origins-button-extra-height: calc(44px * .08);
    min-height: calc(44px + var(--origins-button-extra-height));
    padding-block: calc(.7rem + var(--origins-button-extra-height) / 2);
    margin-block: calc(var(--origins-button-extra-height) / -2);
  }
  .mobile-engagement__details { overflow: hidden; text-align: left; }
  .mobile-engagement__details[hidden] { display: none; }

  .mobile-engagement__habit-summary {
    margin: 0;
    color: var(--blanc);
  }
  .mobile-engagement__detail { margin: 8px 0 0; color: var(--mobile-section-copy-color); }
  .mobile-engagement__details p { line-height: 1.4; }
  .mobile-engagement__habit-summary span,
  .mobile-engagement__detail span { color: var(--yellow); }

  @media (prefers-reduced-motion: reduce) {
    .mobile-programme__resources,
    .mobile-programme__resources[data-programme-suppressed] { transition: none; }
    .mobile-programme__week,
    .mobile-programme__toggle,
    .mobile-programme__toggle::after { transition: none; }
    .mobile-day-intro .mobile-day-intro__origins .hero-video-cta { transition: none; }
  }
}
