/* Everglen — site vitrine. Même univers que le launcher : ciel au couchant, parchemin, or, rubrique. */
:root {
  color-scheme: dark;
  --ink: #2b1d10;
  --rub: #8a2a1a;
  --rub-hi: #a8382a;
  --gold: #e0bd72;
  --gold-hi: #f3dc9c;
  --gold-lo: #b8934a;
  --bronze: #5a4630;
  --wood: #120d0b;
  --wood-2: #1b1310;
  --text: #d9cdb4;
  --muted: #a89878;
  --parch: #e6d2a4;
  --ok: #9fd18a;
  --fb: 'IM Fell English', Georgia, serif;
  --fs: 'IM Fell English SC', Georgia, serif;
  --fk: 'UnifrakturCook', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nd: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --nw: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --st: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='500' height='500'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='4'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .05 0 0 0 .55 -.12'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
  --grain-wood: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.9 .02' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .08 0 1.1 0 0 -.45'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: radial-gradient(ellipse at 50% 0, #2a1c14, var(--wood) 70%) fixed, var(--wood);
  font: 19px/1.55 var(--fb);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--nd), var(--grain-wood); opacity: .08; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--rub); color: var(--gold-hi); }
:focus-visible { outline: 2px dashed var(--gold); outline-offset: 4px; }

