/* =========================================================
   GOSSE — Design system « Nuit bleue & lumière orange »
   ========================================================= */
:root {
  --night-0: #020822;
  --night-1: #040d33;
  --night-2: #08164a;
  --night-3: #0e2166;
  --electric: #2f6bff;
  --electric-2: #1b46d8;
  --sun: #ffc21a;
  --orange: #ff8a00;
  --fire: #ff4d0a;
  --brand: linear-gradient(135deg, #ffcf2a 0%, #ff8a00 52%, #ff4d0a 100%);
  --brand-soft: linear-gradient(135deg, rgba(255, 194, 26, .18), rgba(255, 77, 10, .14));

  --bg: var(--night-0);
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --surface-solid: #0a1640;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f6ff;
  --muted: #a3acd4;
  --dim: #6f79a8;

  --ok: #22d488; --ok-bg: rgba(34, 212, 136, .14);
  --warn: #ffb020; --warn-bg: rgba(255, 176, 32, .15);
  --bad: #ff4d6a; --bad-bg: rgba(255, 77, 106, .14);
  --info: #5b9dff; --info-bg: rgba(91, 157, 255, .15);

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --glow: 0 10px 40px -10px rgba(255, 122, 0, .55);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --max: 1240px;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(47, 107, 255, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(27, 70, 216, .22), transparent 60%),
    radial-gradient(800px 500px at 60% 110%, rgba(255, 122, 0, .12), transparent 60%),
    var(--bg);
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--orange); color: #111; }
.i { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .02em; }
.hand { font-family: var(--hand); }
.grad-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt { margin-top: 16px; } .mt-l { margin-top: 32px; } .mb { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--b); font-weight: 700; font-size: 14.5px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s; white-space: nowrap; user-select: none;
}
.btn:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--brand); border: 0; color: #1a0d00; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: 0 14px 44px -8px rgba(255, 122, 0, .75); }
.btn-blue { background: linear-gradient(135deg, #3b7bff, #1b46d8); border: 0; box-shadow: 0 10px 30px -10px rgba(47, 107, 255, .8); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--bad); border: 0; color: #fff; }
.btn-ok { background: var(--ok); border: 0; color: #002914; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line);
  background: var(--surface); transition: .2s; position: relative; flex: none;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--fire); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--night-0); }
