:root {
  --bg: #0b0b0f;
  --surface: #14141a;
  --surface-2: #1c1c24;
  --border: #2a2a35;
  --text: #ececf1;
  --muted: #9a9aa8;
  --red: #ff1f4b;
  --red-dark: #d1002f;
  --yellow: #ffd400;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --glow: 0 10px 28px rgba(255, 31, 75, 0.35);
  --font-title: 'Bangers', 'Impact', sans-serif;
  --font: 'Zen Kaku Gothic New', system-ui, sans-serif;
  --ease: cubic-bezier(0.7, 0, 0.3, 1);
  color-scheme: dark;
}

/* ----- Curseur chibi (remplaçable : voir README) ----- */
html { cursor: url('cursor.svg') 1 1, auto; }
a, button, label, select, summary, .card { cursor: url('cursor-pointer.svg') 1 1, pointer; }
input, textarea { cursor: text; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 31, 75, 0.14), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.bg-halftone {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
}
header, main, footer { position: relative; z-index: 1; }
main { flex: 1; }

/* ----- Barre du haut ----- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 15, 0.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 1.7rem; letter-spacing: 0.05em; line-height: 1; }
.brand-icon { width: 44px; height: 44px; object-fit: contain; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 8px 14px; font-weight: 700; color: var(--muted); transition: color 0.2s; }
.nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transition: transform 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }
.nav a.nav-panel {
  margin-left: 6px; padding: 6px 12px; align-self: center; border-radius: 8px;
  background: rgba(255, 31, 75, 0.12); border: 1px solid rgba(255, 31, 75, 0.45); color: var(--red);
  font-family: var(--font-title); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.1em; line-height: 1.2;
  transition: background 0.2s, color 0.2s;
}
.nav a.nav-panel::after { display: none; }
.nav a.nav-panel:hover { background: var(--red); color: #fff; }

.account { display: flex; align-items: center; }
.user { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.user img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 0.85rem; }
.link-btn:hover { color: var(--red); }

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text);
  font-family: var(--font-title); font-size: 1.15rem; letter-spacing: 0.07em; line-height: 1.2;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); border-color: #3a3a48; }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--glow); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ink { background: #fff; border-color: #fff; color: var(--bg); }
.btn-ink:hover { background: #e6e6ec; }
.btn-sm { padding: 7px 16px; font-size: 1rem; }
.btn-lg { padding: 14px 30px; font-size: 1.4rem; }
.btn:disabled { opacity: 0.4; pointer-events: none; box-shadow: none; }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ''; position: absolute; inset: -60%;
  background: repeating-conic-gradient(from 0deg at 72% 50%, rgba(255, 255, 255, 0.03) 0deg 1.2deg, transparent 1.2deg 6deg);
  animation: spin 180s linear infinite;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 80px 96px; }
.kicker {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 31, 75, 0.12); border: 1px solid rgba(255, 31, 75, 0.35); color: var(--red);
  font-weight: 900; font-size: 0.75rem; letter-spacing: 0.22em;
}
.hero h1 {
  font-family: var(--font-title); font-weight: 400; font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95; letter-spacing: 0.03em; margin: 22px 0 18px;
}
.hl { color: var(--red); text-shadow: 0 0 40px rgba(255, 31, 75, 0.45); }
.slogan {
  display: inline-block; margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--red);
  font-family: var(--font-title); font-size: clamp(1.3rem, 2.6vw, 1.75rem); letter-spacing: 0.05em; line-height: 1.2;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Trois affiches au format 4:3 qui se chevauchent ; survol = l'affiche passe devant */
