/* =========================================================
   tickets.hellfest.fr
   Un seul système pour tout le site.
   Pierre (texture + beige) · noir · gris · rouge réservé au statut « complet »
   ========================================================= */
@font-face { font-family: Tungsten; src: url(../fonts/TungstenNarrow-Medium.woff) format("woff"); font-display: swap; }
@font-face { font-family: Texte; src: url(../fonts/main-font.woff2) format("woff2"), url(../fonts/main-font.woff) format("woff"); font-display: swap; }

:root {
  --noir: #0E0E0F;
  --pierre: #F9EAD3;
  --pierre-douce: rgba(249, 234, 211, .72);
  --gris: #7E7D7D;
  --gris-fonce: #525250;
  --panneau: #1A1A19;
  --rouge: #ED202E;
  --filet: rgba(126, 125, 125, .55);
  --gouttiere: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--noir); color: var(--pierre); font-family: Texte, system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 3px solid var(--pierre); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gouttiere); }
.titre, .vente__nom, .bz-title { text-wrap: balance; }
.titre { font-family: Tungsten, Impact, sans-serif; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
.doux { color: var(--pierre-douce); }
/* Titre lu par les lecteurs d'écran, invisible à l'écran */
.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; }

/* Périodes du tirage (static/js/ballot-phase.js) */
html[data-ballot-phase="open"]   [data-phase]:not([data-phase~="open"]),
html[data-ballot-phase="closed"] [data-phase]:not([data-phase~="closed"]),
html[data-ballot-phase="drawn"]  [data-phase]:not([data-phase~="drawn"]),
html[data-ballot-phase="resale"] [data-phase]:not([data-phase~="resale"]),
html:not([data-ballot-phase])    [data-phase]:not([data-phase~="open"]) { display: none !important; }
html[data-unsub-over] [data-until="unsub"] { display: none !important; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.6rem; border: 1px solid var(--pierre); border-radius: 2px; background: var(--pierre); color: var(--noir); font: 700 1rem/1.2 Texte, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn:hover:not(:disabled) { background: transparent; color: var(--pierre); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn--contour { background: transparent; color: var(--pierre); }
.btn--contour:hover { background: var(--pierre); color: var(--noir); }

/* ---------- En-tête ---------- */
/* Transparent sur le hero, fond sombre dès qu'on fait défiler ou que le menu est ouvert */
.entete { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.defile .entete, .menu-ouvert .entete { background: rgba(14, 14, 15, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--filet); }
.entete__in { display: flex; align-items: center; gap: 1rem; height: 4.5rem; padding: 0 var(--gouttiere); }
.entete__logo img { height: 2.75rem; width: auto; }
.entete__droite { margin-left: auto; display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.entete__compte { font-weight: 700; font-size: .95rem; text-decoration: none; padding: .55rem 1rem; border: 1px solid var(--filet); border-radius: 2px; }
.entete__compte:hover { border-color: var(--pierre); }
.langues { display: flex; gap: .75rem; font-size: .85rem; font-weight: 700; }
.langues a { text-decoration: none; opacity: .5; }
.langues a[aria-current] { opacity: 1; }
.menu-btn { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; color: var(--pierre); font: 700 .95rem Texte, sans-serif; cursor: pointer; padding: .5rem 0; }
.menu-btn i { width: 1.15rem; height: 1.15rem; background: radial-gradient(circle, var(--pierre) 44%, transparent 46%) 0 0 / 50% 50%; }
.menu-ouvert .menu-btn i { background: linear-gradient(45deg, transparent 45%, var(--pierre) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--pierre) 45% 55%, transparent 55%); }

.menu { position: fixed; top: 4.5rem; right: 0; z-index: 49; width: min(100%, 24rem); max-height: calc(100vh - 4.5rem); overflow: auto; padding: 2.25rem clamp(1.5rem, 4vw, 3rem) 2.75rem; background: var(--noir); border-left: 1px solid var(--filet); border-bottom: 1px solid var(--filet); transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; }
.menu-ouvert .menu { transform: none; visibility: visible; transition-delay: 0s; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: inline-block; padding: .2rem 0; font: 2.1rem/1.15 Tungsten, sans-serif; text-transform: uppercase; text-decoration: none; }
.menu li a:hover { opacity: .65; }
.menu li a[aria-current="page"] { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 2px; }
.menu .groupe { margin: 1.5rem 0 .5rem; padding-top: 1.25rem; border-top: 1px solid var(--filet); font-size: .8rem; font-weight: 700; color: var(--gris); }

/* ---------- Hero ---------- */
.hero { position: relative; border-top: 4.5rem solid transparent; background: linear-gradient(rgba(14,14,15,.6), rgba(14,14,15,.15) 7rem, rgba(14,14,15,.55) 70%, var(--noir)), url(../img/banner.png) center / cover; background-origin: border-box; background-clip: border-box; }
.hero--accueil { padding: clamp(2rem, 6vw, 4rem) 0 clamp(7rem, 13vw, 10.5rem); }
.hero--accueil img { width: min(78vw, 30rem); margin: 0 auto; }
.hero--bandeau { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero--bandeau h1 { font-size: clamp(3rem, 8vw, 6rem); }
.hero--bandeau p { max-width: 40rem; margin: 1rem 0 0; color: var(--pierre-douce); }
.hero--ez { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.hero--ez .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero--ez img { width: min(100%, 30rem); margin: 0 auto; }
.hero--ez h1 { font-size: clamp(3rem, 6.5vw, 5.5rem); }
.hero--ez p { max-width: 30rem; margin: 1.25rem 0 1.75rem; font-size: 1.15rem; }
@media (max-width: 760px) {
  .hero--ez .wrap { grid-template-columns: 1fr; }
  .hero--ez img { width: min(70vw, 20rem); }
}

/* ---------- Accueil : le tableau des ventes ---------- */
.ventes { margin-top: clamp(-6rem, -8vw, -3.5rem); position: relative; }
.ventes h2 { font-size: 1rem; font-family: Texte, sans-serif; font-weight: 700; color: var(--pierre-douce); margin-bottom: .9rem; }
.vente { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem clamp(1rem, 3vw, 2.5rem); padding: clamp(1.1rem, 2.4vw, 1.9rem) clamp(1rem, 2.5vw, 2rem); border-top: 1px solid var(--filet); background: var(--noir); color: var(--pierre); text-decoration: none; transition: background-color .2s, color .2s; }
.vente:last-child { border-bottom: 1px solid var(--filet); }
.vente__nom { font: clamp(2.4rem, 5.4vw, 4.5rem)/.9 Tungsten, sans-serif; text-transform: uppercase; }
.vente__type { display: block; margin-bottom: .3rem; font: clamp(1.45rem, 2.4vw, 2rem)/1 Tungsten, sans-serif; letter-spacing: .02em; color: var(--pierre-douce); }
.vente--avenir .vente__type { color: var(--gris); }
.vente__detail { display: block; margin-top: .5rem; font-size: 1rem; color: var(--pierre-douce); }
.vente__detail.vente__note { margin-top: .25rem; }
.vente__statut { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.vente__action { font-weight: 700; white-space: nowrap; padding: .8rem 1.25rem; border: 1px solid currentColor; border-radius: 2px; }
a.vente:hover { background: var(--panneau); }
/* La vente en cours : panneau sombre, liseré de pierre et seul bouton plein de la liste */
.vente--ouverte { background: var(--panneau); box-shadow: inset 4px 0 0 var(--pierre); }
.vente--ouverte .vente__statut::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .5rem; border-radius: 50%; background: var(--pierre); }
.vente--ouverte .vente__action { background: var(--pierre); color: var(--noir); border-color: var(--pierre); }
a.vente--ouverte:hover { background: #222220; }
/* Complet : tampon rouge, seul usage du rouge sur le site */
.vente--complete .vente__statut { color: var(--rouge); border: 2px solid var(--rouge); padding: .2rem .7rem; transform: rotate(-4deg); font: 1.7rem/1 Tungsten, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.vente--avenir { color: var(--gris); }
.vente--avenir .vente__detail { color: var(--gris); }
@media (max-width: 760px) {
  .vente { grid-template-columns: minmax(0, 1fr); }
  .vente__statut { order: -1; justify-self: start; margin-bottom: .35rem; }
  .vente__action { text-align: center; margin-top: .6rem; }
}

.acces { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: clamp(3rem, 7vw, 5.5rem) 0 0; background: var(--filet); border: 1px solid var(--filet); }
.acces a { display: block; padding: clamp(1.5rem, 3.5vw, 2.5rem); background: var(--noir); text-decoration: none; transition: background-color .2s; }
.acces a:hover { background: var(--panneau); }
.acces h3 { font: clamp(2.2rem, 4.5vw, 3.25rem)/1 Tungsten, sans-serif; text-transform: uppercase; margin-bottom: .6rem; }
.acces p { margin: 0; color: var(--pierre-douce); }
@media (max-width: 760px) { .acces { grid-template-columns: 1fr; } }
.officiel { margin: 2.5rem 0 0; color: var(--pierre-douce); max-width: 44rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }
.section > .wrap > h2, .section h2.titre { font-size: clamp(2.4rem, 5vw, 3.75rem); margin-bottom: 1.5rem; }
.etroit > * { max-width: 52rem; }

/* Calendrier : la date est l'information, elle est en grand */
.calendrier { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--filet); }
.calendrier li { padding: 1.25rem 1.25rem 0 0; }
.calendrier li + li { padding-left: 1.25rem; border-left: 1px solid var(--filet); }
.calendrier .date { display: block; font: clamp(2rem, 3.6vw, 3rem)/1 Tungsten, sans-serif; text-transform: uppercase; color: var(--gris); }
.calendrier strong { display: block; margin: .6rem 0 .25rem; font-size: 1.05rem; }
.calendrier li > span:not(.date) { color: var(--pierre-douce); font-size: .95rem; }
.calendrier li.is-current .date { color: var(--pierre); }
@media (max-width: 760px) {
  .calendrier { grid-template-columns: 1fr; border-top: 0; }
  .calendrier li, .calendrier li + li { padding: 1.1rem 0; border-left: 0; border-top: 1px solid var(--filet); }
}

/* Accès du pass */
.pass { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3rem); }
.pass h3 { font-size: 1rem; font-family: Texte, sans-serif; font-weight: 700; margin-bottom: .75rem; }
.pass ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; font: clamp(2.2rem, 4.6vw, 3.5rem)/1.05 Tungsten, sans-serif; text-transform: uppercase; }
.pass .sans { color: var(--gris); }
.pass .sans ul { font-size: clamp(1.6rem, 3vw, 2.25rem); }
/* Page Extreme Zone : encart des scènes. Inclus à gauche (pictos + zones), exclu à droite */
.scenes { padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--filet); background: var(--panneau); }
.scenes h2 { font: clamp(1.9rem, 3.6vw, 2.6rem)/1 Tungsten, sans-serif; text-transform: uppercase; margin-bottom: 1.1rem; }
.scenes h3 { font: 700 1rem/1.3 Texte, sans-serif; margin-bottom: .9rem; }
.scenes__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem clamp(1rem, 3.5vw, 1.75rem); }
.scenes__liste li { display: flex; flex-direction: column; align-items: center; gap: .45rem; font-weight: 700; }
.scenes__liste img { width: clamp(3.5rem, 9vw, 4.5rem); height: auto; }
.scenes__zones { margin: 1.1rem 0 0; font-weight: 700; }
.scenes__non { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--filet); }
.scenes__non h3 { color: var(--pierre-douce); }
.scenes__liste--exclues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .5rem; }
.scenes__liste--exclues li { color: var(--gris); font-weight: 400; text-align: center; }
.scenes__liste--exclues img { width: clamp(3rem, 8vw, 3.75rem); }
@media (min-width: 861px) {
  /* Deux moitiés égales séparées par un filet centré : inclus à gauche, exclu à droite */
  .scenes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scenes__oui { padding-right: clamp(2rem, 5vw, 4rem); }
  .scenes h2 { grid-column: 1 / -1; }
  .scenes__liste { flex-wrap: nowrap; gap: clamp(1.25rem, 2.5vw, 2rem); }
  .scenes__liste img { width: clamp(4.5rem, 6vw, 5.5rem); }
  .scenes__non { margin-top: 0; padding: 0 0 0 clamp(2rem, 5vw, 4rem); border-top: 0; border-left: 1px solid var(--filet); }
  .scenes__liste--exclues { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem 1rem; }
  .scenes__liste--exclues img { width: clamp(3.5rem, 4.6vw, 4.25rem); }
  .scenes__liste--exclues li { font-size: .9rem; line-height: 1.2; white-space: nowrap; }
  /* À gauche : pictos centrés dans la hauteur, zones calées sur le bas des noms de scènes exclues */
  .scenes__oui { display: flex; flex-direction: column; }
  .scenes__oui h3 { margin-bottom: 0; }
  .scenes__oui .scenes__liste { margin-block: auto; padding-block: 1rem; }
  .scenes__zones { margin: 0; line-height: 1.2; }
}
@media (max-width: 760px) { .pass { grid-template-columns: 1fr; } }

