:root {
  color-scheme: dark;
  --ink: #062f39;
  --ink-deep: #021e27;
  --cream: #fff6dc;
  --cream-soft: #f5f1dc;
  --teal: #0a9d92;
  --teal-light: #55cbbb;
  --green: #0aa663;
  --gold: #f7b72f;
  --orange: #f48a1f;
  --purple: #7042c6;
  --blue: #1478c9;
  --red: #db3544;
  --muted: #9dc4c4;
  --line: rgba(159, 232, 220, .25);
  --shadow: 0 18px 45px rgba(0, 22, 29, .28);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(circle at 12% 8%, rgba(74, 203, 185, .22), transparent 27rem),
    radial-gradient(circle at 88% 45%, rgba(29, 105, 194, .21), transparent 31rem),
    linear-gradient(145deg, #053845 0%, #065d68 48%, #087e75 100%);
  line-height: 1.55;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .34;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(255,255,255,.035) 49%, rgba(255,255,255,.035) 51%, transparent 52%),
    linear-gradient(150deg, transparent 48%, rgba(255,255,255,.025) 49%, rgba(255,255,255,.025) 51%, transparent 52%);
  background-size: 90px 155px;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: .7rem 1rem;
  color: var(--ink-deep);
  background: var(--cream);
  border-radius: 10px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(2, 24, 31, .91);
  backdrop-filter: blur(16px);
}
.nav-shell, .shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}
.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .02em;
}
.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink-deep);
  background: linear-gradient(145deg, #ffe077, var(--gold));
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 12px;
  box-shadow: 0 5px 0 #936313, 0 9px 18px rgba(0,0,0,.24);
  font-size: 1.4rem;
  transform: rotate(-4deg);
}
.site-nav { display: flex; align-items: center; gap: 7px; }
.site-nav a {
  padding: .6rem .82rem;
  border-radius: 999px;
  color: #d9efeb;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(97, 217, 194, .14); color: #fff; }
.site-nav .nav-play { color: var(--ink-deep); background: linear-gradient(#ffce61, var(--gold)); box-shadow: inset 0 1px rgba(255,255,255,.8), 0 4px 0 #936313; }

main { overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(360px, .93fr);
  align-items: center;
  gap: 64px;
  min-height: 650px;
  padding-block: 84px 76px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #ffe080;
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { width: 26px; height: 3px; content: ""; background: var(--gold); border-radius: 3px; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.75rem, 6.5vw, 5.75rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); letter-spacing: -.04em; }
h3 { font-size: 1.12rem; }
.lead { max-width: 680px; margin: 0; color: #d2e9e5; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: .76rem 1.15rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  box-shadow: inset 0 1px rgba(255,255,255,.24), 0 5px 0 rgba(0, 28, 35, .55), 0 11px 24px rgba(0,0,0,.18);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:active { box-shadow: inset 0 1px rgba(255,255,255,.18), 0 2px 0 rgba(0, 28, 35, .55); transform: translateY(3px); }
.button-primary { color: #042b30; border-color: #ffe6a3; background: linear-gradient(#ffd970, #f6ac23); box-shadow: inset 0 1px #fff5cd, 0 5px 0 #95600a, 0 14px 28px rgba(0,0,0,.22); }
.button-green { background: linear-gradient(#35c483, #07894c); box-shadow: inset 0 1px rgba(255,255,255,.6), 0 5px 0 #035b36, 0 14px 28px rgba(0,0,0,.2); }
.button[aria-disabled="true"] { cursor: not-allowed; filter: grayscale(.3); opacity: .72; }

.hero-table {
  position: relative;
  min-height: 430px;
  padding: 28px;
  overflow: hidden;
  border: 2px solid rgba(176, 241, 226, .38);
  border-radius: 42px;
  background:
    radial-gradient(ellipse at center, rgba(17, 169, 142, .54), transparent 62%),
    linear-gradient(150deg, #064955, #07313c);
  box-shadow: inset 0 0 0 8px rgba(1,28,35,.14), var(--shadow);
}
.hero-table::before, .hero-table::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.hero-table::before { width: 460px; height: 270px; inset: 75px auto auto -25px; transform: rotate(-9deg); }
.hero-table::after { width: 250px; height: 250px; right: -90px; bottom: -85px; }
.card-fan { position: absolute; inset: 50% auto auto 50%; width: 210px; height: 240px; transform: translate(-50%, -50%); }
.playing-card {
  position: absolute;
  inset: 9px auto auto 54px;
  width: 116px;
  height: 172px;
  padding: 10px;
  color: #c92435;
  background: linear-gradient(145deg, #fff, #f5ead5);
  border: 1px solid #d4c7af;
  border-radius: 12px;
  box-shadow: 0 16px 25px rgba(0,0,0,.28);
  font-weight: 950;
  font-size: 1.4rem;
}
.playing-card::after { position: absolute; right: 13px; bottom: 10px; content: "♥"; font-size: 3.7rem; line-height: 1; opacity: .92; }
.card-a { transform: rotate(-18deg) translateX(-48px); }
.card-nine { transform: rotate(-2deg); }
.card-j { transform: rotate(15deg) translateX(50px); }
.table-chip {
  position: absolute;
  display: grid;
  width: 56px;
  aspect-ratio: 1;
  place-items: center;
  border: 7px dotted rgba(255,255,255,.58);
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 7px 15px rgba(0,0,0,.28);
  font-weight: 900;
}
.chip-one { top: 27px; right: 45px; }
.chip-two { bottom: 31px; left: 37px; background: var(--orange); }
.chip-three { right: 35px; bottom: 42px; background: var(--blue); }
.table-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 16px; text-align: center; color: #b9dcd7; font-size: .86rem; }

.section { padding-block: 82px; }
.section-cream { color: var(--ink); background: linear-gradient(180deg, #fff8e5, #e4f1e6); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading p { max-width: 650px; margin: 0; color: var(--muted); }
.section-cream .section-heading p { color: #42666a; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .content-card {
  padding: 27px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(3,41,49,.42));
  box-shadow: 0 12px 27px rgba(0,24,31,.16);
}
.section-cream .feature-card, .section-cream .content-card { border-color: rgba(7,85,85,.12); background: rgba(255,255,255,.7); }
.feature-icon {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  margin-bottom: 19px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 17px;
  background: linear-gradient(145deg, var(--teal-light), var(--teal));
  box-shadow: 0 5px 0 #046a65;
  font-size: 1.5rem;
}
.feature-card:nth-child(2) .feature-icon { background: linear-gradient(145deg, #a16be8, var(--purple)); box-shadow: 0 5px 0 #422184; }
.feature-card:nth-child(3) .feature-icon { color: var(--ink); background: linear-gradient(145deg, #ffe57a, var(--orange)); box-shadow: 0 5px 0 #a75b0e; }
.feature-card p, .content-card p { margin-bottom: 0; color: #c5e0dc; }
.section-cream .feature-card p, .section-cream .content-card p { color: #42666a; }

.mode-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode-card { min-height: 126px; padding: 24px; border-radius: 22px; box-shadow: inset 0 1px rgba(255,255,255,.55), 0 7px 0 rgba(0,0,0,.22), 0 18px 30px rgba(0,0,0,.15); }
.mode-card strong { display: block; font-size: 1.35rem; }
.mode-card span { color: rgba(255,255,255,.85); }
.mode-classic { background: linear-gradient(145deg, #2bc783, #068d56); }
.mode-annonces { background: linear-gradient(145deg, #ffbd2e, #f17418); }
.mode-coinchee { background: linear-gradient(145deg, #9861df, #5531ad); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px; border: 1px solid rgba(255,255,255,.17); border-radius: 28px; background: linear-gradient(130deg, rgba(11,185,142,.42), rgba(19,84,140,.45)); box-shadow: var(--shadow); }
.cta-band h2 { margin-bottom: 8px; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.cta-band p { margin: 0; color: #cae4df; }

.page-hero { padding-block: 76px 38px; }
.page-hero h1 { max-width: 880px; font-size: clamp(2.5rem, 6vw, 4.7rem); }
.page-hero .lead { max-width: 820px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 30px; padding-bottom: 90px; }
.article { color: var(--ink); background: linear-gradient(155deg, #fff9e8, #edf6eb); border: 1px solid rgba(255,255,255,.8); border-radius: 28px; box-shadow: var(--shadow); }
.article-section { padding: 31px 36px; border-bottom: 1px solid rgba(8,78,83,.12); }
.article-section:last-child { border-bottom: 0; }
.article-section h2 { margin-bottom: 14px; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.article-section h3 { margin: 25px 0 8px; color: #075b62; }
.article-section p, .article-section li { color: #365f63; }
.article-section a { color: #046e75; font-weight: 750; }
.article-section ul, .article-section ol { padding-left: 1.25rem; }
.article-section li + li { margin-top: .55rem; }
.toc { position: sticky; top: 96px; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: rgba(3,42,51,.74); }
.toc strong { display: block; margin-bottom: 11px; color: #ffe080; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.toc a { display: block; padding: .4rem 0; color: #d4eae6; text-decoration: none; }
.toc a:hover { color: #fff; }
.notice { padding: 18px 20px; border: 1px solid rgba(160,104,0,.22); border-left: 6px solid var(--gold); border-radius: 14px; color: #593f0b; background: #fff0bf; }
.notice strong { color: #2f290e; }
.notice-info { border-color: rgba(3,112,119,.18); border-left-color: var(--teal); color: #285b5e; background: #dff4eb; }
.notice-danger { border-color: rgba(174,25,46,.2); border-left-color: var(--red); color: #6f2630; background: #ffe5e5; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: .35rem .7rem; color: #d9efeb; border: 1px solid var(--line); border-radius: 999px; background: rgba(2,35,43,.45); font-size: .82rem; }
.article .pill { color: #285b5e; border-color: rgba(3,112,119,.2); background: #e6f5ed; }
.steps { counter-reset: step; display: grid; gap: 15px; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 54px; padding: 4px 0 0 66px; }
.steps li::before { position: absolute; top: 0; left: 0; display: grid; width: 48px; aspect-ratio: 1; place-items: center; counter-increment: step; content: counter(step); color: #fff; border-radius: 15px; background: linear-gradient(145deg, #32c88b, #078b56); box-shadow: 0 4px 0 #04603e; font-weight: 900; }
.faq details { border-top: 1px solid rgba(8,78,83,.14); }
.faq details:first-child { border-top: 0; }
.faq summary { padding: 18px 0; color: #094c54; font-weight: 850; cursor: pointer; }
.faq details p { margin: -5px 0 20px; }
.config-value:empty::before { content: "À renseigner avant publication"; color: #a33a45; font-weight: 800; }
.config-warning[hidden], [data-contact-link][hidden], [data-contact-fallback][hidden] { display: none; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 12px 10px; border-bottom: 1px solid rgba(8,78,83,.12); text-align: left; vertical-align: top; }
.legal-table th { width: 30%; color: #075b62; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label, .checkbox-row { color: #164f55; font-weight: 800; }
.form-field input {
  width: 100%;
  min-height: 49px;
  padding: .7rem .85rem;
  color: #073b42;
  border: 1px solid rgba(5,91,98,.28);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 2px 5px rgba(0,52,58,.08);
}
.form-field small { color: #507174; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 650; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 750; }
.form-status.pending { color: #654407; background: #ffedb4; }
.form-status.success { color: #075337; background: #cdefdc; }
.form-status.error { color: #7a202d; background: #ffdadd; }
.button:disabled { cursor: wait; filter: grayscale(.35); opacity: .7; }
.account-shell { display: grid; min-height: calc(100vh - 190px); padding-block: 70px; place-items: center; }
.account-card { width: min(650px, 100%); }
.account-card h1 { margin-bottom: 18px; font-size: clamp(2rem, 6vw, 3.3rem); color: var(--ink); }
.account-card .eyebrow { color: #8a5c06; }

.webgl-shell { padding-block: 48px 80px; }
.webgl-panel { overflow: hidden; border: 2px solid rgba(185,242,229,.46); border-radius: 28px; background: #031d25; box-shadow: var(--shadow); }
.webgl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; background: rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.1); }
.webgl-toolbar strong { font-size: .9rem; }
.webgl-stage { position: relative; display: grid; min-height: min(65vh, 720px); place-items: center; background: radial-gradient(circle at center, #09545c, #02161d 72%); }
/* Le Player est construit en 1152x516. Le forcer en 16:9 étirait chaque glyphe
   et chaque bouton verticalement, d'où le rendu flou propre à la page WebGL. */
#unity-canvas { display: none; width: 100%; height: auto; aspect-ratio: 1152 / 516; background: #071c22; image-rendering: auto; }
.webgl-empty { max-width: 660px; padding: 48px 28px; text-align: center; }
.webgl-empty-mark { display: grid; width: 82px; aspect-ratio: 1; margin: 0 auto 24px; place-items: center; border: 2px solid rgba(255,255,255,.6); border-radius: 26px; color: var(--ink-deep); background: linear-gradient(145deg, #ffe382, var(--gold)); box-shadow: 0 7px 0 #91600a; font-size: 2rem; }
.webgl-empty h1 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 3.6rem); }
.webgl-empty p { color: #c5dedb; }
.progress-wrap { display: none; width: min(540px, calc(100% - 48px)); text-align: center; }
.progress-track { height: 12px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.14); }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-light), var(--gold)); transition: width .18s linear; }
.webgl-error { display: none; max-width: 650px; margin: 24px; padding: 18px; border: 1px solid rgba(255,104,104,.6); border-radius: 14px; color: #ffdcdc; background: rgba(125,12,30,.5); }
.status-dot { width: 9px; height: 9px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(247,183,47,.12); transition: background .18s ease, box-shadow .18s ease; }
.status-dot.is-online { background: #45df86; box-shadow: 0 0 0 5px rgba(69,223,134,.16), 0 0 13px rgba(69,223,134,.5); }
.status-dot.is-loading { background: var(--gold); box-shadow: 0 0 0 5px rgba(247,183,47,.12); }
.status-dot.is-offline { background: #ff6b72; box-shadow: 0 0 0 5px rgba(255,107,114,.13); }
.webgl-seo-intro { padding: 24px 2px 18px; text-align: center; }
.webgl-seo-intro h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 3rem); }
.webgl-seo-intro p { max-width: 850px; margin: 0 auto; color: #c5dedb; }
.seo-copy { max-width: 920px; margin: 28px auto 8px; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.035); }
.seo-copy h2 { margin-top: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.seo-copy p:last-child { margin-bottom: 0; }

.site-footer { color: #b5d5d1; border-top: 1px solid rgba(255,255,255,.12); background: #031f28; }
.footer-shell { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; padding-block: 34px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.footer-links a { color: #d6e9e5; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-small { margin: 6px 0 0; font-size: .83rem; }

@media (max-width: 860px) {
  .site-header { position: static; }
  .nav-shell { padding-block: 14px; align-items: flex-start; }
  .site-nav { justify-content: flex-end; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 60px; }
  .hero-table { width: min(560px, 100%); min-height: 390px; margin-inline: auto; }
  .grid-3, .mode-strip { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}

@media (max-width: 600px) {
  .nav-shell, .shell { width: min(100% - 22px, 1180px); }
  .nav-shell { display: block; }
  .brand { margin-bottom: 13px; }
  .site-nav { justify-content: flex-start; }
  .site-nav a { padding: .45rem .62rem; font-size: .82rem; }
  .hero { min-height: auto; }
  h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .hero-table { min-height: 330px; border-radius: 28px; }
  .card-fan { transform: translate(-50%, -50%) scale(.78); }
  .cta-band { display: block; }
  .cta-band .button { margin-top: 22px; }
  .article-section { padding: 25px 22px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { padding-bottom: 2px; border-bottom: 0; }
  .legal-table td { padding-top: 2px; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
