/* TOGBO : Le Retour des Ancêtres — site officiel (statique) */
:root {
  --night: #140f0c;
  --night-2: #1d1511;
  --night-3: #2a1d16;
  --earth: #a63d22;
  --earth-2: #7a2a16;
  --clay: #c8643a;
  --gold: #f2c14e;
  --gold-2: #d99a1e;
  --gold-3: #8a5a0e;
  --sky: #5fb3e6;
  --sky-2: #2b6f9e;
  --cream: #f8ecd6;
  --muted: #d6c3a6;
  --radius: 18px;
  --gutter: 16px;
  --title: "Bungee", "Fredoka", system-ui, sans-serif;
  --round: "Fredoka", "Nunito", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
em { color: var(--gold); font-style: normal; font-weight: 800; }
strong { color: #fff; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--night); padding: 10px 14px; border-radius: 10px; font-weight: 800;
}
.skip:focus { top: 12px; }

/* ===== Barre du haut ===== */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  transition: background .3s, box-shadow .3s;
}
.topbar.solid { background: rgba(20, 15, 12, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(242, 193, 78, .18); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--cream); font-family: var(--title); font-size: 18px; letter-spacing: 1px; }
.brand img { width: 36px; height: 36px; }
.lang { display: flex; gap: 4px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(242, 193, 78, .35); border-radius: 999px; padding: 3px; }
.lang button {
  appearance: none; border: 0; cursor: pointer; min-width: 44px; min-height: 36px;
  border-radius: 999px; background: transparent; color: var(--cream);
  font: 700 14px/1 var(--round); letter-spacing: .5px;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--night); }

/* ===== Boutons ===== */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 14px 26px; border-radius: 16px;
  font: 700 17px/1.2 var(--round); text-decoration: none; letter-spacing: .3px;
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-gold {
  color: #2a1606;
  background: linear-gradient(180deg, #ffe08a 0%, var(--gold) 45%, var(--gold-2) 100%);
  border: 2px solid #ffeab0;
  box-shadow: 0 6px 0 var(--gold-3), 0 10px 24px rgba(242, 193, 78, .35), inset 0 2px 0 rgba(255, 255, 255, .6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--gold-3), 0 4px 12px rgba(242, 193, 78, .3), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn-ghost {
  color: var(--cream); background: rgba(0, 0, 0, .35);
  border: 2px solid rgba(242, 193, 78, .6);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .45);
}
.btn-ghost:hover { background: rgba(242, 193, 78, .12); }
.btn-ghost:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: 84px var(--gutter) 72px;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 62% center; transform: scale(1.06); animation: slowzoom 30s ease-in-out infinite alternate; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 34% at 50% 44%, rgba(20, 15, 12, .5), transparent 80%),
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(242, 193, 78, .12), transparent 70%),
    linear-gradient(180deg, rgba(20, 15, 12, .7) 0%, rgba(20, 15, 12, .55) 40%, rgba(20, 15, 12, .92) 88%, var(--night) 100%);
}
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; width: 100%; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(242, 193, 78, .5);
  font: 700 13px/1.2 var(--round); letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: blink 1.6s ease-in-out infinite; }
