/* Tahiti Clash — site public (tahiticlash.com)
   Direction artistique du jeu : lagon ensoleillé, verre dépoli blanc, Nunito 800/900 sans contour,
   encre sarcelle foncée, un seul bouton corail, or réservé aux jetons et récompenses. */

@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/nunito-800.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/nunito-900.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #0b3445;
  --ink-2: #2c5866;
  --ink-3: #46707c;
  --teal: #0e8a9a;
  --teal-deep: #08606d;
  --teal-soft: #dff5f7;
  --cyan: #45c6d6;
  --sky: #eaf8fb;
  --sand: #fbf6ec;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --coral-1: #fe5653;
  --coral-2: #de1c25;
  --gold: #f2b92c;
  --gold-ink: #7a5200;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 60px -24px rgba(11, 52, 69, 0.42), 0 3px 10px rgba(11, 52, 69, 0.08);
  --shadow-soft: 0 14px 34px -18px rgba(11, 52, 69, 0.38);
  --gutter: 16px;
  --maxw: 1200px;
  --header-h: 64px;
}

*, *::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-h) + 20px); }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, #f3fbfc 38%, var(--sand) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
.hero-art > picture, .leagues-art > picture, .final-art > picture, .collection-bg > picture, .strength-art > picture, .bg > picture { width: 100%; height: 100%; }
img { height: auto; }
a { color: var(--teal-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 800; }
.nowrap { white-space: nowrap; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--glass-strong); } }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 900; font-size: 1.02rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-coral {
  color: #fff;
  background: linear-gradient(180deg, var(--coral-1) 0%, var(--coral-2) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(120, 0, 8, 0.28), 0 14px 28px -12px rgba(222, 28, 37, 0.7);
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(120, 0, 8, 0.25);
}
.btn-coral::before { /* reflet vitré */
  content: ""; position: absolute; left: 14px; right: 14px; top: 4px; height: 42%;
  border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn-coral::after { /* balayage de lumière */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  transform: skewX(-18deg) translateX(-120%);
  animation: shine 7s ease-in-out 2.5s infinite;
  pointer-events: none;
}
.btn-coral:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(120, 0, 8, 0.28), 0 18px 34px -12px rgba(222, 28, 37, 0.8); transform: translateY(-1px); }
.btn-glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-glass:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.btn-teal { color: #fff; background: linear-gradient(180deg, #14a0b1, var(--teal-deep)); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 10px 22px -12px rgba(8, 96, 109, 0.8); }
.btn-teal:hover { color: #fff; transform: translateY(-1px); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 0.84rem; }
@keyframes shine { 0%, 70% { transform: skewX(-18deg) translateX(-120%); } 100% { transform: skewX(-18deg) translateX(560%); } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 10px var(--gutter) 0; pointer-events: none; }
.site-header .bar {
  pointer-events: auto;
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 40px); margin: 0 auto;
  height: var(--header-h); padding: 0 10px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-radius: 999px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}
.site-header.is-solid .bar, .page-legal .site-header .bar, .nav-open .site-header .bar {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--glass-edge);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 122px; filter: drop-shadow(0 4px 10px rgba(11, 52, 69, 0.25)); transition: opacity 0.3s ease, transform 0.3s ease; }
.page-home .site-header:not(.is-solid):not(.no-hero) .brand img { opacity: 0; transform: translateY(-6px); }
.page-home .site-header:not(.is-solid) .brand { pointer-events: none; }
.nav-open .site-header .brand img { opacity: 1 !important; transform: none !important; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav a { display: block; padding: 9px 13px; border-radius: 999px; color: var(--ink); font-weight: 800; font-size: 0.95rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.85); color: var(--teal-deep); }
.header-cta { display: none; }
.menu-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.82); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.nav-open .menu-btn .i-open { display: none; }
.nav-open .menu-btn .i-close { display: block; }
.mobile-nav {
  pointer-events: auto;
  display: none; margin: 10px auto 0; max-width: 520px; padding: 10px;
}
.nav-open .mobile-nav { display: block; animation: drop 0.22s ease-out; }
.mobile-nav ul { list-style: none; display: grid; gap: 2px; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px; color: var(--ink); font-weight: 900; font-size: 1.1rem; text-decoration: none; }
.mobile-nav a:hover { background: var(--teal-soft); }
.mobile-nav a::after { content: "›"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1000px) {
  .nav { display: block; }
  .menu-btn, .mobile-nav { display: none !important; }
  .header-cta { display: inline-flex; }
  .brand img { width: 136px; }
}

