/* =========================================================================
   Point + Point · la page d'accueil
   Mobile d'abord. Les démos (cartes, dés, pétanque) restent lisibles sans JS ;
   elles ne s'animent que si le script tourne, et jamais pour qui a coupé les
   animations.
   ========================================================================= */

/* ——— Typographie de section ————————————————————————————————————————— */
.h2 {
  font-size: clamp(2.1rem, 1.25rem + 3.6vw, 3.9rem);
}
.lead {
  margin-top: 16px;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-soft);
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.eyebrow--dark {
  color: #cfc4f3;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  font-weight: 700;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ticks svg {
  width: 26px;
  height: 26px;
  flex: none;
  padding: 5px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.ticks--dark li {
  color: #ece6ff;
}

/* ——— Apparitions au défilement (activées par le script seulement) ——— */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ——— Téléphone ———————————————————————————————————————————————————— */
.phone {
  --w: 236px;
  position: relative;
  width: var(--w);
  aspect-ratio: 390 / 844;
  padding: calc(var(--w) * 0.036);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(160deg, #2c2148, #120d22 55%);
  box-shadow:
    0 0 0 2.5px var(--ink),
    inset 0 0 0 1.5px #4a3d70,
    0 34px 60px -28px rgba(46, 22, 104, 0.6);
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(var(--w) * 0.062);
  left: 50%;
  width: 30%;
  height: calc(var(--w) * 0.075);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #07040f;
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.125);
  background: var(--lav-100);
}
.phone__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.phone__shot.is-active {
  opacity: 1;
}
.phone--sm {
  --w: 208px;
}

/* ——— Autocollants (pièces de jeu qui flottent) ————————————————————— */
.sticker {
  position: absolute;
  z-index: 4;
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 8px 10px rgba(46, 22, 104, 0.18));
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .sticker {
    animation: flotte 6s ease-in-out infinite;
  }
  .sticker:nth-of-type(2n) {
    animation-duration: 7.5s;
    animation-delay: -2s;
  }
  .sticker:nth-of-type(3n) {
    animation-duration: 5.2s;
    animation-delay: -4s;
  }
}
@keyframes flotte {
  0%,
  100% {
    translate: 0 0;
    rotate: var(--rot, 0deg);
  }
  50% {
    translate: 0 -10px;
    rotate: calc(var(--rot, 0deg) + 6deg);
  }
}

