/* 48h Théâtre — feuille de style unique */

:root {
  --paper: #EFEBE2;
  --ink: #141414;
  --orange: #F25C1F;
  --white: #FFFFFF;
  --rule: 4px solid var(--ink);
  --rule-thin: 2px solid var(--ink);
  --gutter: clamp(16px, 4vw, 28px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Arial Narrow", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

img, iframe { display: block; max-width: 100%; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.cond {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* ---------- En-tête ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 28px;
  padding: 18px 0;
  border-bottom: var(--rule);
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; text-decoration: none; line-height: 1; }
.logo img { width: 40px; height: 40px; flex: 0 0 auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav a[aria-current="page"] { text-decoration-thickness: 4px; }

.btn-newsletter {
  background: var(--orange);
  color: var(--ink);
  border: 0;
  padding: 4px 10px;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 15px 24px;
  min-height: 48px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #000; color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: 19px 30px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Titres de section ---------- */

.section { padding: 64px 0 16px; }

.h2 {
  margin: 0;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.9;
}

.lead { margin: 14px 0 0; max-width: 680px; }

/* ---------- Accueil : héros ---------- */

.hero {
  position: relative;
  padding: 32px 0 28px;
  border-bottom: var(--rule);
}

.hero h1 {
  margin: 0;
  font-size: clamp(76px, 25vw, 380px);
  line-height: 0.8;
}

.sticker {
  position: absolute;
  right: 2%;
  top: 48px;
  width: clamp(150px, 17vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(9deg);
  padding: 18px;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 0.95;
}

.tagline {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.25;
  font-weight: 600;
}

/* ---------- Bandeau prochaine édition ---------- */

.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding: 28px 0;
  border-bottom: var(--rule);
}
.next .cond { margin: 0; font-size: 40px; line-height: 1; }
.next p:not(.cond) { margin: 0; flex: 1 1 300px; }
.block-orange + .next { border-bottom: 0; }

/* ---------- Grilles à cases ---------- */

.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 2px;
  margin-top: 32px;
  background: var(--ink);
  border: var(--rule);
}
.cell { background: var(--paper); padding: 20px; }
.cell.is-hot { background: var(--orange); }
.cell .cond { margin: 0; font-size: 42px; line-height: 1; }
.cell p:not(.cond) { margin: 10px 0 0; font-size: 16px; }

.quote { margin: 32px 0 0; max-width: 860px; font-size: clamp(19px, 2vw, 22px); font-weight: 600; }
.quote-by { margin: 8px 0 0; font-size: 15px; }

/* ---------- Vidéos YouTube (chargées au clic) ---------- */

.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Lecteur Plyr, habillé aux couleurs du site */
.yt .plyr {
  height: 100%;
  --plyr-color-main: var(--orange);
  --plyr-font-family: Archivo, "Arial Narrow", Arial, sans-serif;
  --plyr-control-radius: 0;
  --plyr-video-control-color-hover: var(--ink);
  --plyr-range-thumb-background: var(--white);
  --plyr-range-thumb-height: 15px;
  --plyr-range-thumb-shadow: 0 0 0 2px var(--ink);
}
/* Iframe deux fois plus haute que le cadre : le titre et le logo YouTube
   (en haut et en bas) sortent du champ, la vidéo reste centrée. */
.yt .plyr__video-wrapper { overflow: hidden; }
.yt .plyr__video-embed iframe {
  top: -50%;
  height: 200%;
  pointer-events: none;
}
.yt .plyr__control--overlaid {
  border-radius: 0;
  border: 3px solid var(--ink);
  color: var(--ink);
  padding: 22px;
}
.yt-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.yt-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 76'%3E%3Cpath d='M29 22 L55 38 L29 54 Z' fill='%23141414'/%3E%3C/svg%3E") center / 100% no-repeat;
  border: 3px solid var(--ink);
  transition: transform 0.15s;
}
.yt-play:hover::after { transform: translate(-50%, -50%) scale(1.08); }
.yt-play:focus-visible { outline-offset: -6px; }

.video-feature {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.video-feature .yt { flex: 2 1 520px; border: var(--rule); }
.video-side {
  flex: 1 1 260px;
  border: var(--rule);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.video-side .kicker { margin: 0; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.video-side h2, .video-side h3 { margin: 8px 0 0; font-size: clamp(40px, 5vw, 52px); line-height: 0.9; }
.video-side p { margin: 12px 0 0; font-size: 16px; }

/* ---------- Éditions ---------- */

.editions { margin-top: 28px; border-top: var(--rule); }

.edition {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 32px;
  padding: 22px 0;
  border-bottom: var(--rule-thin);
}
.edition-year {
  flex: 0 0 auto;
  min-width: 2.6em;
  font-size: clamp(72px, 11vw, 132px);
  line-height: 0.82;
}
.edition-body { flex: 1 1 300px; }
.edition-body .when { margin: 0; font-weight: 800; font-size: 22px; text-transform: uppercase; }
.edition-body .where { margin: 2px 0 0; }
.edition-link { flex: 0 0 auto; font-weight: 700; text-transform: uppercase; font-size: 15px; }
button.edition-link {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
button.edition-link::after { content: " ↓"; }
button.edition-link[aria-expanded="true"]::after { content: " ↑"; }

/* Vidéo qui se déplie sous une ligne d'édition */
.unfold {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.unfold.is-open { grid-template-rows: 1fr; }
.unfold-inner { overflow: hidden; min-height: 0; }
.unfold-content { padding: 20px 0 24px; border-bottom: var(--rule-thin); }
.unfold-content .yt { max-width: 860px; margin: 0 auto; border: var(--rule); }

.edition.is-next {
  background: var(--orange);
  padding: 22px 20px;
  border-bottom: var(--rule);
  text-decoration: none;
}
.edition.is-next .when, .edition.is-next .where { display: block; }

/* ---------- Règles d'or ---------- */

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin-top: 28px;
}
.rule { border: var(--rule); padding: 22px; }
.rule .cond { margin: 0; font-size: 36px; line-height: 1; }
.rule p:not(.cond) { margin: 10px 0 0; font-size: 16px; }

/* ---------- Bloc orange ---------- */

.block-orange {
  margin-top: 72px;
  background: var(--orange);
  border: var(--rule);
  padding: clamp(24px, 5vw, 56px);
}
.block-orange h2 { margin: 0; font-size: clamp(50px, 9.5vw, 132px); line-height: 0.86; }
.block-orange .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: 28px;
  align-items: flex-end;
}
.block-orange .row p { margin: 0; flex: 1 1 340px; font-size: 20px; font-weight: 500; }

.cta-orange {
  margin-top: 72px;
  background: var(--orange);
  border: var(--rule);
  padding: clamp(22px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cta-orange > div { flex: 1 1 380px; }
.cta-orange .cond { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 0.9; }
.cta-orange p:not(.cond) { margin: 12px 0 0; font-size: 18px; font-weight: 500; }

/* ---------- Tutos ---------- */

.page-hero { position: relative; padding: 32px 0 28px; border-bottom: var(--rule); }
.page-hero .kicker { margin: 0; font-weight: 700; text-transform: uppercase; font-size: 15px; }
.page-hero h1 .kicker { display: block; margin-bottom: 8px; font-stretch: 100%; line-height: 1.5; letter-spacing: 0; }
.page-hero h1 { margin: 8px 0 0; font-size: clamp(72px, 14vw, 200px); line-height: 0.82; }
.page-hero p:last-child { margin: 22px 0 0; max-width: 700px; font-size: clamp(19px, 2vw, 22px); font-weight: 500; }

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin-top: 28px;
}
.video-card { border: var(--rule); background: var(--paper); display: flex; flex-direction: column; }
.video-card .yt { border-bottom: var(--rule); }
.video-card .body { display: flex; gap: 16px; padding: 16px 18px 20px; }
.video-card .num { font-size: 60px; line-height: 0.85; flex: 0 0 auto; }
.video-card h3 { margin: 0; font-size: 21px; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.video-card .meta { margin: 4px 0 0; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.video-card .desc { margin: 6px 0 0; font-size: 16px; }


.toolbox {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  align-items: flex-start;
}
.doc-frame {
  flex: 3 1 480px;
  background: var(--white);
  border: var(--rule);
  box-shadow: 8px 8px 0 var(--ink);
}
.doc-frame iframe { width: 100%; height: min(70vh, 640px); border: 0; }
.doc-frame .doc-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 16px;
  border-top: var(--rule-thin);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.doc-list {
  flex: 2 1 280px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule);
}
.doc-list li { padding: 13px 0; border-bottom: var(--rule-thin); }
.doc-list li:last-child { border-bottom: var(--rule); }
.doc-list a { font-weight: 800; text-transform: uppercase; font-size: 16px; }
.doc-list span { display: block; font-size: 14px; }

/* ---------- Page d'une édition (Lyon 2026) ---------- */

.page-hero .intro { margin: 22px 0 0; max-width: 700px; font-size: clamp(19px, 2vw, 22px); font-weight: 500; }
.hero-actions { margin-top: 26px; }
.page-hero p.fineprint { margin: 12px 0 0; font-size: 14px; font-weight: 700; text-transform: uppercase; }

.facts { margin-top: 28px; }

.kicker { margin: 0; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 0.02em; }

/* Programme : une ligne par jour */
.agenda { list-style: none; margin: 28px 0 0; padding: 0; border-top: var(--rule); }
.agenda li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: var(--rule-thin);
}
.agenda li.is-hot { background: var(--orange); padding: 22px 20px; border-bottom: var(--rule); }
.agenda-day { flex: 0 0 220px; margin: 0; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.agenda-day .cond { display: block; font-size: clamp(52px, 7vw, 76px); line-height: 0.85; }
.agenda-body { flex: 1 1 320px; min-width: 0; }
.agenda-body h3 { margin: 0; font-size: clamp(30px, 3.4vw, 40px); line-height: 0.95; }
.agenda-body p { margin: 8px 0 0; max-width: 640px; }

/* Trois façons de participer, chacune avec son bouton */
.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  margin-top: 28px;
}
.path { display: flex; flex-direction: column; gap: 12px; border: var(--rule); padding: 22px; }
.path.is-hot { background: var(--orange); }
.path h3 { margin: 0; font-size: clamp(36px, 4vw, 46px); line-height: 0.9; }
.path p { margin: 0; font-size: 16px; }
.path .btn { margin-top: auto; align-self: flex-start; }
.path p.path-alt { margin-top: auto; font-size: 15px; overflow-wrap: anywhere; }
.path .path-alt + .btn { margin-top: 0; }

/* Le lieu : affiche + infos pratiques */
.venue { display: flex; flex-wrap: wrap; gap: 32px 48px; margin-top: 28px; align-items: flex-start; }
.poster { flex: 0 1 300px; margin: 0; border: var(--rule); box-shadow: 8px 8px 0 var(--ink); }
.poster img { width: 100%; height: auto; }
.venue-info { flex: 1 1 320px; min-width: 0; display: grid; gap: 30px; align-content: start; }
.venue-info h3 { margin: 0; font-size: clamp(48px, 6vw, 76px); line-height: 0.88; }
.venue-info .address { margin: 10px 0 16px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.venue-info p { margin: 6px 0 0; max-width: 520px; }
.venue-info .kicker + p { margin-top: 4px; }
.venue-info .shows { display: inline-block; padding: 4px 12px; background: var(--orange); font-size: clamp(30px, 3.4vw, 40px); line-height: 1; }
.venue-info .btn { margin-top: 12px; }
.email { font-weight: 800; font-size: 20px; overflow-wrap: anywhere; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 32px; }
.section-head p { margin: 0; font-weight: 700; text-transform: uppercase; font-size: 15px; }

/* Carrousel photo : une pellicule à hauteur fixe, chaque photo garde son format */
.carousel { margin-top: 28px; }
.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding-bottom: 14px;
  scrollbar-color: var(--ink) transparent;
}
.carousel-track:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.carousel-track img {
  flex: 0 0 auto;
  height: clamp(220px, 56vw, 540px);
  width: auto;
  max-width: none;
  border: var(--rule);
  background: var(--ink);
  scroll-snap-align: start;
}
.carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.carousel-btn {
  width: 56px;
  height: 48px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}
.carousel-btn:hover { background: #000; color: var(--white); }
.carousel-btn:disabled { opacity: 0.25; cursor: default; }

/* Bouton d'inscription collé en bas de l'écran (mobile) */
.sticky-cta { display: none; }

/* ---------- Pied de page ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: var(--rule);
  font-size: 15px;
}
.site-footer nav { font-weight: 700; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-header { padding: 14px 0; }
  .logo img { width: 34px; height: 34px; }
  .nav { gap: 4px 16px; font-size: 14px; }
  .hero { padding-top: 24px; }
  .sticker {
    position: static;
    width: 132px;
    margin: 20px 0 0 auto;
    font-size: 21px;
    padding: 12px;
    transform: rotate(-6deg);
  }
  .tagline { margin-top: 8px; }
  .next .cond { font-size: 34px; }
  .next .btn { width: 100%; text-align: center; }
  .section { padding-top: 52px; }
  .cell .cond { font-size: 36px; }
  .edition-year { min-width: 0; }
  .edition.is-next { padding: 20px 16px; }
  .block-orange .btn, .cta-orange .btn { width: 100%; text-align: center; }
  .video-card .num { font-size: 48px; }
  .doc-frame { box-shadow: 5px 5px 0 var(--ink); }
  .doc-frame iframe { height: 60vh; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .agenda-day { flex-basis: 100%; }
  .agenda li.is-hot { padding: 20px 16px; }
  .path .btn { align-self: stretch; text-align: center; }
  .poster { flex-basis: 100%; max-width: 280px; box-shadow: 5px 5px 0 var(--ink); }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--orange);
    border-top: var(--rule);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s 0.25s;
  }
  .sticky-cta.is-visible { transform: none; visibility: visible; transition: transform 0.25s ease; }
  .sticky-cta .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
  .yt-play::after { transition: none; }
  .unfold { transition: none; }
}
