:root {
  --void: #0b0713;
  --bruise: #3a1f66;
  --violet: #7a4dff;
  --lav: #cdbfff;
  --dim: #9a8fbd;
  --loud: "Syne", "Arial Black", sans-serif;
  --inner: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  color: var(--lav);
  font: 400 1.3rem/1.55 var(--inner);
  background:
    radial-gradient(90% 60% at 20% 0%, #2a1560 0%, transparent 70%),
    linear-gradient(180deg, #140b28 0%, var(--void) 45%, #06030b 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: #140b28;
  z-index: 20;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}
.depth {
  position: fixed;
  left: 18px;
  top: 14vh;
  bottom: 14vh;
  width: 1px;
  background: var(--bruise);
  z-index: 8;
}
.depth i {
  position: absolute;
  left: -4px;
  top: var(--p, 0%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 14px var(--violet);
}
.depth span {
  position: absolute;
  left: 16px;
  top: var(--p, 0%);
  margin-top: -0.7rem;
  font: italic 1.05rem var(--inner);
  color: var(--dim);
  white-space: nowrap;
}
header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem 1.8rem;
  padding: 1.3rem 2rem 1.3rem 4rem;
  font: 500 0.95rem var(--loud);
}
header a {
  text-decoration: none;
  color: var(--dim);
}
header a:hover,
header a[aria-current] {
  color: var(--lav);
}
header a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: var(--violet);
}
.lang button {
  background: none;
  border: 0;
  color: var(--dim);
  font: inherit;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
}
.lang button[aria-pressed="true"] {
  color: var(--lav);
}
.wrap {
  padding: 0 clamp(1.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.view {
  display: none;
}
.view.on {
  display: block;
}
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
}
h1 {
  font: 800 clamp(5.5rem, 24vw, 19rem)/0.82 var(--loud);
  margin: 0 0 2rem -0.04em;
  letter-spacing: -0.05em;
  filter: url(#erode);
}
.hero p {
  max-width: 34ch;
  margin: 0 0 2.4rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
}
.hero p em,
.whisper {
  color: var(--dim);
  font-style: italic;
}
/* deux portes : l’image fixe, l’image dans le temps */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.door {
  position: relative;
  display: block;
  text-decoration: none;
  padding-top: 1rem;
  border-top: 1px solid var(--bruise);
}
.door b {
  display: block;
  font: 800 clamp(1.5rem, 3.5vw, 2.4rem)/1 var(--loud);
  letter-spacing: -0.03em;
}
.door span {
  font-style: italic;
  color: var(--dim);
  font-size: 1.1rem;
}
.door::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}
.door.g:hover::after {
  width: 100%;
  transition: width 0.15s;
}
.door.r:hover::after {
  width: 100%;
  transition: width 2.4s linear;
}
section,
.page {
  padding: 8rem 0;
}
h2 {
  font: 800 clamp(2rem, 5vw, 3.6rem)/1 var(--loud);
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
}
.whisper {
  margin: 0 0 3rem;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.stat b {
  display: block;
  font: 800 clamp(3.5rem, 9vw, 6.5rem)/1 var(--loud);
  letter-spacing: -0.04em;
  color: var(--violet);
}
.stat span {
  font-style: italic;
  color: var(--dim);
}
.stat + .stat {
  margin-top: 2.2rem;
}
.about p {
  margin: 0 0 1.2rem;
  max-width: 44ch;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem 2rem;
}
.t {
  grid-column: span 6;
}
.t.a {
  grid-column: span 7;
}
.t.b {
  grid-column: span 5;
}
.t.c {
  grid-column: span 5;
}
.t.d {
  grid-column: span 7;
}
.t.w {
  grid-column: span 12;
}
.art {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
/* graphisme : l’image est fixe */
.still .art {
  aspect-ratio: 4/3;
}
/* réalisation : l’image dure, cadre 16:9, bandes de cinéma, timecode */
.t h3 {
  font: 500 1.05rem var(--loud);
  margin: 1rem 0 0;
}
.t p {
  margin: 0;
  font-style: italic;
  color: var(--dim);
  font-size: 1.1rem;
}
.note {
  margin-top: 3rem;
  color: var(--dim);
  font-style: italic;
  font-size: 1.1rem;
}
.contact {
  text-align: right;
}
.contact .whisper {
  margin-left: auto;
  max-width: 30ch;
}
.mail {
  font: 800 clamp(1.8rem, 6vw, 4.2rem)/1 var(--loud);
  letter-spacing: -0.03em;
  text-decoration-color: var(--violet);
  text-underline-offset: 10px;
  word-break: break-word;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.5rem, 6vw, 5rem) 2rem clamp(3.5rem, 8vw, 6rem);
  font: 500 0.85rem var(--loud);
  color: var(--dim);
}
@media (max-width: 760px) {
  .about,
  .doors {
    grid-template-columns: 1fr;
  }
  .t,
  .t.a,
  .t.b,
  .t.c,
  .t.d,
  .t.w {
    grid-column: span 12;
  }
  .depth span {
    display: none;
  }
  .depth {
    left: 10px;
  }
  header {
    padding: 1rem 1rem 1rem 2rem;
    gap: 0.3rem 1rem;
  }
  .wrap,
  footer {
    padding-left: 2.2rem;
  }
  .page {
    padding-top: 9rem;
  }
}
.hero {
  min-height: 100vh;
  min-height: 100svh;
}
@media (min-width: 1500px) {
  .wrap {
    max-width: 1560px;
    margin-inline: auto;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .t.a,
  .t.b,
  .t.c,
  .t.d {
    grid-column: span 6;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 1.15rem;
  }
  header {
    background: rgba(11, 7, 19, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.85rem;
  }
  .hero {
    padding-bottom: 3rem;
  }
  section {
    padding: 5rem 0;
  }
  .page {
    padding-bottom: 5rem;
  }
  .grid {
    gap: 2.2rem;
  }
  .doors {
    gap: 1.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .film .t:hover .scan,
  .door.r:hover::after {
    transition: none;
  }
}

/* aération : une seule chose à regarder à la fois */
header {
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem) 1.4rem 4rem;
  font-size: 0.9rem;
}
.brand {
  font: 800 1.15rem var(--loud);
  letter-spacing: -0.03em;
  color: var(--lav);
}
header a.brand[aria-current] {
  text-decoration: none;
}
.menu {
  display: flex;
  gap: 2.2rem;
}
section,
.page {
  padding: 11rem 0;
}
.hero {
  padding-bottom: 6rem;
}
.hero p {
  margin-bottom: 4.5rem;
}
.doors {
  gap: 4rem;
}
.page h2 {
  margin-bottom: 6rem;
}
.about {
  display: block;
}
.about p {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0 0 2rem;
}
.stats {
  display: flex;
  gap: 5rem;
  margin-top: 5rem;
}
.stat + .stat {
  margin-top: 0;
}
.stat b {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.grid {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}
.t,
.t.a,
.t.b,
.t.c,
.t.d,
.t.w {
  grid-column: auto;
}
.still .t {
  width: 70%;
}
.still .t:nth-child(even) {
  align-self: flex-end;
}
footer {
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 3rem;
}
@media (max-width: 760px) {
  header {
    padding: 1rem 1rem 1rem 2rem;
  }
  .menu {
    gap: 1.1rem;
  }
  section {
    padding: 6rem 0;
  }
  .page {
    padding: 9rem 0 6rem;
  }
  .page h2 {
    margin-bottom: 3rem;
  }
  .hero p {
    margin-bottom: 3rem;
  }
  .doors {
    gap: 2rem;
  }
  .grid {
    gap: 4.5rem;
  }
  .still .t,
  .film .t {
    width: 100%;
  }
  .stats {
    gap: 3rem;
    margin-top: 3.5rem;
  }
}

/* accueil : Neko au centre, deux boutons en bas, rien d’autre */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
.wrap.hero {
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 9rem;
}
h1 {
  font-size: clamp(4.5rem, min(22vw, 38vh), 17rem);
  margin: 0;
}
.doors {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem);
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 7vw, 5rem);
  padding: 0 1.5rem;
}
.door {
  min-width: 7.5rem;
  padding: 1rem 0.5rem 0;
  text-align: center;
}
.door b {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
}
/* toucher d’animation : lumière qui suit la souris (PC), onde au clic ou au toucher */
.glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 36rem;
  height: 36rem;
  margin: -18rem 0 0 -18rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 7;
  background: radial-gradient(
    closest-side,
    rgba(122, 77, 255, 0.22),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.glow.on {
  opacity: 1;
}
/* responsive affiné */
.stats {
  flex-wrap: wrap;
}
.menu a {
  padding: 0.5rem 0;
}
@media (min-width: 761px) and (max-width: 1000px) {
  section,
  .page {
    padding: 8rem 0;
  }
  .still .t {
    width: 82%;
  }
}
@media (max-width: 760px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .doors {
    gap: 1.2rem;
  }
  .door {
    min-width: 6.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glow {
    display: none;
  }
}

/* souffle : plus d’air autour de À propos et en bas de page */
#about {
  padding-top: 17rem;
}
#contact {
  padding-bottom: 12rem;
}
.page {
  padding-bottom: 14rem;
}
footer {
  padding-top: 8rem;
  padding-bottom: 4rem;
}
.door.r:hover::after {
  transition: width 0.15s;
}
@media (max-width: 760px) {
  #about {
    padding-top: 10rem;
  }
  #contact {
    padding-bottom: 7rem;
  }
  .page {
    padding-bottom: 9rem;
  }
  footer {
    padding-top: 5rem;
  }
}

/* arrivée : tout émerge doucement */
.wrap.hero .free {
  margin: 1.6rem 0 0;
  padding-left: 0.42em;
  max-width: none;
  font: 500 0.78rem var(--loud);
  letter-spacing: 0.42em;
  color: var(--dim);
  opacity: 0.7;
}
.wrap.hero .doors {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 3.6rem);
}
header.solo {
  justify-content: flex-end;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body[data-page="home"] h1 {
  animation: emerge 3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
body[data-page="home"] .free {
  animation: rise 2s 1.1s both;
}
body[data-page="home"] .doors {
  animation: rise 1.8s 1.9s both;
}
body[data-page="home"] header {
  animation: rise 2s 2.4s both;
}
@keyframes emerge {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] h1,
  body[data-page="home"] .free,
  body[data-page="home"] .doors,
  body[data-page="home"] header {
    animation: none;
  }
}

/* en-tête de l’accueil : langue et contact, séparés et posés avec intention */
.lang {
  display: inline-flex;
  gap: 1rem;
}
.lang button[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-color: var(--violet);
}
header.solo {
  justify-content: flex-end;
  align-items: center;
  gap: 1.8rem;
  padding: clamp(1.8rem, 5vh, 3rem) clamp(1.2rem, 5vw, 4rem) 0 1rem;
}
header.solo .sep {
  width: 1px;
  height: 1.1rem;
  background: var(--bruise);
}
header.solo .cta {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--bruise);
  border-radius: 99px;
  color: var(--lav);
  text-decoration: none;
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
}
header.solo .cta:hover {
  border-color: var(--violet);
  box-shadow: 0 0 22px rgba(122, 77, 255, 0.28);
}
/* pied de page tout en bas */
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
footer {
  padding-top: 2rem;
  padding-bottom: 1.6rem;
}
@media (max-width: 760px) {
  header.solo {
    gap: 1.1rem;
    padding: 1.6rem 1rem 0 1rem;
  }
  header.solo .cta {
    padding: 0.5rem 1.1rem;
  }
  footer {
    padding-top: 2rem;
  }
}

/* barre floue sous l’en-tête dès qu’on descend */
header.solo {
  padding-bottom: 1.4rem;
}
/* contact : on revient au centre, comme au départ ; l’idée floue devient nette */
#contact {
  padding-top: 10rem;
  padding-bottom: 10rem;
}
.contact {
  text-align: center;
}
.contact .label {
  margin: 0 0 3rem;
  font: 500 0.78rem var(--loud);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--dim);
}
.contact .lead {
  margin: 0 auto 5rem;
  max-width: 22ch;
  font: italic clamp(1.9rem, 4.4vw, 3.3rem)/1.25 var(--inner);
  color: var(--lav);
}
.blur {
  display: inline-block;
  filter: blur(7px);
  transition: filter 2.6s ease 0.4s;
}
.contact.in .blur {
  filter: blur(0);
}
.sharp {
  color: var(--violet);
}
.mail {
  display: inline-block;
  position: relative;
  padding-bottom: 0.7rem;
  text-decoration: none;
}
.mail::after,
.mail::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
}
.mail::after {
  width: 100%;
  background: var(--bruise);
}
.mail::before {
  z-index: 1;
  width: 0;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
  transition: width 0.6s ease;
}
.mail:hover::before {
  width: 100%;
}
.contact.in .mail::before {
  width: 100%;
  transition: width 2s ease 1.4s;
}
@media (prefers-reduced-motion: reduce) {
  .blur {
    filter: none;
    transition: none;
  }
  .contact.in .mail::before {
    transition: none;
  }
}
@media (max-width: 760px) {
  #contact {
    padding-top: 7rem;
    padding-bottom: 6rem;
  }
  .contact .lead {
    margin-bottom: 3.5rem;
  }
}

