/* CineTrailers — style commun « salle obscure » (2 décembre 2026)
   Chargé APRÈS sorties.css / actus.css / plateformes.css sur toutes les pages.
   La barre du haut, les onglets mobiles et le pied de page sont posés par harmonise.py. */
@font-face{font-family:Aleo;src:url(/assets/fonts/aleo-latin-800-normal.woff2) format("woff2");font-weight:800;font-display:swap}
@font-face{font-family:Figtree;src:url(/assets/fonts/figtree-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Figtree;src:url(/assets/fonts/figtree-latin-500-normal.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:Figtree;src:url(/assets/fonts/figtree-latin-600-normal.woff2) format("woff2");font-weight:600;font-display:swap}
:root{--bg:#000;--ink:#F6F1E7;--soft:#C9C1B7;--mute:#A9A196;--line:rgba(246,241,231,.1);--card:#141210;--card2:#1E1B19;--y:#FFEF9F;--r:#FF554D;--out:cubic-bezier(.16,1,.3,1);--glass:rgba(14,12,11,.66)}
body.salle{background:#000;color:var(--ink);font-family:Figtree,system-ui,sans-serif}
.vh{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Barre du haut ---------- */
.bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(8px + env(safe-area-inset-top)) max(16px,calc((100vw - 1240px)/2)) 8px;background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:inset 0 -1px 0 var(--line);transition:background .3s,box-shadow .3s}
.bar .logo{display:inline-flex;align-items:center;gap:8px;min-height:44px;text-decoration:none}.bar .logo .logo-m{display:block;width:auto;height:46px;transform-origin:50% 100%;animation:ct-sway 3.6s ease-in-out infinite}.bar .logo .logo-t{display:flex;flex-direction:column;align-items:center;gap:4px}.bar .logo .logo-t img{display:block;width:124px;height:auto}.bar .logo small{display:block;font:600 8px/1 Figtree,system-ui,sans-serif;letter-spacing:.45em;padding-left:.45em;text-transform:uppercase;color:rgba(246,241,231,.6);white-space:nowrap}@keyframes ct-sway{0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(2deg) translateY(-2px)}}@media (prefers-reduced-motion:reduce){.bar .logo .logo-m{animation:none}}
.topnav{display:none;gap:4px;padding:4px;border-radius:999px;background:rgba(14,12,11,.45);box-shadow:inset 0 0 0 1px var(--line)}
.topnav a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;color:var(--ink);font-weight:500;font-size:15px;text-decoration:none;transition:background .2s,color .2s}
.topnav a:hover{background:rgba(246,241,231,.1);color:var(--ink)}
.topnav a[aria-current]{background:var(--ink);color:#000;font-weight:600}
@media (min-width:760px){.topnav{display:flex}.bar .logo .logo-m{height:52px}.bar .logo .logo-t img{width:150px}.bar .logo small{font-size:9.5px}}
/* accueil : barre posée sur l'image, vitrée au défilement */
.bar.over{position:fixed;left:0;right:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:10px}
.bar.over .topnav{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.bar.over.on{background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:inset 0 -1px 0 var(--line)}

/* ---------- Onglets mobiles ---------- */
.tabbar{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:20;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px;border-radius:22px;background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:inset 0 0 0 1px var(--line),0 12px 30px -10px rgba(0,0,0,.8)}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;border-radius:16px;color:var(--mute);font-size:12px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;text-decoration:none;transition:color .2s,background .2s,transform .15s}
.tabbar a[aria-current]{color:var(--y);background:rgba(255,239,159,.08)}
.tabbar a:hover{color:var(--ink)}.tabbar a:active{transform:scale(.94)}
@media (min-width:760px){.tabbar{display:none}}
@media (max-width:759px){body.salle{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.cta{bottom:calc(76px + env(safe-area-inset-bottom))}}

/* ---------- Pied de page ---------- */
footer.foot{width:100%;max-width:1272px;margin:0 auto;padding:20px 16px 28px;display:flex;flex-wrap:wrap;gap:0 24px;font-size:14px;border-top:1px solid var(--line)}
footer.foot a{display:inline-flex;align-items:center;min-height:44px;color:var(--mute);text-decoration:none}
footer.foot a:hover{color:var(--y)}

/* ---------- Pages intérieures : harmonisation ---------- */
.salle .wrap{max-width:1272px;padding-top:28px;gap:44px}
.salle .wrap>.top{display:none}
.salle h1{letter-spacing:-.03em}
.salle .hero h1,.salle .ahead h1{font-size:clamp(42px,8vw,84px);line-height:.92}
.salle .grey{color:#6B6660}
.salle .hint,.salle .note{color:var(--mute)}
/* étiquette au-dessus des titres */
.eyebrow{margin:0 0 6px;color:var(--r);font-size:14px;font-weight:600}
/* boutons et pastilles */
.salle .btn{border-radius:999px;font-weight:700;transition:background .2s,transform .15s}
.salle .btn:active{transform:scale(.97)}
.salle .cats a,.salle .chips-f button{border-color:var(--line);background:rgba(246,241,231,.04)}
.salle .cats a:hover,.salle .chips-f button:hover{border-color:rgba(246,241,231,.3)}
.salle .past a,.salle .follow nav a{background:rgba(246,241,231,.08)}
.salle .past a:hover{background:rgba(246,241,231,.14)}
/* surfaces : une seule famille de cartes */
.salle .ppl li,.salle .nv,.salle .fcard,.salle .srcs,.salle .more a{background:var(--card);border:0;box-shadow:inset 0 0 0 1px var(--line)}
.salle .ppl li{border-radius:14px}
.salle .nv{border-left:0;box-shadow:inset 3px 0 0 var(--y),inset 0 0 0 1px var(--line);border-radius:18px}
.salle .fcard:hover{background:var(--card2)}
.salle .srcs{border-radius:20px}
.salle .others li,.salle .alire a,.salle .faq details,.salle .wk{border-color:var(--line)}
.salle .wk{border-top-color:var(--line)}
/* affiches du mur et des fiches */
.salle .t{border-radius:16px;box-shadow:inset 0 0 0 1px var(--line)}
.salle .t.h2{border-radius:20px}.salle .t.h3{border-radius:24px}
.salle .same .fr,.salle .wk .ps img,.salle .photos img{border-radius:14px}
.salle .vis{border-radius:20px;box-shadow:inset 0 0 0 1px var(--line)}
.salle .yt{border-radius:20px}
.salle .yt i{background:var(--r);color:#000;border:0;box-shadow:0 0 0 10px rgba(255,85,77,.22);transition:transform .25s var(--out),background .2s,box-shadow .25s}
.salle .yt:hover i{background:var(--y);box-shadow:0 0 0 14px rgba(255,239,159,.18)}
.salle .vis .pl span{background:var(--r);color:#000}
.salle .avis{border-radius:22px}
.salle .side .poster{border-radius:22px;box-shadow:0 30px 60px -18px rgba(0,0,0,.85),inset 0 0 0 1px var(--line)}
/* bloc réseaux en bas des pages */
.salle .follow{padding:24px 26px;border:0;border-radius:24px;background:radial-gradient(120% 160% at 0% 100%,rgba(255,85,77,.22),rgba(255,85,77,0) 55%),var(--card);box-shadow:inset 0 0 0 1px var(--line)}
.salle .follow p{font-family:Aleo,serif;font-weight:800;font-size:20px;line-height:1.2}
.salle .follow nav a{background:rgba(246,241,231,.08)}
.salle .follow nav a:hover{background:var(--y);color:#000}
/* listes de la page Actus */
.salle .card .vis{border-radius:16px}
.salle .lead .vis{border-radius:22px}
.salle .chip.o{border-color:var(--r)}
/* calendriers et presse : tableaux et blocs */
.salle table{border-color:var(--line)}
.salle th,.salle td{border-color:var(--line)}

@media (prefers-reduced-motion:reduce){.bar,.tabbar a,.topnav a,.salle .yt i{transition:none}}
.salle .cats a[aria-current]{background:var(--ink);border-color:var(--ink);color:#000}
.salle .chips-f button[aria-pressed="true"]{background:var(--r);border-color:var(--r);color:#000}
.salle .chips-f.k button[aria-pressed="true"]{background:var(--y);border-color:var(--y)}
/* icône bande-annonce discrète en coin, comme sur l'accueil */
.salle .vis .pl{align-items:flex-start;justify-content:flex-end;padding:12px}
.salle .vis .pl span{width:34px;height:34px;background:rgba(0,0,0,.6);color:var(--y);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.salle .vis .pl svg{width:14px;height:14px}
.salle .lead .vis .pl span{width:44px;height:44px}
/* lien d'évitement (aussi sur les pages sans sorties.css) */
.skip{position:absolute;left:16px;top:-80px;z-index:30;padding:12px 18px;border-radius:12px;background:var(--y);color:#000;font-weight:600;text-decoration:none;transition:top .2s}
.skip:focus{top:12px;color:#000}
.bar .logo{margin:0;width:auto;max-width:none}

/* ---------- Accueil, version mobile (3 décembre 2026) ---------- */
/* pastille « Le plus attendu » : la variable de masque --r des rangées écrasait la couleur rouge */
body.salle .posters .hot{background:#FF554D;color:#000}
@media (max-width:759px){
  /* héros de l'accueil (section.hero ; les autres pages ont un header.hero) */
  body.salle section.hero{min-height:68svh;padding-top:104px;padding-bottom:24px}
  body.salle section.hero h2{font-size:clamp(28px,8vw,34px);line-height:1.04;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
  body.salle section.hero .c{font-size:15px;line-height:1.5}
  body.salle section.hero .hc{gap:12px}
  body.salle section.hero .acts{display:flex;flex-wrap:nowrap;gap:10px;margin-top:4px}
  body.salle section.hero .acts .go{flex:1;justify-content:center;min-height:52px}
  body.salle section.hero .acts .play{flex:none;width:52px;min-height:52px;padding:0;justify-content:center;font-size:0;gap:0}
  body.salle section.hero .acts .play svg{width:18px;height:18px;margin-left:2px}
  body.salle .wrapx .sh{gap:6px 16px}
  body.salle .wrapx .sh .tout{min-height:40px}
  body.salle .bento .ov{padding:40px 12px 12px}
  body.salle .bento strong{font-size:15px;-webkit-line-clamp:4}
  body.salle .videos .plist{grid-auto-columns:168px}
  body.salle .wrapx .rows a{grid-template-columns:112px minmax(0,1fr);align-items:start;gap:14px;padding:16px 0}
  body.salle .wrapx .rows .th{margin-top:3px}
  body.salle .wrapx .rows strong{font-size:16px}
  body.salle .wrapx .suivre{padding:24px 20px 26px;gap:14px}
  body.salle .wrapx .suivre>img{width:120px}
}

/* ---------- Toutes les pages, version mobile (3 décembre 2026) ---------- */
@media (max-width:759px){
  /* filtres (actus, plateformes) : une seule ligne qui défile au doigt au lieu de 3 ou 4 lignes */
  body.salle .cats,body.salle .chips-f{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin-left:-16px;margin-right:-16px;padding:2px 16px 6px;scroll-padding-inline:16px}
  body.salle .cats::-webkit-scrollbar,body.salle .chips-f::-webkit-scrollbar{display:none}
  body.salle .cats>*,body.salle .chips-f>*{flex:none;white-space:nowrap}
  /* en-têtes « Au cinéma / Sur les plateformes » : compteur sous le titre, sans grand vide */
  body.salle header.hero{gap:14px 24px}
  body.salle header.hero h1{font-size:clamp(38px,11vw,48px)}
  body.salle header.hero .count b{font-size:56px}
  body.salle .wrap{gap:32px;padding-top:20px}
  /* pied de page : liens plus serrés */
  body.salle footer.foot{gap:0 18px;padding-bottom:20px}
}
