/* ---------------------------------------------------------
   Gaïa — panel d'inscription
   Palette : #0b1710 (sous-bois), #1d3a26 (mousse),
             #e2c07a (or), #cfe8b0 (glow tendre),
             #f1ead4 (parchemin), #b3462f (alerte discrète)
--------------------------------------------------------- */

:root {
  --forest-black: #0b1710;
  --moss: #16311f;
  --moss-light: #234b2e;
  --gold: #e2c07a;
  --gold-dim: #a98a4c;
  --glow: #bfe6a0;
  --parchment: #f1ead4;
  --parchment-dim: #cfc6a8;
  --error: #d97a63;
  --error-bg: rgba(160, 60, 40, 0.18);
  --ok: #bfe6a0;
  --ok-bg: rgba(120, 180, 90, 0.16);
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--forest-black);
  font-family: 'Spectral', serif;
  color: var(--parchment);
}

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 20px 48px;
  background:
    linear-gradient(180deg, rgba(6,14,9,0.55) 0%, rgba(6,14,9,0.78) 55%, rgba(4,10,6,0.92) 100%),
    url('bg_gaia.png') center 18% / cover no-repeat;
  overflow: hidden;
}

.scene__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(191,230,160,0.16) 0%, rgba(191,230,160,0) 70%);
  filter: blur(10px);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin-top: 220px;
  padding: 40px 40px 30px;
  background: linear-gradient(180deg, rgba(15,32,20,0.92), rgba(8,20,12,0.95));
  border: 1px solid rgba(226, 192, 122, 0.35);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(191,230,160,0.06),
    0 30px 70px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(226,192,122,0.12);
  backdrop-filter: blur(3px);
}

/* Corner runes — the signature motif */
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  opacity: 0.75;
}
.panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.panel::after   { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.panel__title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(226,192,122,0.35);
}

.panel__subtitle {
  text-align: center;
  margin: 6px 0 0;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glow);
  opacity: 0.85;
}

.panel__lede {
  text-align: center;
  margin: 16px auto 26px;
  max-width: 320px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--parchment-dim);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.field input {
  font-family: 'Spectral', serif;
  font-size: 0.96rem;
  color: var(--parchment);
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(226,192,122,0.25);
  border-radius: 2px;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: rgba(241,234,212,0.35);
}

.field input:focus {
  border-color: var(--glow);
  box-shadow: 0 0 0 3px rgba(191,230,160,0.15);
}

