/* Thème « Mon Chiour » (refonte 2026-10-23) : noir profond, or champagne, typographie éditoriale.
   S'applique par-dessus style.css et app.css. Principe : peu d'effets, beaucoup d'espace, l'or seulement pour les accents. */
:root {
  --bg: #0b0c10;
  --s1: #121318;
  --s2: #181a20;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --tx: #ede9e1;
  --mu: #9d988e;
  --gold: #c9a45c;
  --gold2: #e2c483;
  --gold-ink: #17120a;
  --paper: #f7f3ea;
  --paper-ink: #1f1b14;
  --cream: #f7f3ea;
  /* anciens noms encore utilisés dans le code */
  --ink: var(--tx); --muted: var(--mu); --card: var(--s1); --blue: var(--gold2); --blue-2: var(--gold2);
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
  color-scheme: dark;
}
html { background: var(--bg); }
body { background: radial-gradient(1100px 420px at 50% -160px, rgba(201, 164, 92, .10), transparent 70%) no-repeat, var(--bg); color: var(--tx); font-size: 16px; line-height: 1.55; padding-bottom: 0; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1120px; padding-inline: 20px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(201, 164, 92, .35); }

/* ---------- En-tête : logo, menu, recherche ---------- */
.top { top: env(safe-area-inset-top, 0px); background: rgba(11, 12, 16, .86); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid var(--line); box-shadow: none; color: var(--tx); }
.bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo acts" "nav nav"; align-items: center; column-gap: 16px; padding-block: 10px 0; }
.logo { grid-area: logo; justify-self: start; }
.logo img { height: 40px; }
.acts { grid-area: acts; display: flex; align-items: center; gap: 10px; }
.round { width: 40px; height: 40px; background: transparent; border: 1px solid var(--line2); transition: border-color .2s, background .2s; }
.round:hover { transform: none; background: rgba(255, 255, 255, .05); border-color: var(--gold); }
.round svg { width: 19px; height: 19px; stroke: var(--tx); stroke-width: 1.8; }
.avatar { border: 1px solid var(--gold); background: var(--s2); }
.searchbox { padding-block: 4px 14px; }
.searchbox input { border-radius: 10px; padding: 12px 16px; background: var(--s2); border: 1px solid var(--line2); color: var(--tx); }
.searchbox input:focus { outline: none; border-color: var(--gold); }
.cats { display: none !important; }

