/* Accueil hors saison : vitrine des vidéos YouTube (feuille autonome, hors build Encore) */
.off-season { --ofs-blue: #00B0F0; --ofs-ink: #111; --ofs-muted: #5f6b73; }

/* ---------- Ouverture : grande vidéo ---------- */
.ofs-hero {
    background: radial-gradient(circle at 80% 0%, rgba(0, 176, 240, .25), transparent 55%), #0d1418;
    color: #fff;
    padding: 56px 0 64px;
}
.ofs-hero .center { text-align: center; }
.ofs-kicker {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ofs-blue);
}
.ofs-title {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    font-weight: bold;
    text-transform: uppercase;
}
.ofs-lead { margin: 18px auto 36px; max-width: 720px; font-size: 18px; line-height: 1.5; color: #cfd8dc; }

.ofs-stage { max-width: 1100px; margin: 0 auto; }
.ofs-stage-player {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.ofs-stage-player img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, opacity .4s ease; }
.ofs-stage-player:hover img { transform: scale(1.02); opacity: .85; }
.ofs-stage-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ofs-stage-caption { text-align: left; margin-top: 20px; }
.ofs-stage-caption h2 { margin: 0; font-size: clamp(20px, 2.6vw, 30px); font-weight: bold; color: #fff; }
.ofs-stage-caption p { margin: 8px 0 0; color: #cfd8dc; font-size: 16px; line-height: 1.5; }

/* Bouton lecture */
.ofs-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--ofs-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: transform .2s ease;
}
.ofs-play::after {
    content: "";
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}
.ofs-play-xl { width: 104px; height: 104px; }
.ofs-play-xl::after { border-width: 20px 0 20px 32px; }
.ofs-stage-player:hover .ofs-play,
.ofs-card:hover .ofs-play { transform: translate(-50%, -50%) scale(1.1); }

/* ---------- Sections ---------- */
.ofs-section { padding: 56px 0 8px; }
.ofs-section-title {
    margin: 0 0 28px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--ofs-ink);
}
.ofs-section-title span { display: inline-block; padding-bottom: 8px; border-bottom: 4px solid var(--ofs-blue); }

.ofs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ofs-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 900px) { .ofs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ofs-grid, .ofs-grid-large { grid-template-columns: minmax(0, 1fr); } }

.ofs-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.ofs-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.ofs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, opacity .35s ease; }
.ofs-card:hover .ofs-thumb img,
.ofs-card:focus-visible .ofs-thumb img { transform: scale(1.04); opacity: .85; }
.ofs-card:focus-visible { outline: 3px solid var(--ofs-blue); outline-offset: 4px; }
.ofs-card-title { font-size: 17px; font-weight: bold; line-height: 1.3; color: var(--ofs-ink); }
.ofs-card-large .ofs-card-title { font-size: 22px; }
.ofs-card-large .ofs-play { width: 80px; height: 80px; }
.ofs-card-desc { color: var(--ofs-muted); font-size: 15px; line-height: 1.5; }

.ofs-empty { text-align: center; font-size: 20px; color: var(--ofs-muted); padding: 40px 0; }

/* ---------- Appels à l'action ---------- */
.ofs-cta { padding: 56px 0 64px; }
.ofs-cta .center { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ofs-btn {
    display: inline-block;
    padding: 14px 26px;
    border: 2px solid var(--ofs-blue);
    color: var(--ofs-blue);
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: .04em;
    transition: background-color .2s, color .2s;
}
.ofs-btn:hover, .ofs-btn-solid { background: var(--ofs-blue); color: #fff; }
.ofs-btn-solid:hover { background: #0090c4; border-color: #0090c4; }

/* ---------- Fenêtre de lecture ---------- */
/* Centrage explicite (horizontal + vertical) : le CSS du site remet les marges à zéro,
   ce qui annule le centrage natif de <dialog>. */
.ofs-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(1100px, 92vw);
    height: fit-content;
    max-height: 92vh;
    overflow: auto;
    padding: 0;
    border: 1px solid rgba(0, 176, 240, .45);
    border-radius: 18px;
    background: #0d1418;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 30px 90px rgba(0, 0, 0, .65);
}
.ofs-modal[open] { animation: ofs-modal-in .22s ease-out; }
@keyframes ofs-modal-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.ofs-modal::backdrop { background: rgba(5, 10, 14, .82); backdrop-filter: blur(3px); }
.ofs-modal-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 17px 17px 0 0; overflow: hidden; }
.ofs-modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ofs-modal-title { margin: 16px 20px 0; font-size: 22px; font-weight: bold; }
.ofs-modal-desc { margin: 8px 20px 20px; color: #cfd8dc; line-height: 1.5; }
.ofs-modal-desc:empty { display: none; }
.ofs-modal-close {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 28px;
    line-height: 40px;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .ofs-stage-player img, .ofs-thumb img, .ofs-play { transition: none; }
    .ofs-modal[open] { animation: none; }
}

/* Badge de format sur les miniatures (Short, Live) */
.ofs-badge {
    position: absolute;
    top: 10px;
    right: 10px; /* en haut à droite : laisse libre le coin gauche des miniatures */
    padding: 3px 9px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    background: rgba(0, 0, 0, .7);
}
.ofs-badge-live { background: #d32f2f; }
.ofs-badge-short { background: #e91e63; }

/* Icône « nouvel onglet » dans les boutons, texte réservé aux lecteurs d'écran */
.ofs-btn .fas { margin-left: 8px; font-size: .85em; }
.off-season .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