/* ═══ 1. Ouverture ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 28px) 0 56px;
  background: linear-gradient(180deg, var(--lav-100) 0%, #fbf8ff 70%, var(--paper) 100%);
  overflow: hidden;
}
.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(34rem 24rem at 8% 6%, rgba(125, 211, 252, 0.36), transparent 70%),
    radial-gradient(30rem 26rem at 96% 30%, rgba(249, 168, 212, 0.34), transparent 70%),
    radial-gradient(40rem 22rem at 60% 100%, rgba(185, 163, 245, 0.32), transparent 70%);
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.85rem, 1.4rem + 7.4vw, 6.4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero__title-hl {
  color: var(--hat);
}
.squiggle {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  isolation: isolate;
}
.squiggle svg {
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: -0.02em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
}
.squiggle path {
  stroke-dasharray: 330;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .js .squiggle path {
    stroke-dashoffset: 330;
    animation: trace 0.9s 0.35s cubic-bezier(0.6, 0, 0.3, 1) forwards;
  }
}
@keyframes trace {
  to {
    stroke-dashoffset: 0;
  }
}
.hero__lead {
  margin-top: 22px;
  max-width: 31rem;
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.35rem);
  color: var(--ink-soft);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
@media (max-width: 599px) {
  .hero__cta .btn {
    flex: 1 1 auto;
  }
}
.hero__hint {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  max-width: 30rem;
  font-size: 0.9688rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.js .hero__hint {
  display: flex;
}
.hero__hint svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.hero__visual {
  position: relative;
}
.hero__stage {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__lapin {
  position: relative;
  z-index: 1;
  width: 218px;
  margin-bottom: -26px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__lapin {
    animation: coucou 4.8s ease-in-out infinite;
    transform-origin: 50% 100%;
  }
}
@keyframes coucou {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  40% {
    translate: 0 -6px;
    rotate: -2deg;
  }
  70% {
    translate: 0 -2px;
    rotate: 1.5deg;
  }
}
.hero__phone {
  --w: 232px;
  z-index: 2;
}
.hero__steps {
  display: flex;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.hero__steps li {
  padding: 0.25em 0.8em;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition:
    background-color 0.3s,
    color 0.3s;
}
.hero__steps li.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}
.sticker--de {
  --rot: -14deg;
  top: 56px;
  left: 2%;
  width: 62px;
  height: 62px;
}
.sticker--carte {
  --rot: 12deg;
  top: 150px;
  right: 1%;
  width: 66px;
  height: 66px;
}
.sticker--meeple {
  --rot: -8deg;
  bottom: 120px;
  left: 0;
}
.sticker--etincelle {
  --rot: 0deg;
  top: 6px;
  right: 16%;
  width: 40px;
  height: 40px;
}
.sticker--pion {
  --rot: 8deg;
  bottom: 70px;
  right: 3%;
  width: 54px;
  height: 54px;
}

@media (min-width: 720px) {
  .hero__lapin {
    width: 250px;
    margin-bottom: -30px;
  }
  .hero__phone {
    --w: 262px;
  }
  .sticker--de {
    left: 4%;
  }
  .sticker--meeple {
    left: 6%;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding: calc(var(--header-h) + 40px) 0 72px;
  }
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 24px;
  }
  .hero__lapin {
    width: 268px;
    margin-bottom: -32px;
  }
  .hero__phone {
    --w: 284px;
  }
}

/* ——— Le défilé des jeux ——————————————————————————————————————————— */
.ticker {
  position: relative;
  z-index: 2;
  margin: -14px -12px 0;
  padding: 14px 0;
  overflow: hidden;
  background: var(--butter);
  border-block: 2.5px solid var(--ink);
  rotate: -1.6deg;
}
.ticker__track {
  display: flex;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker__track {
    animation: defile 38s linear infinite;
  }
}
.ticker span {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ticker span::after {
  content: "";
  width: 0.9em;
  height: 0.9em;
  margin: 0 0.9em;
  background: var(--violet-600);
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}
@keyframes defile {
  to {
    transform: translateX(-50%);
  }
}

/* ═══ 2. Range le crayon ═════════════════════════════════════════════ */
.crayon {
  padding: 96px 0 88px;
  background:
    linear-gradient(transparent 31px, rgba(108, 75, 214, 0.08) 32px) 0 0 / 100% 32px,
    var(--paper);
}
.crayon__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.swaps {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.swaps li {
  display: grid;
  gap: 2px;
  padding-left: 18px;
  border-left: 3px solid var(--lav-300);
}
.swaps s {
  position: relative;
  justify-self: start;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.swaps s::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 56%;
  height: 3px;
  border-radius: 3px;
  background: #4a4458;
  rotate: -1.5deg;
  transform-origin: left center;
}
.swaps span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}
.reveal-on .swaps s::after {
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.3, 1);
}
.reveal-on .swaps span {
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal-on .swaps.is-in s::after {
  transform: scaleX(1);
}
.reveal-on .swaps.is-in span {
  opacity: 1;
  transform: none;
}
.swaps li:nth-child(1) s::after { transition-delay: 0.25s; }
.swaps li:nth-child(1) span { transition-delay: 0.55s; }
.swaps li:nth-child(2) s::after { transition-delay: 0.65s; }
.swaps li:nth-child(2) span { transition-delay: 0.95s; }
.swaps li:nth-child(3) s::after { transition-delay: 1.05s; }
.swaps li:nth-child(3) span { transition-delay: 1.35s; }
.swaps li:nth-child(4) s::after { transition-delay: 1.45s; }
.swaps li:nth-child(4) span { transition-delay: 1.75s; }

.crayon__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  padding-left: 96px;
}
.crayon__lapin {
  position: absolute;
  z-index: 3;
  left: max(0px, calc(50% - 230px));
  bottom: -6px;
  width: 200px;
}
.crayon__phone {
  --w: 212px;
  rotate: 4deg;
}
.crayon__tag {
  position: absolute;
  z-index: 4;
  right: max(0px, calc(50% - 200px));
  top: 18px;
  padding: 0.35em 0.8em;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--butter);
  box-shadow: var(--piece);
  font-weight: 700;
  font-size: 1.125rem;
  rotate: -6deg;
}
@media (min-width: 900px) {
  .crayon__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .crayon__visual {
    min-height: 520px;
  }
  .crayon__lapin {
    width: 250px;
  }
  .crayon__phone {
    --w: 246px;
  }
}