.logo-wrap { margin: 0 auto; }
.logo {
  width: min(92vw, 640px); margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(242, 193, 78, .22));
  animation: float 6s ease-in-out infinite, logoIn 1.1s cubic-bezier(.2, .9, .3, 1.2) both;
}
.hook { font: 600 clamp(19px, 4.6vw, 26px)/1.35 var(--round); margin: 18px 0 26px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hook strong { color: var(--gold); font-weight: 700; }
.sign { margin: 22px 0 0; font: 600 13px/1 var(--round); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; }
.scroll-hint span { width: 22px; height: 34px; border: 2px solid rgba(242, 193, 78, .8); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }

/* ===== Sections ===== */
.section { position: relative; padding: 84px 0; }
section[id] { scroll-margin-top: 60px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker { margin: 0 0 6px; font: 700 13px/1.2 var(--round); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.title {
  margin: 0 0 14px; font-family: var(--title); font-weight: 400;
  font-size: clamp(28px, 7.4vw, 52px); line-height: 1.08; letter-spacing: .5px;
  color: var(--cream); text-shadow: 0 3px 0 var(--earth-2), 0 8px 24px rgba(0, 0, 0, .6);
}
.lead { max-width: 680px; margin: 0 0 30px; font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); }
.lead strong { color: var(--cream); }

/* Histoire */
.story { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(166, 61, 34, .22), transparent 70%), var(--night); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.step {
  background: linear-gradient(180deg, var(--night-3), var(--night-2));
  border: 1px solid rgba(242, 193, 78, .18); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.step figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.step figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.step:hover figure img { transform: scale(1.04); }
.step-body { position: relative; padding: 22px 20px 22px; }
.step-num {
  position: absolute; top: -26px; left: 18px; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font: 400 22px/1 var(--title); color: #2a1606;
  background: linear-gradient(180deg, #ffe08a, var(--gold) 50%, var(--gold-2));
  box-shadow: 0 4px 0 var(--gold-3), 0 8px 18px rgba(0, 0, 0, .5); transform: rotate(-4deg);
}
.step h3 { margin: 12px 0 6px; font: 700 22px/1.2 var(--round); color: var(--gold); }
.step p { margin: 0; color: var(--muted); }
.quote { margin: 46px auto 0; max-width: 760px; text-align: center; padding: 26px 20px; border-top: 1px solid rgba(242, 193, 78, .3); border-bottom: 1px solid rgba(242, 193, 78, .3); }
.quote p { margin: 0 0 10px; font: 600 clamp(20px, 4.4vw, 28px)/1.35 var(--round); color: var(--cream); }
.quote cite { font-style: normal; color: var(--gold); font-weight: 800; letter-spacing: 1px; }

/* Bande-annonce */
.trailer { background: linear-gradient(180deg, var(--night), #1a1310); }
.screen {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9;
  border: 3px solid var(--gold-2);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .55), 0 0 0 7px rgba(242, 193, 78, .35), 0 24px 60px rgba(0, 0, 0, .6);
}
.screen img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.62); }
.screen-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 16px; }
.screen-over p { margin: 0; font: 400 clamp(16px, 4vw, 24px)/1.2 var(--title); color: var(--gold); text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.play {
  width: 74px; height: 74px; border-radius: 50%; position: relative;
  background: rgba(20, 15, 12, .6); border: 3px solid var(--gold);
  box-shadow: 0 0 0 0 rgba(242, 193, 78, .55); animation: pulse 2.2s ease-out infinite;
}
.play::after { content: ""; position: absolute; left: 29px; top: 21px; border-left: 24px solid var(--gold); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }

/* Personnages (carrousel) */
.cast { background: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(95, 179, 230, .1), transparent 70%), #1a1310; padding-bottom: 64px; }
.carousel { position: relative; }
.track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 12px max(var(--gutter), calc((100vw - 1080px) / 2 + var(--gutter))) 28px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1080px) / 2 + var(--gutter)));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 min(74vw, 300px); scroll-snap-align: start;
  border-radius: 22px; overflow: hidden; position: relative;
  border: 2px solid rgba(242, 193, 78, .45);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06);
  background: var(--night-3);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(0, 0, 0, .55), 0 0 0 2px var(--gold); }
.card > img, .lock-art { width: 100%; aspect-ratio: 520 / 600; object-fit: cover; object-position: center 12%; }
.c-blue > img { background: #c9c3d2; }
.card-body { padding: 16px 18px 20px; background: linear-gradient(180deg, rgba(20, 15, 12, .2), var(--night-2) 30%); }
.card h3 { margin: 6px 0 6px; font: 700 21px/1.2 var(--round); color: var(--cream); }
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 12px/1.4 var(--round); letter-spacing: 1px; text-transform: uppercase; background: var(--gold); color: #2a1606; }
.c-sea .tag { background: var(--sky); color: #08263b; }
.c-red .tag { background: var(--clay); color: #fff; }
.c-sun .tag { background: #ffd23f; }
.tag-lock { background: #3b3029 !important; color: var(--muted) !important; border: 1px solid rgba(242, 193, 78, .4); }
.c-gold { border-color: var(--gold); }
.c-sea { border-color: rgba(95, 179, 230, .7); }
.c-red { border-color: rgba(200, 100, 58, .8); }
.c-lock .lock-art { position: relative; display: block; overflow: hidden; background: var(--earth-2); }
.c-lock .lock-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.55) blur(1px); }
.c-lock .lock-art::after {
  content: "?"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 88px/1 var(--title); color: var(--gold); text-shadow: 0 4px 0 var(--gold-3), 0 0 30px rgba(242, 193, 78, .5);
}
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 var(--gutter); }
.round {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  font: 700 30px/1 var(--round); color: #2a1606; display: grid; place-items: center; padding-bottom: 4px;
  background: linear-gradient(180deg, #ffe08a, var(--gold) 50%, var(--gold-2));
  border: 2px solid #ffeab0; box-shadow: 0 5px 0 var(--gold-3), 0 8px 18px rgba(0, 0, 0, .4);
}
.round:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-3); }
.round:disabled { opacity: .4; cursor: default; }
.dots { display: flex; gap: 8px; }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(242, 193, 78, .3); transition: width .3s, background .3s; }
.dots span.on { width: 24px; background: var(--gold); }