.link { color: var(--sun); font-weight: 600; }
.link:hover { text-decoration: underline; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Champs ---------- */
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(2, 8, 34, .55);
  color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3acd4' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select.input option { background: var(--night-2); }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 0, .16); }
.input::placeholder { color: var(--dim); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-mute { background: var(--surface-2); color: var(--muted); }
.badge-brand { background: var(--brand); color: #1a0d00; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); font-weight: 600; font-size: 14px; transition: .2s; white-space: nowrap; cursor: pointer;
}
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--brand); color: #1a0d00; border-color: transparent; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--electric); color: #fff; }
.verified .i { width: 12px; height: 12px; stroke-width: 3; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; backdrop-filter: blur(6px); }
.card-tight { padding: 16px; }
.card h3 { font-size: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- Header ---------- */
.announce { background: var(--brand); color: #1a0d00; font-weight: 700; font-size: 13px; text-align: center; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 40; height: var(--header-h); backdrop-filter: blur(18px) saturate(1.3); background: rgba(2, 8, 34, .72); border-bottom: 1px solid var(--line); }
.header .container { height: 100%; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 38px; width: auto; filter: drop-shadow(0 4px 14px rgba(255, 122, 0, .45)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: .01em; line-height: 1; }
.logo-word b { color: var(--orange); font-weight: 700; }
.logo-tag { font-family: var(--hand); color: var(--orange); font-size: 13px; display: block; margin-top: -2px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); font-size: 14.5px; transition: .2s; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--surface-2); }
.header-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.header-search .input { height: 42px; border-radius: 999px; padding-left: 42px; background: var(--surface); }
.header-search .i { position: absolute; left: 15px; top: 11px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search + .header-actions { margin-left: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #1a0d00; display: grid; place-items: center; font-weight: 800; font-size: 14px; border: 0; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: .18s; z-index: 50; }
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; background: none; border: 0; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.burger { display: none; }
@media (max-width: 980px) {
  .nav, .header-search { display: none; }
  .burger { display: inline-grid; }
  .logo-tag { display: none; }
}
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: rgba(2, 8, 34, .97); backdrop-filter: blur(10px); padding: 24px; display: flex; flex-direction: column; gap: 6px; transform: translateX(100%); transition: .3s; }
.mobile-nav.open { transform: none; }
.mobile-nav a { font-family: var(--display); font-size: 26px; padding: 10px 4px; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.hero-kicker b { background: var(--brand); color: #1a0d00; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(40px, 5vw, 66px); margin-top: 20px; letter-spacing: -.02em; }
.hero h1 .line2 { display: block; }
.hero .tagline { font-family: var(--hand); color: var(--orange); font-size: clamp(24px, 3vw, 34px); margin-top: 10px; display: inline-block; position: relative; transform: rotate(-3deg); }
.hero .tagline svg { position: absolute; left: 10%; bottom: -12px; width: 80%; height: 14px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-top: 22px; }
.searchbar { margin-top: 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 6px; padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-width: 640px; backdrop-filter: blur(10px); }
.searchbar .seg { position: relative; display: flex; align-items: center; }
.searchbar .seg .i { position: absolute; left: 14px; color: var(--orange); pointer-events: none; }
.searchbar .input { border: 0; background: transparent; padding-left: 42px; height: 52px; }
.searchbar .input:focus { box-shadow: none; background: rgba(255, 255, 255, .05); }
.searchbar .seg + .seg { border-left: 1px solid var(--line); }
.searchbar .btn { height: 52px; border-radius: 16px; }
@media (max-width: 760px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .seg:first-child { grid-column: 1 / -1; }
  .searchbar .seg + .seg { border-left: 0; }
  .searchbar .btn { grid-column: 1 / -1; }
}
.hero-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats b { font-family: var(--display); font-size: 30px; display: block; line-height: 1; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; perspective: 1400px; min-height: 420px; }
.hero-ticket { position: relative; transform: rotateY(-14deg) rotateX(8deg) rotateZ(-4deg); transform-style: preserve-3d; transition: transform .25s ease-out; animation: float 7s ease-in-out infinite; }
.hero-ticket img { width: 100%; border-radius: 28px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.hero-ticket::after { content: ''; position: absolute; inset: 0; border-radius: 28px; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%); background-size: 250% 100%; animation: shine 6s ease-in-out infinite; pointer-events: none; mix-blend-mode: overlay; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes shine { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -40% 0; } }
.hero-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 0, .38), transparent 65%); right: -80px; top: -40px; filter: blur(20px); z-index: -1; }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 18px; background: rgba(8, 22, 74, .82); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; animation: float 6s ease-in-out infinite; }
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.float-card.a { left: -20px; bottom: 30px; animation-delay: -2s; }
.float-card.b { right: 0; top: -10px; animation-delay: -4s; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 10px; }
  .float-card.a { left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head .hand { color: var(--orange); font-size: 20px; display: block; margin-bottom: 2px; }
.cat-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.cat-tile {
  position: relative; display: grid; gap: 10px; justify-items: center; padding: 22px 10px 18px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); text-align: center; font-weight: 700; font-size: 14px; overflow: hidden; transition: .25s;
}
.cat-tile .emo { font-size: 34px; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); filter: drop-shadow(0 6px 12px rgba(255, 138, 0, .35)); }
.cat-tile:hover { transform: translateY(-4px); border-color: rgba(255, 138, 0, .5); background: var(--brand-soft); }
.cat-tile:hover .emo { transform: scale(1.2) rotate(-8deg); }
.cat-tile small { color: var(--dim); font-weight: 600; font-size: 12px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cartes événement ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.ev-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.ev-row::-webkit-scrollbar { display: none; }
.ev-row > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .ev-row { grid-auto-columns: calc((100% - 60px) / 4); } }
.ev-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
.ev-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 138, 0, .35); }
.ev-card .poster { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-2); }
.ev-card .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ev-card:hover .poster img { transform: scale(1.06); }
.ev-card .poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2, 8, 34, .9)); }
.ev-card .flags { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; z-index: 2; }
.ev-card .fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; background: rgba(2, 8, 34, .55); backdrop-filter: blur(8px); }
.ev-card .fav.on { color: var(--fire); }
.ev-card .fav.on .i { fill: currentColor; }
.ev-card .body { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; }
.ev-card .when { font-size: 12.5px; font-weight: 800; color: var(--sun); text-transform: uppercase; letter-spacing: .06em; }
.ev-card h3 { font-size: 19px; line-height: 1.15; }
.ev-card .where { color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; align-items: center; }
.ev-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ev-card .price { font-weight: 800; font-size: 15px; }
.ev-card .price small { color: var(--muted); font-weight: 600; font-size: 12px; }
.meter { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.hot { background: rgba(255, 77, 10, .9); color: #fff; }

/* Bandeau "à la une" */
.feature { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 420px; display: grid; grid-template-columns: 1fr 340px; gap: 30px; padding: 40px; align-items: end; border: 1px solid var(--line); }
.feature .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4); opacity: .55; z-index: -1; transform: scale(1.1); }
.feature::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 8, 34, .95), rgba(2, 8, 34, .5)); z-index: -1; }
.feature h2 { font-size: clamp(34px, 4.6vw, 60px); }
.feature .poster-lg { width: 100%; border-radius: 22px; box-shadow: var(--shadow); transform: rotate(3deg); transition: .4s; }
.feature:hover .poster-lg { transform: rotate(0) scale(1.02); }
.feature-dots { display: flex; gap: 8px; margin-top: 24px; }
.feature-dots button { width: 10px; height: 10px; border-radius: 6px; background: var(--line-2); border: 0; padding: 0; transition: .3s; }
.feature-dots button.on { width: 30px; background: var(--orange); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; padding: 26px; } .feature .poster-lg { max-width: 220px; order: -1; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step::before { counter-increment: s; content: counter(s); position: absolute; right: 18px; top: -6px; font-family: var(--display); font-size: 110px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .04); }
.step .ic { width: 56px; height: 56px; border-radius: 18px; background: var(--brand); color: #1a0d00; display: grid; place-items: center; margin-bottom: 18px; box-shadow: var(--glow); }
.step .ic .i { width: 28px; height: 28px; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pay-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 800; font-size: 13px; }
.pay-wave { background: #1dc4ff; color: #04202c; }
.pay-om { background: #ff7900; color: #fff; }
.pay-pill i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .7; }

/* CTA promoteur */
.promo-cta { position: relative; border-radius: var(--r-xl); padding: 48px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: radial-gradient(600px 400px at 100% 0%, rgba(255, 138, 0, .35), transparent 60%), linear-gradient(135deg, #0e2a9a, #08164a 60%); border: 1px solid var(--line-2); }
.promo-cta h2 { font-size: clamp(30px, 4vw, 48px); }
.promo-cta ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.promo-cta li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.promo-cta li .i { color: var(--sun); }
.mock-dash { background: rgba(2, 8, 34, .7); border: 1px solid var(--line-2); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.mock-dash .kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mock-dash .kp div { background: var(--surface); border-radius: 12px; padding: 10px; }
.mock-dash .kp b { font-family: var(--display); font-size: 20px; display: block; }
.mock-dash .kp span { font-size: 11px; color: var(--muted); }
@media (max-width: 860px) { .promo-cta { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Footer ---------- */
.footer { margin-top: 60px; border-top: 1px solid var(--line); padding: 50px 0 30px; background: linear-gradient(180deg, transparent, rgba(255, 122, 0, .05)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer h4 { font-size: 15px; margin-bottom: 14px; font-family: var(--font); font-weight: 800; }
.footer a { display: block; color: var(--muted); padding: 4px 0; font-size: 14px; }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Explorer ---------- */
.explore-head { padding: 34px 0 10px; }
.explore-head h1 { font-size: clamp(32px, 4vw, 48px); }
.filters { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 10px; margin: 20px 0 14px; }
@media (max-width: 980px) { .filters { grid-template-columns: 1fr 1fr; } .filters > :first-child { grid-column: 1 / -1; } }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty .big { font-size: 54px; margin-bottom: 8px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-lg); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Page événement ---------- */
.ev-hero { position: relative; padding: 34px 0 30px; overflow: hidden; }
.ev-hero .bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.5); opacity: .5; z-index: -1; }
.ev-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 8, 34, .3), var(--bg)); z-index: -1; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
.ev-top { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: end; }
.ev-top .poster { border-radius: 22px; overflow: hidden; box-shadow: 0 40px 70px -30px #000; aspect-ratio: 4 / 5; }
.ev-top .poster img { width: 100%; height: 100%; object-fit: cover; }
.ev-top h1 { font-size: clamp(34px, 4.6vw, 58px); margin: 12px 0 8px; }
.ev-facts { display: grid; gap: 12px; margin-top: 18px; }
.fact { display: flex; gap: 14px; align-items: center; }
.fact .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--orange); flex: none; }
.fact b { display: block; font-size: 15px; }
.fact span { color: var(--muted); font-size: 13.5px; }
.ev-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 1020px) { .ev-layout { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .ev-top { grid-template-columns: 1fr; } .ev-top .poster { max-width: 260px; } }
.prose { color: #d6dcf5; white-space: pre-line; font-size: 15.5px; line-height: 1.7; }
.prog { display: grid; gap: 0; }
.prog > div { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.prog b { font-family: var(--display); color: var(--sun); font-size: 17px; }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--r); filter: invert(.92) hue-rotate(195deg) saturate(.7) brightness(.95); }
.buy-box { position: sticky; top: calc(var(--header-h) + 16px); background: linear-gradient(180deg, rgba(14, 33, 102, .9), rgba(8, 22, 74, .92)); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.buy-box h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.tt { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(2, 8, 34, .4); transition: .2s; }
.tt.sel { border-color: var(--orange); background: rgba(255, 138, 0, .08); }
.tt.off { opacity: .55; }
.tt .nm { font-weight: 800; }
.tt .pr { font-family: var(--display); font-size: 19px; }
.tt .fee { font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; }
.qty button:hover { background: var(--orange); color: #111; }
.qty button:disabled { opacity: .3; pointer-events: none; }
.qty output { min-width: 26px; text-align: center; font-weight: 800; }
.totals { display: grid; gap: 6px; font-size: 14px; }
.totals > div { display: flex; justify-content: space-between; }
.totals .tot { font-size: 18px; font-weight: 800; padding-top: 10px; border-top: 1px dashed var(--line-2); margin-top: 4px; }
.totals .tot b { font-family: var(--display); font-size: 24px; }
.mobile-buy { display: none; }
@media (max-width: 1020px) {
  .buy-box { position: static; }
  .mobile-buy { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(2, 8, 34, .94); border-top: 1px solid var(--line-2); backdrop-filter: blur(12px); align-items: center; justify-content: space-between; gap: 12px; }
}

/* Paiement */
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 2px solid var(--line-2); background: rgba(2, 8, 34, .4); cursor: pointer; transition: .2s; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt .lg { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; }
.pay-opt:has(input:checked) { border-color: var(--orange); background: rgba(255, 138, 0, .1); }
.pay-opt b { display: block; }
.pay-opt span { font-size: 12px; color: var(--muted); }

.paypage { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.paycard { width: 100%; max-width: 430px; border-radius: 30px; overflow: hidden; background: #fff; color: #111827; box-shadow: 0 50px 100px -30px #000; }
.paycard .top { padding: 26px; color: #fff; position: relative; }
.paycard .top .amt { font-family: var(--display); font-size: 42px; margin-top: 10px; }
.paycard .content { padding: 26px; display: grid; gap: 14px; }
.paycard .input { background: #f3f4f8; color: #111; border-color: #e3e5ee; }
.paycard .muted { color: #6b7280; }
.demo-flag { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .25); font-size: 12px; font-weight: 700; }
.pulse-ring { width: 86px; height: 86px; border-radius: 50%; margin: 10px auto; display: grid; place-items: center; position: relative; }
.pulse-ring::before, .pulse-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid currentColor; animation: ring 1.6s ease-out infinite; }
.pulse-ring::after { animation-delay: .8s; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Billet (style marque) ---------- */
.ticket {
  --tw: 100%;
  position: relative; display: grid; grid-template-columns: 1fr 210px; width: var(--tw); max-width: 760px; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .85); isolation: isolate; color: #fff;
  -webkit-mask: radial-gradient(circle 16px at calc(100% - 210px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at calc(100% - 210px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 16px at calc(100% - 210px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at calc(100% - 210px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket .main { position: relative; padding: 24px 26px; min-height: 250px; display: grid; grid-template-columns: auto 1fr; gap: 22px; background: linear-gradient(135deg, #0a1a5c, #050f3a 70%); overflow: hidden; isolation: isolate; }
.ticket .main .bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; z-index: -2; filter: saturate(1.3) blur(3px); transform: scale(1.1); }
.ticket .main::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 20% 0%, rgba(47, 107, 255, .6), transparent 70%), linear-gradient(90deg, rgba(5, 15, 58, .92), rgba(5, 15, 58, .35)); z-index: -1; }
.ticket .brandcol { display: grid; align-content: space-between; justify-items: start; padding-right: 20px; border-right: 1px solid rgba(255, 255, 255, .18); }
.ticket .brandcol img { width: 72px; filter: drop-shadow(0 6px 14px rgba(255, 122, 0, .5)); }
.ticket .brandcol .w { font-family: var(--display); font-size: 30px; line-height: 1; margin-top: 8px; }
.ticket .brandcol .hand { color: var(--orange); font-size: 14px; transform: rotate(-4deg); }
.ticket .kick { font-size: 11.5px; font-weight: 800; letter-spacing: .22em; color: var(--sun); text-transform: uppercase; }
.ticket h3 { font-size: 26px; text-transform: uppercase; margin: 4px 0 12px; line-height: 1.05; }
.ticket .li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; margin: 6px 0; }
.ticket .li .i { color: #fff; opacity: .9; }
.ticket .cat { display: inline-block; margin-top: 12px; padding: 7px 16px; border-radius: 999px; background: var(--brand); color: #1a0d00; font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.ticket .stub { position: relative; background: #fff; color: #0a1236; padding: 20px 18px; display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; }
.ticket .stub::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; border-left: 3px dotted #c7cbe0; }
.ticket .stub .qr { width: 150px; height: 150px; }
.ticket .stub .qr svg { width: 100%; height: 100%; }
.ticket .stub .no { font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.ticket .stub .sc { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #4b5280; }
.ticket .stub .hand { color: #0a1236; font-size: 17px; transform: rotate(-5deg); line-height: 1.1; }
.ticket.used .stub .qr, .ticket.cancelled .stub .qr, .ticket.refunded .stub .qr { opacity: .15; }
.ticket .stamp { position: absolute; right: 30px; top: 50%; transform: translateY(-50%) rotate(-18deg); border: 4px solid var(--bad); color: var(--bad); font-family: var(--display); font-size: 26px; padding: 4px 14px; border-radius: 10px; background: rgba(255, 255, 255, .85); z-index: 3; }
.ticket .stamp.used { border-color: #2563eb; color: #2563eb; }
@media (max-width: 680px) {
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket .main { grid-template-columns: 1fr; }
  .ticket .brandcol { display: flex; align-items: center; gap: 12px; border-right: 0; padding: 0; }
  .ticket .brandcol img { width: 46px; }
  .ticket .brandcol .hand { display: none; }
  .ticket .stub::before { left: 18px; right: 18px; top: 0; bottom: auto; border-left: 0; border-top: 3px dotted #c7cbe0; }
  .ticket .stub .qr { width: 200px; height: 200px; }
}
.tickets-list { display: grid; gap: 22px; justify-items: center; }

/* Succès */
.success-hero { text-align: center; padding: 40px 0 20px; }
.success-hero .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #002914; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 0 0 12px rgba(34, 212, 136, .15), 0 0 60px rgba(34, 212, 136, .5); animation: pop .6s cubic-bezier(.3, 1.8, .5, 1); }
.success-hero .ok .i { width: 44px; height: 44px; stroke-width: 3; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; padding: 60px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: radial-gradient(500px 400px at 80% 20%, rgba(255, 138, 0, .3), transparent 60%), linear-gradient(160deg, #0e2a9a, #040d33); }
.auth-side img.mk { width: 160px; margin-bottom: 30px; filter: drop-shadow(0 20px 40px rgba(255, 122, 0, .5)); animation: float 6s ease-in-out infinite; }
.auth-side h2 { font-size: 46px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 34px; margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tabs button, .tabs a { flex: 1; height: 38px; border-radius: 999px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--muted); display: grid; place-items: center; padding: 0 14px; white-space: nowrap; }
.tabs .on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.demo-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-accounts button { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; }
.demo-accounts button:hover { border-color: var(--orange); }
.demo-accounts b { display: block; font-size: 13.5px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Espace compte ---------- */
.page-head { padding: 30px 0 18px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); }
.list { display: grid; gap: 10px; }
.list-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: .2s; }
a.list-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.list-item .thumb { width: 58px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--night-2); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.notif { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.notif.unread { border-color: rgba(255, 138, 0, .45); background: rgba(255, 138, 0, .06); }
.notif .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 18px; }

/* ---------- Dashboard (promoteur / admin) ---------- */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(2, 8, 34, .6); display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side .logo { margin: 0 8px 22px; }
.side .sect { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 800; padding: 16px 12px 6px; }
.side a.nv { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; color: var(--muted); font-size: 14.5px; transition: .15s; }
.side a.nv:hover { background: var(--surface); color: var(--text); }
.side a.nv.on { background: var(--brand-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--orange); }
.side a.nv.on .i { color: var(--orange); }
.side a.nv .cnt { margin-left: auto; background: var(--fire); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 9px; }
.side .me { margin-top: auto; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.dash-main { padding: 26px 32px 60px; min-width: 0; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-top h1 { font-size: 30px; }
.dash-top .hand { color: var(--orange); font-size: 17px; }
.dash-burger { display: none; }
@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 70; transform: translateX(-105%); transition: .3s; background: var(--night-1); min-width: 260px; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); }
  .dash-main { padding: 18px 16px 60px; }
  .dash-burger { display: inline-grid; }
}
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { position: relative; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.kpi .lb { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .lb .i { color: var(--orange); }
.kpi .vl { font-family: var(--display); font-size: 30px; margin-top: 8px; line-height: 1.05; }
.kpi .vl small { font-size: 15px; color: var(--muted); font-family: var(--font); font-weight: 600; }
.kpi .sub { font-size: 12.5px; color: var(--dim); margin-top: 4px; }
.kpi.hl { background: linear-gradient(135deg, rgba(255, 194, 26, .2), rgba(255, 77, 10, .18)); border-color: rgba(255, 138, 0, .35); }
.kpi.hl .vl { color: #ffd36b; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.chart { width: 100%; height: 220px; display: block; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .axis { fill: var(--dim); font-size: 11px; font-family: var(--font); }
.chart .pt:hover circle:last-of-type { r: 6; }
.empty-chart { height: 200px; display: grid; place-items: center; color: var(--dim); border: 1px dashed var(--line); border-radius: 14px; }
.legend { display: grid; gap: 10px; }
.legend > div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.legend b { margin-left: auto; }
.bar-list { display: grid; gap: 14px; }
.bar-list .bl-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.bar-list .bl-top b { font-weight: 700; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; padding: 12px 14px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tbl .r { text-align: right; }
.tbl .ev-mini { display: flex; gap: 12px; align-items: center; }
.tbl .ev-mini img { width: 42px; height: 52px; border-radius: 9px; object-fit: cover; }

/* Éditeur événement */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.editor .preview { position: sticky; top: 20px; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .editor .preview { position: static; } }
.tt-edit { display: grid; grid-template-columns: 2fr 1fr 1fr 0.8fr auto; gap: 8px; align-items: end; padding: 12px; border-radius: 14px; background: rgba(2, 8, 34, .35); border: 1px solid var(--line); }
@media (max-width: 760px) { .tt-edit { grid-template-columns: 1fr 1fr; } }
.upload { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 18px; border: 2px dashed var(--line-2); overflow: hidden; cursor: pointer; background: var(--surface); }
.upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload .ov { position: relative; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(2, 8, 34, .75); font-weight: 700; font-size: 13px; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 3; }
.hue-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.hue-pick button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; }
.hue-pick button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--orange); }
.steps-bar { display: flex; gap: 6px; }
.steps-bar span { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); }
.steps-bar span.on { background: var(--brand); }

/* ---------- Scanner ---------- */
.scan-app { min-height: 100vh; display: flex; flex-direction: column; background: #000; }
.scan-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(2, 8, 34, .95); border-bottom: 1px solid var(--line); }
.scan-top .ttl { flex: 1; min-width: 0; }
.scan-top .ttl b { display: block; font-size: 15px; }
.scan-view { position: relative; flex: 1; overflow: hidden; background: #000; min-height: 340px; }
.scan-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 50%; top: 45%; width: min(68vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 28px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
.scan-frame::before { content: ''; position: absolute; inset: 0; border-radius: 28px; padding: 4px; background: var(--brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.scan-frame::after { content: ''; position: absolute; left: 8%; right: 8%; height: 3px; top: 10%; background: linear-gradient(90deg, transparent, var(--sun), transparent); box-shadow: 0 0 20px var(--orange); animation: laser 2.2s ease-in-out infinite; border-radius: 3px; }
@keyframes laser { 50% { top: 88%; } }
.scan-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 2px 8px #000; }
.scan-result { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; z-index: 5; opacity: 0; pointer-events: none; transition: opacity .15s; }
.scan-result.show { opacity: 1; pointer-events: auto; }
.scan-result.valid { background: rgba(10, 170, 100, .94); }
.scan-result.used { background: rgba(230, 60, 80, .95); }
.scan-result.cancelled, .scan-result.forged, .scan-result.unknown, .scan-result.wrong_event { background: rgba(230, 60, 80, .95); }
.scan-result.offline-valid { background: rgba(245, 150, 0, .95); }
.scan-result .big { width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .4s cubic-bezier(.3, 1.8, .5, 1); }
.scan-result .big .i { width: 64px; height: 64px; stroke-width: 2.6; }
.scan-result h2 { font-size: 40px; text-transform: uppercase; }
.scan-result .det { margin-top: 12px; font-size: 17px; font-weight: 600; opacity: .95; }
.scan-bottom { padding: 14px; background: rgba(2, 8, 34, .97); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.scan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scan-stats div { background: var(--surface); border-radius: 14px; padding: 10px; text-align: center; }
.scan-stats b { font-family: var(--display); font-size: 24px; display: block; line-height: 1.1; }
.scan-stats span { font-size: 11.5px; color: var(--muted); }
.net { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.net.on { background: var(--ok-bg); color: var(--ok); }
.net.off { background: var(--warn-bg); color: var(--warn); }
.scan-pick { min-height: 100vh; padding: 24px 16px; max-width: 560px; margin: 0 auto; }

/* ---------- Toasts & modales ---------- */
#toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 14px; background: #101d55; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; transform: translateY(20px); opacity: 0; transition: .25s; }
.toast.in { transform: none; opacity: 1; }
.toast-ok .i { color: var(--ok); } .toast-error .i { color: var(--bad); } .toast-info .i { color: var(--sun); }
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1, 4, 20, .72); backdrop-filter: blur(6px); opacity: 0; transition: .25s; }
.modal { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: linear-gradient(180deg, #0f2168, #0a1846); border: 1px solid var(--line-2); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); transform: translateY(20px) scale(.98); opacity: 0; transition: .25s; }
.modal-wide { max-width: 760px; }
.modal-wrap.in .modal { transform: none; opacity: 1; }
.modal-wrap.in .modal-backdrop { opacity: 1; }
.modal-x { position: absolute; right: 14px; top: 14px; z-index: 2; }
.m-title { font-size: 24px; margin-bottom: 8px; padding-right: 40px; }
@media (max-width: 560px) {
  .modal-wrap { place-items: end center; padding: 0; }
  .modal { border-radius: 26px 26px 0 0; max-height: 92vh; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
}

/* Divers */
.notfound { text-align: center; padding: 100px 20px; }
.notfound h1 { font-size: 120px; line-height: 1; }
.kbd { font-family: ui-monospace, Menlo, monospace; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 12.5px; border: 1px solid var(--line); }
.callout { padding: 14px 16px; border-radius: 14px; background: var(--info-bg); border: 1px solid rgba(91, 157, 255, .3); font-size: 14px; display: flex; gap: 10px; }
.callout.warn { background: var(--warn-bg); border-color: rgba(255, 176, 32, .3); }
.callout .i { flex: none; margin-top: 2px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--orange); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 10px; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- Impression ---------- */
.print-page { background: #fff; color: #111; min-height: 100vh; padding: 24px; }
.print-bar { display: flex; gap: 10px; justify-content: space-between; align-items: center; max-width: 800px; margin: 0 auto 20px; color: #111; flex-wrap: wrap; }
.print-sheet { display: grid; gap: 14px; justify-items: center; }
.print-sheet .ticket { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; page-break-inside: avoid; }
.thermal { width: 280px; border: 1px dashed #999; padding: 14px; text-align: center; font-family: ui-monospace, Menlo, monospace; color: #000; break-inside: avoid; page-break-inside: avoid; background: #fff; }
.thermal .qr { width: 200px; margin: 8px auto; }
.thermal h4 { font-family: var(--display); font-size: 20px; margin: 6px 0; }
.thermal-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media print {
  @page { margin: 10mm; }
  body { background: #fff !important; }
  body::before, .no-print, .header, .footer, .announce, #toasts, .mobile-buy { display: none !important; }
  .print-page { padding: 0; }
  .ticket { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; max-width: 100%; }
  .tickets-list { gap: 10mm; }
}

/* En-tête compact sur téléphone */
@media (max-width: 560px) {
  .header .container { gap: 10px; padding: 0 14px; }
  .header-actions .btn-primary { display: none; }
  .logo-word { font-size: 24px; }
  .announce { font-size: 12px; padding: 7px 12px; }
}

/* Pictogrammes (remplacent les emojis) */
.empty .big { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: var(--brand-soft); color: var(--orange); border: 1px solid rgba(255, 138, 0, .25); }
.empty .big .i { width: 36px; height: 36px; stroke-width: 1.6; }
.cat-tile .emo { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: var(--brand); color: #1a0d00; box-shadow: var(--glow); filter: none; }
.cat-tile .emo .i { width: 30px; height: 30px; stroke-width: 1.9; }
.badge .i { width: 13px; height: 13px; stroke-width: 2.2; }
.chip .i { width: 17px; height: 17px; }
.float-card .ic .i { width: 20px; height: 20px; }
.float-card .ic.ok { background: var(--ok-bg); color: var(--ok); }
.float-card .ic.brand { background: var(--brand-soft); color: var(--sun); }
.notif .ic { color: var(--orange); }
.notif .ic .i { width: 20px; height: 20px; }
.inline-i { display: inline-flex; align-items: center; gap: 6px; }
.section-head h2 .i { color: var(--orange); width: .9em; height: .9em; vertical-align: -.08em; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.icon-pick button.on { background: var(--brand); color: #1a0d00; border-color: transparent; }
.chip button .i { width: 14px; height: 14px; }

/* ---------- Formulaires d'inscription ---------- */
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .state, .input-wrap .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.input-wrap .state.ok { color: var(--ok); } .input-wrap .state.bad { color: var(--bad); }
.input-wrap .state .i { width: 18px; height: 18px; stroke-width: 2.4; }
.input-wrap .eye { background: none; border: 0; color: var(--muted); }
.input-wrap .eye.on, .input-wrap .eye:hover { color: var(--sun); }
.suggest { color: var(--warn); }
.suggest .link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--sun); text-decoration: underline; cursor: pointer; }
.phone-input { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(2, 8, 34, .55); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.phone-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 0, .16); }
.phone-input .cc { display: grid; place-items: center; padding: 0 12px; font-weight: 700; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line-2); background: var(--surface); white-space: nowrap; }
.phone-input .input { border: 0; background: transparent; box-shadow: none !important; letter-spacing: .04em; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--line-2); transition: background .2s; }
.pw-meter i.bad { background: var(--bad); } .pw-meter i.warn { background: var(--warn); } .pw-meter i.ok { background: var(--ok); }
.c-bad { color: var(--bad); } .c-warn { color: var(--warn); } .c-ok { color: var(--ok); }
.auth-box .back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; margin-bottom: 14px; cursor: pointer; }
.role-cards { display: grid; gap: 14px; }
.role-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; text-align: left; padding: 20px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); transition: .2s; }
.role-card:hover { border-color: var(--orange); background: var(--brand-soft); transform: translateY(-2px); }
.role-card .ic { grid-row: span 3; width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: #1a0d00; display: grid; place-items: center; box-shadow: var(--glow); }
.role-card .ic .i { width: 26px; height: 26px; }
.role-card b { font-family: var(--display); font-size: 19px; }
.role-card span { color: var(--muted); font-size: 13.5px; }
.role-card .go { color: var(--sun); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.chip-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-picks .chip { height: 36px; font-size: 13px; }
details.more summary { cursor: pointer; list-style: none; }
details.more summary::before { content: '+ '; }
details.more[open] summary::before { content: '– '; }
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 6px; }
.wizard-steps > div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--dim); padding-top: 10px; border-top: 3px solid var(--line-2); }
.wizard-steps > div span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; flex: none; }
.wizard-steps > div span .i { width: 14px; height: 14px; stroke-width: 3; }
.wizard-steps .on { color: var(--text); border-color: var(--orange); }
.wizard-steps .on span { background: var(--brand); color: #1a0d00; }
.wizard-steps .done { color: var(--muted); border-color: var(--ok); }
.wizard-steps .done span { background: var(--ok); color: #002914; }
.org-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.org-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 12px; border-radius: 14px; border: 2px solid var(--line-2); background: rgba(2, 8, 34, .4); cursor: pointer; transition: .2s; }
.org-card input { position: absolute; opacity: 0; }
.org-card .ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--orange); }
.org-card b { font-size: 14px; }
.org-card > span:last-child { font-size: 11.5px; color: var(--muted); }
.org-card:has(input:checked) { border-color: var(--orange); background: rgba(255, 138, 0, .1); }
.org-card:has(input:focus-visible) { outline: 2px solid var(--sun); }
.recap { background: rgba(2, 8, 34, .4); }
.perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; max-width: 420px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks li > .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--sun); flex: none; }
.perks b { display: block; font-size: 16px; }
.perks span { color: var(--muted); font-size: 14px; }
.form-error { margin: 0; }
@media (max-width: 480px) { .org-cards { grid-template-columns: 1fr; } .wizard-steps > div { font-size: 11.5px; } }
.cred-card { background: #fff; color: #0a1236; border-radius: 18px; padding: 18px; display: grid; gap: 8px; }
.cred-card .mono { font-size: 17px; font-weight: 800; letter-spacing: .04em; }
.cred-card .muted { color: #5b6290; }
.first-steps { border-color: rgba(255, 138, 0, .35); background: linear-gradient(135deg, rgba(255, 194, 26, .08), rgba(255, 77, 10, .06)); }
.fs-step { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(2, 8, 34, .35); border: 1px solid var(--line); }
a.fs-step:hover { border-color: var(--orange); }
.fs-step .ck { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--sun); flex: none; }
.fs-step.ok .ck { background: var(--ok); color: #002914; }
.fs-step.ok b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.fs-step .ck .i { width: 16px; height: 16px; stroke-width: 2.6; }
