/* =========================================================
   FONTS
   ========================================================= */
@font-face {
  font-family: 'Coolvetica';
  src: url('../fonts/Coolvetica_Rg.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --pink: #E4127E;         /* fond principal */
  --pink-deep: #B80E66;    /* variante ombre / gradient */
  --plum: #5C1440;         /* fond des affiches placeholder */
  --ink: #17070F;          /* noir chaud, traits & texte */
  --paper: #FFFFFF;        /* blanc footer / cartes */
  --gold: #FFC94A;         /* accent unique : halo loupe / focus */

  --font-display: 'Coolvetica', 'Arial Narrow', sans-serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   PAGE
   ========================================================= */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  background: var(--gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(228,18,126,.55) 0%, rgba(184,14,102,.35) 45%, rgba(23,7,15,.55) 100%);
  z-index: 1;
}*/

.hero__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--gutter);
  gap: 1rem;
}

.logo-slot {
  display: flex;
  justify-content: center; /* Centrage horizontal */
  width: 100%; /* Prend toute la largeur disponible */
}
.logo-slot img {
  /*height: clamp(38px, 6vw, 64px);*/
  width: 350px;
}
.logo-placeholder {
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  padding: .2em .6em;
  line-height: 1;
}
.socials {
  display: flex;
  gap: .6rem;
}
.socials a {
  width: clamp(38px, 6vw, 56px);
  height: clamp(38px, 6vw, 56px);
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.socials a svg { width: 55%; height: 55%; }
.socials a:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
}

.hero__center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter) var(--gutter);
}

/* Countdown */
.countdown {
  display: flex;
  gap: clamp(.6rem, 2.5vw, 1.6rem);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 10vw, 118px);
  height: clamp(64px, 10vw, 118px);
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(2px);
  color: var(--paper);
}

.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.4vw, 2.6rem);
  line-height: 1;
}

.countdown__label {
  font-family: var(--font-body);
  font-size: clamp(.55rem, 1.1vw, .72rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .25em;
  opacity: .85;
}

.countdown--expired {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--paper);
  text-align: center;
}

/* =========================================================
   POSTERS
   ========================================================= */
.posters {
  --overlap: clamp(150px, 8vw, 96px); /* hauteur du débordement sur le hero */
  background: var(--paper);
  padding: 0 0 clamp(1rem, 3vw, 2rem);
 /*  margin-top: var(--overlap); réserve la place : le débordement remonte dedans */
  position: relative;
  z-index: 2; /* passe au-dessus du bas du hero */
}

.posters__inner {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(-6px, -0.6vw, 4px);
  padding: 0 var(--gutter);
  max-width: 1500px;
  margin: calc(-1 * var(--overlap)) auto 0; /* fait remonter les affiches sur le fond rose */
}

.poster {
  --tilt: 0deg;
  flex: 1 1 0;
  max-width: 190px;
  transform: rotate(var(--tilt));
  transition: transform .3s ease, z-index 0s;
  position: relative;
}

.poster:nth-child(1) { --tilt: -6deg; }
.poster:nth-child(2) { --tilt: 4deg; }
.poster:nth-child(3) { --tilt: -3deg; }
.poster:nth-child(4) { --tilt: 5deg; }
.poster:nth-child(5) { --tilt: -5deg; }
.poster:nth-child(6) { --tilt: 3deg; }
.poster:nth-child(7) { --tilt: -4deg; }

.poster:hover,
.poster:focus-within {
  transform: rotate(0deg) translateY(-10px) scale(1.06);
  z-index: 5;
}

.poster__card {
  display: block;
  background: var(--paper);
  padding: 10px 10px 14px;
  box-shadow: 0 10px 22px rgba(23,7,15,.28);
  border-radius: 2px;
}

.poster__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--plum);
  cursor: zoom-in;
}

.poster__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.poster:hover .poster__frame img,
.poster:focus-within .poster__frame img {
  transform: scale(1.18);
}

.poster__loupe {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.poster:hover .poster__loupe,
.poster:focus-within .poster__loupe {
  opacity: 1;
  transform: scale(1);
}
.poster__loupe svg { width: 60%; height: 60%; }

.poster__meta {
  padding-top: 8px;
  text-align: left;
}
.poster__name {
  font-family: var(--font-display);
  font-size: clamp(.85rem, 1.1vw, 1rem);
  line-height: 1.1;
  color: var(--ink);
}
.poster__date {
  font-family: var(--font-body);
  font-size: .68rem;
  color: #6b5a63;
  margin-top: 2px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--paper);
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}
.footer p {
  margin: 0;
  font-size: .78rem;
  color: #8a7a83;
  font-family: var(--font-body);
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 780px) {
  .hero__top {
    flex-direction: column;
    align-items: center;
    gap: .8rem;
  }
  .hero { min-height: 62vh; }

.posters__inner {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);   /* ← ajouté */
  gap: 1rem;
  padding: 0 var(--gutter);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
  .posters__inner::-webkit-scrollbar { display: none; }

  .poster {
    flex: 0 0 62%;
    max-width: 220px;
    scroll-snap-align: start;
    --tilt: 0deg !important;
  }
  .poster:nth-child(n) { --tilt: 0deg; }
  .poster:hover .poster__frame img,
  .poster:focus-within .poster__frame img {
    transform: none;
  }
  .poster:active .poster__frame img {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .poster,
  .poster__frame img,
  .socials a {
    transition: none !important;
  }
}