/* contact : deux accès, même typographie */
.reach {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem clamp(2.5rem, 8vw, 6rem);
}
.reach .mail {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
}
.contact.in .mail + .mail::before {
  transition-delay: 1.9s;
}

/* en-tête : part avec la page, puis se pose en haut de la fenêtre, sans fond ni flou */
:root {
  --hy: clamp(1.8rem, 5vh, 3rem);
}
header,
header.solo {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 0.9rem);
  left: auto;
  right: auto;
  z-index: 10;
  display: block;
  height: 0;
  padding: 0;
  margin: var(--hy) 0 calc(var(--hy) * -1);
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.8rem;
  padding: 0 clamp(1.2rem, 5vw, 4rem) 0 1rem;
  font: 500 0.9rem var(--loud);
}
header:not(.solo) .bar {
  justify-content: space-between;
  padding-left: 4rem;
}
header.solo .cta {
  border-color: #5b3aa0;
}
@media (max-width: 760px) {
  .bar {
    gap: 1.1rem;
    padding: 0 1rem;
  }
  header:not(.solo) .bar {
    padding-left: 2rem;
  }
}
/* contact : texte plus lisible */
.contact .label {
  color: var(--lav);
  font-size: 0.9rem;
}
.contact .lead {
  color: #f3efff;
}
.blur {
  filter: blur(5px);
}
.mail::after {
  background: var(--dim);
}