/* ═══ 3. La bibliothèque ═════════════════════════════════════════════ */
.jeux {
  position: relative;
  padding: 92px 0 72px;
  background:
    radial-gradient(50rem 30rem at 50% 115%, rgba(185, 163, 245, 0.45), transparent 70%),
    var(--lav-100);
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.section-head__lapin {
  width: 96px;
  flex: none;
}
@media (max-width: 719px) {
  .section-head:has(.section-head__lapin) {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.section-head--center {
  justify-content: center;
  text-align: center;
}
.section-head--center .lead {
  margin-inline: auto;
}
@media (min-width: 720px) {
  .section-head {
    gap: 28px;
  }
  .section-head__lapin {
    width: 170px;
  }
}

.hand {
  display: flex;
  gap: 14px;
  margin: 18px 0 0;
  padding: 34px 16px 42px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hand::-webkit-scrollbar {
  display: none;
}
.hand__slot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  rotate: calc(var(--r) * 0.18);
}

.gcard {
  appearance: none;
  display: block;
  width: 168px;
  height: 240px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  perspective: 1000px;
  -webkit-tap-highlight-color: transparent;
  border-radius: 18px;
}
.gcard__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 1.35, 0.5, 1);
}
.gcard[aria-pressed="true"] .gcard__inner {
  transform: rotateY(180deg);
}
.gcard__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--ink);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}
.gcard__front {
  align-items: center;
  padding: 16px 14px 14px;
  background:
    radial-gradient(circle at 50% 38%, var(--tint) 0 30%, transparent 31%),
    var(--paper);
  text-align: center;
}
.gcard__index {
  position: absolute;
  top: 9px;
  left: 11px;
  display: grid;
  justify-items: center;
  line-height: 1;
  color: var(--tint-ink);
}
.gcard__index b {
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}
.gcard__index small {
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 700;
}
.gcard__index--bas {
  top: auto;
  left: auto;
  right: 11px;
  bottom: 9px;
  rotate: 180deg;
}
.gcard__glyph {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-top: 10px;
}
.gcard__glyph img {
  width: 82px;
  height: 82px;
  border-radius: 20px;
}
.gcard__name {
  margin-top: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.gcard__tagline {
  margin-top: 6px;
  padding: 0 2px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}
.gcard__back {
  padding: 18px 16px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07) 0 2px, transparent 3px) 0 0 / 14px 14px,
    linear-gradient(160deg, #33245c, var(--ink));
  transform: rotateY(180deg);
}
.gcard__back-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--butter);
}
.gcard__facts {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.gcard__facts span {
  position: relative;
  padding-left: 16px;
}
.gcard__facts span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  background: var(--tint-ink);
  background: color-mix(in srgb, var(--tint-ink) 55%, #fff);
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}
.gcard__stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
  rotate: -12deg;
}
.gcard.is-seen .gcard__stamp {
  background: var(--mint);
}
.gcard:focus-visible {
  outline-offset: 6px;
}

