/* HAILE Studio, maquette demo20
   Theme sombre verrouille (studio, image cinema), un seul accent : le bleu glacier du logo.
   Angles vifs partout (rayon 0). */

:root {
  --bg: #0c0d0e;
  --bg-2: #141618;
  --bg-3: #1c1f22;
  --ink: #eceeee;
  --ink-2: #a9b0b4;
  --ink-3: #7d858a;
  --line: rgba(236, 238, 238, .12);
  --accent: #86cfee;
  --accent-ink: #06222e;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; }

/* grain discret, fixe, hors du flux */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: 0 1.4rem; white-space: nowrap;
  font: 600 .95rem/1 var(--display); font-stretch: 112%; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #a6ddf4; }
.btn-ghost { border-color: rgba(236, 238, 238, .35); color: var(--ink); background: rgba(12, 13, 14, .35); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--pad);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(12, 13, 14, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { text-decoration: none; margin-right: auto; color: var(--accent); }
.logo { display: grid; gap: 5px; justify-items: start; }
.logo-mark {
  display: block; width: 132px; aspect-ratio: 355 / 61; background: currentColor;
  -webkit-mask: url("img/logo-haile.png") center / contain no-repeat;
  mask: url("img/logo-haile.png") center / contain no-repeat;
}
.logo-sub { font: 500 .62rem/1 var(--display); letter-spacing: .82em; color: var(--ink); padding-left: .1em; }
.nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: .95rem; color: var(--ink-2); transition: color .2s; }
.nav ul a:hover { color: var(--ink); }
.nav-cta { min-height: 40px; padding: 0 1.1rem; }
@media (max-width: 760px) {
  .nav ul { display: none; }
  .logo-mark { width: 108px; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end; gap: var(--pad); padding: 96px var(--pad) clamp(2rem, 6vh, 4.5rem);
  position: relative;
}
.hero-copy { padding-bottom: clamp(0rem, 4vh, 3rem); position: relative; z-index: 2; }
.eyebrow { font: 500 .78rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .98; font-stretch: 118%; font-weight: 600;
  letter-spacing: -.035em; max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--accent); display: inline-block; }
.lead { margin-top: 1.6rem; max-width: 40ch; color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-media {
  position: relative; align-self: stretch; min-height: 60vh; overflow: hidden; background: var(--bg-2);
}
.hero-media .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero-media .slide.is-on { opacity: 1; transform: scale(1); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(12, 13, 14, .55)); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: stretch; padding-top: 88px; gap: 1.5rem; }
  .hero-media { order: -1; min-height: 52vh; }
  .hero-copy { padding-bottom: 0; }
}

/* ---------- manifeste ---------- */
.manifesto { padding: clamp(6rem, 16vh, 11rem) var(--pad) clamp(4rem, 10vh, 7rem); text-align: center; }
.manifesto blockquote { margin: 0 auto; max-width: 1040px; }
.words { font: 500 clamp(2rem, 5vw, 4.4rem)/1.08 var(--display); font-stretch: 108%; letter-spacing: -.03em; }
.words .w { opacity: .18; transition: opacity .5s var(--ease); }
.words .w.is-lit { opacity: 1; }
.manifesto footer { margin-top: 2rem; color: var(--ink-3); font-size: .95rem; }
.facts {
  margin: clamp(4rem, 10vh, 6rem) auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); text-align: left;
}
.facts div { padding: 1.6rem 1.4rem 0 0; }
.facts dt { font: 600 clamp(1.5rem, 2.6vw, 2.3rem)/1.1 var(--display); font-stretch: 115%; color: var(--ink); }
.facts dd { margin: .4rem 0 0; color: var(--ink-3); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } .facts div { padding-top: 1.2rem; } }

/* ---------- travail ---------- */
.work { padding: clamp(4rem, 10vh, 7rem) var(--pad); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.work h2, .sessions h2, .place h2, .booking h2, .films h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.02; font-stretch: 112%; letter-spacing: -.03em; max-width: 16ch; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button {
  min-height: 42px; padding: 0 1rem; background: transparent; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.filters button:hover { color: var(--ink); border-color: rgba(236, 238, 238, .35); }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15vw; grid-auto-flow: dense; gap: 10px; }
.g { margin: 0; overflow: hidden; background: var(--bg-2); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.g:hover img { transform: scale(1.04); }
.g.is-hidden { display: none; }
/* placement explicite sur ordinateur : 4 colonnes x 5 rangees, 20 cases, aucune vide */
@media (min-width: 901px) {
  .grid:not(.is-filtered) { grid-template-rows: repeat(5, 15vw); grid-auto-flow: row; }
  .grid:not(.is-filtered) .g:nth-child(1)  { grid-area: 1 / 1 / 3 / 2; }
  .grid:not(.is-filtered) .g:nth-child(2)  { grid-area: 1 / 2 / 2 / 4; }
  .grid:not(.is-filtered) .g:nth-child(3)  { grid-area: 1 / 4 / 2 / 5; }
  .grid:not(.is-filtered) .g:nth-child(4)  { grid-area: 2 / 2 / 4 / 3; }
  .grid:not(.is-filtered) .g:nth-child(5)  { grid-area: 2 / 3 / 3 / 4; }
  .grid:not(.is-filtered) .g:nth-child(6)  { grid-area: 3 / 3 / 4 / 5; }
  .grid:not(.is-filtered) .g:nth-child(7)  { grid-area: 4 / 1 / 5 / 3; }
  .grid:not(.is-filtered) .g:nth-child(8)  { grid-area: 4 / 3 / 6 / 4; }
  .grid:not(.is-filtered) .g:nth-child(9)  { grid-area: 2 / 4 / 3 / 5; }
  .grid:not(.is-filtered) .g:nth-child(10) { grid-area: 3 / 1 / 4 / 2; }
  .grid:not(.is-filtered) .g:nth-child(11) { grid-area: 4 / 4 / 6 / 5; }
  .grid:not(.is-filtered) .g:nth-child(12) { grid-area: 5 / 1 / 6 / 3; }
}
.grid.is-filtered .g { grid-row: auto; grid-column: auto; }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 52vw; }
  .g-tall { grid-row: auto; }
  .grid:not(.is-filtered) .g:nth-child(12) { grid-column: span 2; }
}
@media (max-width: 480px) { .grid { gap: 6px; } }

