/* PlayRoyale · site. Même direction que l'app : « ciel du samedi matin », cartes blanches cernées d'encre,
   lèvre plus épaisse en bas, boutons toon dégradés. Couleurs reprises de src/theme.ts. */
:root {
  color-scheme: light;
  --ink: #1b1530;
  --sky-top: #8fdcff;
  --sky: #3ea8f4;
  --sky-deep: #2a8fe0;
  --card: #fff;
  --card-alt: #eef5ff;
  --line: #d5e1f2;
  --muted: #4f5878;
  --violet: #7a5cff;
  --blue: #1c8ee6;
  --gold: #ffc21a;
  --good: #14a35f;
  --font-logo: 'Titan One', 'Lilita One', system-ui, sans-serif;
  --font-display: 'Lilita One', 'Manrope', system-ui, sans-serif;
  --font-text: 'Manrope', system-ui, -apple-system, sans-serif;
  --r: 22px;
  --edge: 2.5px solid var(--ink);
  --lip: 6px;
  --soft: 0 14px 30px -12px rgba(16, 40, 110, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 500 17px/1.55 var(--font-text);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0, var(--sky) 900px, var(--sky) 100%);
  background-color: var(--sky);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
button { font: inherit; color: inherit; cursor: pointer; }
html { scrollbar-color: var(--ink) var(--sky); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--card); border: var(--edge); border-radius: 12px; padding: 8px 14px; font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- ciel ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.cloud { position: absolute; width: 180px; height: 120px; opacity: 0.9; animation: drift 90s linear infinite; }
.c1 { top: 9%; left: -12%; animation-duration: 110s; }
.c2 { top: 30%; left: -20%; width: 120px; opacity: 0.6; animation-duration: 140s; animation-delay: -60s; }
.c3 { top: 55%; left: -15%; width: 220px; opacity: 0.75; animation-duration: 160s; animation-delay: -30s; }
.c4 { top: 76%; left: -10%; width: 140px; opacity: 0.55; animation-duration: 120s; animation-delay: -95s; }
.c5 { top: 18%; left: -10%; width: 100px; opacity: 0.5; animation-duration: 130s; animation-delay: -20s; }
.c6 { top: 88%; left: -14%; width: 190px; opacity: 0.7; animation-duration: 150s; animation-delay: -120s; }
@keyframes drift { to { transform: translateX(calc(100vw + 260px)); } }

/* ---------- titres façon dessin animé ---------- */
.title {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.005em;
  line-height: 1.08;
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
  text-wrap: balance;
  margin: 0;
}
h2.title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.15; margin: 0 0 6px; }
.title-gold { color: var(--gold); }

/* ---------- boutons toon : face dégradée, contour d'encre, lèvre en bas qui s'écrase quand on appuie ---------- */
.btn {
  --top: #ffe066; --bot: #ffb21a; --lipc: #c26a00;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 24px;
  font: 400 1.25rem/1 var(--font-display);
  color: #fff; text-decoration: none;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  background: linear-gradient(180deg, var(--top), var(--bot));
  border: var(--edge); border-bottom: var(--lip) solid var(--lipc);
  border-radius: 16px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 0 0 2.5px var(--ink), var(--soft);
  transition: transform 0.18s var(--ease), border-bottom-width 0.12s var(--ease), filter 0.18s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(3px); border-bottom-width: 2px; }
