/* Stay Shift — direction « jeu vidéo premium » : nuit chaude, braise et or */

:root {
  --bg: #0d0a08;
  --bg-2: #15100c;
  --card: rgba(255, 240, 220, 0.04);
  --card-border: rgba(240, 180, 76, 0.18);
  --gold: #f0b44c;
  --gold-light: #ffd98a;
  --ember: #ff6a2b;
  --text: #f4ead9;
  --muted: #b9a991;
  --radius: 18px;
  --max-width: 1140px;
  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 106, 43, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(240, 180, 76, 0.08), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

.sprite {
  position: absolute;
}

#embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.muted {
  color: var(--muted);
  max-width: 720px;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.12;
  margin: 0;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fff6e6 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

a {
  color: var(--gold);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.9rem;
}

.icon {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.28em;
  flex-shrink: 0;
}

/* Boutons */
.button {
  position: relative;
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1rem;
  color: #1a0f05;
  text-decoration: none;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #d88a2a);
  border: none;
  border-radius: 12px;
  padding: 1rem 1.8rem;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 217, 138, 0.5) inset, 0 10px 30px rgba(240, 140, 50, 0.35);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: sweep 3.5s ease-in-out infinite;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 217, 138, 0.7) inset, 0 14px 40px rgba(255, 120, 40, 0.5);
}

.button:focus-visible,
.link-arrow:focus-visible,
.logo:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.button-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.92rem;
}

.button-full {
  width: 100%;
  margin-top: 1.5rem;
}

.link-arrow {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(240, 180, 76, 0.5);
  padding-bottom: 2px;
}

.link-arrow::after {
  content: " →";
  color: var(--gold);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(13, 10, 8, 0.6);
  border-bottom: 1px solid rgba(240, 180, 76, 0.1);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--gold);
}

/* En-tête */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 4rem 0 6rem;
}

.hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  right: -120px;
  top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 43, 0.28), rgba(240, 180, 76, 0.08) 45%, transparent 70%);
  filter: blur(10px);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  font-weight: 900;
  color: #fff6e6;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(255, 120, 40, 0.25);
}

.shine {
  background: linear-gradient(90deg, var(--gold) 0%, #fff3cf 25%, var(--ember) 50%, var(--gold) 75%, #fff3cf 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 1.5rem 0 0;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(240, 180, 76, 0.5);
  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: scroll 1.8s ease-in-out infinite;
}

/* Carte de quête */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.quest-card,
.world,
.tile,
.chapter,
.price-card,
.form-card,
.faq details {
  background: linear-gradient(180deg, rgba(255, 240, 220, 0.06), rgba(255, 240, 220, 0.02));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.quest-card {
  position: relative;
  padding: 1.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 120, 40, 0.15);
  transition: transform 0.25s ease;
  transform-style: preserve-3d;
}

.tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 217, 138, 0.12), transparent 45%);
  pointer-events: none;
}

.quest-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a0f05;
  background: var(--gold);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.quest-xp {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--gold-light);
}

.quest-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff6e6;
  margin: 1rem 0 0.9rem;
}

.quest-title .icon {
  color: var(--ember);
}

.bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--gold), var(--gold-light));
  box-shadow: 0 0 18px rgba(255, 140, 50, 0.8);
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}

.quest-steps {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.2rem;
  font-size: 0.95rem;
}

.quest-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0;
  color: var(--muted);
}

.quest-steps li.done {
  color: var(--text);
}

.quest-steps li.done .icon {
  color: #1a0f05;
  background: var(--gold);
  border-radius: 50%;
  padding: 3px;
  stroke-width: 3;
}

.dot {
  width: 1.3em;
  height: 1.3em;
  border: 2px solid rgba(240, 180, 76, 0.35);
  border-radius: 50%;
  flex-shrink: 0;
}

.quest-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

.chip-fire {
  background: rgba(255, 106, 43, 0.15);
  color: #ffb28a;
  border: 1px solid rgba(255, 106, 43, 0.35);
}

.chip-fire .icon {
  animation: flicker 1.6s ease-in-out infinite;
}

.chip-gold {
  background: rgba(240, 180, 76, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(240, 180, 76, 0.35);
}

.stayer {
  position: absolute;
  width: 130px;
  right: -50px;
  bottom: -70px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
}

.float {
  animation: float 4s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 3rem;
}

/* Problème */
.problem-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.big-stat {
  text-align: center;
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1;
}

.big-stat .count {
  font-size: clamp(6rem, 16vw, 11rem);
  background: linear-gradient(180deg, var(--gold-light), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(255, 106, 43, 0.35));
}

.big-stat .unit {
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--ember);
}

