/* GCM Dyna — direction artistique inspirée de la boutique DynastyRP
   Noir profond, violet #8b3dff, rose #ff3d9a, Anton en titres, Chakra Petch partout ailleurs,
   angles vifs et boutons biseautés. */

:root {
  --bg: #08070a;
  --deep: #0c0912;
  --panel: #0f0d14;
  --surface: #141218;
  --chip: #1c1527;
  --hero: #140c24;
  --line-1: #1d1a24;
  --line-2: #24212b;
  --line-3: #2c2338;
  --line-4: #3a3346;
  --text: #f4f2f7;
  --soft: #c9c4d3;
  --muted: #8f8a99;
  --dim: #6d6780;
  --accent: #ff3d9a;
  --on-accent: #08070a;
  --violet: #8b3dff;
  --violet-hover: #9b57ff;
  --blue: #2f6bff;           /* bouton « Regarder » */
  --blue-hover: #4a7fff;
  --error: #ff7a59;
  --ok: #3ddc97;

  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cut: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  --cut-sm: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
main { flex: 1; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

.container { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; line-height: .95; }
.violet { color: var(--violet); }
.pink { color: var(--accent); }

/* ---------- Bandeau rose ---------- */
.topbar {
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 700; letter-spacing: .78px; text-transform: uppercase;
  text-align: center; padding: 7px 16px;
}
.topbar .blip {
  display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px;
  background: var(--on-accent);
}

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8,7,10,.96);
  /* pas de flou derrière l’en-tête : il coûtait cher à chaque défilement */
  border-bottom: 1px solid var(--line-1);
}
.header-inner { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 42px; height: 42px; display: block; }
.brand span { font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: .3px; }

.nav { display: flex; gap: 28px; }
.nav a {
  padding: 6px 0; border-bottom: 2px solid transparent;
  color: var(--muted); text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.plain-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  text-decoration: none;
}
.plain-link:hover { color: var(--accent); }

.profile {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 22px;
  background: var(--violet); color: #fff; text-decoration: none;
  clip-path: var(--cut-sm);
  font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.profile:hover { background: var(--violet-hover); }
.profile .count {
  display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px;
  background: var(--accent); color: var(--on-accent); font-size: 12px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--body); font-size: 17px; font-weight: 700; letter-spacing: .72px; text-transform: uppercase;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn-accent { background: var(--accent); color: var(--on-accent); clip-path: var(--cut); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-violet { background: var(--violet); color: #fff; clip-path: var(--cut); }
.btn-violet:hover { background: var(--violet-hover); }
.btn-outline {
  height: 44px; padding: 0 16px; font-size: 14px;
  background: transparent; color: var(--text); border: 2px solid var(--text);
}
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-outline.small { height: 34px; padding: 0 12px; font-size: 12px; border-width: 1px; border-color: var(--line-4); color: var(--soft); }
.btn-outline.small:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
.btn-outline.danger { color: var(--accent); border-color: rgba(255,61,154,.45); }
.btn-outline.danger:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.block { width: 100%; }

.more-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.more-link:hover { color: var(--text); }

/* ---------- Petits textes ---------- */
.kicker {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--accent); }

.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--soft); font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.checks span::before { content: "✓"; margin-right: 6px; color: var(--soft); }

.tag {
  display: inline-block; padding: 3px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .88px; text-transform: uppercase; line-height: 1.4;
}
.tag-violet { background: var(--violet); color: #fff; }
.tag-pink { background: var(--accent); color: var(--on-accent); }
.tag-grey { background: var(--chip); color: var(--muted); }

/* ---------- Titres de section ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { margin: 0; font-size: 64px; }
.section-title .violet { margin-left: 14px; }
.lead { margin: 8px 0 0; color: var(--soft); font-size: 17px; max-width: 60ch; }

/* ---------- Panneau (comme « Choisis ton pack ») ---------- */
.picker { background: var(--panel); border: 1px solid var(--line-3); padding: 24px; }
.picker-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.picker-title { margin: 0; font-size: 28px; }

/* ---------- Champs ---------- */
.label {
  display: block; margin: 0 0 7px;
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.input, .select {
  width: 100%; height: 50px;
  background: var(--deep); border: 1px solid var(--line-3); border-radius: 0;
  color: var(--text); font-family: var(--body); font-size: 16px; font-weight: 500;
  padding: 0 14px;
}
.input:hover, .select:hover { border-color: var(--line-4); }
.input:focus, .select:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 1px var(--violet); }
.input::placeholder { color: var(--dim); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field { margin-bottom: 14px; }

.msg { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.msg:empty { display: none; }
.msg.err { color: var(--error); }
.msg.ok { color: var(--ok); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line-1); }
.footer-inner {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 22px;
  color: var(--muted); font-size: 13px; letter-spacing: .5px; text-transform: uppercase;
}

/* ---------- Réaction au clic : le bouton s'enfonce un peu ---------- */
.btn, .profile, .plain-link, .more-link { transition: background-color .15s, color .15s, border-color .15s, filter .15s, transform .09s ease-out; }
.btn:active:not(:disabled), .profile:active { transform: translateY(1px) scale(.97); }
.toggle:active { transform: scale(.94); }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .header-inner { gap: 16px; height: 64px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 22px; }
  .section-title { font-size: 44px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
}

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