/* Menu : une ligne de mots, l'onglet actif souligné d'or */
.tabs { grid-area: nav; position: static; transform: none; width: auto; margin: 6px -20px 0; padding: 0 20px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px 12px; border-radius: 0; border-bottom: 2px solid transparent; background: none; box-shadow: none; font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--mu); transition: color .2s, border-color .2s; }
.tab:hover { color: var(--tx); }
.tab[aria-pressed="true"] { color: var(--tx); background: none; box-shadow: none; border-bottom-color: var(--gold); }
.tab svg, .tab .kids { display: none; }
.tab > span:not(.kids):not(.twa) { order: 1; }
.tab .tdot, .tab .mdot { animation: none; position: static; order: 2; width: 6px; height: 6px; margin: 0; border-radius: 50%; background: var(--gold); }
.tab .mdot { display: none; }
.tab .twa { position: static; order: 2; width: 6px; height: 6px; background: #25d366; box-shadow: none; }
.tab .twa svg { display: none; }
.tab.blink { color: var(--gold2); animation: none; }
.tab.blink .mdot { display: block; animation: pulse 1.6s infinite; }

@media (min-width: 1080px) {
  .bar { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav acts"; padding-block: 0; }
  .logo img { height: 46px; }
  .tabs { margin: 0; padding: 0; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .tab { padding: 26px 9px 24px; font-size: .88rem; }
}
html.appli .top { padding-top: env(safe-area-inset-top, 0px); top: 0; }

/* ---------- Titres ---------- */
.head { align-items: flex-end; padding-block: 40px 18px; }
.sec { margin-top: 52px; }
.sec .head { padding-block: 0; margin-bottom: 18px; }
.stitle, .head h1, .head h2, .wrap > h1, #view > h1, .hdj h1.hdjt, .detail h1, .sub, .horaires h1 { font-family: var(--font-display); font-weight: 700; color: var(--tx); letter-spacing: -.01em; line-height: 1.12; text-shadow: none; background: none; -webkit-text-fill-color: currentColor; filter: none; }
.stitle, .head h1, .head h2, .hdj h1.hdjt { font-size: clamp(1.75rem, 5vw, 2.4rem); }
.sec .head h2, .sub { font-size: clamp(1.35rem, 3.6vw, 1.7rem); }
.head h1::before, .head h2::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--gold); }
.head span { color: var(--mu); font-size: .88rem; white-space: nowrap; }
.sec .head a { color: var(--gold2); font-weight: 500; font-size: .9rem; }
.sec .head a::after { content: " →"; }
.sec .head a:hover { color: var(--tx); }

/* ---------- Bande-annonce et affiches ---------- */
.trailer, .affiche { margin-top: 20px; border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); background: var(--s1); }
.trailer .tplay { width: 64px; height: 64px; right: 18px; bottom: 18px; background: rgba(11, 12, 16, .5); border: 1.5px solid rgba(255, 255, 255, .85); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s; }
.trailer .tplay:after { left: 25px; top: 20px; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.trailer:hover .tplay { background: rgba(201, 164, 92, .85); border-color: transparent; }
.trailer .tlabel { left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 6px; background: rgba(11, 12, 16, .7); backdrop-filter: blur(6px); color: var(--tx); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; box-shadow: none; }
@media (max-width: 600px) { .trailer { border-radius: 12px; } .trailer .tplay { width: 48px; height: 48px; right: 10px; bottom: 10px; } .trailer .tplay:after { left: 18px; top: 13px; border-width: 10px 0 10px 16px; } .trailer .tlabel { left: 10px; bottom: 10px; font-size: .64rem; } }
.affs { gap: 14px; margin-top: 14px; }
.affs .affiche { margin-top: 0; box-shadow: none; }
.affs .affiche.port { background: var(--s1); }

/* ---------- Bandeaux de l'accueil ---------- */
.hbar, .evbar, .inst, .souv { margin-top: 14px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; color: var(--tx); padding: 14px 16px; }
.hbar:hover, .evbar:hover { border-color: rgba(201, 164, 92, .5); }
.evtxt small { color: var(--gold); font-weight: 600; font-size: .68rem; letter-spacing: .16em; }
.evtxt b { color: var(--tx); font-weight: 700; }
.evtxt i { color: var(--gold2); font-weight: 500; font-size: .86rem; }
.evbar img { border-radius: 8px; }
.insttxt p { color: var(--mu); }
.insttxt button { border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 600; }
.inst .instx { color: var(--mu); }

/* Horaires du jour */
.chbar { margin-top: 20px; border-radius: var(--r); padding: 20px; color: var(--tx); background: linear-gradient(180deg, rgba(201, 164, 92, .10), rgba(201, 164, 92, 0) 60%), var(--s1); border: 1px solid rgba(201, 164, 92, .35); box-shadow: none; }
.chbar small { color: var(--gold); opacity: 1; font-weight: 600; font-size: .68rem; letter-spacing: .16em; }
.chbar h2, .chbar.big h2 { margin: 6px 0 16px; color: var(--tx); font-weight: 700; font-size: 1.6rem; }
.chbar h2 span { color: var(--mu); opacity: 1; font-family: var(--font-body); font-weight: 400; }
.chbar .tbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
@media (min-width: 700px) { .chbar .tbox { grid-template-columns: repeat(auto-fill, 170px); } }
.chbar .tbox div { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; }
.chbar .tbox b, .chbar.big .tbox b { color: var(--gold2); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.chbar .tbox i { color: var(--mu); opacity: 1; font-weight: 500; font-size: .76rem; margin-top: 2px; }
.chbar .hmoment { color: var(--gold); margin: 14px 0 6px; }
.chbar .chlink { color: var(--gold2); font-weight: 500; }
.chbar.big::before { content: none; }
.hacc .chbar { margin: 20px 0 0; }

/* ---------- Cartes de contenus ---------- */
.grid { gap: 28px 16px; margin-top: 0; }
@media (min-width: 720px) { .grid { gap: 36px 22px; } }
.vid { background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; gap: 12px; transition: none; }
.vid:hover { transform: none; box-shadow: none; }
.vid .thumb, .vid:hover .thumb { border-radius: 10px; border: 1px solid var(--line); box-shadow: none; transform: none; }
.thumb { aspect-ratio: 16 / 10; background: var(--s2); }
.thumb::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35)); }
.thumb img { transition: transform .5s ease; }
.vid:hover .thumb img { transform: scale(1.04); }
.g1, .g2, .g3, .g4, .g5 { background: radial-gradient(circle at 70% 20%, rgba(201, 164, 92, .18), transparent 60%), var(--s2); }
.thumb .l { color: rgba(201, 164, 92, .35); }
.thumb .cat { left: 10px; top: 10px; padding: 4px 8px; border-radius: 5px; background: rgba(11, 12, 16, .72); backdrop-filter: blur(6px); color: var(--tx); font-size: .62rem; font-weight: 600; letter-spacing: .12em; }
.thumb .star { right: 10px; top: 10px; padding: 4px 8px; border-radius: 5px; border: 0; background: rgba(11, 12, 16, .72); backdrop-filter: blur(6px); color: var(--gold2); font-size: .62rem; font-weight: 600; letter-spacing: .06em; }
.thumb .pl { right: 10px; bottom: 10px; width: 34px; height: 34px; background: rgba(11, 12, 16, .55); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(4px); }
.thumb .pl::after { border-left: 10px solid #fff; border-top-width: 6px; border-bottom-width: 6px; }
.thumb .pt { background: var(--gold); color: var(--gold-ink); border-radius: 5px; }
.vid h2 { padding: 0; color: var(--tx); font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
.vid:hover h2 { color: var(--gold2); }
.vid .meta { padding: 0; margin: -6px 0 0; color: var(--mu); font-size: .8rem; }
.vid p.d { color: var(--mu); }
@media (max-width: 719px) {
  .grid.rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 6px; scrollbar-width: none; gap: 14px; }
  .grid.rail::-webkit-scrollbar { display: none; }
  .grid.rail .vid { flex: none; width: 72%; scroll-snap-align: start; }
}

/* Filtres */
.chips { gap: 8px; margin: 4px 0 8px; }
.chip { padding: 7px 15px; border-radius: 999px; background: transparent; border: 1px solid var(--line2); color: var(--tx); font-weight: 500; font-size: .88rem; }
.chip:hover { border-color: var(--gold); }
.chip[aria-current="true"] { background: var(--tx); border-color: var(--tx); color: var(--bg); }

/* Boutons */
.btn { border-radius: 10px; padding: 12px 22px; font-weight: 600; background: transparent; color: var(--tx); border: 1px solid var(--line2); }
.btn.gold, .btn.dark { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.gold:hover, .btn.dark:hover { background: var(--gold2); border-color: var(--gold2); }
.btn.ghost { background: transparent; color: var(--tx); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: var(--gold); }

/* ---------- Pages de lecture ---------- */
.back { margin: 28px 0 8px; color: var(--gold2); font-weight: 500; font-size: .92rem; }
.detail { max-width: 760px; }
.detail .kicker, .hdj .hdate, .hsub, .hmoment { color: var(--gold); font-weight: 600; font-size: .72rem; letter-spacing: .16em; }
.detail h1 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); margin: 10px 0 12px; }
.detail .lead { color: var(--mu); font-size: 1.1rem; line-height: 1.6; }
.detail .body { background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 12px; box-shadow: none; padding: clamp(22px, 5vw, 40px); font-size: 1.06rem; line-height: 1.8; }
.detail .body h3 { color: #7a5a17; }
.detail .note, .note, .hnote { color: var(--mu); }
.media { border-radius: 12px; border: 1px solid var(--line); box-shadow: none; margin: 12px 0 20px; }
.byline { margin: 4px 0 16px; color: var(--gold2); font-weight: 500; font-size: .95rem; font-style: italic; }
.pdfbox { flex-direction: row; flex-wrap: wrap; }
.pdfbox .btn { flex: 1 1 200px; }
.dedline { margin: 24px auto 0; max-width: 760px; padding: 14px 0; border: 0; border-top: 1px solid rgba(201, 164, 92, .35); border-bottom: 1px solid rgba(201, 164, 92, .35); border-radius: 0; background: none; color: var(--gold2); font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 1.08rem; text-align: center; }
.dedlink { display: table; margin: 18px auto 0; padding: 8px 16px; border-radius: 999px; background: transparent; border: 1px solid var(--line2); color: var(--tx); font-weight: 500; font-size: .88rem; }
.dedlink:hover { border-color: var(--gold); color: var(--gold2); }

/* Halakha du jour et midrash */
.hdj { margin-top: 40px; gap: 14px; }
.hdj h1.hdjt { margin: 0 0 8px; }
.hposter { border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.hposter-link { transition: transform .25s; }
.hposter-link:hover { transform: translateY(-2px); }
.mcard { background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 8px var(--paper), inset 0 0 0 9px rgba(122, 90, 23, .3), 0 24px 60px rgba(0, 0, 0, .5); }
.mcard h2, .hdj .mcard h2, .mcard h3 { color: #1f1b14; }
.mcard p { color: #2b261d; font-weight: 500; }
.mcard .mtop small { color: #7a5a17; }
.mcard .mstar { color: #a8812f; }
.mcard.short::after { color: #7a5a17; background: linear-gradient(180deg, rgba(247, 243, 234, 0), var(--paper) 60%); }
.mcard.neuf { animation: none; }
.gimg img { border-radius: 10px; border: 1px solid var(--line); box-shadow: none; }
.gimg figcaption { color: var(--mu); font-weight: 500; font-size: .82rem; }

/* Feuillet de la semaine */
.fcard { gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); color: var(--tx); box-shadow: none; }
.fcard:hover { border-color: rgba(201, 164, 92, .5); }
.fcard .fi { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(201, 164, 92, .5); color: var(--gold2); }
.fcard .fi svg { width: 24px; height: 24px; }
.fcard b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.fcard i { color: var(--mu); opacity: 1; font-style: normal; }
.fcard .fgo { color: var(--gold2); font-weight: 500; }

/* ---------- Horaires, événements, présentation ---------- */
.horaires { margin-top: 20px; gap: 18px; }
.hcard, .evcard { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; color: var(--tx); padding: clamp(20px, 4vw, 28px); }
.hcard h2 { color: var(--tx); font-weight: 700; font-size: 1.35rem; margin-bottom: 14px; }
.hcard h2 span { color: var(--gold2); }
.hgold { border-color: rgba(201, 164, 92, .35); box-shadow: none; }
.hlist li { border-top: 1px solid var(--line); padding: 12px 0; font-size: 1rem; }
.hlist b { color: var(--gold2); font-weight: 600; font-variant-numeric: tabular-nums; }
.evcard { padding: 14px; }
.evcard h2 { color: var(--tx); font-weight: 700; }
.evcard .when { color: var(--gold2); font-weight: 500; }
.evcard p, .evcard div { color: var(--mu); }
.evcard img { border-radius: 8px; }
.intro { background: linear-gradient(rgba(11, 12, 16, .82), rgba(11, 12, 16, .92)), url(images/yechiva.jpg) center / cover; border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
.intro .sign { color: var(--gold2) !important; }

/* ---------- Formulaires (Question, Dédier) ---------- */
.ask { margin-top: 40px; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; box-shadow: none; color: var(--tx); padding: clamp(22px, 5vw, 36px); gap: 12px; }
.ask h2 { font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.1rem); color: var(--tx); }
.ask h2::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--gold); }
.ask > p { color: var(--mu); line-height: 1.6; }
.ask form { gap: 16px; margin-top: 10px; }
.ask label { gap: 7px; font-weight: 500; font-size: .86rem; color: var(--mu); }
.ask label small { opacity: .8; font-weight: 400; }
.ask input, .ask textarea, .ask select { font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line2); background: #0e0f13; color: var(--tx); width: 100%; transition: border-color .2s, box-shadow .2s; }
.ask input::placeholder, .ask textarea::placeholder { color: #6d685f; }
.ask input:focus, .ask textarea:focus, .ask select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .18); }
.ask button { margin-top: 4px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 600; padding: 14px 26px; }
.ask button:hover { background: var(--gold2); }
.ask .askmsg { color: var(--tx); }
.wabox, .dedic { margin: 24px 0 0; padding: 22px; border-radius: 12px; text-align: center; }
.wabox { background: rgba(37, 211, 102, .06); border: 1px solid rgba(37, 211, 102, .35); color: var(--tx); }
.wabox h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.wabox p { color: var(--mu); }
.btn.wa { border-radius: 10px; font-weight: 600; padding: 12px 22px; }
.dedic { background: var(--s1); border: 1px solid rgba(201, 164, 92, .35); color: var(--tx); }

/* ---------- Pied de page ---------- */
footer { margin-top: 72px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--mu); font-size: .85rem; align-items: center; gap: 12px 24px; }
.flinks { display: flex; flex-wrap: wrap; gap: 22px; }
.flinks a { color: var(--tx); font-weight: 500; }
.flinks a:hover { color: var(--gold2); }
.flinks .footer-admin { color: var(--mu); font-weight: 400; }
.loading, .nores, .empty { color: var(--mu); }

/* ---------- Fenêtres (affiche en grand, lecteur, zoom) ---------- */
.event .eback { background: rgba(5, 6, 8, .86); backdrop-filter: blur(4px); }
.event .ebtn { border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 600; }
.event { padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.event img { border-radius: 12px; max-height: calc(100vh - 150px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 150px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.pbox { background: var(--s1); border: 1px solid var(--line); }
.zlock { overflow: hidden; }
.zoomv { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 8, .97); display: flex; flex-direction: column; }
.zoomv .zclose { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0b0c10; font-size: 28px; line-height: 1; }
.zoomv .zscroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: center; justify-content: center; padding: 64px 0 0; }
.zoomv img { width: 100%; height: auto; max-height: 100%; object-fit: contain; cursor: zoom-in; background: #fff; }
.zoomv.zoomed .zscroll { display: block; }
.zoomv.zoomed img { width: 230%; max-width: none; max-height: none; cursor: zoom-out; }
.zoomv .zhint { margin: 0; padding: 10px; text-align: center; color: var(--mu); font-size: .88rem; }

/* ---------- Mises en page spéciales conservées ---------- */
.gimg { margin: 0 0 16px; }
.gimg img { display: block; width: 100%; height: auto; cursor: zoom-in; background: #fff; }
.gimg figcaption { margin-top: 8px; text-align: center; }
.gamegrid { grid-template-columns: 1fr !important; }
.gamegrid .thumb { aspect-ratio: 3 / 2; background: #fff; }
.gamegrid .thumb img { object-fit: contain; }
.pdfbox { display: flex; gap: 10px; margin: 14px 0 18px; }
.pdfbox .btn { text-align: center; }
.fcard { display: flex; align-items: center; text-decoration: none; }
.fcard .ft { flex: 1; display: flex; flex-direction: column; }
.wabox h3, .dedic h3 { margin: 0 0 8px; } .wabox p, .dedic p { margin: 0 0 14px; line-height: 1.5; }
.dedic small { display: block; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font: 600 11px var(--font-body); margin-bottom: 8px; }
.btn.wa { background: #25d366; color: #06220f; display: inline-block; text-decoration: none; }
.trailer { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; }
.trailer img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.trailer:hover img { transform: scale(1.02); }
.trailer .tplay { position: absolute; border-radius: 50%; }
.trailer .tplay:after { content: ""; position: absolute; border-style: solid; }
.trailer .tlabel { position: absolute; }
.trailer.on { cursor: default; }
.trailer .tplay, .trailer .tlabel { z-index: 1; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.affiche { display: block; overflow: hidden; }
.affiche img { display: block; width: 100%; height: auto; }
.affs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.affs::-webkit-scrollbar { display: none; }
.affs .affiche { flex: 0 0 100%; scroll-snap-align: center; }
.affs.multi .affiche { flex-basis: 88%; }
.affs .affiche.port { display: flex; justify-content: center; }
.affs .affiche.port img { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; }
@media (min-width: 900px) { .affs .affiche.port img { max-height: 66vh; } .affs.multi .affiche { flex-basis: 70%; } }
.mcard { position: relative; max-width: 760px; margin: 12px auto 0; padding: clamp(24px, 5vw, 40px); font-family: var(--font-display); font-size: 1.12rem; line-height: 1.75; }
.mcard .mtop { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mcard .mtop small { font-family: var(--font-body); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; }
.mcard h2, .hdj .mcard h2 { margin: 6px 0 16px; text-align: center; font-weight: 700; font-size: clamp(1.45rem, 5vw, 1.95rem); line-height: 1.2; text-wrap: balance; }
.mcard p { margin: 0 0 1em; }
.mcard h3 { margin: 1.2em 0 .3em; font-size: 1.2rem; }
.mcard .msrc { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(122, 90, 23, .3); font-size: .92rem; color: #6b5a2a; text-align: center; }
.mcard .empty { text-align: center; margin: 0; }
.mcard.short { max-height: 340px; overflow: hidden; }
.mcard.short::after { content: "Lire la suite →"; position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 0 18px; text-align: center; font-family: var(--font-body); font-weight: 600; border-radius: 0 0 12px 12px; }
.mcard-link { display: block; transition: transform .25s; } .mcard-link:hover { transform: translateY(-2px); }
.mdj { max-width: 760px; }
.mcard .mvid { margin: 0 -6px 16px; } .mcard .mvid .media { border-radius: 10px; margin: 0; }

@media (min-width: 700px) {
  html, body { font-size: 17px; }
  .wrap { padding-inline: 28px; }
  .tabs { margin-inline: -28px; padding-inline: 28px; }
}
@media (min-width: 1080px) { .tabs { margin-inline: 0; padding-inline: 0; } }
@media (min-width: 1000px) { .grid.rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .tab.blink .mdot, .hdot { animation: none; } .thumb img, .trailer img { transition: none; } }
/* Notifications du site : petite carte avant le pied de page */
.notif { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 14px 16px; border-radius: var(--r); background: var(--s1); color: var(--tx); border: 1px solid var(--line); border-top: 2px solid var(--gold); position: relative; }
.notif .nbell { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); color: var(--gold); }
.notif .nbell svg { width: 24px; height: 24px; }
.notif p { margin: 0; flex: 1; font-size: .9rem; line-height: 1.4; color: var(--mu); padding-right: 14px; }
.notif p b { display: block; color: var(--tx); font-size: 1rem; }
.notif .nshare { display: inline-block; padding: 0 4px; border-radius: 5px; background: var(--s2); color: var(--tx); }
.notif .btn { flex: none; padding: 10px 18px; cursor: pointer; }
.notif .nclose { position: absolute; top: 4px; right: 8px; background: none; border: 0; color: var(--mu); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px; }
html.appli .notif { display: none; }

/* Affiche du midrash de la semaine sur l'accueil */
.mhome { display: block; max-width: 520px; margin: 0 auto; }
.mhome img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(201, 162, 39, .45); box-shadow: 0 8px 24px rgba(15, 44, 117, .18); }
