/* Dimensions adaptees aux libelles du Coach ; design des controles identique a PRIME. */
.choices.coach-selector{display:flex;width:max-content;max-width:100%;flex-wrap:nowrap;gap:5px;margin:30px 0 15px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#67707a transparent}
.choices.coach-selector button{flex:0 0 auto;white-space:nowrap}
.training>.coach-selector{margin:34px auto 0}
.memory-example-context{font-size:14px;line-height:1.6;color:var(--muted);max-width:43ch;margin:0 auto 24px}
@media(max-width:760px){.training>.coach-selector{margin:28px 0 0}.training-layout{margin-top:24px}}

.programme-fin h2{line-height:1.1}.programme-fin h2 em{color:#f7f3ed}.programme-footer{font:400 16px/1.65 TRNR,sans-serif}

.nutrition .copy{width:100%;min-width:0}.choices.coach-selector{min-width:0}

@media(min-width:651px){.programme-band__line span{font-size:clamp(20px,2.6vw,37px)}}
@media(min-width:651px) and (max-width:1000px){.programme-band__line{width:90%;gap:16px}.programme-band__line span{font-size:clamp(18px,2.5vw,25px)}}

.training-layout,.training-device,.memory-device{min-width:0;max-width:100%}
.memory-story{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr)}
.memory-device .phone,.training-device .phone{max-width:100%}
@media(max-width:1100px){.memory-story{grid-template-columns:minmax(0,1fr) 45px minmax(0,1fr)}}
@media(max-width:760px){.memory-story{grid-template-columns:minmax(0,1fr)}.training-layout{width:100%}.training-device{width:100%}.story-label h3{min-width:0}}

.hero .hero-discovery span{color:inherit}

.session-device{min-width:0}.session-device .coach-selector{margin:24px auto 0;max-width:100%}.session-demo-caption{text-align:center;margin:16px 0 0;font-size:12px}

.evolution-observations{display:grid;gap:22px;margin:32px 0}.evolution-observations article{display:flex;align-items:flex-start;gap:20px}.evolution-observations article>span{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:50%;background:#c6a05222;color:#8a6928;font-size:13px;font-weight:700}.evolution-observations h3{font-size:20px;margin:0 0 5px}.evolution-observations p{font-size:15px;margin:0;max-width:34ch}

/* Composition groupée de face, écrans individuels sur mobile. */
.programme-context{padding-top:110px;padding-bottom:100px}.programme-selector{margin:36px auto 48px!important}.programme-panel[hidden]{display:none}.programme-intro{display:grid;grid-template-columns:1fr 2fr;gap:32px;align-items:start;margin-bottom:48px}.programme-name{font:400 clamp(32px,4vw,52px)/1 Accent,sans-serif;color:var(--programme-accent);margin:0}.programme-intro h3{font-size:25px;margin:0 0 12px}.programme-intro p{max-width:60ch}.programme-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:38px;align-items:start}.programme-scenes figure{margin:0;min-width:0;width:100%;justify-self:center}.programme-scenes figcaption{font-size:17px;font-weight:400;display:flex;gap:12px;align-items:center;margin:0 0 25px;justify-content:center}.programme-scenes figcaption span{color:var(--programme-accent);font-size:12px}.programme-device,.programme-scenes .phone{height:650px;width:100%;margin:0;max-width:100%}.programme-device svg,.programme-device img,.programme-scenes .phone svg{display:block;width:100%;height:100%;object-fit:contain}.programme-music p{font-size:14px;color:var(--muted);margin:24px 0 0;text-align:center}.programme-note{text-align:center;margin-top:36px;font-size:12px}.phone:has(foreignObject){filter:none}
@media(min-width:761px) and (max-width:1100px){.programme-scenes{gap:20px}.programme-device,.programme-scenes .phone{height:480px}}
@media(max-width:760px){.programme-context{padding-top:68px;padding-bottom:68px}.programme-intro{grid-template-columns:1fr;gap:16px;margin-bottom:32px}.programme-intro h3{font-size:23px}.programme-scenes{grid-template-columns:minmax(0,1fr);gap:48px}.programme-scenes figure{width:min(100%,330px);margin:auto}.programme-scenes .programme-music{width:min(100%,330px)}.programme-device,.programme-scenes .phone{height:auto}.programme-device svg,.programme-device img,.programme-scenes .phone svg{height:auto}.programme-scenes figcaption{margin-bottom:20px;justify-content:flex-start}.programme-selector{margin:28px auto 32px!important}.programme-note{font-size:12px}.programme-name{font-size:36px}}

/* Pose 05 : un seul trio, Coach central, cadres argent/noir du pack natif. */
.programme-trio{margin:0 auto;max-width:880px}.programme-trio img{display:block;width:100%;height:auto}.programme-trio figcaption{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:30px;text-align:center;font-size:16px;margin-top:0;color:var(--muted)}.programme-trio figcaption strong{font-weight:400;color:var(--programme-accent)}
@media(min-width:761px){.programme-scenes{display:none}.programme-intro{margin-bottom:25px}}
@media(max-width:760px){.programme-trio{display:none}}

/* ALPHA: original front-facing group, no angled standalone music device. */
#programme-alpha .programme-trio{max-width:880px}
@media(max-width:760px){#programme-alpha .programme-music{width:min(100%,330px)}}

/* Mobile choices are fully visible; only actual screen decks may swipe. */
@media(max-width:760px){
 .choices.coach-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%;overflow:visible;gap:5px;border-radius:24px}
 .choices.coach-selector button{width:100%;min-width:0;min-height:48px;white-space:normal;text-wrap:balance;line-height:1.35;padding:11px 12px;display:flex;align-items:center;justify-content:center}
 .choices.coach-selector button:last-child:nth-child(odd){grid-column:1/-1}
 .choices.coach-selector button:focus-visible{outline-offset:-3px}
}

/* Programme views share a stable viewport. */
.programme-panels{display:grid;isolation:isolate;overflow:hidden;opacity:1}
.programme-panels .programme-panel{grid-area:1/1;min-width:0;opacity:1;transition:none;visibility:hidden;pointer-events:none;contain:paint}
.programme-panels .programme-panel.is-active{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
.screen-selector{display:none!important}
@media(max-width:760px){
 .programme-panels .programme-panel{display:flex;flex-direction:column}
 .programme-intro{flex:1;margin-bottom:20px}
 .choices.coach-selector.screen-selector{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 0 18px}
 .choices.coach-selector.screen-selector button{font-size:13px;padding:10px 4px;min-height:44px}
 .choices.coach-selector.screen-selector button:last-child{grid-column:auto}
 .programme-scenes{display:flex;gap:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;width:100%;align-items:stretch;border-radius:8px}
 .programme-scenes::-webkit-scrollbar{display:none}
 .programme-scenes figure,.programme-scenes .programme-music{flex:0 0 100%;width:100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always;padding:0 12px;contain:paint}
 .programme-scenes figcaption{justify-content:center;font-size:14px;margin:0 0 16px}
 .programme-device,.programme-scenes .phone{width:100%;max-width:300px;height:auto;margin:0 auto}
 .programme-device svg,.programme-scenes .phone svg{width:100%;height:auto}
 .programme-music p{font-size:12px;margin-top:14px}
 .programme-note{margin-top:22px}
}
@media(prefers-reduced-motion:reduce){.programme-panels,.programme-panels .programme-panel{transition:none}}

@media(max-width:760px){.training-side{order:2}.training-device{order:1}}

/* HTML conversations stay outside the SVG; all dimensions follow the native screen. */
.phone-dialogue{position:relative;container-type:inline-size;filter:none;isolation:isolate}
.dialogue-window{position:absolute;left:5.55556%;top:14.9447%;width:88.88889%;height:68.6544%;overflow:hidden;contain:paint;background:#171c22;transition:none;opacity:1}
.dialogue-window .native-dialogue{height:100%;width:100%;overflow:hidden;background:#171c22;color:#d0d5dc;font-family:-apple-system,BlinkMacSystemFont,sans-serif;padding:0 4.44444cqw 2.02020cqw;box-sizing:border-box}
.dialogue-window .native-dialogue p{font-family:inherit;font-size:3.43434cqw;font-weight:400;line-height:1.48;letter-spacing:0;margin:0 0 2.42424cqw}
.dialogue-window .native-dialogue .chat-date{text-align:center;font-size:2.42424cqw;color:#7d8791;margin:1.48148cqw 0 4.04040cqw}
.dialogue-window .native-dialogue .chat-q{color:#171c22;background:#c6a052;border-radius:3.83838cqw 3.83838cqw 1.01010cqw 3.83838cqw;padding:2.82828cqw 3.43434cqw;margin:0 0 4.24242cqw 7.67677cqw;font-weight:500;line-height:1.42;box-shadow:0 0.60606cqw 0.80808cqw #0002}
.dialogue-window .native-dialogue .chat-a{margin:0 0 4.24242cqw}
.dialogue-window .native-dialogue b{font-size:2.42424cqw;font-weight:800;letter-spacing:0.20202cqw;color:#c6a052;display:block;margin-bottom:2.62626cqw}
.dialogue-window .native-dialogue .chat-a p:last-child{margin-bottom:0}
.dialogue-window .chat-attachment{display:block;width:30.30303cqw;height:30.30303cqw;object-fit:cover;max-width:none;border-radius:3.63636cqw;margin:0 0 2.82828cqw auto;border:0.20202cqw solid #ffffff24;box-shadow:0 1.01010cqw 2.02020cqw #0004;background:#f7f3ed}
.dialogue-window .native-dialogue:has(.chat-attachment) .chat-date{margin-bottom:2.35690cqw}
.dialogue-window .native-dialogue:has(.chat-attachment) .chat-q{margin-bottom:3.23232cqw}
.dialogue-window .native-dialogue:has(.chat-attachment) .chat-a{margin-bottom:0}
.dialogue-window .native-dialogue:has(.chat-attachment) .chat-a p{margin-bottom:2.15488cqw}
.dialogue-window .demo-step{opacity:1;visibility:visible;transition:opacity 280ms cubic-bezier(.23,1,.32,1)}
.scene-staging .dialogue-window .demo-step{opacity:0;visibility:visible}
.scene-staging .dialogue-window .demo-step.step-visible{opacity:1}
@media(prefers-reduced-motion:reduce){.dialogue-window,.dialogue-window .demo-step{transition:none!important;opacity:1!important}}

/* Masked device layers are illustrations, never pointer targets outside the screen. */
.phone>svg,.programme-device>svg{pointer-events:none}

/* Tab changes are opaque horizontal slides, never an opacity swap. */
.programme-panels .programme-panel.is-entering{visibility:visible;pointer-events:none}
.dialogue-window>.native-dialogue{position:absolute;inset:0;background:#171c22}

/* On mobile the programme switch stays with the phone it controls. */
@media(max-width:760px){
 .choices.coach-selector.programme-selector{position:sticky;top:8px;z-index:8;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;width:100%;margin:26px 0 14px!important;border-radius:999px;background:#171c22;box-shadow:0 8px 18px #0004}
 .choices.coach-selector.programme-selector button{min-height:44px;font-size:11px;white-space:nowrap;padding:8px 2px}
 .programme-panels .programme-intro{order:3;flex:1;gap:12px;margin:26px 0 0}
 .programme-panels .screen-selector{order:1}
 .programme-panels .programme-scenes{order:2}
 .programme-panels .programme-name{font-size:28px}
 .programme-panels .programme-intro h3{font-size:21px}
 .programme-panels .programme-intro p{font-size:15px}
}

.programme-context{overflow-anchor:none}

/* Center the editorial question mark in its existing column. */
.training-side > .large-number{text-align:center}

/* Programme-page opening: large name above the existing headline. */
.hero-copy .coach-wordmark{display:block;width:min(100%,420px);height:auto;margin:0 0 32px}
@media(max-width:760px){.hero-copy .coach-wordmark{width:min(100%,285px);margin-bottom:24px}}

/* A short mobile action keeps the phone as the dominant visual. */
@media(max-width:760px){
 .hero .hero-copy .hero-discovery{width:max-content;max-width:100%;min-width:0;min-height:48px;padding:12px 18px;gap:12px;font-size:12px;white-space:nowrap}
 .hero .hero-copy .hero-discovery span{font-size:18px;line-height:1}
}

/* Same recessed selector and raised selection, with a light surface on paper. */
.paper .coach-selector{background:#e7e3dd;box-shadow:inset 0 2px 5px #171c2224,0 1px 0 #fff}
.paper .coach-selector button{color:#59616a}
.paper .coach-selector button[aria-pressed=true]{background:linear-gradient(155deg,#fff,#f7f3ed);color:#171c22;box-shadow:inset 0 1px 1px #fff,0 3px 6px #171c2230}
.paper .coach-selector button:focus-visible{outline-color:#806229}
@media(min-width:761px){
 body .coach-demo-dock{display:flex;flex-direction:column;align-items:center;margin:18px auto 0;width:100%;gap:8px}
 .coach-demo-dock .coach-selector{margin:0;max-width:100%;overflow:visible;flex-wrap:wrap;justify-content:center}
 .coach-demo-dock .coach-selector button{flex:1 1 auto;padding:10px 12px;font-size:13px}
 .coach-demo-dock .mobile-swipe-hint,.stable-programme-controls .mobile-swipe-hint{display:none}
 .nutrition-stage .mobile-demo-phone,.training-device .mobile-demo-phone,.session-device .mobile-demo-phone{width:min(100%,calc(min(620px,100svh - 190px) * var(--mobile-demo-ratio)));height:auto;margin-inline:auto}
 .training-device{width:100%}
 #exercices .coach-selector{width:340px;display:flex;flex-wrap:nowrap}
 #exercices .coach-selector button{flex:1 1 0;min-width:0;white-space:nowrap;padding:10px 8px;font-size:12px}
 .nutrition .choice-note{display:none}
 .programme-context .programme-panels{margin-top:40px}
 .programme-context .programme-trio img{height:min(620px,calc(100svh - 180px));width:100%;object-fit:contain}
 .programme-context .programme-trio figcaption{margin-top:12px}
 .programme-context .stable-programme-controls{display:flex;justify-content:center;margin:20px auto 0}
 .stable-programme-controls .programme-selector{margin:0!important}
 .programme-context .mobile-programme-descriptions{display:block;margin-top:38px}
 .mobile-programme-descriptions .programme-intro[hidden]{display:none!important}
 .mobile-programme-descriptions .programme-intro{margin:0}
}

/* Evolution: editorial type hierarchy using the existing Inter and Archivo faces. */
.evolution-layout .copy{max-width:540px}
.evolution-layout h2{font-size:clamp(32px,3.2vw,44px);line-height:1.15;letter-spacing:-.03em;text-wrap:balance}
.evolution-layout h2 em{font-size:1.14em;line-height:1.12;margin-top:12px}
.evolution-layout .copy>.lead{font-size:clamp(22px,2vw,26px);font-weight:400;line-height:1.4;letter-spacing:-.025em;margin:32px 0 20px}
.evolution-layout .copy>p:not(.eyebrow):not(.lead):not(.caption){font-size:16px;line-height:1.65;color:#59616a;max-width:49ch}
.evolution-observations{gap:0;margin:32px 0}
.evolution-observations article{display:grid;grid-template-columns:28px 1fr;gap:16px;padding:20px 0;border-top:1px solid #171c221c}
.evolution-observations article:last-child{border-bottom:1px solid #171c221c}
.evolution-observations article>span{display:block;width:auto;height:auto;background:none;border-radius:0;font-size:12px;font-weight:400;line-height:1.5;color:#806229;padding-top:5px;font-variant-numeric:tabular-nums}
.evolution-observations h3{font-size:23px;line-height:1.2;font-weight:400;letter-spacing:-.025em;margin:0 0 7px}
.evolution-observations p{font-size:16px;line-height:1.55;color:#59616a;max-width:42ch;margin:0}
.evolution-layout .copy>.caption{font-size:12px;line-height:1.6;margin:18px 0 0;color:#687078}
@media(max-width:760px){
 .evolution-layout .copy{width:100%}
 .evolution-layout .copy>.lead{margin-top:26px;font-size:22px}
 .evolution-observations{margin:26px 0}
 .evolution-observations article{padding:18px 0;gap:12px;grid-template-columns:24px 1fr}
 .evolution-observations h3{font-size:22px}
}

/* Keep French punctuation attached and balance editorial headings at narrow widths. */
h1,h2,h3{text-wrap:balance}
@media(max-width:760px){
 .copy,.section-heading,.photo-editorial{min-width:0}
 #exercices .section-heading h2{font-size:clamp(28px,7.8vw,34px)}
}

/* Une seule mention de démonstration pour l’ensemble de la page. */
.site-demo-note{margin:0 auto 28px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6}

/* Lecture fluide, sans mot isolé par un saut de ligne forcé. */
.hero-copy>.lead{text-wrap:balance}
.evolution-layout h2{line-height:1.2}
.evolution-layout h2 em{font-size:1.06em;line-height:1.16;margin-top:16px}
/* Le cadre et l’écran sont préchargés ensemble ; les dialogues restent interactifs. */
.exercise-phone-art{display:block;width:100%;height:auto;pointer-events:none}