@media (min-width: 900px) {
  .hand {
    justify-content: center;
    gap: 0;
    padding: 70px 0 96px;
    overflow: visible;
  }
  .hand__slot {
    margin-inline: -36px;
    rotate: none;
    transform: translateY(var(--y)) rotate(var(--r));
    transform-origin: 50% 130%;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .hand__slot:hover,
  .hand__slot:focus-within {
    z-index: 5;
    transform: translateY(calc(var(--y) - 42px)) rotate(calc(var(--r) * 0.35)) scale(1.07);
  }
  .gcard {
    width: 140px;
    height: 204px;
  }
  .gcard__glyph {
    width: 72px;
    height: 72px;
    margin-top: 6px;
  }
  .gcard__glyph img {
    width: 64px;
    height: 64px;
  }
  .gcard__name {
    font-size: 1rem;
  }
  .gcard__tagline {
    font-size: 0.75rem;
  }
}
@media (min-width: 1100px) {
  .hand__slot {
    margin-inline: -34px;
  }
  .gcard {
    width: 156px;
    height: 226px;
  }
  .gcard__glyph {
    width: 88px;
    height: 88px;
  }
  .gcard__glyph img {
    width: 78px;
    height: 78px;
  }
  .gcard__name {
    font-size: 1.0625rem;
  }
  .gcard__tagline {
    font-size: 0.8125rem;
  }
}
@media (min-width: 1300px) {
  .hand__slot {
    margin-inline: -31px;
  }
  .gcard {
    width: 164px;
    height: 236px;
  }
}

.jeux__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
}
.jeux__count {
  display: none;
  padding: 0.2em 0.8em;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.js .jeux__count {
  display: inline-block;
}

/* ═══ 4. La démo : une course aux dés ════════════════════════════════ */
.essai {
  padding: 96px 0;
  background: var(--paper);
  overflow: hidden;
}
.essai__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
.essai__lapin {
  display: none;
  width: 190px;
  margin-top: 26px;
}
.essai__table {
  position: relative;
  padding: 26px 14px;
}
.table-felt {
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--ink);
  border-radius: 36px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(rgba(15, 107, 68, 0.12) 1px, transparent 1.5px) 0 0 / 7px 7px,
    var(--mint);
  box-shadow: 0 8px 0 var(--ink);
  rotate: -1.5deg;
}
.game {
  position: relative;
  max-width: 400px;
  margin-inline: auto;
  padding: 18px 14px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--lav-100), var(--paper) 60%);
  box-shadow: 0 6px 0 var(--ink);
}
.game__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
}
.game__title {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.game__round {
  padding: 0.2em 0.75em;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.game__players {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  /* Les cartes se réordonnent : sans cela, Chrome fait défiler la page pour suivre
     celle qui bouge (ancrage du défilement), et la course déplace tout l'écran. */
  overflow-anchor: none;
}
.pcard {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 16px 12px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow:
    0 1px 2px rgba(30, 20, 51, 0.06),
    0 6px 16px -10px rgba(30, 20, 51, 0.25);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}
.pcard .avatar {
  width: 40px;
  height: 40px;
}
.pcard.is-turn {
  background: #d5f5e6;
  box-shadow:
    inset 0 0 0 2px #34c98a,
    0 6px 16px -10px rgba(15, 107, 68, 0.4);
}
.pcard__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.pcard__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.pcard__crown {
  width: 18px;
  height: 18px;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.4) rotate(-20deg);
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.pcard.is-leader .pcard__crown {
  opacity: 1;
  transform: none;
}
.pcard__chips {
  display: flex;
  gap: 4px;
  min-height: 20px;
}
.pcard__chips span {
  padding: 0.05em 0.5em;
  border-radius: 999px;
  background: #d9f6e7;
  color: var(--mint-ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.pcard__score {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pcard__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 4px;
  border-radius: 4px;
  background: rgba(30, 20, 51, 0.07);
  overflow: hidden;
}
.pcard__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--c);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pcard__delta {
  position: absolute;
  right: 14px;
  top: -10px;
  padding: 0.1em 0.55em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--butter);
  font-size: 0.875rem;
  font-weight: 700;
  pointer-events: none;
  animation: delta 1.1s ease forwards;
}
@keyframes delta {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1.1);
  }
  70% {
    opacity: 1;
    transform: translateY(-6px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px);
  }
}