/* ---------- Inscription : étape d'information, états, widget ---------- */
.bz-block { margin: 0; }
.bz-title { font: clamp(2.4rem, 5vw, 3.75rem)/.95 Tungsten, sans-serif; text-transform: uppercase; margin: 0 0 1.25rem; }
.bz-gate, .bz-state { border: 1px solid var(--pierre); border-radius: 2px; background: var(--panneau); padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.bz-state p { color: var(--pierre-douce); }
.bz-check { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.bz-check li { padding: .9rem 0; border-top: 1px solid var(--filet); }
.bz-check li:last-child { border-bottom: 1px solid var(--filet); }
.bz-check strong { display: block; }
.bz-check span { color: var(--pierre-douce); }
.bz-ack { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--filet); border-radius: 2px; cursor: pointer; font-weight: 700; }
.bz-ack input { flex: none; width: 1.35rem; height: 1.35rem; margin-top: .15rem; accent-color: var(--pierre); cursor: pointer; }
.bz-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 1rem; padding: 1rem 1.75rem; border: 1px solid var(--pierre); border-radius: 2px; background: var(--pierre); color: var(--noir) !important; font: 700 1rem/1.2 Texte, sans-serif; text-decoration: none; cursor: pointer; }
.bz-cta:hover:not(:disabled) { background: transparent; color: var(--pierre) !important; }
.bz-cta:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 760px) { .bz-cta { width: 100%; } }
.bz-gate__done { display: none; margin: 0; }
.bz-gate.is-open { border: 0; padding: 0; background: none; }
.bz-gate.is-open .bz-gate__form { display: none; }
.bz-gate.is-open .bz-gate__done { display: block; }
.bz-widget { display: none; margin-top: 1.5rem; }
.bz-widget.is-open { display: block; min-height: 70vh; }  /* réserve la place du formulaire pendant son chargement */
.widget { margin-top: 2rem; min-height: 20rem; }
.widget iframe, .bz-widget iframe { max-width: 100%; }

