/* La séance sur la télé (tv/) et la page du scan (tv/relier/), docs/17-seance-sur-la-tele.md de l'app.
   La charte du site : blanc, noir, jaune ; Archivo condensée 900 en capitales ; étiquettes inclinées,
   ombres dures, aucun arrondi. Pour les vieux navigateurs des télés : pas de « gap » en flex, pas
   d'aspect-ratio ni d'inset ; sur la télé, 1rem = 1 % de la largeur de l'écran. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/polices/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/polices/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html, body { margin: 0; }
body { font-family: "Archivo", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.cd { font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .88; margin: 0; }
.jaune { color: #ffd60a; }
p { margin: 0; }

/* --- La télé ------------------------------------------------------------------------------------ */

/* 1rem = 1 % de la largeur, ou moins si l'écran est moins haut que du 16:9 (la barre d'adresse). */
html.tele { font-size: 1vw; font-size: min(1vw, 1.7778vh); background: #0e0e0e; }
html.tele, html.tele body { height: 100%; overflow: hidden; cursor: none; }
/* La souris (ou le pointeur de la télécommande) : visible quand elle bouge, cachée après 3 secondes. */
html.tele.souris, html.tele.souris body { cursor: default; }
html.tele body { background: #0e0e0e; color: #fff; }
#ecran { position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
#eveil { position: fixed; right: 0; bottom: 0; width: 2px; height: 2px; opacity: .01; }
noscript p { padding: 4rem; font-size: 2.4rem; }

.ecran { position: absolute; top: 0; left: 0; right: 0; bottom: 0; box-sizing: border-box; padding: 3.2rem 4.4rem; }
.noir { background: #0e0e0e; color: #fff; }
.jaune-fond { background: #ffd60a; color: #0e0e0e; }

.logo { position: absolute; top: 2.4rem; left: 2.4rem; background: #0e0e0e; color: #ffd60a; border: .2rem solid #ffd60a; font-stretch: 62%; font-weight: 900; font-size: 2.2rem; padding: .2rem .9rem; }
.geant { font-size: 9.6rem; }
.grand-texte { font-size: 3rem; font-weight: 600; line-height: 1.25; margin-top: 2.4rem; max-width: 70rem; }
.discret { color: #bdbdbd; font-size: 2rem; font-weight: 600; line-height: 1.3; }
.badge { display: inline-block; background: #ffd60a; color: #0e0e0e; border: .3rem solid #0e0e0e; font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 3.2rem; line-height: 1; padding: .7rem 1.6rem; transform: rotate(-3deg); }
.etiquette { display: inline-block; background: #0e0e0e; color: #fff; padding: .5rem 1.4rem; transform: rotate(-3deg); font-size: 4.4rem; line-height: 1; }
.noir .etiquette { background: #ffd60a; color: #0e0e0e; }

/* L'écran qui attend le scan : « Affiche » */
.affiche { display: grid; grid-template-columns: 1.3fr 1fr; grid-column-gap: 4rem; align-items: center; padding: 4rem 6rem; }
.affiche-texte { display: grid; grid-row-gap: 2.8rem; justify-items: start; }
.qr { justify-self: center; width: 27rem; background: #fff; padding: 1rem; box-shadow: 1.3rem 1.3rem 0 #ffd60a; }
.qr svg { display: block; width: 100%; height: auto; }

/* Relié, entre l'échauffement et le WOD, la fin */
.relie, .entre, .fin { display: grid; align-content: center; justify-items: start; grid-row-gap: 2.4rem; padding: 4rem 6rem; }
.stats { display: grid; grid-auto-flow: column; justify-content: start; grid-column-gap: 6rem; }
.stat { font-size: 9rem; }
.stat small { font-size: 3.4rem; }
.sous { font-size: 2.3rem; font-weight: 700; margin-top: .6rem; }

/* La séance : le tableau de box */
.deroule { display: grid; grid-template-rows: auto auto 1fr auto; grid-row-gap: 1.4rem; }
.tete { display: grid; grid-template-columns: 1fr auto auto; grid-column-gap: 3rem; align-items: baseline; font-size: 2.3rem; font-weight: 700; }
.titre-seance { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre { height: 1rem; border: .3rem solid #0e0e0e; background: #fff; }
.barre-pleine { height: 100%; width: 0; background: #0e0e0e; }
.noir .barre { border-color: #fff; background: #2a2a2a; }
.noir .barre-pleine { background: #ffd60a; }
.box { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); grid-column-gap: 3.4rem; min-height: 0; overflow: hidden; }
.box.sans-demo { grid-template-columns: 1fr; }
.gauche { align-self: center; display: grid; grid-row-gap: 2.6rem; justify-items: start; min-width: 0; }
.haut { display: grid; grid-template-columns: auto 1fr; grid-column-gap: 2.4rem; align-items: center; }
.infos { display: grid; grid-row-gap: .8rem; justify-items: start; }
.box .chrono { font-size: 11rem; }
.demo-grande { position: relative; min-height: 0; overflow: hidden; }
/* Posée sur la case : la toile 3D ne peut pas la faire grandir. */
.demo-grande .demo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin-top: 0; box-sizing: border-box; }
.lignes { list-style: none; margin: 0; padding: 0; display: grid; grid-row-gap: 1.8rem; justify-items: start; }
.ligne { font-size: 6rem; padding: .6rem 1.6rem; border: .4rem solid currentColor; max-width: 100%; box-sizing: border-box; }
.lignes.n4 { grid-row-gap: 1.6rem; }
.lignes.n4 .ligne { font-size: 5.4rem; }
.lignes.n5 { grid-row-gap: 1.3rem; }
.lignes.n5 .ligne { font-size: 4.6rem; }
.lignes.n6, .lignes.n7 { grid-row-gap: 1rem; }
.lignes.n6 .ligne { font-size: 3.6rem; }
.lignes.n7 .ligne { font-size: 3rem; }
/* Une longue liste (l'échauffement) : des cadres plus fins, pour garder le texte grand. */
.lignes.n5 .ligne { padding: .4rem 1.4rem; }
.lignes.n6 .ligne, .lignes.n7 .ligne { padding: .25rem 1.1rem; border-width: .3rem; }
.lignes.n6, .lignes.n7 { grid-row-gap: .7rem; }
.ligne.encours { background: #0e0e0e; color: #fff; border-color: #0e0e0e; transform: rotate(-2deg); box-shadow: .8rem .8rem 0 #fff; }
.noir .ligne.encours { background: #ffd60a; color: #0e0e0e; border-color: #ffd60a; box-shadow: .8rem .8rem 0 #fff; }
.ligne.fait { opacity: .4; text-decoration: line-through; }
.cote-droit { display: grid; justify-items: center; grid-row-gap: 1rem; text-align: center; }
.etat { font-size: 2.6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.chrono { font-size: 14rem; font-variant-numeric: tabular-nums; }
.cote { font-size: 3rem; font-weight: 800; }
.demo { display: block; width: 24rem; height: 15rem; object-fit: contain; border: .4rem solid #0e0e0e; background: #f2f2f2; margin-top: 1rem; }
.noir .demo { border-color: #fff; }
.demo3d { width: 28rem; height: 15rem; }
.scene3d { display: block; width: 100%; height: 100%; overflow: hidden; }
/* three.js pose sa taille en pixels sur la toile : la case garde la sienne. */
.scene3d canvas { display: block; width: 100% !important; height: 100% !important; }
.pied { font-size: 2.3rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puis { opacity: .65; margin-left: 2.4rem; }

/* Le repos et la mise en place : en noir, la suite en grand */
.repos-corps { display: grid; grid-template-columns: 1fr 1.15fr; grid-column-gap: 4rem; align-items: center; min-height: 0; overflow: hidden; }
.repos-droite { justify-items: stretch; }
.repos-droite > p { justify-self: start; }
.repos-gauche, .repos-droite { display: grid; grid-row-gap: 1.6rem; justify-items: start; }
.au-repos .chrono { font-size: 21rem; color: #ffd60a; }
.suite { font-size: 7rem; }
.repos-droite .demo { width: 100%; height: 27rem; box-sizing: border-box; }
.repos-corps .suite { max-width: 100%; }

.hors-ligne { position: absolute; right: 2rem; bottom: 5.2rem; background: #b3263a; color: #fff; font-size: 1.6rem; font-weight: 700; padding: .4rem 1rem; }

/* Progressions et Snackks : la série (« C'est l'heure. ») et la pause (le compte à rebours, les séries). */
.deroule.activite { grid-template-rows: auto minmax(0, 1fr); padding-bottom: 6rem; }
.activite .mot-heure { font-size: 8rem; line-height: .95; margin: 0; }
.activite .haut { grid-template-columns: auto; grid-row-gap: 1.2rem; }
.activite .note-serie { font-size: 2.4rem; font-weight: 700; line-height: 1.3; max-width: 48rem; margin: 0; }
.activite .retard { display: inline-block; justify-self: start; background: #0e0e0e; color: #ffd60a; font-size: 2rem; font-weight: 700; padding: .3rem 1rem; margin: 0; }
.activite .repos-gauche .chrono { font-size: 14rem; }
.activite .vers { font-size: 2.4rem; font-weight: 700; margin: 0; }
.activite .note-pause { font-size: 2rem; line-height: 1.3; color: #ffd60a; max-width: 44rem; margin: 0; }
.activite .haut.tenue { grid-template-columns: auto 1fr; grid-column-gap: 2.4rem; align-items: center; }
html.tele.souris .activite [data-exo] { cursor: pointer; }
.repos-droite .suite.autre { opacity: .45; }
.liste-pause { list-style: none; margin: 0; padding: 0; display: grid; grid-row-gap: .5rem; }
.liste-pause li { font-size: 2.2rem; font-weight: 700; color: #9a9a9a; }
.liste-pause li::before { content: "○  "; }
.liste-pause li.fait { color: #fff; }
.liste-pause li.fait::before { content: "✓  "; color: #ffd60a; }
.liste-pause li.encours { color: #ffd60a; }
.liste-pause li.encours::before { content: "●  "; }

/* Le son : l'invite tant que le navigateur ne l'a pas permis (OK sur la télécommande, un clic), puis
   « Le son passe ici » quelques secondes. */
.son-aide { position: fixed; right: 2rem; bottom: 1.2rem; z-index: 5; margin: 0; background: #0e0e0e; color: #fff; border: .25rem solid #ffd60a; font-size: 1.6rem; font-weight: 700; padding: .5rem 1.2rem; }
.son-aide.pret { border-color: #fff; }
.son-aide.cache { display: none; }
.son-aide.mini { font-size: 2rem; padding: .2rem .8rem; opacity: .7; }
.son-aide.echec { border-color: #b3263a; }

/* --- Le scan, sur le téléphone ------------------------------------------------------------------ */

html.relier body { background: #ffd60a; color: #0e0e0e; min-height: 100vh; }
#relier { box-sizing: border-box; max-width: 520px; margin: 0 auto; padding: 32px 20px 40px; display: grid; grid-row-gap: 20px; justify-items: start; }
#relier .logo { position: static; font-size: 22px; padding: 2px 10px; border-width: 2px; }
#relier .titre { font-size: 64px; }
#relier .texte { font-size: 19px; line-height: 1.4; }
#relier .bouton { display: block; box-sizing: border-box; width: 100%; background: #0e0e0e; color: #fff; text-decoration: none; text-align: center; font-size: 32px; padding: 22px 16px 20px; box-shadow: 5px 5px 0 #fff; }
#relier .petit { font-size: 15px; font-weight: 700; margin-top: 12px; }
#relier .stores a { display: inline-block; color: #0e0e0e; font-weight: 700; font-size: 17px; margin-right: 18px; }
