/* ============================================================
   ACCUEIL v2 — hero plein écran centré, sections aérées
   (Rejoindre / Pourquoi / Chiffres / Explorer / Discord)
   ============================================================ */

.hp {
  position: relative;
  z-index: 3;
  color: var(--vp-ink);
  --hp-lime: var(--vp-orange);
  --hp-lime-2: #3a9fe0;
  --hp-lime-deep: #175a8f;
  --hp-card: rgba(14, 19, 32, .86);
  --hp-card-line: color-mix(in srgb, var(--vp-green) 20%, transparent);
  --hp-head: var(--vp-font-title);
}

/* ---------- HERO ---------- */
.vp-hero.hp-hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.hp-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 48%, rgba(7, 11, 20, .5) 0%, rgba(7, 11, 20, 0) 70%),
    linear-gradient(180deg, rgba(7, 11, 20, .35) 0%, rgba(7, 11, 20, .05) 30%, rgba(11, 15, 23, .55) 72%, var(--vp-section) 100%);
}
.hp-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 24px 130px calc(var(--vp-rail-space) + 24px);
  box-sizing: border-box;
}

.hp-logo {
  width: clamp(118px, 15vw, 168px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 34px;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--vp-orange) 55%, transparent),
    0 22px 50px rgba(0, 0, 0, .45),
    0 0 60px color-mix(in srgb, var(--vp-green) 35%, transparent);
  animation: hp-float 5s ease-in-out infinite, hp-in .7s var(--vp-ease) both;
}
.hp-title {
  margin: 22px 0 0;
  font-family: var(--hp-head);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 30%, #8ad0f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(14, 42, 70, .9)) drop-shadow(0 14px 28px rgba(0, 0, 0, .5));
  animation: hp-in .7s .08s var(--vp-ease) both;
}
.hp-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
  color: #e6f1f8;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  animation: hp-in .7s .14s var(--vp-ease) both;
}
.hp-tag::before,
.hp-tag::after {
  content: "";
  width: clamp(32px, 7vw, 84px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7));
}
.hp-tag::after { transform: scaleX(-1); }