/* ---------- seances (rail horizontal) ---------- */
.sessions { padding: clamp(4rem, 10vh, 7rem) 0 clamp(4rem, 10vh, 7rem) var(--pad); background: var(--bg-2); }
.sessions h2 { padding-right: var(--pad); margin-bottom: 2.5rem; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 26vw); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 1.2rem 0; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
}
.card { scroll-snap-align: start; background: var(--bg); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; filter: saturate(.9); }
.card-body { padding: 1.4rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card h3 { font-size: 1.35rem; font-stretch: 112%; }
.card p { color: var(--ink-2); font-size: .98rem; flex: 1; }
.pick {
  align-self: flex-start; margin-top: .4rem; background: none; border: 0; padding: .4rem 0; cursor: pointer;
  font: 600 .95rem/1 var(--display); color: var(--accent); border-bottom: 1px solid currentColor;
}
.pick:hover { color: #a6ddf4; }
@media (max-width: 600px) { .rail { grid-auto-columns: 78vw; } }

/* ---------- plateau ---------- */
.place { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(5rem, 12vh, 8rem) var(--pad); align-items: start; }
.place-media { position: sticky; top: 96px; overflow: hidden; }
.place-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.place-copy > p { margin-top: 1.4rem; color: var(--ink-2); max-width: 44ch; }
.chunks { margin-top: 3rem; display: grid; gap: 2.2rem; }
.chunks div { border-top: 1px solid var(--line); padding-top: 1.3rem; max-width: 52ch; }
.chunks h3 { font-size: 1.25rem; font-stretch: 110%; margin-bottom: .5rem; }
.chunks p { color: var(--ink-2); }
.addr { display: inline-block; margin-top: 2.6rem; color: var(--accent); font: 600 1rem/1 var(--display); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .3rem; }
@media (max-width: 860px) { .place { grid-template-columns: 1fr; } .place-media { position: static; } .place-media img { aspect-ratio: 16 / 11; } }

/* ---------- reservation ---------- */
.booking { padding: clamp(5rem, 12vh, 8rem) var(--pad); background: var(--bg-2); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); }
.booking-intro p { margin-top: 1.2rem; color: var(--ink-2); max-width: 32ch; }
.book { display: grid; gap: 2rem; position: relative; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 600 .95rem/1 var(--display); font-stretch: 110%; margin-bottom: .9rem; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; transition: all .2s var(--ease); cursor: pointer;
}
.chips label:hover span { border-color: rgba(236, 238, 238, .4); color: var(--ink); }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.days span { flex-direction: column; min-width: 64px; min-height: 60px; line-height: 1.15; }
.days small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .9rem; color: var(--ink-2); }
.field input {
  min-height: 50px; padding: 0 1rem; background: var(--bg); border: 1px solid rgba(236, 238, 238, .22); color: var(--ink); font: inherit; border-radius: 0;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: #f08a7e; }
.err { color: #f4a197; font-size: .95rem; }
.book-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.recap { color: var(--ink-2); max-width: 44ch; }
.recap strong { color: var(--ink); font-weight: 600; }
.ok { position: absolute; inset: 0; background: var(--bg-2); display: grid; align-content: center; gap: .8rem; }
.ok[hidden] { display: none; }
.ok h3 { font-size: clamp(2rem, 4vw, 3rem); font-stretch: 115%; color: var(--accent); }
.ok p { color: var(--ink-2); max-width: 46ch; }
.small { font-size: .88rem; color: var(--ink-3) !important; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } .fields { grid-template-columns: 1fr; } }

/* ---------- haile films ---------- */
.films { position: relative; min-height: 88vh; display: grid; align-items: end; overflow: hidden; }
.films > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.films::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 13, 14, .1) 30%, rgba(12, 13, 14, .88)); }
.films-copy { position: relative; z-index: 1; padding: clamp(3rem, 8vh, 6rem) var(--pad); max-width: 760px; }
.films-copy p { margin: 1.2rem 0 2rem; color: var(--ink); opacity: .85; max-width: 40ch; }

/* ---------- pied ---------- */
.foot { display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; padding: 4rem var(--pad) 2.5rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.foot-brand { font: 600 1.1rem/1 var(--display); font-stretch: 118%; color: var(--ink); margin-bottom: .8rem; letter-spacing: .02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.demo { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 1.5rem; }
@media (max-width: 600px) { .foot { grid-template-columns: 1fr; } }

/* ---------- visionneuse ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lightbox::backdrop { background: rgba(8, 9, 10, .94); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 64px 16px 24px; }
.lb-close { position: absolute; top: 14px; right: 16px; min-height: 42px; padding: 0 1rem; background: var(--ink); color: var(--bg); border: 0; cursor: pointer; font-weight: 600; }

/* ---------- apparitions ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .words .w { opacity: 1; }
  .hero-media .slide { transform: none; }
}