/* bande simple en haut : empêche l’en-tête de se poser sur du texte */
.grp {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
@media (max-width: 760px) {
  .grp {
    gap: 1.1rem;
  }
}
header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * (env(safe-area-inset-top, 0px) + 0.9rem + 8rem));
  height: calc(env(safe-area-inset-top, 0px) + 0.9rem + 8rem + 3.4rem);
  z-index: -1;
  background: rgba(11, 7, 19, 0.94);
  border-bottom: 1px solid rgba(58, 31, 102, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
header.stuck::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  header::before {
    transition: none;
  }
}

/* performance (Safari) : fond non fixe, filtre SVG seulement quand il sert */
body {
  background:
    radial-gradient(70rem 45rem at 18% 0, #2a1560, transparent 70%) top/100%
      100vh no-repeat,
    radial-gradient(60rem 40rem at 82% 100%, #24124f, transparent 70%)
      bottom/100% 100vh no-repeat,
    linear-gradient(180deg, #140b28 0, #0b0713 45%, #06030b 100%) #0b0713;
}
.depth i {
  top: 0;
}
h1 {
  filter: none;
}
h1.eroding {
  filter: url(#erode);
}
.glow {
  will-change: transform;
}

/* tuiles : un simple souffle au survol (ou au centre de l’écran sur tactile) */
.still .art {
  transition: transform 1.2s ease;
}
.still .t:hover .art,
.still .t.is-active .art {
  transform: scale(1.02);
}
@media (prefers-reduced-motion: reduce) {
  .still .art {
    transition: none;
  }
}

/* page Graphisme : le contenu apparaît tout de suite, grille nette, collaborations, photos */
.page.gx {
  padding-top: 7.5rem;
}
.gx > h2 {
  margin: 0 0 1rem;
}
.gx .intro {
  margin: 0 0 3.5rem;
  font-style: italic;
  color: var(--dim);
}
.gx .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3.2rem 1.5rem;
}
.gx .grid .t {
  width: auto;
  align-self: start;
  grid-column: span 6;
}
.gx .grid .t.w {
  grid-column: span 12;
}
.gx .t.w .art {
  aspect-ratio: 16/9;
}
.gx .art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.gx .t:hover .art,
.gx .t.is-active .art {
  transform: none;
}
.gx .t:hover .art img,
.gx .t.is-active .art img {
  transform: scale(1.04);
}
.cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
}
.cap h3 {
  margin: 0;
  font: 500 1.05rem var(--loud);
}
.cap time {
  font-style: italic;
  color: var(--dim);
  font-size: 1.05rem;
  white-space: nowrap;
}
.count {
  position: absolute;
  right: 0.9rem;
  bottom: 0.8rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(205, 191, 255, 0.28);
  border-radius: 99px;
  background: rgba(11, 7, 19, 0.5);
  font: 500 0.75rem var(--loud);
  letter-spacing: 0.1em;
  color: var(--lav);
}
.gx .sub {
  margin-top: 9rem;
}
.sec {
  margin: 0 0 2rem;
  font: 800 clamp(1.4rem, 3vw, 2rem) var(--loud);
  letter-spacing: -0.02em;
}
.collab {
  list-style: none;
  margin: 0;
  padding: 0;
}
.collab li:last-child {
  border-bottom: 1px solid var(--bruise);
}
@media (max-width: 760px) {
  .page.gx {
    padding-top: 6.5rem;
  }
  .gx .intro {
    margin-bottom: 2.5rem;
  }
  .gx .grid {
    gap: 2.4rem 1rem;
  }
  .gx .grid .t {
    grid-column: span 12;
  }
  .gx .sub {
    margin-top: 6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gx .art img {
    transition: none;
  }
}

/* marges : le repère de défilement est à gauche, tout le contenu garde de l’air des deux côtés */
.wrap {
  padding-left: clamp(3.5rem, 8vw, 6rem);
  padding-right: clamp(1.5rem, 6vw, 5rem);
}
.wrap.contact {
  padding-left: clamp(3.5rem, 8vw, 6rem);
  padding-right: clamp(3.5rem, 8vw, 6rem);
}
@media (max-width: 760px) {
  .wrap {
    padding-left: 2.4rem;
    padding-right: 1.4rem;
  }
  .wrap.contact {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}

/* collaborations : lignes cliquables vers une page dédiée */
.collab li {
  border-top: 1px solid var(--bruise);
}
.collab li:last-child {
  border-bottom: 1px solid var(--bruise);
}
.collab .row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  grid-template-areas: "n r l";
  gap: 0.4rem 2rem;
  align-items: baseline;
  padding: 1.4rem 0;
  font: 400 1.3rem/1.55 var(--inner);
  color: inherit;
  text-decoration: none;
}
.collab .row b {
  grid-area: n;
  font: 500 clamp(1.1rem, 2.2vw, 1.5rem) var(--loud);
  transition: color 0.4s;
}
.collab .row span {
  grid-area: r;
  font-style: italic;
  color: var(--dim);
}
.collab .row em {
  grid-area: l;
  font: 500 0.9rem var(--loud);
  font-style: normal;
  color: var(--lav);
  transition: transform 0.4s;
}
.collab .row:hover b {
  color: var(--violet);
}
.collab .row:hover em {
  transform: translateX(0.4rem);
}
/* page d’une collaboration */
.cx .back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font: 500 0.9rem var(--loud);
  color: var(--dim);
  text-decoration: none;
}
.cx .back:hover {
  color: var(--lav);
}
.cx .intro {
  margin-bottom: 1.6rem;
}
.cx .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin: 0 0 3.5rem;
}
.cx .links a {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--bruise);
  font: 500 0.9rem var(--loud);
  color: var(--lav);
  text-decoration: none;
}
.cx .links a:hover {
  border-color: var(--violet);
}
.cx .sec {
  margin: 6rem 0 1.6rem;
}
@media (max-width: 760px) {
  .collab .row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "n l" "r r";
  }
  .cx .sec {
    margin-top: 4rem;
  }
}