/* bouton adresse */
.hp-ip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 20px 40px 20px 30px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #8cd7fb 0%, var(--hp-lime) 45%, var(--hp-lime-2) 100%);
  color: #0b1f32;
  font-family: var(--vp-font-btn);
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .6),
    0 6px 0 var(--hp-lime-deep),
    0 18px 38px rgba(0, 0, 0, .4);
  transition: transform .16s var(--vp-ease), box-shadow .16s var(--vp-ease);
  animation: hp-in .7s .2s var(--vp-ease) both;
}
.hp-ip:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 8px 0 var(--hp-lime-deep), 0 22px 44px rgba(0, 0, 0, .45); }
.hp-ip:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 2px 0 var(--hp-lime-deep), 0 10px 22px rgba(0, 0, 0, .4); }
.hp-ip:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hp-ip-v {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hp-ip-ico { position: relative; display: inline-grid; width: 26px; height: 26px; }
.hp-ip-ico svg { grid-area: 1 / 1; width: 100%; height: 100%; transition: opacity .2s, transform .25s var(--vp-ease); }
.hp-ico-check { opacity: 0; transform: scale(.5); }
.is-copied .hp-ico-copy { opacity: 0; transform: scale(.5); }
.is-copied .hp-ico-check { opacity: 1; transform: none; }

/* pastille joueurs en ligne */
.hp-live [data-players] { display: inline-flex; align-items: center; gap: 6px; }
.hp-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
  background: #5d93ff;
}
.hp-live i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: hp-ping 2s infinite;
}
.hp-live.is-offline i { background: #ff6b6b; }
.hp-live.is-offline i::after { animation: none; opacity: 0; }
.hp-ip .hp-live {
  position: absolute;
  top: -13px;
  right: -14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #111e39;
  color: #d0ebff;
  font-family: "Nunito", sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 2px var(--hp-lime), 0 6px 14px rgba(0, 0, 0, .35);
  transform: rotate(3deg);
}

.hp-ip-hint {
  display: grid;
  margin: 18px 0 0;
  color: rgba(232, 241, 248, .78);
  font-size: .88rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  animation: hp-in .7s .26s var(--vp-ease) both;
}
.hp-ip-hint > span { grid-area: 1 / 1; transition: opacity .2s; }
.hp-hint-done { opacity: 0; color: var(--hp-lime); }
.hp-hero:has(.hp-ip.is-copied) .hp-hint-idle { opacity: 0; }
.hp-hero:has(.hp-ip.is-copied) .hp-hint-done { opacity: 1; }

.hp-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
/* animé pilule par pilule et pas sur le conteneur : un parent en fondu bloque leur flou */
.hp-quick > * { animation: hp-in .7s .32s var(--vp-ease) backwards; }
.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(8, 12, 22, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #e6f1f8;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s var(--vp-ease);
}
.hp-pill:hover { color: #fff; background: rgba(8, 12, 22, .78); border-color: color-mix(in srgb, var(--vp-orange) 50%, transparent); transform: translateY(-2px); }
.hp-pill i { color: var(--hp-lime); }
.hp-pill-disc { background: rgba(88, 101, 242, .85); border-color: rgba(255, 255, 255, .22); }
.hp-pill-disc:hover { background: #5865f2; border-color: rgba(255, 255, 255, .4); }
.hp-disc-ico { width: 20px; height: 20px; flex: none; }

.hp-scroll {
  position: absolute;
  z-index: 2;
  left: calc(50% + 59px);
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.hp-scroll::after {
  content: "";
  order: 1;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .4);
}
.hp-scroll i { order: 2; font-size: 1.15rem; animation: hp-bounce 1.8s ease-in-out infinite; }
.hp-scroll:hover { color: var(--hp-lime); }

/* ---------- SECTIONS ---------- */
.hp-rest {
  position: relative;
  width: calc(100% + var(--vp-rail-space));
  margin-left: calc(-1 * var(--vp-rail-space));
  padding: 24px 0 110px var(--vp-rail-space);
  /* Fonds marins : dans ::before (forest.css), teintée par le thème */
  isolation: isolate;
  box-sizing: border-box;
}
.hp-sec {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 72px 28px 0;
  box-sizing: border-box;
  scroll-margin-top: 20px;
}
.hp-head { text-align: center; margin: 0 auto 40px; max-width: 40em; }
.hp-k {
  margin: 0 0 10px;
  color: var(--hp-lime);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hp-head h2,
.hp-disc h2 {
  margin: 0;
  font-family: var(--hp-head);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hp-head > p:not(.hp-k) {
  margin: 14px 0 0;
  color: var(--vp-ink-soft);
  font-size: 1.05rem;
  font-weight: 600;
}

/* étapes */
.hp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: none;
}
.hp-step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 22px;
  border: 1px solid var(--hp-card-line);
  background: var(--hp-card);
}
.hp-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -14px;
  width: 10px;
  height: 10px;
  border-top: 2px solid color-mix(in srgb, var(--vp-orange) 55%, transparent);
  border-right: 2px solid color-mix(in srgb, var(--vp-orange) 55%, transparent);
  transform: rotate(45deg);
}
.hp-step-n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, #8cd7fb, var(--hp-lime-2));
  color: #0b1f32;
  font-family: var(--hp-head);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 3px 0 var(--hp-lime-deep);
}
.hp-step h3 { margin: 18px 0 6px; font-family: var(--hp-head); font-size: 1.2rem; font-weight: 700; }
.hp-step p { margin: 0; color: var(--vp-ink-soft); font-weight: 600; line-height: 1.5; }
.hp-step b { color: var(--vp-ink); }

.hp-addr {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid var(--hp-card-line);
  background: rgba(8, 11, 20, .8);
  overflow: hidden;
}
.hp-addr-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px;
  border-right: 1px solid var(--hp-card-line);
}
.hp-addr-field:last-child { border-right: 0; }
.hp-addr-label { color: var(--vp-ink-faint); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hp-addr-val { font-family: var(--hp-head); font-size: 1.15rem; font-weight: 700; }
.hp-addr-val.hp-live { font-family: "Nunito", sans-serif; font-size: 1rem; font-weight: 800; }
.hp-addr-copy {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 10px 8px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--vp-orange) 35%, transparent);
  background: color-mix(in srgb, var(--vp-orange) 8%, transparent);
  color: var(--vp-ink);
  font-family: var(--vp-font-btn);
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.hp-addr-copy:hover { background: color-mix(in srgb, var(--vp-orange) 16%, transparent); border-color: var(--hp-lime); }
.hp-addr-copy .hp-ip-ico { width: 20px; height: 20px; color: var(--hp-lime); }

