/* Site de Guildenza : nuit bleue sur Paris, or et parchemin, comme dans le jeu.
   Polices du jeu hébergées sur le site (Cinzel pour les titres, Alegreya Sans pour le texte). */

@font-face {
  font-family: "Cinzel";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cinzel-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cinzel-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/alegreyasans-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/alegreyasans-medium.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/alegreyasans-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/alegreyasans-italic.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --night: #0a1330;
  --night-2: #0e1a3f;
  --night-3: #14234f;
  --night-deep: #060c22;
  --line: rgba(226, 189, 105, 0.18);
  --line-soft: rgba(242, 233, 216, 0.08);
  --gold: #e2bd69;
  --gold-bright: #f6dc9b;
  --gold-deep: #a97a26;
  --text: #f2e9d8;
  --text-soft: #cdc1a8;
  --muted: #9d927d;
  --parchment: #f4e8cb;
  --parchment-2: #e8d6a9;
  --ink: #2b2014;
  --ink-soft: #5a4931;
  --green: #4f9a5d;
  --river: #1f4f86;
  --title: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 28px 60px -30px rgba(0, 0, 0, 0.9);
  --header: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 79, 134, 0.35), transparent 70%),
    radial-gradient(900px 500px at -10% 30%, rgba(169, 122, 38, 0.12), transparent 70%),
    var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--gold-bright);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 820px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

.gold-text {
  background: linear-gradient(180deg, var(--gold-bright) 10%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  color: var(--text-soft);
  font-size: 1.22rem;
  max-width: 38em;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(8, 15, 40, 0.84);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}
.wordmark {
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.main-nav {
  display: flex;
  gap: 26px;
  margin-left: 8px;
}
.main-nav a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 6px 0;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-bright);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}
.lang:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-btn .icon {
  width: 22px;
  height: 22px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #c99a42);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 30px -14px rgba(226, 189, 105, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.btn--ghost {
  background: rgba(10, 19, 48, 0.4);
  color: var(--gold-bright);
  border-color: rgba(226, 189, 105, 0.55);
  box-shadow: none;
}
.btn--ghost:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(226, 189, 105, 0.08);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: #050a1c;
  border: 1px solid rgba(242, 233, 216, 0.28);
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
}
.play-btn--large {
  min-height: 52px;
  padding: 8px 20px 8px 16px;
}
.play-btn--small {
  padding: 6px 12px 6px 10px;
}
.play-btn--small .play-text small {
  font-size: 0.62rem;
}
.play-btn--small .play-text strong {
  font-size: 0.92rem;
}
.play-ico {
  width: 26px;
  height: 26px;
  color: var(--gold);
}
.play-btn--small .play-ico {
  width: 20px;
  height: 20px;
}
.play-text {
  display: flex;
  flex-direction: column;
}
.play-text small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.play-text strong {
  font-size: 1.15rem;
}
.play-btn.is-soon {
  cursor: default;
  border-style: dashed;
}
a.play-btn:hover {
  color: var(--text);
  border-color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  text-decoration: none;
}
.link-arrow:hover .icon {
  transform: translateX(3px);
}
.link-arrow .icon {
  transition: transform 0.2s ease;
}

/* ---------- Accueil : héros ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 96px;
  min-height: min(880px, calc(100vh - var(--header)));
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 14, 38, 0.96) 0%, rgba(8, 14, 38, 0.82) 42%, rgba(8, 14, 38, 0.35) 100%),
    linear-gradient(0deg, var(--night) 0%, transparent 28%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}
.hero-logo {
  display: block;
  width: min(250px, 60%);
  margin: -8px 0 10px -10px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
}
.hero h1 {
  font-size: clamp(2rem, 3.9vw, 3.25rem);
}
.hero h1 span {
  display: block;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-weight: 500;
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-facts .icon {
  color: var(--gold);
}
.hero-media {
  display: flex;
  justify-content: center;
}
.phone {
  width: min(300px, 100%);
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1c2a55, #050a1c 60%);
  border: 1px solid rgba(226, 189, 105, 0.35);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(5, 10, 28, 0.6);
  transform: rotate(2deg);
}
.phone img {
  display: block;
  border-radius: 29px;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section--alt {
  background:
    linear-gradient(180deg, rgba(20, 35, 79, 0.55), rgba(14, 26, 63, 0.75)),
    var(--night-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section--tight {
  padding: 28px 0;
}
.section-head {
  max-width: 780px;
  margin: 0 0 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2,
.split-text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}
.section-head p:not(.eyebrow) {
  color: var(--text-soft);
  font-size: 1.15rem;
}
.more {
  margin: 40px 0 0;
  text-align: center;
  color: var(--text-soft);
}

/* Encadré d'information */
.notice {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(226, 189, 105, 0.12), rgba(226, 189, 105, 0.03));
  border: 1px solid var(--line);
}
.notice h2 {
  font-size: 1.25rem;
  margin-bottom: 0.3em;
}
.notice p {
  margin: 0;
  color: var(--text-soft);
}
.notice-ico,
.card-ico,
.online-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(226, 189, 105, 0.14);
  color: var(--gold);
  border: 1px solid var(--line);
}
.notice-ico .icon,
.card-ico .icon,
.online-ico .icon {
  width: 24px;
  height: 24px;
}

