/*
 * Billetterie FIMIKA, deuxième édition.
 * Palette reprise du système de marque actuel d'ik-fashionhouse.com
 * (logo version encre #1C2748, indigo, corail, sauge, ivoire) : rupture nette
 * avec le crème / terracotta de l'édition précédente, sans sortir de la marque.
 * Une seule famille (Archivo) ; le contraste vient de l'axe de largeur :
 * très condensé pour l'affiche, largeur normale pour la lecture.
 */

:root {
  --indigo: #1C2748;
  --indigo-deep: #121A33;
  --indigo-mid: #3C5896;
  --ivory: #F5F1E8;
  --paper: #FBF8F1;
  --sand: #ECE5D6;
  --coral: #E58A55;
  --sage: #94A878;
  --text: #2C2A24;
  --muted: #5C564C;
  --line: #DDD5C5;
  --line-dark: rgba(245, 241, 232, .18);

  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--coral); color: var(--indigo-deep); padding: 10px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */

.display-md {
  font-stretch: 72%;
  font-weight: 760;
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--indigo);
  text-wrap: balance;
}
.display-sm {
  font-stretch: 75%;
  font-weight: 720;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.02;
  color: var(--indigo);
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 60ch; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--indigo); color: var(--ivory);
  border: 1.5px solid transparent; border-radius: 3px;
  font-weight: 650; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--indigo-deep); }
.btn:active { transform: translateY(1px); }
.btn-coral { background: var(--coral); color: var(--indigo-deep); }
.btn-coral:hover { background: #EE9B69; }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--line-dark); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn.is-static, .btn:disabled { cursor: default; opacity: .6; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; border-radius: 3px; }
.icon-btn:hover { background: rgba(28, 39, 72, .07); }

/* ---------- Barre de navigation ---------- */

.bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding-inline: var(--gutter);
  color: var(--ivory);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.bar.is-solid { background: var(--indigo-deep); }
.bar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-stretch: 75%; font-weight: 750; font-size: 1.3rem; letter-spacing: .01em; }
.bar-nav { display: none; gap: 28px; margin-left: auto; font-size: .95rem; }
.bar-nav a { text-decoration: none; opacity: .82; padding-block: 6px; border-bottom: 1px solid transparent; }
.bar-nav a:hover { opacity: 1; border-bottom-color: currentColor; }
.bar-cta { margin-left: auto; min-height: 42px; padding: 8px 18px; }
@media (min-width: 960px) {
  .bar-nav { display: flex; }
  .bar-cta { margin-left: 8px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  gap: 36px;
  min-height: 100svh;
  padding: 104px var(--gutter) 40px;
  background: var(--indigo);
  color: var(--ivory);
  overflow: hidden;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 2; }
.hero-kicker { font-size: .98rem; color: var(--sage); max-width: 34ch; }
.hero-title {
  font-stretch: 62%;
  font-weight: 860;
  font-size: clamp(5.6rem, 27vw, 15.5rem);
  line-height: .8;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-left: -.04em;
}
.hero-line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-line > span { display: block; }
.hero-date {
  font-stretch: 62%;
  font-weight: 760;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: .9;
  color: var(--coral);
  letter-spacing: .01em;
}
.hero-headline { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 450; max-width: 30ch; }

.hero-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.hero-facts > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-dark); }
.hero-facts > div:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.hero-facts > div:nth-child(even) { padding-left: 16px; }
.hero-facts dt { font-size: .82rem; color: rgba(245, 241, 232, .62); }
.hero-facts dd { font-weight: 620; font-size: 1.02rem; line-height: 1.3; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.countdown { display: flex; gap: 14px; font-size: .86rem; color: rgba(245, 241, 232, .7); }
.countdown b { display: block; font-stretch: 70%; font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--ivory); font-variant-numeric: tabular-nums; }

/* La chaîne : six bandes verticales, comme les fils tendus d'un métier à tisser. */
.warp {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  height: min(118vw, 560px);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: 6px;
}
.warp-strip { position: relative; overflow: hidden; background: var(--indigo-deep); }
.warp-strip:nth-child(odd) { margin-top: 9%; }
.warp-strip:nth-child(even) { margin-bottom: 9%; }
.warp-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.warp-strip:nth-child(3n+2) img { object-position: 50% 18%; }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    gap: 56px;
    padding-top: 112px;
    padding-bottom: 48px;
  }
  .hero-title { font-size: clamp(8rem, 13.4vw, 15.5rem); }
  .warp { height: calc(100svh - 160px); min-height: 560px; max-height: 860px; margin: 0; padding: 0; gap: 8px; }
}