/* bento « pourquoi » */
.hp-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hp-card {
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px solid var(--hp-card-line);
  background: var(--hp-card);
  transition: transform .22s var(--vp-ease), border-color .22s;
}
.hp-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--vp-orange) 45%, transparent); }
.hp-card-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: color-mix(in srgb, var(--vp-orange) 12%, transparent);
  color: var(--hp-lime);
  font-size: 1.3rem;
}
.hp-card h3 { margin: 18px 0 8px; font-family: var(--hp-head); font-size: 1.22rem; font-weight: 700; }
.hp-card p { margin: 0; color: var(--vp-ink-soft); font-weight: 600; line-height: 1.55; }
.hp-card-big {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, color-mix(in srgb, var(--vp-orange) 18%, transparent), transparent 70%),
    linear-gradient(160deg, rgba(30, 57, 90, .75), rgba(14, 20, 34, .85));
  border-color: color-mix(in srgb, var(--vp-orange) 35%, transparent);
}
.hp-card-big h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; letter-spacing: -.02em; }
.hp-card-big p { font-size: 1.04rem; }
.hp-card-big .hp-mark {
  margin-top: auto;
  padding-top: 28px;
  color: var(--hp-lime);
  font-family: var(--hp-head);
  font-weight: 700;
  font-size: .95rem;
}
.hp-bento > .hp-card:nth-child(n + 2) { grid-column: span 1; }

/* chiffres */
.hp-figs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(1084px, calc(100% - 56px));
  margin-top: 72px;
  padding: 0;
  border-radius: 22px;
  border: 1px solid var(--hp-card-line);
  background: rgba(10, 15, 26, .88);
}
.hp-fig {
  padding: 30px 16px;
  text-align: center;
  border-left: 1px solid var(--hp-card-line);
}
.hp-fig:first-child { border-left: 0; }
.hp-fig b {
  display: block;
  font-family: var(--hp-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
}
.hp-fig span {
  display: block;
  margin-top: 8px;
  color: var(--vp-ink-faint);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hp-figs .hp-fig:nth-child(2) b { color: var(--hp-lime); }

/* raccourcis */
.hp-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hp-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--hp-card-line);
  background: var(--hp-card);
  color: var(--vp-ink);
  text-decoration: none;
  transition: transform .22s var(--vp-ease), border-color .22s, background .22s;
}
.hp-link:hover { color: var(--vp-ink); transform: translateY(-2px); border-color: color-mix(in srgb, var(--vp-orange) 45%, transparent); background: rgba(24, 33, 52, .85); }
.hp-link-txt { flex: 1; min-width: 0; }
.hp-link-txt b { display: block; font-family: var(--hp-head); font-size: 1.12rem; font-weight: 700; }
.hp-link-txt span { display: block; margin-top: 2px; color: var(--vp-ink-soft); font-size: .93rem; font-weight: 600; }
.hp-link-go { color: var(--hp-lime); font-size: 1.2rem; transition: transform .22s var(--vp-ease); }
.hp-link:hover .hp-link-go { transform: translateX(4px); }

