/* ============================================================
   Les Films de l'Arlequin — design éditorial clair
   (inspiration : Miyu Production, Why Not, Silex)
   Monochrome + accent discret, grande typo, beaucoup d'espace.
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f3f1;
  --ink: #111111;
  --ink-soft: #6b6b6b;
  --line: #e6e4e0;
  --accent: #e2342f;          /* rouge arlequin, usage minimal */
  --maxw: 1320px;
  --gap: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 0; }

/* -------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 86px; padding: 14px 0; }
.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand .word { font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -.03em; text-transform: uppercase; }
.brand .word .dot { color: var(--accent); }
.brand .tagline { margin-top: 6px; font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft); }

.nav-right { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { border-color: var(--ink); }

.lang-toggle { display: flex; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.lang-toggle button { background: none; border: 0; color: var(--ink-soft); font: inherit;
  cursor: pointer; padding: 0; transition: color .2s; }
.lang-toggle button.active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang-toggle button:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink);
  font-size: 1.7rem; cursor: pointer; line-height: 1; }

/* -------------------------------------------------- hero vidéo (accueil) */
.hero-v { padding: 64px 0 76px; border-bottom: 1px solid var(--line); }
.hero-v .hero-head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 44px; }
.hero-v h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.04em; max-width: 16ch; }
.hero-v .lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 38ch; padding-bottom: 6px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-cover { position: absolute; inset: 0; cursor: pointer; border: 0; padding: 0; background: #000; width: 100%; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s; }
.video-cover:hover img { opacity: .68; transform: scale(1.03); }
.video-cover .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-cover .play i { width: 92px; height: 92px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; transition: transform .2s, background .2s; }
.video-cover:hover .play i { transform: scale(1.08); background: #fff; }
.video-cover .play i::after { content: ""; margin-left: 6px; border-style: solid;
  border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--ink); }

/* -------------------------------------------------- hero éditorial (autres usages) */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 72px 0 78px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); letter-spacing: -.035em; }
.hero .lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 26px 0 32px;
  max-width: 42ch; }
.hero-media { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden;
  cursor: pointer; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 18px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; }
.hero-media .cap .k { font-size: .64rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.hero-media .cap .t { font-size: 1.25rem; font-weight: 700; margin-top: 4px; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 26px; transition: background .2s; }
.btn:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.arrow::after { content: "\2192"; }

/* news inline (sous le hero, fine ligne) */
.news { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news .tag { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.news .txt { color: var(--ink-soft); }

/* -------------------------------------------------- sections */
.section { padding: 78px 0; }
.section.tight { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.kicker { font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px; }
.lead { color: var(--ink-soft); max-width: 64ch; }

.about-grid { display: grid; grid-template-columns: minmax(0,.42fr) minmax(0,1fr); gap: 56px; }
.about-grid p { font-size: 1.15rem; line-height: 1.7; }

/* -------------------------------------------------- filtres */
.filters { display: flex; flex-wrap: wrap; gap: 22px 28px; margin: 36px 0 44px;
  border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.filters button { background: none; border: 0; color: var(--ink-soft); font: inherit;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  padding: 0 0 4px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.filters button:hover { color: var(--ink); }
.filters button.active { color: var(--ink); border-color: var(--accent); }

/* -------------------------------------------------- grille de films */
.grid { display: grid; gap: 44px var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0;
  cursor: pointer; font: inherit; color: inherit; }
.poster { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .poster img { transform: scale(1.05); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.poster.placeholder { display: grid; place-items: center; text-align: center; padding: 20px;
  background: #1a1a1a; }
.poster.placeholder span { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.poster .badge { position: absolute; top: 0; left: 0; background: var(--accent); color: #fff;
  font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; }
.card-body { padding: 16px 2px 0; }
.card-body h3 { font-size: 1.18rem; letter-spacing: -.02em; transition: color .2s; }
.card:hover .card-body h3 { color: var(--accent); }
.card-meta { color: var(--ink-soft); font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-top: 7px; }

/* -------------------------------------------------- fiche dépliante (inline) */
.detail { grid-column: 1 / -1; height: 0; overflow: hidden; opacity: 0; position: relative;
  background: var(--bg-soft); transition: height .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease; }
.detail.open { opacity: 1; }
.detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px;
  padding: 52px clamp(24px, 4vw, 56px); align-items: start; }
/* placement adaptatif selon le format de l'affiche (films sans vidéo) */
.detail-inner.media-narrow { grid-template-columns: minmax(240px, 320px) 1fr; }
.detail-inner.media-wide { display: block; }
.detail-inner.media-wide .detail-media { width: 100%; margin-bottom: 32px; }
.detail-inner.media-wide .detail-body { max-width: 76ch; }
.detail-media { background: #000; aspect-ratio: 16/9; overflow: hidden; }
.detail-media iframe { width: 100%; height: 100%; border: 0; }
/* film sans vidéo : on n'agrandit jamais l'affiche au-delà de sa taille réelle (pas de pixellisation) */
.detail-media.img-only { background: #0c0c0d; display: flex; align-items: center; justify-content: center;
  aspect-ratio: auto; max-height: 460px; padding: 8px; }
.detail-media.img-only img { width: auto; height: auto; max-width: 100%; max-height: 444px; object-fit: contain; }
/* bannière large affichée en haut, sur toute la largeur */
.detail-inner.media-wide .detail-media.img-only { max-height: 380px; }
.detail-inner.media-wide .detail-media.img-only img { width: 100%; max-height: 380px; }
.detail-body { max-width: 60ch; }
.detail-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 16px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 26px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.detail-body .credit { color: var(--ink-soft); margin: 0 0 5px; }
.detail-body .credit + .credit { margin-top: 0; }
.detail-body h4 { color: var(--ink); font-size: .66rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; margin: 32px 0 10px; }
.detail-body p { margin: 0 0 14px; color: #2b2b2b; line-height: 1.85; }
.detail-body p:last-child { margin-bottom: 0; }
.detail-close { position: absolute; top: 14px; right: 16px; z-index: 3; background: rgba(255,255,255,.92);
  color: var(--ink); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; line-height: 1; transition: background .2s, color .2s; }
.detail-close:hover { background: var(--accent); color: #fff; }
.card.active .card-body h3 { color: var(--accent); }
@media (max-width: 760px) {
  .detail-inner, .detail-inner.media-narrow { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .detail-media.img-only { max-height: 60vh; }
}

/* -------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 48px 40px; }
.contact-block h4 { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 14px; }
.contact-block p { margin: 0 0 6px; }
.contact-block a:hover { color: var(--accent); }
.socials a { display: inline-block; margin-right: 18px; font-weight: 700; }

/* -------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 20px;
  color: var(--ink-soft); font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-footer .socials a:hover { color: var(--accent); }

/* -------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
  .hero-media { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .nav-links { position: fixed; inset: 86px 0 auto 0; flex-direction: column; gap: 0; align-items: flex-start;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 22px; width: 100%; }
  .nav-toggle { display: block; }
  .section { padding: 56px 0; }
  .grid { gap: 34px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .hero-v { padding: 40px 0 48px; }
  .hero-v .hero-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
  .hero-v .lead { max-width: none; }
}