/* ---------- Hero ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero { position: relative; isolation: isolate; }
.hero-art { position: relative; z-index: -2; overflow: hidden; aspect-ratio: 1080 / 1640; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-art::after { /* fondu vers la page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 26%;
  background: linear-gradient(180deg, rgba(234, 248, 251, 0) 0%, rgba(234, 248, 251, 0.75) 70%, var(--sky) 100%);
}
.hero-sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: soft-light; }
.hero-sweep::before {
  content: ""; position: absolute; top: -30%; bottom: -30%; width: 24%; left: 0;
  background: linear-gradient(100deg, rgba(255, 244, 214, 0) 0%, rgba(255, 244, 214, 0.95) 50%, rgba(255, 244, 214, 0) 100%);
  transform: translateX(-120%) skewX(-16deg);
  animation: sweep 10s ease-in-out 1.2s infinite;
}
@keyframes sweep { 0%, 62% { transform: translateX(-120%) skewX(-16deg); } 100% { transform: translateX(560%) skewX(-16deg); } }
.hero-inner { position: static; }
.hero-logo {
  position: absolute; top: calc(var(--header-h) + 22px); left: 50%; transform: translateX(-50%);
  width: min(250px, 64vw); filter: drop-shadow(0 10px 18px rgba(11, 52, 69, 0.3));
  animation: logo-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1.1) both;
}
@keyframes logo-in { from { opacity: 0; transform: translateX(-50%) scale(0.92); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.hero-card { position: relative; margin-top: -26vw; padding: 22px 20px 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep);
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: currentColor; opacity: 0.6; }
.hero h1 { font-size: clamp(2.05rem, 8.4vw, 4.1rem); margin: 8px 0 12px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--teal); display: block; }
.hero .lead { font-size: 1.06rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cta-row .btn { flex: 1 1 auto; }
@media (max-width: 480px) { .cta-row .btn { width: 100%; white-space: normal; text-align: center; letter-spacing: 0.02em; font-size: 0.95rem; line-height: 1.2; padding: 10px 20px; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); border: 1px solid #fff; font-weight: 800; font-size: 0.86rem; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(11, 52, 69, 0.5); }
.chip img { width: 24px; height: 24px; object-fit: contain; }
.hero-tag {
  display: none; position: absolute; right: clamp(24px, 4vw, 80px); bottom: 15%; z-index: 1;
  padding: 10px 16px 10px 12px; border-radius: 999px; align-items: center; gap: 10px;
  font-weight: 800; font-size: 0.92rem; color: var(--ink);
}
.hero-tag .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(14, 138, 154, 0.22); }
@media (min-width: 761px) and (max-width: 1023px) {
  .hero-art { aspect-ratio: 16 / 11; }
  .hero-art img { object-position: 74% 60%; }
  .hero-logo { width: 300px; }
  .hero-card { max-width: 640px; margin: -120px auto 0; padding: 30px 34px 28px; }
  .hero h1 { font-size: 3.1rem; }
}
@media (min-width: 1024px) {
  .hero { min-height: max(700px, 100svh); display: flex; flex-direction: column; }
  .hero-art { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-art img { object-position: 8% 50%; }
  .hero-art::after { height: 12%; }
  .hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 1400px; padding-top: calc(var(--header-h) + 30px); padding-bottom: 60px; }
  .hero-logo { position: static; transform: none; width: 270px; margin: 0 0 8px -8px; animation-name: logo-in-d; }
  @keyframes logo-in-d { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
  .hero-card { margin-top: 0; padding: 28px 32px 26px; max-width: 600px; }
  .cta-row .btn { flex: 0 0 auto; }
  .hero-tag { display: inline-flex; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .hero-tag { display: none; } .hero h1 { font-size: 3rem; } }
@media (min-width: 1200px) {
  .hero h1 { font-size: 3.35rem; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section h2 { font-size: clamp(1.95rem, 5.4vw, 3.2rem); margin: 10px 0 14px; }
.section .lead { font-size: 1.1rem; color: var(--ink-2); }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* ---------- Règles ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 18px 18px 22px; display: flex; flex-direction: column; }
.step-visual { height: 150px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 20px; background: radial-gradient(120% 90% at 50% 30%, #1d9aa6 0%, #0b6d78 55%, #07515b 100%); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 -12px 30px rgba(0, 30, 40, 0.3); }
.step-visual::before { /* motif de feutre */
  content: ""; position: absolute; inset: 0; opacity: 0.12;
  background: radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px) 0 0 / 26px 26px;
}
.step-num { position: absolute; top: 28px; left: 28px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--teal-deep); font-weight: 900; font-size: 1rem; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5); }
.step h3 { font-size: 1.28rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 0.98rem; }
.fan { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.fan img { width: 64px; border-radius: 7px; box-shadow: 0 8px 16px -6px rgba(0, 20, 30, 0.6); margin: 0 -14px; }
.fan img:nth-child(1) { transform: rotate(-16deg) translateY(10px); }
.fan img:nth-child(2) { transform: rotate(-8deg) translateY(2px); }
.fan img:nth-child(4) { transform: rotate(8deg) translateY(2px); }
.fan img:nth-child(5) { transform: rotate(16deg) translateY(10px); }
.versus { display: flex; align-items: center; gap: 12px; }
.versus .pair { display: flex; }
.versus .pair img { width: 56px; border-radius: 6px; box-shadow: 0 8px 16px -6px rgba(0, 20, 30, 0.6); }
.versus .pair img + img { margin-left: -24px; transform: rotate(6deg); }
.versus .pair.win img { width: 64px; }
.versus .arrow { color: #fff; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.1em; text-align: center; line-height: 1.2; }
.versus .arrow svg { width: 26px; height: 26px; margin: 0 auto 2px; }
.checks { display: grid; gap: 7px; }
.check-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--teal-deep); font-weight: 900; font-size: 0.86rem; letter-spacing: 0.06em; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.6); }
.check-pill:nth-child(2) { margin-left: 18px; }
.check-pill:nth-child(3) { margin-left: 36px; }
.check-pill svg { width: 14px; height: 14px; }
.lone-card { position: relative; }
.lone-card img { width: 84px; border-radius: 8px; transform: rotate(-4deg); box-shadow: 0 0 0 2px rgba(255, 230, 160, 0.7), 0 0 34px rgba(255, 220, 140, 0.75), 0 12px 22px -8px rgba(0, 20, 30, 0.7); }
.scores { width: 82%; display: grid; gap: 6px; }
.scores div { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); font-weight: 800; font-size: 0.86rem; color: var(--ink); }
.scores div b { font-weight: 900; color: var(--teal-deep); }
.scores div.best { background: #fff; box-shadow: 0 0 0 2px var(--cyan); }
.scores div.best b { color: var(--teal); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(6, 1fr); }
  .step { grid-column: span 2; }
  .step:nth-child(4) { grid-column: 2 / span 2; }
}

