/* ============================================================
   HeritasRP — Feuille de style unique
   Dark mode premium · accent orange brûlé · glow · glassmorphism
   ============================================================ */

/* ---------- Polices auto-hébergées (conforme RGPD) ---------- */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/oswald-500.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/oswald-600.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/oswald-700.woff2") format("woff2");
}

/* ---------- Tokens de design ---------- */
:root {
  --accent: #d8612c;          /* orange vif (phoenix) */
  --accent-deep: #9c2f16;     /* rouge braise (bas des flammes) */
  --accent-highlight: #f4b23a;/* or lumineux (haut des flammes) */
  --accent-soft: rgba(216, 97, 44, 0.12);
  --gold: #f4b23a;

  --surface: #101215;         /* fond général */
  --surface-raised: #181b1f;  /* cartes / panneaux */
  --ink: #f0f0f2;             /* texte principal */
  --muted: #9aa0a8;           /* texte secondaire */
  --line: #2a2e34;            /* bordures discrètes */

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Oswald", "Arial Narrow", var(--font-body);

  --container: 1120px;
  --radius: 16px;
  --grad-brand: linear-gradient(
    180deg,
    var(--accent-highlight) 0%,
    var(--accent) 58%,
    var(--accent-deep) 100%
  );
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
}
button {
  font: inherit;
  cursor: pointer;
}
/* l'attribut [hidden] doit l'emporter sur les display des composants */
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Arrière-plan : halos lumineux ---------- */
/* Dégradés radiaux statiques (rasterisés une fois) au lieu de blur(150px)
   sur des éléments : rendu quasi identique, coût GPU négligeable. */
.glow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(
      42rem 42rem at 50% -10rem,
      rgba(216, 97, 44, 0.2),
      transparent 62%
    ),
    radial-gradient(
      32rem 32rem at calc(100% + 4rem) 40%,
      rgba(156, 47, 22, 0.18),
      transparent 60%
    ),
    radial-gradient(
      34rem 34rem at -6rem 100%,
      rgba(216, 97, 44, 0.1),
      transparent 60%
    ),
    var(--surface);
}
.glow-bg span {
  display: none;
}

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.section--tight {
  padding-top: 0;
}
.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* ---------- Typographie titres ---------- */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.h-xl {
  font-size: clamp(3rem, 9vw, 5.5rem);
}
.h-lg {
  font-size: clamp(2rem, 5vw, 3rem);
}
.h-md {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40ch;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: filter 0.2s, transform 0.2s, border-color 0.2s, color 0.2s,
    background 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--grad-brand);
  color: var(--surface);
  box-shadow: 0 0 50px -16px var(--accent);
}
.btn--primary:hover {
  filter: brightness(1.08);
}
.btn--secondary {
  background: rgba(24, 27, 31, 0.6);
  border-color: rgba(216, 97, 44, 0.3);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn--secondary:hover {
  border-color: rgba(216, 97, 44, 0.6);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: rgba(216, 97, 44, 0.45);
}
.btn--lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.05rem;
}
.btn--block {
  width: 100%;
}

/* ---------- Cartes verre dépoli ---------- */
.card {
  background: rgba(22, 25, 29, 0.82);
  border: 1px solid rgba(216, 97, 44, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px -22px rgba(0, 0, 0, 0.85);
  padding: 1.6rem;
}
.card--hover {
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card--hover:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 97, 44, 0.45);
  box-shadow: 0 0 55px -20px var(--accent);
}
.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.icon-badge svg {
  width: 24px;
  height: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 97, 44, 0.25);
  background: rgba(24, 27, 31, 0.6);
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(16, 18, 21, 0.8);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.brand .mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  background: url("../img/brand/logo-h.png") center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(216, 97, 44, 0.55));
}
.brand .accent {
  color: var(--accent);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}
.nav-cta {
  display: none;
}
.burger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--ink);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger span + span {
  margin-top: 5px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(16, 18, 21, 0.97);
  backdrop-filter: blur(12px);
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
  height: auto;
}
.mobile-menu a {
  padding: 0.8rem 0.85rem;
  border-radius: 10px;
  font-weight: 500;
}
.mobile-menu a[aria-current="page"] {
  color: var(--accent);
}

