/* les mots bleus — piste 02 : direction "affiche gig / collage"
   inspirée de l'affiche Canva (papier vieilli, duoton bleu, serif éditoriale) */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jost-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courier-prime-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courier-prime-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
}

:root {
  --encre: #1c1c1b;
  --ardoise: #1c1c1b;
  --bleu-duoton: #16213e;
  --papier-voile: rgba(236, 228, 209, 0.5);
  --police-affiche: "Fraunces", "Iowan Old Style", "Palatino", serif;
  --police-caps: "Courier Prime", "IBM Plex Mono", monospace;
  --police-labels: "Jost", "Century Gothic", Futura, sans-serif;
  --police-texte: "Courier Prime", "IBM Plex Mono", monospace;
  --mesure: 30rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #d8cdb0;
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: 0.95rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--papier-voile), var(--papier-voile)),
    url("../assets/img/fond-papier-vieilli.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

::selection {
  background-color: var(--ardoise);
  color: #fff;
}

main {
  flex: 1;
}

/* ---------- burger + menu plein écran ---------- */

.burger {
  position: fixed;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 20;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: transparent;
  border: 1.5px solid var(--encre);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--encre);
}

.menu-plein {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #eee6d3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.menu-plein[hidden] {
  display: none;
}

.menu-fermer {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.6rem;
  height: 2.6rem;
  background: transparent;
  border: 1.5px solid var(--encre);
  color: var(--encre);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.menu-plein a {
  font-family: var(--police-affiche);
  font-weight: 500;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: var(--encre);
  text-decoration: none;
}

.menu-plein a:hover {
  color: var(--ardoise);
}

/* ---------- affiche (hero) ---------- */

.affiche {
  position: relative;
  width: min(64rem, 100% - 2rem);
  margin-inline: auto;
  padding-block: 0.75rem 2rem;
  overflow: hidden;
}

.affiche-entete {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.affiche-titre {
  position: relative;
}

.affiche-fantome {
  position: absolute;
  top: -0.6rem;
  left: -0.35rem;
  margin: 0;
  font-family: var(--police-labels);
  font-weight: 600;
  font-size: clamp(2.4rem, 11vw, 4.75rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--encre);
  opacity: 0.1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.affiche-eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 16rem;
  padding-top: 3.5rem;
}

.affiche-photo {
  width: clamp(13rem, 54vw, 28rem);
  aspect-ratio: 1030 / 850;
  overflow: hidden;
}

.affiche-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.affiche-signature {
  position: relative;
  text-align: center;
  margin-top: 1.5rem;
}

.affiche-signature img {
  width: clamp(15rem, 46vw, 23rem);
  height: auto;
  display: inline-block;
}

.affiche-date-cadre {
  position: relative;
  display: inline-flex;
  margin-top: 0.75rem;
}

.affiche-date-cadre svg {
  position: absolute;
  inset: -0.6rem -1.2rem;
  width: calc(100% + 2.4rem);
  height: calc(100% + 1.2rem);
  overflow: visible;
}

.affiche-date-cadre svg path {
  fill: none;
  stroke: var(--encre);
  stroke-width: 2.5;
}

.affiche-date {
  position: relative;
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
  padding: 0.3rem 0.5rem;
}

.affiche-programme {
  position: relative;
  margin-top: 1.75rem;
  text-align: center;
}

.affiche-programme li {
  list-style: none;
  font-family: var(--police-affiche);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.3rem, 4.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ardoise);
}

.affiche-programme li.mystere {
  font-style: italic;
}

.affiche-programme li.accent {
  font-size: clamp(1.55rem, 5.5vw, 2.4rem);
}

.affiche-lieu {
  position: relative;
  margin-top: 1.5rem;
  text-align: center;
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
}

.affiche-horaires {
  position: relative;
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: clamp(0.65rem, 1.6vw, 0.78rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ardoise);
}

.affiche-cta {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem 1rem;
  text-align: center;
  background: var(--encre);
  color: #f2ead9;
  text-decoration: none;
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: clamp(0.75rem, 2.2vw, 0.95rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.affiche-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .affiche-entete {
    grid-template-columns: 1fr;
  }

  .affiche-photo {
    width: clamp(11rem, 58vw, 18rem);
    justify-self: end;
  }
}

/* ---------- panneaux (manifeste / programmation / contact) ---------- */

.panneau {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: #eee6d3;
  overflow-y: auto;
  padding: 4.5rem 1.5rem 3rem;
}

.panneau-fermer {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 26;
  width: 2.6rem;
  height: 2.6rem;
  background: transparent;
  border: 1.5px solid var(--encre);
  color: var(--encre);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.panneau-corps {
  width: min(var(--mesure), 100% - 1rem);
  margin-inline: auto;
  text-align: center;
}

.panneau-titre {
  font-family: var(--police-affiche);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--ardoise);
  margin-bottom: 1.5rem;
}

.panneau-soustitre {
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

.panneau-avertissement {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ardoise);
  max-width: 26rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(28, 28, 27, 0.2);
}

.panneau-corps p + p {
  margin-top: 1.25rem;
}

.manifeste-texte p:first-child::first-letter {
  font-family: var(--police-affiche);
  font-weight: 600;
  font-size: 2.4em;
  float: left;
  line-height: 0.8;
  margin-right: -0.5em;
  color: var(--ardoise);
}

.panneau-artistes {
  list-style: none;
  text-align: left;
}

.artiste-item {
  border-bottom: 1px solid rgba(28, 28, 27, 0.2);
}

.artiste-toggle {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--police-affiche);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--ardoise);
}

.artiste-toggle:hover {
  opacity: 0.8;
}

.artiste-toggle[aria-expanded="true"] {
  font-style: italic;
}

