/* Marrakech Fan Zone
   Couleurs de la ville : la nuit, le bleu Majorelle, le safran, la lumière chaude d'un projecteur. */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('../fonts/big-shoulders-display.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --nuit: #12060A;
  --ombre: #2C1118;
  --majorelle: #2A33D6;
  --majorelle-vif: #4852FF;
  --tungstene: #FFE7BF;
  --safran: #FFB000;
  --papier: #F4EBD9;
  --rouge: #D4312A;

  --affiche: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --texte: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --marge: clamp(18px, 3.4vw, 56px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--tungstene);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
section[id] { scroll-margin-top: var(--nav-h); }

:focus-visible { outline: 3px solid var(--safran); outline-offset: 3px; }
.reserver :focus-visible { outline-color: var(--papier); }

.grand {
  font-family: var(--affiche);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 11vw, 10rem);
  line-height: .86;
  letter-spacing: -.005em;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 3px;
  font-family: var(--affiche);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.lien { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn-safran { background: var(--safran); color: var(--nuit); }
.btn-safran:hover { background: #FFC53D; }
.btn-majorelle { background: var(--majorelle); color: var(--papier); }
.btn-majorelle:hover { background: #1E27B8; }

/* Barre du haut */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--nav-h);
  padding: 0 var(--marge);
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: background-color .25s ease;
}
.nav.pleine { background: var(--nuit); }
.nav-marque {
  font-family: var(--affiche);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
}
.nav-liens { display: flex; gap: 1.8rem; }
.nav-liens a { text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav-liens a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .nav-btn { min-height: 42px; padding: 0 1.15rem; font-size: 1.15rem; }

/* La scène : le projecteur éclaire le nom */
.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 8px) var(--marge) clamp(20px, 3.5vh, 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .75  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.scene-faisceau {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.titre {
  position: relative;
  margin-block: auto;
  font-family: var(--affiche);
  font-weight: 900;
  line-height: .8;
  color: var(--tungstene);
  user-select: none;
  --x: 50%;
  --y: 50%;
  --r: 300px;
  --i: 1;
}
.couche { display: block; }
.ligne {
  display: block;
  width: max-content;
  white-space: nowrap;
  font-size: var(--f1, 20vw);
  padding-top: .04em;
}
.l2 { font-size: var(--f2, 23vw); }
.l2 .mot + .mot { margin-left: .2em; }

/* Quand le script tourne : le nom est dans le noir, la lumière le révèle */
.titre.eclaire .couche-ombre { color: var(--ombre); }
.titre.eclaire .couche-halo,
.titre.eclaire .couche-lumiere {
  position: absolute;
  inset: 0;
  opacity: var(--i);
}
.titre.eclaire .couche-halo {
  color: var(--majorelle-vif);
  -webkit-mask-image: radial-gradient(circle calc(var(--r) * 1.5) at var(--x) var(--y), #000 30%, transparent 100%);
          mask-image: radial-gradient(circle calc(var(--r) * 1.5) at var(--x) var(--y), #000 30%, transparent 100%);
}
.titre.eclaire .couche-lumiere {
  color: var(--tungstene);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 52%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 52%, transparent 100%);
}

.scene-bas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 4rem;
}
.scene-phrase {
  max-width: 30em;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.45;
}
.prochain { text-align: right; }
.prochain-quand { font-weight: 600; color: var(--safran); }
.prochain-titre {
  font-family: var(--affiche);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  margin: .2rem 0 1rem;
}

/* Programme */
.programme {
  background: var(--papier);
  color: var(--nuit);
  padding: clamp(64px, 10vw, 150px) var(--marge);
}
.spectacle {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem clamp(2rem, 5vw, 6rem);
  align-items: start;
  margin-top: clamp(40px, 6vw, 90px);
  padding-top: clamp(28px, 4vw, 56px);
  border-top: 4px solid var(--nuit);
}
.spectacle-jour {
  font-family: var(--affiche);
  font-weight: 900;
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: .74;
  color: var(--majorelle);
  font-variant-numeric: lining-nums;
  margin-left: -.03em;
}
.spectacle-mois {
  font-family: var(--affiche);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 1.1rem;
}
.spectacle-heure { margin-top: .5rem; font-weight: 500; }
.spectacle-titre {
  font-family: var(--affiche);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: .9;
  text-transform: uppercase;
}
.spectacle-sous {
  font-family: var(--affiche);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--majorelle);
  margin-top: .7rem;
}
.spectacle-signature { margin-top: .8rem; font-weight: 500; }
.spectacle-accroche {
  max-width: 20em;
  margin-top: 2.2rem;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.spectacle-resume { max-width: 34em; margin-top: 1.4rem; font-size: 1.15rem; }
.spectacle-points {
  grid-column: 1 / -1;
  list-style: none;
  margin: clamp(20px, 3vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem clamp(1.6rem, 3vw, 3rem);
}
.spectacle-points li { padding-top: 1.1rem; border-top: 2px solid var(--nuit); }
.spectacle-points h4 {
  margin: 0;
  font-family: var(--affiche);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}
.spectacle-points p { margin-top: .6rem; }
.spectacle-infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.3rem 2rem;
  margin: 2.4rem 0 0;
}
.spectacle-infos dt { font-size: .9rem; opacity: .7; }
.spectacle-infos dd { margin: .1rem 0 0; font-weight: 600; font-size: 1.1rem; }
.spectacle-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2.6rem;
  margin-top: 2.6rem;
}
.tarifs { display: flex; gap: 2.2rem; }
.tarif-prix {
  font-family: var(--affiche);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
}
.tarif-prix small { font-size: .5em; font-weight: 800; margin-left: .12em; }
.tarif-nom { font-size: .95rem; }
.spectacle-note { flex-basis: 100%; font-size: .95rem; opacity: .75; }
.spectacle-contact { flex-basis: 100%; }
.spectacle-contact a { font-weight: 600; text-underline-offset: 4px; }
.spectacle-reste { font-weight: 700; color: var(--rouge); }

.suite { margin-top: clamp(56px, 8vw, 110px); }
.suite-titre {
  font-family: var(--affiche);
  font-weight: 800;
  font-size: 1.7rem;
  text-transform: uppercase;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--nuit);
}
.suite-vide { padding: 1.3rem 0; max-width: 34em; }
.suite-rang {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(18, 6, 10, .25);
}
.suite-rang-titre { font-family: var(--affiche); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }

/* Comment réserver */
.reserver {
  background: var(--majorelle);
  color: var(--papier);
  padding: clamp(64px, 10vw, 150px) var(--marge);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem clamp(2rem, 6vw, 7rem);
  align-items: center;
  overflow: hidden;
}
.etapes {
  counter-reset: etape;
  margin-top: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.6rem clamp(1.6rem, 3vw, 3.4rem);
}
.etapes li { counter-increment: etape; }
.etapes li::before {
  content: counter(etape);
  display: block;
  font-family: var(--affiche);
  font-weight: 900;
  font-size: 4.2rem;
  line-height: .8;
  color: var(--safran);
  margin-bottom: .9rem;
}
.etapes h3 {
  font-family: var(--affiche);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
}
.etapes p { margin-top: .55rem; max-width: 24em; }
.reserver-billet { justify-self: center; width: min(100%, 380px); transform: rotate(-4deg); }
.reserver-billet figcaption { margin-top: 1.3rem; text-align: center; font-size: .95rem; opacity: .85; }

/* Le billet */
.billet { filter: drop-shadow(0 26px 34px rgba(9, 5, 40, .45)); }
.billet-papier {
  --encoche: 13px;
  background: var(--papier);
  color: var(--nuit);
  border-radius: 6px;
  -webkit-mask:
    radial-gradient(circle var(--encoche) at 0 var(--coupe, 62%), transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--encoche) at 100% var(--coupe, 62%), transparent 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--encoche) at 0 var(--coupe, 62%), transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--encoche) at 100% var(--coupe, 62%), transparent 98%, #000) right / 51% 100% no-repeat;
}
.billet-haut { padding: 1.5rem 1.6rem 1.4rem; }
.billet-marque { font-family: var(--affiche); font-weight: 800; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--majorelle); }
.billet-titre { font-family: var(--affiche); font-weight: 900; font-size: 2.2rem; line-height: .92; text-transform: uppercase; margin-top: .5rem; }
.billet-quand { margin-top: .7rem; font-weight: 600; }
.billet-lignes { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin: 1.2rem 0 0; }
.billet-lignes dt { font-size: .8rem; opacity: .7; }
.billet-lignes dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.billet-bas {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem 1.6rem 1.5rem;
  border-top: 2px dashed rgba(18, 6, 10, .35);
}
.billet-qr { width: 112px; height: 112px; display: block; }
.billet-ref { font-family: var(--affiche); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; line-height: 1; }
.billet-statut {
  display: inline-block;
  margin-top: .6rem;
  padding: .2rem .6rem;
  background: var(--safran);
  border-radius: 2px;
  font-weight: 600;
  font-size: .9rem;
}
.billet-montant { margin-top: .5rem; font-size: .95rem; }

