:root {
  --bg: #07040a;
  --ink: #f3eef6;
  --muted: #a99db3;
  --faint: #6f6479;
  --pink: #ff3fa4;
  --pink-2: #ff7bc2;
  --violet: #9d5cff;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --glass: rgba(16, 10, 20, .58);
  --glass-2: rgba(24, 15, 30, .72);
  --ok: #4ade80;
  --warn: #ffc14d;
  --bad: #ff5c7a;
  --radius: 18px;
  --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
::selection { background: rgba(255, 63, 164, .4); }
:focus-visible { outline: 2px solid var(--pink-2); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================ fond animé */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg-fallback {
  position: absolute; inset: -6%; background: #0b060f url('/assets/bg.jpg') center / cover no-repeat;
  filter: blur(10px) brightness(.8) saturate(1.1); animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.05) translate3d(-2%, -1%, 0); } to { transform: scale(1.16) translate3d(2%, 1.5%, 0); } }
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
html.webgl #bg-canvas { display: block; }
html.webgl .bg-fallback { display: none; }
/* grain + points noirs (superposé, léger) */
.bg-grain {
  position: absolute; inset: -50%; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-3%, 2%); } 33% { transform: translate(2%, -4%); }
  50% { transform: translate(-4%, -1%); } 67% { transform: translate(3%, 3%); } 83% { transform: translate(-1%, 4%); } 100% { transform: translate(0, 0); }
}
.bg-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 38%, rgba(7, 4, 10, .15), rgba(7, 4, 10, .55) 100%),
    linear-gradient(to bottom, rgba(7, 4, 10, .35), rgba(7, 4, 10, 0) 24%, rgba(7, 4, 10, 0) 70%, rgba(7, 4, 10, .75));
}

/* ================================================================ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: .7rem 1.35rem; font-weight: 600; font-size: .95rem;
  font-family: var(--font-head); transition: transform .18s, background .2s, border-color .2s, box-shadow .2s, color .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--pink), #d63fd9 60%, var(--violet)); color: #fff; box-shadow: 0 8px 30px -8px rgba(255, 63, 164, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(255, 63, 164, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: rgba(10, 6, 14, .6); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--pink-2); background: rgba(255, 63, 164, .1); transform: translateY(-2px); }
.btn-outline { background: rgba(255, 63, 164, .06); border-color: rgba(255, 63, 164, .55); color: var(--pink-2); padding: .5rem 1.05rem; }
.btn-outline:hover { background: rgba(255, 63, 164, .16); border-color: var(--pink-2); color: #fff; }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-danger { background: rgba(255, 92, 122, .1); border-color: rgba(255, 92, 122, .45); color: #ff8da3; }
.btn-danger:hover { background: rgba(255, 92, 122, .22); color: #fff; }

/* ================================================================ nav */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto; position: relative; max-width: 900px; margin: 0 auto; height: 58px; padding: 0 12px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
}
.nav-brand { display: flex; align-items: center; flex: none; }
.nav-brand img { filter: drop-shadow(0 0 10px rgba(255, 63, 164, .55)); transition: transform .3s; }
.nav-brand:hover img { transform: rotate(-6deg) scale(1.08); }
.nav-menu { display: contents; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a { position: relative; padding: .5rem 1.05rem; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--pink-2); }
.nav-links a.active::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--violet)); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 19px; } .nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 12px;
    flex-direction: column; gap: 8px; background: rgba(14, 8, 18, .97); border: 1px solid var(--line-2); border-radius: 24px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8);
  }
  .nav.open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; width: 100%; margin: 0; }
  .nav-links a { padding: .8rem 1rem; text-align: center; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(255, 63, 164, .1); }
  .nav-discord { width: 100%; padding: .75rem; }
}

