body {
    font-family: 'Roboto', sans-serif;
    background-color: #1d1f20;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;

    position: relative;   /* <-- ajouter */
    overflow: hidden;     /* <-- ajouter */
}

.container {
    background-color: rgba(44, 47, 51, 0.9);
    position: relative;
    z-index: 1;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    width: 100%;

    max-height: 90vh;
    overflow-y: auto;
}

/* cacher la barre de scroll sur ce conteneur */
.container::-webkit-scrollbar {
    display: none;
}
.container {
    scrollbar-width: none;
}
.container {
    position: relative;
    z-index: 1;
}




header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative; /* Permet de positionner le date */
}

header h1 {
    font-family: 'Oswald', sans-serif;
    color: #e4bc14; /* Titre en rouge pour un effet énergique */
    margin: 0;
    flex: 1; /* Permet à h1 de prendre tout l'espace disponible */
    text-align: center; /* Centre le texte à l'intérieur de l'élément */
}

#date {
    position: absolute;
    right: 0;
    font-size: 0.9em;
}

#programme-container {
    margin-top: 20px;
}

#programme {
    list-style-type: none;
    padding: 0;
}

#programme li {
    background-color: #3c3f43; /* Fond des éléments de la liste */
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif; /* Police pour les exercices */
}

#programme li a {
    display: block;
    color:  #e4bc14; /* Liens en rouge pour un effet énergique */
    text-decoration: none;
    margin-top: 10px;
}

#programme li a:hover {
    text-decoration: underline;
}

.video-carousel {
    margin-top: 20px;
}

.slider iframe {
    width: 100%;
    height: auto;
    max-width: 560px;
    max-height: 315px;
    border: none;
    border-radius: 5px;
}
/* Widget flottant Instagram + Boutique */
.hf-social-widget {
    position: fixed;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    font-size: 0.85rem;
}

.hf-social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.55);
    color: #f5f5f5;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.hf-social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.8);
}

.hf-social-icon {
    font-size: 1rem;
}

/* Encore plus discret sur très petits écrans : on garde juste les icônes */
@media (max-width: 480px) {
    .hf-social-widget {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }

    .hf-social-link {
        padding: 5px 9px;
        font-size: 0.8rem;
    }

    .hf-social-text {
        display: none;
    }
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
    }

    #date {
        font-size: 1em;
    }
}
/* Vidéo d'arrière-plan */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
     pointer-events: none;  /* ✅ important */
    opacity: 0.35;
}
/* =========================
   Progression de séance
   ========================= */
.hf-progress {
    margin: 10px 0 18px 0;
    text-align: left;
}

.hf-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hf-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.hf-progress-fill {
    height: 100%;
    width: 0%;
    background: #e4bc14;
    border-radius: 999px;
    transition: width 0.2s ease;
}

/* =========================
   Checklist exercices
   ========================= */
#programme li.hf-ex-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
}

.hf-check {
    margin-top: 3px;
    transform: scale(1.1);
    accent-color: #e4bc14;
    flex: 0 0 auto;
}

.hf-ex-content {
    flex: 1;
}

#programme li.hf-ex-item.is-done {
    opacity: 0.65;
}

#programme li.hf-ex-item.is-done strong {
    text-decoration: line-through;
}

/* =========================
   Bottom nav mobile
   ========================= */
.hf-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .hf-bottom-nav {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        display: flex;
        gap: 8px;
        padding: 8px;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(6px);
        border-radius: 14px;
        z-index: 999;
        box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    }

    .hf-nav-btn {
        appearance: none;
        border: 0;
        background: rgba(255,255,255,0.08);
        color: #fff;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 0.85rem;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.15s ease, transform 0.15s ease;
    }

    .hf-nav-btn:active {
        transform: translateY(1px);
    }

    .hf-nav-btn:hover {
        background: rgba(255,255,255,0.16);
    }

    .hf-nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* éviter que la nav masque le bas du contenu */
    .container {
        padding-bottom: 90px;
    }
}
/* =========================
   MODE FOCUS (bottom sheet)
   ========================= */
