/* Rey Bot — noir & rouge néon */

/* Polices hébergées sur le site (licence SIL OFL, voir /static/fonts) */
@font-face { font-family: "Chakra Petch"; src: url("/static/fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/static/fonts/chakra-petch-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/static/fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/static/fonts/chakra-petch-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --card: #151517;
  --card-2: #1b1b1e;
  --line: #2a2a2e;
  --text: #f2f2f3;
  --muted: #a3a3ab;
  --red: #ff1a1a;
  --red-2: #d10000;
  --red-glow: rgba(255, 26, 26, .45);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: #232327; border: 1px solid var(--line); border-radius: 6px;
  padding: .1em .4em; font-size: .92em; color: #ffd6d6;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2, .brand, .price b, .section-title, .hero-stats b, .feature h3, .step h3, .step-num,
.price-card h3, .fake-name { font-family: var(--display); font-weight: 700; font-style: italic; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.red { color: var(--red); text-shadow: 0 0 24px var(--red-glow); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ----------------------------------------------------------------- boutons */
.btn {
  font-family: var(--display); letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 12px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--red), var(--red-2));
  color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 30px var(--red-glow);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 12px 40px var(--red-glow); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-ghost { background: transparent; box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--red) inset, 0 0 24px var(--red-glow); }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------- bandeaux */
.test-banner {
  background: repeating-linear-gradient(45deg, #3a2a00, #3a2a00 12px, #2a1e00 12px, #2a1e00 24px);
  color: #ffd27a; text-align: center; font-size: .9rem; padding: .5em 16px;
}

/* -------------------------------------------------------------- navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10,10,11,.8);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.35rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 18px var(--red-glow); }
.brand b { color: var(--text); }
.brand span { color: var(--red); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px;
  background: radial-gradient(60% 70% at 75% 40%, rgba(255,26,26,.18), transparent 70%); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,26,26,.12) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,26,26,.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.pill { display: inline-block; padding: .35em .9em; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255,26,26,.1); border: 1px solid rgba(255,26,26,.35); color: #ffb3b3; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
.hero h1 .red { white-space: nowrap; }
.lead { font-size: 1.15rem; color: #d4d4d8; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 1.8rem; color: var(--text); }
.hero-stats span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-visual { display: flex; justify-content: center; }
.logo-ring { position: relative; width: min(420px, 80vw); aspect-ratio: 1; border-radius: 50%;
  animation: float 6s ease-in-out infinite; }
.logo-ring::before { content: ""; position: absolute; inset: -6%; border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow), transparent 65%); filter: blur(10px); }
.logo-ring img { position: relative; width: 100%; border-radius: 50%; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .logo-ring { animation: none; } html { scroll-behavior: auto; } }

/* --------------------------------------------------------------- highlight */
.highlight { margin-top: 8px; }
.highlight-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  padding: 36px; border-radius: var(--radius); background: linear-gradient(135deg, #1a0d0d, var(--card));
  border: 1px solid rgba(255,26,26,.25); box-shadow: 0 0 60px rgba(255,26,26,.08); }
.highlight-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.highlight-card p { color: #d4d4d8; margin: 0; }
.fake-msg { display: flex; gap: 12px; background: #313338; border-radius: 12px; padding: 16px; font-size: .92rem; }
.fake-avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), #600); font-weight: 800; font-size: .8rem; }
.fake-name { font-weight: 700; color: #fff; margin-bottom: 4px; }
.fake-tag { background: #5865f2; color: #fff; font-size: .62rem; padding: 1px 5px; border-radius: 4px;
  vertical-align: middle; margin-left: 4px; }
.fake-embed { background: #2b2d31; border-left: 4px solid #3ba55c; border-radius: 4px; padding: 10px 12px; }
.fake-embed-title { font-weight: 700; color: #fff; margin-bottom: 4px; }
.fake-embed-text { color: #dbdee1; }

/* -------------------------------------------------------------- sections */
.section { padding: 88px 16px 0; }
.section-title { text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 34em; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature:hover { border-color: rgba(255,26,26,.5); transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(255,26,26,.12); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; background: rgba(255,26,26,.1); border: 1px solid rgba(255,26,26,.3); margin-bottom: 14px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  counter-reset: none; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 24px; }
.step-num { position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--red), var(--red-2)); box-shadow: 0 0 20px var(--red-glow); }
.step h3 { margin-top: 8px; font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ avis */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; color: var(--text); flex: 1; overflow-wrap: anywhere; }
.review figcaption { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.review figcaption img, .review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); }
.review-stars { color: #ffc93c; letter-spacing: 2px; }
.review-stars span { color: var(--line); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ prix */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px 26px; }
.price-card.featured { background: linear-gradient(180deg, #1f0e0e, var(--card) 45%);
  border-color: rgba(255,26,26,.6); box-shadow: 0 0 80px rgba(255,26,26,.2); transform: translateY(-8px); }
.price-card h3 { font-size: 1.45rem; margin: 0; }
.launch { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: .3em .9em; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: linear-gradient(180deg, var(--red), var(--red-2)); box-shadow: 0 0 20px var(--red-glow); }
.price { margin: 18px 0 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price b { font-size: 3rem; color: #fff; text-shadow: 0 0 30px var(--red-glow); }
.price span { color: var(--muted); font-size: 1.05rem; }
.old-price { color: var(--muted); font-size: 1.3rem; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.checks { list-style: none; padding: 0; margin: 12px 0 22px; flex: 1; }
.checks li { padding: 6px 0 6px 30px; position: relative; color: #e4e4e7; font-size: .95rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 20px; height: 20px;
  border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 900;
  background: rgba(255,26,26,.15); color: var(--red); }
.included { text-align: center; color: #d4d4d8; margin: 34px 0 6px; font-size: .95rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted);
  margin-bottom: 16px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: 0 0 auto; }
.secure { text-align: center; color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
.form-error { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(255,26,26,.12);
  border: 1px solid rgba(255,26,26,.4); color: #ffc2c2; font-size: .9rem; }

/* ------------------------------------------------------------------- FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq details[open] { border-color: rgba(255,26,26,.4); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.cta-final { text-align: center; padding: 96px 16px; }
.cta-final h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 24px; }

/* -------------------------------------------------- pages merci / légales */
.page-narrow { max-width: 720px; padding-top: 56px; padding-bottom: 72px; }
.success-card { background: var(--card); border: 1px solid rgba(255,26,26,.35); border-radius: 20px;
  padding: 36px; text-align: center; box-shadow: 0 0 60px rgba(255,26,26,.1); }
.success-icon { font-size: 3rem; }
.success-card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.success-card h2 { margin-top: 32px; font-size: 1.3rem; }
.key-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  margin: 20px 0 8px; padding: 18px; border-radius: 14px; background: #0d0d0e;
  border: 1px dashed rgba(255,26,26,.6); }
.key-box code { font-size: clamp(1rem, 3.6vw, 1.35rem); background: none; border: 0; color: #fff;
  letter-spacing: .04em; word-break: break-all; user-select: all; }
.next-steps { text-align: left; color: #d4d4d8; padding-left: 1.3em; margin: 0 0 24px; }
.next-steps li { margin-bottom: 10px; }
.legal { max-width: 820px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; font-style: normal; }
.legal p, .legal li { color: #d4d4d8; }
.draft { padding: 12px 16px; border-radius: 10px; background: #2a1e00; border: 1px solid #6b4e00;
  color: #ffd27a; font-size: .9rem; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 40px 0 24px; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand p { color: var(--muted); margin: 8px 0 0; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: #6b6b73; font-size: .8rem; margin-top: 28px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 30px; }
  .price-card.featured { transform: none; order: -1; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .logo-ring { width: min(260px, 60vw); }
  .hero-cta, .hero-stats { justify-content: center; }
  .lead { margin: 0 auto; }
  .highlight-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .section { padding-top: 64px; }
  .hero { padding-top: 40px; }
  .highlight-card, .price-card, .success-card { padding: 24px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 18px; }
}

/* ----------------------------------------------------------- prolongation */
.extend-head { text-align: center; padding-bottom: 40px; }
.extend-head .pill { margin-bottom: 14px; }
.spacer { height: 72px; }

/* ------------------------------------------------------------ code promo */
.promo-form { display: flex; justify-content: center; gap: 8px; margin: 30px auto 0; max-width: 360px; }
.promo-form input { flex: 1; min-width: 0; padding: .55em .9em; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: 600 .95rem var(--font); text-transform: uppercase; }
.promo-form input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.promo-ok { text-align: center; color: #7ee2a8; margin: 10px 0 0; font-size: .95rem; }
.promo-form + .form-error { max-width: 460px; margin: 10px auto 0; text-align: center; }

/* ------------------------------------------------------------------ panel */
.panel { padding-top: 40px; padding-bottom: 80px; max-width: 900px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px; }
.panel-head h1 { margin: 0; }
.panel-head h1 a { color: inherit; text-decoration: none; }
.panel-user { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.panel-user img { border-radius: 50%; }
.panel-user form { margin: 0; }
.btn-link { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; padding: 0; }
.panel-login { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  text-align: center; }
.panel-list { padding-left: 20px; }
.panel-list li { margin: 6px 0; }
.panel .muted, .muted { color: var(--muted); }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.guild-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
  transition: border-color .2s; }
.guild-card:hover { border-color: rgba(255,26,26,.5); }
.guild-card img, .guild-letter { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.guild-letter { display: grid; place-items: center; background: var(--card-2); font-weight: 700; }
.guild-card small { display: block; color: var(--muted); }
.panel-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 18px 20px; margin: 0 0 16px; display: grid; gap: 12px; }
.panel-form legend { padding: 0 8px; font-weight: 700; }
.panel-form label { display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.panel-form label.check { display: flex; align-items: center; gap: 10px; color: var(--text); }
.panel-form input[type=text], .panel-form input[type=number], .panel-form select, .panel-form textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; }
.panel-form input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
.panel-form textarea { resize: vertical; }