/* Les quatre gestes */
.verbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.verb {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}
.verb::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(169, 122, 38, 0.45);
  border-radius: 13px;
  pointer-events: none;
}
.verb img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}
.verb h3 {
  font-size: 1.3rem;
  color: #6b4a14;
}
.verb p {
  margin: 0;
  color: var(--ink-soft);
}

/* Étapes d'une manche */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 16px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: rgba(6, 12, 34, 0.55);
  border: 1px solid var(--line-soft);
}
.steps h3 {
  font-size: 1.15rem;
}
.steps p {
  margin: 0;
  color: var(--text-soft);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: var(--ink);
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Captures d'écran (défilement horizontal) */
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(24px, calc((100vw - 1180px) / 2 + 24px)) 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
.shot {
  flex: 0 0 auto;
  width: clamp(210px, 24vw, 270px);
  margin: 0;
  scroll-snap-align: center;
}
.shot img {
  display: block;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Portraits des personnages (accueil) */
.portraits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.portrait {
  margin: 0;
}
.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.portrait figcaption {
  padding: 12px 4px 0;
  text-align: center;
}
.portrait strong {
  display: block;
  font-family: var(--title);
  color: var(--gold-bright);
  font-size: 1.02rem;
}
.portrait span {
  display: block;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Bloc image + texte */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.split-media img {
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-text p {
  color: var(--text-soft);
}
.ticks {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}
.ticks li {
  display: flex;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--text-soft);
}
.ticks .icon {
  color: var(--gold);
  margin-top: 0.3em;
}
.ticks strong {
  color: var(--text);
}

/* Cartes génériques */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: rgba(6, 12, 34, 0.5);
  border: 1px solid var(--line-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.15rem;
  margin-top: 16px;
}
.card p {
  margin: 0;
  color: var(--text-soft);
}

/* Promesses : achats, publicité, données */
.fair {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(6, 12, 34, 0.55);
}
.fair-item {
  display: flex;
  gap: 14px;
  padding: 26px 24px;
}
.fair-item + .fair-item {
  border-left: 1px solid var(--line-soft);
}
.fair-item > .icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
}
.fair-item h3 {
  font-size: 1.05rem;
}
.fair-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* Mondes (accueil) */
.worlds {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.worlds a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 18px 12px 16px;
  border-radius: var(--radius);
  background: rgba(6, 12, 34, 0.5);
  border: 1px solid var(--line-soft);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.worlds a:hover {
  color: var(--text);
  border-color: var(--line);
  transform: translateY(-3px);
}
.worlds img {
  width: 100%;
  max-width: 132px;
  border-radius: 24%;
  margin-bottom: 8px;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
.worlds strong {
  font-family: var(--title);
  font-size: 1.05rem;
}
.worlds span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.3;
}
.worlds em,
.world-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 3px 12px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.worlds em {
  margin-top: 10px;
}
.is-open {
  background: rgba(79, 154, 93, 0.2);
  color: #9fdcab;
  border: 1px solid rgba(79, 154, 93, 0.5);
}
.is-soon {
  background: rgba(226, 189, 105, 0.12);
  color: var(--gold);
  border: 1px solid var(--line);
}
.online {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px dashed rgba(226, 189, 105, 0.4);
}
.online h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3em;
}
.online p {
  margin: 0;
  color: var(--text-soft);
}

/* Appel final */
.cta {
  padding: 48px 32px;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(226, 189, 105, 0.16), transparent 70%),
    rgba(6, 12, 34, 0.6);
  border: 1px solid var(--line);
}
.cta-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}
.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.cta p {
  color: var(--text-soft);
  margin: 0;
}
.cta .hero-actions {
  justify-content: center;
}

