/* Pages : héros centré et mur d'affiches, billet, tampon, titre qui défile */
.hero {
  position: relative;
  overflow-x: clip;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 840px;
  padding: 64px var(--gx) 88px;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 660px);
}
h1 {
  margin: 22px 0 26px;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.9rem, 5.6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
/* « Ce week-end » défile avec d'autres moments */
.rotator {
  display: block;
  width: fit-content;
  height: 1.1em;
  margin: -0.09em auto 0;
  overflow: hidden;
}
h1 .over, h1 .nowrap {
  white-space: nowrap;
}
.rotator__list {
  display: block;
  transform: translateY(calc(var(--i, 0) * -1.1em));
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}
.rotator__list.no-anim {
  transition: none;
}
.rotator__list > span {
  display: block;
  height: 1.1em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
/* aberration marquée sur « quelque chose » : elle s'écarte quand la souris approche (--sep piloté par js/hero.js) */
.over {
  --sep: var(--over-sep);
  text-shadow:
    calc(var(--sep) * -1) 0 0 var(--over-magenta),
    var(--sep) 0 0 var(--over-cyan);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.wall {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.poster {
  pointer-events: auto;
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: var(--w);
  aspect-ratio: var(--ar);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 14px;
  transform: rotate(var(--r));
  box-shadow: var(--shadow-poster);
  animation: poster-drop 0.95s cubic-bezier(0.2, 0.9, 0.25, 1.1) backwards;
  animation-delay: calc(var(--i) * 0.14s + 0.1s);
  transition: transform 0.25s, box-shadow 0.25s;
}
.poster:hover {
  z-index: 9;
  transform: translateY(-10px) rotate(0deg) scale(1.03);
  box-shadow: var(--shadow-poster-hover);
}
.poster canvas {
  position: absolute;
  inset: 0 0 34px 0;
  width: 100%;
  height: calc(100% - 34px);
  pointer-events: none;
}
.poster > :not(canvas):not(.poster__tape) {
  position: relative;
  z-index: 1;
}
.poster .label {
  font-family: var(--font-mono);
  font-size: 4cqw;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.poster h2,
.poster h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24cqw;
  line-height: 0.88;
  text-transform: uppercase;
}
.poster .poster__date {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 4.6cqw;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.poster__tape {
  position: absolute;
  top: -11px;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape);
  box-shadow: var(--shadow-tape);
}
.poster--festival {
  background: var(--yellow);
}
.poster--festival canvas {
  mix-blend-mode: multiply;
}
.poster--expo {
  background: var(--white);
  color: var(--ink);
}
.poster__eye {
  mix-blend-mode: multiply;
}
.poster--atelier {
  background: var(--white);
}
.poster--atelier canvas {
  mix-blend-mode: multiply;
}
.poster--brocante {
  background: var(--paper);
  border: var(--line) solid var(--ink);
}
.poster--brocante canvas {
  mix-blend-mode: multiply;
}
.poster--match {
  background: var(--rose-pale);
}
.poster--spectacle {
  background: var(--violet);
  color: var(--paper);
}
.poster--spectacle .poster__date {
  color: var(--yellow);
}
.poster--match canvas {
  mix-blend-mode: multiply;
}
.ticket {
  z-index: 4;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 10px 30px;
  background: var(--ink);
  color: var(--yellow);
  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 10px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 10px, #000 11px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 50%, transparent 10px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 10px, #000 11px) right / 51% 100% no-repeat;
}
.ticket .label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 3.6cqw;
}
.ticket .ticket__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 15cqw;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
}
.ticket .poster__date {
  margin-top: 0;
  font-size: 3.6cqw;
  text-align: right;
}
.stamp {
  position: absolute;
  left: 0;
  top: 40%;
  z-index: 8;
  width: 8.5%;
  color: var(--magenta);
  font-family: var(--font-display);
  mix-blend-mode: multiply;
  opacity: 0.92;
  transform: rotate(-14deg);
  animation: stamp-in 0.5s cubic-bezier(0.2, 1.2, 0.3, 1) 1.3s backwards;
}
@media (max-width: 1320px) {
  .hero__copy {
    width: min(100%, 560px);
  }
  .poster {
    width: calc(var(--w) * 0.85);
  }
}
@media (max-width: 1100px) {
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    gap: 36px;
  }
  .wall {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 16px;
    width: 100%;
    max-width: 760px;
    pointer-events: auto;
  }
  .hero__copy {
    width: min(100%, 660px);
  }
  .poster {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }
  .ticket {
    grid-column: span 2;
  }
  .stamp {
    display: none;
  }
}
@media (max-width: 640px) {
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ticket {
    grid-column: span 2;
    justify-self: center;
    width: 64%;
  }
}
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 56px;
  }
}
@keyframes poster-drop {
  from { opacity: 0; transform: translateY(-85%) rotate(calc(var(--r) - 14deg)); }
  65% { opacity: 1; transform: translateY(2%) rotate(calc(var(--r) + 1.5deg)); }
  to { transform: rotate(var(--r)); }
}
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-14deg) scale(1.9); }
  to { opacity: 0.92; transform: rotate(-14deg) scale(1); }
}