.cta {
  margin-top: 6px;
  padding: 13px 18px;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c1a10;
  background: linear-gradient(180deg, #ecd497, var(--gold));
  border: none;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(226,192,122,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover  { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(226,192,122,0.35); }
.cta:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.cta:active { transform: translateY(0); }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 3px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.notice p, .notice ul { margin: 4px 0 0; padding-left: 0; }
.notice ul { list-style: none; }
.notice li::before { content: "· "; color: inherit; }

.notice--ok    { background: var(--ok-bg);    border: 1px solid rgba(191,230,160,0.4); color: var(--ok); }
.notice--error { background: var(--error-bg); border: 1px solid rgba(217,122,99,0.4);  color: var(--error); }

.notice strong { color: var(--parchment); font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.notice__rune {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 2px;
}

.panel__foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(241,234,212,0.4);
}

@media (max-width: 480px) {
  .panel { margin-top: 200px; padding: 32px 22px 26px; }
  .field-row { grid-template-columns: 1fr; }
  .panel__title { font-size: 2rem; }
}

/* ---------------------------------------------------------
   Topbar — logo, navigation, bouton Discord
--------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(6,14,9,0.82) 0%, rgba(6,14,9,0.5) 80%, rgba(6,14,9,0) 100%);
  backdrop-filter: blur(6px);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar__logo {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px rgba(226,192,122,0.35));
  flex-shrink: 0;
}

.topbar__name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(226,192,122,0.3);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.topbar__nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.topbar__nav a:hover,
.topbar__nav a.is-active { color: var(--gold); }
.topbar__nav a:hover::after,
.topbar__nav a.is-active::after { transform: scaleX(1); }

.topbar__discord {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  padding: 4px 2px;
  color: var(--parchment-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar__discord:hover { color: #8f97f5; }

.topbar__toggle-input { display: none; }
.topbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  margin-left: auto;
}
.topbar__toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  display: block;
}

@media (max-width: 760px) {
  .topbar__toggle { display: flex; }
  .topbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 20px;
    margin-left: 0;
    background: linear-gradient(180deg, rgba(8,18,11,0.98), rgba(6,14,9,0.98));
    border-bottom: 1px solid rgba(226,192,122,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .topbar__nav a { padding: 8px 0; width: 100%; }
  .topbar__discord { margin: 8px 0 0; }
  .topbar__toggle-input:checked ~ .topbar__nav { max-height: 320px; }
}

/* ---------------------------------------------------------
   Hero — page d'accueil
--------------------------------------------------------- */

.scene--home {
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 40px 0;
  padding: 48px 44px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: linear-gradient(180deg, rgba(15,32,20,0.88), rgba(8,20,12,0.92));
  border: 1px solid rgba(226,192,122,0.35);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(191,230,160,0.06),
    0 30px 70px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(226,192,122,0.12);
  backdrop-filter: blur(3px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  opacity: 0.75;
}
.hero::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero::after   { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(191,230,160,0.4);
  background: var(--ok-bg);
  color: var(--glow);
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 3.2rem;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(226,192,122,0.35);
}

.hero__subtitle {
  margin: 8px 0 0;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glow);
  opacity: 0.85;
}

.hero__lede {
  margin: 18px auto 8px;
  max-width: 460px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--parchment-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  color: #0c1a10;
  background: linear-gradient(180deg, #ecd497, var(--gold));
  box-shadow: 0 10px 26px rgba(226,192,122,0.25);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(226,192,122,0.35); }

.btn--discord {
  color: #dfe1ff;
  background: rgba(88,101,242,0.14);
  border: 1px solid rgba(88,101,242,0.55);
}
.btn--discord:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(88,101,242,0.26);
  box-shadow: 0 14px 30px rgba(88,101,242,0.3);
}

.hero__more {
  margin-top: 26px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero__more:hover { color: var(--gold); }

/* ---------------------------------------------------------
   Features — page d'accueil
--------------------------------------------------------- */

.features {
  background: linear-gradient(180deg, var(--forest-black) 0%, var(--moss) 100%);
  padding: 64px 20px 76px;
}

.features__inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  text-align: center;
  padding: 30px 22px;
  background: linear-gradient(180deg, rgba(15,32,20,0.7), rgba(8,20,12,0.7));
  border: 1px solid rgba(226,192,122,0.18);
  border-radius: 4px;
}

.feature-card__rune {
  display: block;
  margin-bottom: 12px;
  font-size: 1.6rem;
  color: var(--gold);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--parchment-dim);
}

@media (max-width: 760px) {
  .features__inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.site-footer {
  background: var(--forest-black);
  border-top: 1px solid rgba(226,192,122,0.15);
  padding: 36px 20px;
}

.site-footer__inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.site-footer__brand em {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: var(--parchment-dim);
  margin-left: 4px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.site-footer__nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer__nav a:hover { color: var(--gold); }

.site-footer__note {
  max-width: 560px;
  margin: 6px auto 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(241,234,212,0.35);
}

/* ---------------------------------------------------------
   Banner — en-tête compact (patch-notes)
--------------------------------------------------------- */

.scene--banner {
  min-height: 300px;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.banner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(191,230,160,0.4);
  background: var(--ok-bg);
  color: var(--glow);
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.banner__title {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(226,192,122,0.35);
}

.banner__lede {
  margin: 12px auto 0;
  max-width: 380px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--parchment-dim);
}

/* ---------------------------------------------------------
   Patch-notes — timeline
--------------------------------------------------------- */

.patchnotes {
  background: var(--forest-black);
  padding: 60px 20px 80px;
}

.patchnotes__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.patchnotes__inner::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 20px;
  left: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(226,192,122,0.35), rgba(226,192,122,0));
}

.patchnotes__empty {
  text-align: center;
  color: var(--parchment-dim);
  font-style: italic;
}

.patch-entry {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 34px;
}

.patch-entry__marker {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(226,192,122,0.6);
  position: relative;
  z-index: 1;
}

.patch-entry__body {
  flex: 1;
  min-width: 0;
  padding: 18px 22px;
  background: rgba(15,32,20,0.55);
  border: 1px solid rgba(226,192,122,0.15);
  border-radius: 4px;
}

.patch-entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.patch-entry__version {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold);
}

.patch-entry__date {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--parchment-dim);
}

.patch-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag--ajout      { color: var(--ok);    border-color: rgba(191,230,160,0.4); background: var(--ok-bg); }
.tag--correctif  { color: var(--error); border-color: rgba(217,122,99,0.4);  background: var(--error-bg); }
.tag--equilibrage{ color: var(--gold);  border-color: rgba(226,192,122,0.4); background: rgba(226,192,122,0.1); }

.patch-entry__list {
  margin: 0;
  padding-left: 18px;
  color: var(--parchment-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}
.patch-entry__list li { margin-bottom: 4px; }

/* ---------------------------------------------------------
   Téléchargement du launcher
--------------------------------------------------------- */

/* Meme gabarit que .btn--primary, en contour : l inscription passe en
   second plan une fois le telechargement mis en avant. */
.btn--secondary {
  color: var(--parchment);
  background: rgba(35, 75, 46, 0.35);
  border: 1px solid var(--gold-dim);
}
.btn--secondary:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(35, 75, 46, 0.55);
}

/* Precisions sous les boutons : poids, plateforme, taille reelle de
   l installation, et l avertissement SmartScreen que l exe non signe
   declenchera chez chaque testeur. */
.hero__notice {
  margin-top: 14px;
  font-family: 'Spectral', serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--parchment-dim);
  opacity: 0.85;
}
.hero__notice strong {
  color: var(--gold);
  font-weight: 500;
}

@media (max-width: 600px) {
  .hero { padding: 38px 26px 34px; margin: 24px 0; }
  .hero__title { font-size: 2.4rem; }
  .banner__title { font-size: 2rem; }
  .patch-entry__tags { margin-left: 0; }
  .site-footer__nav { gap: 14px 18px; }
}
