:root {
  --bg: #0f1f3b;
  --bg-alt: #132648;
  --card: #1a2f56;
  --line: rgba(232, 178, 74, 0.16);
  --text: #f2f4f8;
  --muted: #a7b3c9;
  --gold-1: #f6cf6a;
  --gold-2: #d9952f;
  --gold-3: #8a4a12;
  --gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  --radius: 14px;
  --font-title: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: linear-gradient(160deg, #13284d 0%, var(--bg) 45%, #0b1a33 100%) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold-1); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }

.gold {
  background: var(--gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--font-title);
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem;
  color: var(--gold-1); margin-bottom: 12px;
}
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 22px 0 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--gold); color: #1a0f03;
  padding: 14px 26px; border-radius: 10px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn--ghost {
  background: transparent; color: var(--gold-1);
  box-shadow: inset 0 0 0 2px var(--gold-2);
  clip-path: none;
}
.btn--ghost:hover { background: rgba(217, 149, 47, 0.12); }
.btn--small { padding: 10px 18px; font-size: 0.85rem; }

.link { color: var(--gold-1); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.link i { transition: transform .2s; }
.link:hover i, .team:hover .link i { transform: translateX(4px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 31, 59, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; }
.nav__brand span { color: var(--gold-1); }
.nav__brand em { font-style: normal; color: var(--text); }
.nav__links { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.nav__brand span { white-space: nowrap; }
.nav__links a:not(.btn) { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--gold-1); }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.4rem; cursor: pointer; padding: 8px; }

/* Hero */
.hero { position: relative; padding: 80px 0 100px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(217, 149, 47, 0.25), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px; opacity: .25;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__logo img { width: 100%; max-width: 440px; margin-left: auto; filter: drop-shadow(0 20px 60px rgba(217, 149, 47, 0.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head h2 { position: relative; padding-bottom: 18px; }
.section__head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--gold); border-radius: 2px; }
.section__head .muted { margin-top: 16px; }

/* News */
.news {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; max-width: 820px;
}
.news__badge {
  flex: none; width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold); color: #1a0f03; font-size: 1.6rem;
}
.news__tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-1); }
.news h3 { margin: 6px 0 10px; }
.news p { color: var(--muted); margin-bottom: 14px; }

/* Story */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p { color: var(--muted); margin-top: 18px; }
.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 28px; display: grid; gap: 26px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--bg-alt), 0 0 18px rgba(246, 207, 106, .5);
}
.timeline span { font-family: var(--font-title); font-weight: 700; color: var(--gold-1); text-transform: uppercase; letter-spacing: .06em; }
.timeline p { margin-top: 2px; }