.strength { margin-top: 26px; display: grid; gap: 16px; align-items: stretch; }
.strength-art { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 240px; }
.strength-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.strength-art figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 16px; border-radius: 18px; font-weight: 800; font-size: 0.95rem; color: var(--ink); }
.ladders { padding: 22px 20px; display: grid; gap: 20px; }
.ladder h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); font-weight: 900; margin-bottom: 10px; }
.ranks { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.ranks li { min-width: 36px; height: 44px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: 0 4px 10px -6px rgba(11, 52, 69, 0.5), inset 0 0 0 1px #e3eef0; font-weight: 900; font-size: 1.05rem; }
@media (min-width: 900px) { .ranks { display: grid; grid-template-columns: repeat(13, 1fr); } .ranks li { min-width: 0; } }
.ranks li.top { background: linear-gradient(180deg, #13a0b0, var(--teal-deep)); color: #fff; box-shadow: 0 8px 16px -8px rgba(8, 96, 109, 0.9); }
.ladder-note { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.8rem; font-weight: 800; color: var(--ink-3); }
.suits { list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.suits li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #e3eef0; font-weight: 800; font-size: 0.92rem; }
.suits li svg { width: 20px; height: 20px; }
.suits li.lt { background: none; box-shadow: none; padding: 0 2px; color: var(--ink-3); font-weight: 900; }
.red { color: #d6293a; }
.dark { color: var(--ink); }
.combos { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.combos li { padding: 6px 12px; border-radius: 999px; background: var(--teal-soft); font-weight: 800; font-size: 0.9rem; color: var(--ink); }
.combos li.top { background: var(--ink); color: #fff; }
.combos .sep { background: none; padding: 0; color: var(--ink-3); }
.ladder p { margin-top: 10px; font-size: 0.93rem; color: var(--ink-2); }
.help-note { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .strength { grid-template-columns: 1.05fr 1fr; } }

/* ---------- Table ---------- */
.table-section { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #dff4f7 45%, rgba(255,255,255,0) 100%); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse > :first-child { order: 2; } }
.features { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 22px; }
.feature .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #e6f8fa, #c9eef2); color: var(--teal-deep); box-shadow: inset 0 0 0 1px #fff; }
.feature .ico svg { width: 26px; height: 26px; }
.feature .ico img { width: 40px; height: 40px; object-fit: contain; }
.feature h3 { font-size: 1.12rem; margin: 2px 0 4px; }
.feature p { font-size: 0.97rem; color: var(--ink-2); }
.reactions { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.reactions li { padding: 4px 11px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #d9ecef; font-weight: 800; font-size: 0.84rem; }

.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone {
  position: relative; width: min(290px, 74vw); aspect-ratio: 1290 / 2796; flex: none;
  padding: 10px; border-radius: 48px;
  background: linear-gradient(145deg, #2c3e46, #0d1a20 40%, #24363e);
  box-shadow: 0 40px 70px -30px rgba(11, 52, 69, 0.75), 0 0 0 1.5px #52646c, inset 0 0 0 2px #0a1318;
}
.phone::before { /* île dynamique */
  content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%);
  border-radius: 999px; background: #05090b; z-index: 2;
}
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 39px; object-fit: cover; }
.phone-back { position: absolute; transform: translate(-46%, 4%) rotate(-7deg) scale(0.86); opacity: 1; filter: saturate(0.95); z-index: 0; }
.phone-front { z-index: 1; transform: translateX(18%); }
.float { animation: float 7s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out -3s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 520px) {
  .phones { min-height: 0; padding: 10px 0 20px; }
  .phone-back { display: none; }
  .phone-front { transform: none; }
}

/* ---------- Adversaires ---------- */
.rivals-art { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rivals-art img { width: 100%; aspect-ratio: 1800 / 1018; object-fit: cover; }
.rivals-art figcaption { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; white-space: nowrap; }
.rivals { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -40px; position: relative; z-index: 2; padding: 0 8px; }
.rival { padding: 16px 14px 18px; text-align: center; }
.rival img { width: 84px; height: 84px; margin: -2px auto 10px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 10px 20px -8px rgba(11, 52, 69, 0.6); }
.rival h3 { font-size: 1.3rem; }
.tag { display: inline-block; margin: 6px 0 8px; padding: 3px 11px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); font-weight: 900; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rival q { display: block; font-weight: 800; font-size: 0.96rem; color: var(--ink-2); quotes: "\00AB\202F" "\202F\00BB"; }
@media (min-width: 900px) { .rivals { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -64px; padding: 0 24px; } .rival img { width: 104px; height: 104px; } }

.levels { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.level { padding: 20px; display: grid; gap: 8px; align-content: start; }
.level-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.level h3 { font-size: 1.3rem; }
.level .diff { font-weight: 900; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); }
.meter { display: flex; gap: 4px; margin: 2px 0 4px; }
.meter i { flex: 1; height: 6px; border-radius: 6px; background: #d5e9ec; }
.meter i.on { background: linear-gradient(90deg, var(--cyan), var(--teal)); }
.level p { color: var(--ink-2); font-size: 0.97rem; }
.stake { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.coin-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 5px; border-radius: 999px; background: #fff8e6; box-shadow: inset 0 0 0 1px #f3dfa6; font-weight: 800; font-size: 0.86rem; color: var(--gold-ink); }
.coin-pill img { width: 22px; height: 22px; }
.fair { margin-top: 18px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; border-radius: 22px; }
.fair svg { width: 34px; height: 34px; flex: none; color: var(--teal); }
.fair p { color: var(--ink-2); font-size: 0.98rem; }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Ligues ---------- */
.leagues { position: relative; isolation: isolate; overflow: hidden; padding-top: 0; }
.leagues-art { position: relative; overflow: hidden; height: clamp(420px, 96vw, 560px); }
.leagues-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.leagues-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, rgba(243, 251, 252, 0), #f3fbfc); }
.leagues-head { position: relative; margin-top: -170px; z-index: 2; padding: 24px 20px; max-width: 640px; }
.leagues-head h2 { margin-top: 8px; }
@media (min-width: 1024px) {
  .leagues-art { height: auto; aspect-ratio: 1600 / 820; max-height: 760px; }
  .leagues-art img { object-position: 50% 70%; }
  .leagues-head { position: absolute; top: clamp(60px, 7vw, 110px); left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); margin: 0; max-width: 520px; padding: 28px 30px; }
}
.league-road { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.league { position: relative; padding: 14px 8px 14px; text-align: center; border-radius: 22px; }
.league img { width: 76px; height: 76px; object-fit: contain; margin: 0 auto 6px; filter: drop-shadow(0 8px 12px rgba(11, 52, 69, 0.3)); }
.league h3 { font-size: 1.05rem; }
.league p { font-size: 0.8rem; font-weight: 800; color: var(--ink-3); }
.league.summit { background: linear-gradient(180deg, #fff6e0, #fff); box-shadow: 0 0 0 2px #f4cf6b, 0 20px 40px -18px rgba(210, 140, 0, 0.55); }
.league.summit .crown { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
@media (min-width: 761px) { .league-road { grid-template-columns: repeat(6, 1fr); gap: 12px; } .league img { width: 96px; height: 96px; } }
@media (min-width: 1024px) { .league-road { position: relative; z-index: 2; margin-top: -120px; } }

.points { margin-top: 16px; padding: 20px; display: grid; gap: 16px; }
.points-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.points-row .label { font-weight: 900; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); margin-right: 6px; flex-basis: 100%; }
.pt { padding: 6px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e0edef; font-weight: 800; font-size: 0.92rem; }
.pt b { font-weight: 900; }
.pt.plus b { color: #0b7a55; }
.pt.minus b { color: #b4232d; }
.points .keep { display: flex; gap: 10px; align-items: center; font-weight: 800; color: var(--ink); }
.points .keep svg { width: 24px; height: 24px; color: var(--teal); flex: none; }
@media (min-width: 900px) { .points { grid-template-columns: 1fr 1fr 1fr; align-items: start; } .points-row .label { flex-basis: 100%; } }

.arenas { display: grid; gap: 16px; margin-top: 34px; }
.arena { padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.arena-ico { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(11, 52, 69, 0.28)); }
.arena h3 { font-size: 1.45rem; }
.arena .sub { font-weight: 900; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); }
.arena p { color: var(--ink-2); font-size: 0.98rem; }
.arena .shot { margin-top: auto; padding-top: 8px; }
.arena .shot img.fit { aspect-ratio: 480 / 386; object-fit: cover; object-position: 50% 0; }
.arena .shot img { border-radius: 18px; box-shadow: 0 16px 30px -18px rgba(11, 52, 69, 0.7); width: 100%; }
.prizes { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 4px; }
.prizes li { padding: 8px 2px; border-radius: 14px; background: #fff8e6; box-shadow: inset 0 0 0 1px #f3dfa6; text-align: center; font-weight: 900; font-size: 0.84rem; color: var(--gold-ink); line-height: 1.25; }
.prizes li span { display: block; font-size: 0.68rem; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
@media (min-width: 900px) { .arenas { grid-template-columns: repeat(3, 1fr); } }

.perfect { margin-top: 34px; padding: 26px 22px; display: grid; gap: 14px; align-items: center; text-align: center; background: linear-gradient(135deg, rgba(11, 52, 69, 0.95), rgba(8, 96, 109, 0.93)); border-color: rgba(255,255,255,.25); color: #fff; }
.perfect .big { font-size: clamp(4.4rem, 18vw, 7.5rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; background: linear-gradient(180deg, #ffffff, #9fe7ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.perfect h3 { color: #fff; font-size: clamp(1.4rem, 3.6vw, 2rem); }
.perfect p { color: #cfeef2; }
@media (min-width: 800px) { .perfect { grid-template-columns: auto 1fr; text-align: left; gap: 34px; padding: 34px 40px; } }

/* ---------- Collection ---------- */
.collection { overflow: hidden; }
.collection-bg { position: absolute; inset: 0; z-index: -1; }
.collection-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.collection-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #f3fbfc 0%, rgba(243, 251, 252, 0.35) 30%, rgba(243, 251, 252, 0.5) 70%, #f7f8f1 100%); }
.carousel-wrap { position: relative; }
.carousel { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 330px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 26px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 48px), transparent); }
.carousel::-webkit-scrollbar { display: none; }
.table-card { scroll-snap-align: center; padding: 14px 14px 16px; text-align: center; }
.table-card img { width: 100%; aspect-ratio: 1500 / 930; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(11, 52, 69, 0.28)); }
.table-card h3 { font-size: 1.2rem; margin-top: 6px; }
.table-card .price { display: inline-block; margin-top: 6px; padding: 3px 11px; border-radius: 999px; font-weight: 900; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--teal-soft); color: var(--teal-deep); }
.table-card .price.coins { background: #fff8e6; color: var(--gold-ink); box-shadow: inset 0 0 0 1px #f3dfa6; }
.carousel-nav { display: none; gap: 8px; justify-content: flex-end; margin-top: -8px; }
.carousel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #fff; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-soft); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.carousel-nav button svg { width: 22px; height: 22px; }
.carousel-nav button:disabled { opacity: 0.4; cursor: default; }
.js .carousel-nav { display: flex; }
@media (min-width: 900px) { .carousel { grid-auto-columns: calc((100% - 3 * 14px - 2 * var(--gutter)) / 3.3); } }

.style-grid { display: grid; gap: 16px; margin-top: 16px; }
.backs { padding: 22px 20px; }
.backs h3, .extras h3 { font-size: 1.3rem; margin-bottom: 4px; }
.backs > p, .extras > p { color: var(--ink-2); font-size: 0.97rem; }
.back-row { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.back-row li { text-align: center; font-size: 0.7rem; font-weight: 800; color: var(--ink-3); line-height: 1.2; }
.back-row img { width: 100%; aspect-ratio: 544 / 820; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 14px -8px rgba(11, 52, 69, 0.7); margin-bottom: 6px; transition: transform 0.25s ease; }
.back-row li:hover img { transform: translateY(-4px) rotate(-2deg); }
.back-row .vitrine img { box-shadow: 0 0 0 2px #f4cf6b, 0 8px 14px -8px rgba(11, 52, 69, 0.7); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 0.84rem; font-weight: 800; color: var(--ink-3); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; background: #fff; box-shadow: 0 0 0 1px #cfe3e6; }
.legend span.v::before { box-shadow: 0 0 0 2px #f4cf6b; }
.extras { padding: 22px 20px; display: grid; gap: 14px; align-content: start; }
.extra-list { list-style: none; display: grid; gap: 10px; }
.extra-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.extra-list img { width: 44px; height: 44px; object-fit: contain; }
.extra-list b { display: block; font-size: 1rem; }
.extra-list span { font-size: 0.92rem; color: var(--ink-2); }
@media (min-width: 900px) { .style-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } .back-row { grid-template-columns: repeat(10, 1fr); } }

/* ---------- Récompenses ---------- */
.rewards-grid { list-style: none; display: grid; gap: 12px; }
.reward { padding: 18px; display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; border-radius: 24px; }
.reward img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(11, 52, 69, 0.25)); }
.reward h3 { font-size: 1.14rem; margin: 2px 0 4px; }
.reward p { font-size: 0.95rem; color: var(--ink-2); }
.streak { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.streak li { padding: 5px 0; border-radius: 10px; text-align: center; background: #fff8e6; box-shadow: inset 0 0 0 1px #f3dfa6; font-weight: 900; font-size: 0.72rem; color: var(--gold-ink); line-height: 1.2; }
.streak li span { display: block; font-size: 0.62rem; color: var(--ink-3); letter-spacing: 0.06em; }
.streak li.last { background: linear-gradient(180deg, #ffe7a6, #ffd36a); }
.tokens-note { margin-top: 18px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 20px; font-weight: 800; font-size: 0.95rem; color: var(--ink-2); }
.tokens-note img { width: 36px; height: 36px; }
@media (min-width: 640px) { .rewards-grid { grid-template-columns: 1fr 1fr; } }
.rewards-phone { display: flex; justify-content: center; }
@media (min-width: 960px) { .split.rewards { grid-template-columns: 0.72fr 1.28fr; } }
@media (max-width: 959px) { .rewards-phone { order: 2; } }

/* ---------- CTA final ---------- */
.final { position: relative; isolation: isolate; padding: 110px 0 90px; overflow: hidden; }
.final-art { position: absolute; inset: 0; z-index: -1; }
.final-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.final-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #f7f8f1 0%, rgba(247, 248, 241, 0) 22%, rgba(247, 248, 241, 0) 80%, rgba(11, 52, 69, 0.3) 100%); }
.final-card { max-width: 700px; margin: 0 auto; padding: 30px 22px 26px; text-align: center; }
.final-card .logo { width: min(280px, 72%); margin: -4px auto 8px; filter: drop-shadow(0 10px 18px rgba(11, 52, 69, 0.28)); }
.final-card h2 { font-size: clamp(1.9rem, 5.6vw, 2.9rem); margin: 6px 0 10px; }
.final-card .lead { color: var(--ink-2); }
.soon { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.soon li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 18px; background: var(--ink); color: #fff; text-align: left; line-height: 1.15; }
.soon li svg { width: 26px; height: 26px; flex: none; }
.soon li small { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #9fdbe3; }
.soon li b { font-size: 1.08rem; }

.waitlist { margin-top: 22px; text-align: left; display: grid; gap: 12px; }
.waitlist[hidden] { display: none; }
.field label, .fieldset legend { display: block; font-weight: 900; font-size: 0.86rem; margin-bottom: 6px; }
.field input[type="email"] { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 2px solid #cfe5e8; background: #fff; font: inherit; font-weight: 800; color: var(--ink); }
.field input[type="email"]:focus-visible { border-color: var(--teal); outline: 3px solid rgba(14, 138, 154, 0.25); outline-offset: 0; }
.fieldset { border: 0; padding: 0; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px #cfe5e8; font-weight: 800; font-size: 0.92rem; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.seg input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.9rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .btn { width: 100%; }
.form-status { min-height: 1.4em; font-weight: 800; font-size: 0.95rem; }
.form-status.error { color: #b4232d; }
.thanks { margin-top: 20px; padding: 18px; border-radius: 20px; background: var(--teal-soft); display: grid; gap: 4px; text-align: center; }
.thanks[hidden] { display: none; }
.thanks b { font-size: 1.3rem; font-weight: 900; }
.contact-line { margin-top: 18px; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cde6ea; padding: 48px 0 34px; }
.foot-grid { display: grid; gap: 28px; }
.site-footer .logo { width: 160px; margin-bottom: 10px; }
.site-footer p { font-size: 0.95rem; }
.site-footer h2 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: #fff; font-weight: 800; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: var(--cyan); }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 0.86rem; color: #a9cdd3; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Pages légales et aide ---------- */
.page-legal { background: linear-gradient(180deg, #e6f6f9 0%, var(--sand) 100%); }
.legal-hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + 50px) 0 90px; overflow: hidden; }
.legal-hero .bg { position: absolute; inset: 0; z-index: -1; }
.legal-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.legal-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(230, 246, 249, 0.1) 0%, rgba(230, 246, 249, 0.35) 55%, #e6f6f9 100%); }
.legal-hero .head { padding: 24px 22px; max-width: 760px; }
.legal-hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 8px 0 10px; }
.legal-hero .lead { color: var(--ink-2); }
.legal-hero .meta { margin-top: 12px; font-size: 0.88rem; font-weight: 800; color: var(--ink-3); }
.legal-body { margin-top: -56px; padding-bottom: 80px; position: relative; }
.legal-layout { display: grid; gap: 20px; align-items: start; }
.legal-layout > * { min-width: 0; }
.toc { padding: 18px 18px; border-radius: 24px; }
.toc h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 0.92rem; line-height: 1.35; }
.toc a:hover { background: var(--teal-soft); }
.prose { padding: 26px 20px 30px; }
.prose > section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid #e1eef0; }
.prose h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); margin-bottom: 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + .table-scroll, .prose .table-scroll + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose ul li::marker { color: var(--teal); }
.prose strong { color: var(--ink); }
.prose .todo, .todo { background: #fff1c7; color: #6b4a00; font-weight: 800; padding: 1px 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.prose table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 0.93rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e1eef0; color: var(--ink-2); }
.prose th { background: var(--teal-soft); color: var(--ink); font-weight: 900; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.prose th:first-child { border-radius: 12px 0 0 12px; }
.prose th:last-child { border-radius: 0 12px 12px 0; }
.callout { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--teal-soft); color: var(--ink); font-weight: 700; }
.callout strong { font-weight: 900; }
.steps-inline { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.steps-inline li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.steps-inline li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 900; font-size: 0.85rem; }
.kbd { display: inline-block; padding: 0 8px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px #cfe3e6; font-weight: 900; font-size: 0.86em; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }
@media (min-width: 980px) {
  .legal-layout { grid-template-columns: 270px 1fr; gap: 28px; }
  .toc { position: sticky; top: calc(var(--header-h) + 26px); max-height: calc(100vh - var(--header-h) - 50px); overflow: auto; }
  .prose { padding: 40px 48px 46px; }
  .legal-hero .head { padding: 30px 34px; }
}

/* FAQ */
.faq-group + .faq-group { margin-top: 34px; }
.faq-group > h2 { margin-bottom: 12px; }
.faq { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #e1eef0; }
.faq + .faq { margin-top: 8px; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 50px 15px 18px; position: relative; font-weight: 900; font-size: 1.04rem; color: var(--ink); border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 11px; height: 11px; border-right: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: #f5fbfc; }
.faq .answer { padding: 0 18px 18px; }
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p, .faq .answer p + ol, .faq .answer ol + p { margin-top: 10px; }
.contact-card { margin-top: 30px; padding: 22px; border-radius: 24px; background: linear-gradient(135deg, var(--ink), var(--teal-deep)); color: #d9f1f4; display: grid; gap: 12px; }
.contact-card h2 { color: #fff; }
.contact-card p, .contact-card li { color: #d9f1f4 !important; }
.contact-card a { color: #fff; }
.contact-card .btn { justify-self: start; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; position: relative; isolation: isolate; }
.lost .bg { position: absolute; inset: 0; z-index: -1; }
.lost .bg img { width: 100%; height: 100%; object-fit: cover; }
.lost-card { max-width: 560px; padding: 30px 24px; text-align: center; }
.lost-card .cards404 { display: flex; justify-content: center; margin: 4px 0 18px; }
.lost-card .cards404 img { width: 82px; border-radius: 8px; box-shadow: 0 12px 20px -10px rgba(11, 52, 69, 0.7); margin: 0 -8px; }
.lost-card .cards404 img:first-child { transform: rotate(-10deg) translateY(6px); }
.lost-card .cards404 img:last-child { transform: rotate(10deg) translateY(6px); }
.lost-card h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-bottom: 10px; }
.lost-card p { color: var(--ink-2); }
.lost-card .cta-row { justify-content: center; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
.js .reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .toc, .legal-hero .bg { display: none !important; }
  .legal-body { margin-top: 0; }
  .glass { box-shadow: none; background: #fff; }
}
/* Bloc des informations légales à compléter (une seule zone par page) */
.todo-block { margin: 14px 0 18px; padding: 14px 16px; border: 2px dashed #c99a1e; border-radius: 18px; background: #fff8e1; color: #4a3500; }
.todo-block .todo-title { margin: 0 0 8px; font-weight: 900; color: #6b4a00; }
.todo-block ul { margin: 0; }
sup { font-size: .68em; line-height: 0; vertical-align: .45em; }
.table-scroll:focus-visible { outline: 3px solid var(--teal, #0f8a8a); outline-offset: 3px; }

/* ==========================================================================
   Accueil v5 : premier écran mobile, échelle typographique, vidéo de partie,
   ordre des sections, CTA accessible (contraste AA), sortie « bientôt ».
   ========================================================================== */
/* Échelle : le titre du héros domine nettement les titres de section. */
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); text-wrap: balance; }
.section h2, .final-card h2 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); text-wrap: balance; }
.eyebrow::before { content: none; }

/* CTA corail : blanc sur corail ≥ 4,5:1 sur toute la hauteur du libellé (reflet limité au haut du bouton). */
.btn-coral { background: linear-gradient(180deg, #d9302d 0%, #b50e18 100%); text-shadow: none; }
.btn-coral::before { top: 3px; height: 26%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)); }
.btn-coral::after { background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)); }

/* Téléphone du héros : une vraie partie en boucle. */
.hero-phone { position: absolute; z-index: 1; display: block; text-decoration: none; padding: 5px; border-radius: 22px; aspect-ratio: 360 / 780;
  background: linear-gradient(145deg, #2c3e46, #0d1a20 40%, #24363e);
  box-shadow: 0 24px 40px -18px rgba(11, 52, 69, 0.8), 0 0 0 1.5px #52646c; }
.hero-phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 17px; background: #0b6d78; }
.hero-phone-tag { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 900; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 6px 14px -8px rgba(11, 52, 69, 0.7); }
.hero-phone-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9302d; }
.hero-phone:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.lead-more { display: none; }

@media (max-width: 760px) {
  .hero-art { aspect-ratio: 1080 / 1400; }
  .hero-card { margin-top: -30vw; padding: 20px 18px 20px; }
  .hero .eyebrow { display: none; }
  .hero h1 { margin: 0 0 10px; }
  .hero .lead { font-size: 1rem; }
  .cta-row { margin-top: 16px; gap: 10px; }
  .cta-row .btn { width: 100%; white-space: nowrap; font-size: 1rem; letter-spacing: 0.04em; }
  .hero .chips { flex-wrap: nowrap; gap: 6px; margin-top: 14px; }
  .hero .chip { padding: 6px 10px 6px 6px; font-size: 0.78rem; gap: 5px; }
  .hero .chip img { width: 20px; height: 20px; }
  .hero-phone { right: 14px; top: calc(var(--header-h) + 150px); width: 96px; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .hero-phone { right: 28px; top: calc(var(--header-h) + 40px); width: 150px; border-radius: 28px; padding: 7px; }
  .hero-phone video { border-radius: 22px; }
}
@media (min-width: 1024px) {
  .hero-card { max-width: 700px; }
  .lead-more { display: inline; }
  .hero-phone { display: none; }
}
@media (min-width: 1200px) {
  .hero-phone { display: block; right: clamp(40px, 7vw, 140px); top: 50%; transform: translateY(-44%) rotate(3deg); width: clamp(230px, 19vw, 290px); padding: 9px; border-radius: 44px; }
  .hero-phone video { border-radius: 36px; }
  .hero-phone-tag { bottom: -14px; font-size: 0.74rem; padding: 6px 14px; }
}

/* Vidéo dans le téléphone de « La table ». */
.phone video { display: block; width: 100%; height: 100%; border-radius: 39px; object-fit: cover; background: #0b6d78; }
figure.phone { margin: 0; }

/* Le jeu en 3 étapes. */
@media (min-width: 761px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } .steps-3 .step, .steps-3 .step:nth-child(4) { grid-column: auto; } }
@media (max-width: 760px) {
  .steps-3 { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .steps-3::-webkit-scrollbar { display: none; }
  .steps-3 .step { flex: 0 0 80%; scroll-snap-align: center; }
  .steps-3 .step-visual { height: 124px; }
}
.steps-3:focus-visible, .carousel:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 22px; }
.rules { margin-top: 18px; border-radius: 22px; }
.rules summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px; cursor: pointer; font-weight: 900; font-size: 1.05rem; color: var(--ink); border-radius: 22px; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary svg { width: 22px; height: 22px; transition: transform 0.2s ease; color: var(--teal-deep); }
.rules[open] summary svg { transform: rotate(180deg); }
.rules summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.rules-body { padding: 0 20px 22px; display: grid; gap: 20px; }
.rules-list { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--ink-2); }
.rules .ladders { padding: 0; }
@media (min-width: 900px) { .rules .ladders { grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; } }

/* Rivaux : la peinture en pleine largeur sur mobile, sans chevauchement. */
@media (max-width: 760px) {
  .rivals-art { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; box-shadow: none; }
  .rivals-art img { aspect-ratio: 1560 / 1018; }
  .rivals { margin-top: 14px; padding: 0; }
}

/* Ligues : deux arènes. Donne du jour : section à part. */
@media (min-width: 900px) { .arenas.arenas-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; } }
.donne-phone { display: flex; justify-content: center; }
.donne .perfect { margin-top: 8px; }
@media (min-width: 960px) { .donne .split, .container.split:has(.donne-phone) { grid-template-columns: 1.15fr 0.85fr; } }

/* Sortie : badges « bientôt », pas des liens. */
.soon li { position: relative; cursor: default; padding-right: 14px; }
.soon li em { font-style: normal; margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: #fff; color: #b50e18; font-weight: 900; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.final .contact-line { margin-top: 22px; font-weight: 800; color: var(--ink-2); }
.final .btn-mail { margin-top: 8px; text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
@media (max-width: 760px) { .hero .chip { white-space: nowrap; } }
@media (max-width: 374px) { .hero .chips { flex-wrap: wrap; } }