.game__dice {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 22px 0 18px;
}
.die {
  --s: 58px;
  width: var(--s);
  height: var(--s);
  perspective: 500px;
}
.die__cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(24deg);
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.25, 1.04);
}
.die .f {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 9px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #efe7ff);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.die i {
  width: 10px;
  height: 10px;
  place-self: center;
  border-radius: 50%;
  background: var(--ink);
}
.die .f1 { transform: translateZ(calc(var(--s) / 2)); }
.die .f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.die .f3 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.die .f4 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.die .f2 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.die .f5 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.die .f1 i { grid-area: 2 / 2; width: 13px; height: 13px; background: var(--violet-600); }
.die .f2 i:nth-child(1) { grid-area: 1 / 1; }
.die .f2 i:nth-child(2) { grid-area: 3 / 3; }
.die .f3 i:nth-child(1) { grid-area: 1 / 1; }
.die .f3 i:nth-child(2) { grid-area: 2 / 2; }
.die .f3 i:nth-child(3) { grid-area: 3 / 3; }
.die .f4 i:nth-child(1) { grid-area: 1 / 1; }
.die .f4 i:nth-child(2) { grid-area: 1 / 3; }
.die .f4 i:nth-child(3) { grid-area: 3 / 1; }
.die .f4 i:nth-child(4) { grid-area: 3 / 3; }
.die .f5 i:nth-child(1) { grid-area: 1 / 1; }
.die .f5 i:nth-child(2) { grid-area: 1 / 3; }
.die .f5 i:nth-child(3) { grid-area: 2 / 2; }
.die .f5 i:nth-child(4) { grid-area: 3 / 1; }
.die .f5 i:nth-child(5) { grid-area: 3 / 3; }
.die .f6 i:nth-child(1) { grid-area: 1 / 1; }
.die .f6 i:nth-child(2) { grid-area: 2 / 1; }
.die .f6 i:nth-child(3) { grid-area: 3 / 1; }
.die .f6 i:nth-child(4) { grid-area: 1 / 3; }
.die .f6 i:nth-child(5) { grid-area: 2 / 3; }
.die .f6 i:nth-child(6) { grid-area: 3 / 3; }

.game__roll {
  width: 100%;
}
.game__roll.is-waiting {
  animation: appel 1.6s ease-in-out infinite;
}
@keyframes appel {
  0%,
  100% {
    box-shadow: var(--piece), 0 0 0 0 rgba(108, 75, 214, 0.45);
  }
  50% {
    box-shadow: var(--piece), 0 0 0 10px rgba(108, 75, 214, 0);
  }
}
.game__status {
  min-height: 1.6em;
  margin-top: 10px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.game__end {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(250, 246, 255, 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  text-align: center;
}
.game__end[hidden] {
  display: none;
}
.game__end-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-600);
}
.game__end-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.game__end-list {
  display: grid;
  gap: 8px;
  width: min(100%, 280px);
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
}
.game__end-list li {
  display: grid;
  grid-template-columns: 28px auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 4px 12px -8px rgba(30, 20, 51, 0.3);
  font-weight: 700;
  text-align: left;
}
.game__end-list .rang {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lav-200);
  font-size: 0.8125rem;
}
.game__end-list .rang--1 {
  background: var(--gold);
}
.game__end-list .avatar {
  width: 30px;
  height: 30px;
}
.game__end-list .pts {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) {
  .essai__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }
  .essai__lapin {
    display: block;
  }
  .essai__table {
    padding: 44px 40px;
  }
}

/* ═══ 5. La mesure pétanque (le seul écran sombre de l'app) ══════════ */
.petanque {
  position: relative;
  padding: 100px 0 96px;
  color: #fff;
  background: radial-gradient(125% 78% at 50% 0%, #1c1435 0%, #0e0b16 52%, #08070c 100%);
  overflow: hidden;
}
.petanque__glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(164, 151, 234, 0.18), transparent);
  pointer-events: none;
}
.petanque .lead {
  color: #cfc4f3;
}
.petanque__grid {
  position: relative;
  display: grid;
  gap: 44px;
  align-items: center;
}
.terrain-wrap {
  position: relative;
}
.petanque__lapin {
  display: block;
  width: 128px;
  margin: 26px 0 0 auto;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}