/* Teams */
.teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .25s, border-color .25s;
}
.team::before {
  content: ""; position: absolute; inset: 0; background: var(--gold); opacity: 0; transition: opacity .25s;
  mask: linear-gradient(#000, transparent 70%); -webkit-mask: linear-gradient(#000, transparent 70%);
}
.team:hover { transform: translateY(-6px); border-color: var(--gold-2); }
.team:hover::before { opacity: .08; }
.team > * { position: relative; }
.team__icon { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; color: var(--gold-1); background: rgba(217, 149, 47, .12); margin-bottom: 22px; }
.team p { color: var(--muted); margin: 10px 0 20px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; padding: 40px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong {
  display: block; font-family: var(--font-title); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }

/* Socials */
.socials { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.socials a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  color: var(--muted); transition: all .2s;
}
.socials i { font-size: 1.8rem; color: var(--gold-1); }
.socials a:hover { color: var(--text); border-color: var(--gold-2); transform: translateY(-4px); }

/* Partners */

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.review__quote { font-size: 1.6rem; color: var(--gold-2); }
.review blockquote { color: var(--muted); flex: 1; }
.review figcaption { border-top: 1px solid var(--line); padding-top: 16px; }
.review figcaption strong { display: block; font-family: var(--font-title); font-size: 1.1rem; }
.review figcaption span { font-size: .85rem; color: var(--muted); }

/* CTA */
.cta { background: radial-gradient(ellipse at center, rgba(217, 149, 47, .18), transparent 65%), var(--bg-alt); border-top: 1px solid var(--line); }
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta__inner p { color: var(--muted); max-width: 56ch; }
.cta__inner .hero__cta { justify-content: center; margin-top: 10px; }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer__social { display: flex; gap: 16px; font-size: 1.15rem; color: var(--muted); }
.footer__social a:hover { color: var(--gold-1); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__logo img { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .split { grid-template-columns: 1fr; }
  .hero__logo { order: -1; }
  .hero__logo img { max-width: 240px; margin: 0 auto; }
  .teams, .reviews { grid-template-columns: 1fr; }
  .socials { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav__links .btn + .btn { margin-top: 10px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; max-height: calc(100vh - 72px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; justify-content: center; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .stats { grid-template-columns: 1fr; }
  .news { flex-direction: column; padding: 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ===== Pages internes ===== */
.nav__links a.active { color: var(--gold-1) !important; }

.page-hero { position: relative; padding: 72px 0 56px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .hero__glow { inset: -60% -10% auto auto; width: 50vw; height: 50vw; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero p.lead { margin: 16px 0 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-1); }

/* Cartes membres */
.group { margin-bottom: 64px; }
.group:last-child { margin-bottom: 0; }
.group__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 26px; }
.group__title h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pill {
  display: inline-block; font-family: var(--font-title); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--gold-1);
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gold-2); background: rgba(217, 149, 47, .08);
}
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.member {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; transition: transform .25s, border-color .25s;
}
.member:hover { transform: translateY(-5px); border-color: var(--gold-2); }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.member__body { padding: 16px 12px 18px; }
.member h3 { font-size: 1.15rem; }
.member p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.member--empty { border-style: dashed; }
.member--empty img { opacity: .45; }
.member--empty h3 { color: var(--muted); font-style: italic; }
.member--featured { border-color: var(--gold-2); box-shadow: 0 0 0 1px var(--gold-2), 0 12px 40px rgba(217, 149, 47, .15); }
.member--featured p { color: var(--gold-1); }

/* Bientôt */
.soon { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.soon img { width: 140px; border-radius: 24px; }
.soon p { color: var(--muted); max-width: 52ch; }

/* Palmarès */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter {
  font: 600 .9rem var(--font-title); text-transform: uppercase; letter-spacing: .06em;
  background: var(--card); color: var(--muted); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.filter:hover { color: var(--text); border-color: var(--gold-2); }
.filter.is-active { background: var(--gold); color: #1a0f03; border-color: transparent; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.result {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  transition: border-color .2s, transform .2s;
}
a.result:hover { border-color: var(--gold-2); transform: translateY(-3px); }
.result img { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #000; }
.result__body { flex: 1; min-width: 0; }
.result h3 { font-size: 1.02rem; }
.result h3 i { font-size: .75rem; color: var(--muted); margin-left: 6px; }
.result__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: .88rem; color: var(--muted); }
.result__cash { color: var(--gold-1); font-weight: 600; }
.rank {
  flex: none; min-width: 58px; text-align: center; font-family: var(--font-title); font-weight: 700; font-size: .95rem;
  padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--muted);
}
.rank--1 { background: var(--gold); color: #1a0f03; }
.rank--2 { background: linear-gradient(135deg, #f1f1f1, #9da3ab); color: #15171a; }
.rank--3 { background: linear-gradient(135deg, #e9a46b, #8c4a1f); color: #1d0e04; }
.empty { color: var(--muted); padding: 24px 0; }

/* Histoire */
.chapters-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chapters-nav a { font-size: .9rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; transition: all .2s; }
.chapters-nav a:hover { color: var(--gold-1); border-color: var(--gold-2); }
.story { max-width: 780px; }
.chapter { position: relative; padding-left: 36px; border-left: 2px solid var(--line); padding-bottom: 56px; }
.chapter:last-of-type { padding-bottom: 8px; }
.chapter::before {
  content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(246, 207, 106, .5);
}
.chapter__date { font-family: var(--font-title); color: var(--gold-1); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.chapter h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 6px 0 18px; }
.chapter p { color: var(--muted); margin-bottom: 14px; }
.chapter strong { color: var(--text); font-weight: 600; }
.aside {
  margin: 22px 0; padding: 18px 22px; border-radius: var(--radius);
  background: rgba(217, 149, 47, .07); border: 1px solid var(--line); border-left: 3px solid var(--gold-2);
}
.aside p { margin: 0; }
.aside__title { font-family: var(--font-title); color: var(--gold-1); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 6px !important; }
.story__end { margin-top: 40px; padding: 28px; text-align: center; border: 1px dashed var(--gold-2); border-radius: var(--radius); }
.story__end p { color: var(--gold-1); font-family: var(--font-title); font-size: 1.2rem; }

/* Cartes équipes avec visuel */
.team__img { margin: -34px -28px 22px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.team__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.team:hover .team__img img { transform: scale(1.05); }

/* Logos partenaires */
.section__more { margin-top: 36px; display: flex; justify-content: center; }

@media (max-width: 600px) {
  .members { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .results { grid-template-columns: 1fr; }
  .chapter { padding-left: 24px; }
}
.result[hidden] { display: none; }

/* Sponsors */
.sponsors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sponsor {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .25s, transform .25s;
}
.sponsor:hover { border-color: var(--gold-2); transform: translateY(-4px); }
.sponsor__logo {
  flex: none; width: 140px; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #22396a, #0b1a33); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.sponsor__logo img { width: 100%; height: 100%; object-fit: contain; }
.sponsor h3 { margin: 12px 0 8px; font-size: 1.5rem; }
.sponsor p { color: var(--muted); margin-bottom: 16px; }
@media (max-width: 960px) { .sponsors { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .sponsor { flex-direction: column; } .sponsor__logo { width: 120px; } }

/* Crédit développeur */
.footer__brand { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.credit { font-size: .78rem; color: var(--muted); padding-bottom: 3px; transition: color .2s; }
.credit strong { color: var(--gold-1); font-weight: 600; }
.credit:hover { color: var(--text); }
@media (max-width: 600px) { .footer__brand { justify-content: center; } }
