/* Style HIKARI Resellz : ciel de nuit, rose Y2K, boutons « sticker » à ombre dure, pétales de sakura.
   Même charte que la page de présentation hikari-resellz. */
:root {
  --night: #150d1b;
  --night-2: #21142b;
  --night-3: #2d1c3a;
  --pink: #ff78b2;
  --pink-hot: #ff4f9e;
  --pink-dim: rgba(255, 120, 178, 0.14);
  --cream: #fbeef3;
  --muted: #bfa9c6;
  --line: rgba(255, 186, 214, 0.16);
  --ink: #1a0d16;
  --ok: #4ad18a;
  --warn: #ffc65c;
  --bad: #ff6b6b;
  --info: #8fd3ff;
  --vip: #ffd36e;
  --display: "Dela Gothic One", "Arial Black", "Hiragino Kaku Gothic Pro", sans-serif;
  --body: "Zen Kaku Gothic New", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--night);
  background-image:
    radial-gradient(circle at 85% -5%, rgba(255, 79, 158, 0.28), transparent 42%),
    radial-gradient(circle at 0% 40%, rgba(255, 120, 178, 0.10), transparent 35%);
  background-repeat: no-repeat;
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--cream); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
main { flex: 1; padding: 32px 0 64px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0 0 14px; }
h1 { font-size: clamp(28px, 4.6vw, 44px); }
h2 { font-size: clamp(20px, 2.6vw, 26px); }
h3 { font-size: 19px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin: 0 0 10px; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

/* ── Pétales ── */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.petals i { position: absolute; top: -20px; width: 12px; height: 9px; border-radius: 60% 0 60% 0; background: #ffb3d1; opacity: .6; animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translate(0, -20px) rotate(0deg); }
  50% { transform: translate(60px, 50vh) rotate(180deg); }
  100% { transform: translate(-30px, 105vh) rotate(360deg); }
}

/* ── En-tête ── */
.header { position: sticky; top: 0; z-index: 20; background: rgba(21, 13, 27, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--cream); white-space: nowrap; }
.logo img { width: 44px; height: 44px; border-radius: 12px; transition: transform .3s; }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .02em; }
.logo:hover { color: var(--cream); }
.nav { display: flex; gap: 22px; flex: 1; font-weight: 700; font-size: 15px; }
.nav a { color: var(--muted); position: relative; padding: 6px 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--pink); transition: right .25s; }
.nav a:hover, .nav a.active { color: var(--cream); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.vip { color: var(--vip); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; }
.cart-count { position: absolute; top: -9px; right: -9px; background: var(--cream); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; border: 2px solid var(--ink); }
.menu-toggle { display: none; background: var(--night-2); border: 1px solid var(--line); color: var(--cream); border-radius: 12px; padding: 7px 11px; font-size: 16px; cursor: pointer; }

/* ── Boutons « sticker » ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--body); font-weight: 900; font-size: 16px; text-align: center;
  background: var(--pink); color: var(--ink); padding: 12px 20px; border-radius: 999px; border: 3px solid var(--ink);
  box-shadow: 4px 5px 0 #000; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translate(-1px, -3px) rotate(-1.5deg); box-shadow: 6px 8px 0 #000; color: var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 #000; }
.btn .arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--pink); }
.btn-gold { background: var(--vip); }
.btn-ghost { background: var(--night-2); color: var(--cream); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { color: var(--cream); border-color: var(--pink); box-shadow: 3px 4px 0 #000; }
.btn-danger { background: transparent; color: #ffb4c4; border: 2px solid rgba(255, 107, 107, .5); box-shadow: none; }
.btn-danger:hover { color: #fff; box-shadow: none; transform: none; border-color: var(--bad); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 14px; box-shadow: 3px 4px 0 #000; border-width: 2px; }
.btn-ghost.btn-sm { box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 4px 5px 0 #000, 0 0 0 0 rgba(255, 120, 178, .55); } 50% { box-shadow: 4px 5px 0 #000, 0 0 0 12px rgba(255, 120, 178, 0); } }

/* ── Formulaires ── */
label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
input, select, textarea { width: 100%; background: var(--night); border: 1px solid var(--line); color: var(--cream); border-radius: 14px; padding: 11px 14px; font-size: 16px; font-family: var(--body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-dim); }
input[type="file"] { padding: 9px; }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.inline-form { display: inline; }

/* ── Cartes, alertes, badges ── */
.card { background: var(--night-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card + .card { margin-top: 16px; }
.alert { border-radius: 16px; padding: 13px 16px; margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.alert-success { background: rgba(74, 209, 138, .1); border-color: rgba(74, 209, 138, .4); color: #a7f0c8; }
.alert-error { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .45); color: #ffc2c2; }
.alert-info { background: var(--pink-dim); border-color: rgba(255, 120, 178, .4); color: var(--cream); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--night-3); color: var(--muted); white-space: nowrap; }
.badge-success { background: rgba(74, 209, 138, .16); color: #a7f0c8; }
.badge-warning { background: rgba(255, 198, 92, .16); color: var(--warn); }
.badge-danger { background: rgba(255, 107, 107, .16); color: #ffb4b4; }
.badge-info { background: rgba(143, 211, 255, .14); color: var(--info); }
.badge-accent { background: var(--pink); color: var(--ink); }
.badge-gold { background: var(--vip); color: var(--ink); }
.badge-muted { background: var(--night-3); color: var(--muted); }

/* ── Accueil ── */
.hero { padding: 40px 0 36px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero > div { min-width: 0; }
.hero h1 { font-size: clamp(38px, 7vw, 78px); margin-bottom: 0; }
.hero h1 span { display: inline-block; animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.hero h1 span:nth-child(2) { animation-delay: .12s; }
.hero h1 em { font-style: normal; color: var(--pink); display: inline-block; animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) .24s both, wobble 3.5s ease-in-out 1.2s infinite; }
@keyframes pop { from { transform: translateY(22px) scale(.92); } to { transform: none; } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-2px); } }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 18px 0 0; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sun { position: relative; aspect-ratio: 1; max-width: 340px; width: 100%; justify-self: center; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.sun .disc { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff9cc6, var(--pink-hot) 70%); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 60px rgba(255, 79, 158, .40); } 50% { box-shadow: 0 0 110px rgba(255, 79, 158, .70); } }
.sun .ring { position: absolute; inset: -4% -10%; border: 4px solid var(--cream); border-radius: 50%; transform: rotate(-14deg) scaleY(.38); opacity: .85; }
.sun .kanji { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: clamp(110px, 18vw, 200px); color: var(--cream); text-shadow: 6px 8px 0 var(--ink); }
.sun .vert { position: absolute; right: -6%; top: 10%; writing-mode: vertical-rl; font-family: var(--display); font-size: 22px; letter-spacing: .25em; color: var(--pink); }
.star { position: absolute; width: 34px; height: 34px; background: var(--cream); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 2.2s ease-in-out infinite; }
.star.s1 { left: 0; bottom: 14%; } .star.s2 { right: 6%; top: 0; width: 22px; height: 22px; animation-delay: .8s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0 48px; }
.tile { border-radius: 22px; padding: 26px; border: 1px solid var(--line); background: var(--night-2); display: grid; gap: 10px; align-content: start; color: var(--cream); transition: transform .25s, border-color .25s; }
.tile:hover { transform: translateY(-6px) rotate(-.5deg); color: var(--cream); border-color: var(--pink); }
.tile.vip { background: linear-gradient(160deg, rgba(255, 120, 178, .22), var(--night-2) 55%); border-color: rgba(255, 120, 178, .5); }
.tile .emoji { font-family: var(--display); font-size: 40px; color: var(--pink); line-height: 1; }
.tile h3 { font-size: 22px; margin: 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.section-title h1, .section-title h2 { margin: 0; }

/* ── Grille de produits ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: var(--night-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: var(--cream); transition: transform .2s, border-color .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--pink); color: var(--cream); box-shadow: 6px 8px 0 #000; }
.product-card.vip:hover { border-color: var(--vip); }
.product-card .img { aspect-ratio: 1; background: var(--night); position: relative; }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .img .badge { position: absolute; top: 10px; left: 10px; box-shadow: 2px 3px 0 #000; }
.product-card .img .badge:not([class*="badge-"]) { background: rgba(21, 13, 27, .85); color: var(--cream); }
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card .name { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .brand { color: var(--muted); font-size: 14px; }
.product-card .price { margin-top: auto; padding-top: 8px; font-family: var(--display); font-size: 21px; color: var(--pink); font-variant-numeric: tabular-nums; }
.no-img { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 34px; }

/* ── Filtres ── */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; margin-bottom: 24px; align-items: end; }
.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }

/* ── Fiche produit ── */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; }
.product > * { min-width: 0; }
.gallery .main { aspect-ratio: 1; background: var(--night); border-radius: 22px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 8px 10px 0 #000, 0 0 0 1px var(--line); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; margin-top: 16px; }
.thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--night); cursor: pointer; aspect-ratio: 1; }
.thumbs button.active { border-color: var(--pink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price { font-family: var(--display); font-size: 38px; color: var(--pink); margin: 8px 0 18px; }
.specs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.specs li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: 15px; }
.specs li span:first-child { color: var(--muted); }
.qty { max-width: 130px; }

/* ── Panier et commande ── */
.layout-2 { display: grid; grid-template-columns: 1fr 370px; gap: 24px; align-items: start; }
.layout-2 > * { min-width: 0; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img, .cart-line .no-img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--night); font-size: 22px; }
.cart-line .title { font-weight: 700; margin-top: 4px; }
.cart-line .controls { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cart-line .controls input { width: 76px; padding: 7px 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.summary .total { font-family: var(--display); font-size: 22px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.summary .total span:last-child { color: var(--pink); }
.note { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--night); border: 1px solid rgba(255, 120, 178, .4); color: var(--muted); font-size: 14px; margin-top: 14px; }
.note::before { content: ""; width: 40px; height: 32px; border-radius: 11px; background: var(--pink); animation: wobble 2.8s ease-in-out infinite; }
.methods { display: grid; gap: 10px; }
.method { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; background: var(--night); color: var(--cream); font-weight: 700; font-size: 16px; margin: 0; transition: border-color .2s, transform .2s; }
.method:hover { transform: translateX(4px); }
.method input { width: auto; accent-color: var(--pink); }
.method:has(input:checked) { border-color: var(--pink); background: var(--pink-dim); }

/* ── Compte ── */
.auth { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.auth > * { min-width: 0; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.timeline { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 20px; }
.timeline .step { flex: 1; min-width: 120px; text-align: center; padding: 11px; border-radius: 999px; background: var(--night-2); color: var(--muted); font-weight: 700; font-size: 14px; border: 1px solid var(--line); }
.timeline .step.done { color: var(--ink); background: var(--pink); border: 2px solid var(--ink); box-shadow: 3px 4px 0 #000; }
.rib { white-space: pre-wrap; background: var(--night); border: 2px dashed var(--pink); border-radius: 16px; padding: 14px; font-family: var(--mono); font-size: 14px; overflow-x: auto; }
.copy { word-break: break-all; }

/* ── Bandeau final et pied de page ── */
.final { display: grid; gap: 18px; padding: 36px; margin-top: 56px; border-radius: 28px; background: linear-gradient(135deg, var(--pink-hot), var(--pink)); background-size: 200% 200%; animation: shift 6s ease-in-out infinite; color: var(--ink); border: 3px solid var(--ink); box-shadow: 10px 12px 0 #000; }
@keyframes shift { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.final h2 { color: var(--ink); margin: 0; font-size: clamp(26px, 4vw, 40px); }
.final .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.final .btn { background: var(--ink); color: var(--cream); }
.final .btn:hover { color: var(--cream); }
.footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 14px; position: relative; z-index: 1; }
.footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .product, .layout-2, .auth { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .q { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 20px 0 24px; }
  .sun { max-width: 220px; order: -1; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 4px; background: var(--night-2); border-bottom: 1px solid var(--line); padding: 12px 20px; }
  .nav.open { display: flex; }
  .header .container { gap: 10px; }
  .logo b { display: none; }
  .header-actions .label { display: none; }
  .tiles, .row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .body { padding: 10px 12px 12px; }
  .product-card .price { font-size: 17px; }
  .final { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .petals { display: none; }
}