@media (min-width: 860px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }
  .burger {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding-top: 2rem;
  overflow: hidden;
}
/* Fond : Los Santos (GTA V) en noir & blanc, fondu vers le bas */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* image déjà en N&B assombri (traitée en amont) : pas de filter runtime */
  background: url("../img/brand/los-santos.jpg") center 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
/* Voile sombre + teinte braise pour la lisibilité */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
      120% 90% at 72% 18%,
      rgba(216, 97, 44, 0.22),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(16, 18, 21, 0.45) 0%,
      rgba(16, 18, 21, 0.72) 60%,
      var(--surface) 100%
    ),
    linear-gradient(90deg, rgba(16, 18, 21, 0.75) 0%, transparent 65%);
}
.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
}
/* Phoenix décoratif à droite */
.hero__phoenix {
  position: absolute;
  z-index: 2;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(48vw, 560px);
  opacity: 0.55;
  pointer-events: none;
  filter: drop-shadow(0 20px 70px rgba(216, 97, 44, 0.45));
  animation: phoenix-float 7s ease-in-out infinite;
}
@keyframes phoenix-float {
  50% {
    transform: translateY(calc(-50% - 14px));
  }
}
@media (max-width: 900px) {
  .hero__phoenix {
    right: -18%;
    width: 90vw;
    opacity: 0.16;
  }
}
.hero h1 {
  margin-top: 1.2rem;
}
.hero .lead {
  margin-top: 1.2rem;
  font-size: 1.25rem;
}
.hero .desc {
  margin-top: 0.6rem;
  max-width: 46ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

/* compteur joueurs */
.live-dot {
  position: relative;
  width: 10px;
  height: 10px;
}
.live-dot::before,
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}
.live-dot::before {
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.count-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Grilles ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--2 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: 1fr;
}
.grid--4 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.section-head {
  max-width: 44ch;
  margin-bottom: 2.5rem;
}
.section-head p {
  margin-top: 1rem;
}

/* stats accueil */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.stats dd {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

/* ---------- Bloc ticket ---------- */
.ticket {
  position: relative;
  overflow: hidden;
}
.ticket::after {
  content: "";
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
  filter: blur(90px);
}
.ticket__grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .ticket__grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .ticket__grid .ticket__cta {
    justify-self: end;
  }
}

/* ---------- Bande sociale ---------- */
.social-strip {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.social-icons a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 14px;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s, border-color 0.3s;
}
.social-icons a:hover {
  color: var(--accent);
}
.social-icons svg {
  width: 24px;
  height: 24px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  transition: gap 0.2s;
}
.link-arrow:hover {
  gap: 0.7rem;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- Communauté ---------- */
.channel {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.channel .icon-badge {
  width: 56px;
  height: 56px;
}
.channel .icon-badge svg {
  width: 28px;
  height: 28px;
}
.channel p {
  flex: 1;
  margin-top: 0.5rem;
}

/* embed click-to-load */
.embed-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  border: 1px dashed rgba(216, 97, 44, 0.35);
  border-radius: var(--radius);
  background: rgba(24, 27, 31, 0.6);
  padding: 2rem;
  min-height: 360px;
}
.embed-consent p.provider {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.embed-consent .msg {
  max-width: 42ch;
  font-size: 0.92rem;
  color: var(--muted);
}
.embed-frame {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Forum ---------- */
.forum-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(24, 27, 31, 0.5);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.chip:hover {
  color: var(--ink);
}
.chip.is-active {
  background: var(--grad-brand);
  color: var(--surface);
  border-color: transparent;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(24, 27, 31, 0.6);
  color: var(--ink);
  font: inherit;
}
.search input::placeholder {
  color: var(--muted);
}
.search input:focus {
  border-color: rgba(216, 97, 44, 0.5);
  outline: none;
}
@media (min-width: 640px) {
  .forum-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .search {
    width: 16rem;
  }
}
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card h3 {
  margin-top: 1rem;
  font-size: 1.3rem;
  transition: color 0.2s;
}
.article-card:hover h3 {
  color: var(--accent);
}
.article-card p {
  flex: 1;
  margin-top: 0.5rem;
}
.article-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding-block: 3rem;
}

/* ---------- Boutique ---------- */
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product.is-featured {
  border-color: rgba(216, 97, 44, 0.5);
}
.product .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--grad-brand);
  color: var(--surface);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product h3 {
  margin-top: 0.5rem;
  font-size: 1.3rem;
}
.product p {
  flex: 1;
  margin-top: 0.5rem;
}
.product .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.product .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
}

