/* « La boxe en 30 jours » dans l'appli (app/programme.js) : la carte du programme, la carte des trente jours, la
   fiche d'une séance. Mêmes couleurs et mêmes lettres que le reste (app.css). Gros, peu de mots. */
.prog { position: relative; flex: none; padding: 18px; border-radius: 24px; background: linear-gradient(140deg, #24164a, #3a1150 70%, #5a1458); border: 2px solid var(--gold); box-shadow: 0 0 26px rgba(255,209,102,.25); }
.prog .ico { position: absolute; right: 12px; top: 12px; width: 100px; height: 100px; object-fit: contain; }
.prog .kicker { color: var(--gold); max-width: 62%; }
.prog h3 { margin: 6px 0 0; max-width: 66%; font: 400 32px/1.02 var(--sign); text-shadow: 0 3px 0 var(--pink); overflow-wrap: anywhere; }
.prog .ou { display: block; margin: 16px 0 6px; font: 400 26px/1 var(--num); letter-spacing: .04em; color: var(--text); }
.prog .ou b { font: 400 44px/1 var(--num); color: var(--gold); }
.prog .barre { height: 10px; border-radius: 5px; background: rgba(255,255,255,.16); overflow: hidden; margin-bottom: 16px; }
.prog .barre i { display: block; height: 100%; min-width: 6px; background: var(--gold); border-radius: 5px; }
.prog .cta span, .programme .cta span { font-size: 12px; text-align: center; padding: 0 8px; }
/* L'écran « COMMENCER » : rien sous 14 px (0.76), la ligne sous le mot reste sur l'écran à 360 de large. */
.seance .cta span { font-size: 14px; line-height: 1.1; letter-spacing: .06em; text-align: center; padding: 0 8px; }
.cta.attend { background: var(--panel); color: var(--text); border: 2px solid var(--line2); box-shadow: none; }

.programme { flex: 1; display: flex; flex-direction: column; gap: 9px; min-height: 0; }
.programme .haut { display: flex; align-items: center; gap: 10px; }
.programme .haut .titre { font-size: 22px; text-shadow: 0 3px 0 var(--pink); min-width: 0; overflow-wrap: anywhere; }
.programme .haut .retour { background: var(--panel); border: 1px solid var(--line); }
.sem { padding: 11px 10px 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.sem p { margin: 0 0 9px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font: 400 12.5px/1.15 var(--sign); color: var(--soft); }
.sem p > b { font: 400 12.5px/1 var(--sign); color: var(--teal); }
.sem p .mot-ferme { margin-left: auto; padding: 5px 8px 4px; font-size: 11px; }
.sem.f { background: #100F22; }
.sem.f p > b { color: var(--muted); }
.sem .corps { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
/* Les jours de la semaine en deux colonnes (des ronds de 44, pas moins) ; les gants prennent toute la place à côté. */
.sem .js { display: grid; grid-template-columns: repeat(2, 44px); gap: 8px; justify-items: center; align-self: start; }
/* Chaque jour : un rond de 44, le chiffre en clair même fermé (c'est l'étiquette de la semaine qui dit « fermé »). */
.j { position: relative; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; font: 400 21px/1 var(--num); background: #1d1a3d; border: 2px solid var(--line2); color: var(--soft); text-decoration: none; }
.j svg { width: 24px; height: 24px; fill: none; stroke: #1A0B1F; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.j.fait { background: var(--gold); border-color: var(--gold); color: #1A0B1F; }
.j.ici { width: 50px; height: 50px; margin: -3px; border-radius: 25px; background: var(--sunset); border: 3px solid var(--text); color: #1A0B1F; font-size: 26px; box-shadow: 0 0 20px rgba(255,61,154,.95); }
/* Un jour ouvert (l'essai) se voit touchable, même à bout de bras : contour turquoise, lueur, chiffre blanc. */
.j.ouvert { border-color: var(--teal); background: #1b2c4a; color: var(--text); box-shadow: 0 0 12px rgba(46,230,214,.55); }
.j.demain { border-style: dashed; }
/* Un jour « bientôt » (pas construit, ou pas complet) : en pointillés et éteint, comme l'étiquette ; rien ne s'y touche. */
/* (plus éteint qu'un jour qui s'ouvre demain, en pointillés lui aussi mais à pleine lumière) */
.j.bientot { border-style: dashed; background: transparent; color: var(--muted); opacity: .55; }
.j.palier.bientot { opacity: 1; }
/* Une semaine ouverte en partie : quels jours viennent plus tard, et l'étiquette commune. */
.sem p.reste { margin: 10px 0 0; justify-content: flex-end; }
.sem p.reste span { color: var(--muted); }
.sem p.reste .mot-ferme { margin-left: 0; }
/* Le jour d'un palier : sa paire de gants en grand, « JOUR 7 » écrit dessous (17 novembre : il est myope et juge à
   bout de bras). Silhouette sombre tant que la semaine est fermée ; en couleur dès qu'elle est ouverte ; cerclée d'or
   et lumineuse une fois gagnée. */
.sem .gants { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.j.palier { width: 100%; height: auto; margin: 0; padding: 6px 0 8px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 2px solid transparent; box-shadow: none; font: 400 15px/1 var(--num); letter-spacing: .04em; color: var(--gold); }
.j.palier img { display: block; width: min(100%, 136px); height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.sem .gants .j.palier:nth-child(2), .sem .gants .j.palier:has(~ .j.palier) { padding: 2px 0 4px; }
.sem .gants .j.palier:nth-child(2) img, .sem .gants .j.palier:has(~ .j.palier) img { width: min(100%, 92px); }
.j.palier.eteint img { filter: grayscale(1) brightness(.28) contrast(1.2); }
.j.palier.eteint { color: var(--muted); }
.j.palier.fait { border-color: var(--gold); background: rgba(255,209,102,.1); box-shadow: 0 0 22px rgba(255,209,102,.35); }
.j.palier.ouvert { border-color: var(--teal); background: rgba(46,230,214,.08); box-shadow: 0 0 14px rgba(46,230,214,.45); }
.j.palier.ici { border-color: var(--text); background: rgba(255,61,154,.14); box-shadow: 0 0 20px rgba(255,61,154,.7); color: var(--text); }
/* Le bouton du jour reste à l'écran : la carte défile dessous (à 360 × 640, elle ne tient pas en une fois). */
.programme .bas-fixe { margin-top: auto; flex: none; position: sticky; bottom: 6px; z-index: 2; box-shadow: 0 6px 0 #8A1457, 0 10px 0 8px var(--ink), 0 -10px 18px 10px var(--ink); }
/* (la dernière semaine se dégage de l'ombre du bouton quand la carte est défilée jusqu'en bas) */
.programme > .sem:last-of-type { margin-bottom: 22px; }
.programme .cta.attend.bas-fixe { box-shadow: 0 10px 0 8px var(--ink), 0 -10px 18px 10px var(--ink); }
p.cta { margin-bottom: 0; }

.story.seance .cadre { aspect-ratio: auto; width: 100%; }
.story.seance .fond { object-position: center 18%; }
.story.seance header .kicker { font-size: 14px; line-height: 1.15; letter-spacing: .1em; }
/* L'image du jour (app/img/programme/jour-N.webp, debout, 1080 × 1920) : cadrée par le haut, le sujet au-dessus de la liste. */
.story.seance .fond.du-jour { object-position: center top; }
.deroule { position: absolute; left: 12px; right: 12px; bottom: 44px; margin: 0; padding: 10px; list-style: none; border-radius: 20px; background: rgba(11,11,26,.86); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.deroule li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px 0 8px; font: 400 17px/1.05 var(--sign); color: var(--text); }
.deroule li b { flex: none; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: #2b2757; font: 400 18px/1 var(--num); color: var(--teal); }
@media (max-height: 700px) { .deroule li { min-height: 36px; font-size: 15px; } }
/* Téléphone étroit (360) : la carte s'élargit un peu, pour que les gants gardent leur taille. */
@media (max-width: 380px) {
  .programme { margin: 0 -8px; }
  .sem { padding: 11px 4px 12px; }
  .sem p { padding: 0 6px; }
  .prog h3 { font-size: 28px; }
}
/* 0.87 : toute la carte du programme mène à la carte des trente jours ; son bouton reste au-dessus (la séance du jour). */
.prog .vers-programme { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.prog .vers-programme:active { background: rgba(255,255,255,.05); }
.prog .ou, .prog .cta { position: relative; z-index: 2; }
