/* =====================================================================
   TicketPro – design system (thème sombre premium : dégradés, verre, 3D)
   ===================================================================== */
:root {
  --bg: #07060f;
  --bg-2: #0e0c1d;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --surface-solid: #141127;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #f4f2ff;
  --text-2: #b9b4d6;
  --muted: #847fa6;
  --primary: #8b5cf6;
  --primary-2: #ec4899;
  --accent: #22d3ee;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 55%, #f97316 100%);
  --grad-cool: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --glow: 0 10px 40px -10px rgba(139, 92, 246, .6);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* aurores en arrière-plan */
  content: ""; position: fixed; inset: -20vh -20vw; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 15% 10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(35vw 35vw at 85% 15%, rgba(236, 72, 153, .16), transparent 60%),
    radial-gradient(45vw 45vw at 60% 95%, rgba(34, 211, 238, .10), transparent 60%);
  animation: aurora 22s ease-in-out infinite alternate;
}
body::after { /* grain */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes aurora { to { transform: translate3d(4vw, -3vh, 0) rotate(8deg) scale(1.08); } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.section { padding: 72px 0; }
.center { text-align: center; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 16px; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- grilles ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- boutons ---------- */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--b); color: var(--text);
  font: 600 .95rem var(--font); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--grad); border: 0; box-shadow: var(--glow); background-size: 160% 160%; animation: shift 6s ease infinite; }
