/* Palette tirée du logo Dark Majestic */
:root {
  --bg: #000;
  --surface: rgba(110, 168, 255, 0.04);
  --border: rgba(157, 184, 217, 0.14);
  --ice: #9db8d9;
  --text: #e6edf7;
  --muted: #7f8ea3;
  --blue: #6ea8ff;
  --red: #ff3b3b;
  --green: #3ddc6a;
  --accent: var(--blue);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Champ d'étoiles discret */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 35% 72%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 88% 64%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,.25), transparent),
    radial-gradient(1px 1px at 6% 86%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 64% 88%, rgba(61,220,106,.5), transparent),
    radial-gradient(1.5px 1.5px at 22% 44%, rgba(61,220,106,.4), transparent);
}

main, footer { position: relative; z-index: 1; }

main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 16px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3vh 0 3.5vh;
}

.emblem {
  width: min(280px, 28vh, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  animation: breathe 6s ease-in-out infinite;
}
.emblem img {
  width: 100%;
  height: 100%;
  display: block;
  /* fond noir de l'image fondu dans la page */
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 71%);
  mask-image: radial-gradient(circle, #000 62%, transparent 71%);
}
@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(110,168,255,.25)); }
  50%      { filter: drop-shadow(0 0 38px rgba(110,168,255,.5)); }
}

.brand {
  margin-top: 2vh;
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, min(5vw, 5vh), 2.6rem);
  letter-spacing: 0.22em;
  color: var(--ice);
  /* compense l'espacement après la dernière lettre */
  padding-left: 0.22em;
  white-space: nowrap;
}
.brand .r {
  position: relative;
  display: inline-block;
}
.brand .r::after {
  content: "";
  position: absolute;
  left: 8%;
  right: calc(0.22em + 8%); /* l'espacement des lettres est ajouté à droite */
  bottom: -0.25em;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2vh 0 1.6vh;
}
.divider::before,
.divider::after {
  content: "";
  width: min(140px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--muted));
}
.divider::after { background: linear-gradient(90deg, var(--muted), transparent); }
.divider .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.divider .tri {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid var(--green);
  opacity: .85;
}

.lead {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- Grille des thématiques ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* liseré lumineux en haut de la carte */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .6;
  transition: opacity .25s ease;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent),
              0 14px 40px -14px var(--accent);
  outline: none;
}
.card:hover::before { opacity: 1; }

.num {
  font-family: "Michroma", sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.card h2 {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.go {
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card.soon { opacity: .6; }
.card.soon:hover { opacity: 1; }

/* ---------- Pages intérieures ---------- */
.top {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px;
  position: relative;
  z-index: 1;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ice);
  text-decoration: none;
  font-family: "Michroma", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.page {
  max-width: 760px;
  padding: 40px 0;
}
.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.back:hover { color: var(--text); }
.page h1 {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 20px;
}
.page p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Pied de page ---------- */
.foot {
  text-align: center;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .hero { padding: 24px 0 32px; }
  .brand { letter-spacing: 0.14em; padding-left: 0.14em; }
  .brand .r::after { right: calc(0.14em + 8%); }
}

@media (prefers-reduced-motion: reduce) {
  .emblem { animation: none; }
  .card { transition: none; }
}