/* collaborations : images en briques (rangées décalées, joints qui ne s’alignent jamais) */
.work .art {
  height: 100%;
  aspect-ratio: auto;
}
/* responsive : petits écrans, paysage, zones de toucher */
.lang button {
  padding: 0.5rem 0.45rem;
}
.cap {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
}
@media (max-width: 420px) {
  .bar {
    font-size: 0.8rem;
  }
  .menu {
    gap: 0.8rem;
  }
  .brand {
    font-size: 1rem;
  }
}
@media (max-width: 360px) {
  .menu {
    gap: 0.6rem;
  }
  .bar {
    padding: 0 0.8rem;
  }
}
@media (max-height: 520px) {
  .wrap.hero {
    padding: 4rem 1.5rem 6rem;
  }
  h1 {
    font-size: min(20vw, 30vh);
  }
  .wrap.hero .doors {
    bottom: 1rem;
  }
  .wrap.hero .free {
    margin-top: 0.8rem;
  }
}
.gx .sub.first {
  margin-top: 0;
}
.page.gx.gl {
  padding-top: 6rem;
}
@media (max-width: 760px) {
  .page.gx.gl {
    padding-top: 5.5rem;
  }
}
.gx .sub {
  padding: 0;
  margin-top: 7rem;
}
.gx .sub.first {
  margin-top: 0;
}
@media (max-width: 760px) {
  .gx .sub {
    margin-top: 5rem;
  }
  .gx .sub.first {
    margin-top: 0;
  }
}
.page.gx.gl {
  padding-top: 8rem;
}
@media (max-width: 760px) {
  .page.gx.gl {
    padding-top: 6.5rem;
  }
}