.hf-focus-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.hf-focus-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.hf-focus-sheet {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    bottom: 0;
    width: min(640px, 100%);
    background: #2c2f33;
    border-radius: 18px 18px 0 0;
    padding: 14px 16px 18px 16px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2001;
}

.hf-focus-sheet.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hf-focus-handle {
    width: 50px;
    height: 5px;
    margin: 0 auto 10px auto;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
}

.hf-focus-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.hf-focus-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #e4bc14;
    margin: 0 0 4px 0;
}

.hf-focus-sub {
    font-size: 0.95rem;
    opacity: 0.9;
}

.hf-focus-close {
    border: 0;
    background: rgba(255,255,255,0.08);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
}

.hf-focus-video {
    margin-top: 8px;
}

.hf-focus-video iframe {
    width: 100%;
    aspect-ratio: 16 / 10;   /* un peu moins “cinéma”, plus homogène */
    max-height: 240px;       /* évite que la vidéo prenne trop de place */
    border: 0;
    border-radius: 10px;
}

/* Centrage du titre + consignes dans le mode focus */
.hf-focus-header {
    position: relative;
    justify-content: center;
    text-align: center;
}

.hf-focus-header > div {
    width: 100%;
}

.hf-focus-close {
    position: absolute;
    right: 0;
    top: 0;
}
/* =========================
   REPOS intégré
   ========================= */
.hf-rest-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.hf-rest-btn {
    border: 0;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.hf-rest-btn.primary {
    background: #e4bc14;
    color: #1d1f20;
    font-weight: 600;
}

.hf-rest-timer {
    font-variant-numeric: tabular-nums;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.25);
    font-size: 0.95rem;
}
/* Bouton "Voir la vidéo" centré avec la couleur HorizonFall */
.hf-open-focus {
    display: block;
    width: fit-content;
    margin: 8px auto 0 auto;          /* centre horizontalement */
    padding: 6px 10px;

    background: transparent;          /* garde l'esprit du lien d'origine */
    color: #e4bc14;                   /* ✅ même couleur que le titre */
    border: 1px solid rgba(228, 188, 20, 0.35);
    border-radius: 10px;

    font-size: 0.85rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.hf-open-focus:hover {
    background: rgba(228, 188, 20, 0.08);
    border-color: rgba(228, 188, 20, 0.6);
}

.hf-open-focus:active {
    transform: translateY(1px);
}
/* =========================
   Animation fin de séance
   ========================= */

@keyframes hf-complete-pulse {
    0%   { box-shadow: 0 0 0 rgba(228,188,20,0); }
    30%  { box-shadow: 0 0 18px rgba(228,188,20,0.35); }
    60%  { box-shadow: 0 0 28px rgba(228,188,20,0.55); }
    100% { box-shadow: 0 0 0 rgba(228,188,20,0); }
}

.container.hf-session-complete {
    animation: hf-complete-pulse 0.9s ease;
}

/* Toast de complétion */
.hf-complete-toast {
    position: fixed;
    left: 50%;
    bottom: 80px; /* laisse de la place à la bottom nav si tu l'as */
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
}

.hf-complete-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Confettis légers */
.hf-confetti-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2999;
}

.hf-confetti {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    background: #e4bc14; /* couleur HorizonFall */
    opacity: 0.9;
    animation: hf-confetti-fall 900ms ease-in forwards;
}

@keyframes hf-confetti-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.9; }
    100% { transform: translateY(110vh) rotate(140deg); opacity: 0; }
}
/* Fix mobile : éviter le chevauchement titre / date */
@media (max-width: 767px) {
    header,
    #hf-section-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        position: static; /* au cas où */
    }

    #date {
        position: static !important;  /* override du desktop */
        right: auto !important;
        margin-top: 2px;
        text-align: center;
        width: 100%;
        font-size: 0.9em;
    }
}

