/* Repstory · page d'accueil publique. Noir pur, aplats, texte clair (contraste AAA), mouvement coupé si le système le demande
   ou si on met l'animation en pause. Les polices (Josefin Sans, Syncopate) viennent de fonts/fonts.css. */
@font-face { font-family: "Jakarta"; src: url("/landing/fonts/jakarta-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("/landing/fonts/jakarta-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --fg: #f5f6f7; --muted: #b4b9bf; --lime: #adf77a; --line: rgba(255, 255, 255, 0.5); --pad: clamp(1rem, 4vw, 2.5rem); }
* { box-sizing: border-box; }
html { background: #000; color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: #000; color: var(--fg); font: 400 1rem/1.5 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 0.75rem; top: -4rem; z-index: 10; padding: 0.65rem 1rem; border-radius: 0.6rem; background: #fff; color: #000; font-weight: 700; text-decoration: none; }
.skip:focus { top: 0.75rem; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 0.5rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; flex-wrap: wrap; padding: max(1rem, env(safe-area-inset-top)) var(--pad) 0; }
.brand { font: 700 0.95rem "Syncopate", "Jakarta", sans-serif; letter-spacing: 0.36em; text-transform: uppercase; color: #ffffff; }
.tools { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.lang { display: flex; gap: 0.3rem; }
.lang button, .motion { min-height: 2.75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 700 0.85rem "Jakarta", sans-serif; cursor: pointer; }
.lang button { min-width: 2.75rem; }
.lang button:hover, .motion:hover { color: #fff; border-color: #fff; }
.lang button[aria-pressed="true"], .motion[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.motion { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0 1rem 0 0.8rem; }
.motion svg { width: 1.1rem; height: 1.1rem; flex: none; }
.motion .i-play, .motion[aria-pressed="true"] .i-pause { display: none; }
.motion[aria-pressed="true"] .i-play { display: block; }

main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 1.25rem var(--pad) 2rem; text-align: center; overflow-x: clip; }

/* Mascotte : une image fixe (la même que l'animée au repos), remplacée par la mascotte animée dès que le moteur est chargé.
   Si le moteur tarde, l'image fixe apparaît en fondu après 0,9 s ; sans JavaScript, tout de suite (balise noscript). */
.mascot { --h: clamp(11rem, 36svh, 22rem); position: relative; display: block; margin-top: clamp(2.4rem, 6svh, 3.8rem); /* la place de la bulle, au-dessus */ width: calc(var(--h) * 0.8426); height: var(--h); border-radius: 2rem; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mascot.ready { cursor: pointer; }
/* Le bouton (clavier, lecteur d'écran) est posé par-dessus, sans texte ; la souris et le doigt passent à travers, vers le moteur. */
.mascot-btn { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; border-radius: 2rem; background: transparent; pointer-events: none; }
.mascot .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; animation: still-in 0.35s ease 0.9s forwards; }
.mascot.ready .still { display: none; }
.mascot .kb-host { position: absolute; inset: 0; display: grid; place-items: center; }
.hint { margin: 0; min-height: 1.5em; color: var(--muted); font-size: 0.9rem; }

h1 { margin: 0.4rem 0 0; font: 800 clamp(2.3rem, 8.6vw, 5rem)/1.02 "Jakarta", system-ui, sans-serif; letter-spacing: -0.04em; text-wrap: balance; }
h1 .soon { color: var(--lime); }
.lead { margin: 0; max-width: 32ch; font-size: clamp(1.05rem, 2.7vw, 1.45rem); line-height: 1.35; color: var(--muted); text-wrap: balance; }

.cta { margin-top: 0.4rem; }
.cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 2rem; border: 2px solid #fff; border-radius: 999px; background: #fff; color: #000; font: 800 1.15rem "Jakarta", sans-serif; text-decoration: none; }
.cta a:hover { background: var(--lime); border-color: var(--lime); }

.follow, .legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.4rem; }
.follow { margin-top: 0.4rem; }
.follow a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--fg); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.follow a:hover { color: var(--lime); }

footer { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.5rem var(--pad) max(1.25rem, env(safe-area-inset-bottom)); font-size: 0.85rem; color: var(--muted); text-align: center; }
.legal a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-underline-offset: 0.25em; }
.legal a:hover { color: #fff; }
.fine { margin: 0; font-size: 0.78rem; color: var(--muted); }

/* Petite arrivée des textes */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes still-in { to { opacity: 1; } }
.hint, h1, .lead, .cta, .follow { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
h1 { animation-delay: 0.15s; } .lead { animation-delay: 0.25s; } .cta { animation-delay: 0.35s; } .follow { animation-delay: 0.45s; } .hint { animation-delay: 0.6s; }

@media (max-height: 520px) and (orientation: landscape) {
  /* téléphone en paysage : la mascotte à gauche, le texte à droite */
  main { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: min-content; align-content: center; justify-items: start; column-gap: 2.5rem; row-gap: 0.7rem; text-align: left; }
  .mascot { --h: 58svh; grid-row: 1 / span 6; align-self: center; margin-top: clamp(1.6rem, 8svh, 2.4rem); }
  .hint { display: none; }
  h1 { margin-top: 0; font-size: clamp(2rem, 5.2vw, 3.2rem); }
  .follow { justify-content: flex-start; }
}
/* Mouvement : coupé si le système le demande ou si l'animation est mise en pause avec le bouton (la mascotte reste visible) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mascot .still { opacity: 1; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] .mascot .still { opacity: 1; }
@media (forced-colors: active) {
  .lang button, .motion, .cta a { border-color: CanvasText; }
  .cta a { background: ButtonFace; color: ButtonText; }
}