/* ---------- Édition ---------- */

.edition { padding-block: clamp(72px, 10vw, 140px); }
.edition-grid { display: grid; gap: 40px; }
.edition-body { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .edition-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .edition-grid > h2 { position: sticky; top: 108px; }
}

.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .86rem; color: var(--muted); }
.facts dd { font-weight: 600; color: var(--indigo); }
.facts a { color: var(--indigo-mid); text-underline-offset: 3px; }
@media (min-width: 640px) {
  .facts > div { grid-template-columns: 200px 1fr; gap: 24px; }
  .facts-tight > div { grid-template-columns: 120px 1fr; }
}

/* ---------- En-têtes de section ---------- */

.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { max-width: 56ch; color: var(--muted); }
.section-head-light .display-md { color: var(--ivory); }
.section-head-light p { color: rgba(245, 241, 232, .74); }
@media (min-width: 960px) {
  .section-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: end; }
}

/* ---------- Programme ---------- */

.program { background: var(--sand); padding-block: clamp(72px, 10vw, 130px); }
.timeline { border-top: 1.5px solid var(--indigo); }
.timeline-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 4px 20px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.timeline-row time { grid-row: span 2; font-stretch: 65%; font-weight: 760; font-size: 2rem; line-height: 1; color: var(--indigo); font-variant-numeric: tabular-nums; }
.timeline-row h3 { font-size: 1.15rem; font-weight: 680; color: var(--indigo); }
.timeline-row p { color: var(--muted); }
@media (min-width: 960px) {
  .timeline-row { grid-template-columns: 160px minmax(0, 4fr) minmax(0, 6fr); align-items: baseline; padding-block: 26px; }
  .timeline-row time { grid-row: auto; font-size: 2.6rem; }
  .timeline-row h3 { font-size: 1.35rem; }
}

/* ---------- Pass : étiquettes tissées ---------- */

.passes { background: var(--indigo); color: var(--ivory); padding-block: clamp(72px, 10vw, 140px); }
.notice { margin-bottom: 32px; padding: 16px 18px; border: 1px solid var(--line-dark); }
.notice a { color: var(--coral); }

.label-row { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .label-row { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.label {
  --label-bg: var(--sage); --label-fg: var(--indigo-deep);
  position: relative;
  padding: 9px;
  background: var(--label-bg); color: var(--label-fg);
  /* Coins rabattus d'une étiquette cousue */
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
}
.label-terracotta { --label-bg: var(--coral); }
.label-ink { --label-bg: var(--ivory); --label-fg: var(--indigo); }
.label-stitch {
  display: flex; flex-direction: column; gap: 22px;
  height: 100%;
  padding: 30px 24px 24px;
  border: 1.5px dashed color-mix(in srgb, var(--label-fg) 45%, transparent);
}
.label-head h3 { font-stretch: 70%; font-weight: 780; font-size: 2rem; line-height: 1; }
.label-head p { margin-top: 6px; font-size: .95rem; opacity: .8; }
.label-price { font-weight: 600; font-size: 1rem; }
.label-price span { font-stretch: 62%; font-weight: 820; font-size: 4.4rem; line-height: .9; letter-spacing: -.01em; margin-right: 4px; font-variant-numeric: tabular-nums; }
.label-perks { display: grid; gap: 9px; align-content: start; border-top: 1px solid color-mix(in srgb, var(--label-fg) 22%, transparent); padding-top: 18px; flex: 1; }
.label-perks li { position: relative; padding-left: 22px; font-size: .98rem; line-height: 1.4; }
.label-perks li::before { content: ""; position: absolute; left: 0; top: .66em; width: 12px; height: 1.5px; background: currentColor; }
.label-foot { display: grid; gap: 10px; }
.label-foot .btn { background: var(--indigo); color: var(--ivory); }
.label-foot .btn:hover { background: var(--indigo-deep); }
.label-stock { font-size: .86rem; opacity: .78; text-align: center; }
@media (min-width: 900px) {
  .label { min-height: 560px; display: flex; flex-direction: column; }
  .label-stitch { flex: 1; }
  .label.is-featured { margin-top: -18px; min-height: 596px; }
}

.steps { counter-reset: step; display: grid; gap: 0; margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line-dark); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding-block: 20px; border-bottom: 1px solid var(--line-dark); }
.steps li::before { content: counter(step); grid-row: span 2; font-stretch: 62%; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--coral); }
.steps b { font-weight: 680; }
.steps span { color: rgba(245, 241, 232, .74); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-dark); }
  .steps li { border-bottom: 0; padding: 26px 28px 26px 0; }
  .steps li + li { border-left: 1px solid var(--line-dark); padding-left: 28px; }
}