.artiste-toggle.mystere {
  font-style: italic;
}

.panneau-numero {
  font-family: var(--police-caps);
  font-size: 0.75rem;
  color: var(--encre);
  opacity: 0.6;
}

.artiste-detail {
  padding-block: 0 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.artiste-detail[hidden] {
  display: none;
}

.artiste-detail-photo {
  flex-shrink: 0;
  width: 7rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(28, 28, 27, 0.06);
}

.artiste-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artiste-detail-photo.a-venir {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--encre);
}

.artiste-detail-photo.a-venir span {
  font-family: var(--police-caps);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 0.5rem;
  opacity: 0.6;
}

.artiste-detail-texte {
  min-width: 0;
  flex: 1 1 auto;
}

.artiste-detail-bio {
  font-size: 0.85rem;
  line-height: 1.65;
}

.artiste-detail-liens {
  display: flex;
  gap: 1rem;
}

.artiste-detail-liens a {
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 1.5px solid var(--encre);
}

@media (min-width: 480px) {
  .artiste-detail {
    flex-direction: row;
    align-items: flex-start;
  }
}

.panneau-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--encre);
  opacity: 0.75;
}

.panneau-note a {
  color: var(--ardoise);
}

.panneau-intro {
  margin-bottom: 2rem;
}

/* ---------- formulaire de contact ---------- */

.formulaire-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.formulaire-contact[hidden] {
  display: none;
}

.champ-profil {
  border: none;
}

.champ-profil legend {
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.champ-profil label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1.25rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.champ-profil input {
  accent-color: var(--ardoise);
}

.champ-deux {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.champ-texte label {
  display: block;
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.champ-texte .facultatif {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.65;
}

.champ-texte input,
.champ-texte textarea,
.champ-texte select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--encre);
  padding: 0.4rem 0.1rem 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--encre);
  resize: vertical;
}

.champ-texte input:focus,
.champ-texte textarea:focus,
.champ-texte select:focus {
  outline: none;
  border-bottom-color: var(--ardoise);
}

.champ-segment {
  margin-top: -0.5rem;
}

.anti-pourriel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulaire-contact button {
  align-self: flex-start;
  background: var(--encre);
  color: #f2ead9;
  border: none;
  padding: 0.85rem 2.25rem;
  font-family: var(--police-caps);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.formulaire-contact button:hover {
  opacity: 0.85;
}

.confirmation-contact,
.erreur-contact {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.confirmation-contact {
  color: var(--ardoise);
}

.erreur-contact {
  color: var(--encre);
}

.erreur-contact a {
  color: var(--ardoise);
}

@media (max-width: 480px) {
  .champ-deux {
    grid-template-columns: 1fr;
  }
}

/* ---------- séparateur + infolettre (panneau contact) ---------- */

.separateur-panneau {
  height: 1px;
  background: rgba(28, 28, 27, 0.2);
  margin-block: 2.5rem;
}

.panneau-titre-petit {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  margin-bottom: 0.75rem;
}

.formulaire-infolettre {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  margin-top: 1.5rem;
}

.formulaire-infolettre[hidden] {
  display: none;
}

.champ-consentement {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--encre);
  opacity: 0.8;
  cursor: pointer;
}

.champ-consentement input {
  margin-top: 0.2rem;
  accent-color: var(--ardoise);
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.formulaire-infolettre button {
  align-self: flex-start;
  background: var(--encre);
  color: #f2ead9;
  border: none;
  padding: 0.85rem 2.25rem;
  font-family: var(--police-caps);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.formulaire-infolettre button:hover {
  opacity: 0.85;
}

.confirmation-infolettre {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ardoise);
}

.cible-infolettre {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- billetterie ---------- */

.billetterie-etat[hidden] {
  display: none;
}

.bouton-billetterie {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--encre);
  color: #f2ead9;
  text-decoration: none;
  padding: 0.85rem 2.25rem;
  font-family: var(--police-caps);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: opacity 0.2s ease;
}

.bouton-billetterie:hover {
  opacity: 0.85;
}

.billetterie-widget {
  margin-top: 1.5rem;
  width: 100%;
}

.billetterie-widget iframe {
  display: block;
  width: 100%;
  height: 800px;
  max-height: calc(100vh - 220px);
  border: 0;
}

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

.billetterie-alerte {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(28, 28, 27, 0.2);
}

.billetterie-alerte-titre {
  font-family: var(--police-affiche);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.billetterie-alerte .champ-inline {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.billetterie-alerte .champ-inline input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--encre);
  padding: 0.5rem 0.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--encre);
}

.billetterie-alerte .champ-inline input:focus {
  outline: none;
  border-bottom-color: var(--ardoise);
}

.billetterie-alerte .champ-inline button {
  flex-shrink: 0;
  background: var(--encre);
  color: #f2ead9;
  border: none;
  padding: 0 1.5rem;
  font-family: var(--police-caps);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.billetterie-alerte .champ-inline button:hover {
  opacity: 0.85;
}

.champ-consentement-petit {
  font-size: 0.7rem;
}

.confirmation-petite {
  margin-top: 0 !important;
}

@media (max-width: 480px) {
  .billetterie-alerte .champ-inline {
    flex-direction: column;
  }

  .billetterie-alerte .champ-inline button {
    padding: 0.7rem 1.5rem;
  }
}

/* ---------- pied de page ---------- */

.pied {
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: var(--police-caps);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre);
  border-top: 1.5px solid var(--encre);
}

.pied-liens {
  margin-bottom: 0.75rem;
}

.pied-liens a {
  color: var(--ardoise);
  text-decoration: none;
}

.pied-liens a:hover {
  text-decoration: underline;
}

.pied-liens span {
  margin-inline: 0.5rem;
  opacity: 0.5;
}
