/* Captures de l'appli et vidéos de règles (ajouté le 21/11/2026).
   Fichier à part de styles.css : posé par site/outils-captures/mettre-medias.mjs.
   Le cadre de téléphone (.phone) vient de styles.css ; ici seulement l'écran-capture. */

.screen.screen-shot{padding:24px 0 0; height:auto; background:#051b14}
.screen-shot img{display:block; width:100%; height:auto}

/* ── Accueil : galerie « L'appli en images » ── */
.gallery{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px 24px; justify-items:center; margin-top:8px}
.gallery figure{margin:0; display:grid; gap:14px; justify-items:center; width:100%}
.gallery .phone{width:240px; max-width:100%; border-radius:36px; padding:10px}
.gallery .phone::after{top:16px; width:76px; height:6px}
.gallery .screen{border-radius:27px}
.gallery .screen.screen-shot{padding-top:20px}
.gallery figcaption{font-weight:600; color:var(--cream); font-size:15px; text-align:center}
@media(max-width:760px){
  /* Téléphone : une rangée qu'on fait défiler du doigt, chaque écran s'arrête au centre. */
  .gallery{display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 16px 12px;
    margin-inline:-16px; scrollbar-width:none; justify-items:initial}
  .gallery::-webkit-scrollbar{display:none}
  .gallery figure{flex:0 0 auto; width:auto; scroll-snap-align:center}
  .gallery .phone{width:62vw; max-width:240px}
}
.gallery-hint{display:none; text-align:center; color:var(--muted); font-size:13.5px; margin:6px 0 0}
@media(max-width:760px){.gallery-hint{display:block}}

/* ── Accueil : statistiques, vraie capture à la place du tableau dessiné ── */
.stats-grid .stats-shot{display:flex; justify-content:center}

/* ── Pages de règles : vidéo(s) + écran du jeu dans l'appli ── */
.medias-grid{display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:40px; align-items:start}
.medias-grid.no-video{grid-template-columns:minmax(0,1fr) auto; align-items:center}
.medias-phone{margin:0; display:grid; gap:12px; justify-items:center}
.medias-phone figcaption{color:var(--muted); font-size:14px; text-align:center; max-width:300px}
.medias-text p{margin:0 0 12px; color:var(--muted); max-width:46ch}
.medias-videos{display:grid; gap:18px}
.medias-videos .more{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
.yt{margin:0; display:grid; gap:8px}
.yt figcaption{font-size:14.5px; font-weight:600; color:var(--cream)}
.yt-play{position:relative; display:block; border-radius:16px; overflow:hidden; aspect-ratio:16/9; background:#000;
  border:1px solid var(--line)}
.yt-play img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s var(--ease, ease)}
.yt-play:hover img, .yt-play:focus-visible img{transform:scale(1.03)}
.yt-play .yt-btn{position:absolute; left:50%; top:50%; width:68px; height:48px; transform:translate(-50%,-50%);
  border-radius:14px; background:rgba(10,19,14,.82); border:1px solid rgba(244,234,213,.35); display:grid; place-items:center}
.yt-play .yt-btn::before{content:''; border-style:solid; border-width:10px 0 10px 17px; border-color:transparent transparent transparent var(--gold); margin-left:4px}
.yt-play:hover .yt-btn, .yt-play:focus-visible .yt-btn{background:var(--gold)}
.yt-play:hover .yt-btn::before, .yt-play:focus-visible .yt-btn::before{border-left-color:#13231d}
.more .yt-play .yt-btn{width:52px; height:38px; border-radius:11px}
.more .yt-play .yt-btn::before{border-width:8px 0 8px 13px}
.yt iframe{width:100%; aspect-ratio:16/9; border:0; border-radius:16px; display:block; background:#000}
.yt-note{font-size:13px; color:var(--muted); margin:0}
@media(max-width:820px){
  .medias-grid, .medias-grid.no-video{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:480px){.medias-videos .more{grid-template-columns:minmax(0,1fr)}}
