/* isCINEMA — charte B (10/11/2026) : socle commun des pages refaites (accueil, programme…).
   Encre, ivoire, rouge ; Bebas Neue pour les titres, Inter pour le texte. Pensé du téléphone au grand écran. */
:root {
  --ink: #0D0D0F; --ink-2: #151518; --ink-3: #1F1F23; --line: rgba(241, 236, 227, .10);
  --ivory: #F1ECE3; --ivory-2: #CBC5BA; --ivory-3: #A8A196;
  --paper: #F1ECE3; --paper-2: #E8E1D5; --paper-line: #CFC6B6; --paper-ink: #141214; --paper-mute: #4A453D;
  --red: #D72F36; --red-deep: #B3141B; --red-soft: #FF6B70;
  --ok: #8FE3B0;
  --gutter: clamp(16px, 4vw, 56px); --max: 1240px; --radius: 14px;
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 16px/1.55 var(--text); min-height: 100vh; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 3px; border-radius: 6px; }
.s-paper :focus-visible { outline-color: var(--red-deep); }
.s-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--ivory); color: var(--ink); font-weight: 700; text-decoration: none; }
.s-skip:focus { top: 12px; }
.s-display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .95; margin: 0; }
.s-wrap { max-width: var(--max); margin: 0 auto; }
.s-kicker { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ boutons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 0; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; transition: background .15s, transform .1s; }
.s-btn:hover { background: var(--red-deep); }
.s-btn:active { transform: translateY(1px); }
.s-btn.is-lg { min-height: 54px; padding: 0 26px; }
.s-btn.is-ghost { background: transparent; border: 1px solid rgba(241, 236, 227, .35); color: var(--ivory); font-weight: 600; }
.s-btn.is-ghost:hover { border-color: var(--ivory-2); background: rgba(241, 236, 227, .06); }
.s-btn.is-light { background: var(--ivory); color: var(--ink); }
.s-btn.is-light:hover { background: #fff; }
.s-btn.is-dark { background: var(--paper-ink); color: var(--ivory); }

/* ------------------------------------------------------------------ en-tête */
.s-top { position: sticky; top: 0; z-index: 50; background: rgba(13, 13, 15, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.s-top-in { display: flex; align-items: center; gap: 12px 28px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter); }
.s-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.s-logo b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--red); color: #fff; font: 21px/1 var(--display); }
.s-logo span { font: 28px/1 var(--display); letter-spacing: .08em; }
.s-nav { display: flex; gap: 4px 26px; margin-left: 18px; font-size: 15px; font-weight: 500; }
.s-nav a { padding: 10px 2px; text-decoration: none; color: #D6D0C6; border-bottom: 2px solid transparent; }
.s-nav a:hover { color: var(--ivory); }
.s-nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--red); }
.s-top-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.s-login { padding: 10px 6px; font-size: 15px; font-weight: 500; color: #D6D0C6; text-decoration: none; }
.s-login:hover { color: var(--ivory); }
.s-top-act .s-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.s-burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(241, 236, 227, .25); background: transparent; }
.s-me { position: relative; }
.s-me > button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px 0 6px; border-radius: 8px; border: 1px solid rgba(241, 236, 227, .25); background: transparent; font-weight: 600; font-size: 14px; }
.s-avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #3B6FD8; color: #fff; font-size: 12px; font-weight: 700; overflow: hidden; }
.s-avatar img { width: 100%; height: 100%; object-fit: cover; }
.s-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: 12px; background: var(--ivory); color: var(--paper-ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.s-menu a, .s-menu button { display: flex; width: 100%; padding: 11px 12px; border-radius: 8px; border: 0; background: none; text-align: left; text-decoration: none; font-size: 15px; font-weight: 500; color: inherit; }
.s-menu a:hover, .s-menu button:hover { background: var(--paper-2); }
.s-menu hr { border: 0; border-top: 1px solid var(--paper-line); margin: 6px 4px; }

/* panneau mobile */
.s-sheet { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: var(--ink); padding: 14px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.s-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.s-sheet nav { display: grid; margin-top: 28px; }
.s-sheet nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 40px/1 var(--display); text-decoration: none; }
.s-sheet .s-btn { margin-top: 28px; }

@media (max-width: 900px) {
  .s-nav, .s-login, .s-top-act > .s-btn, .s-me { display: none; }
  .s-burger { display: inline-flex; }
}

/* ------------------------------------------------------------------ bandeau défilant */
.s-band { overflow: hidden; white-space: nowrap; padding: 12px 0; background: var(--red); color: #fff; font: 26px/1 var(--display); letter-spacing: .06em; }
.s-band span { display: inline-block; padding-left: 24px; animation: s-band 38s linear infinite; }
@keyframes s-band { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ écran projeté (vue de la salle) */
.s-hall { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; isolation: isolate; }
.s-hall > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-onscreen { position: absolute; left: 0; top: 0; width: 478px; height: 200px; transform-origin: 0 0; overflow: hidden; background: #0b0b0d; pointer-events: none; }
.s-onscreen .s-blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(16px) brightness(.55) saturate(1.2); }
.s-onscreen .s-poster { position: absolute; left: 50%; top: 0; height: 100%; width: auto; transform: translateX(-50%); box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
.s-onscreen .s-onscreen-title { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 20px; text-align: center; font: 64px/1 var(--display); color: var(--ivory); background: radial-gradient(80% 90% at 50% 50%, #3a0d12, #0b0b0d); }

/* ------------------------------------------------------------------ programme (liste des films et horaires) */
.s-paper { background: var(--paper); color: var(--paper-ink); }
.s-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.s-day { flex: none; min-width: 84px; min-height: 64px; padding: 8px 14px; border-radius: 10px; border: 1px solid #BDB3A2; background: transparent; color: var(--paper-ink); text-align: left; }
.s-day span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.s-day b { display: block; font: 28px/1 var(--display); font-weight: 400; }
.s-day small { display: block; font-size: 11px; color: var(--paper-mute); }
.s-day[aria-pressed="true"] { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--ivory); }
.s-day[aria-pressed="true"] small { color: var(--ivory-3); }
.s-day:disabled { opacity: .4; cursor: default; }
.s-films { margin: 28px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--paper-ink); }
.s-film { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 22px 0; border-bottom: 1px solid var(--paper-line); }
.s-film-id { display: flex; align-items: center; gap: 20px; flex: 1 1 380px; min-width: 0; }
.s-film-id img, .s-film-id .s-noposter { width: 72px; height: 108px; object-fit: cover; border-radius: 6px; flex: none; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); background: #D8D0C2; }
.s-noposter { display: grid; place-items: center; font: 26px/1 var(--display); color: var(--paper-mute); }
.s-film h3 { margin: 0; font: 38px/1 var(--display); font-weight: 400; }
.s-film-meta { margin: 6px 0 0; font-size: 14px; color: var(--paper-mute); }
.s-film-desc { margin: 8px 0 0; font-size: 14px; color: var(--paper-mute); max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-film-desc.is-open { -webkit-line-clamp: unset; display: block; }
.s-more { padding: 4px 0; border: 0; background: none; font-size: 13px; font-weight: 600; text-decoration: underline; color: var(--paper-ink); }
.s-times { display: flex; flex-wrap: wrap; gap: 10px; }
.s-time { display: inline-flex; flex-direction: column; justify-content: center; min-width: 96px; min-height: 60px; padding: 6px 14px; border-radius: 8px; border: 2px solid var(--paper-ink); background: transparent; color: var(--paper-ink); text-decoration: none; transition: transform .1s, background .15s; }
.s-time:hover { background: rgba(20, 18, 20, .06); }
.s-time b { font: 30px/1 var(--display); font-weight: 400; font-variant-numeric: tabular-nums; }
.s-time span { font-size: 12px; font-weight: 600; }
.s-time.is-paid { background: var(--paper-ink); color: var(--ivory); }
.s-time.is-paid:hover { background: #2a272a; }
.s-time.is-live { border-color: var(--red); background: var(--red); color: #fff; }
.s-time.is-live:hover { background: var(--red-deep); }
.s-time.is-full { opacity: .45; }
.s-empty { padding: 36px 0; color: var(--paper-mute); }
.s-empty p { margin: 0 0 14px; font-size: 17px; }

/* ------------------------------------------------------------------ pied de page */
.s-foot { border-top: 1px solid var(--line); padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); }
.s-foot-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 24px; }
.s-foot-logo { margin: 0; font: 28px/1 var(--display); letter-spacing: .08em; }
.s-foot-logo span { color: var(--red); }
.s-foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; }
.s-foot nav a { padding: 8px 0; text-decoration: none; color: var(--ivory-2); }
.s-foot nav a:hover { color: var(--ivory); text-decoration: underline; }
.s-foot-bas { max-width: var(--max); margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: #9A9388; }
.s-foot-bas p { margin: 0; }
.s-lang { min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(241, 236, 227, .25); background: var(--ink); color: var(--ivory-2); }

/* squelette de chargement */
.s-skel { border-radius: 10px; background: linear-gradient(90deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .12), rgba(0, 0, 0, .06)); background-size: 200% 100%; animation: s-skel 1.4s ease infinite; }
@keyframes s-skel { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ page Programme */
.p-head { padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(28px, 4vw, 48px); }
.p-head h1 { font-size: clamp(72px, 11vw, 168px); line-height: .85; }
.p-head p { margin: 18px 0 0; max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ivory-2); }
.p-body { padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(56px, 7vw, 96px); min-height: 60vh; }
.p-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.p-seg { display: inline-flex; padding: 4px; border-radius: 10px; border: 1px solid #BDB3A2; }
.p-seg button { min-height: 40px; padding: 0 16px; border-radius: 7px; border: 0; background: none; color: var(--paper-ink); font-weight: 600; font-size: 14px; }
.p-seg button[aria-pressed="true"] { background: var(--paper-ink); color: var(--ivory); }
.p-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.p-search input { width: 100%; min-height: 48px; padding: 0 14px 0 40px; border-radius: 10px; border: 1px solid #BDB3A2; background: #fff; color: var(--paper-ink); }
.p-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--paper-mute); }
.p-count { margin: 0 0 0 auto; font-size: 14px; color: var(--paper-mute); }
@media (max-width: 600px) { .p-count { margin-left: 0; width: 100%; } .p-search { max-width: none; } }
.s-spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: s-spin .8s linear infinite; }
@keyframes s-spin { to { transform: rotate(360deg); } }