/* ---------- Galerie ---------- */

.lookbook { padding-block: clamp(72px, 10vw, 130px); overflow: hidden; }
.reel {
  display: flex; gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  cursor: grab;
}
.reel::-webkit-scrollbar { display: none; }
.reel::before, .reel::after { content: ""; flex: 0 0 1px; }
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel-item { flex: 0 0 clamp(220px, 27vw, 380px); scroll-snap-align: start; }
.reel-item picture { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand); }
.reel-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .8s var(--ease); pointer-events: none; }
.reel-item:hover img { transform: scale(1.03); }
.reel-item figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ---------- Infos & FAQ ---------- */

.infos { background: var(--paper); padding-block: clamp(72px, 10vw, 130px); border-top: 1px solid var(--line); }
.infos-grid { display: grid; gap: 64px; }
.infos-grid > div:first-child { display: grid; gap: 28px; align-content: start; }
.infos-grid .btn { justify-self: start; }
@media (min-width: 960px) { .infos-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }

.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1.5px solid var(--indigo); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 18px;
  padding-block: 18px; font-weight: 640; color: var(--indigo);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 14px; height: 14px; margin-top: 6px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 20px 0; color: var(--muted); max-width: 62ch; }

/* ---------- Pied de page ---------- */

.foot { background: var(--indigo-deep); color: var(--ivory); padding-top: 64px; }
.foot-grid { display: grid; gap: 36px; padding-bottom: 48px; }
.foot-brand { display: flex; gap: 18px; align-items: center; }
.foot-brand p { color: rgba(245, 241, 232, .74); line-height: 1.5; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: center; }
.foot-links a { text-decoration: none; opacity: .82; }
.foot-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: .86rem; color: rgba(245, 241, 232, .55); }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-links { justify-content: flex-end; } }

/* ---------- Tiroir de commande ---------- */

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(18, 26, 51, .62); }
.drawer-panel {
  position: absolute; inset: 0 0 0 auto;
  display: flex; flex-direction: column;
  width: min(500px, 100%);
  background: var(--paper); color: var(--text);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-stretch: 72%; font-weight: 760; font-size: 1.8rem; color: var(--indigo); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px; display: grid; gap: 20px; align-content: start; }
.drawer-foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 12px; }

.tier-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tier-pick legend, .qty > span, .field > span { font-weight: 620; color: var(--indigo); margin-bottom: 8px; font-size: .96rem; }
.tier-option {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px 15px 46px; border: 1.5px solid var(--line); border-radius: 3px; cursor: pointer; background: #fff;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.tier-option input { position: absolute; opacity: 0; }
.tier-option::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1.5px solid var(--muted); border-radius: 50%; }
.tier-option:has(input:checked) { border-color: var(--indigo); background: #F1EFEA; }
.tier-option:has(input:checked)::before { border: 5.5px solid var(--indigo); }
.tier-option:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }
.tier-option.is-disabled { opacity: .45; cursor: not-allowed; }
.tier-name { font-weight: 640; }
.tier-price { font-variant-numeric: tabular-nums; color: var(--muted); }

