/* Variante claire (2026-10-23) : blanc, gris clair, texte noir, or pour les accents. À charger après theme.css. */
:root {
  --bg: #ffffff;
  --s1: #f5f5f6;
  --s2: #ececee;
  --line: rgba(0, 0, 0, .08);
  --line2: rgba(0, 0, 0, .16);
  --tx: #111113;
  --mu: #6b6b72;
  --gold: #b08a3e;
  --gold2: #8f6c22;
  --gold-ink: #ffffff;
  color-scheme: light;
}
body { background: var(--bg); }
::selection { background: rgba(176, 138, 62, .25); }

/* En-tête blanc */
.top { background: rgba(255, 255, 255, .9); }
.round:hover { background: rgba(0, 0, 0, .04); }
.searchbox input { background: var(--s1); }

/* Boutons principaux en noir, l'or reste pour les petits accents */
.btn.gold, .btn.dark, .ask button, .insttxt button, .event .ebtn { background: var(--tx); border-color: var(--tx); color: #fff; }
.btn.gold:hover, .btn.dark:hover, .ask button:hover { background: #2a2a2e; border-color: #2a2a2e; }
.chip[aria-current="true"] { background: var(--tx); border-color: var(--tx); color: #fff; }

/* Cartes grises claires */
.trailer, .affiche { box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.affs .affiche { box-shadow: none; }
.chbar { background: var(--s1); border-color: var(--line); border-top: 2px solid var(--gold); }
.chbar .tbox div { background: #fff; }
.hgold { border-color: var(--line); border-top: 2px solid var(--gold); }
.hbar:hover, .evbar:hover, .fcard:hover { border-color: var(--gold); }
.vid .thumb, .vid:hover .thumb { border-color: var(--line); }
.g1, .g2, .g3, .g4, .g5 { background: radial-gradient(circle at 70% 20%, rgba(176, 138, 62, .16), transparent 60%), var(--s2); }
.thumb .l { color: rgba(176, 138, 62, .45); }
.intro { background: linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .94)), url(images/yechiva.jpg) center / cover; }

/* Formulaires */
.ask input, .ask textarea, .ask select { background: #fff; }
.ask input::placeholder, .ask textarea::placeholder { color: #a3a3a8; }
.ask input:focus, .ask textarea:focus, .ask select:focus { box-shadow: 0 0 0 3px rgba(176, 138, 62, .18); }
.wabox { background: rgba(37, 211, 102, .07); }

/* Textes longs : papier crème avec un filet, pour se détacher du blanc */
.detail .body { border: 1px solid rgba(176, 138, 62, .3); }
.hposter, .mcard { box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.mcard { box-shadow: inset 0 0 0 8px var(--paper), inset 0 0 0 9px rgba(122, 90, 23, .3), 0 18px 40px rgba(0, 0, 0, .12); }
.gimg img { border-color: var(--line); }

/* Fenêtres */
.pbox { background: #0b0c10; border: 0; }

/* Pastilles sur les vignettes : toujours claires sur fond sombre */
.thumb .cat { color: #fff; }
.thumb .star { color: #e2c483; }
.trailer .tlabel { color: #fff; }

/* ===== Style « portail » (2026-10-26, modèle Torah-Box) =====
   Une seule barre bleu nuit en haut : menu ☰, logo au centre, recherche. Page blanche, cartes en 2 colonnes. */
:root { --nav: #0d1b3e; }
.top { background: var(--nav); border-bottom: 0; box-shadow: 0 2px 10px rgba(13, 27, 62, .18); backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar { grid-template-columns: 44px 1fr 44px; grid-template-areas: "menu logo acts"; padding-block: 8px; column-gap: 8px; }
#menuBtn { grid-area: menu; }
.logo { justify-self: center; }
.logo img { height: 42px; filter: none; }
.top .round { border: 0; background: transparent; }
.top .round:hover { background: rgba(255, 255, 255, .1); }
.top .round svg { stroke: #fff; width: 24px; height: 24px; stroke-width: 1.8; }
.acts .avatar { display: none; }
.searchbox input { background: #fff; border-color: transparent; }

/* Menu déroulant sous la barre */
.tabs { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 6px 0 10px; display: none; flex-direction: column; gap: 0; overflow: visible; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .12); -webkit-mask-image: none; mask-image: none; }
body.menu-open .tabs { display: flex; }
.tab { width: 100%; padding: 14px 24px; font-size: 1.05rem; font-weight: 500; color: var(--tx); border-bottom: 1px solid var(--line); }
.tab:last-child { border-bottom: 0; }
.tab[aria-pressed="true"] { color: var(--gold2); border-bottom-color: var(--line); background: var(--s1); }
.tab.tmore { color: var(--mu); font-size: .95rem; }

@media (min-width: 1080px) {
  .bar { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav acts"; padding-block: 0; }
  #menuBtn, .tab.tmore { display: none; }
  .logo { justify-self: start; }
  .tabs { position: static; display: flex; flex-direction: row; justify-content: center; padding: 0; background: none; border: 0; box-shadow: none; }
  .tab { width: auto; padding: 24px 10px 22px; font-size: .9rem; color: rgba(255, 255, 255, .78); border-bottom: 2px solid transparent; }
  .tab:hover { color: #fff; }
  .tab[aria-pressed="true"] { color: #fff; background: none; border-bottom-color: var(--gold); }
  .tab.blink { color: #e2c483; }
  .acts .avatar { display: grid; border: 1px solid var(--gold); }
}

/* Accueil plus léger */
.hacc .chbar .tbox, .hacc .chbar .hmoment { display: none; }
.hacc .chbar { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hacc .chbar h2 { margin: 2px 0 0; font-size: 1.25rem; }
.hacc .chbar::after { content: "Voir les horaires →"; color: var(--gold2); font-weight: 500; font-size: .88rem; white-space: nowrap; }
.sec { margin-top: 40px; }
.sec .head h2::before, .head h1::before, .head h2::before, .ask h2::before { display: none; }
.head { padding-block: 28px 14px; }
.sec .head { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--tx); align-items: baseline; }
.sec .head h2 { font-size: 1.35rem; }

/* Cartes : 2 colonnes sur téléphone, titres bien lisibles */
@media (max-width: 719px) {
  .grid.rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; gap: 24px 14px; }
  .grid.rail .vid { width: auto; }
}
.vid h2 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.vid .thumb, .vid:hover .thumb { border-radius: 8px; }
.affs { align-items: flex-start; }

/* Haut de l'accueil : bande-annonce et affiches côte à côte, plus petites, on en voit plusieurs */
.hrow { --h: 170px; display: flex; gap: 12px; margin: 18px -20px 0; padding: 0 20px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: flex-start; }
.hrow::-webkit-scrollbar { display: none; }
.hrow .affs { display: contents; }
.hrow .trailer, .hrow .affiche { flex: 0 0 auto; height: var(--h); margin: 0; scroll-snap-align: start; border-radius: 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, .1); }
.hrow .trailer { width: calc(var(--h) * 16 / 9); aspect-ratio: auto; }
.hrow .affiche { max-width: 85vw; }
.hrow .affiche img, .hrow .affs .affiche.port img { width: auto; height: 100%; max-height: none; max-width: none; object-fit: cover; margin: 0; }
.hrow .affs .affiche.port { background: none; }
.hrow .trailer .tplay { width: 44px; height: 44px; right: 10px; bottom: 10px; }
.hrow .trailer .tplay:after { left: 17px; top: 12px; border-width: 10px 0 10px 15px; }
.hrow .trailer .tlabel { left: 10px; bottom: 10px; font-size: .62rem; }
.hrow .trailer.on { flex-basis: 100%; width: 100%; height: auto; aspect-ratio: 16 / 9; }
@media (min-width: 700px) { .hrow { --h: 240px; margin-inline: -28px; padding-inline: 28px; } }
@media (min-width: 1176px) { .hrow { margin-inline: 0; padding-inline: 0; } }

/* Vidéos plus petites : plus de cartes par écran */
.grid, .grid.three, .grid.four { gap: 22px 12px; }
@media (min-width: 720px) { .grid, .grid.three, .grid.four, .grid.rail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; } }
@media (min-width: 1000px) { .grid, .grid.three, .grid.four, .grid.rail { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.thumb { aspect-ratio: 16 / 9; }
.vid { gap: 8px; }
.vid h2 { font-size: .93rem; line-height: 1.28; }
.vid .meta { font-size: .74rem; margin-top: -4px; }
.thumb .cat, .thumb .star { font-size: .56rem; padding: 3px 6px; top: 6px; }
.thumb .cat { left: 6px; } .thumb .star { right: 6px; }
.thumb .pl { width: 28px; height: 28px; right: 6px; bottom: 6px; }
.thumb .pl::after { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; margin-left: 2px; }
.gamegrid { grid-template-columns: 1fr !important; }
.hrow .affs .affiche, .hrow .affs.multi .affiche { flex: 0 0 auto; background: none; }
.hrow { scroll-padding-inline: 20px; }
@media (min-width: 700px) { .hrow { scroll-padding-inline: 28px; } }

/* Écran d'ouverture avec vidéo */
.event img[data-eyt] { cursor: pointer; }
.event .evid iframe { display: block; border: 0; border-radius: 12px; width: min(92vw, calc((100dvh - 120px) * 9 / 16)); aspect-ratio: 9 / 16; background: #000; }

/* Horaires d'aujourd'hui en haut de l'accueil */
.hjour { display: block; color: inherit; text-decoration: none; }
.hjour .chbar { margin: 20px 0 0; padding: 14px 18px; }
.hjour .chbar small { display: block; margin-bottom: 10px; }
.hjour .chbar .tbox i { display: block; }
.hjour .chlink { display: inline-block; margin-top: 10px; font-size: .88rem; }
.hjour + .hacc .chbar { margin-top: 10px; }