/* ================================================================ layout */
main { flex: 1; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.section { padding: 84px 0; position: relative; }
.eyebrow { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pink-2); }
.page-head { padding: 148px 0 36px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin-top: .5rem; }
.page-head p { color: var(--muted); max-width: 560px; margin: .9rem auto 0; font-size: 1.05rem; }
.grad { background: linear-gradient(120deg, #fff 10%, var(--pink-2) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ================================================================ hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px 16px 70px; }
.hero-logo { width: min(820px, 90vw); height: auto; filter: drop-shadow(0 0 48px rgba(255, 63, 164, .38)) drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); animation: float 7s ease-in-out infinite; user-select: none; -webkit-user-drag: none; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-12px) rotate(.4deg); } }
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 700; margin-top: clamp(1.2rem, 4vh, 2.6rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .7); }
.hero .sub { color: var(--muted); margin-top: .7rem; font-size: clamp(1rem, 1.6vw, 1.15rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.pill-status { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.6rem; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 6, 14, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; color: var(--muted); }
.pill-status[hidden] { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 0 transparent; }
.dot.on { background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.6rem; }
.ip-btn { font-family: var(--font-mono); font-weight: 700; letter-spacing: .02em; padding: .85rem 1.6rem; }
.hero-cta .btn { padding: .85rem 1.6rem; font-size: 1rem; }

.countdown { display: flex; gap: 12px; justify-content: center; margin-top: 1.8rem; }
.countdown[hidden] { display: none; }
.cd-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-top: 2rem; }
.cd-label[hidden] { display: none; }
.cd { width: 92px; padding: 14px 0 12px; border-radius: 14px; background: rgba(14, 9, 18, .62); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cd b { display: block; font-family: var(--font-mono); font-size: 2rem; font-weight: 400; color: var(--pink-2); line-height: 1.1; }
.cd span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px; opacity: .7; }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--pink-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 560px) {
  .cd { width: 70px; } .cd b { font-size: 1.5rem; }
  .countdown { gap: 8px; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================ cartes info */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .3s, border-color .3s, background .3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(255, 63, 164, .4); background: var(--glass-2); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, rgba(255, 63, 164, .25), rgba(157, 92, 255, .25)); border: 1px solid rgba(255, 63, 164, .35); color: var(--pink-2); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: .5rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .section { padding: 60px 0; } }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 38px 40px; border-radius: 26px; border: 1px solid rgba(255, 63, 164, .35); background: linear-gradient(120deg, rgba(255, 63, 164, .16), rgba(157, 92, 255, .12)), var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { color: var(--muted); margin-top: .5rem; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

/* =============================================================== boutique */
.tabs { display: flex; gap: 6px; justify-content: center; padding: 6px; width: fit-content; margin: 0 auto 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: .55rem 1.3rem; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; box-shadow: 0 6px 20px -6px rgba(255, 63, 164, .7); }
.cat-desc { text-align: center; color: var(--muted); margin-bottom: 38px; min-height: 1.6em; }
.shop-note { text-align: center; color: var(--faint); font-size: .88rem; max-width: 640px; margin: 30px auto 0; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; justify-content: center; }
.products.few { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); }
.product { --c: var(--pink); position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 55%), var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .3s, border-color .3s, box-shadow .3s; }
.product:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 65%, transparent); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.product .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: .22rem .85rem; border-radius: 999px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #12060d; background: var(--c); white-space: nowrap; }
.product h3 { font-size: 1.55rem; color: var(--c); }
.product .price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: .5rem; }
.product .price b { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; letter-spacing: -.02em; }
.product .price span { color: var(--faint); font-size: .85rem; }
.product ul { list-style: none; margin: 18px 0 26px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; }
.product li { position: relative; padding-left: 26px; color: #d8cfe0; font-size: .94rem; }
.product li::before { content: ''; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, transparent); }
.product li::after { content: ''; position: absolute; left: 5px; top: calc(.3em + 4px); width: 6px; height: 3px; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }
.product .btn { width: 100%; background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 55%, transparent); color: #fff; }
.product .btn:hover { background: var(--c); color: #12060d; transform: translateY(-2px); }
.product.special { border-color: transparent; background: linear-gradient(var(--glass-2), var(--glass-2)) padding-box, conic-gradient(from var(--ang, 0deg), #ff3fa4, #9d5cff, #4db8ff, #ffc14d, #ff3fa4) border-box; animation: spin 7s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.product.special:hover { border-color: transparent; }

/* modale d'achat */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 2, 6, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.open { display: flex; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { width: min(480px, 100%); max-height: 92vh; overflow: auto; padding: 30px 28px; border-radius: 24px; background: #120a17; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -10px #000; position: relative; animation: pop .25s cubic-bezier(.2, .8, .3, 1.2); }
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } }
.modal-box h3 { font-size: 1.4rem; margin: .3rem 0 .4rem; }
.modal-box .x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.modal-box .x:hover { background: rgba(255, 255, 255, .14); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: #d8cfe0; font-size: .95rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; background: rgba(255, 63, 164, .16); border: 1px solid rgba(255, 63, 164, .5); color: var(--pink-2); }
.modal-note { font-size: .85rem; color: var(--faint); margin-top: 14px; text-align: center; }

/* ================================================================ recrutement */
.join-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: start; padding-bottom: 90px; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 30px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.panel h2 { font-size: 1.35rem; margin-bottom: 4px; }
.panel .lead { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.pos-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pos-list li { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.pos-list b { font-family: var(--font-head); display: block; color: var(--pink-2); margin-bottom: 2px; }
.pos-list span { color: var(--muted); font-size: .9rem; }
.info-side { position: sticky; top: 100px; }
.facts { margin-top: 20px; display: grid; gap: 8px; color: var(--muted); font-size: .9rem; }
.facts div { display: flex; gap: 10px; }
.facts div::before { content: '✦'; color: var(--pink); flex: none; }
.closed-banner { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 193, 77, .45); background: rgba(255, 193, 77, .08); color: #ffd98a; margin-bottom: 20px; }
.closed-banner[hidden] { display: none; }

form.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .lab { font-family: var(--font-head); font-weight: 500; font-size: .92rem; }
.field label i, .field .lab i { color: var(--pink-2); font-style: normal; }
.field .hint { color: var(--faint); font-size: .8rem; }
.input, select.input, textarea.input {
  width: 100%; padding: .78rem 1rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(8, 5, 11, .65);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: .95rem;
}
textarea.input { min-height: 118px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: rgba(255, 255, 255, .3); }
.input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 63, 164, .2); background: rgba(8, 5, 11, .85); }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23ff7bc2' stroke-width='2' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; }
select.input option { background: #14091a; }
.field.err .input { border-color: var(--bad); }
.field .msg { color: #ff8da3; font-size: .82rem; min-height: 0; display: none; }
.field.err .msg { display: block; }
.count { text-align: right; font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }
.count.ok { color: var(--ok); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #d8cfe0; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--line-2); background: rgba(8, 5, 11, .65); cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.check input:checked { background: linear-gradient(135deg, var(--pink), var(--violet)); border-color: transparent; }
.check input:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check.err { color: #ff8da3; }
.check.err input { border-color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 92, 122, .5); background: rgba(255, 92, 122, .1); color: #ffadbd; font-size: .92rem; }
.form-error[hidden] { display: none; }
.success { text-align: center; padding: 30px 6px; }
.success .tick { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 0 50px -6px rgba(255, 63, 164, .7); animation: pop .5s cubic-bezier(.2, .8, .3, 1.3); }
.success h2 { font-size: 1.7rem; }
.success p { color: var(--muted); margin-top: .7rem; max-width: 420px; margin-inline: auto; }
.success code { font-family: var(--font-mono); color: var(--pink-2); background: rgba(255, 63, 164, .1); padding: .15rem .5rem; border-radius: 6px; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } .info-side { position: static; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .panel { padding: 22px 18px; } }

/* ================================================================ footer */
.footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(7, 4, 10, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer-inner { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 34px 0; display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.footer-links { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--pink-2); }
.footer-legal { grid-column: 1 / -1; color: var(--faint); font-size: .78rem; line-height: 1.6; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { justify-content: flex-start; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 200; padding: .7rem 1.2rem; border-radius: 999px; background: #1b1022; border: 1px solid var(--pink); color: #fff; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 10px 40px -8px rgba(255, 63, 164, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.page-404 .nf { margin: auto; text-align: center; padding: 40px 20px; display: grid; gap: 14px; justify-items: center; }
.page-404 h1 { font-size: 5rem; }
.page-404 p { color: var(--muted); }

/* ================================================================ admin */
.admin-body { background: var(--bg); }
.login-card { width: min(420px, 100% - 32px); margin: 0 auto; padding: 34px 30px; }
.login-card .brand { display: grid; place-items: center; margin-bottom: 18px; }
.login-card h1 { font-size: 1.5rem; text-align: center; }
.login-card p.lead { text-align: center; color: var(--muted); font-size: .92rem; margin: .4rem 0 22px; }
.admin-shell { width: min(1280px, 100% - 32px); margin: 0 auto; padding: 100px 0 60px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-top h1 { font-size: 1.7rem; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 16px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s; text-align: left; }
.stat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.stat.sel { border-color: var(--pink); background: rgba(255, 63, 164, .1); }
.stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .8rem; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.stat.s-nouveau b { color: var(--pink-2); } .stat.s-en_cours b { color: var(--warn); } .stat.s-accepte b { color: var(--ok); } .stat.s-refuse b { color: var(--bad); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { width: auto; flex: 1 1 200px; padding: .6rem .9rem; }
.toolbar select.input { flex: 0 1 200px; }
.split { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 18px; align-items: start; }
.list { display: grid; gap: 8px; max-height: 70vh; overflow: auto; padding-right: 4px; }
.item { width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); cursor: pointer; display: grid; gap: 4px; transition: border-color .2s, background .2s; }
.item:hover { border-color: var(--line-2); }
.item.sel { border-color: var(--pink); background: rgba(255, 63, 164, .1); }
.item .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.item b { font-family: var(--font-head); font-size: 1rem; word-break: break-all; }
.item small { color: var(--muted); font-size: .8rem; }
.tag { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.tag.nouveau { color: var(--pink-2); border-color: rgba(255, 123, 194, .5); background: rgba(255, 63, 164, .1); }
.tag.en_cours { color: var(--warn); border-color: rgba(255, 193, 77, .5); background: rgba(255, 193, 77, .1); }
.tag.accepte { color: var(--ok); border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .1); }
.tag.refuse { color: var(--bad); border-color: rgba(255, 92, 122, .5); background: rgba(255, 92, 122, .1); }
.detail { min-height: 300px; position: sticky; top: 90px; }
.detail .empty { color: var(--faint); text-align: center; padding: 80px 20px; }
.detail h2 { font-size: 1.6rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.meta div { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.meta small { display: block; color: var(--faint); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.meta span { font-weight: 500; word-break: break-word; }
.qa { margin-top: 16px; }
.qa h4 { margin: 0 0 6px; font-family: var(--font-head); font-size: .88rem; color: var(--pink-2); font-weight: 500; }
.qa p { white-space: pre-wrap; word-break: break-word; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: .93rem; color: #e6deec; }
.qa p.none { color: var(--faint); font-style: italic; }
.decide { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.decide .btn { flex: 1 1 120px; }
.btn-ok { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .5); color: var(--ok); } .btn-ok:hover { background: rgba(74, 222, 128, .25); color: #fff; }
.btn-warn { background: rgba(255, 193, 77, .1); border-color: rgba(255, 193, 77, .5); color: var(--warn); } .btn-warn:hover { background: rgba(255, 193, 77, .25); color: #fff; }
.btn-new { background: rgba(255, 63, 164, .1); border-color: rgba(255, 63, 164, .5); color: var(--pink-2); } .btn-new:hover { background: rgba(255, 63, 164, .25); color: #fff; }
.btn.cur { box-shadow: 0 0 0 2px currentColor inset; }
.note-box { margin-top: 18px; display: grid; gap: 8px; }
.note-box textarea { min-height: 90px; }
.detail-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.empty-list { color: var(--faint); text-align: center; padding: 40px 10px; }
.back-btn { display: none; }
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .detail { position: static; }
  .split.has-sel .list, .split.has-sel .toolbar { display: none; }
  .split:not(.has-sel) .detail { display: none; }
  .back-btn { display: inline-flex; margin-bottom: 14px; }
  .list { max-height: none; }
}
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* utilitaires (remplacent les styles en ligne, interdits par la CSP) */
.flush-top { padding-top: 0; }
.shop-wrap { width: min(1120px, 100% - 32px); margin: 0 auto; padding-bottom: 90px; }
.muted { color: var(--muted); }
.btn[data-full] { width: 100%; }
.req, .field label i { color: var(--pink-2); font-style: normal; }
.nav-title { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 auto; }
.admin-shell > p.muted { margin: -6px 0 16px; font-size: .88rem; }

/* paiement */
.manual-note { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 193, 77, .4); background: rgba(255, 193, 77, .07); color: #ffd98a; font-size: .88rem; }
.manual-note[hidden], #buy-ticket[hidden] { display: none; }
.merci-main { display: grid; place-items: center; padding: 120px 16px 60px; }
.merci { width: min(520px, 100%); text-align: center; display: grid; gap: 14px; justify-items: center; padding: 38px 30px; }
.merci h1 { font-size: 1.8rem; }
.merci p { color: var(--muted); max-width: 400px; }
.merci .hero-cta { margin-top: 10px; }
.merci .tick { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 0 50px -6px rgba(255, 63, 164, .7); animation: pop .5s cubic-bezier(.2, .8, .3, 1.3); }
.merci .tick[hidden], .merci .spinner[hidden] { display: none; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .12); border-top-color: var(--pink); animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.merci.warn .tick { background: linear-gradient(135deg, #ffb347, #ff7a59); box-shadow: 0 0 50px -6px rgba(255, 179, 71, .6); }

/* admin : onglets, commandes, réglages */
.admin-tabs { margin: 0 0 22px; justify-content: flex-start; }
.admin-actions.bar { margin-bottom: 16px; }
.stats4 { grid-template-columns: repeat(4, 1fr); }
.stat.static { cursor: default; }
.stat.static:hover { transform: none; border-color: var(--line); }
.code { font-family: var(--font-mono); font-size: .86rem; white-space: pre-wrap; word-break: break-all; user-select: all; }
.qa .code { color: var(--pink-2); }
.checks { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: .92rem; }
.checks li::before { content: '✔'; color: var(--ok); font-weight: 700; }
.checks li.ko::before { content: '✖'; color: var(--bad); }
.checks li .btn { margin-left: auto; }
.chip { display: inline-block; vertical-align: middle; margin-left: 8px; padding: .12rem .65rem; border-radius: 999px; font: 500 .68rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid; }
.chip.ok { color: var(--ok); border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .1); }
.chip.ko { color: var(--bad); border-color: rgba(255, 92, 122, .5); background: rgba(255, 92, 122, .1); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line-2); display: grid; gap: 10px; }
.timeline li { display: grid; gap: 1px; position: relative; font-size: .9rem; color: #d8cfe0; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.timeline small { color: var(--faint); font-family: var(--font-mono); font-size: .7rem; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cols2 .panel { min-width: 0; }
.howto { margin: 0 0 18px; padding-left: 20px; color: var(--muted); font-size: .9rem; display: grid; gap: 8px; }
.howto code, .lead code { font-family: var(--font-mono); font-size: .8rem; background: rgba(255, 63, 164, .1); color: var(--pink-2); padding: .08rem .4rem; border-radius: 6px; word-break: break-all; }
.form-note { padding: 10px 14px; border-radius: 12px; font-size: .9rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--muted); }
.form-note.good { border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .08); color: #a7f0c0; }
.form-note.bad { border-color: rgba(255, 92, 122, .5); background: rgba(255, 92, 122, .1); color: #ffadbd; }
.form-note[hidden] { display: none; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.server-list { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.result { margin-top: 18px; padding: 16px; border-radius: 16px; border: 1px solid; display: grid; gap: 10px; }
.result.ok { border-color: rgba(74, 222, 128, .5); background: rgba(74, 222, 128, .06); }
.result.ko { border-color: rgba(255, 92, 122, .5); background: rgba(255, 92, 122, .06); }
.result h3 { font-size: 1.1rem; }
.small { font-size: .82rem; }
.field .check { align-items: flex-start; }
.panel .lead { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
@media (max-width: 960px) { .cols2 { grid-template-columns: 1fr; } .stats4 { grid-template-columns: repeat(2, 1fr); } }
