/* LudoGoat : page de téléchargement. Couleurs du logo : émeraude, or, crème. */
@font-face {
  font-family: "Lilita One";
  src: url("fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #04241a;
  --bg-alt: #062e22;
  --panel: #0a3d2d;
  --panel-edge: rgba(246, 212, 122, 0.22);
  --gold: #e8b64a;
  --gold-light: #f6d47a;
  --gold-dark: #a8771d;
  --cream: #f7ecd2;
  --cream-soft: #cfc3a6;
  --muted: #8fa699;
  --green: #2fbf71;
  --title: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 17px/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
h1, h2, h3 { font-family: var(--title); font-weight: 400; letter-spacing: 0.01em; line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(30px, 5vw, 44px); color: var(--gold-light); text-align: center; }
h3 { font-size: 24px; color: var(--cream); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.small { font-size: 15px; color: var(--cream-soft); }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 24px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(4, 36, 26, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-edge);
}
.top-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-light); font-family: var(--title); font-size: 24px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--cream-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--gold-light); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.lang {
  font: 700 14px var(--body); color: var(--cream); background: transparent;
  border: 1px solid var(--panel-edge); border-radius: 999px; padding: 7px 12px; cursor: pointer;
}
.lang:hover { border-color: var(--gold); color: var(--gold-light); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--title); font-size: 20px; color: #3a2108; text-decoration: none;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  border: 2px solid #fff3c4; border-radius: 999px; padding: 12px 26px;
  box-shadow: 0 6px 0 #6e4a10, 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #6e4a10, 0 4px 12px rgba(0, 0, 0, 0.35); }
.btn-small { font-size: 16px; padding: 7px 16px; box-shadow: 0 3px 0 #6e4a10; }
.btn-big { font-size: 24px; padding: 16px 34px; }
.btn[aria-disabled="true"] { filter: grayscale(0.7) brightness(0.8); cursor: default; }

/* Haut de page */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 30% 30%, rgba(47, 191, 113, 0.25), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(232, 182, 74, 0.14), transparent 70%),
    linear-gradient(180deg, #073a2b, var(--bg));
  padding: 40px 0 64px;
}
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-text { text-align: center; }
.hero-goat { width: min(300px, 70vw); margin: 0 auto -18px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45)); }
.hero-name { margin: 0 auto; width: min(460px, 88vw); }
.hero-name img { width: 100%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.slogan { font-family: var(--title); font-size: clamp(28px, 4.5vw, 40px); color: var(--cream); margin: 14px 0 0; }
.slogan-fr { font-family: var(--title); font-size: clamp(20px, 3vw, 26px); color: var(--gold-light); margin: 2px 0 6px; }
.tagline { font-weight: 800; letter-spacing: 0.22em; color: var(--green); font-size: 14px; margin: 0 0 18px; }
.lead { max-width: 520px; margin: 0 auto 26px; color: var(--cream-soft); }
.cta-note { margin-top: 18px; font-size: 15px; color: var(--cream-soft); }

/* Téléphones */
.phone {
  border-radius: 34px; padding: 10px; background: #0b0b0b;
  box-shadow: 0 0 0 2px #2b2b2b, 0 30px 60px rgba(0, 0, 0, 0.55);
  width: 300px; margin: 0 auto;
}
.phone img { border-radius: 26px; width: 100%; }
.hero-phone .phone { transform: rotate(3deg); width: min(320px, 78vw); }
.phone-sm { width: 100%; max-width: 230px; border-radius: 28px; padding: 8px; }
.phone-sm img { border-radius: 21px; }
.phone-md { width: min(300px, 80vw); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--panel-edge); border-bottom: 1px solid var(--panel-edge); }
.section-lead { text-align: center; max-width: 680px; margin: 0 auto 40px; color: var(--cream-soft); }

.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.game { text-align: center; }
.game h3 { margin-top: 20px; color: var(--gold-light); }
.game p { color: var(--cream-soft); font-size: 16px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-media { align-items: center; gap: 48px; }
.two-media h2 { text-align: left; }
.card {
  background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 22px; padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card h2 { text-align: left; font-size: 34px; }
.card-gold { border-color: rgba(246, 212, 122, 0.55); background: linear-gradient(160deg, #0d4a36, #0a3d2d 60%, #2a2410); }
.badge {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #062e22; background: var(--green); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.badge-gold { background: var(--gold); color: #3a2108; }

.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%233a2108' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.prize {
  display: flex; flex-direction: column; gap: 4px; margin: 8px 0 24px; padding: 20px 22px;
  border-radius: 18px; background: linear-gradient(135deg, rgba(232, 182, 74, 0.22), rgba(232, 182, 74, 0.05));
  border: 1px solid rgba(246, 212, 122, 0.5);
}
.prize-amount { font-family: var(--title); font-size: 40px; color: var(--gold-light); }
.prize-text { color: var(--cream); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.fact { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 20px; padding: 26px; }
.fact svg { color: var(--gold-light); margin-bottom: 12px; }
.fact h3 { font-size: 22px; }
.fact p { color: var(--cream-soft); margin: 0; }

.logos { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.logos img { width: 48px; height: 48px; border-radius: 12px; }
.chip { font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(38, 161, 123, 0.2); color: #6fe0b6; border: 1px solid rgba(111, 224, 182, 0.4); }

/* Téléchargement */
.section-download {
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(232, 182, 74, 0.18), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--panel-edge);
}
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 20px; padding: 24px; text-align: center; }
.steps p { color: var(--cream-soft); margin: 0; font-size: 16px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--title); font-size: 24px; color: #3a2108; background: var(--gold); margin-bottom: 10px;
}
.dl-box { text-align: center; }
.dl-meta { margin: 18px 0 6px; color: var(--cream-soft); }
.dl-meta b { color: var(--cream); }
.dl-soon { margin: 18px 0 6px; color: var(--gold-light); font-weight: 700; }
.sha { max-width: 640px; margin: 12px auto 16px; text-align: left; background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 14px; padding: 12px 16px; }
.sha summary { cursor: pointer; font-weight: 700; color: var(--cream); }
.sha p { margin: 10px 0 8px; font-size: 15px; color: var(--cream-soft); }
.sha code { display: block; word-break: break-all; font-size: 13px; color: var(--gold-light); background: rgba(0, 0, 0, 0.3); padding: 10px; border-radius: 8px; }

/* Questions */
.q { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 16px; margin-bottom: 12px; }
.q summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; list-style: none; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 26px var(--title); color: var(--gold); }
.q[open] summary::after { content: "−"; }
.q p { padding: 0 20px 18px; margin: 0; color: var(--cream-soft); }

/* Pied de page */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--panel-edge); text-align: center; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.foot .brand { margin-bottom: 10px; }
.foot p { margin: 0 0 6px; }

/* Écrans moyens et téléphones */
@media (max-width: 960px) {
  .links { display: none; }
  .top-actions { margin-left: auto; }
  .games { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 24px 0 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-phone .phone { transform: none; }
  .section { padding: 56px 0; }
  .two, .facts, .steps { grid-template-columns: 1fr; }
  .two-media h2 { text-align: center; }
  .card { padding: 22px; }
  .btn-big { font-size: 21px; padding: 14px 24px; }
}
@media (max-width: 420px) {
  .games { gap: 16px; }
  .game h3 { font-size: 21px; margin-top: 14px; }
  .game p { font-size: 14px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
