/* ==========================================================================
   4BODY DIGITAL — LECTEUR DE SÉANCE
   Repris tel quel de la version Softr validée : double chrono, décompte plein
   écran, annonce d'exercice (FLIP), pause respirée, écran de fin.
   Seul le bloc de masquage des blocs Softr a disparu.
   ========================================================================== */

  /* ---- LECTEUR --------------------------------------------------------- */
  .wod-player-wrapper {
    position: relative; width: 100%; max-width: 420px;
    margin: 0 auto; box-sizing: border-box;
    padding: 12px 16px calc(190px + env(safe-area-inset-bottom)) 16px;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff; background: transparent !important;
  }

  .btn-back-home, .btn-back-home:visited, .btn-back-home:focus {
    position: absolute; top: 14px; left: 14px; z-index: 10;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(18,21,19,0.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    color: #fff !important; text-decoration: none; border: 1px solid rgba(255,255,255,0.2);
    -webkit-tap-highlight-color: transparent; outline: none !important;
  }
  .btn-back-home:active, .btn-back-home:hover { color: #f1c56b !important; border-color: #f1c56b !important; background: rgba(18,21,19,0.9); }
  .btn-back-home svg { width: 18px; height: 18px; }

  .app-loader {
    position: fixed; inset: 0; background: #121513; z-index: 15000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px; transition: opacity .4s ease;
  }
  .loader-logo { height: 24px; object-fit: contain; margin-bottom: 24px; }
  .loader-text { font-size: 14px; font-weight: 600; color: #9aa49e; margin-bottom: 16px; text-align: center; }
  .loader-bar-bg { width: 200px; height: 6px; background: #1d211f; border-radius: 10px; overflow: hidden; }
  .loader-bar-fill { width: 0%; height: 100%; background: #f1c56b; border-radius: 10px; transition: width .3s ease; }
  .loader-count { margin-top: 10px; font-size: 11px; color: #6e7772; letter-spacing: .4px; }
  .loader-retry {
    margin-top: 22px; background: #f1c56b; color: #1d211f; border: none; border-radius: 22px;
    padding: 12px 26px; font-size: 15px; font-weight: 800; cursor: pointer;
  }

  .active-top-header { text-align: center; margin-bottom: 24px; padding-top: 16px; }
  .brand-logo-small { height: 16px; object-fit: contain; margin-bottom: 20px; }
  .active-step-position { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #9aa49e; margin-bottom: 12px; }
  .active-exercise-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
  .active-tag { background: #fff; color: #121513; font-weight: 800; padding: 6px 14px; border-radius: 20px; font-size: 14px; flex-shrink: 0; }
  .active-title { font-size: 24px; font-weight: 800; color: #f1c56b; margin: 0; line-height: 1.2; }

  .wod-ready-container { margin-bottom: 30px; }
  .wod-header-card { position: relative; width: 100%; height: 220px; border-radius: 24px; overflow: hidden; margin-bottom: 24px; background-color: #1d211f; }
  .player-cover-bg { width: 100%; height: 100%; object-fit: cover; }
  .player-header-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
  .brand-logo-img { height: 16px; object-fit: contain; margin-bottom: 16px; }
  .player-title { font-size: 28px; font-weight: 800; color: #f1c56b; margin: 0 0 10px 0; line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
  .player-badge-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: #121513; font-size: 13px; font-weight: 800; padding: 4px 14px; border-radius: 20px; }
  .badge-icon { width: 15px; height: 15px; flex-shrink: 0; }

  .ready-instructions { padding: 0 4px; text-align: left; }
  .ready-level-header { margin-bottom: 16px; }
  .ready-level-tag { display: inline-block; background: rgba(241,197,107,.15); color: #f1c56b; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; border: 1px solid rgba(241,197,107,.3); }
  .recap-section { background: #1d211f; border-radius: 18px; padding: 16px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.05); }
  .recap-title { font-size: 13px; font-weight: 700; color: #9aa49e; text-transform: uppercase; margin: 0 0 10px 0; letter-spacing: .5px; }
  .equipment-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .eq-tag { background: #2a2e2b; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
  .structure-summary-list { display: flex; flex-direction: column; gap: 8px; }
  .struct-row { background: #121513; border-radius: 12px; padding: 8px 12px; font-size: 13px; color: #d1d7d3; border: 1px solid rgba(255,255,255,.04); }
  .struct-label { font-weight: 700; color: #f1c56b; }
  .instructions-title { font-size: 18px; color: #fff; font-weight: 800; margin: 0 0 12px 0; }
  .ready-info-text { font-size: 15px; color: #d1d7d3; line-height: 1.5; white-space: pre-line; }

  .wod-timer-box { width: 100%; border: 1.5px solid #f1c56b; border-radius: 28px; padding: 14px; text-align: center; background: #1d211f; margin-bottom: 24px; box-sizing: border-box; }
  .chrono-digits { font-size: 42px; font-weight: 300; letter-spacing: 1.5px; color: #fff; font-variant-numeric: tabular-nums; }
  .timer-divider { border-top: 1.5px dashed #f1c56b; margin: 12px 0; opacity: .6; }
  .exercise-sub-timer { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .sub-timer-setup-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
  .sub-timer-text { font-size: 14px; font-weight: 600; color: #d1d7d3; }
  .sub-timer-text span { color: #f1c56b; font-weight: 800; font-variant-numeric: tabular-nums; }
  .btn-sub-start { background: #f1c56b; color: #1d211f; border: none; border-radius: 14px; padding: 6px 16px; font-size: 12px; font-weight: 800; cursor: pointer; }
  .sub-timer-active-digits { font-size: 34px; font-weight: 300; letter-spacing: 1px; color: #f1c56b; font-variant-numeric: tabular-nums; }
  .sub-timer-active-digits.is-done { animation: subDone 1s ease 3; }
  @keyframes subDone { 0%,100%{opacity:1} 50%{opacity:.25} }
  .btn-sub-reset { background: transparent; border: none; color: #9aa49e; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline; margin-top: 4px; }

  .fullscreen-overlay { position: fixed; inset: 0; background: rgba(18,21,19,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; overflow: hidden; }
  .overlay-title { font-size: 26px; color: #fff; font-weight: 800; margin-bottom: 12px; letter-spacing: 1px; }
  .cd-number { font-size: 120px; font-weight: 900; color: #f1c56b; line-height: 1; text-shadow: 0 0 30px rgba(241,197,107,.4); animation: pulsePop 1s infinite; }
  @keyframes pulsePop { 0%{transform:scale(.6);opacity:0} 50%{transform:scale(1.1);opacity:1} 100%{transform:scale(.95);opacity:0} }

  .pause-overlay { position: fixed; inset: 0; background: #181b19; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
  .pause-breathe-halo { position: absolute; top: 50%; left: 50%; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(241,197,107,.8) 0%, rgba(216,155,40,0) 70%); pointer-events: none; z-index: 1; transform: translate(-50%,-50%); animation: breathePulse 3s infinite ease-in-out; }
  @keyframes breathePulse { 0%,100%{opacity:.15;transform:translate(-50%,-50%) scale(.9)} 50%{opacity:.30;transform:translate(-50%,-50%) scale(1.25)} }
  .pause-bg-fill { position: absolute; bottom: 0; left: 0; right: 0; height: 0%; background: linear-gradient(0deg,#d89b28 0%,#f1c56b 100%); opacity: .35; z-index: 2; transition: height 1s linear; }
  .pause-content-container { position: relative; z-index: 3; text-align: center; padding: 0 20px; }
  .pause-h1 { font-size: 48px; font-weight: 800; color: #f1c56b; margin: 0 0 10px 0; text-shadow: 0 4px 20px rgba(0,0,0,.6); letter-spacing: .5px; }
  .pause-h1.countdown-giant { font-size: 130px; font-weight: 900; margin: 0; animation: popScale 1s infinite ease-out; }
  @keyframes popScale { 0%{transform:scale(.6);opacity:0} 50%{transform:scale(1.1);opacity:1} 100%{transform:scale(.95);opacity:0} }
  .pause-h3 { font-size: 20px; font-weight: 400; color: #fff; margin: 0; opacity: .9; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
  .pause-h3.timer-digits { font-size: 36px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
  .pause-footer-area { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 3; width: 100%; text-align: center; }
  .btn-skip-pause { background: rgba(18,21,19,.65); color: #f1c56b; border: 1px solid rgba(241,197,107,.35); padding: 10px 24px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .15s ease, background .2s ease; }
  .btn-skip-pause:active { transform: scale(.96); background: rgba(241,197,107,.25); }

  /* ---- DÉCOMPTE PLEIN ÉCRAN DU SOUS-TIMER ------------------------------
     L'utilisateur pose son téléphone au sol : tout doit être lisible de loin. */
  .st-overlay {
    position: fixed; inset: 0; background: #181b19; z-index: 99998;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    overflow: hidden; padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)) 20px;
  }
  .st-halo {
    position: absolute; top: 50%; left: 50%; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(241,197,107,.75) 0%, rgba(216,155,40,0) 70%);
    transform: translate(-50%,-50%); pointer-events: none; z-index: 1;
    animation: stHalo 2s infinite ease-in-out;
  }
  @keyframes stHalo {
    0%,100% { opacity: .14; transform: translate(-50%,-50%) scale(.9); }
    50%     { opacity: .30; transform: translate(-50%,-50%) scale(1.18); }
  }
  .st-fill {
    position: absolute; bottom: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(0deg,#d89b28 0%,#f1c56b 100%); opacity: .30;
    z-index: 2; transition: height .25s linear;
  }

  .st-top { position: relative; z-index: 3; width: 100%; text-align: center; }
  .st-exercise { font-size: 22px; font-weight: 900; color: #f1c56b; margin-bottom: 14px; line-height: 1.2; }
  .st-chrono-row { display: inline-flex; align-items: center; gap: 10px; background: rgba(18,21,19,.55); border: 1px solid rgba(255,255,255,.10); padding: 7px 16px; border-radius: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .st-chrono-label { font-size: 11px; color: #9aa49e; text-transform: uppercase; letter-spacing: .8px; }
  .st-chrono { font-size: 16px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

  .st-center { position: relative; z-index: 3; text-align: center; }
  .st-digits {
    font-size: 96px; font-weight: 800; color: #fff; line-height: 1;
    font-variant-numeric: tabular-nums; letter-spacing: 2px;
    text-shadow: 0 6px 30px rgba(0,0,0,.55);
  }
  .st-digits.is-final {
    font-size: 190px; font-weight: 900; color: #f1c56b; letter-spacing: 0;
    animation: stPop 1s infinite ease-out;
  }
  .st-digits.is-done { font-size: 62px; font-weight: 900; color: #f1c56b; letter-spacing: 1px; }
  @keyframes stPop {
    0%   { transform: scale(.65); opacity: 0; }
    45%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(.97); opacity: 0; }
  }
  .st-caption { margin-top: 16px; font-size: 16px; font-weight: 800; color: #e8ece9; letter-spacing: .6px; text-transform: uppercase; }

  .st-footer { position: relative; z-index: 3; }

  /* ---- CONFIRMATION ---------------------------------------------------- */
  .confirm-overlay {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(10,12,11,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    animation: confirmFade .18s ease both;
  }
  @keyframes confirmFade { from { opacity: 0; } to { opacity: 1; } }
  .confirm-box {
    width: 100%; max-width: 340px; background: #1d211f; border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px; padding: 26px 22px 20px 22px; text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
    animation: confirmPop .22s cubic-bezier(.2,.9,.3,1.2) both;
  }
  @keyframes confirmPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
  .confirm-icon {
    width: 52px; height: 52px; margin: 0 auto 16px auto; border-radius: 50%;
    background: rgba(241,197,107,.14); border: 1px solid rgba(241,197,107,.35);
    display: flex; align-items: center; justify-content: center; color: #f1c56b;
  }
  .confirm-icon svg { width: 26px; height: 26px; }
  .confirm-title { font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 8px 0; }
  .confirm-text { font-size: 14px; color: #9aa49e; line-height: 1.5; margin: 0 0 22px 0; }
  .confirm-actions { display: flex; gap: 10px; }
  .confirm-btn { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; min-height: 46px; border-radius: 20px; padding: 12px 10px; font-size: 15px; font-weight: 800; cursor: pointer; border: 1.5px solid transparent; font-family: inherit; }
  .confirm-btn-ghost { background: transparent; color: #d1d7d3; border-color: rgba(255,255,255,.18); }
  .confirm-btn-solid { background: #f1c56b; color: #1d211f; }

  /* ---- VIDÉO : façade avant chargement --------------------------------- */
  .video-facade { cursor: pointer; background: #000; padding: 0; }
  .video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .78; }
  .video-facade::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
  }
  .video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 62px; height: 62px; border-radius: 50%;
    background: rgba(241,197,107,.94); color: #1d211f;
    display: flex; align-items: center; justify-content: center; z-index: 2;
    box-shadow: 0 8px 26px rgba(0,0,0,.5);
    transition: transform .18s ease;
  }
  .video-facade:active .video-play { transform: translate(-50%,-50%) scale(.92); }
  .video-play svg { width: 26px; height: 26px; margin-left: 3px; }
  .video-hint {
    position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; text-align: center;
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,.82); letter-spacing: .3px;
  }
  .video-open {
    display: block; text-align: center; margin-top: 10px;
    font-size: 12px; color: #7b8580; text-decoration: none;
  }
  .video-open:hover, .video-open:active { color: #f1c56b; }

  /* ---- RÉCUPÉRATION (WOD_Type 3) --------------------------------------- */
  .recovery-card {
    background: linear-gradient(160deg, rgba(241,197,107,.13), rgba(241,197,107,.04));
    border: 1px solid rgba(241,197,107,.26);
    border-radius: 22px; padding: 22px 20px 24px 20px; text-align: center;
  }
  .rc-kicker {
    font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
    color: #9aa49e; margin-bottom: 14px;
  }
  .rc-activity { font-size: 25px; font-weight: 900; color: #f1c56b; line-height: 1.2; }
  .rc-duration {
    display: inline-block; margin-top: 14px;
    background: #fff; color: #1d211f; border-radius: 20px;
    padding: 7px 18px; font-size: 15px; font-weight: 900;
  }
  .rc-duration:empty { display: none; }
  .rc-info { font-size: 15px; color: #d1d7d3; line-height: 1.55; margin-top: 18px; }
  .rc-info:empty { display: none; }
  .rc-media { margin-top: 18px; }
  .rc-media:empty { display: none; }

  /* ---- ÉCHAUFFEMENT ---------------------------------------------------- */
  .warmup-area { padding-bottom: 8px; }

  .wu-kicker {
    font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
    color: #7b8580;
  }
  .wu-list-kicker { display: block; margin: 0 4px 10px 4px; }

  .wu-cardio-tips {
    font-size: 14px; color: #d1d7d3; opacity: .6; line-height: 1.45;
    margin: 0 4px 18px 4px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(255,255,255,.12);
  }
  /* Pas de consigne cardio = pas de séparateur qui flotte dans le vide. */
  .wu-cardio-tips:empty { display: none; }

  .wu-list { display: flex; flex-direction: column; gap: 8px; }
  .wu-item {
    background: #1d211f; border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px; padding: 12px 14px;
    display: flex; align-items: flex-start; gap: 12px;
  }
  .wu-num {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(241,197,107,.14); color: #f1c56b;
    font-size: 12px; font-weight: 800; line-height: 24px; text-align: center;
  }
  .wu-body { min-width: 0; }
  .wu-exo { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.25; }
  .wu-tips { display: block; font-size: 13px; color: #d1d7d3; opacity: .5; margin-top: 3px; line-height: 1.4; }
  .wu-tips .tip-line { text-align: left; margin-top: 2px; }
  .wu-tips .tip-arrow { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
  .wu-tips:empty { display: none; }

  /* ---- ANNONCE DE L'EXERCICE -------------------------------------------
     Le nom s'affiche seul et en grand au centre, puis rejoint sa place réelle.

     Deux règles pour que ce soit fluide :
     1. on n'anime QUE `transform` et `opacity` — jamais `font-size` ni la
        largeur, qui obligent le navigateur à refaire la mise en page à chaque
        image et à recouper les retours à la ligne en cours de route ;
     2. l'arrivée se fait en fondu croisé : le nom en gros peut tenir sur deux
        lignes alors que le vrai titre en tient une, et le croisement masque
        cette différence au lieu de la donner à voir. */
  .exo-intro {
    position: fixed; inset: 0; z-index: 9500; pointer-events: auto;
    background: rgba(24,27,25,.965);
    transition: background-color .6s ease;
  }
  .exo-intro.is-moving { background-color: rgba(24,27,25,0); }

  .exo-intro-text {
    position: fixed; margin: 0; opacity: 0;
    color: #f1c56b; font-weight: 900; letter-spacing: -.5px; text-align: center;
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
  }
  .exo-intro-text.is-in {
    opacity: 1;
    transition: opacity .34s ease;
  }
  .exo-intro-text.is-moving {
    transition: transform .66s cubic-bezier(.32,.02,.16,1),
                opacity .2s ease .46s;
    opacity: 0;
  }

  /* Le vrai titre se révèle en fin de course, pendant que le clone s'efface. */
  #active-exercise-title.is-arriving { animation: titleArrive .3s ease .42s both; }
  @keyframes titleArrive { from { opacity: 0; } to { opacity: 1; } }

  /* Le reste de l'écran arrive derrière, en fondu court. */
  .step-fade { animation: stepFade .5s ease both; }
  .step-fade-1 { animation-delay: .10s; }
  .step-fade-2 { animation-delay: .20s; }
  .step-fade-3 { animation-delay: .30s; }
  @keyframes stepFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  /* ---- ENTRÉE DE L'ÉCRAN D'ACCUEIL ------------------------------------- */
  .reveal { opacity: 0; animation: none; }
  .is-revealed .reveal { animation: revealUp .55s ease both; }
  .is-revealed .reveal-1 { animation-delay: .05s; }
  .is-revealed .reveal-2 { animation-delay: .16s; }
  .is-revealed .reveal-3 { animation-delay: .27s; }
  @keyframes revealUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  #loader-text.is-swapping { animation: quoteIn .45s ease both; }
  @keyframes quoteIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  @media (prefers-reduced-motion: reduce) {
    .st-halo, .st-digits.is-final, .confirm-box, .confirm-overlay,
    .exo-intro-text, .step-fade,
    .is-revealed .reveal, #loader-text.is-swapping { animation: none !important; }
    .reveal { opacity: 1 !important; }
    .st-fill { transition: none !important; }
  }

  #fireworks-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .celebration-box { position: relative; z-index: 2; text-align: center; }
  .celebration-title { font-size: 32px; font-weight: 900; color: #f1c56b; margin-bottom: 8px; }
  .celebration-sub { font-size: 16px; color: #fff; opacity: .8; }

  .step-content-area { text-align: center; margin-bottom: 20px; }
  .step-info { font-size: 15px; color: #fff; line-height: 1.45; margin: 0 0 10px 0; }
  /* La flèche suit le flux du texte plutôt que d'être un élément flex à part :
     sur deux lignes, un flex la collait à gauche pendant que le texte restait
     centré. Ici l'ensemble « flèche + phrase » est centré comme un tout. */
  .tip-line { display: block; margin-top: 5px; text-align: center; }
  .tip-line:first-child { margin-top: 0; }
  .tip-arrow { display: inline-block; vertical-align: -3px; width: 17px; height: 17px; margin-right: 5px; color: #f1c56b; opacity: .8; }
  .step-tips { font-size: 14px; opacity: .5; color: #fff; line-height: 1.4; margin: 0 0 16px 0; }
  .step-media-container { margin-bottom: 16px; }
  .step-media-container:empty { display: none; }

  /* Cadre 16:9 garanti, y compris sur les Safari sans aspect-ratio. */
  .video-frame {
    position: relative; width: 100%; padding-bottom: 56.25%; height: 0;
    border-radius: 16px; overflow: hidden; background: #000;
  }
  .video-frame > iframe,
  .video-frame > .video-facade {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: block;
  }

  .alt-wrapper { margin-bottom: 16px; }
  .btn-toggle-alt { background: transparent; border: none; color: #f1c56b; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; opacity: .85; padding: 4px 8px; }
  .btn-toggle-alt .chevron-down { width: 16px; height: 16px; transition: transform .2s ease; }
  .btn-toggle-alt.active .chevron-down { transform: rotate(180deg); }
  .step-alt-media { margin-top: 10px; }
  .step-alt-text { font-size: 14px; font-style: italic; opacity: .6; color: #fff; background: rgba(255,255,255,.055); border-radius: 12px; padding: 12px 14px; margin-top: 8px; text-align: left; white-space: pre-line; }

  .recap-screen { position: relative; text-align: center; padding: 20px 4px 0 4px; }

  .recap-halo {
    position: absolute; top: -40px; left: 50%; width: 300px; height: 300px;
    transform: translateX(-50%); pointer-events: none; z-index: 0;
    background: radial-gradient(circle, rgba(241,197,107,.20) 0%, rgba(241,197,107,0) 68%);
    animation: recapHalo 3.2s ease-in-out infinite;
  }
  @keyframes recapHalo { 0%,100% { opacity: .5; transform: translateX(-50%) scale(.92); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }

  .recap-check { position: relative; z-index: 1; width: 84px; height: 84px; margin: 0 auto 18px auto; }
  .recap-check svg { width: 100%; height: 100%; }
  .recap-check-ring {
    stroke: #f1c56b; stroke-dasharray: 145; stroke-dashoffset: 145;
    animation: recapRing .7s cubic-bezier(.65,0,.45,1) .1s forwards;
  }
  .recap-check-mark {
    stroke: #f1c56b; stroke-dasharray: 40; stroke-dashoffset: 40;
    animation: recapMark .45s cubic-bezier(.65,0,.45,1) .65s forwards;
  }
  @keyframes recapRing { to { stroke-dashoffset: 0; } }
  @keyframes recapMark { to { stroke-dashoffset: 0; } }

  .recap-h2 { position: relative; z-index: 1; font-size: 28px; font-weight: 900; color: #f1c56b; margin: 0 0 6px 0; animation: recapRise .5s ease .8s both; }
  .recap-praise { position: relative; z-index: 1; font-size: 15px; color: #d1d7d3; margin: 0 0 24px 0; line-height: 1.45; animation: recapRise .5s ease .9s both; }
  @keyframes recapRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  .recap-hero {
    position: relative; z-index: 1; background: #1d211f; border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px; padding: 20px 16px; margin-bottom: 16px;
    animation: recapRise .5s ease 1s both;
  }
  .recap-hero-value { font-size: 40px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.05; }
  .recap-hero-label { font-size: 11px; color: #9aa49e; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

  .recap-journey {
    position: relative; z-index: 1; background: #1d211f; border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px; padding: 16px 18px 18px 18px; margin-bottom: 16px; text-align: left;
    animation: recapRise .5s ease 1.15s both;
  }
  .recap-journey-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
  .recap-journey-head span:first-child { font-size: 12px; color: #9aa49e; text-transform: uppercase; letter-spacing: .8px; }
  .recap-journey-head span:last-child { font-size: 14px; color: #f1c56b; font-weight: 800; font-variant-numeric: tabular-nums; }

  .recap-path { position: relative; padding-bottom: 4px; }
  .recap-path-track { position: absolute; top: 17px; left: 18px; right: 18px; height: 4px; background: #121513; border-radius: 4px; overflow: hidden; z-index: 0; }
  .recap-milestones { position: relative; z-index: 1; }
  .recap-path-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#c99b45,#f7d67b); border-radius: 4px; transition: width 1.2s cubic-bezier(.4,0,.2,1) 1.5s; }
  .recap-milestones { position: relative; display: flex; justify-content: space-between; }
  /* Le badge garde un fond PLEIN : sinon la ligne de progression se voit
     au travers. Seuls l'icône et le libellé s'estompent. */
  .recap-ms { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .recap-ms-badge {
    width: 38px; height: 38px; border-radius: 50%; background: #1d211f;
    border: 1.5px solid #333935; display: flex; align-items: center; justify-content: center;
    color: #7b8580; transition: all .4s ease;
  }
  .recap-ms-badge svg { width: 19px; height: 19px; opacity: .38; transition: opacity .4s ease; }
  .recap-ms-text { font-size: 11px; font-weight: 700; color: #6e7772; }
  .recap-ms-text sup { font-size: 8px; }
  .recap-ms.reached .recap-ms-badge { background: linear-gradient(135deg,#2c2517,#1a160e); border-color: #f1c56b; color: #f1c56b; }
  .recap-ms.reached .recap-ms-badge svg { opacity: 1; }
  .recap-ms.reached .recap-ms-text { color: #f1c56b; }
  .recap-ms.just-unlocked .recap-ms-badge { animation: msPop 1.1s cubic-bezier(.2,.9,.3,1.4) 2.1s both; box-shadow: 0 0 0 0 rgba(241,197,107,.55); }
  @keyframes msPop {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(241,197,107,.55); }
    40%  { transform: scale(1.28); box-shadow: 0 0 0 14px rgba(241,197,107,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(241,197,107,0); }
  }
  .recap-ms.next .recap-ms-badge { border-color: rgba(241,197,107,.45); border-style: dashed; }

  .recap-next { font-size: 13px; color: #9aa49e; margin-top: 18px; line-height: 1.45; }
  .recap-next b { color: #f1c56b; font-weight: 800; }

  .recap-unlocked {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, rgba(241,197,107,.18), rgba(241,197,107,.06));
    border: 1px solid rgba(241,197,107,.4); border-radius: 16px;
    padding: 13px 16px; margin-bottom: 16px;
    font-size: 14px; font-weight: 800; color: #f1c56b;
    animation: recapRise .5s ease 2.0s both;
  }
  .recap-unlocked-spark { animation: sparkSpin 2.4s linear infinite; display: inline-block; }
  @keyframes sparkSpin { to { transform: rotate(360deg); } }

  .recap-note { position: relative; z-index: 1; font-size: 13px; color: #9aa49e; line-height: 1.45; animation: recapRise .5s ease 1.4s both; }

  @media (prefers-reduced-motion: reduce) {
    .recap-halo, .recap-check-ring, .recap-check-mark, .recap-h2, .recap-praise,
    .recap-hero, .recap-journey, .recap-unlocked, .recap-unlocked-spark,
    .recap-ms.just-unlocked .recap-ms-badge, .recap-note { animation: none !important; }
    .recap-check-ring, .recap-check-mark { stroke-dashoffset: 0 !important; }
    .recap-path-fill { transition: none !important; }
  }

  .wod-controls-area { position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 420px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)) 16px; box-sizing: border-box; z-index: 900; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .controls-row { display: flex; width: 100%; gap: 10px; }
  .btn-primary-gold { flex: 1; background: #f1c56b; color: #1d211f; border: none; border-radius: 24px; padding: 14px 20px; font-size: 16px; font-weight: 800; cursor: pointer; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.7); transition: opacity .2s; }
  .btn-primary-gold:disabled { opacity: .5; cursor: not-allowed; }
  .btn-primary-gold.full { width: 100%; }
  .btn-outline-gold { flex: 1; background: #1d211f; color: #fff; border: 1.5px solid #f1c56b; border-radius: 24px; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 4px 18px rgba(0,0,0,.7); }
  .btn-svg-icon { width: 18px; height: 18px; }
  .secondary-links { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
  .btn-reset-link { background: rgba(29,33,31,.9); border: none; color: #f1c56b; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .9; padding: 4px 12px; border-radius: 12px; }

  .global-wod-progress-container { position: fixed; bottom: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.1); z-index: 999; }
  .global-wod-progress-fill { height: 100%; width: 0%; background: #f1c56b; box-shadow: 0 0 8px rgba(241,197,107,.6); transition: width .3s ease; }

  .wod-debug-panel { background: #000; color: #0f0; font: 11px/1.4 monospace; padding: 12px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; max-height: 400px; overflow: auto; margin-top: 24px; }