.collage { position: relative; height: 460px; }
.panel {
  position: absolute; width: 57%; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, z-index 0s 0.1s;
}
.panel img { width: 100%; height: 100%; object-fit: cover; }
.panel:hover { z-index: 5; transform: rotate(0deg) scale(1.05); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 31, 75, 0.4); transition-delay: 0s; }
.panel-1 { top: 0; left: 0; z-index: 2; transform: rotate(-4deg); animation: float 7s ease-in-out infinite; }
.panel-2 { top: 7%; right: 0; z-index: 1; transform: rotate(4deg); animation: float 8s ease-in-out -2s infinite; }
.panel-3 { bottom: 0; left: 21%; z-index: 3; transform: rotate(-1.5deg); animation: float 9s ease-in-out -4s infinite; }
.bubble {
  position: absolute; z-index: 6; top: -2%; right: 2%; padding: 8px 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-family: var(--font-title); font-size: 1.5rem; letter-spacing: 0.06em;
  transform: rotate(8deg); box-shadow: var(--glow); animation: pop 2.4s ease-in-out infinite;
}

.ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.6px) 0 0 / 10px 10px,
    linear-gradient(135deg, #1d1d26, #121218);
  color: #4a4a5a; font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: 0.14em;
}

/* ----- Stats ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -36px; position: relative; z-index: 2; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.stat strong { display: block; font-family: var(--font-title); font-size: 2.3rem; font-weight: 400; line-height: 1; letter-spacing: 0.04em; }
.stat span { color: var(--muted); font-size: 0.85rem; font-weight: 700; }

/* ----- Sections ----- */
.section { padding: 88px 0; }
.section-tight { padding: 40px 16px 88px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; margin: 0; letter-spacing: 0.04em; }
.jp { display: block; color: var(--red); font-weight: 900; font-size: 0.8rem; letter-spacing: 0.35em; margin-bottom: 8px; }
.more { font-weight: 700; color: var(--muted); transition: color 0.2s; }
.more:hover { color: var(--red); }

.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), transparent); }
.page-head::before {
  content: ''; position: absolute; inset: -80%;
  background: repeating-conic-gradient(from 0deg at 85% 50%, rgba(255, 255, 255, 0.035) 0deg 1.2deg, transparent 1.2deg 5deg);
}
.page-head .container { position: relative; padding-block: 60px 52px; }
.page-head h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(3rem, 8vw, 4.6rem); line-height: 1; margin: 0; letter-spacing: 0.04em; }
.page-head p { margin: 10px 0 0; color: var(--muted); }

