/* S3 Roleplay — couche de design v1
   Charger APRES assets/css/style.css dans includes/header.php.
   Uniquement du CSS : aucun effet sur PHP, MySQL, Discord ou Tebex. */

:root {
  --bg: #080810;
  --panel: #17121f;
  --panel2: #21172c;
  --pink: #ff329b;
  --pink2: #ff83c2;
  --text: #fcf9ff;
  --muted: #bdb3c9;
  --line: #50304d;
  --s3-violet: #9455f4;
  --s3-radius: 18px;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 46% 35% at 92% 0%, rgba(132, 48, 132, .2), transparent 78%),
    radial-gradient(ellipse 42% 24% at 0% 60%, rgba(78, 41, 126, .12), transparent 78%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #ff329b; color: #fff; }
:focus-visible { outline: 3px solid #ff90d0; outline-offset: 4px; }
a, button, input { -webkit-tap-highlight-color: transparent; }

.site-header {
  height: 84px;
  border-bottom: 1px solid rgba(255, 255, 255, .085);
  background: rgba(9, 8, 17, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 6px 40px rgba(0, 0, 0, .18);
}
.brand { font-size: 14px; letter-spacing: 2.2px; }
.brand-mark {
  border-radius: 14px;
  background: linear-gradient(130deg, #ff429f 5%, #be2ad2 52%, #7939f1);
  box-shadow: 0 9px 28px rgba(255, 50, 155, .26), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.nav { gap: 22px; }
.nav a:not(.nav-cta) { position: relative; transition: color .2s ease; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid rgba(255, 75, 170, .58);
  border-radius: 11px;
  background: rgba(255, 50, 155, .09);
  transition: background .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { background: rgba(255, 50, 155, .16); box-shadow: 0 0 20px rgba(255, 50, 155, .14); }

.hero {
  min-height: 615px;
  padding: 90px max(8vw, 24px);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(8, 8, 16, .96) 0%, rgba(8, 8, 16, .87) 49%, rgba(8, 8, 16, .32) 100%),
    radial-gradient(ellipse 45% 64% at 81% 43%, rgba(204, 32, 145, .37), transparent 80%),
    radial-gradient(ellipse 29% 48% at 74% 61%, rgba(93, 42, 203, .27), transparent 82%),
    #080810;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .23;
  background-image: linear-gradient(rgba(255, 255, 255, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .065) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
}
.hero-content { max-width: 740px; }
.eyebrow { color: #ff8bcb; letter-spacing: 3.5px; }
.hero h1 { font-size: clamp(44px, 6.3vw, 84px); letter-spacing: -3px; line-height: 1.07; }
.hero h1 span, .page-hero h1 span {
  color: #ff4da7;
  background: linear-gradient(105deg, #ff86c9 0%, #ff329b 49%, #c063ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.hero p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.75; }
.hero-mark {
  right: 4%;
  color: rgba(255, 45, 155, .055);
  -webkit-text-stroke: 1.5px rgba(255, 108, 194, .25);
  filter: drop-shadow(0 0 24px rgba(255, 48, 160, .12));
  user-select: none;
  pointer-events: none;
}

.btn {
  border-radius: 12px;
  padding: 13px 23px;
  min-height: 46px;
  font-size: 13px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-primary {
  background: linear-gradient(110deg, #ff349a, #c52ad6 66%, #9146ee);
  box-shadow: 0 8px 28px rgba(255, 45, 155, .27), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-outline { border-color: rgba(255, 137, 204, .48); background: rgba(255,255,255,.035); }
.btn:hover { transform: translateY(-3px); filter: brightness(1.1); }
.btn-primary:hover { box-shadow: 0 12px 34px rgba(255, 45, 155, .34); }
.btn-outline:hover { background: rgba(255, 80, 165, .09); border-color: var(--pink2); }

.section { padding: 78px max(8vw, 24px); }
.section.compact { padding-top: 24px; }
.section-heading { margin-bottom: 40px; }
.section-heading h2 {
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.18;
  letter-spacing: -1px;
}
.feature-grid { gap: 20px; }
.panel {
  border: 1px solid rgba(212, 125, 199, .19);
  border-radius: var(--s3-radius);
  background: linear-gradient(143deg, rgba(39, 27, 45, .98), rgba(18, 16, 27, .98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .19), inset 0 1px 0 rgba(255,255,255,.035);
  padding: 29px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.panel:hover { transform: translateY(-4px); border-color: rgba(255, 104, 191, .43); box-shadow: 0 22px 47px rgba(0,0,0,.29); }
.panel h3 { font-size: 20px; line-height: 1.32; letter-spacing: -.3px; }
.panel p { color: var(--muted); line-height: 1.75; }
.feature-icon { color: #ff75c0; font-size: 31px; }

.page-hero { padding: 88px 24px 44px; }
.page-hero h1 { letter-spacing: -2px; line-height: 1.09; }
.page-hero p { line-height: 1.75; }
.notice { border-radius: 16px; border-color: rgba(255, 125, 188, .35); background: rgba(75, 22, 55, .36); }
.product { min-height: 215px; }
.product-tag { color: #ff8ecb; }
.product strong { font-size: 18px; }

.form-wrap { padding: 56px 20px; }
.form-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 118, 196, .23);
  background: linear-gradient(145deg, #221827, #110e17);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,.34), 0 0 36px rgba(201, 50, 155, .05);
}
.form-card input {
  border-radius: 11px;
  min-height: 46px;
  border-color: rgba(255, 160, 205, .24);
  background: #0a0811;
}
.form-card input:focus { border-color: #ff72bd; box-shadow: 0 0 0 3px rgba(255, 50, 155, .15); }
.alert { border-radius: 11px; }
.account-panel { max-width: 730px; }
.account-panel p { align-items: baseline; }

.s3-home-news .news-grid .panel { min-height: 245px; }
.s3-home-news .news-link { color: #ff9ad0; }
.s3-home-news .news-date { color: #eaa2d6; }
.site-footer { background: rgba(9,8,16,.58); border-top-color: rgba(255,255,255,.085); }

@media (max-width: 960px) {
  .nav { gap: 13px; font-size: 13px; }
  .feature-grid { gap: 14px; }
  .panel { padding: 22px; }
}
@media (max-width: 720px) {
  .site-header { height: 68px; }
  .nav {
    top: 68px;
    padding: 22px 24px 24px;
    background: rgba(15, 10, 23, .98);
    box-shadow: 0 22px 40px rgba(0,0,0,.32);
    gap: 18px;
  }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; }
  .hero { min-height: 520px; padding: 70px 24px 74px; }
  .hero::before { opacity: .11; }
  .hero h1 { letter-spacing: -2px; }
  .hero-mark { right: -8%; top: 30%; font-size: 210px; }
  .section { padding: 56px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .page-hero { padding: 62px 20px 25px; }
  .form-wrap { padding: 42px 16px; }
  .account-panel p { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .panel, .nav a, .nav-cta { transition: none; }
  .btn:hover, .panel:hover { transform: none; }
}