/* ---------- FAQ ---------- */
.bz-faq__group { font: 700 1rem Texte, sans-serif; color: var(--gris); margin: 2.5rem 0 .5rem; }
.bz-faq details { border-top: 1px solid var(--filet); }
.bz-faq details:last-of-type, .bz-faq details:has(+ .bz-faq__group) { border-bottom: 1px solid var(--filet); }
.bz-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 700; }
.bz-faq summary::-webkit-details-marker { display: none; }
.bz-faq summary::after { content: "+"; flex: none; font: 1.75rem/1 Tungsten, sans-serif; color: var(--gris); }
.bz-faq details[open] summary::after { content: "−"; }
.bz-faq .a { padding: 0 2.5rem 1.25rem 0; color: var(--pierre-douce); }
.bz-faq .a p:last-child { margin: 0; }
.bz-contact { margin-top: 2rem; color: var(--pierre-douce); }
.tbc { background: none; color: #FFD24A; border: 1px dashed #FFD24A; padding: 0 .3em; font-weight: 700; }

/* ---------- Barre d'action mobile (page tirage au sort) ---------- */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .75rem var(--gouttiere); background: var(--noir); border-top: 1px solid var(--filet); transform: translateY(110%); transition: transform .25s; }
.barre.is-visible { transform: none; }
.barre .btn { width: 100%; }
@media (min-width: 761px) { .barre { display: none; } }

/* ---------- Pied de page ---------- */
.pied { margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--filet); padding: 2rem 0 2.5rem; font-size: .9rem; color: var(--pierre-douce); }
.pied .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.pied img { height: 1.4rem; width: auto; }
.pied .wrap > a { font-size: .75rem; color: var(--gris); text-decoration: none; }
.pied .wrap > a:hover, .pied .wrap > a:focus-visible { color: var(--pierre-douce); text-decoration: underline; }

@media (max-width: 520px) { .entete__compte { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