.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty > span { margin: 0; }
.qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 3px; background: #fff; }
.qty-ctrl button { width: 46px; height: 46px; border: 0; background: none; color: var(--indigo); cursor: pointer; display: grid; place-items: center; }
.qty-ctrl button:hover { background: #F1EFEA; }
.qty-ctrl input { width: 48px; height: 46px; border: 0; border-inline: 1.5px solid var(--line); text-align: center; font: inherit; font-weight: 700; color: var(--indigo); -moz-appearance: textfield; }
.qty-ctrl input::-webkit-inner-spin-button, .qty-ctrl input::-webkit-outer-spin-button { -webkit-appearance: none; }

.field { display: grid; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input {
  height: 50px; padding: 0 14px; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: 3px;
  transition: border-color .2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(60, 88, 150, .18); }
.field input[aria-invalid="true"] { border-color: #B4442C; }
.field small { margin-top: 6px; font-size: .84rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--indigo); }
.form-error[hidden], .field-error[hidden] { display: none; }
.field-error { color: #9A2F1A !important; font-weight: 600; }
.check-terms { font-size: .84rem; line-height: 1.4; }
.check-terms.is-invalid span { color: #9A2F1A; font-weight: 600; }
.form-error { padding: 12px 14px; background: #F8E4DC; color: #8A3320; border-left: 3px solid #B4442C; font-size: .94rem; }

.summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary span { color: var(--muted); font-size: .94rem; }
.summary strong { font-stretch: 70%; font-weight: 780; font-size: 1.9rem; color: var(--indigo); font-variant-numeric: tabular-nums; }
.secure { font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- Pages secondaires (pass, retrouver, paiement) ---------- */

.page-plain { background: var(--indigo); color: var(--ivory); min-height: 100svh; }
.page-plain .bar { background: var(--indigo-deep); }
.plain-main { padding: 112px var(--gutter) 72px; max-width: 1180px; margin: 0 auto; }
.plain-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.plain-head h1 { font-stretch: 66%; font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: .95; }
.plain-head p { color: rgba(245, 241, 232, .78); font-size: 1.06rem; }
.plain-card { background: var(--paper); color: var(--text); padding: clamp(22px, 4vw, 36px); max-width: 560px; }
.plain-card .field > span, .plain-card h2 { color: var(--indigo); }
.plain-card form { display: grid; gap: 18px; }

.state { display: grid; gap: 18px; max-width: 620px; }
.state .btn { justify-self: start; }
.state-title { font-stretch: 66%; font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .95; }
.state p { color: rgba(245, 241, 232, .8); font-size: 1.06rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--line-dark); border-top-color: var(--coral); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page des pass (confirmation) ---------- */

.page-pass { background: var(--sand); color: var(--text); }
.page-pass .bar { background: var(--indigo-deep); }
.conf { display: grid; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 108px var(--gutter) 80px; }
@media (min-width: 1000px) {
  .conf { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; padding-top: 128px; }
  .conf-side { position: sticky; top: 100px; }
}
.conf-side { display: grid; gap: 26px; align-content: start; }
/* Mobile : les pass passent juste après les boutons, le reçu et les conseils ensuite */
@media (max-width: 999px) {
  .conf { gap: 24px; }
  .conf-side { display: contents; }
  .conf-side > * { order: 1; }
  .conf-tickets { order: 2; margin-block: 8px; }
  .conf-side > .receipt, .conf-side > .conf-steps { order: 3; }
}
.conf-status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 7px 14px 7px 8px; background: #DDE6D3; color: #2F5133; font-weight: 650; font-size: .92rem; border-radius: 999px; }
.conf-status svg { flex: none; }
.conf-title { font-stretch: 68%; font-weight: 800; font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: .96; color: var(--indigo); text-wrap: balance; }
.conf-lead { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.conf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.conf-actions .btn-outline { background: transparent; }

.receipt { background: var(--paper); border: 1px solid var(--line); }
.receipt > div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.receipt > div:last-child { border-bottom: 0; }
.receipt dt { color: var(--muted); font-size: .92rem; }
.receipt dd { font-weight: 640; color: var(--indigo); text-align: right; font-variant-numeric: tabular-nums; }
.receipt .is-total dd { font-stretch: 72%; font-weight: 780; font-size: 1.35rem; }

.conf-steps { counter-reset: s; display: grid; gap: 0; border-top: 1.5px solid var(--indigo); }
.conf-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.conf-steps li::before { content: counter(s); grid-row: span 2; font-stretch: 62%; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--coral); }
.conf-steps b { color: var(--indigo); font-weight: 650; }

.conf-tickets { display: grid; gap: 28px; justify-items: center; }
.demo-note { justify-self: stretch; padding: 10px 14px; background: #F3E2D3; color: #6B3A1C; font-size: .9rem; border-left: 3px solid var(--coral); }

/* ---------- Le pass ---------- */

.tk {
  --tone: var(--sage);
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--paper); color: var(--indigo);
  box-shadow: 0 1px 0 rgba(18, 26, 51, .06), 0 24px 48px -28px rgba(18, 26, 51, .45);
}
.tk.tone-terracotta { --tone: var(--coral); }
.tk.tone-ink { --tone: var(--indigo-mid); }
/* Lisière de couleur sur le bord gauche : repère de catégorie visible de loin à l'entrée */
.tk::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--tone); }

.tk-top { background: var(--indigo-deep); color: var(--ivory); padding: 22px 26px 26px 34px; display: grid; gap: 20px; }
.tk-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .82rem; color: rgba(245, 241, 232, .7); }
.tk-brand span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.tk-event { font-stretch: 62%; font-weight: 860; font-size: 4.4rem; line-height: .82; letter-spacing: -.01em; text-transform: uppercase; }
.tk-edition { margin-top: 8px; color: rgba(245, 241, 232, .78); font-size: .98rem; }

.tk-tier { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 26px 16px 34px; border-bottom: 1px solid var(--line); }
.tk-tier b { font-stretch: 72%; font-weight: 780; font-size: 1.7rem; line-height: 1; }
.tk-tier span { font-size: .86rem; color: var(--muted); }

.tk-info { display: grid; grid-template-columns: 1fr 1fr; padding: 4px 26px 6px 34px; }
.tk-info > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tk-info .col-r { padding-left: 16px; border-left: 1px solid var(--line); }
.tk-info .wide { grid-column: 1 / -1; }
.tk-info dt { font-size: .76rem; color: var(--muted); }
.tk-info dd { font-weight: 650; font-size: 1.02rem; line-height: 1.3; margin-top: 2px; }
.tk-info .holder dd { font-size: 1.25rem; }

.tk-perf { position: relative; height: 34px; }
.tk-perf::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--line); }
.tk-perf i { position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--sand); }
.tk-perf i:first-child { left: -13px; }
.tk-perf i:last-child { right: -13px; }

