/* Ajouts pour la version dynamique */
.hposter .hin h2 { font-size: calc(5.4cqw * var(--s, 1)); }
.hposter .hin p { font-size: calc(3.6cqw * var(--s, 1)); }
.hposter .hin .hsrc { font-size: calc(3.4cqw * var(--s, 1)); }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 24px; font-weight: 800; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn.gold { background: var(--gold); color: #1b1303; border-color: var(--gold); }
.btn.dark { background: var(--blue); color: #fff; border-color: var(--blue); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sec { margin-top: 34px; }
.sec .head { margin-top: 0; margin-bottom: 14px; }
.sec .head a { color: var(--blue-2); font-weight: 800; }
.hero { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.chip { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .95rem; color: var(--blue); }
.chip[aria-current="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.tiles .tile { text-decoration: none; }
.grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid, .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vid .meta { font-size: .82rem; color: var(--muted); margin: -4px 0 0; }
.vid p.d { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.star { position: absolute; z-index: 2; right: 8px; top: 8px; background: var(--gold); color: #1b1303; border-radius: 999px; font-size: .68rem; font-weight: 800; padding: 3px 9px; }
.back { display: inline-block; margin: 20px 0 6px; font-weight: 800; color: var(--blue-2); }
.detail { max-width: 760px; margin-top: 4px; }
.detail h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 5.5vw, 2.3rem); line-height: 1.15; margin: 6px 0 8px; text-wrap: balance; }
.detail .kicker { color: #b57c0b; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.detail .lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 14px; }
.detail .body { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 4vw, 30px); font-size: 1.08rem; line-height: 1.75; }
.detail .body p { margin: 0 0 1em; } .detail .body p:last-child { margin: 0; }
.detail .body h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 1.3em 0 .4em; color: var(--blue); }
.detail .note { margin-top: 14px; color: var(--muted); font-size: .9rem; font-style: italic; }
.media { background: #000; border-radius: 14px; overflow: hidden; margin: 8px 0 16px; }
.media video { width: 100%; max-height: 78vh; max-height: 78svh; display: block; background: #000; }
.media .pyt { max-height: 78vh; max-height: 78svh; }
.media .pyt.tall { margin: 0 auto; }
.evcard { display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.evcard img { width: 110px; height: 140px; object-fit: cover; object-position: top; border-radius: 10px; cursor: zoom-in; }
.evcard h2 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; }
.evcard .when { color: #b57c0b; font-weight: 800; font-size: .92rem; }
.evcard p { margin: 6px 0 0; color: var(--muted); }
.evcard.noimg { grid-template-columns: 1fr; }
.evlist { display: grid; gap: 14px; margin-top: 14px; max-width: 760px; }
.evlist.past { opacity: .75; }
.sub { margin: 26px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; }
.hposter-link { display: block; }
.hnav { text-align: center; margin-top: 10px; }
.tab .tdot { margin-left: 6px; }
.footer-admin { opacity: .6; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.nores { padding: 30px 0; color: var(--muted); }
.ask .askmsg { color: #fff; }
.ev-img-big { max-width: 100%; }

.hdj h1.hdjt { position: static; width: auto; height: auto; clip: auto; overflow: visible; margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 5vw, 2rem); }
.hdj { max-width: 760px; }

.hnote { color: var(--muted); font-size: .9rem; font-style: italic; text-align: center; margin: 4px 0 0; }

/* Menu des catégories (2e ligne) */
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px 10px; background: rgba(255,255,255,0.08); }
.cats::-webkit-scrollbar { display: none; }
.cats[hidden] { display: none; }
.ctab { flex: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: #dfe7fb; border: 1px solid rgba(255,255,255,0.28); }
.ctab:hover { color: #fff; border-color: #fff; }
.ctab[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #10224f; }

/* Logo image dans l'en-tête */
.logo img { display: block; height: 50px; width: auto; max-width: 100%; }
@media (min-width: 700px) { .logo img { height: 64px; } }

.chbar { margin-top: 18px; position: relative; overflow: hidden; border-radius: 22px; padding: 16px 16px 14px; color: #2a1b00; background: linear-gradient(135deg, #f6c453 0%, #e9a420 100%); box-shadow: 0 8px 22px rgba(233, 164, 32, .28); }
.chbar[hidden] { display: none; }
.chbar small { display: block; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; opacity: .75; }
.chbar h2 { margin: 2px 0 12px; font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; color: #2a1b00; }
.chbar h2 span { font-size: 1rem; opacity: .65; font-weight: 700; }
.chbar .tbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.chbar .tbox div { background: rgba(255, 255, 255, .5); border-radius: 14px; padding: 10px 6px; text-align: center; }
.chbar .tbox b { display: block; font-size: 1.2rem; font-weight: 800; color: #2a1b00; white-space: nowrap; }
.chbar .tbox i { display: block; font-style: normal; font-size: .72rem; font-weight: 700; opacity: .75; margin-top: 1px; }
.chbar .hmoment { color: #5a3d00; margin: 14px 0 6px; }
.chbar .chlink { display: inline-block; margin-top: 12px; font-weight: 800; font-size: .9rem; color: #2a1b00; text-decoration: underline; text-underline-offset: 3px; }
.chbar.big { padding: 22px 18px 18px; }
.chbar.big h2 { font-size: 2.1rem; margin-bottom: 4px; }
.chbar.big .tbox b { font-size: 1.4rem; }
.chbar.big::before { content: "🕯️"; position: absolute; right: -6px; top: -16px; font-size: 100px; opacity: .16; pointer-events: none; }

/* Appli (App Store / Google Play) : l'en-tête remplit la zone de la barre d'état */
html.appli .top { top: 0; padding-top: env(safe-area-inset-top, 0px); }
.hacc { display: block; text-decoration: none; color: inherit; }
.hacc .chbar { margin: 0 0 16px; }