/* ----- Cartes produits ----- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
  animation: rise 0.5s both; animation-delay: calc(var(--i, 0) * 70ms + 0.15s);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 31, 75, 0.55); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 31, 75, 0.25); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.tag {
  position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(11, 11, 15, 0.75); backdrop-filter: blur(6px); border: 1px solid rgba(255, 31, 75, 0.5);
  color: #fff; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em;
}
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px; border-top: 1px solid var(--border); }
.card h3 { margin: 0; font-size: 1.1rem; font-weight: 900; line-height: 1.3; }
.desc { flex: 1; margin: 0; color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.price { font-family: var(--font-title); font-size: 1.7rem; letter-spacing: 0.04em; line-height: 1; }
.stock { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(46, 204, 113, 0.12); color: #4ade80; }
.stock.out { background: rgba(255, 31, 75, 0.12); color: var(--red); }

.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); font-weight: 500; }

/* ----- Boutique : recherche + filtres ----- */
.toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; }
.search {
  flex: 1 1 260px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.search::placeholder { color: #6b6b7a; }
.search:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 31, 75, 0.18); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 700; font-size: 0.88rem; transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: #3a3a48; }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ----- Page produit ----- */
.product-page { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; padding-block: 40px 96px; }
.product-visual { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-info .tag { position: static; display: inline-block; }
.product-info h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 0.98; margin: 16px 0 14px; letter-spacing: 0.03em; }
.product-price { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.product-price .price { font-size: 2.8rem; color: var(--red); }
.product-info > p { color: var(--muted); margin: 0 0 22px; white-space: pre-line; }
.contenu { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.contenu li { padding: 11px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.contenu li::before { content: '✦'; color: var(--red); margin-right: 10px; }
.note { color: var(--muted); font-size: 0.85rem; margin-top: 16px; }
.back { display: inline-flex; gap: 8px; margin-top: 36px; font-weight: 700; color: var(--muted); transition: color 0.2s; }
.back:hover { color: var(--red); }

/* ----- Étapes ----- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px 24px; }
.step-num {
  position: absolute; top: -20px; left: 22px; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--red); color: #fff; border-radius: 12px; box-shadow: var(--glow);
  font-family: var(--font-title); font-size: 1.5rem;
}
.step strong { display: block; font-size: 1.08rem; font-weight: 900; margin: 8px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.section-ink { background: var(--surface); border-block: 1px solid var(--border); }

/* ----- Avis en bulles de dialogue ----- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.review { animation: rise 0.5s both; animation-delay: calc(var(--i, 0) * 70ms + 0.15s); }
.bubble-box { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.bubble-box::before { content: ''; position: absolute; left: 26px; bottom: -11px; width: 20px; height: 20px; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg); }
.stars { color: var(--yellow); font-size: 1.05rem; letter-spacing: 3px; }
.bubble-box p { margin: 6px 0 0; overflow-wrap: anywhere; }
.review-author { display: flex; align-items: center; gap: 10px; margin: 20px 0 0 12px; }
.review-author img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); }
.review-author small { display: block; color: var(--muted); font-size: 0.78rem; }

.review-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 40px; max-width: 640px; }
.review-form h2 { margin: 0 0 12px; }
.review-form .note { margin-top: 0; }
.star-picker { display: flex; gap: 4px; margin-bottom: 14px; }
.star-pick { background: none; border: 0; padding: 2px; font-size: 2.2rem; line-height: 1; color: var(--border); cursor: pointer; transition: color 0.15s, transform 0.15s; }
.star-pick:hover { transform: scale(1.15); }
.star-pick.on { color: var(--yellow); }
.star-pick:focus-visible { outline: 2px solid var(--red); border-radius: 6px; }
.review-text { display: block; width: 100%; resize: vertical; min-height: 110px; }
.review-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }

.support-form .chips { margin-bottom: 18px; }
.support-form .field { display: block; margin-top: 14px; }
.support-form .field span { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.support-form .field .search { display: block; width: 100%; }

/* ----- Accueil : derniers achats ----- */
.purchases { margin-top: 28px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: 16px; }
.purchases-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.15rem; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.buyer-main { display: flex; align-items: center; gap: 14px; }
.buyer-main strong { display: block; font-size: 1.05rem; }
.buyer-pp { object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.buyer-pp.big { width: 64px; height: 64px; }
.buyer-pp.small { width: 44px; height: 44px; display: block; transition: transform 0.15s, border-color 0.15s; }
.buyer-item { color: var(--muted); font-size: 0.92rem; }
.buyer-item em { font-style: normal; color: var(--muted); opacity: 0.75; }
.buyer-row { display: flex; flex-wrap: wrap; gap: 8px; }
.buyer-mini { position: relative; outline: none; }
.buyer-mini:hover .buyer-pp, .buyer-mini:focus .buyer-pp { transform: translateY(-2px); border-color: var(--red); }
.buyer-tip {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; padding: 10px 12px;
  background: #08080b; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; pointer-events: none;
}
.buyer-tip strong { display: block; font-size: 0.9rem; }
.buyer-mini:hover .buyer-tip, .buyer-mini:focus .buyer-tip { opacity: 1; visibility: visible; transform: none; }

/* ----- Boutique : tri et filtres ----- */
.sort-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.shop-sort { flex: none; width: auto; padding-right: 32px; cursor: pointer; }
.shop-count { margin: 0; white-space: nowrap; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.shop-filters { position: sticky; top: 90px; display: grid; gap: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); max-height: calc(100vh - 110px); overflow-y: auto; }
.filter-head { display: flex; justify-content: space-between; align-items: center; }
.filter-head strong { font-size: 1.05rem; }
.filter-group { display: grid; gap: 8px; }
.filter-title { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.filter-check { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; cursor: pointer; color: var(--text); }
.filter-check input { width: 17px; height: 17px; accent-color: var(--red); cursor: pointer; }
.filter-check:hover span { color: #fff; }
.shop-grid { min-width: 0; }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; max-height: none; }
}

/* ----- VIP ----- */
.nav-vip { color: var(--yellow) !important; }
.price-old { color: var(--muted); font-size: 0.8em; font-weight: 500; }
.vip-tag { font-size: 0.7rem; color: var(--yellow); }
.vip-page { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.vip-banner { width: 100%; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.vip-offer { display: grid; gap: 22px; padding: 26px; background: var(--surface); border: 1px solid rgba(255, 212, 0, 0.35); border-radius: 18px; box-shadow: 0 0 40px rgba(255, 212, 0, 0.08); }
.vip-price strong { display: block; font-family: var(--font-title); font-size: 3.6rem; line-height: 1; color: var(--yellow); }
.vip-price span { color: var(--muted); font-weight: 700; }
.vip-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vip-perks li { display: flex; gap: 14px; align-items: flex-start; }
.vip-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.4rem; border-radius: 12px; background: rgba(255, 212, 0, 0.1); border: 1px solid rgba(255, 212, 0, 0.3); }
.vip-perks p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.vip-action { display: grid; gap: 8px; }
.vip-action .note { margin: 0; }
@media (max-width: 860px) { .vip-page { grid-template-columns: 1fr; } }

/* ----- Mes commandes ----- */
.my-orders { display: grid; gap: 10px; max-width: 760px; }
.order-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.order-card > div:first-child { display: grid; gap: 2px; }
.order-card .note { margin: 0; }
.order-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-state { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.order-state.done { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.order-state.wait { color: var(--yellow); background: rgba(255, 212, 0, 0.12); }
.order-state.todo { color: #ff8fa3; background: rgba(255, 31, 75, 0.12); }
.order-state.off { color: var(--muted); background: var(--surface-2); text-decoration: line-through; }

/* ----- Tickets du site ----- */
.my-tickets { margin-bottom: 28px; max-width: 640px; }
.my-tickets h2 { margin: 0 0 12px; }
.ticket-list { display: grid; gap: 8px; }
.ticket-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.2s; }
.ticket-item:hover { border-color: var(--red); }
.ticket-item div { display: grid; }
.ticket-state { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.ticket-state.open { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.ticket-box { max-width: 760px; display: grid; gap: 14px; margin-top: 18px; }
.ticket-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ticket-top h2 { margin: 0 0 4px; }
.ticket-order { padding: 10px 14px; border-radius: 10px; background: rgba(255, 212, 0, 0.07); border: 1px solid rgba(255, 212, 0, 0.25); color: #e9dca0; font-size: 0.9rem; }
.ticket-thread { display: grid; gap: 10px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.ticket-msg { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); max-width: 85%; justify-self: end; }
.ticket-msg.staff, .ticket-msg.bot { justify-self: start; }
.ticket-msg.staff { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.08); }
.ticket-msg.bot { background: transparent; border-style: dashed; }
.ticket-msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-msg-head .note { margin: 0; }
.ticket-msg p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-msg .msg-tag { padding: 1px 6px; border-radius: 6px; font-size: 0.65rem; font-weight: 900; color: #8ec5ff; background: rgba(59, 130, 246, 0.18); }
.ticket-composer .review-form-foot { margin-top: 8px; }
.proof-box { display: grid; gap: 10px; padding: 16px; border-radius: 12px; border: 1px solid rgba(255, 31, 75, 0.45); background: rgba(255, 31, 75, 0.06); }
.proof-box .note { margin: 0; }
.proof-box.review-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.07); }
.proof-box.waiting { border-color: rgba(234, 179, 8, 0.45); background: rgba(234, 179, 8, 0.07); color: #e9dca0; }
.ticket-attach img { display: block; max-width: 240px; max-height: 170px; margin-top: 8px; border-radius: 10px; border: 1px solid var(--border); object-fit: contain; }

.rating { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rating-score { font-family: var(--font-title); font-size: 5rem; line-height: 1; color: var(--red); text-shadow: 0 0 40px rgba(255, 31, 75, 0.4); }

/* ----- Pied de page ----- */
.footer { background: #08080b; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 36px; }
.footer-brand { font-family: var(--font-title); font-weight: 400; font-size: 1.9rem; letter-spacing: 0.05em; }
.footer p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.footer-jp { font-weight: 900; letter-spacing: 0.3em; color: var(--red); opacity: 0.8; }

/* ----- Notification ----- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 480px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  border-left: 4px solid var(--muted); box-shadow: var(--shadow); font-weight: 500;
  animation: rise 0.3s both;
}
.toast.success { border-left-color: #4ade80; }
.toast.error { border-left-color: var(--red); }

/* ----- Transition entre pages ----- */
#transition { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.t-panel { position: absolute; inset: -10% -40%; transform: translateX(-140%) skewX(-18deg); }
.t-red { background: var(--red); }
.t-ink {
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.05) 0deg 1.2deg, transparent 1.2deg 5deg),
    #050507;
}
.t-sfx {
  position: absolute; top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-10deg);
  font-weight: 900; font-size: clamp(3.5rem, 12vw, 8rem); color: #fff; letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(255, 31, 75, 0.8), 6px 6px 0 var(--red);
}
#transition.in .t-red { animation: wipe-in 0.38s var(--ease) forwards; }
#transition.in .t-ink { animation: wipe-in 0.38s 0.07s var(--ease) forwards; }
#transition.in .t-sfx { animation: sfx-in 0.25s 0.22s forwards; }
#transition.out .t-ink { animation: wipe-out 0.42s var(--ease) forwards; }
#transition.out .t-red { animation: wipe-out 0.42s 0.07s var(--ease) forwards; }
#transition.out .t-sfx { animation: sfx-out 0.18s forwards; }

/* Apparition du contenu de chaque page */
.page-enter > * { animation: rise 0.55s both; }
.page-enter > *:nth-child(2) { animation-delay: 0.08s; }
.page-enter > *:nth-child(3) { animation-delay: 0.16s; }
.page-enter > *:nth-child(4) { animation-delay: 0.24s; }
.page-enter > *:nth-child(n+5) { animation-delay: 0.32s; }

/* Petit éclat au clic */
.burst {
  position: fixed; z-index: 200; width: 56px; height: 56px; margin: -28px 0 0 -28px; pointer-events: none;
  background: repeating-conic-gradient(var(--red) 0deg 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 36%, #000 37%, #000 62%, transparent 63%);
  mask: radial-gradient(circle, transparent 36%, #000 37%, #000 62%, transparent 63%);
  animation: burst 0.38s ease-out forwards;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes pop { 50% { scale: 1.07; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes wipe-in { from { transform: translateX(-140%) skewX(-18deg); } to { transform: translateX(0) skewX(-18deg); } }
@keyframes wipe-out { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(140%) skewX(-18deg); } }
@keyframes sfx-in { to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); } }
@keyframes sfx-out { from { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.6) rotate(-6deg); } }
@keyframes burst { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ----- Mobile ----- */
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 6px; }
  .account { margin-left: auto; }
  .hero-inner, .product-page { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 48px 72px; gap: 32px; }
  .collage { height: 320px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .product-page { gap: 32px; padding-top: 28px; }
}

/* ----- Téléphone ----- */
@media (max-width: 600px) {
  /* En-tête compact : logo + compte sur une ligne, menu sur une ligne qui défile au doigt */
  .topbar-inner { gap: 6px 10px; padding-block: 8px 0; min-height: 0; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand-icon { width: 34px; height: 34px; }
  .account .btn-sm { padding: 6px 12px; font-size: 0.85rem; }
  .user { gap: 8px; font-size: 0.85rem; }
  .user > span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user img { width: 30px; height: 30px; }
  .nav {
    justify-content: flex-start; gap: 0; padding-top: 2px; margin-inline: -16px; padding-inline: 8px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); /* « ça défile » */
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; white-space: nowrap; padding: 10px 10px; font-size: 0.92rem; }

  /* Titres et espacements plus serrés */
  .page-head .container { padding-block: 34px 28px; }
  .page-head h1 { font-size: 2.6rem; }
  .section { padding: 56px 0; }
  .section-tight { padding: 24px 16px 64px; }
  .section-head { margin-bottom: 22px; }
  .hero-inner { padding-block: 32px 64px; }
  .collage { height: 240px; }
  .stat { padding: 14px 16px; }
  .stat strong { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .btn-lg { padding: 12px 22px; font-size: 1.2rem; }

  /* Boutique : recherche et tri l'un sous l'autre, filtres repliables */
  .toolbar { gap: 10px; margin-bottom: 18px; }
  .toolbar .search { flex-basis: 100%; }
  .sort-label { flex: 1 1 100%; min-width: 0; }
  .toolbar .shop-sort { flex: 1 1 auto; min-width: 0; width: 100%; }
  .shop-count { display: none; }
  .shop-layout { gap: 16px; }
  .shop-filters { padding: 14px; }
  .shop-filters:not([open]) { gap: 0; }

  /* Formulaires, tickets, commandes */
  .review-form { padding: 18px; margin-bottom: 28px; }
  .ticket-box { margin-top: 12px; gap: 12px; }
  .ticket-top { flex-direction: column-reverse; gap: 8px; }
  .ticket-msg { max-width: 94%; padding: 9px 12px; }
  .ticket-thread { max-height: 60vh; }
  .ticket-attach img { max-width: 100%; }
  .proof-box { padding: 14px; }
  .proof-box.review-cta .btn { width: 100%; }
  .review-form-foot { flex-wrap: wrap; }
  .review-form-foot .btn { flex: 1; }
  .order-card { padding: 14px; }
  .order-side { width: 100%; justify-content: space-between; }
  .ticket-item { padding: 12px 14px; }

  /* VIP, derniers achats, pied de page, notifications */
  .vip-offer { padding: 20px; }
  .vip-price strong { font-size: 2.8rem; }
  .vip-action .btn { width: 100%; }
  .purchases { padding: 16px; }
  .buyer-pp.big { width: 54px; height: 54px; }
  .buyer-pp.small { width: 40px; height: 40px; }
  .buyer-tip { min-width: 0; width: max-content; max-width: calc(100vw - 48px); }
  .buyer-row .buyer-mini:nth-child(n+5) .buyer-tip { left: auto; right: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding-block: 28px; }
  .toast { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; transform: none; flex-wrap: wrap; }
  .hero h1 { margin: 16px 0 14px; }
  .lead { font-size: 1rem; margin-bottom: 24px; }
  .actions .btn { flex: 1; }
}

/* Filtres de la boutique : repliés sur téléphone, bouton pour les ouvrir */
.filter-toggle { display: none; }
@media (max-width: 860px) {
  .filter-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 0.85rem; }
  .shop-filters:not(.open) .filter-group, .shop-filters:not(.open) .filter-reset { display: none; }
  .shop-filters .filter-group:last-child { grid-template-columns: 1fr 1fr; gap: 8px 12px; } /* univers sur 2 colonnes */
  .shop-filters .filter-title { grid-column: 1 / -1; }
  .filter-check { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