/* page Graphisme : apparition rapide, l’en-tête d’abord, puis collaborations, puis projets */
body[data-page="graphisme"] header {
  animation: rise 0.5s both;
}
.gl .sub.first {
  animation: rise 0.5s 0.2s both;
}
.gl .sub:not(.first) {
  animation: rise 0.5s 0.4s both;
}
.cx > * {
  animation: rise 0.5s 0.2s both;
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="graphisme"] header,
  .gl .sub,
  .cx > * {
    animation: none;
  }
}

/* collaborations : galerie justifiée (lignes pleines, rien de vide autour des images) */
.work {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1rem;
}
.work .t {
  flex: 1 1 18rem;
  aspect-ratio: 16/9;
}
.work.justified .t {
  flex: none;
  aspect-ratio: auto;
}
.work .art img {
  object-fit: cover;
  padding: 0;
}
@media (max-width: 760px) {
  .work {
    gap: 0.6rem;
  }
}
/* projets : diaporama automatique + zoom */
.js .gl .grid .art img {
  opacity: 0;
  transition:
    opacity 1s ease,
    transform 1.2s ease;
}
.js .gl .grid .art img.on {
  opacity: 1;
}
.gl .grid .t,
.work .t {
  cursor: zoom-in;
}
.gl .grid .t:focus-visible,
.work .t:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}
/* visionneuse */
html.lock {
  overflow: hidden;
}
.lb {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 3, 11, 0.95);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lb[hidden] {
  display: none;
}
.lb.open {
  opacity: 1;
}
.lb figure {
  margin: 0;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lb img {
  display: block;
  max-width: 92vw;
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
}
.lb figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font: 500 0.9rem var(--loud);
  color: var(--lav);
}
.lb-c {
  font: italic 1.05rem var(--inner);
  color: var(--dim);
}
.lb button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(205, 191, 255, 0.25);
  border-radius: 99px;
  background: none;
  color: var(--lav);
  font: 500 1.1rem var(--loud);
  cursor: pointer;
}
.lb button:hover {
  border-color: var(--violet);
}
.lb-x {
  top: calc(env(safe-area-inset-top, 0px) + 1rem);
  right: 1rem;
}
.lb-p,
.lb-nx {
  top: 50%;
  margin-top: -1.5rem;
}
.lb-p {
  left: 1rem;
}
.lb-nx {
  right: 1rem;
}
.lb.single .lb-p,
.lb.single .lb-nx {
  display: none;
}
@media (max-width: 760px) {
  .lb-p,
  .lb-nx {
    top: auto;
    margin: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  }
  .lb-p {
    left: calc(50% - 3.6rem);
  }
  .lb-nx {
    right: calc(50% - 3.6rem);
  }
  .lb img {
    max-height: 68vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lb {
    transition: none;
  }
  .js .gl .grid .art img {
    transition: none;
  }
}

/* projets perso : chaque tuile prend la forme de son image (carré, 16:9, portrait…), lignes pleines */
.gl .grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 3.2rem 1.5rem;
}
.gl .grid .t {
  flex: 1 1 20rem;
}
.gl .grid.justified .t {
  flex: none;
}
.gl .grid.justified .art {
  aspect-ratio: auto;
}
@media (max-width: 760px) {
  .gl .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem 0;
  }
  .gl .grid .t,
  .gl .grid.justified .t {
    width: 100% !important;
    height: auto !important;
  }
  .gl .grid .art,
  .gl .grid.justified .art {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }
}

