/* =========================================================
   Festival Beauregard 2027 — mini-site billetterie
   Feuille autonome : ne dépend pas de dist/css/styles.css
   ========================================================= */

:root {
  --yellow: #FFF88C;
  --yellow-soft: #FFFCCC;
  --green: #33FF99;
  --coral: #FF6666;
  --ink: #0F0F14;
  --white: #FFFFFF;

  --radius: 22px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Bandeaux : hauteur affichée -> largeur du motif (ratio des tuiles source) */
  --rb-h: clamp(26px, 3vw, 44px);           /* bande noire  579 x 57 */
  --rb-w: calc(var(--rb-h) * 579 / 57);
  --rg-h: clamp(46px, 5.2vw, 76px);         /* bande verte  236 x 92 */
  --rg-w: calc(var(--rg-h) * 236 / 92);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: TypoMain, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

/* ---------- Bandeaux défilants ---------- */
.ribbon { position: relative; overflow: hidden; background: var(--ink); }
.ribbon__row { position: relative; overflow: hidden; }
.ribbon__row::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  background-repeat: repeat-x;
  background-size: auto 100%;
  will-change: transform;
}
.ribbon__row--black { height: var(--rb-h); background: #000; }
.ribbon__row--black::before {
  background-image: url(../img/ribbon-black.png);
  width: calc(100% + var(--rb-w));
  animation: ribbon-black 38s linear infinite;
}
.ribbon__row--green { height: var(--rg-h); background: var(--green); }
.ribbon__row--green::before {
  background-image: url(../img/ribbon-green.png);
  width: calc(100% + var(--rg-w));
  animation: ribbon-green 14s linear infinite;
}
.ribbon--reverse .ribbon__row::before { animation-direction: reverse; }

@keyframes ribbon-black { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--rb-w))); } }
@keyframes ribbon-green { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--rg-w))); } }

@media (prefers-reduced-motion: reduce) {
  .ribbon__row::before { animation: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--yellow) url(../img/hero-bg.jpg) center / cover no-repeat;
  min-height: clamp(260px, 40vh, 460px);
  display: flex;
  align-items: center;
  padding: clamp(28px, 3.2vw, 48px) 0;
}
.hero__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(20px, 3vw, 32px);
  text-align: center;
}
.hero__logo { width: min(620px, 100%, 64vh); }
.hero__meta {
  margin: 0;
  font-family: TypoTitle, TypoMain, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__meta span { white-space: nowrap; }
.hero__meta .dot { color: var(--coral); margin: 0 .5em; }

@media (max-width: 759px) { .hero { min-height: 0; } }

/* ---------- Bouton ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 26px 8px 8px;
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: TypoTitle, TypoMain, sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn__icon {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

/* ---------- Intro ---------- */
.intro { padding: clamp(28px, 3.2vw, 48px) 0 clamp(20px, 2.4vw, 32px); text-align: center; }
.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-family: TypoTitle, TypoMain, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: TypoTitle, TypoMain, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}
.intro__title { font-size: clamp(28px, 4vw, 48px); text-transform: uppercase; }
.intro__title em { font-style: normal; background: linear-gradient(transparent 58%, var(--green) 58%, var(--green) 92%, transparent 92%); padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.intro__lead {
  max-width: 860px;
  margin: 12px auto 0;
  font-size: clamp(16px, 1.6vw, 18px);
}


/* ---------- Billetterie + infos ---------- */
.tickets { padding: 0 0 clamp(56px, 7vw, 96px); scroll-margin-top: 16px; }
.tickets__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}
.tickets__panel { width: 100%; max-width: 860px; margin: 0 auto; }
.tickets__panel {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--green);
  overflow: hidden;
}
.tickets__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px clamp(16px, 2.4vw, 28px);
  background: var(--ink);
  color: var(--yellow);
}
.tickets__head h2 { font-size: clamp(22px, 2.4vw, 28px); text-transform: uppercase; }
.tickets__head p { margin: 0 0 0 auto; font-size: 14px; color: rgba(255,255,255,.7); }
@media (max-width: 559px) { .tickets__head p { display: none; } }
.tickets__body { padding: clamp(8px, 2vw, 24px); min-height: 480px; }
.tickets__body iframe { display: block; width: 100% !important; border: 0; }
.tickets__fallback { display: inline-block; margin: 16px; font-weight: 700; }

.infos { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: clamp(16px, 3vw, 32px); }
.infos { max-width: 860px; margin-left: auto; margin-right: auto; }
@media (min-width: 700px) {
  .infos { display: block; column-count: 2; column-gap: 16px; }
  .infos .card { break-inside: avoid; margin-bottom: 16px; display: inline-block; width: 100%; }
}
.card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.card--yellow { background: var(--yellow); }
.card--green { background: var(--green); }
.card h2 {
  font-size: 17px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.card h2::before {
  content: ""; flex: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
}
.card p { margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }
.card strong { font-family: TypoTitle, TypoMain, sans-serif; font-weight: 700; }

.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 7px 0;
  border-bottom: 2px dashed rgba(15, 15, 20, .22);
}
.schedule li:last-child { border-bottom: 0; padding-bottom: 0; }
.schedule li:first-child { padding-top: 0; }
.schedule .day { font-family: TypoTitle, TypoMain, sans-serif; font-weight: 700; }
.schedule .time {
  flex: none; padding: 1px 9px; border-radius: 999px;
  background: var(--ink); color: var(--green);
  font-family: TypoTitle, TypoMain, sans-serif; font-weight: 700; font-size: 13px;
  white-space: nowrap;
}
.checklist { list-style: none; margin: 0 0 10px; padding: 0; }
.checklist li { position: relative; padding-left: 24px; margin-bottom: 4px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230F0F14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border: 2px solid var(--ink);
}
.note { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: rgba(15, 15, 20, .07); }

/* ---------- Bande JOHN ---------- */
.john { background: var(--white); line-height: 0; }
.john img { width: 100%; aspect-ratio: 1800 / 474; max-height: clamp(110px, 13vw, 220px); object-fit: cover; object-position: center 70%; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  padding: 28px 0;
}
.footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
@media (min-width: 760px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--green); text-decoration: underline; }

/* ---------- CTA flottant mobile ---------- */
.floating-cta {
  position: fixed;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  z-index: 50;
  transition: transform .25s ease;
}
.floating-cta.is-visible { transform: translate(-50%, 0); }
.floating-cta .btn { box-shadow: 4px 4px 0 var(--ink), 0 10px 30px rgba(0,0,0,.25); }
@media (min-width: 760px) {
  .floating-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta, .btn { transition: none; }
}
