/* =========================================================
   Ravenwood RP — feuille de style
   ========================================================= */
:root {
  --night: #0a0c16;
  --night-2: #0f1222;
  --night-3: #161a2e;
  --line: rgba(212, 175, 106, .18);
  --line-strong: rgba(212, 175, 106, .45);
  --gold: #d4af6a;
  --gold-hi: #f3d999;
  --gold-lo: #9b7a3d;
  --wine: #4a0f1a;
  --wine-hi: #7a1c2c;
  --parchment: #f3e6c8;
  --text: #e9e0cc;
  --muted: #a99f8b;
  --discord: #5865f2;

  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-deco: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --font-body: "Cormorant Garamond", Garamond, Georgia, serif;

  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-hi); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.2; margin: 0; color: var(--parchment); }
p { margin: 0; }
::selection { background: var(--gold); color: var(--night); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.eyebrow {
  font-family: var(--font-title);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Boutons ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-title); font-weight: 600; font-size: .95rem; letter-spacing: .08em;
  padding: .95em 1.7em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--parchment); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  color: #1b1307;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 106, .65), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--gold:hover { box-shadow: 0 14px 40px -10px rgba(243, 217, 153, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { border-color: var(--line-strong); background: rgba(10, 12, 22, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(212, 175, 106, .1); }
.btn--discord { background: var(--discord); color: #fff; box-shadow: 0 10px 30px -12px rgba(88, 101, 242, .8); }
.btn--discord:hover { background: #6c77f5; }
.btn--sm { padding: .6em 1.15em; font-size: .82rem; }
.btn--lg { padding: 1.1em 2em; font-size: 1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 12, 22, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { width: min(var(--maxw), 100% - 32px); margin-inline: auto; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; color: var(--parchment); }
.nav__brand img { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.nav__brand em { font-style: normal; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a:not(.btn) {
  font-family: var(--font-title); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); position: relative; padding: 6px 0;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold);
  transition: left .3s ease, right .3s ease;
}
.nav__links > a:not(.btn):hover, .nav__links > a.is-active { color: var(--gold-hi); }
.nav__links > a:not(.btn):hover::after, .nav__links > a.is-active::after { left: 0; right: 0; }
.nav__burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 20px; height: 1.5px; background: var(--gold-hi); transition: transform .3s ease, opacity .3s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate;
  padding: 120px 16px 220px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #1d1a3d 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(74, 15, 26, .45), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 40%, rgba(32, 40, 90, .35), transparent 70%),
    linear-gradient(180deg, #0b0c1c 0%, #0a0c16 100%);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__moon {
  position: absolute; z-index: -1; top: 12%; right: 12%; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7de, #f1dfae 45%, #c9ad70 100%);
  box-shadow: 0 0 60px 20px rgba(243, 217, 153, .25), 0 0 160px 60px rgba(243, 217, 153, .12);
  opacity: .9;
}
.hero__content { position: relative; z-index: 2; max-width: 860px; }
.hero__logo {
  width: min(480px, 82vw, 58vh); height: auto; margin: 14px auto 8px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .65)) drop-shadow(0 0 30px rgba(243, 217, 153, .15));
  animation: float 7s ease-in-out infinite;
}
.hero__title {
  font-family: var(--font-deco); font-size: clamp(1.6rem, 4.2vw, 2.9rem); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold-hi) 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(243, 217, 153, .15);
}
.hero__lead { margin: 18px auto 0; max-width: 660px; font-size: clamp(1.1rem, 2vw, 1.32rem); color: #ddd3bd; }
.hero__lead strong { color: var(--gold-hi); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero__badges { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero__badges li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 12, 22, .45); color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #6fd18b; box-shadow: 0 0 0 0 rgba(111, 209, 139, .6); animation: pulse 2.2s infinite; }
.hero__castle { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 36vh; max-height: 360px; z-index: 0; }
.hero__castle .windows rect { animation: flicker 5s infinite; filter: drop-shadow(0 0 6px rgba(246, 207, 122, .9)); }
.hero__castle .windows rect:nth-child(3n) { animation-delay: -1.7s; }
.hero__castle .windows rect:nth-child(4n) { animation-delay: -3.1s; }
.hero__fog {
  position: absolute; inset: auto 0 0; height: 260px; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 20% 100%, rgba(140, 150, 200, .12), transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 100%, rgba(140, 150, 200, .1), transparent 70%),
    linear-gradient(180deg, transparent, var(--night) 92%);
  animation: fog 18s ease-in-out infinite alternate;
}
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 2s infinite; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 130px) 0; }
.section--alt {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(74, 15, 26, .22), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: 12px; }
.section__intro { margin-top: 6px; color: #cfc5ae; font-size: 1.22rem; }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px auto; color: var(--gold); }
.divider span { height: 1px; width: 80px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { transform: scaleX(-1); }
.divider i { font-style: normal; font-size: .9rem; }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 26, 46, .85), rgba(15, 18, 34, .85));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(243, 217, 153, .55), transparent 40%, transparent 60%, rgba(243, 217, 153, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease;
}
.card:hover::before { opacity: 1; }