/* réalisation : affiches, prochaines sorties, vidéos */
body[data-page="realisation"] header {
  animation: rise 0.5s both;
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="realisation"] header {
    animation: none;
  }
}
.rl .sub-t {
  margin: 0 0 1.4rem;
  font-style: italic;
  color: var(--dim);
}
.posters .art {
  aspect-ratio: 2/3;
}
.posters .cap {
  display: block;
}
.posters .cap h3 {
  margin: 0;
}
.posters .cap span {
  display: block;
  margin-top: 0.15rem;
  font-style: italic;
  color: var(--dim);
  font-size: 1.05rem;
}
.posters .t:not(.soon):not(.yt) {
  cursor: zoom-in;
}
.posters .soon .art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  background: linear-gradient(160deg, #1c1030, #0b0713);
  border: 1px solid var(--bruise);
}
.soon .kind {
  font: 500 0.72rem var(--loud);
  letter-spacing: 0.22em;
  color: var(--dim);
}
.soon .when {
  font: 800 clamp(1.5rem, 2.6vw, 2rem)/1 var(--loud);
  letter-spacing: -0.03em;
  color: var(--lav);
}
.tba {
  filter: blur(4px);
  color: var(--lav);
  opacity: 0.6;
}
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 2.6rem 1.4rem;
}
.videos .art {
  aspect-ratio: 16/9;
}
.yt[role="button"] {
  cursor: pointer;
}
.play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 3.6rem;
  height: 3.6rem;
  margin: -1.8rem 0 0 -1.8rem;
  border: 1px solid rgba(205, 191, 255, 0.5);
  border-radius: 50%;
  background: rgba(11, 7, 19, 0.45);
}
.play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: solid transparent;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-left-color: var(--lav);
  transform: translate(-35%, -50%);
}
.yt:not([role]) .play {
  opacity: 0.45;
}
.yt.playing .play {
  display: none;
}
.art iframe {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.posters .t:focus-visible,
.yt:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .videos {
    gap: 2rem 1rem;
  }
}