/* ---------- Pages éditoriales / légales ---------- */
.page-header {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: 0.5rem;
}
.page-header h1 {
  margin-top: 0.75rem;
}
.page-header .lead {
  margin-top: 1rem;
  max-width: 60ch;
}
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb [aria-current] {
  color: var(--ink);
}

.prose {
  max-width: 70ch;
}
.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  scroll-margin-top: 5rem;
}
.prose h3 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-top: 1.75rem;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose p {
  margin-top: 1rem;
}
.prose ul,
.prose ol {
  margin-top: 1rem;
  padding-left: 1.4rem;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-top: 0.4rem;
}
.prose li::marker {
  color: var(--accent);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose hr {
  margin-block: 2.5rem;
  border: none;
  border-top: 1px solid var(--line);
}
.prose blockquote {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(24, 27, 31, 0.5);
  color: var(--muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.prose th {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.prose td {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  background: rgba(16, 18, 21, 0.6);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer-col h3 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.footer-col ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-about p {
  margin-top: 1rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-social {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  color: var(--muted);
}
.footer-social a:hover {
  color: var(--accent);
}
.footer-social svg {
  width: 20px;
  height: 20px;
}
.disclaimer {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.disclaimer .copy {
  margin-top: 1rem;
}

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: 760px;
  margin-inline: auto;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(216, 97, 44, 0.25);
  background: rgba(24, 27, 31, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.9);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner h2 {
  font-size: 1.15rem;
}
.cookie-banner p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.cookie-actions .btn {
  flex: 1;
}
.cookie-prefs {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.cookie-prefs[hidden] {
  display: none;
}
.cookie-prefs label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
}
.cookie-prefs input {
  margin-top: 0.3rem;
}
@media (min-width: 560px) {
  .cookie-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.notfound .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 20vw, 11rem);
  line-height: 1;
}

/* ---------- Animations reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   AJOUTS V2
   ============================================================ */

/* ---------- Badges du hero (statut, joueurs, discord) ---------- */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.hero__badges .pill {
  gap: 0.45rem;
}
.pill.status {
  font-weight: 600;
}
.pill.status .live-dot::before,
.pill.status .live-dot::after {
  background: var(--accent);
}
.pill.status[data-state="checking"] .live-dot::before,
.pill.status[data-state="checking"] .live-dot::after {
  background: #c9a24a;
}
.pill.status[data-state="offline"] {
  border-color: rgba(150, 60, 45, 0.45);
}
.pill.status[data-state="offline"] .live-dot::before {
  animation: none;
  background: #8a8f98;
}
.pill.status[data-state="offline"] .live-dot::after {
  background: #8a8f98;
}

/* "RP" doré dans le titre du hero */
.brand-rp {
  color: var(--gold);
  margin-left: 0.12em;
}

/* ---------- Section "Rejoindre en 3 étapes" ---------- */
.steps {
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 0.5rem;
}
.step .step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1.25rem;
}
.step p {
  margin-top: 0.5rem;
}
.step .link-arrow {
  margin-top: 1rem;
}

/* ---------- Galerie d'ambiance ---------- */
.gallery {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
  }
}
.gallery figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 0;
  min-height: 180px;
}
.gallery.gallery--feature figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(1.05) contrast(1.02);
}
.gallery figure:hover img {
  transform: scale(1.06);
}
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(8, 9, 11, 0.85));
}

/* ---------- FAQ (accordéon natif) ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 25, 29, 0.5);
  padding: 0 1.25rem;
  margin-top: 0.75rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.25s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding-bottom: 1.1rem;
  color: var(--muted);
}
.faq-item .faq-body p + p {
  margin-top: 0.75rem;
}

/* ---------- Équipe / staff ---------- */
.team {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
}
.member {
  text-align: center;
}
.member .avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--surface);
  background: var(--grad-brand);
  box-shadow: 0 0 34px -12px var(--accent);
}
.member h3 {
  font-size: 1.15rem;
}
.member .role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}
.member p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
}
