@font-face { font-family: "Olympic Headline"; src: url("/assets/fonts/OlympicHeadline-Condensed.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Olympic Sans"; src: url("/assets/fonts/OlympicSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Olympic Sans"; src: url("/assets/fonts/OlympicSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root { --blue: #0E75BC; --blue-dark: #0A5A94; --gold: #FFB114; --gold-dark: #E08E00; --ink: #181B24; --ink2: #4A5060;
  --display: "Olympic Headline", "Arial Narrow", Impact, sans-serif;
  --sans: "Olympic Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--blue); color: #fff; font: 400 16px/1.4 var(--sans); overflow: hidden; -webkit-text-size-adjust: 100%; }
img { display: block; }
a { color: inherit; }

html[lang="fr"] [lang="en"], html[lang="en"] [lang="fr"] { display: none; }
.apk-ready .when-soon, .apk-soon .when-ready { display: none !important; }

/* Tout tient sur UN écran : la page fait exactement la hauteur de la fenêtre, rien ne défile. */
.page { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: env(safe-area-inset-top) 0 0;
  background: radial-gradient(120% 90% at 85% 40%, #1C8AD6 0%, var(--blue) 55%, #0B66A8 100%); border-bottom: .5rem solid var(--gold); }

.top, footer { width: 100%; max-width: 76rem; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: clamp(.6rem, 2.4dvh, 1.4rem) clamp(1rem, 4vw, 3rem); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: clamp(1.9rem, 6dvh, 2.9rem); width: auto; }
.brand span { font: 700 clamp(1.6rem, 5dvh, 2.5rem)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.lang { display: flex; gap: .3rem; }
.lang button { font: 700 .8rem var(--sans); padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  background: transparent; color: #fff; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--blue-dark); }

.stage { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
  max-width: 76rem; width: 100%; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); gap: 1rem; }
.copy { display: flex; flex-direction: column; gap: clamp(.4rem, 1.6dvh, 1rem); min-height: 0; }
.kicker { margin: 0; color: var(--gold); font: 700 clamp(1rem, 3dvh, 1.35rem) var(--display); letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font: 700 clamp(2.4rem, 11dvh, 5.6rem)/.98 var(--display); text-transform: uppercase; }
.lead { margin: 0; font-size: clamp(1rem, 2.6dvh, 1.3rem); color: rgba(255,255,255,.88); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 2dvh, 1.1rem); margin-top: clamp(.4rem, 2dvh, 1.2rem); max-width: 34rem; }
.card { background: #fff; color: var(--ink); border-radius: 1.1rem; padding: clamp(.6rem, 2dvh, 1.1rem); display: flex; flex-direction: column;
  align-items: center; gap: clamp(.3rem, 1.2dvh, .6rem); box-shadow: 0 .6rem 1.8rem rgba(4, 38, 70, .28); }
.qr { width: clamp(6rem, 24dvh, 11.5rem); aspect-ratio: 1; }
.qr img { width: 100%; height: 100%; }
.qr-soon { display: flex; align-items: center; justify-content: center; border-radius: .7rem; background: #EDF4FC; color: var(--ink2); font: 700 1.3rem var(--display); text-transform: uppercase; }
.os { margin: 0; font: 700 clamp(1rem, 2.6dvh, 1.2rem) var(--sans); }

.btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: .5rem .8rem; border-radius: .8rem;
  text-decoration: none; line-height: 1.1; background: var(--ink); color: #fff; border: 0; }
.btn small { font-size: .68rem; opacity: .85; }
.btn strong { font-size: clamp(1rem, 2.8dvh, 1.2rem); }
.btn:focus-visible, .how:focus-visible, .lang button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-apk { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); color: var(--ink); }
.btn-soon { background: transparent; color: #8B90A0; border: 1px dashed #C9CEDA; cursor: not-allowed; }
.how { background: none; border: 0; padding: 0; color: var(--blue-dark); font: 700 .8rem var(--sans); text-decoration: underline; cursor: pointer; }

.mascot { align-self: end; justify-self: center; min-height: 0; height: 100%; display: flex; align-items: flex-end; }
.mascot img { height: min(88%, 40rem); max-height: 100%; width: auto; aspect-ratio: 1; filter: drop-shadow(0 1.2rem 1.6rem rgba(4, 38, 70, .35)); margin-bottom: -2dvh; }

footer { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; justify-content: space-between; padding: clamp(.4rem, 1.4dvh, .9rem) clamp(1rem, 4vw, 3rem);
  font-size: .78rem; color: rgba(255,255,255,.8); }
footer nav { display: flex; gap: 1.1rem; }

dialog { border: 0; border-radius: 1.1rem; padding: 1.4rem 1.4rem 1.2rem; max-width: min(34rem, 92vw); max-height: 88dvh; overflow: auto; background: #fff; color: var(--ink); }
dialog::backdrop { background: rgba(10, 30, 60, .6); }
dialog h2 { margin: 0 2rem .6rem 0; font: 700 1.5rem var(--display); text-transform: uppercase; }
dialog h3 { margin: 1.1rem 0 .3rem; font-size: 1rem; }
dialog ol { padding-left: 1.2rem; margin: 0; } dialog li { margin: .4rem 0; }
dialog dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: .4rem 0; }
dialog dt { color: var(--ink2); } dialog dd { margin: 0; word-break: break-all; }
dialog code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: #F4F1FB; padding: .1rem .3rem; border-radius: .3rem; }
.hint { color: var(--ink2); font-size: .85rem; margin: .4rem 0 0; }
.dlg-close { position: absolute; top: .6rem; right: .8rem; margin: 0; }
.dlg-close button { font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink2); }

/* Téléphone : on touche les boutons, on ne scanne pas son propre écran. L'écran se recompose
   en colonne - marque, deux boutons, mascotte - toujours sans défilement. */
@media (max-width: 52rem) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: .2rem; padding-bottom: 0; align-items: start; }
  .copy { align-items: center; text-align: center; width: 100%; }
  h1 { font-size: clamp(2.2rem, 8dvh, 4rem); }
  .qr { display: none !important; }
  .cards { grid-template-columns: 1fr; max-width: 22rem; width: 100%; gap: .5rem; margin-top: .3rem; }
  .card { flex-direction: row; justify-content: space-between; padding: .5rem .7rem; border-radius: .9rem; gap: .6rem; }
  .card .os { flex: 0 0 4.6rem; text-align: left; }
  .card .btn { flex: 1; min-width: 0; }
  .card .how { display: none; }
  .mascot { justify-self: center; align-self: end; height: 100%; width: 100%; justify-content: center; overflow: hidden; }
  .mascot img { height: auto; width: auto; max-height: 100%; max-width: 70%; margin-bottom: 0; object-fit: contain; }
  footer { justify-content: center; text-align: center; }
}
@media (max-width: 52rem) and (max-height: 640px) { .mascot { display: none; } .lead { display: none; } }
@media (max-height: 520px) and (min-width: 52.01rem) { .lead { display: none; } .qr { width: clamp(5rem, 30dvh, 8rem); } }