/* sorties : rangée qui défile vers la droite, débordant de l’écran, avec un flou sur les bords */
.rl {
  --padl: clamp(3.5rem, 8vw, 6rem);
  --padr: clamp(1.5rem, 6vw, 5rem);
}
.rail + .rail {
  margin-top: 4.5rem;
}
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.rl .rail-head .sub-t {
  margin: 0;
}
.rail-nav {
  display: none;
  gap: 0.6rem;
}
.rail.scrolls .rail-nav {
  display: flex;
}
.rail-nav button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(205, 191, 255, 0.25);
  border-radius: 99px;
  background: none;
  color: var(--lav);
  font: 500 1rem var(--loud);
  cursor: pointer;
  transition: border-color 0.3s;
}
.rail-nav button:hover {
  border-color: var(--violet);
}
.rail-view {
  position: relative;
  margin: 0 calc(-1 * var(--padr)) 0 calc(-1 * var(--padl));
}
.posters {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--padr) 0 var(--padl);
  padding: 6px var(--padr) 6px var(--padl);
  margin: -6px 0;
  scrollbar-width: none;
  cursor: grab;
}
.posters::-webkit-scrollbar {
  display: none;
}
.posters.drag {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}
.posters .t {
  flex: 0 0 clamp(10rem, 17vw, 15rem);
  scroll-snap-align: start;
}
.rail-view::before,
.rail-view::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(4rem, 9vw, 7rem);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.rail-view::before {
  left: 0;
  background: linear-gradient(to right, rgba(8, 4, 16, 0.65), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 35%, transparent);
  mask-image: linear-gradient(to right, #000 35%, transparent);
}
.rail-view::after {
  right: 0;
  background: linear-gradient(to left, rgba(8, 4, 16, 0.65), transparent);
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
  mask-image: linear-gradient(to left, #000 35%, transparent);
}
.rail.can-left .rail-view::before,
.rail.can-right .rail-view::after {
  opacity: 1;
}
@media (max-width: 760px) {
  .rl {
    --padl: 2.4rem;
    --padr: 1.4rem;
  }
  .posters {
    gap: 1rem;
  }
  .posters .t {
    flex-basis: 9.2rem;
  }
}
@media (hover: none) {
  .rail-nav {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rail-view::before,
  .rail-view::after {
    transition: none;
  }
}
.rail-view::before,
.rail-view::after {
  top: -1rem;
  bottom: -1rem;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.rail-view::before {
  -webkit-mask-image:
    linear-gradient(to right, #000 30%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image:
    linear-gradient(to right, #000 30%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.rail-view::after {
  -webkit-mask-image:
    linear-gradient(to left, #000 30%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image:
    linear-gradient(to left, #000 30%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.posters.settling {
  scroll-snap-type: none;
}

/* conditions d’utilisation : lecture calme, une colonne */
body[data-page="terms"] header {
  animation: rise 0.5s both;
}
.terms .doc {
  max-width: 46rem;
  animation: rise 0.5s 0.2s both;
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="terms"] header,
  .terms .doc {
    animation: none;
  }
}
.doc h2 {
  margin: 0 0 1rem;
}
.doc .intro {
  margin: 0 0 3.5rem;
  font-style: italic;
  color: var(--dim);
}
.doc section {
  margin-top: 2.4rem;
  padding: 2.2rem 0 0;
  border-top: 1px solid var(--bruise);
}
.doc section:first-of-type {
  margin-top: 0;
}
.doc h3 {
  margin: 0 0 1rem;
  font: 800 clamp(1.2rem, 2.4vw, 1.5rem) var(--loud);
  letter-spacing: -0.02em;
}
.doc h3 .n {
  margin-right: 0.8rem;
  color: var(--violet);
}
.doc p {
  margin: 0 0 1rem;
  color: #d4d0e8;
}
.doc .lead-in {
  margin: 1.4rem 0 0.6rem;
  font-style: italic;
  color: var(--lav);
}
.doc ul {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}
.doc li {
  position: relative;
  margin: 0 0 0.6rem;
  padding-left: 1.7rem;
  color: #d4d0e8;
}
.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.9rem;
  height: 1px;
  background: var(--violet);
}
.doc a {
  color: var(--lav);
  text-decoration-color: var(--violet);
  text-underline-offset: 5px;
}
.doc .ok {
  margin: 3.2rem 0 0;
  font-style: italic;
  color: var(--lav);
}
/* Statut : serveur fermé */
.collab .row b {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.collab .row b .pulse-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(228, 91, 104, 0.55);
  border-radius: 4px;
  color: #e45b68;
  font: 500 0.65rem var(--loud);
  white-space: nowrap;
  opacity: 0.9;
}