/* ---------- Barre de progression + lueur du curseur ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #8b6a2e, var(--gold-hi)); box-shadow: 0 0 10px #e0bd72aa; }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(circle, #ffb85a1c, transparent 62%);
  transition: opacity .4s; mix-blend-mode: screen;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px clamp(16px, 4vw, 48px);
  transition: background .4s, padding .4s, box-shadow .4s;
}
.nav.scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: var(--nd), linear-gradient(#1d1511f2, #120d0bf2);
  box-shadow: 0 1px 0 #5a463099, 0 10px 30px #0008;
  backdrop-filter: blur(6px);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px #000c); transition: transform .5s var(--ease); }
.nav-brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav-brand span { font: 700 30px/1 var(--fk); color: #f0dca8; text-shadow: 0 2px 0 #000, 0 0 16px #e0a04a55; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav-links a:not(.btn) {
  position: relative; text-decoration: none; padding: 6px 0;
  font: 16px var(--fs); letter-spacing: .18em; color: var(--text); text-shadow: 0 1px 4px #000;
  transition: color .3s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width .4s var(--ease), left .4s var(--ease);
}
.nav-links a:not(.btn)::before {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 6px; height: 6px; margin-left: -3px;
  rotate: 45deg; background: var(--gold); scale: 0; transition: scale .3s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--gold-hi); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; left: 0; }
.nav-links a.active::before { scale: 1; }
.burger { display: none; }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; border: 0; font: inherit; }

/* Cadre doré : sobre, se remplit d'or au survol */
.btn-frame {
  padding: 12px 28px; overflow: hidden; isolation: isolate;
  font: 16px var(--fs); letter-spacing: .2em; color: var(--gold-hi);
  background: #0b0807b0;
  box-shadow: inset 0 0 0 1px var(--gold-lo), inset 0 0 0 4px #0b0807, inset 0 0 0 5px #b8934a77, 0 6px 18px #0007;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: color .35s, box-shadow .35s, translate .2s;
}
.btn-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nd), linear-gradient(var(--gold-hi), var(--gold-lo));
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%));
  transition: clip-path .55s var(--ease);
}
.btn-frame:hover { color: #1a1108; }
.btn-frame:hover::before { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.btn-frame:active { translate: 0 1px; }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 18px; }

/* Jumeau du bouton Télécharger : même forme et même structure, en bois sombre bordé d'or */
.btn-twin {
  flex-direction: column; gap: 4px; min-width: 280px; padding: 16px 64px 18px;
  background: linear-gradient(var(--gold-hi), #9c7430);
  box-shadow: none;
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 24px 100%, 0 50%);
  filter: drop-shadow(0 10px 22px #000a);
  text-shadow: 0 2px 0 #000;
}
.btn-twin::after {
  content: ""; position: absolute; inset: 2px; z-index: -2;
  clip-path: polygon(23px 0, calc(100% - 23px) 0, 100% 50%, calc(100% - 23px) 100%, 23px 100%, 0 50%);
  background: var(--nd), radial-gradient(ellipse at 50% 15%, #3a2a1e, #1a120d 60%, #0e0907);
}
/* Survol : le bois reste sombre, une lueur dorée suit la souris, la bordure et le texte s'illuminent */
.btn-twin::before {
  inset: 2px; clip-path: none; opacity: 0;
  background: var(--nd), radial-gradient(circle 120px at var(--x, 50%) var(--y, 50%), #e0a04a66, #e0a04a1a 55%, transparent 80%);
  transition: opacity .4s;
}
.btn-twin .btn-hex-label { color: var(--gold-hi); transition: color .35s, text-shadow .35s; }
.btn-twin small { font: 12px var(--fs); letter-spacing: .26em; color: #c9ad74; transition: color .35s; }
.btn-twin .btn-hex-label, .btn-twin small { position: relative; z-index: 1; }
.btn-twin:hover {
  color: var(--gold-hi);
  background: linear-gradient(#fff3c8, #c99434);
  filter: drop-shadow(0 12px 28px #000a) drop-shadow(0 0 14px #e0a04a66);
}
.btn-twin:hover::before { opacity: 1; }
.btn-twin:hover .btn-hex-label { color: #fff3c8; text-shadow: 0 2px 0 #000, 0 0 18px #ffb85a; }
.btn-twin:hover small { color: var(--gold-hi); }

/* Bouton blason : losange étiré or + rouge, éclat qui passe */
.btn-hex {
  flex-direction: column; gap: 4px; min-width: 280px; padding: 16px 64px 18px; isolation: isolate; overflow: hidden;
  background: linear-gradient(var(--gold-hi), #9c7430);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 24px 100%, 0 50%);
  color: var(--gold-hi); text-shadow: 0 2px 0 #000, 0 0 14px #e0a04a88;
  filter: drop-shadow(0 10px 22px #000a);
  transition: filter .3s, translate .2s;
  animation: breathe 3.2s ease-in-out infinite;
}
.btn-hex::before {
  content: ""; position: absolute; inset: 2px; z-index: -1;
  clip-path: polygon(23px 0, calc(100% - 23px) 0, 100% 50%, calc(100% - 23px) 100%, 23px 100%, 0 50%);
  background: var(--nd), radial-gradient(ellipse at 50% 15%, #b0402c, #5a170e 60%, #3a0d08);
}
.btn-hex::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -100px; width: 60px; skew: -20deg;
  background: linear-gradient(100deg, transparent, #fff3c877, transparent);
  animation: sweep 4.5s ease-in-out infinite;
}
.btn-hex-label { font: 700 34px/1 var(--fk); letter-spacing: .03em; }
.btn-hex small { font: 12px var(--fs); letter-spacing: .26em; color: #e9cf96; text-shadow: 0 1px 0 #000; }
.btn-hex:hover { filter: drop-shadow(0 12px 28px #e0a04a66) brightness(1.12); }
.btn-hex:hover::after { animation-duration: 1s; }
.btn-hex:active { translate: 0 2px; }
@keyframes breathe { 50% { text-shadow: 0 2px 0 #000, 0 0 26px #ffb85a; } }
@keyframes sweep { 0%, 60% { left: -100px; } 100% { left: 115%; } }
.magnetic { transition: transform .35s var(--ease), filter .3s, color .35s, box-shadow .35s; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  font: 16px var(--fs); letter-spacing: .14em; color: var(--gold); text-decoration: none;
}
.link-arrow::after { content: "→"; font-family: var(--fb); transition: translate .3s var(--ease); }
.link-arrow:hover { color: var(--gold-hi); }
.link-arrow:hover::after { translate: 6px 0; }

/* ---------- Décor fixe + pages ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; --mx: 0; --my: 0; --sy: 0; }
.dim {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: var(--nd), radial-gradient(ellipse at 50% 30%, #1c130ed9, #0b0807f2 75%);
  backdrop-filter: blur(3px);
  transition: opacity .9s var(--ease);
}
body:not([data-view="accueil"]) .dim { opacity: 1; }
main, .footer { position: relative; z-index: 2; }
.view { display: none; }
.view.is-on { display: block; animation: viewIn .7s var(--ease); }
.view-home.is-on { display: flex; flex-direction: column; min-height: 100svh; animation: none; }
.view.section { min-height: 100svh; padding-top: clamp(110px, 12vw, 150px); }
.view.is-on .parchment { animation: unroll 1.1s var(--ease); }
@keyframes viewIn { from { opacity: 0; translate: 0 26px; } }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); opacity: .3; } to { clip-path: inset(0); } }
body[data-view="accueil"] .footer { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; flex: 1; min-height: 600px; display: grid; place-items: center; }
.sky, .scene { position: absolute; inset: 0; overflow: hidden; }
.sky {
  background:
    radial-gradient(circle at 68% 58%, #ffe2a0 0 2%, #f0b565aa 9%, transparent 38%),
    linear-gradient(#141826 0, #3d3245 26%, #8f5a55 52%, #e09a5a 72%, #e8a460);
  translate: 0 calc(var(--sy) * .15px);
}
.sun {
  position: absolute; left: 68%; top: 54%; width: 150px; height: 150px; margin: -75px;
  background: radial-gradient(#fff3c8, #ffd78a 30%, transparent 68%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .7; scale: 1.12; } }
.rays {
  position: absolute; left: 68%; top: 54%; width: 1400px; height: 1400px; margin: -700px;
  background: repeating-conic-gradient(#ffe2a024 0 3deg, transparent 3deg 11deg);
  -webkit-mask: radial-gradient(circle, #000, transparent 64%); mask: radial-gradient(circle, #000, transparent 64%);
  animation: spin 180s linear infinite; mix-blend-mode: screen;
}
@keyframes spin { to { rotate: 360deg; } }
.cl {
  position: absolute; top: 8%; left: 0; width: 200%; height: 34%;
  background: radial-gradient(ellipse 20% 16% at 20% 40%, #f2b68a55, transparent), radial-gradient(ellipse 15% 12% at 62% 62%, #c9858a44, transparent);
  background-size: 50% 100%; filter: blur(10px); animation: drift 150s linear infinite;
}
.ly {
  position: absolute; inset: -4%; width: 108%; height: 108%;
  translate: calc(var(--mx) * var(--d) * 1px) calc(var(--my) * var(--d) * .4px + var(--sy) * var(--d) * -.012px);
  transition: translate .3s ease-out;
}
.fog {
  position: absolute; left: 0; width: 200%; height: 34%;
  background: radial-gradient(ellipse 22% 45% at 25% 55%, #e4c9a455, transparent 72%), radial-gradient(ellipse 16% 35% at 75% 45%, #e4c9a440, transparent 72%);
  background-size: 50% 100%; animation: drift var(--s) linear infinite; filter: blur(6px);
}
@keyframes drift { to { translate: -50%; } }
.em {
  position: absolute; bottom: -10px; width: var(--sz); height: var(--sz); border-radius: 50%;
  background: #ffb85a; box-shadow: 0 0 6px 2px #ff8a2a99;
  animation: rise var(--t) linear var(--dl) infinite; opacity: 0;
}
@keyframes rise { 10% { opacity: .9; } 70% { opacity: .5; } to { translate: var(--dx) -90vh; opacity: 0; } }
.vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, transparent 40%, #000c), linear-gradient(transparent 70%, var(--wood)); }

.hero-inner { position: relative; z-index: 2; text-align: center; padding: 90px 16px 60px; max-width: 980px; }
.hero-crest {
  width: clamp(130px, 18vw, 190px); height: auto; margin: 0 auto 10px;
  filter: drop-shadow(0 10px 30px #000c) drop-shadow(0 0 30px #e0a04a44);
  animation: float 6s ease-in-out infinite, crestIn 1.4s var(--ease) both;
}
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes crestIn { from { opacity: 0; scale: .6; rotate: -12deg; filter: blur(8px); } }
.kicker {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; align-items: center;
  font: 14px var(--fs); letter-spacing: .32em; text-transform: uppercase; color: #f0dca8; text-shadow: 0 1px 6px #000;
  animation: fadeUp 1s var(--ease) .3s both;
}
.kicker b { color: var(--gold); }
.hero-title { margin: 6px 0 4px; line-height: .9; }
.hero-title .ink {
  position: relative; display: inline-block;
  font: 700 clamp(84px, 15vw, 196px)/1 var(--fk);
  background: linear-gradient(100deg, #b8862e 0%, #f7e3a8 22%, #d9a94e 40%, #fff2c4 50%, #c99434 62%, #f3dc9c 80%, #b8862e 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #2a1508) drop-shadow(0 10px 30px #000c);
  animation: shimmer 7s linear infinite, titleIn 1.6s var(--ease) .15s both;
}
@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes titleIn { from { opacity: 0; letter-spacing: .25em; filter: blur(14px); } }
.hero-sub { font: italic clamp(18px, 2.2vw, 24px) var(--fb); color: #f1e3bf; text-shadow: 0 2px 8px #000; animation: fadeUp 1s var(--ease) .6s both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: center; margin-top: 34px; animation: fadeUp 1s var(--ease) .85s both; }
.hero-status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font: 13px var(--fs); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-shadow: 0 1px 4px #000;
  animation: fadeUp 1s var(--ease) 1.1s both;
}
.dot { width: 8px; height: 8px; rotate: 45deg; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 24px; } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid #e0bd72aa; border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

/* ---------- Bandeau ---------- */
.band {
  position: relative; z-index: 2; margin-top: -1px;
  background: var(--nd), linear-gradient(#1d1511, #140e0b);
  border-top: 1px solid #5a463099; border-bottom: 1px solid #5a463099;
  box-shadow: inset 0 1px 0 #ffffff08, 0 20px 40px #0008;
}
.band::before, .band::after { content: ""; position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -5px; rotate: 45deg; background: var(--gold); box-shadow: 0 0 10px #e0bd72aa; }
.band::before { top: -6px; } .band::after { bottom: -6px; }
.band-track { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: 0 auto; }
.stat { position: relative; padding: 30px 16px; text-align: center; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: linear-gradient(transparent, #b8934a88, transparent); }
.stat b { display: block; font: 700 clamp(30px, 3.4vw, 44px)/1.1 var(--fk); color: var(--gold-hi); text-shadow: 0 2px 0 #000, 0 0 18px #e0a04a44; }
.stat span { font: 13px var(--fs); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 2; padding: clamp(70px, 10vw, 130px) clamp(16px, 4vw, 48px); }
.section-dark { max-width: 1180px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: clamp(30px, 5vw, 56px); }
.eyebrow { font: 14px var(--fs); letter-spacing: .4em; text-transform: uppercase; color: var(--rub); }
.sec-head h2 { font: 700 clamp(44px, 6vw, 76px)/1.05 var(--fk); color: var(--rub); margin: 6px 0 10px; }
.sec-head-light .eyebrow { color: var(--gold-lo); }
.sec-head-light h2 { color: var(--gold-hi); text-shadow: 0 3px 0 #000, 0 0 30px #e0a04a33; }
.sec-sub { font: italic 20px var(--fb); color: var(--muted); }
.flourish { position: relative; height: 16px; width: min(420px, 80%); margin: 0 auto; }
.flourish::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, transparent, var(--ink), transparent); }
.flourish::after { content: ""; position: absolute; left: 50%; top: 2px; width: 11px; height: 11px; margin-left: -6px; rotate: 45deg; background: #d9c08e; border: 1px solid var(--ink); box-shadow: -26px 26px 0 -4px var(--ink), 26px -26px 0 -4px var(--ink); }

/* ---------- Parchemin ---------- */
.parchment {
  position: relative; max-width: 1120px; margin: 0 auto; color: var(--ink);
  background: radial-gradient(ellipse at 50% 30%, #f3e6c4, #e2cb9a 60%, #c19d62);
  filter: drop-shadow(0 24px 40px #000d);
}
.parchment::before, .parchment::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.parchment::before { background: var(--nd); opacity: .14; mix-blend-mode: multiply; }
.parchment::after { background: var(--st); opacity: .32; box-shadow: inset 0 0 90px #5a2f0a99, inset 0 0 12px #2a1204; }
.parchment-inner { position: relative; z-index: 1; padding: clamp(40px, 7vw, 90px) clamp(22px, 6vw, 80px); }

.lore { max-width: 760px; margin: 0 auto; columns: 2; column-gap: 46px; column-rule: 1px dotted #2b1d1055; }
.lore p { text-align: justify; hyphens: auto; margin-bottom: 14px; font-size: 19px; }
.dropcap::first-letter { float: left; font: 700 84px/.78 var(--fk); color: var(--rub); padding: 8px 10px 0 0; text-shadow: 2px 2px 0 #d9c08e; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: clamp(36px, 5vw, 60px); perspective: 1000px; }
.card {
  position: relative; padding: 52px 22px 26px; text-align: center;
  background: linear-gradient(#ffffff2e, #ffffff0a);
  box-shadow: inset 0 0 0 1px #2b1d1066, inset 0 0 0 5px #e6d2a466, inset 0 0 0 6px #2b1d1033, 0 8px 20px #5a2f0a22;
  transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .35s;
  margin-top: 30px;
}
.card:hover { box-shadow: inset 0 0 0 1px var(--rub), inset 0 0 0 5px #e6d2a499, inset 0 0 0 6px #8a2a1a66, 0 18px 34px #5a2f0a44; }
.seal {
  position: absolute; left: 50%; top: -34px; width: 72px; height: 72px; margin-left: -36px;
  display: grid; place-items: center; border-radius: 50%; color: #e6d2a4;
  background: radial-gradient(circle at 35% 30%, #c0503a, #8a2a1a 55%, #5a150c);
  box-shadow: 0 0 0 3px #e6d2a4, 0 0 0 4px #8a2a1a88, 0 8px 16px #5a150c66, inset 0 -4px 8px #0005, inset 0 3px 6px #ffffff33;
  transform: translateZ(40px); transition: scale .35s var(--ease), box-shadow .35s;
}
.seal svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 0 #0006); }
.card:hover .seal { scale: 1.08; box-shadow: 0 0 0 3px #e6d2a4, 0 0 0 4px #8a2a1a88, 0 10px 22px #8a2a1a66, 0 0 18px #e0a04a55, inset 0 -4px 8px #0005, inset 0 3px 6px #ffffff33; }
.card h3 { font: 400 21px var(--fs); letter-spacing: .06em; color: var(--rub); margin-bottom: 8px; transform: translateZ(20px); }
.card p { font-size: 17px; line-height: 1.45; color: #4a3520; transform: translateZ(10px); }

/* ---------- Étapes ---------- */
.steps { position: relative; list-style: none; padding: 0; max-width: 860px; margin: 0 auto; }
.step { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: center; padding: 14px 0; }
.step-num {
  position: relative; z-index: 1; width: 80px; height: 80px; display: grid; place-items: center;
  font: 700 30px/1 var(--fk); color: var(--gold-hi); text-shadow: 0 2px 0 #000;
  isolation: isolate;
  background: linear-gradient(var(--gold-hi), var(--gold-lo));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 0 10px #e0bd7255);
  transition: transform .6s var(--ease);
}
.step-num::before {
  content: ""; position: absolute; inset: 3px; z-index: -1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--nd), radial-gradient(circle at 50% 30%, #4a3424, #140e0b);
}
.step.in .step-num { animation: stamp .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 160ms + 250ms); }
@keyframes stamp { from { transform: scale(1.8) rotate(-45deg); opacity: 0; } }
.step:hover .step-num { transform: scale(1.1) rotate(8deg); filter: drop-shadow(0 0 18px #e0bd72cc); }
.step-body {
  position: relative; padding: 24px 28px; overflow: hidden;
  background: var(--nd), linear-gradient(135deg, #241a14ee, #150f0cee);
  box-shadow: inset 0 0 0 1px #5a4630, inset 0 0 0 4px #150f0c, inset 0 0 0 5px #5a463066, 0 14px 30px #0009;
  transition: box-shadow .4s, translate .4s var(--ease);
}
.step-body::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--x, 0) var(--y, 0), #e0bd7222, transparent 40%); opacity: 0; transition: opacity .3s; }
.step-body:hover { translate: 6px 0; box-shadow: inset 0 0 0 1px var(--gold-lo), inset 0 0 0 4px #150f0c, inset 0 0 0 5px #b8934a66, 0 18px 36px #000b; }
.step-body:hover::before { opacity: 1; }
.step h3 { font: 400 24px var(--fs); letter-spacing: .06em; color: var(--gold-hi); margin-bottom: 6px; }
.step p { color: var(--text); }
.step b { color: var(--gold-hi); font-weight: normal; font-family: var(--fs); letter-spacing: .04em; }
.note { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--rub); font-style: italic; font-size: 16px; color: var(--muted) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { padding: 4px 14px; font: 13px var(--fs); letter-spacing: .14em; color: var(--gold); box-shadow: inset 0 0 0 1px #b8934a77; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); background: #0b080788; }

/* ---------- Chronique ---------- */
.chronicle { position: relative; max-width: 820px; margin: 0 auto; }
.entry { position: relative; padding: 0 0 34px 46px; }
.entry::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 0; width: 1px; background: linear-gradient(#2b1d1066, transparent); }
.entry::after { content: ""; position: absolute; left: 4px; top: 8px; width: 11px; height: 11px; rotate: 45deg; background: var(--rub); box-shadow: 0 0 0 3px #e6d2a4, 0 0 0 4px var(--rub); }
.entry time { font: 13px var(--fs); letter-spacing: .24em; text-transform: uppercase; color: var(--rub); }
.entry h3 { font: 400 25px var(--fs); letter-spacing: .04em; margin: 2px 0 6px; }
.entry p { text-align: justify; hyphens: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.qa { border-bottom: 1px solid #5a463066; }
.qa-q {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; position: relative;
  padding: 22px 50px 22px 36px; font: 20px var(--fs); letter-spacing: .04em; color: var(--text);
  transition: color .3s;
}
.qa-q:focus-visible { outline: 2px dashed var(--gold); outline-offset: -2px; }
.qa-q::before { content: ""; position: absolute; left: 6px; top: 50%; width: 9px; height: 9px; margin-top: -5px; rotate: 45deg; border: 1px solid var(--gold-lo); transition: background .3s, box-shadow .3s; }
.qa-q::after { content: "+"; position: absolute; right: 10px; top: 50%; translate: 0 -50%; font: 30px/1 var(--fb); color: var(--gold); transition: rotate .4s var(--ease); }
.qa-q:hover { color: var(--gold-hi); }
.qa.open .qa-q { color: var(--gold-hi); }
.qa.open .qa-q::before { background: var(--gold); box-shadow: 0 0 10px #e0bd72aa; }
.qa.open .qa-q::after { rotate: 135deg; }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 36px 24px; color: var(--muted); font-size: 18px; }
.qa-a b { color: var(--gold-hi); font-weight: normal; }

/* ---------- Final ---------- */
.finale { position: relative; z-index: 2; overflow: hidden; padding: clamp(90px, 14vw, 170px) 16px; text-align: center; background: linear-gradient(var(--wood), transparent 18%, transparent 78%, var(--wood)), radial-gradient(ellipse 70% 70% at 50% 72%, #6a2a14 0, #2a120b 45%, transparent 75%); }
.finale-embers { position: absolute; inset: 0; pointer-events: none; }
.finale-inner { position: relative; }
.finale-crest { margin: 0 auto 18px; width: 128px; height: auto; filter: drop-shadow(0 0 30px #e0a04a66); animation: float 6s ease-in-out infinite; }
.finale h2 { font: 700 clamp(48px, 7vw, 92px)/1 var(--fk); color: var(--gold-hi); text-shadow: 0 3px 0 #000, 0 0 40px #ff8a2a55; }
.finale p { margin-top: 10px; font: italic 22px var(--fb); color: #f1e3bf; }

/* ---------- Pied de page ---------- */
.footer {
  position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center;
  padding: 40px clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto;
  border-top: 1px solid #5a463066;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b { display: block; font: 700 28px/1 var(--fk); color: #f0dca8; }
.footer-brand span { font: 13px var(--fs); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.footer-links a { font: 15px var(--fs); letter-spacing: .16em; text-decoration: none; color: var(--muted); transition: color .3s; }
.footer-links a:hover { color: var(--gold-hi); }
.footer-legal { grid-column: 1 / -1; font: italic 14px var(--fb); color: #7d6a48; text-align: center; }

/* ---------- Apparitions au défilement ---------- */
[data-reveal] { opacity: 0; translate: 0 34px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
[data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- Animations des cartes ---------- */
/* Cartes du royaume : distribuées une à une, comme un jeu de cartes, puis le sceau se pose */
.card[data-reveal] { translate: none; transition: opacity .2s, transform .25s ease-out, box-shadow .35s; }
.card[data-reveal].in { animation: deal 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }
@keyframes deal {
  from { opacity: 0; transform: translateY(70px) rotateX(-80deg) rotateZ(-6deg) scale(.9); filter: blur(4px); }
  55% { opacity: 1; filter: blur(0); }
}
.card[data-reveal].in .seal { animation: sealPop .8s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 140ms + 750ms); }
@keyframes sealPop { from { scale: 1.6; opacity: 0; translate: 0 -14px; } }
/* Reflet doré qui balaie la carte (une fois à l'arrivée, puis au survol) */
.card::after, .step-body::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, #fff3c855 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat;
  mix-blend-mode: overlay;
}
.card.in::after { animation: gleam 1.3s ease-out backwards; animation-delay: calc(var(--i, 0) * 140ms + 900ms); }
.card:hover::after, .step-body:hover::after { animation: gleam 1s ease-out; }
@keyframes gleam { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.card:hover { z-index: 1; }
.card:hover h3 { color: var(--rub-hi); }

/* Étapes : glissent depuis la droite, le losange se « tamponne » ensuite */
.step[data-reveal] { translate: 90px 0; }
.step[data-reveal].in { translate: 0 0; transition-delay: calc(var(--i, 0) * 160ms); }

/* Chronique : chaque entrée arrive de la gauche, son losange s'allume */
.entry[data-reveal] { translate: -50px 0; }
.entry[data-reveal].in { translate: 0 0; }
.entry.in::after { animation: spark .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 110ms + 400ms); }
@keyframes spark { from { scale: 0; rotate: 0deg; } }

/* Questions : chaque ligne glisse à son tour */
.faq.in .qa { animation: fadeUp .7s var(--ease) backwards; }
.faq.in .qa:nth-child(2) { animation-delay: .08s; } .faq.in .qa:nth-child(3) { animation-delay: .16s; }
.faq.in .qa:nth-child(4) { animation-delay: .24s; } .faq.in .qa:nth-child(5) { animation-delay: .32s; }
.faq.in .qa:nth-child(6) { animation-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .band-track { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .burger { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
  .burger i { display: block; width: 26px; height: 2px; background: var(--gold-hi); transition: .35s var(--ease); }
  .nav.open .burger i:nth-child(1) { translate: 0 8px; rotate: 45deg; }
  .nav.open .burger i:nth-child(2) { opacity: 0; }
  .nav.open .burger i:nth-child(3) { translate: 0 -8px; rotate: -45deg; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--nd), radial-gradient(ellipse at 50% 30%, #2a1c14, #0b0807);
    clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .6s var(--ease);
  }
  .nav.open .nav-links { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav-links a:not(.btn) { font-size: 22px; }
  .lore { columns: 1; }
  .cards { grid-template-columns: 1fr; }
  .steps::before, .steps::after { left: 27px; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; }
  .step-num { width: 56px; height: 56px; font-size: 22px; }
  .step-body { padding: 20px; }
  .btn-hex { min-width: 0; width: 100%; max-width: 340px; }
  .hero-cta .btn-frame { width: 100%; max-width: 340px; min-width: 0; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; }
  .qa-q { padding-right: 44px; font-size: 18px; }
  .qa-a p { padding: 0 20px 22px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; translate: none; }
  .steps { --p: 1; }
}