/* Soirs de match */
.match {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 15vw, 220px) var(--marge);
}
.match-terrain {
  position: absolute;
  top: 50%;
  right: -6vw;
  width: min(74vw, 760px);
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ombre);
  stroke-width: 3;
}
.match-terrain .plein { fill: var(--ombre); }
.match-texte { position: relative; }
.match-texte p { margin-top: 1.6rem; max-width: 26em; font-size: clamp(1.1rem, 1.5vw, 1.4rem); }

/* Pied de page */
.pied {
  padding: clamp(40px, 6vw, 80px) var(--marge) 32px;
  border-top: 1px solid var(--ombre);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.6rem 3rem;
  align-items: end;
}
.pied-marque { font-family: var(--affiche); font-weight: 900; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .9; text-transform: uppercase; }
.pied-liens { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; }
.pied-liens a { text-decoration: none; }
.pied-liens a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pied-legal { grid-column: 1 / -1; font-size: .9rem; opacity: .65; }

/* Fenêtre de réservation */
.resa {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 480px);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--papier);
  color: var(--nuit);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.resa::backdrop { background: rgba(18, 6, 10, .78); }
.resa[open] { animation: resa-entre .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes resa-entre { from { transform: translateX(100%); } }
.resa-form, .resa-fin {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  min-height: 100%;
  padding: 1.4rem clamp(1.2rem, 5vw, 2rem) 2rem;
}
.resa-form[hidden], .resa-fin[hidden] { display: none; }
.resa-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.resa-tete h2 { font-family: var(--affiche); font-weight: 900; font-size: 2.2rem; line-height: .95; text-transform: uppercase; outline: 0; }
.resa-quand { font-weight: 600; color: var(--majorelle); margin-bottom: .3rem; }
.resa-fermer {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 6, 10, .08);
}
.resa-fermer:hover { background: rgba(18, 6, 10, .16); }
.resa-places legend, .champ label { font-weight: 600; margin-bottom: .5rem; display: block; }
.compteur {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid rgba(18, 6, 10, .2);
}
.compteur-nom { font-weight: 600; }
.compteur-nom span { font-weight: 400; opacity: .7; }
.compteur-prix { font-size: .95rem; opacity: .75; }
.compteur-boutons { display: flex; align-items: center; gap: .3rem; }
.compteur-boutons button {
  width: 46px;
  height: 46px;
  border: 2px solid var(--nuit);
  border-radius: 50%;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
}
.compteur-boutons button:hover:not(:disabled) { background: var(--nuit); color: var(--papier); }
.compteur-boutons button:disabled { opacity: .25; cursor: default; }
.compteur-boutons output {
  width: 2.2em;
  text-align: center;
  font-family: var(--affiche);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
}
.resa-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0 0;
  border-top: 4px solid var(--nuit);
  font-weight: 600;
}
.resa-montant { font-family: var(--affiche); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.champ input {
  width: 100%;
  height: 54px;
  padding: 0 .9rem;
  border: 2px solid var(--nuit);
  border-radius: 3px;
  background: #FFFAF0;
  color: var(--nuit);
  font: inherit;
  font-size: 1.1rem;
}
.champ input::placeholder { color: rgba(18, 6, 10, .45); }
.resa-erreur { padding: .8rem 1rem; background: var(--rouge); color: #fff; border-radius: 3px; font-weight: 500; }
.resa-envoyer { width: 100%; margin-top: auto; }
.resa-note { font-size: .9rem; opacity: .75; text-align: center; }
.resa-fin .billet { filter: drop-shadow(0 14px 22px rgba(18, 6, 10, .25)); }
.resa-fin .billet-papier { background: #FFFAF0; }
.resa-actions { margin-top: auto; display: grid; gap: .7rem; }
.btn-contour { background: none; color: var(--nuit); box-shadow: inset 0 0 0 2px var(--nuit); }
.btn-contour:hover { background: rgba(18, 6, 10, .08); }

/* Téléphones et tablettes */
@media (max-width: 860px) {
  .nav-liens { display: none; }
  .l2 { font-size: inherit; padding-top: 0; }
  .l2 .mot { display: block; width: max-content; padding-top: .04em; font-size: var(--f2, 60vw); }
  .l2 .mot + .mot { margin-left: 0; font-size: var(--f3, 46vw); }
  .scene-bas { grid-template-columns: minmax(0, 1fr); }
  .prochain { text-align: left; }
  .spectacle { grid-template-columns: minmax(0, 1fr); }
  .reserver { grid-template-columns: minmax(0, 1fr); }
  .reserver-billet { margin-top: 1rem; }
  .pied { grid-template-columns: minmax(0, 1fr); }
  .suite-rang { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
}
@media (max-width: 520px) {
  .etapes { grid-template-columns: minmax(0, 1fr); }
  .nav-marque { font-size: 1.25rem; }
  .tarifs { gap: 1.6rem; }
  .spectacle-bas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .resa[open] { animation: none; }
  .btn { transition: none; }
}