.btn-primary:hover { background: var(--grad); background-size: 160% 160%; box-shadow: 0 16px 50px -10px rgba(236, 72, 153, .7); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s; }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-cool { background: var(--grad-cool); border: 0; }
.btn-success { background: var(--success); border: 0; color: #04150a; }
.btn-danger { background: rgba(239, 68, 68, .15); border-color: rgba(239, 68, 68, .4); color: #fecaca; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
@keyframes shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); position: relative;
}
.card-tight { padding: 16px; }
.card h3 { margin-bottom: 4px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .8;
}
.tilt { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s; will-change: transform; }
.tilt:hover { box-shadow: 0 30px 70px -20px rgba(139, 92, 246, .45); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(7, 6, 15, .65); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.25rem var(--display); letter-spacing: -.03em; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--glow); transform: rotate(-8deg); }
.logo-mark svg { width: 20px; height: 20px; transform: rotate(8deg); }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 12px 16px; border-bottom: 1px solid var(--border); margin: 0; }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .nav-right .btn-ghost { display: none; }
}
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: .85rem; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- héro ---------- */
.hero { padding: 90px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .85rem; color: var(--text-2); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero p.lead { font-size: 1.15rem; color: var(--text-2); max-width: 560px; }
.search-bar { display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); max-width: 560px; margin-top: 26px; }
.search-bar input { flex: 1; background: transparent; border: 0; color: var(--text); padding: 0 16px; font: inherit; outline: none; min-width: 0; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats strong { display: block; font: 800 1.8rem var(--display); }
.hero-visual { position: relative; height: 460px; perspective: 1200px; }
.float-ticket { position: absolute; width: 300px; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); animation: float 7s ease-in-out infinite; }
.float-ticket:nth-child(1) { top: 10px; left: 8%; transform: rotate(-9deg) rotateY(12deg); z-index: 2; }
.float-ticket:nth-child(2) { top: 140px; right: 2%; transform: rotate(7deg) rotateY(-14deg); animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -18px; } }
.ft-head { padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.ft-body { background: #fff; color: #111; padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ft-qr { width: 64px; height: 64px; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0/16px 16px; border-radius: 6px; }
@media (max-width: 960px) { .hero-visual { height: 340px; } .float-ticket { width: 240px; } }

/* ---------- cartes événement ---------- */
.event-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(139, 92, 246, .45); }
.event-cover { aspect-ratio: 16/10; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.event-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.event-card:hover .event-cover img { transform: scale(1.07); }
.event-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); }
.event-cover .cover-title { position: relative; z-index: 1; font: 800 1.5rem var(--display); text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.date-chip { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.92); color: #111; border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1.1; font-weight: 800; }
.date-chip span { display: block; font-size: .7rem; text-transform: uppercase; color: #6b21a8; }
.event-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-body h3 { font-size: 1.1rem; margin: 0; }
.event-meta { color: var(--text-2); font-size: .9rem; display: flex; gap: 6px; align-items: center; }
.event-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.price { font: 800 1.1rem var(--display); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.badge-sponsor { background: linear-gradient(135deg, #f59e0b, #f97316); color: #1a0d00; border: 0; position: absolute; top: 14px; right: 14px; z-index: 2; }
.badge-success { background: rgba(34,197,94,.15); color: #86efac; border-color: rgba(34,197,94,.35); }
.badge-warning { background: rgba(245,158,11,.15); color: #fcd34d; border-color: rgba(245,158,11,.35); }
.badge-danger { background: rgba(239,68,68,.15); color: #fca5a5; border-color: rgba(239,68,68,.35); }
.badge-info { background: rgba(34,211,238,.12); color: #a5f3fc; border-color: rgba(34,211,238,.3); }
.badge-vip { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3b2300; border: 0; }
.badge-muted { opacity: .8; }

/* ---------- formulaires ---------- */
.form-group { margin-bottom: 16px; }
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--text-2); }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(0,0,0,.25);
  color: var(--text); font: inherit; transition: border .2s, box-shadow .2s; outline: none;
}
select option { background: var(--surface-solid); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
textarea { min-height: 120px; resize: vertical; }
input[type=color] { width: 54px; height: 44px; border: 1px solid var(--border-strong); background: none; border-radius: 10px; padding: 3px; cursor: pointer; }
input[type=file] { color: var(--text-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.error { color: #fca5a5; font-size: .85rem; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; }
.input-group { display: flex; gap: 8px; }

/* ---------- alertes ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; animation: slideIn .4s ease; word-break: break-word; }
.alert-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); color: #bbf7d0; }
.alert-error { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.35); color: #fecaca; }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); color: #fde68a; }
.alert-info { background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.3); color: #cffafe; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.025); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; border-right: 1px solid var(--border); background: rgba(10, 8, 22, .7); backdrop-filter: blur(18px); }
.sidebar .logo { margin: 0 8px 26px; }
.side-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 12px 8px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500; transition: .2s; margin-bottom: 2px; }
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--primary); }
.side-link .ico { width: 20px; text-align: center; }
.side-link .count { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; font-weight: 700; }
.dash-main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-top h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.dash-burger { display: none; }
@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; width: 270px; left: -290px; transition: left .3s; }
  .sidebar.open { left: 0; box-shadow: 30px 0 80px rgba(0,0,0,.6); }
  .dash-burger { display: inline-flex; }
}
.kpi { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; background: var(--grad); opacity: .15; filter: blur(10px); }
.kpi .label { margin: 0; font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi .value { font: 800 1.7rem var(--display); margin-top: 6px; }
.kpi .delta { font-size: .82rem; color: var(--text-2); }
.kpi.live .value { transition: color .4s; }
.kpi.flash .value { color: var(--success); }
.chart-box { position: relative; height: 300px; }

/* ---------- page événement ---------- */
.event-hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.event-hero .bg { position: absolute; inset: 0; z-index: -1; opacity: .9; }
.event-hero .bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(1.4); opacity: .55; transform: scale(1.2); }
.event-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,6,15,.3), var(--bg)); }
.event-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .event-layout { grid-template-columns: 1fr; } }
.event-poster { border-radius: 24px; overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow); position: relative; display: flex; align-items: flex-end; padding: 26px; }
.event-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.buy-box { position: sticky; top: 90px; }
.ticket-option { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(0,0,0,.2); margin-bottom: 10px; transition: border .2s; }
.ticket-option.selected { border-color: var(--primary); background: rgba(139, 92, 246, .1); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1.1rem; }
.qty input { width: 44px; text-align: center; padding: 6px; }
.total-line { display: flex; justify-content: space-between; font: 800 1.3rem var(--display); padding: 14px 0; border-top: 1px dashed var(--border-strong); margin-top: 6px; }
.slogan-box { padding: 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(236,72,153,.1)); border: 1px solid rgba(139,92,246,.35); margin: 14px 0; }
.prose { color: var(--text-2); white-space: pre-line; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- billets (espace client) ---------- */
.ticket-ui { display: grid; grid-template-columns: 1fr auto; border-radius: 20px; overflow: hidden; background: #fff; color: #111; box-shadow: var(--shadow); position: relative; }
.ticket-ui .t-left { padding: 20px; }
.ticket-ui .t-head { padding: 18px 20px; color: #fff; }
.ticket-ui .t-right { padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 2px dashed #ddd; gap: 8px; min-width: 150px; }
.ticket-ui .t-right img { width: 120px; height: 120px; }
.ticket-ui .code { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .05em; }

/* ---------- scan ---------- */
.scan-wrap { max-width: 560px; margin: 0 auto; }
#reader { border-radius: 20px; overflow: hidden; border: 2px solid var(--border-strong) !important; background: #000; }
#reader video { border-radius: 18px; }
.scan-result { border-radius: 22px; padding: 22px; margin-top: 18px; text-align: center; animation: pop .35s ease; }
.scan-result h2 { font-size: 1.5rem; margin-bottom: 8px; }
.scan-result.valid { background: rgba(34,211,238,.12); border: 2px solid var(--accent); }
.scan-result.granted { background: rgba(34,197,94,.18); border: 2px solid var(--success); }
.scan-result.used, .scan-result.refused, .scan-result.invalid, .scan-result.blocked { background: rgba(239,68,68,.16); border: 2px solid var(--danger); }
.scan-result .big-ico { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; }
.scan-details { text-align: left; margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .95rem; }
.scan-details dt { color: var(--muted); }
.scan-details dd { margin: 0; font-weight: 600; }
.slogan-input { font-size: 1.2rem !important; text-align: center; letter-spacing: .03em; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.flash-screen { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0; transition: opacity .15s; }
.flash-screen.ok { background: rgba(34,197,94,.35); }
.flash-screen.ko { background: rgba(239,68,68,.4); }

/* ---------- générateur d'affiches ---------- */
.studio { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .studio { grid-template-columns: 1fr; } }
.studio-preview { position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.studio-preview canvas { max-width: 100%; max-height: 74vh; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); background: #111; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl { aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; cursor: pointer; font-size: .72rem; font-weight: 700; display: flex; align-items: flex-end; padding: 6px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); transition: transform .2s; }
.tpl:hover { transform: scale(1.04); }
.tpl.active { border-color: #fff; box-shadow: 0 0 0 3px var(--primary); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1; min-width: 80px; padding: 9px 8px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.2); color: var(--text-2); cursor: pointer; font: 600 .82rem var(--font); }
.seg button.active { background: var(--grad); color: #fff; border-color: transparent; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,.2); transition: transform .2s; }
.swatch:hover { transform: scale(1.15); }

/* ---------- divers ---------- */
.footer { border-top: 1px solid var(--border); padding: 50px 0 30px; margin-top: 60px; color: var(--muted); }
.footer a:hover { color: var(--text); }
.feature-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--grad); box-shadow: var(--glow); margin-bottom: 16px; }
.cat-pill { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; transition: .2s; display: inline-flex; gap: 8px; }
.cat-pill:hover, .cat-pill.active { background: var(--grad); border-color: transparent; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; margin-bottom: 10px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; }
.pagination .active { background: var(--grad); border-color: transparent; }
.pagination .disabled { opacity: .4; }
.divider { height: 1px; background: var(--border); margin: 22px 0; }
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(460px, 100%); }
.steps { counter-reset: s; }
.steps li { list-style: none; position: relative; padding-left: 46px; margin-bottom: 18px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.copy-field { display: flex; gap: 6px; }
.copy-field input { font-family: ui-monospace, monospace; font-size: .85rem; }
.sim-banner { background: repeating-linear-gradient(45deg, #f59e0b, #f59e0b 12px, #d97706 12px, #d97706 24px); color: #1a0d00; text-align: center; font-weight: 800; font-size: .85rem; padding: 6px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--primary-2); animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.split { grid-template-columns: 2fr 1fr; }
.split-wide { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 1100px) { .split, .split-wide { grid-template-columns: 1fr; } .split-wide > .stack { position: static !important; } }

.mobile-buy { display: none; }
@media (max-width: 960px) {
  .mobile-buy { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; }
  .buy-box { position: static; scroll-margin-top: 80px; }
  .footer { padding-bottom: 90px; }
}