/* ---------- Projet ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { padding: 34px 28px; transition: transform .35s ease; }
.feature:hover { transform: translateY(-6px); }
.feature__icon {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 22px;
  color: var(--gold-hi); border: 1px solid var(--line-strong);
  background: radial-gradient(circle, rgba(212, 175, 106, .18), transparent 70%);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.15rem; letter-spacing: .04em; margin-bottom: 10px; }
.feature p { color: #c7bda7; font-size: 1.1rem; }

.stats {
  list-style: none; margin: 70px 0 0; padding: 34px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats li { text-align: center; position: relative; }
.stats li + li::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: var(--line); }
.stats strong { display: block; font-family: var(--font-deco); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--gold-hi); line-height: 1.1; }
.stats span { font-family: var(--font-title); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Parcours ---------- */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(10, 12, 22, .4); }
.path { padding: 40px 30px 36px; position: relative; transition: background .35s ease; }
.path + .path { border-left: 1px solid var(--line); }
.path:hover { background: linear-gradient(180deg, rgba(122, 28, 44, .22), transparent); }
.path__num { display: block; font-family: var(--font-deco); font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 22px; opacity: .85; }
.path h3 { font-size: 1.2rem; letter-spacing: .06em; margin-bottom: 10px; }
.path p { color: #c7bda7; font-size: 1.08rem; }

/* ---------- Systèmes ---------- */
.systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.system { background: var(--night); padding: 30px 30px 28px; transition: background .3s ease; }
.system:hover { background: var(--night-3); }
.system h3 { font-size: 1.02rem; letter-spacing: .06em; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.system h3::before { content: "✦"; color: var(--gold); font-size: .75rem; }
.system p { color: #bfb59f; font-size: 1.06rem; }

/* ---------- Lieux ---------- */
.places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.place {
  --a: #23204a; --b: #0b0c18;
  position: relative; overflow: hidden; padding-top: 189px; border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; align-items: flex-end; isolation: isolate;
  background:
    radial-gradient(ellipse 80% 70% at 80% 10%, var(--a), transparent 70%),
    linear-gradient(180deg, #11132a, var(--b));
  transition: transform .4s ease, border-color .4s ease;
}
.place:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.place::before { /* étoiles */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 22%, #f3d999 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 45% 35%, #fff 50%, transparent 51%);
}
.place::after { /* silhouette */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px; z-index: -1;
  background: var(--sil) bottom center / max(100%, 560px) auto no-repeat;
}
.place__body { padding: 26px 32px 30px; background: linear-gradient(0deg, #07080f 55%, #090a14); width: 100%; position: relative; }
.place__body::before { content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .6; }
.place__body .eyebrow { font-size: .66rem; }
.place h3 { font-size: 1.45rem; margin: 6px 0 8px; }
.place p { color: #cfc5ae; font-size: 1.08rem; max-width: 460px; }
.place--chateau { --a: rgba(74, 40, 120, .55); --sil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'%3E%3Cpath fill='%23090a14' d='M0 200V150h120v-30l15-40 15 40v30h40V90l25-70 25 70v40h30V60l30-60 30 60v70h30V100l20-50 20 50v50h40v-30l15-35 15 35v30h95v50z'/%3E%3Cg fill='%23f6cf7a'%3E%3Crect x='292' y='80' width='5' height='10' rx='2.5'/%3E%3Crect x='310' y='80' width='5' height='10' rx='2.5'/%3E%3Crect x='232' y='110' width='5' height='10' rx='2.5'/%3E%3Crect x='402' y='120' width='5' height='10' rx='2.5'/%3E%3C/g%3E%3C/svg%3E"); }
.place--village { --a: rgba(160, 90, 30, .45); --sil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'%3E%3Cpath fill='%23090a14' d='M0 200v-60l40-35 40 35v-20l35-30 35 30v40h20v-50l45-40 45 40v20l30-25 30 25v-35l40-35 40 35v40l35-30 35 30v-15l35-30 35 30v85z'/%3E%3Cg fill='%23f6cf7a'%3E%3Crect x='30' y='150' width='8' height='10'/%3E%3Crect x='110' y='140' width='8' height='10'/%3E%3Crect x='215' y='130' width='8' height='10'/%3E%3Crect x='238' y='130' width='8' height='10'/%3E%3Crect x='380' y='135' width='8' height='10'/%3E%3Crect x='470' y='150' width='8' height='10'/%3E%3C/g%3E%3C/svg%3E"); }
.place--train { --a: rgba(122, 28, 44, .55); --sil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'%3E%3Cpath fill='%23090a14' d='M0 200v-20h600v20z'/%3E%3Cpath fill='%23090a14' d='M60 180v-60h40v-25h20v25h30v-30h150v90zM320 180v-70h120v70zM460 180v-70h120v70z'/%3E%3Cg fill='%23f6cf7a'%3E%3Crect x='180' y='110' width='14' height='14' rx='2'/%3E%3Crect x='215' y='110' width='14' height='14' rx='2'/%3E%3Crect x='250' y='110' width='14' height='14' rx='2'/%3E%3Crect x='340' y='125' width='14' height='14' rx='2'/%3E%3Crect x='375' y='125' width='14' height='14' rx='2'/%3E%3Crect x='410' y='125' width='14' height='14' rx='2'/%3E%3Crect x='480' y='125' width='14' height='14' rx='2'/%3E%3Crect x='515' y='125' width='14' height='14' rx='2'/%3E%3Crect x='550' y='125' width='14' height='14' rx='2'/%3E%3C/g%3E%3Ccircle cx='100' cy='60' r='16' fill='%23ffffff' opacity='.08'/%3E%3Ccircle cx='80' cy='35' r='22' fill='%23ffffff' opacity='.06'/%3E%3C/svg%3E"); }
.place--highlands { --a: rgba(30, 90, 70, .5); --sil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200'%3E%3Cpath fill='%23131628' d='M0 200V110l90-70 70 50 80-80 110 90 70-40 90 60 90-50v130z'/%3E%3Cpath fill='%23090a14' d='M0 200v-40l20-40 20 40 15-55 20 55 20-35 20 35v-20l25-50 25 50h40l20-40 20 40 25-60 25 60 30-35 30 35 20-50 20 50 25-40 25 40 20-55 20 55h40v40z'/%3E%3C/svg%3E"); }

/* ---------- Maisons ---------- */
.houses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.house {
  --c1: #7a1c2c; --c2: #d4af6a;
  position: relative; overflow: hidden; text-align: center; padding: 40px 24px 34px; border-radius: var(--radius);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(22, 26, 46, .9), rgba(12, 14, 26, .95));
  border: 1px solid color-mix(in srgb, var(--c2) 35%, transparent);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.house:hover, .house:focus-visible {
  transform: translateY(-8px);
  border-color: var(--c2);
  box-shadow: 0 30px 60px -25px color-mix(in srgb, var(--c1) 90%, transparent), 0 0 0 1px color-mix(in srgb, var(--c2) 40%, transparent);
}
.house__crest { position: relative; width: 92px; height: 110px; margin: 0 auto 22px; }
.house__crest svg { width: 100%; height: 100%; fill: var(--c1); stroke: var(--c2); stroke-width: 3; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.house__crest b { position: absolute; inset: 0 0 12px; display: grid; place-items: center; font-family: var(--font-deco); font-size: 2.2rem; color: var(--c2); }
.house h3 { font-size: 1.35rem; letter-spacing: .06em; }
.house__traits { margin: 8px 0 14px; font-family: var(--font-title); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c2); }
.house p:last-child { color: #c7bda7; font-size: 1.08rem; }
.house--gryffondor { --c1: #7f1420; --c2: #e0b04a; }
.house--serpentard { --c1: #1a5236; --c2: #c9cfd4; }
.house--serdaigle { --c1: #1d3567; --c2: #c8a26a; }
.house--poufsouffle { --c1: #8a6a12; --c2: #2b2b2b; }
.house--poufsouffle .house__crest b { color: #1c1a12; }
.house--poufsouffle .house__traits { color: #e4c35a; }
.house--poufsouffle { border-color: rgba(228, 195, 90, .3); }
.house--poufsouffle:hover { border-color: #e4c35a; }

/* ---------- Nouveautés ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-item { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.news-item:first-child {
  grid-column: 1 / -1;
  padding: 40px;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(122, 28, 44, .35), transparent 70%),
    linear-gradient(180deg, rgba(22, 26, 46, .9), rgba(15, 18, 34, .9));
}
.news-item:first-child h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.news-item__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-title); font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: var(--gold-hi); border: 1px solid var(--line-strong); background: rgba(212, 175, 106, .08);
}
.tag--new { color: #1b1307; background: var(--gold); border-color: var(--gold); }
.news-item time { font-size: 1rem; font-style: italic; color: var(--muted); }
.news-item h3 { font-size: 1.25rem; }
.news-item p { color: #c7bda7; }

.roadmap { margin-top: 44px; padding: 34px 38px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(212, 175, 106, .03); }
.roadmap h3 { font-size: 1rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.roadmap ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.roadmap li { position: relative; padding-left: 28px; color: #d6ccb5; }
.roadmap li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: .9rem; }

/* ---------- Rejoindre ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 35px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), var(--line-strong), transparent); }
.step { text-align: center; padding: 0 10px; position: relative; }
.step__num {
  display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%;
  font-family: var(--font-deco); font-size: 1.35rem; color: var(--gold-hi);
  background: radial-gradient(circle at 35% 30%, #2a2340, var(--night) 75%);
  border: 1px solid var(--gold); box-shadow: 0 0 0 6px var(--night-2), 0 0 30px rgba(212, 175, 106, .25);
}
.step h3 { font-size: 1.12rem; letter-spacing: .04em; margin-bottom: 8px; }
.step p { color: #c7bda7; font-size: 1.08rem; }

.connect {
  margin: 56px auto 0; max-width: 620px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px 20px 28px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(74, 15, 26, .35), rgba(15, 18, 34, .9));
}
.connect__label { display: block; font-family: var(--font-title); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.connect code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.15rem; color: var(--gold-hi); letter-spacing: .03em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(22, 26, 46, .6); transition: border-color .3s ease, background .3s ease; }
.faq details[open] { border-color: var(--line-strong); background: rgba(22, 26, 46, .9); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--font-title); font-size: 1.02rem; letter-spacing: .03em; color: var(--parchment);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .3s ease, margin .3s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: #c7bda7; }

/* ---------- CTA ---------- */
.cta { padding: 20px 0 clamp(80px, 10vw, 120px); }
.cta__card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px;
  padding: 44px 48px; border-radius: 22px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(88, 101, 242, .22), transparent 70%),
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(122, 28, 44, .35), transparent 70%),
    linear-gradient(135deg, var(--night-3), var(--night-2));
  box-shadow: var(--shadow);
}
.cta__icon { width: 110px; height: 110px; filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .6)); }
.cta__card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.cta__card p { color: #cfc5ae; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #07080f; padding: 46px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand strong { display: block; font-family: var(--font-title); color: var(--parchment); letter-spacing: .06em; }
.footer__brand span { font-size: 1rem; color: var(--muted); }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-family: var(--font-title); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.footer__links a:hover { color: var(--gold-hi); }
.footer__legal { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(212, 175, 106, .1); font-size: .95rem; color: #7d7564; display: grid; gap: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 999px; background: var(--gold); color: #1b1307; font-family: var(--font-title); font-size: .85rem; letter-spacing: .06em;
  transition: opacity .3s ease, transform .3s ease; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Particules du curseur ---------- */
.spark { position: fixed; z-index: 70; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff6dc, var(--gold) 60%, transparent 70%); animation: spark .9s ease-out forwards; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 209, 139, .6); } 70% { box-shadow: 0 0 0 9px rgba(111, 209, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 209, 139, 0); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .85; } 50% { opacity: .55; } 55% { opacity: .9; } }
@keyframes fog { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes spark { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features, .houses { grid-template-columns: repeat(2, 1fr); }
  .paths { grid-template-columns: repeat(2, 1fr); }
  .path:nth-child(3) { border-left: 0; }
  .path:nth-child(n+3) { border-top: 1px solid var(--line); }
  .systems { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; background: rgba(10, 12, 22, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(212, 175, 106, .1); }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 18px; }
  .nav.menu-open { background: rgba(10, 12, 22, .97); }
  .news { grid-template-columns: 1fr; }
  .news-item:first-child { padding: 30px; }
  .roadmap ul { grid-template-columns: 1fr; }
  .cta__card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 38px 24px; }
  .hero__moon { width: 90px; height: 90px; top: 14%; right: 8%; }
}
@media (max-width: 620px) {
  body { font-size: 1.1rem; }
  .features, .houses, .steps, .paths, .systems, .places { grid-template-columns: 1fr; }
  .path + .path { border-left: 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stats li:nth-child(3)::before { display: none; }
  .hero { padding-bottom: 180px; }
  .hero__moon { width: 64px; height: 64px; top: 92px; right: 6%; opacity: .6; }
  .hero__cta .btn { width: 100%; }
  .connect { flex-direction: column; align-items: stretch; text-align: center; }
  .connect code { font-size: 1.05rem; }
  .cta__card .btn { white-space: normal; width: 100%; }
  .roadmap { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