.terrain {
  position: relative;
  aspect-ratio: 100 / 70;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #b9a37f;
  box-shadow:
    0 0 0 1.5px rgba(164, 151, 234, 0.45),
    0 0 0 8px #0c0a12,
    0 0 0 9.5px rgba(164, 151, 234, 0.3),
    0 30px 60px -20px rgba(0, 0, 0, 0.7);
  touch-action: none;
}
.terrain__sol,
.terrain__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.terrain__svg {
  overflow: visible;
}
.boule {
  cursor: grab;
  outline: none;
}
.boule:active {
  cursor: grabbing;
}
.boule .halo {
  fill: transparent;
}
.boule:focus-visible .focus {
  stroke: #fff;
  stroke-width: 2.5px;
  stroke-dasharray: 4 3;
}
.terrain .trait {
  stroke: #fff;
  stroke-width: 2px;
  stroke-linecap: round;
  fill: none;
}
.terrain .trait--ombre {
  stroke: rgba(12, 10, 18, 0.55);
  stroke-width: 4.5px;
}
.terrain .etiquette rect {
  fill: rgba(12, 10, 18, 0.78);
}
.terrain .etiquette text {
  fill: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 3.05px;
  letter-spacing: -0.02px;
}
.terrain .rang text {
  font-family: var(--font);
  font-weight: 700;
  font-size: 2.5px;
  fill: #0c0a12;
}
.verdict {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #15111f;
  box-shadow: inset 0 0 0 1.5px rgba(164, 151, 234, 0.45);
}
.verdict__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.verdict.is-serre .verdict__title {
  color: var(--butter);
}
.verdict__detail {
  margin-top: 4px;
  color: #cfc4f3;
}
.verdict__teams {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b8aed3;
}
.team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.team::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid var(--team);
  background: radial-gradient(circle at 35% 30%, #fff, #9aa3b2 60%, #4b5261);
}
.team--a {
  --team: #38bdf8;
}
.team--b {
  --team: #f87171;
}
.terrain__hint {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #a59cc2;
}
@media (min-width: 960px) {
  .petanque__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
  }
  .petanque__lapin {
    width: 200px;
    margin: 34px 0 0 40px;
  }
}

/* ═══ 6. Après la partie ═════════════════════════════════════════════ */
.apres {
  padding: 100px 0 90px;
  background: linear-gradient(180deg, var(--lav-100), var(--paper));
}
.apres__grid {
  display: flex;
  gap: 18px;
  margin: 44px -16px 0;
  padding: 10px 16px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.apres__grid::-webkit-scrollbar {
  display: none;
}
.apres__item {
  flex: 0 0 min(78vw, 300px);
  margin: 0;
  scroll-snap-align: center;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
}
.apres__item figcaption {
  max-width: 19rem;
  text-align: center;
  color: var(--ink-soft);
}
.apres__item figcaption b {
  color: var(--ink);
}
.share-card {
  position: relative;
  width: 208px;
  aspect-ratio: 390 / 844;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  border: 2.5px solid var(--ink);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 30%, var(--lav-200), transparent 70%),
    var(--paper);
  box-shadow: 0 6px 0 var(--ink);
}
.share-card__lapin {
  width: 150px;
}
.share-card__qr {
  width: 116px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
}
@media (min-width: 900px) {
  .apres__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .apres__item--mid {
    translate: 0 36px;
  }
  .phone--sm,
  .share-card {
    --w: 228px;
    width: 228px;
  }
}