/* ---------- En-tête des pages intérieures ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 14, 38, 0.95) 0%, rgba(8, 14, 38, 0.8) 55%, rgba(8, 14, 38, 0.55) 100%),
    linear-gradient(0deg, var(--night) 0%, transparent 40%);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 18em;
}
.page-hero h1 span {
  display: block;
}
.page-hero .lead {
  margin-bottom: 0;
}
.page-hero--short {
  padding: 72px 0 52px;
}
.page-hero--plain {
  padding: 64px 0 36px;
  border-bottom: 0;
}
.page-hero--plain::after {
  display: none;
}
.page-hero--center {
  text-align: center;
  padding: 80px 0;
}
.page-hero--center .hero-actions {
  justify-content: center;
}
.page-hero--center .lead {
  margin: 0 auto 0.6em;
}
.page-hero--center h1 {
  margin-left: auto;
  margin-right: auto;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.toc a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 34, 0.55);
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.toc a:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

/* ---------- Règles ---------- */
.rules {
  max-width: 920px;
  padding-top: 56px;
  padding-bottom: 24px;
}
.rule {
  position: relative;
  margin: 0 0 28px;
  padding: 34px 38px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: var(--ink);
  box-shadow: var(--shadow);
}
.rule::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(169, 122, 38, 0.4);
  border-radius: 13px;
  pointer-events: none;
}
.rule h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #5f3f0e;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-bottom: 18px;
}
.rule h2 img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: none;
}
.rule h3 {
  color: #5f3f0e;
  font-size: 1.2rem;
  margin-top: 1.4em;
}
.rule a {
  color: #7a4d0c;
}
.rule ul,
.rule ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}
.rule li {
  margin: 0 0 0.45em;
}
.rule li::marker {
  color: var(--gold-deep);
}
.rule .numbered {
  list-style: none;
  padding: 0;
  counter-reset: etape;
}
.rule .numbered li {
  counter-increment: etape;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
}
.rule .numbered li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2a3f78;
  color: var(--gold-bright);
  font-family: var(--title);
  font-weight: 700;
  font-size: 0.95rem;
}
.rule .note {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1rem;
  margin: 0;
}
.example {
  margin: 18px 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(169, 122, 38, 0.13);
  border: 1px solid rgba(169, 122, 38, 0.45);
}
.example p {
  margin: 0;
}
.example p + p,
.example .equation + p {
  margin-top: 8px;
}
.example-title {
  font-family: var(--title);
  font-weight: 700;
  color: #6b4a14;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.example--tip {
  background: rgba(79, 154, 93, 0.12);
  border-color: rgba(63, 125, 74, 0.45);
}
.example--tip .example-title {
  color: #2f6b3a;
}
.equation,
.shard-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 10px 0 4px;
}
.shard-row {
  gap: 14px 22px;
  margin: 8px 0 14px;
}
.shard {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
}
.shard img {
  width: auto;
  height: 54px;
}
.shard span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}
p .shard img {
  height: 30px;
}
.op {
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold-deep);
}
.total {
  font-family: var(--title);
  font-weight: 700;
  font-size: 1.1rem;
  color: #5f3f0e;
}
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}
.rule table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  overflow: hidden;
}
.rule th,
.rule td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(169, 122, 38, 0.3);
  white-space: nowrap;
}
.rule thead th {
  background: #2a3f78;
  color: var(--gold-bright);
  font-family: var(--title);
  font-weight: 600;
  font-size: 0.92rem;
}
.rule tbody tr:last-child td {
  border-bottom: 0;
}
.tips li {
  margin-bottom: 0.6em;
}

