/* =====================================================================
   Orfaon — habillage 2026 : en-tête, navigation, pied de page, accueil.
   Chargé après style-pro2.css ; le contenu des autres pages garde ses styles.
   ===================================================================== */

:root {
  --o-bg: #111111;
  --o-ink: #ecebe7;
  --o-muted: #8a877f;
  --o-accent: #e0483b;
  --o-line: #262626;
  --o-panel: #1b1b1a;
  --o-gutter: clamp(16px, 3vw, 40px);
  --o-font: Archivo, system-ui, sans-serif;
}

html { background: var(--o-bg); }
body { background: var(--o-bg); }

/* ---------------------------------------------------------------------
   En-tête + navigation (toutes les pages)
   --------------------------------------------------------------------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--o-gutter) 14px;
  border-bottom: 1px solid var(--o-line);
  font-family: var(--o-font);
}
.site-logo img { display: block; height: clamp(64px, 7vw, 104px); width: auto; }
.site-nav { display: flex; gap: clamp(16px, 2.2vw, 28px); }
.site-nav a {
  font-size: 13px; font-stretch: 115%; text-transform: uppercase; letter-spacing: .06em;
  color: #bdbab3; padding: 6px 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--o-ink); }
.site-nav a[aria-current="page"] { color: var(--o-ink); border-bottom-color: var(--o-accent); }
.site-menu-btn {
  display: none; background: none; border: 1px solid var(--o-line); color: var(--o-ink);
  font: 500 12px var(--o-font); font-stretch: 115%; text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 14px; cursor: pointer;
}

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; }
  .site-logo img { height: 58px; }
  .site-menu-btn { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--o-line); font-size: 14px; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--o-line); color: var(--o-accent); }
}

/* ---------------------------------------------------------------------
   Pied de page (toutes les pages)
   --------------------------------------------------------------------- */
.site-footer {
  clear: both;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 28px var(--o-gutter); border-top: 1px solid var(--o-line);
  font: 13px/1.5 var(--o-font); color: var(--o-muted);
}

/* ---------------------------------------------------------------------
   Accueil
   --------------------------------------------------------------------- */
.home { font: 15px/1.5 var(--o-font); color: var(--o-ink); }
.home a { color: inherit; }
.home img { display: block; max-width: 100%; }

.home-stage {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px);
  padding: clamp(16px, 2vw, 28px) var(--o-gutter) 48px; align-items: start;
}

/* Index des séries */
.home-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.home-list li { border-top: 1px solid var(--o-line); }
.home-list li:last-child { border-bottom: 1px solid var(--o-line); }
.home-list a { display: flex; align-items: baseline; gap: 14px; padding: 4px 0; }
.home-list a::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-size: 12px; color: var(--o-muted); width: 28px; flex: none; }
.home-list .name {
  font-size: clamp(30px, 3.9vw, 62px); line-height: 1.05; font-weight: 800; font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
  color: #5a5751; transition: color .25s;
}
.home-list .count { font-size: 12px; color: var(--o-muted); margin-left: auto; opacity: 0; }
.home-list a:hover .name, .home-list a:focus-visible .name, .home-list a.on .name { color: var(--o-ink); }
.home-list a.on .name { color: var(--o-accent); }
.home-list a:hover .count, .home-list a.on .count { opacity: 1; }
.home-list .mini { display: none; }

/* Aperçu carré : photo entière sur fond flouté */
.home-preview { position: sticky; top: 20px; }
.home-frame {
  --pad: clamp(14px, 2.2vw, 28px);
  position: relative; aspect-ratio: 1; width: min(100%, calc(100svh - 190px));
  background: #0b0b0b; overflow: hidden; container-type: size;
}
.home-frame figure { position: absolute; inset: 0; margin: 0; visibility: hidden; }
.home-frame figure.on { visibility: visible; }
.home-frame .bg { position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; object-fit: cover; filter: blur(36px) brightness(.32) saturate(1.2); }
.home-frame .poster { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .55)); }
.home-frame .ph { width: auto; height: auto; max-width: calc(100cqw - 2 * var(--pad)); max-height: calc(100cqh - 2 * var(--pad)); }
.home-legend { width: min(100%, calc(100svh - 190px)); display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--o-muted); }
.home-legend b { color: var(--o-ink); font-weight: 500; }

.home-intro {
  margin: 24px 0 0; width: min(100%, calc(100svh - 190px));
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px);
  background: var(--o-panel); color: #c2bfb8; font-size: 16px; line-height: 1.55;
}
.home-intro strong {
  display: block; margin-bottom: 6px; color: var(--o-ink); font-weight: 800; font-stretch: 68%;
  text-transform: uppercase; font-size: 19px; letter-spacing: .02em; line-height: 1.1;
}

/* Bande de photos */
.home-reel { border-top: 1px solid var(--o-line); border-bottom: 1px solid var(--o-line); padding: 18px 0; overflow: hidden; }
.home-reel-track { display: flex; gap: 12px; width: max-content; animation: home-reel 70s linear infinite; }
.home-reel:hover .home-reel-track { animation-play-state: paused; }
.home-reel img { height: 200px; width: auto; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.home-reel a:hover img, .home-reel a:focus-visible img { filter: none; }
@keyframes home-reel { to { transform: translateX(-50%); } }

/* Actualités */
.home-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; padding: 48px var(--o-gutter); }
.home-news h3 {
  font: 500 12px var(--o-font); font-stretch: 115%; text-transform: uppercase; letter-spacing: .08em;
  color: var(--o-muted); margin: 0 0 10px; padding: 0;
}
.home-news .big { font-size: 28px; font-weight: 700; font-stretch: 70%; text-transform: uppercase; line-height: 1.05; }
.home-news p { color: #a9a69f; font-size: 14px; margin: 6px 0 0; }
.home-news a:hover .big { color: var(--o-accent); }

@media (max-width: 860px) {
  .home-stage { grid-template-columns: 1fr; }
  .home-preview { position: static; }
  .home-frame, .home-legend { display: none; }
  .home-intro { width: 100%; margin-top: 8px; }
  .home-list a { align-items: center; padding: 10px 0; }
  .home-list .name { flex: 1 1 auto; font-size: clamp(24px, 7.4vw, 46px); color: var(--o-ink); }
  .home-list .mini { display: block; width: 64px; height: 48px; object-fit: cover; margin-left: auto; flex: none; }
  .home-list .count { display: none; }
  .home-reel img { height: 140px; }
}
@media (prefers-reduced-motion: reduce) { .home-reel-track { animation: none; } }