/* ═══ 7. Les outils ══════════════════════════════════════════════════ */
.outils {
  padding: 96px 0;
  background: var(--paper);
}
.outils__grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 22px 24px;
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 6px 0 var(--ink);
}
.tool__lapin {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: -6px 0 6px;
}
.tool h3 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.tool p {
  color: var(--ink-soft);
}
.tool blockquote {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--butter-100);
  font-weight: 700;
  rotate: -1.2deg;
}
.tool__link {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 700;
}
.timer {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-top: 8px;
  padding: 0;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.timer:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.timer__ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: conic-gradient(var(--violet-600) calc(var(--p) * 360deg), var(--lav-200) 0);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
  mask: radial-gradient(circle, transparent 60%, #000 61%);
}
.timer__value {
  position: relative;
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.timer__label {
  position: relative;
  margin-top: -18px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.timer.is-done {
  animation: secoue 0.5s ease 2;
}
@keyframes secoue {
  0%,
  100% {
    rotate: 0deg;
  }
  25% {
    rotate: -8deg;
  }
  75% {
    rotate: 8deg;
  }
}
@media (min-width: 900px) {
  .outils__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
  .tool:nth-child(2) {
    translate: 0 26px;
  }
}

/* ═══ 8. Créer son jeu ═══════════════════════════════════════════════ */
.creer {
  padding: 40px 0 96px;
  background: var(--paper);
}
.creer__card {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 28px 24px;
  border: 2.5px solid var(--ink);
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.7), transparent 40%),
    var(--butter-100);
  box-shadow: 0 7px 0 var(--ink);
}
.creer__lapin {
  width: 190px;
  justify-self: center;
}
.creer__text .h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
}
.creer__text p {
  margin-top: 14px;
  max-width: 36rem;
  color: var(--ink-soft);
}
.creer__text .creer__note {
  font-size: 0.9375rem;
  color: var(--amber-ink);
  font-weight: 600;
}
@media (min-width: 820px) {
  .creer__card {
    grid-template-columns: auto 1fr;
    gap: 40px;
    padding: 36px 48px;
  }
  .creer__lapin {
    width: 240px;
  }
}