/* ---------- pages internes : héros de page, sections, composants ---------- */
.hero--page {
  min-height: 560px;
  padding: 56px var(--gx) 72px;
}
.hero--page .wall .poster {
  --w-scale: 1;
}

.section {
  position: relative;
  overflow-x: clip;
  z-index: 2;
  padding: 88px var(--gx);
}
.section--soft {
  border-block: var(--line) solid var(--ink);
  background: var(--paper-bright);
}
.section-title--md {
  margin-bottom: 36px;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
}
.split--flip > :first-child {
  order: 2;
}
.split .section-title--md {
  margin-bottom: 20px;
}
.kicker--left {
  justify-content: flex-start;
  margin-bottom: 14px;
}
.lead--left {
  margin-inline: 0;
}
.note {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--violet);
  font-size: 15px;
}
.note--center {
  margin: 36px auto 0;
  padding: 0;
  border: 0;
  max-width: 36rem;
  text-align: center;
}

/* étiquettes carrées */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tags li {
  padding: 7px 12px;
  border: var(--line) solid var(--ink);
  background: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tags--big {
  gap: 14px;
}
.tags--big li {
  padding: 12px 18px;
  font-size: 15px;
  box-shadow: var(--shadow-hard);
}
.tags--big li:nth-child(5n + 1) { background: var(--dawn); }
.tags--big li:nth-child(5n + 2) { background: var(--noon); }
.tags--big li:nth-child(5n + 3) { background: var(--aft); }
.tags--big li:nth-child(5n + 4) { background: var(--dusk); }
.tags--big li:nth-child(5n) { background: var(--night); color: var(--paper); }

/* deux affiches posées l'une sur l'autre */
.poster-stack {
  display: flex;
  justify-content: center;
  padding: 24px 0 56px;
}
.poster--static {
  position: relative;
  left: auto;
  top: auto;
  width: var(--w);
  animation: none;
}
.poster-stack .poster--static + .poster--static {
  margin: 48px 0 0 -6%;
}

/* deux colonnes : l'amie qui y va et la carte, sur les pages internes */
.split .rows {
  align-self: center;
}
.split .map {
  min-height: 420px;
}

/* bande de fin de page */
.band {
  position: relative;
  z-index: 2;
  padding: 64px var(--gx);
  background: var(--ink);
  color: var(--paper);
}
.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  max-width: 1180px;
  margin-inline: auto;
}
.band__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.band .lead {
  margin: 10px 0 0;
}

/* encadré liste d'attente (contact) */
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 1180px;
  margin: 72px auto 0;
  padding: 28px;
  border: var(--line) solid var(--ink);
  background: var(--paper-bright);
  box-shadow: var(--shadow-hard);
}
.callout h3 {
  font-size: 1.9rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
}
.callout p {
  margin-top: 8px;
  max-width: 34rem;
}
.card__status {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 9px;
  border: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* questions fréquentes */
.faq__inner {
  max-width: 820px;
  margin-inline: auto;
}
.faq__list {
  border: var(--line) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}
.faq details + details {
  border-top: var(--line) solid var(--ink);
}
.faq summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 22px;
  transform: translateY(-50%);
}
.faq details[open] summary::after {
  content: "−";
}
.faq summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}
.faq details p {
  padding: 0 20px 20px;
  max-width: 40rem;
}

/* démo de publication (organisateurs) */
.composer {
  display: grid;
  gap: 16px;
  padding: 0 22px 24px;
  border: var(--line) solid var(--ink);
  background: var(--paper-bright);
  box-shadow: var(--shadow-hard);
}
.composer__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -22px;
  padding: 10px 22px;
  border-bottom: var(--line) solid var(--ink);
}
.composer__bar span {
  width: 10px;
  height: 10px;
  border: var(--line) solid var(--ink);
}
.composer__bar span:nth-child(1) { background: var(--magenta); }
.composer__bar span:nth-child(2) { background: var(--yellow); }
.composer__bar span:nth-child(3) { background: var(--cyan); }
.composer__bar em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.composer label {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.composer .field {
  display: block;
  min-height: 46px;
  padding: 10px 14px;
  border: var(--line) solid var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.composer .field.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--ink);
  animation: caret 0.9s steps(1) infinite;
}
.composer__done {
  padding: 12px 14px;
  border: var(--line) solid var(--ink);
  background: var(--trame-b);
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.composer__done.is-shown {
  opacity: 1;
  transform: none;
}

/* apparition au défilement : seulement quand le mouvement est actif, le contenu reste lisible sans JS */
html[data-motion="full"] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html[data-motion="full"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes caret {
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  .section {
    padding: 64px var(--gx);
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .split--flip > :first-child {
    order: 0;
  }
  .hero--page {
    min-height: 0;
  }
}
@media (max-width: 640px) {
  .hero--page h1 .nowrap,
  .hero--page h1 .over {
    white-space: normal;
  }
  .poster-stack .poster--static {
    --w: 48%;
  }
  .callout {
    padding: 22px;
  }
}