/* Porte de lumière */
.portal {
  position: relative; min-height: 560px; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; text-align: center; padding: 80px var(--gutter);
  background: radial-gradient(ellipse 60% 70% at 50% 50%, #fff3c4 0%, var(--gold) 22%, #c27a12 45%, #3a210c 75%, var(--night) 100%);
}
.portal-light {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 244, 200, .22) 0 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
  animation: spin 60s linear infinite;
}
.door { display: none; }
.js .door {
  display: block; position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 30%, transparent 70%, rgba(0, 0, 0, .35)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #b24a28, var(--earth-2));
  transition: transform 1.6s cubic-bezier(.7, 0, .2, 1);
}
.door::after {
  content: ""; position: absolute; top: 50%; width: 120px; height: 120px; margin-top: -60px;
  border-radius: 14px; border: 6px solid rgba(242, 193, 78, .55);
  background: url("assets/img/glele-lion.webp") center / cover;
  filter: sepia(.4) saturate(1.2); box-shadow: inset 0 0 20px rgba(0, 0, 0, .5), 0 6px 0 rgba(0, 0, 0, .3);
}
.door-l { left: 0; box-shadow: inset -10px 0 30px rgba(0, 0, 0, .45); }
.door-l::after { right: 18%; }
.door-r { right: 0; box-shadow: inset 10px 0 30px rgba(0, 0, 0, .45); }
.door-r::after { left: 18%; transform: scaleX(-1); }
.portal.open .door-l { transform: translateX(-102%); }
.portal.open .door-r { transform: translateX(102%); }
.portal-text { position: relative; z-index: 2; max-width: 600px; color: #2a1606; }
.portal-text .title { color: #2a1606; text-shadow: 0 2px 0 rgba(255, 240, 190, .8), 0 0 40px rgba(255, 255, 255, .6); font-size: clamp(40px, 12vw, 84px); }
.portal-text p { font: 700 clamp(17px, 2.6vw, 21px)/1.45 var(--round); margin: 0; }
.years { display: flex; justify-content: center; align-items: center; gap: 14px; font: 400 clamp(22px, 6vw, 34px)/1 var(--title); margin: 0 0 12px; }
.years span:first-child { color: var(--sky-2); }
.years span:last-child { color: var(--earth-2); }
.years .arrow { color: #2a1606; font-family: var(--round); }

/* Deux époques */
.eras { background: linear-gradient(180deg, var(--night) 0%, #1a1310 100%); }
.era-grid { display: grid; gap: 18px; }
.era { border-radius: 22px; padding: 22px 18px 18px; overflow: hidden; position: relative; }
.era header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.era h3 { margin: 0; font: 700 28px/1.1 var(--round); }
.era-year { font: 400 34px/1 var(--title); }
.era p { margin: 0 0 16px; }
.era-now { background: linear-gradient(160deg, #1e4f73 0%, #163a57 45%, #10202e 100%); border: 2px solid rgba(95, 179, 230, .55); }
.era-now .era-year { color: #9fd8ff; }
.era-now p { color: #d8ecf8; }
.era-then { background: linear-gradient(160deg, #8a3418 0%, #5e2410 50%, #2c140a 100%); border: 2px solid rgba(242, 193, 78, .5); }
.era-then .era-year { color: var(--gold); }
.era-then p { color: #f6dcc7; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumbs img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; background: #e9e1d6; }
.ingame { display: grid; gap: 22px; margin-top: 40px; align-items: center; }
.phone {
  width: min(62vw, 260px); margin: 0 auto; padding: 10px; border-radius: 38px;
  background: linear-gradient(160deg, #3a2a20, #120c09);
  box-shadow: 0 0 0 2px rgba(242, 193, 78, .5), 0 24px 50px rgba(0, 0, 0, .6);
}
.phone img { border-radius: 28px; width: 100%; }
.ingame-txt h3 { margin: 0 0 8px; font: 700 clamp(22px, 4vw, 30px)/1.2 var(--round); color: var(--cream); }
.ingame-txt p { color: var(--muted); }
.ingame-wide { margin-top: 14px; border-radius: 16px; border: 2px solid rgba(242, 193, 78, .3); max-height: 420px; width: 100%; object-fit: cover; }

/* Saisons */
.seasons { background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(166, 61, 34, .2), transparent 70%), #1a1310; }
.season-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.season {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(120, 120, 130, .16), rgba(80, 80, 90, .08));
  border: 1px solid rgba(214, 195, 166, .2);
  position: relative; overflow: hidden;
}
.season::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(200, 200, 210, .1) 40%, transparent 60%);
  background-size: 250% 100%; animation: fogmove 7s linear infinite;
}
.season h3 { margin: 0; font: 700 20px/1.2 var(--round); color: var(--cream); }
.season p { margin: 0; font-size: 15px; color: var(--muted); }
.season > div { flex: 1; }
.s-num {
  flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font: 400 20px/1 var(--title); background: #3b3029; color: var(--muted);
}
.s-state { font: 700 12px/1.3 var(--round); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-align: right; max-width: 90px; }
.s-open { background: linear-gradient(90deg, rgba(166, 61, 34, .55), rgba(122, 42, 22, .3)); border-color: var(--gold); box-shadow: 0 0 24px rgba(242, 193, 78, .18); }
.s-open::before { display: none; }
.s-open .s-num { background: linear-gradient(180deg, #ffe08a, var(--gold) 50%, var(--gold-2)); color: #2a1606; box-shadow: 0 3px 0 var(--gold-3); }
.s-open .s-state { color: var(--gold); }

/* Mots */
.words { background: var(--night); }
.word-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.word {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; border-radius: 18px; text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .06) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #8f3a1d, #5e2410);
  border: 2px solid rgba(242, 193, 78, .45);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 8px 0 #3d170a, 0 14px 24px rgba(0, 0, 0, .4);
}
.word .w { font: 700 clamp(24px, 6vw, 32px)/1.1 var(--round); color: var(--gold); text-shadow: 0 2px 0 #3d170a; }
.word .say { font: 600 13px/1 var(--round); letter-spacing: 1.5px; text-transform: uppercase; color: #ffd9b8; }
.word .mean { font-size: 15px; color: #fbe6d4; }

/* Prévenu */
.notify { overflow: hidden; isolation: isolate; text-align: center; padding: 110px 0 100px; }
.notify-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; z-index: -2; }
.notify-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(20, 15, 12, .6) 30%, rgba(20, 15, 12, .7) 70%, var(--night) 100%); }
.notify-inner .lead { margin-left: auto; margin-right: auto; color: var(--cream); text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.btn-gold#mailto { word-break: break-word; }
.fine { margin: 20px auto 0; font-size: 14px; color: var(--muted); max-width: 520px; }

/* Pied de page */
.footer { text-align: center; padding: 48px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(242, 193, 78, .2); background: #0e0a08; color: var(--muted); font-size: 15px; }
.footer img { width: 200px; margin: 0 auto 14px; }
.footer p { margin: 6px 0; }
.footer .dev { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(242, 193, 78, .5); color: var(--gold); font: 700 12px/1.4 var(--round); letter-spacing: 1.5px; text-transform: uppercase; }
.footer .small { font-size: 13px; opacity: .8; }

/* ===== Apparition au défilement (seulement si JS actif) ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Animations ===== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes logoIn { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes slowzoom { from { transform: scale(1.06); } to { transform: scale(1.16) translateX(-1.5%); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 193, 78, .55); } 100% { box-shadow: 0 0 0 26px rgba(242, 193, 78, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fogmove { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ===== Grands écrans ===== */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .section { padding: 110px 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 26px; }
  .era-grid { grid-template-columns: 1fr 1fr; }
  .word-grid { grid-template-columns: repeat(4, 1fr); }
  .season-list { grid-template-columns: 1fr 1fr; }
  .ingame { grid-template-columns: 300px 1fr; gap: 40px; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .season-list { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Accessibilité : moins d'animations ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .dust { display: none; }
}
