/* Veloria — thème sombre, lisible, responsive */
:root {
  --bg: #0c0e12;
  --bg-elevated: #14181f;
  --bg-card: #1a1f28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaed;
  --text-secondary: #9aa3b2;
  --text-muted: #6b7280;
  --accent: #9ca8ff;
  --accent-soft: rgba(156, 168, 255, 0.12);
  --gold: #c4a574;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', var(--font);
  --header-h: 4rem;
  --max-read: 42rem;
  --wrap: min(1180px, 100% - 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}
a:hover {
  color: #b8c0ff;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  color: var(--text);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(156, 168, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(196, 165, 116, 0.04), transparent 45%),
    var(--bg);
}

.wrap {
  width: var(--wrap);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.wrap.narrow {
  max-width: 720px;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(12, 14, 18, 0.92);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: var(--wrap);
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.brand-accent {
  color: var(--gold);
}
.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0;
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  background: var(--discord) !important;
  color: #fff !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover {
  background: var(--discord-hover) !important;
  color: #fff !important;
}

.nav-panel {
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  border: 1px solid var(--border-strong) !important;
  color: var(--text) !important;
  font-size: 0.85rem !important;
}
.nav-panel:hover {
  border-color: var(--text-secondary) !important;
  color: var(--text) !important;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .site-nav a:last-child {
    border-bottom: none;
  }
  .nav-cta,
  .nav-panel {
    text-align: center;
    margin-top: 0.35rem;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  padding-top: var(--header-h);
  display: flex;
  align-items: flex-end;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-visual--mesh {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(156, 168, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 70%, rgba(196, 165, 116, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, #141922 0%, #0c0e12 45%, #12151c 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.45) 0%, rgba(12, 14, 18, 0.78) 55%, var(--bg) 100%);
}

.hero-wrap {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 8vw, 4.5rem);
  max-width: var(--max-read);
}

.hero-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-intro {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}
.btn-discord:hover {
  background: var(--discord-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ——— Main stack ——— */
.main-stack {
  position: relative;
  z-index: 1;
}

.block {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.block-contrast {
  background: var(--bg-elevated);
}

.block-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.block-header {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.block-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.block-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: var(--max-read);
}
.lead:last-of-type {
  margin-bottom: 0;
}

/* Qu’est-ce que Veloria */
.pillars {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.pillars li {
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pillars-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.pillars-text {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Maps */
.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .map-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.map-card:hover {
  border-color: var(--border-strong);
}

.map-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}
.map-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}
.map-card:hover .map-card-photo {
  transform: scale(1.06);
}
.map-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 14, 18, 0.72) 0%, transparent 45%, rgba(12, 14, 18, 0.35) 100%);
}
.map-card-media--ls::after {
  background: linear-gradient(to top, rgba(30, 40, 56, 0.85) 0%, transparent 42%, rgba(18, 24, 36, 0.4) 100%);
}
.map-card-media--bc::after {
  background: linear-gradient(to top, rgba(44, 38, 28, 0.82) 0%, transparent 40%, rgba(30, 26, 20, 0.45) 100%);
}
.map-card-media--north::after {
  background: linear-gradient(to top, rgba(22, 36, 30, 0.82) 0%, transparent 40%, rgba(14, 26, 22, 0.45) 100%);
}
.map-card-media--cayo::after {
  background: linear-gradient(to top, rgba(15, 35, 44, 0.82) 0%, transparent 40%, rgba(10, 28, 36, 0.45) 100%);
}
.map-card-tag {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  user-select: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 0, 0, 0.9);
  padding: 0.2em 0.45em;
  border-radius: 8px;
  background: rgba(12, 14, 18, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.map-card-main {
  padding: 1.15rem 1.25rem 1.35rem;
}
.map-card-main h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.map-card-main p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fine-print {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Features IA */
.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.feature-card {
  padding: 1.35rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-card-em {
  border-color: rgba(196, 165, 116, 0.35);
  background: linear-gradient(180deg, rgba(196, 165, 116, 0.06), var(--bg-card));
}
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Discord block */
.discord-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .discord-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
  }
}

.discord-aside {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.discord-aside--decorative {
  aspect-ratio: 4 / 3;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(155deg, rgba(88, 101, 242, 0.2) 0%, rgba(41, 44, 58, 0.95) 45%, var(--bg-card) 100%);
  border-color: rgba(88, 101, 242, 0.25);
}
.discord-aside-svg {
  flex-shrink: 0;
  color: #5865f2;
  opacity: 0.92;
}
.discord-aside-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.discord-main .block-title {
  margin-top: 0.25rem;
}
.discord-main > p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 40rem;
}

.checklist {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.checklist li {
  margin-bottom: 0.35rem;
}

.discord-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

/* Split univers */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.split-media--decorative {
  aspect-ratio: 3 / 2;
  min-height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196, 165, 116, 0.12) 0%, var(--bg-card) 50%, rgba(156, 168, 255, 0.08) 100%);
}
.split-media-mark {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(232, 234, 237, 0.12);
  user-select: none;
}
.split-media-mark::first-letter {
  color: var(--gold);
  opacity: 0.35;
}

.split-copy .block-title {
  margin-bottom: 1rem;
}

.prose {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose p {
  margin: 0 0 1rem;
}
.prose p:last-child {
  margin-bottom: 0;
}

.subhead {
  margin: 2rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hub-fetch-banner {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.hub-fetch-banner--loading {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--text-secondary);
}
.hub-fetch-banner--error {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--text);
}
.hub-fetch-banner-text {
  margin: 0 0 0.65rem;
}
.hub-fetch-banner-retry {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.45rem 0.9rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
}
.hub-fetch-banner-retry:hover {
  border-color: var(--text-muted);
}

/* Jobs */
.jobs-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .jobs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.job-card {
  padding: 1.2rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.job-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.job-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.biz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.biz-list li {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.biz-list li:last-child {
  border-bottom: none;
}

/* CTA */
.block-cta {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.cta-inner {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cta-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.cta-text {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.footer-meta {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.footer-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Pense-bête RP */
.rp-cheatsheet {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: rgba(156, 168, 255, 0.06);
}
.rp-cheatsheet-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.rp-cheatsheet-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}
.rp-cheatsheet-lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.rp-cheatsheet-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.rp-cheatsheet-list li {
  margin-bottom: 0.55rem;
}
.rp-cheatsheet-list li:last-child {
  margin-bottom: 0;
}
.rp-cheatsheet-foot {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}
.rp-cheatsheet-foot a {
  font-weight: 600;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