/* discord */
.hp-disc {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px;
  border-radius: 26px;
  border: 1px solid rgba(140, 150, 255, .35);
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(88, 101, 242, .35), transparent 70%),
    linear-gradient(135deg, rgba(36, 40, 92, .85), rgba(16, 19, 30, .9));
}
.hp-disc-av {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 12px 30px rgba(0, 0, 0, .35);
}
.hp-disc-txt { flex: 1; min-width: 0; }
.hp-disc .hp-k { color: #aab3ff; }
.hp-disc h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hp-disc-txt > p:not(.hp-k) { margin: 10px 0 0; color: #d6dcf5; font-weight: 600; }
.hp-disc-stats { display: flex; flex-wrap: wrap; gap: 18px; font-size: .92rem; }
.hp-disc-stats span { display: inline-flex; align-items: center; gap: 7px; }
.hp-disc-stats i { width: 9px; height: 9px; border-radius: 50%; background: #8a91b4; }
.hp-disc-stats i.is-on { background: #3b59a5; }
.hp-disc-stats b { color: #fff; }
.hp-disc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 54px;
  padding: 0 24px;
  border-radius: 16px;
  background: #5865f2;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 0 #3c45a5, 0 14px 30px rgba(0, 0, 0, .35);
  transition: transform .16s var(--vp-ease), box-shadow .16s var(--vp-ease);
}
.hp-disc-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 #3c45a5, 0 18px 34px rgba(0, 0, 0, .4); }
.hp-disc-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #3c45a5, 0 8px 18px rgba(0, 0, 0, .35); }

/* ---------- ANIMATIONS ---------- */
@keyframes hp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hp-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes hp-ping {
  0% { transform: scale(1); opacity: .6; }
  70%, 100% { transform: scale(3); opacity: 0; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .hp-hero-inner { padding: 60px 20px 190px; }
  .hp-scroll { left: 50%; bottom: 112px; }
  .hp-rest { width: auto; margin-left: 0; padding-left: 0; }
  .hp-steps { grid-template-columns: 1fr; }
  .hp-step:not(:last-child)::after { display: none; }
  .hp-step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .hp-step-n { grid-row: span 2; }
  .hp-step h3 { margin: 4px 0 4px; }
  .hp-addr { grid-template-columns: 1fr; }
  .hp-addr-field { border-right: 0; border-bottom: 1px solid var(--hp-card-line); }
  .hp-addr-field:last-child { border-bottom: 0; }
  .hp-bento { grid-template-columns: 1fr 1fr; }
  .hp-card-big { grid-column: 1 / -1; grid-row: auto; }
  .hp-figs { grid-template-columns: 1fr 1fr; }
  .hp-fig:nth-child(3) { border-left: 0; }
  .hp-fig:nth-child(n + 3) { border-top: 1px solid var(--hp-card-line); }
  .hp-disc { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px) {
  .hp-sec { padding: 56px 16px 0; }
  .hp-figs { width: calc(100% - 32px); padding: 0; }
  .hp-ip { padding: 18px 26px 18px 22px; }
  .hp-tag { gap: 10px; font-size: .72rem; letter-spacing: .14em; }
  .hp-tag::before,
  .hp-tag::after { width: 18px; }
  .hp-bento,
  .hp-links { grid-template-columns: 1fr; }
  .hp-disc { padding: 24px; }
  .hp-disc-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-logo, .hp-title, .hp-tag, .hp-ip, .hp-ip-hint, .hp-quick > *, .hp-scroll i, .hp-live i::after { animation: none; }
  .hp-ip, .hp-card, .hp-link, .hp-pill, .hp-disc-btn { transition: none; }
}
