/* =========================================================================
   Point + Point · la base commune du site (toutes les pages)
   Aucune ressource distante : la police est servie d'ici, comme dans l'app.
   ========================================================================= */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  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: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Encre et papier : le contour des illustrations est l'encre du texte. */
  --ink: #1e1433;
  --ink-soft: #463b5f;
  --muted: #6b6185;
  --paper: #ffffff;

  /* Lavande : le dégradé de l'app (#F4EAFE → blanc) et ses voisines. */
  --lav-50: #faf6ff;
  --lav-100: #f4eafe;
  --lav-200: #ebdffd;
  --lav-300: #d9c8fb;
  --lav-400: #b9a3f5;

  /* Violet : celui du CTA de l'app, et un cran plus profond pour les boutons du site
     (le blanc y garde un contraste AA, ce que la lavande de l'app ne permet pas). */
  --violet: #a497ea;
  --violet-600: #6c4bd6;
  --violet-700: #5534c0;
  --hat: #4b2a8c;

  /* Le reste de la palette « pop » de l'app : menthe, beurre, rose, or. */
  --mint: #8de0ad;
  --mint-100: #dcf7e8;
  --mint-ink: #0f6b44;
  --butter: #ffe68f;
  --butter-100: #fff6cf;
  --pink: #ffb3cc;
  --gold: #fbbf24;
  --amber-ink: #8a5a00;

  --line: #e6dbfb;
  --radius: 22px;
  --shadow: 0 18px 40px -22px rgba(60, 33, 120, 0.45);
  /* La « pièce de jeu » : contour d'encre et ombre portée pleine, comme un jeton. */
  --piece: 0 4px 0 var(--ink);

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--violet-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--hat);
}

:focus-visible {
  outline: 3px solid var(--violet-600);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: var(--butter);
  color: var(--ink);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 0.6em 1em;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ——— Boutons : des pièces de jeu qu'on enfonce ——————————————————————— */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0.8em 1.35em;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--piece);
  font: 700 1.0625rem/1.1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--ink);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.55;
  transform: none;
  box-shadow: 0 2px 0 var(--ink);
}
.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.btn-primary {
  --btn-bg: var(--violet-600);
  --btn-fg: #fff;
}
.btn-primary:hover {
  --btn-bg: var(--violet-700);
}
.btn-ghost {
  --btn-bg: var(--paper);
}
.btn-butter {
  --btn-bg: var(--butter);
}
.btn-sm {
  min-height: 40px;
  padding: 0.5em 1em;
  font-size: 0.9375rem;
  border-width: 2px;
  box-shadow: 0 3px 0 var(--ink);
}
.btn-sm:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

/* ——— Pastilles ———————————————————————————————————————————————————————— */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.75em;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}
.chip--beta {
  background: var(--ink);
  color: #fff;
}
/* La pastille Bêta de l'éditeur de jeux, dans l'app : ambre pâle, discrète. */
.chip--amber {
  background: #fdf0c8;
  color: var(--amber-ink);
  box-shadow: inset 0 0 0 1.5px #f3d27a;
}

/* ——— En-tête ———————————————————————————————————————————————————————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-logo {
  display: block;
  flex: none;
  border-radius: 10px;
}
.site-logo img {
  width: 148px;
  height: auto;
}
.site-nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}
.site-nav a {
  padding: 0.45em 0.85em;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--lav-200);
}
.site-header__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }
  .site-header__end {
    margin-left: 8px;
  }
  .site-logo img {
    width: 164px;
  }
}

/* ——— Pied de page ——————————————————————————————————————————————————— */
.site-footer {
  position: relative;
  background: var(--ink);
  color: #d9d1ee;
  padding: 56px 0 40px;
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: grid;
  gap: 28px;
}
.site-footer__brand img {
  width: 170px;
}
.site-footer__brand p {
  margin-top: 12px;
  max-width: 30ch;
  color: #b8aed3;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.site-footer a:hover {
  color: var(--butter);
}
.site-footer__legal {
  color: #a59cc2;
  font-size: 0.8438rem;
}
@media (min-width: 820px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
  .site-footer nav {
    justify-content: flex-end;
  }
  .site-footer__legal {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* ——— Pages de texte : aide, confidentialité ———————————————————————— */
.page {
  background:
    radial-gradient(60rem 26rem at 85% -6rem, rgba(185, 163, 245, 0.35), transparent 70%),
    linear-gradient(180deg, var(--lav-100) 0, var(--paper) 22rem);
}
.page-hero {
  padding: 28px 0 8px;
}
.page-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
}
.page-hero__lapin {
  width: clamp(96px, 22vw, 168px);
  flex: none;
  margin-bottom: -18px;
}
.prose {
  max-width: 44rem;
  padding: 28px 0 72px;
}
.prose > * + * {
  margin-top: 0.9rem;
}
.prose h2 {
  margin-top: 2.6rem;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.prose ul {
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: 0.35rem;
}
.prose .updated {
  color: var(--muted);
  font-size: 0.875rem;
}
.prose hr {
  margin: 3rem 0 1.5rem;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose footer {
  color: var(--muted);
  font-size: 0.875rem;
}
.prose .back {
  display: none;
}
.mail-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0.4rem 0 0.6rem;
  padding: 0.85em 1.25em;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--piece);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.mail-card:hover {
  color: var(--ink);
  background: var(--butter-100);
}

/* ——— Avatar de joueur : le lapin de l'app sur sa couleur ——————————— */
.avatar {
  position: relative;
  /* Flex et non grid, comme dans l'app : le 85 % de hauteur du lapin ne se résout
     que contre la hauteur définie d'un conteneur flex. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--c, #10b981);
  box-shadow:
    0 0 0 2px #fff,
    inset 0 -3px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.avatar img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: invert(1) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  /* Le lapin occupe 85 % de la pastille et doit s'arrêter à SON cercle (50 / 85),
     même quand la pastille laisse déborder une couronne. */
  clip-path: circle(58.82% at 50% 50%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ——— Politique de confidentialité : le lapin veille, le texte ne bouge pas ——— */
.page-main {
  position: relative;
}
.page-deco {
  display: none;
}
@media (min-width: 980px) {
  .page-deco {
    position: absolute;
    top: 36px;
    right: 0;
    display: block;
    width: 210px;
  }
}

/* ——— Pages courtes : partage d'une partie, page introuvable ——————————— */
.solo {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(34rem 24rem at 10% 0%, rgba(125, 211, 252, 0.32), transparent 70%),
    radial-gradient(30rem 26rem at 100% 40%, rgba(249, 168, 212, 0.3), transparent 70%),
    linear-gradient(180deg, var(--lav-100), var(--paper));
}
.solo__main {
  display: grid;
  place-items: center;
  padding: 24px 0 56px;
}
.solo__card {
  width: min(100%, 26rem);
  text-align: center;
}
.solo__lapin {
  width: min(62vw, 230px);
  margin: 0 auto 10px;
}
.solo__card h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 2.75rem);
}
.solo__card p {
  margin-top: 12px;
  color: var(--ink-soft);
}
.solo__card .btn {
  width: 100%;
  margin-top: 26px;
}
.solo__note {
  font-size: 0.9375rem;
  color: var(--muted) !important;
}
.solo__note a {
  font-weight: 700;
}
[hidden] {
  display: none !important;
}