.big-stat p {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* Arborescence d'une quête */
.quest-tree,
.quest-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quest-tree {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.quest-tree > li > strong {
  color: var(--gold-light);
}

.quest-tree ul {
  margin: 0.4rem 0 0 0.4rem;
  border-left: 1px solid var(--card-border);
}

.quest-tree ul li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.1rem;
  color: var(--muted);
}

.quest-tree ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.7rem;
  border-top: 1px solid var(--card-border);
}

/* Cas concrets */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.case {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255, 240, 220, 0.06), rgba(255, 240, 220, 0.02));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.case-tag {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.case h3 {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: 1.6rem;
}

.case ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.case-hyp strong,
.case-compare strong {
  color: var(--text);
}

.case-total {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1.1;
  color: var(--gold-light);
}

.case-total small {
  display: block;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
}

.case-compare {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.case-notes {
  max-width: 820px;
  margin: 2.5rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.case-notes a {
  color: var(--gold-light);
}

/* Fondateur */
.founder-card {
  position: relative;
  padding: 3rem 2.5rem;
  background: linear-gradient(180deg, rgba(255, 240, 220, 0.06), rgba(255, 240, 220, 0.02));
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.founder-card::before {
  content: "\201C";
  position: absolute;
  top: -0.2rem;
  right: 1.5rem;
  font-family: var(--font-title);
  font-size: 8rem;
  line-height: 1;
  color: rgba(240, 180, 76, 0.12);
}

.founder-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.founder-card p {
  color: var(--text);
}

.founder-sign {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2rem 0 0;
  color: var(--muted) !important;
}

.founder-sign strong {
  color: var(--gold-light);
}

.founder-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.3rem;
  color: #1a0f05;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 25px rgba(255, 140, 50, 0.35);
}

/* Chapitres */
.chapters {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.chapter {
  position: relative;
  padding: 2rem 1.6rem;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.chapter:hover {
  border-color: rgba(240, 180, 76, 0.5);
  transform: translateY(-6px);
}

.chapter-num {
  position: absolute;
  right: 1.2rem;
  top: 0.4rem;
  font-family: var(--font-title);
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(240, 180, 76, 0.08);
}

.chapter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 217, 138, 0.35), rgba(255, 106, 43, 0.15));
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  box-shadow: 0 0 25px rgba(255, 140, 50, 0.25);
}

.chapter p {
  color: var(--muted);
  margin: 0;
}

.support {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(240, 180, 76, 0.3);
  color: var(--muted);
}

.support .icon {
  color: var(--gold);
}

/* Fonctionnalités (codex) */
.codex {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.codex li {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.codex li:first-child {
  border-top: 1px solid var(--card-border);
}

.codex .icon {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.55rem;
  border-radius: 12px;
  color: var(--gold);
  background: rgba(240, 180, 76, 0.08);
  border: 1px solid rgba(240, 180, 76, 0.25);
  box-shadow: 0 0 18px rgba(240, 180, 76, 0.12);
}

.codex h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold-light);
}

.codex p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.codex-locked {
  opacity: 0.55;
}

.codex-locked .icon {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.codex-locked h3 {
  color: var(--muted);
  font-style: italic;
}

/* Univers */
.worlds {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.world {
  position: relative;
  padding: 3rem 1.2rem 1.4rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.world:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow);
}

.world svg {
  width: 72px;
  height: 54px;
  margin-bottom: auto;
}

.world strong {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff6e6;
}

.world span {
  font-size: 0.92rem;
  color: var(--muted);
}

.world-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.world-badge-on {
  color: #1a1208;
  background: var(--gold);
  border-color: var(--gold);
}

.world-soon svg,
.world-soon strong,
.world-soon span {
  opacity: 0.7;
}

.world-escape {
  --glow: rgba(60, 220, 170, 0.3);
  background: linear-gradient(160deg, rgba(30, 150, 120, 0.45), rgba(6, 24, 20, 0.6));
  color: #9ff0d4;
}

.world-aventure {
  --glow: rgba(230, 70, 50, 0.35);
  background: linear-gradient(160deg, rgba(150, 30, 25, 0.5), rgba(24, 6, 6, 0.6));
  color: #ffb0a0;
}

.world-pixel {
  --glow: rgba(90, 170, 255, 0.3);
  background: linear-gradient(160deg, rgba(50, 100, 190, 0.45), rgba(8, 14, 30, 0.6));
  color: #a9d2ff;
}

.world-city {
  --glow: rgba(255, 170, 80, 0.35);
  background: linear-gradient(160deg, rgba(200, 120, 50, 0.45), rgba(30, 18, 8, 0.6));
  color: #ffd29a;
}

.world-classic {
  --glow: rgba(255, 255, 255, 0.15);
  color: #e9dfcf;
}

/* Bento */
.bento {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tile {
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.tile:hover {
  border-color: rgba(240, 180, 76, 0.5);
  transform: translateY(-4px);
}

.tile-wide {
  grid-column: span 2;
}

.tile .icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(240, 180, 76, 0.5));
}

.tile p {
  color: var(--muted);
  margin: 0;
}

/* Prix */
.price-card {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    conic-gradient(from var(--angle, 0deg), var(--ember), var(--gold-light), var(--gold), #7a3a10, var(--ember)) border-box;
  animation: spin-border 6s linear infinite;
  box-shadow: 0 0 80px rgba(255, 120, 40, 0.18);
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.price-card p {
  margin: 0;
}

.price-from,
.price-for {
  color: var(--muted);
}

.price-from {
  margin-top: 1.25rem !important;
}

.price-amount {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 9vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(255, 140, 50, 0.45);
}

.price-amount small {
  font-size: 1.2rem;
  color: var(--muted);
  text-shadow: none;
}

.price-card .button {
  margin-top: 2rem;
}

.price-founder {
  margin-top: 1rem !important;
  color: var(--muted);
}

.tiers {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.tiers li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.1rem 0.5rem;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255, 240, 220, 0.03);
}

.tier-size {
  font-size: 0.85rem;
  color: var(--muted);
}

.tier-price {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--gold-light);
  text-shadow: 0 0 24px rgba(255, 140, 50, 0.35);
}

.tier-unit {
  font-size: 0.78rem;
  color: var(--muted);
}

.price-more {
  margin-top: 1.25rem !important;
  color: var(--muted);
}

.price-more a {
  color: var(--gold-light);
}

@media (max-width: 640px) {
  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

.price-note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 480px;
  margin: 1.75rem auto 0 !important;
}

/* Questions fréquentes */
.faq details {
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: rgba(240, 180, 76, 0.45);
}

summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* Formulaire */
.form-card {
  padding: 3rem 2.5rem;
  box-shadow: 0 0 80px rgba(255, 120, 40, 0.12);
}

.form-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

.form-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form label {
  display: block;
  font-weight: 500;
  margin: 0.9rem 0 0.4rem;
}

.form-intro {
  text-align: center;
  color: var(--muted);
  max-width: 34rem;
  margin: 0.75rem auto 1.5rem;
}

.form textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(240, 180, 76, 0.4);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form select option {
  background: var(--bg-2);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 180, 76, 0.2), 0 0 25px rgba(255, 140, 50, 0.25);
}

.notice {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

/* Apparition au défilement */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Pied de page */
.footer {
  border-top: 1px solid rgba(240, 180, 76, 0.12);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.footer p {
  margin: 0;
}


/* Animations */
@keyframes shine {
  to { background-position: 200% center; }
}

@keyframes sweep {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes flicker {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes scroll {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes spin-border {
  to { --angle: 360deg; }
}

/* Tablette */
@media (max-width: 960px) {
  .hero-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 1rem;
  }

  .chapters,
  .cases,
  .bento {
    grid-template-columns: 1fr;
  }

  .tile-wide {
    grid-column: auto;
  }

  .worlds {
    grid-template-columns: repeat(2, 1fr);
  }

  .stayer {
    right: -10px;
  }

  .scroll-hint {
    display: none;
  }
}

/* Téléphone */
@media (max-width: 520px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 2.5rem 0 5rem;
  }

  .hero-glow {
    width: 380px;
    height: 380px;
    right: -160px;
  }

  .worlds,
  .form-row {
    grid-template-columns: 1fr;
  }

  .world {
    min-height: 170px;
  }

  .stayer {
    width: 95px;
    bottom: -50px;
  }

  .form-card,
  .founder-card {
    padding: 2rem 1.25rem;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bar-fill {
    width: 60%;
  }
}