/* ═══ 9. Confiance ═══════════════════════════════════════════════════ */
.confiance {
  padding: 96px 0;
  background:
    radial-gradient(40rem 26rem at 10% 50%, rgba(141, 224, 173, 0.28), transparent 70%),
    var(--lav-50);
}
.confiance__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.confiance__lapin {
  width: min(64vw, 300px);
  justify-self: center;
}
.trust {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.trust li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trust__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
}
.trust__icon svg {
  width: 22px;
  height: 22px;
}
.trust li:nth-child(1) .trust__icon { background: var(--mint-100); }
.trust li:nth-child(2) .trust__icon { background: var(--lav-200); }
.trust li:nth-child(3) .trust__icon { background: #e0f2fe; }
.trust li:nth-child(4) .trust__icon { background: var(--butter-100); }
.trust p {
  color: var(--ink-soft);
}
.trust b {
  color: var(--ink);
}
.confiance__link {
  margin-top: 24px;
  font-weight: 700;
}
@media (min-width: 900px) {
  .confiance__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
  .confiance__lapin {
    width: 340px;
  }
}

/* ═══ 10. Fin de partie, et la bêta ═════════════════════════════════ */
.finale {
  position: relative;
  padding: 100px 0 110px;
  background:
    radial-gradient(40rem 30rem at 85% 20%, rgba(249, 168, 212, 0.32), transparent 70%),
    radial-gradient(44rem 30rem at 10% 90%, rgba(125, 211, 252, 0.28), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--lav-100));
  overflow: hidden;
}
.finale__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 64px;
  align-items: center;
}
.finale__podium {
  display: none;
  text-align: center;
}
.js .finale__podium {
  display: block;
}
.finale__podium .eyebrow {
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--violet-600);
}
.finale__title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
}
.finale__text {
  max-width: 30rem;
  margin: 14px auto 0;
  color: var(--ink-soft);
}
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.podium__slot {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(30%, 132px);
  transition: order 0s;
}
.podium__slot[data-place="1"] {
  order: 2;
}
.podium__slot[data-place="2"] {
  order: 1;
}
.podium__slot[data-place="3"] {
  order: 3;
}
.avatar--lg {
  width: 58px;
  height: 58px;
  overflow: visible;
}
.avatar--crayon {
  background: var(--c);
}
.avatar--crayon svg {
  width: 56%;
  height: 56%;
}
.podium__crown {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 30px;
  height: 30px;
  color: var(--gold);
  translate: -50% 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.podium__slot.is-first .podium__crown {
  opacity: 1;
}
.podium__name {
  font-weight: 700;
  font-size: 0.9688rem;
}
.podium__score {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.podium__step {
  display: grid;
  place-items: start center;
  width: 100%;
  height: 64px;
  padding-top: 10px;
  border: 2.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--pink);
  font-size: 1.5rem;
  font-weight: 700;
  transition: height 0.6s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.podium__slot[data-rank="1"] .podium__step {
  height: 128px;
  background: var(--violet-600);
  color: #fff;
}
.podium__slot[data-rank="2"] .podium__step {
  height: 92px;
  background: var(--lav-300);
}
.podium::after {
  content: "";
}
.finale__cta {
  position: relative;
  text-align: center;
}
.finale__lapin {
  width: 180px;
  margin: 0 auto 18px;
}
/* Le lapin qui salue, assis sur le bord du pied de page. */
.site-footer__lapin {
  position: absolute;
  z-index: 3;
  top: -96px;
  right: max(16px, calc(50% - 560px));
  width: 84px;
}
.finale__cta .lead {
  margin-inline: auto;
}
/* La bêta : un chemin par téléphone. iPhone en un lien (TestFlight), Android en deux
   étapes (groupe Google, puis test fermé de Google Play). */
.beta {
  display: grid;
  gap: 14px;
  max-width: 30rem;
  margin: 26px auto 0;
  text-align: left;
}
.beta__carte {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--ink);
}
.beta__os {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-600);
}
.beta__btn {
  width: 100%;
}
.beta__note {
  font-size: 0.9375rem;
  color: var(--muted);
}
.beta__qr {
  display: none;
}
/* Le QR ne sert qu'à qui lit la page sur un ordinateur : sur le téléphone, on tape. */
@media (min-width: 960px) and (hover: hover) {
  .beta__qr {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    border-top: 1.5px dashed var(--line);
    font-size: 0.9375rem;
    color: var(--ink-soft);
  }
  .beta__qr svg {
    width: 96px;
    flex: none;
    padding: 8px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: #fff;
  }
}
.beta__etapes {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.beta__etapes li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  counter-increment: etape;
}
.beta__etapes li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
}
.beta__etapes a {
  font-weight: 700;
}
.finale__small {
  max-width: 30rem;
  margin: 18px auto 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (min-width: 960px) {
  .finale__grid {
    grid-template-columns: 1fr 1fr;
  }
  .finale__lapin {
    width: 230px;
  }
  .site-footer__lapin {
    top: -118px;
    width: 104px;
  }
}

/* ═══ La partie du site : la pastille de score ══════════════════════ */
.scorepill-wrap {
  position: relative;
  display: none;
}
.js .scorepill-wrap {
  display: block;
}
.scorepill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 10px 0 5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}
.scorepill:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.scorepill__side {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.avatar--sm {
  width: 28px;
  height: 28px;
  overflow: visible;
}
.scorepill__crown {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 18px;
  height: 18px;
  color: var(--gold);
  translate: -50% 0;
  opacity: 0;
  transform: scale(0.3);
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.scorepill.is-leading .scorepill__crown {
  opacity: 1;
  transform: none;
}
.scorepill__name {
  font-size: 0.875rem;
  font-weight: 700;
}
.scorepill__score {
  min-width: 1.4em;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.scorepill__sep {
  width: 1.5px;
  height: 20px;
  background: var(--line);
}
.scorepill__side--lapin .scorepill__score {
  color: var(--muted);
}
.scorepill.is-bump .scorepill__side:first-child {
  animation: bump 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes bump {
  40% {
    transform: scale(1.18);
  }
}
.scorepop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: min(320px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--ink), 0 24px 40px -20px rgba(30, 20, 51, 0.4);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.scorepop[hidden] {
  display: none;
}
.scorepop__title {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}
.scorepop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.scorepop__actions .btn {
  padding-inline: 0.85em;
}
.header-cta {
  display: none;
}
@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Le « +3 » qui vole jusqu'à la pastille. */
.flychip {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  padding: 0.15em 0.6em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--butter);
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
  pointer-events: none;
  will-change: transform, opacity;
}

.toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: 0.7em 1.2em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 14px 30px -12px rgba(30, 20, 51, 0.6);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast:empty {
  display: none;
}

@media (max-width: 400px) {
  .scorepill {
    height: 38px;
    gap: 6px;
    padding: 0 9px 0 4px;
  }
  .avatar--sm {
    width: 25px;
    height: 25px;
  }
  .site-logo img {
    width: 128px;
  }
}
