/* Quatre repères du parcours, chacun illustré par une photo distincte. */
@media(min-width:761px){
 #yan.coach-profile{grid-template-areas:"heading method" "facts album" "facts story" "venue venue" "cta cta";grid-template-rows:auto auto auto auto auto;row-gap:24px;align-items:start}
 #yan .coach-presentation,#yan .coach-presentation .coach-id{display:contents}
 #yan .coach-heading{grid-area:heading}
 #yan .coach-facts{grid-area:facts;margin-top:0}
 #yan .coach-story{grid-area:story;min-width:0;gap:0}
 #yan .coach-album{display:contents}
 #yan .coach-visuals{grid-area:album;min-width:0}
 #yan .coach-method-note{grid-area:method;align-self:end;margin-top:0}
}
@media(max-width:760px){
 #yan.coach-profile{grid-template-areas:"identity" "album" "story" "method" "venue" "cta"}
 #yan .coach-album{display:contents}
 #yan .coach-visuals{grid-area:album;min-width:0}
 #yan .coach-method-note{grid-area:method;margin-top:0}
}

.coach-facts li>div{min-width:0}
.coach-facts li span strong{display:inline;font-size:inherit;line-height:inherit;color:var(--ink)}
.coach-facts .coach-fact{display:grid;grid-template-columns:24px minmax(0,1fr) 112px;gap:14px;align-items:center}
.coach-facts .coach-fact>svg{align-self:start;margin-top:3px}
.coach-facts .coach-teams{font-size:.9rem;line-height:1.45}
.coach-facts .coach-fact-photo.coach-snapshot{width:112px;max-width:100%;aspect-ratio:4/3;margin:0;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--white);transform:none;translate:none;box-shadow:0 3px 10px #21232612;overflow:hidden;align-self:center}
.coach-facts .coach-fact-photo.coach-snapshot img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;border-radius:7px}
.coach-facts .coach-fact-photo.coach-snapshot:hover{transform:none;translate:none}
.coach-facts .coach-fact-photo.coach-snapshot:focus-visible{outline:3px solid var(--rust);outline-offset:4px}
/* Cadrages à l'affichage : les fichiers conservent les pixels des originaux. */
.coach-facts .coach-swim-photo img{object-position:50% 42%;transform:scale(1.55);transform-origin:50% 42%}
.coach-facts .coach-embourg-photo img{object-position:88% 50%}
.coach-facts .coach-bike-photo img{object-position:64% 48%}
.coach-facts .coach-preparation-photo.coach-snapshot{padding:0}
.coach-facts .coach-preparation-photo.coach-snapshot img{position:absolute;width:192%;height:341.333%;max-width:none;left:-65%;top:-176.667%;object-fit:fill;border-radius:0;aspect-ratio:auto;transform:none}
.coach-prints .coach-snapshot:first-child img{aspect-ratio:16/9;object-fit:cover;object-position:center top}
/* Le même cadrage reste lisible dans l'agrandissement, sans reconstruire la photo. */
.viewer-photo-frame.is-preparation{position:relative;width:min(100%,82.6667vh,786px);aspect-ratio:4/3;margin-inline:auto;overflow:hidden;background:#141615}
.viewer-photo-frame.is-preparation .viewer-photo{position:absolute;width:192%;height:341.333%;max-width:none;max-height:none;min-height:0;left:-65%;top:-176.667%;object-fit:fill;aspect-ratio:auto}
.venue-surface{margin-top:12px;font-size:clamp(1rem,1.3vw,1.2rem);line-height:1.5}
.venue-surface strong{font-weight:800;white-space:nowrap;background:linear-gradient(transparent 72%,var(--coral) 72%,var(--coral) 94%,transparent 94%);padding-inline:2px}
@media(max-width:760px){
 .coach-facts .coach-fact{grid-template-columns:minmax(0,1fr) 104px;gap:14px;padding-block:16px}
 .coach-facts .coach-fact>svg{display:none}
 .coach-facts .coach-fact-photo.coach-snapshot{width:104px}
 .venue-surface{margin-top:10px}
}
@media(max-width:360px){
 .coach-facts .coach-fact{grid-template-columns:minmax(0,1fr) 84px;gap:12px}
 .coach-facts .coach-fact-photo.coach-snapshot{width:84px}
}
@media(min-width:761px) and (max-width:1100px){
 .coach-facts .coach-fact{grid-template-columns:minmax(0,1fr) 96px;gap:12px}
 .coach-facts .coach-fact>svg{display:none}
 .coach-facts .coach-fact-photo.coach-snapshot{width:96px}
}

.club-dialog .viewer-close{z-index:2}

/* La fermeture reste hors du portrait, et les légendes ont toute la largeur sur mobile. */
.club-dialog.is-coach .viewer-close{position:static;display:block;margin:10px 12px 10px auto}
@media(max-width:600px){
 .club-dialog.is-coach .viewer-bottom{flex-direction:column;gap:14px}
 .club-dialog.is-coach .viewer-bottom>div:first-child{min-width:0;width:100%}
 .club-dialog.is-coach .viewer-bottom h3{font-size:1.25rem;line-height:1.2}
 .club-dialog.is-coach .viewer-controls{align-self:flex-end}
}