.btn svg { width: 26px; height: 26px; color: var(--ink); flex: none; }
.btn-sm { min-height: 42px; padding: 6px 16px; font-size: 1.05rem; border-radius: 13px; --lip: 5px; }
.btn-gold { --top: #ffe066; --bot: #ffb21a; --lipc: #c26a00; }
.btn-blue { --top: #6fd0ff; --bot: #2f8cff; --lipc: #1a4fb8; }
.btn-violet { --top: #b7a6ff; --bot: #7a5cff; --lipc: #4a2fc0; }
.btn-white { --top: #fff; --bot: #eef1f7; --lipc: #b8bfd2; color: var(--ink); -webkit-text-stroke: 0; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- barre du haut ---------- */
.nav { position: sticky; top: 0; z-index: 20; padding: 10px var(--gutter); transition: background 0.3s, box-shadow 0.3s; }
.nav.stuck { background: rgba(62, 168, 244, 0.86); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: 0 2.5px 0 var(--ink); }
.nav-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s; }
.nav.stuck .brand { opacity: 1; visibility: visible; transform: none; }
.brand img { width: auto; height: 52px; filter: drop-shadow(0 3px 4px rgba(16, 40, 110, 0.3)); transition: transform 0.25s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { font-weight: 800; color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 12px; text-shadow: 0 2px 0 var(--ink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.nav-links a:hover { background: rgba(27, 21, 48, 0.14); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; background: var(--card); border: var(--edge); border-radius: 12px; padding: 3px; }
.lang button { border: 0; background: none; font-weight: 800; font-size: 0.85rem; padding: 5px 9px; border-radius: 8px; min-width: 36px; min-height: 30px; }
.lang button[aria-pressed='true'] { background: var(--ink); color: #fff; }

/* ---------- ouverture ---------- */
.hero { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) 26px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(330px, 58vw, 34vh); margin: -6px 0 2px; filter: drop-shadow(0 16px 18px rgba(16, 40, 110, 0.3)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1deg); } }
.hero .title { font-size: clamp(2.2rem, 4.8vw, 3.9rem); -webkit-text-stroke-width: 9px; text-shadow: 0 5px 0 var(--ink); max-width: 21ch; }
.hero .title span { display: inline; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); font-weight: 800; color: #fff; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); max-width: 36em; margin: 14px 0 22px; text-wrap: pretty; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 22px 8px 16px;
  background: linear-gradient(180deg, #2c2450, var(--ink)); color: #fff; text-decoration: none;
  border: 2.5px solid var(--ink); border-bottom: 6px solid #000; border-radius: 16px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), var(--soft);
  transition: transform 0.18s var(--ease), border-bottom-width 0.12s var(--ease);
}
.store:hover { transform: translateY(-2px); }
.store:active { transform: translateY(3px); border-bottom-width: 3px; }
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.store small { font-size: 0.78rem; font-weight: 700; opacity: 0.85; }
.store b { font: 400 1.4rem var(--font-display); letter-spacing: 0.01em; }
.hero-note { margin: 14px 0 0; font-weight: 800; color: var(--ink); background: rgba(255, 255, 255, 0.7); border-radius: 99px; padding: 4px 14px; font-size: 0.92rem; }

@media (min-width: 1024px) {
  .hero { display: grid; grid-template-columns: auto minmax(0, 620px); justify-content: center; grid-template-areas: 'logo title' 'logo lede' 'logo stores'; column-gap: 40px; text-align: left; justify-items: start; align-items: center; padding-top: 6px; }
  .hero-logo { grid-area: logo; width: min(360px, 30vw); margin: 0; }
  .hero .title { grid-area: title; align-self: end; max-width: 16ch; }
  .lede { grid-area: lede; margin: 12px 0 18px; }
  .hero .stores { grid-area: stores; align-self: start; justify-content: flex-start; align-items: center; }
  .hero-note { margin: 0 0 0 6px; }
}

/* ---------- mur des jeux ---------- */
.wall { max-width: 1240px; margin: 0 auto; padding: 18px var(--gutter) 80px; }
.wall-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 32px; align-items: end; margin-bottom: 20px; }
.wall-head .title { grid-column: 1; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.wall-head .num { color: var(--gold); font-size: 1.25em; }
.wall-head p { grid-column: 1; margin: 6px 0 0; color: #fff; font-weight: 800; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); max-width: 46em; }
.wall-head .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.tiles { --cols: 6; --gap: 16px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.tiles li { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (max-width: 1100px) { .tiles { --cols: 5; } }
@media (max-width: 900px) { .tiles { --cols: 4; } }
.tile {
  position: relative; width: 100%; padding: 0; text-align: left; overflow: hidden;
  background: linear-gradient(160deg, var(--a), var(--b));
  border: var(--edge); border-bottom: var(--lip) solid var(--ink); border-radius: 18px;
  box-shadow: var(--soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-bottom-width 0.12s;
}
.tile img { width: 100%; aspect-ratio: 360 / 190; object-fit: cover; border-bottom: 2.5px solid var(--ink); background: var(--b); }
.tile-name { display: block; padding: 7px 12px 9px; font: 400 1.22rem/1.1 var(--font-display); color: #fff; -webkit-text-stroke: 4.5px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); }
.tile:hover { transform: translateY(-4px) rotate(-0.6deg); }
.tile:active { transform: translateY(2px); border-bottom-width: 3px; }
.tile.hot { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 4px var(--gold), 0 0 0 6.5px var(--ink), 0 18px 34px -10px rgba(16, 40, 110, 0.55); z-index: 2; }
.tile.picked::after {
  content: attr(data-badge); position: absolute; top: 8px; right: 8px;
  font: 400 0.95rem var(--font-display); color: var(--ink); background: var(--gold);
  border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 10px; padding: 3px 9px;
  animation: pop 0.5s var(--ease);
}
@keyframes pop { from { transform: scale(0.4) rotate(-12deg); opacity: 0; } }
.tile { animation: rise 0.7s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 16) * 30ms); }
@keyframes rise { from { transform: translateY(22px) scale(0.94); } }

/* ---------- cartes ---------- */
.card { background: var(--card); border: var(--edge); border-bottom: var(--lip) solid var(--ink); border-radius: var(--r); box-shadow: var(--soft); }

/* ---------- une journée ---------- */
.day { max-width: 1120px; margin: 0 auto; padding: 40px var(--gutter) 90px; }
.day > .title { text-align: center; max-width: 18ch; margin: 0 auto 36px; }
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 8px; max-width: 860px; }
.step { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 0; align-items: center; }
.step .step-text { position: relative; z-index: 1; margin-left: -36px; }
.step:nth-child(even) .step-text { margin-left: 0; margin-right: -36px; }
.step:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 250px); }
.step:nth-child(even) .step-text { justify-self: end; }
.step:nth-child(even) .phone { order: 2; }
.step:nth-child(1) .phone { transform: rotate(-3deg); }
.step:nth-child(2) .phone { transform: rotate(2.5deg); }
.step:nth-child(3) .phone { transform: rotate(-2deg); }
.step-text { background: var(--card); border: var(--edge); border-bottom: var(--lip) solid var(--ink); border-radius: var(--r); padding: 30px 34px; box-shadow: var(--soft); max-width: 34em; }
.step-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.step-text p { margin: 0; color: var(--muted); font-size: 1.14rem; }
.phone { margin: 0; border: 3px solid var(--ink); border-radius: 40px; padding: 9px; background: #1f1838; box-shadow: 0 30px 50px -18px rgba(16, 40, 110, 0.6); }
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--sky); }

/* ---------- classement ---------- */
.race { max-width: 1180px; margin: 0 auto; padding: 40px var(--gutter) 90px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; align-items: center; }
.race-text p { color: #fff; font-weight: 800; font-size: 1.12rem; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink); margin: 16px 0 0; max-width: 30em; }
.chart-card { padding: 20px 20px 16px; margin: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head b { font: 400 1.3rem var(--font-display); }
.tag { font-size: 0.8rem; font-weight: 800; color: var(--muted); background: var(--card-alt); border: 1.5px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.chart { position: relative; background: var(--card-alt); border-radius: 14px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { font: 700 12px var(--font-text); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .series path { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; transition: opacity 0.2s, stroke-width 0.2s; }
.chart .series circle { stroke: var(--card-alt); stroke-width: 2; transition: opacity 0.2s; }
.chart .end-label { font: 800 12.5px var(--font-text); fill: var(--ink); }
.chart.focus .series:not(.on) { opacity: 0.18; }
.chart.focus .series.on path { stroke-width: 4; }
.chart .cross { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0; }
.chart.hover .cross { opacity: 0.5; }
.tip { position: absolute; pointer-events: none; background: var(--card); border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 12px; padding: 8px 12px; font-size: 0.86rem; min-width: 150px; opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; z-index: 3; }
.tip.show { opacity: 1; transform: none; }
.tip b { font: 400 1.02rem var(--font-display); display: block; margin-bottom: 4px; }
.tip div { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.legend button { width: 100%; }
.legend span { margin-left: auto; font-variant-numeric: tabular-nums; }
.legend button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 12px 4px 8px; font-weight: 800; font-size: 0.9rem; background: var(--card); border: 2px solid var(--line); border-radius: 99px; transition: border-color 0.15s, background 0.15s; }
.legend button:hover, .legend button[aria-pressed='true'] { border-color: var(--ink); }
.legend button[aria-pressed='true'] { background: var(--card-alt); }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink); }

/* ---------- Eureka ---------- */
.eureka {
  max-width: 1120px; margin: 0 auto 90px; padding: 40px clamp(20px, 4vw, 56px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center;
  background: linear-gradient(180deg, #ffe066, #ffb21a);
  border: var(--edge); border-bottom: 8px solid #c26a00; border-radius: 30px;
  box-shadow: 0 0 0 2.5px var(--ink), var(--soft);
  position: relative; overflow: hidden;
}
.eureka::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 14% 50%, rgba(255, 255, 255, 0.28) 0 9deg, transparent 9deg 22deg); pointer-events: none; }
.eureka > * { position: relative; }
.bulb { width: clamp(130px, 18vw, 220px); filter: drop-shadow(0 10px 14px rgba(140, 70, 0, 0.45)); animation: glow 3.4s ease-in-out infinite; }
@keyframes glow { 50% { transform: rotate(-5deg) scale(1.04); filter: drop-shadow(0 10px 26px rgba(255, 255, 255, 0.9)); } }
.eureka-text p { margin: 14px 0 0; font-weight: 700; font-size: 1.08rem; color: #3b2400; max-width: 40em; }

/* ---------- jeu loyal ---------- */
.fair { max-width: 1120px; margin: 0 auto; padding: 10px var(--gutter) 90px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px 48px; align-items: start; }
.fair > .title { grid-column: 1 / -1; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-self: center; }
.facts li { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: var(--edge); border-bottom: var(--lip) solid var(--ink); border-radius: 18px; padding: 16px 20px; box-shadow: var(--soft); }
.facts svg { width: 34px; height: 34px; flex: none; color: #fff; background: var(--good); border: 2.5px solid var(--ink); border-radius: 50%; padding: 4px; }
.facts b { display: block; font: 400 1.3rem var(--font-display); }
.facts span { color: var(--muted); }
.wardrobe { background: linear-gradient(180deg, #b7a6ff, #7a5cff); border: var(--edge); border-bottom: 7px solid #4a2fc0; border-radius: var(--r); box-shadow: 0 0 0 2.5px var(--ink), var(--soft); overflow: hidden; }
.wardrobe img { width: 100%; aspect-ratio: 390 / 400; object-fit: cover; object-position: top; border-bottom: 2.5px solid var(--ink); }
.wardrobe p { margin: 0; padding: 14px 18px 16px; color: #fff; font-weight: 800; text-shadow: 0 2px 0 var(--ink); }

/* ---------- tarifs ---------- */
.pricing { max-width: 1120px; margin: 0 auto; padding: 10px var(--gutter) 90px; }
.pricing > .title { text-align: center; margin: 0 auto 36px; max-width: 20ch; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan { background: var(--card); border: var(--edge); border-bottom: 7px solid var(--ink); border-radius: var(--r); padding: 24px 24px 22px; box-shadow: var(--soft); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.8rem; }
.price { margin: 0 0 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 400 2.6rem var(--font-display); font-variant-numeric: tabular-nums; }
.price span { font-weight: 800; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.plan li { padding-left: 28px; position: relative; font-weight: 700; }
.plan li::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 17px; height: 17px; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; border: 1.5px solid var(--ink); }
.plan-premium { background: linear-gradient(180deg, #d17bff, #8f2bdc); border-bottom-color: #4e1180; color: #fff; transform: translateY(-10px); box-shadow: 0 0 0 2.5px var(--ink), var(--soft); }
.plan-premium h3, .plan-premium .price b { -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.plan-premium .price span { color: #f3e4ff; }
.plan-premium li { text-shadow: 0 1.5px 0 var(--ink); }
.plan dl { margin: 0; display: grid; gap: 10px; }
.plan dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--card-alt); border-radius: 12px; padding: 10px 14px; }
.plan dt { font: 400 1.25rem var(--font-display); }
.plan dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.plan-note { margin: auto 0 0; padding-top: 14px; color: var(--muted); font-size: 0.95rem; }
.small { font-size: 0.92rem; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, 0.72); border-radius: 14px; padding: 8px 14px; width: fit-content; margin: 26px auto 0; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; padding: 10px var(--gutter) 90px; }
.faq > .title { text-align: center; margin-bottom: 30px; }
.qa { display: grid; gap: 12px; }
.qa details { background: var(--card); border: var(--edge); border-bottom: 5px solid var(--ink); border-radius: 18px; box-shadow: var(--soft); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; min-height: 56px; font: 400 1.25rem/1.2 var(--font-display); cursor: pointer; border-radius: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 24px; height: 24px; flex: none; transition: transform 0.3s var(--ease); }
.qa details[open] summary svg { transform: rotate(180deg); }
.qa details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 1.04rem; max-width: 62ch; }
.qa details[open] p { animation: open 0.35s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- fin ---------- */
.final { text-align: center; padding: 30px var(--gutter) 110px; display: grid; gap: 28px; justify-items: center; }
.final .title { max-width: 16ch; font-size: clamp(2.2rem, 5vw, 3.8rem); }

.foot { background: var(--ink); color: #d9dcf2; padding: 44px var(--gutter) 40px; border-top: 3px solid #000; }
.foot-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: auto; height: 64px; }
.foot-brand p { margin: 0; color: #fff; }
.foot-brand b { font: 400 1.3rem var(--font-logo); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.foot-links a { color: #fff; font-weight: 800; padding: 6px 0; }
.foot-legal { grid-column: 1 / -1; margin: 0; font-size: 0.86rem; color: #b9bddb; max-width: 80ch; }

/* ---------- fiche d'un jeu ---------- */
.sheet { border: 0; padding: 16px; background: none; width: min(560px, 100%); max-height: 100dvh; overflow: visible; }
.sheet::backdrop { background: rgba(20, 16, 48, 0.55); backdrop-filter: blur(4px); }
.sheet[open] .sheet-card { animation: sheetIn 0.45s var(--ease); }
@keyframes sheetIn { from { transform: translateY(30px) scale(0.94); opacity: 0; } }
.sheet-card { position: relative; background: var(--card); border: var(--edge); border-bottom: 7px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.sheet-art { background: linear-gradient(160deg, var(--a, #6d5dfc), var(--b, #2a1f8f)); border-bottom: 2.5px solid var(--ink); flex: none; }
.sheet-art img { width: 100%; aspect-ratio: 360 / 190; object-fit: cover; }
.sheet-body { padding: 18px 22px 18px; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 6px 20px; align-items: start; align-content: start; background: linear-gradient(180deg, color-mix(in srgb, var(--a, #6d5dfc) 14%, #fff), #fff 70%); }
.sheet-body p { font-size: 1.12rem; }
.sheet-body h3 { font-size: 2rem; grid-column: 1; }
.sheet-body p { margin: 0; color: var(--muted); font-size: 1.05rem; grid-column: 1; }
.phone-sm { grid-column: 2; grid-row: 1 / span 3; border-radius: 24px; padding: 5px; border-width: 2.5px; }
.phone-sm img { border-radius: 19px; }
.sheet-body.no-play { grid-template-columns: 1fr; }
.sheet-body.no-play .phone-sm { display: none; }
.sheet-nav { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px 18px; flex: none; border-top: 2px solid var(--line); }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--card); border: var(--edge); border-bottom-width: 4.5px; border-radius: 14px; }
.sheet-close svg { width: 20px; height: 20px; }

/* ---------- écrans moyens et petits ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .race, .fair { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-premium { transform: none; }
  .eureka { margin-left: var(--gutter); margin-right: var(--gutter); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 12px; }
  .wall-head { grid-template-columns: 1fr; }
  .wall-head .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
  .tiles { --cols: 3; --gap: 10px; }
  .tile { border-radius: 14px; --lip: 5px; }
  .tile-name { font-size: 0.92rem; padding: 4px 7px 6px; -webkit-text-stroke-width: 3.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tile.picked::after { top: 5px; right: 5px; font-size: 0.78rem; padding: 2px 6px; }
  .hero-logo { width: min(150px, 40vw); }
  .hero .title { font-size: 2rem; }
  .wall { padding-top: 6px; }
  .wall-head { margin-bottom: 12px; }
  .wall-head .title { font-size: 1.55rem; }
  .wall-head p { display: none; }
  .wall-head .btn { min-height: 44px; font-size: 1.05rem; padding: 6px 16px; margin-top: 6px; }
  .lede { margin: 8px 0 12px; font-size: 1rem; }
  .stores { gap: 10px; }
  .store { min-height: 56px; padding: 6px 14px 6px 12px; gap: 9px; border-radius: 14px; }
  .store svg { width: 24px; height: 24px; }
  .store small { font-size: 0.68rem; }
  .store b { font-size: 1.12rem; }
  .hero-note { font-size: 0.82rem; margin-top: 4px; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 0; justify-items: center; margin-bottom: 24px; }
  .step .step-text, .step:nth-child(even) .step-text { margin: -40px 0 0; }
  .step:nth-child(even) .phone { order: 0; }
  .step .phone { width: min(260px, 70vw); }
  .step-text { padding: 20px 22px; }
  .eureka { grid-template-columns: 1fr; justify-items: center; text-align: left; padding: 30px 22px; border-radius: 24px; }
  .title { -webkit-text-stroke-width: 6px; }
  .hero .title { -webkit-text-stroke-width: 7px; text-shadow: 0 4px 0 var(--ink); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .sheet { padding: 10px; }
  .sheet-body { grid-template-columns: minmax(0, 1fr) 104px; padding: 14px 16px 6px; }
  .sheet-body h3 { font-size: 1.6rem; }
  .sheet-nav { padding: 12px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .cloud { transform: none; }
  .c1 { left: 8%; } .c2 { left: 70%; } .c3 { left: 40%; } .c4 { left: 82%; } .c5 { left: 55%; } .c6 { left: 12%; }
}