.tk-stub { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 6px 26px 22px 34px; }
.tk-stub .qr { width: 168px; height: 168px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.tk-stub .qr svg { display: block; width: 100%; height: 100%; }
.tk-code { display: grid; gap: 3px; }
.tk-code span { font-size: .76rem; color: var(--muted); }
.tk-code b { font-weight: 780; font-size: 1.35rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.tk-code em { font-style: normal; font-weight: 600; font-size: .92rem; }
.tk-rule { padding: 12px 26px 14px 34px; background: var(--ivory); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 420px) {
  .tk-stub { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tk-stub .qr { width: 210px; height: 210px; }
  .tk-event { font-size: 3.6rem; }
}

.tk-actions { display: flex; gap: 10px; width: 100%; max-width: 440px; margin-top: -14px; }
.tk-actions .btn { flex: 1; min-height: 46px; font-size: .95rem; }
.tk.is-used .qr, .tk.is-cancelled .qr { opacity: .15; }
.qr-wrap { position: relative; }
.tk-stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); white-space: nowrap; font-size: .95rem;
  padding: 8px 16px; border: 2px solid #A33A22; color: #A33A22; background: var(--paper); font-weight: 800; letter-spacing: .04em;
}

.demo-banner { background: var(--coral); color: var(--indigo-deep); padding: 12px 16px; font-weight: 600; margin-bottom: 24px; max-width: 560px; }
.demo-recap { display: grid; gap: 6px; margin-bottom: 22px; }
.demo-recap strong { font-stretch: 70%; font-size: 2.4rem; color: var(--indigo); line-height: 1; }

/* ---------- Mouvement ---------- */

.js [data-hero-fade] { opacity: 0; }
.js [data-hero-line] > span { transform: translateY(105%); }
.js .warp-strip { clip-path: inset(100% 0 0 0); }
.js .warp-strip:nth-child(even) { clip-path: inset(0 0 100% 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-hero-fade] { opacity: 1; }
  .js [data-hero-line] > span { transform: none; }
  .js .warp-strip, .js .warp-strip:nth-child(even) { clip-path: none; }
}

@media print {
  .bar, .foot, .conf-side, .tk-actions, .demo-note { display: none !important; }
  .page-pass, .conf { background: #fff; padding: 0; display: block; }
  .tk { box-shadow: none; border: 1px solid #ccc; margin: 0 auto 24px; break-inside: avoid; }
  .tk-perf i { background: #fff; }
  .page-plain { background: #fff; }
  .plain-main { padding: 0; }
}