/* Les quais : deux rives, la Seine au milieu */
.quays {
  margin: 22px 0 0;
  padding: 18px;
  border-radius: 14px;
  background: #ccb383;
  border: 1px solid rgba(95, 63, 14, 0.4);
}
.bank {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #8a6a32;
  background: rgba(43, 32, 20, 0.1);
}
.slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(10, 19, 48, 0.85);
  color: var(--gold-bright);
  font-family: var(--title);
  font-weight: 700;
  font-size: 0.85rem;
}
.slot--empty {
  border-style: dashed;
}
.slot--empty span {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.river {
  position: relative;
  height: 54px;
  margin: 12px 0;
  border-radius: 8px;
  background:
    repeating-linear-gradient(170deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 18px),
    linear-gradient(180deg, #2c6aa8, var(--river));
}
.river-name {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(242, 233, 216, 0.85);
  font-family: var(--title);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
.bridge {
  position: absolute;
  left: 0;
  top: -8px;
  bottom: -8px;
  width: calc((100% - 28px) / 3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #b9a88a, #8f7f62);
  border: 2px solid #6f6047;
  color: var(--ink);
  font-family: var(--title);
  font-weight: 700;
  font-size: 0.95rem;
}
.quays figcaption {
  margin-top: 14px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}
.families li {
  margin-bottom: 0.6em;
}

/* ---------- Personnages, échoppes, bonus, éclats ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.role {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(6, 12, 34, 0.55);
  border: 1px solid var(--line-soft);
}
.role img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.role-body {
  padding: 22px 24px;
}
.role h3 {
  font-size: 1.35rem;
  color: var(--gold-bright);
}
.role-short {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(226, 189, 105, 0.14);
  border: 1px solid var(--line);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.92rem;
}
.role-body p:last-child {
  margin: 0;
  color: var(--text-soft);
}
.families-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.family {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(6, 12, 34, 0.55);
  border: 1px solid var(--line-soft);
}
.family h3 {
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin-bottom: 0.3em;
}
.family > p {
  color: var(--text-soft);
  min-height: 3.2em;
}
.family-shops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.shop {
  margin: 0;
}
.shop img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.shop figcaption {
  padding-top: 8px;
}
.shop strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}
.shop span {
  color: var(--text-soft);
  font-size: 0.95rem;
}
.stars {
  color: var(--gold);
  letter-spacing: 0.08em;
}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.bonus {
  padding: 16px 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: var(--ink);
  box-shadow: var(--shadow);
}
.bonus img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}
.bonus h3 {
  font-size: 1.15rem;
  color: #5f3f0e;
  margin-bottom: 0.3em;
}
.bonus p {
  margin: 0;
  color: var(--ink-soft);
}
.gems {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gems li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 10px;
  border-radius: var(--radius);
  background: rgba(6, 12, 34, 0.5);
  border: 1px solid var(--line-soft);
}
.gems img {
  height: 96px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6));
}
.gems strong {
  font-family: var(--title);
  font-size: 1rem;
}
.gems span {
  color: var(--text-soft);
  font-size: 0.92rem;
}
.gem-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.gem-extra > div {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(226, 189, 105, 0.06);
}
.gem-extra img {
  height: 70px;
  width: auto;
  flex: none;
}
.gem-extra p {
  margin: 0;
  color: var(--text-soft);
}
.gem-extra strong {
  color: var(--text);
}
.levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.levels li {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: rgba(6, 12, 34, 0.5);
  border: 1px solid var(--line-soft);
}
.level-stars {
  display: block;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.levels h3 {
  font-size: 1.2rem;
}
.levels p {
  margin: 0;
  color: var(--text-soft);
}

/* ---------- Mondes ---------- */
.worlds-list {
  padding-top: 64px;
  padding-bottom: 24px;
}
.world {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}
.world--reverse .world-media {
  order: 2;
}
.world-media {
  position: sticky;
  top: calc(var(--header) + 24px);
}
.world-media img {
  display: block;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.world-status {
  margin: 0 0 14px;
}
.world h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
.world h2 .gold-text {
  display: block;
  font-size: 0.62em;
  margin-top: 6px;
}
.world-short {
  font-size: 1.2rem;
  color: var(--gold-bright);
  font-style: italic;
}
.world-body > p {
  color: var(--text-soft);
}
.world h3 {
  font-size: 1.1rem;
  margin-top: 1.4em;
}
.world-novelty {
  margin: 22px 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--parchment), var(--parchment-2));
  color: var(--ink);
}
.world-novelty h3 {
  margin-top: 0;
  color: #5f3f0e;
}
.world-novelty p {
  margin: 0;
  color: var(--ink-soft);
}
.world-exclusive {
  margin: 22px 0;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid rgba(226, 189, 105, 0.55);
  background: rgba(226, 189, 105, 0.08);
}
.world-exclusive h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  color: var(--gold-bright);
}
.world-exclusive p {
  margin: 0;
  color: var(--text-soft);
}
.world-example {
  color: var(--muted);
  font-style: italic;
}
.world-example strong {
  color: var(--text-soft);
  font-style: normal;
}

/* ---------- Questions fréquentes ---------- */
.faq {
  max-width: 880px;
  padding-top: 56px;
  padding-bottom: 72px;
}
.faq-group {
  margin-bottom: 44px;
}
.faq-group h2 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq details p {
  margin: 0 4px 20px;
  color: var(--text-soft);
}
.faq .notice {
  margin-top: 12px;
}

/* ---------- Pages légales ---------- */
.legal {
  max-width: 880px;
  padding-bottom: 80px;
}
.legal-card {
  padding: 36px 40px;
  border-radius: var(--radius);
  background: rgba(6, 12, 34, 0.55);
  border: 1px solid var(--line-soft);
}
.legal-card h2 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 1.6em;
}
.legal-card h2:first-child {
  margin-top: 0;
}
.legal-card p {
  color: var(--text-soft);
}
.legal-card strong {
  color: var(--text);
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding: 64px 0 32px;
  background: var(--night-deep);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.footer-brand p {
  color: var(--text-soft);
  margin: 14px 0 0;
  max-width: 26em;
}
.footer-by {
  font-weight: 700;
}
.site-footer h2 {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer nav a {
  color: var(--text-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer nav a:hover {
  color: var(--gold-bright);
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-bottom p {
  margin: 0 0 4px;
}
.footer-bottom a {
  color: var(--text-soft);
}

/* ---------- Apparitions au défilement (seulement si le script tourne) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card,
  .worlds a,
  .link-arrow .icon {
    transition: none;
  }
  .phone {
    transform: none;
  }
}

/* ---------- Écrans moyens ---------- */
@media (max-width: 1080px) {
  .main-nav {
    gap: 18px;
  }
  .portraits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .worlds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gems {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .verbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    background: rgba(8, 15, 40, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.15rem;
  }
  .main-nav a:last-child {
    border-bottom: 0;
  }
  .main-nav a[aria-current="page"]::after {
    display: none;
  }
  .site-header.is-open .main-nav {
    display: flex;
  }
  .hero-grid,
  .split,
  .world {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding: 48px 0 72px;
    min-height: 0;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(8, 14, 38, 0.78) 0%, rgba(8, 14, 38, 0.9) 60%, var(--night) 100%);
  }
  .hero-media {
    display: none;
  }
  .steps,
  .cards,
  .fair {
    grid-template-columns: minmax(0, 1fr);
  }
  .fair-item + .fair-item {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .roles,
  .families-grid,
  .gem-extra {
    grid-template-columns: minmax(0, 1fr);
  }
  .bonus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .world-media {
    position: static;
    max-width: 420px;
  }
  .world--reverse .world-media {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Téléphones ---------- */
@media (max-width: 600px) {
  body {
    font-size: 1.06rem;
  }
  .wrap {
    padding: 0 16px;
  }
  .header-inner {
    gap: 12px;
  }
  .wordmark {
    font-size: 1.15rem;
  }
  .play-btn--small {
    display: none;
  }
  .section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .hero-logo {
    width: min(220px, 62%);
  }
  .hero-actions .btn,
  .hero-actions .play-btn {
    width: 100%;
    justify-content: center;
  }
  .verbs,
  .portraits,
  .worlds,
  .gems,
  .levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .verb {
    padding: 22px 14px 18px;
  }
  .verb img {
    width: 56px;
    height: 56px;
  }
  .verb h3 {
    font-size: 1.1rem;
  }
  .verb p {
    font-size: 0.98rem;
  }
  .notice,
  .online {
    flex-direction: column;
    padding: 20px;
  }
  .rule {
    padding: 26px 20px 22px;
  }
  .rule h2 img {
    width: 38px;
    height: 38px;
  }
  .quays {
    padding: 10px;
  }
  .bank {
    gap: 8px;
  }
  .river-name {
    display: none;
  }
  .bridge {
    width: calc((100% - 16px) / 3);
    font-size: 0.8rem;
  }
  .bridge .icon {
    display: none;
  }
  .role {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .role-body {
    padding: 16px;
  }
  .family {
    padding: 18px;
  }
  .bonus-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-card {
    padding: 26px 20px;
  }
  .cta {
    padding: 36px 20px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
