/* Lucky Thumb — site
   Langage visuel repris du jeu : contour encre épais, aplats francs, ombres d'autocollant pleines (sans flou). */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1d1530;       /* le contour des personnages */
  --clover: #8be04e;    /* le trèfle de la marque */
  --clover-deep: #74cc3a;
  --vault: #3a2a55;     /* le musée la nuit */
  --gold: #ffc93c;      /* le butin */
  --alarm: #ff4d5e;     /* le voleur rouge, la sirène */
  --tile: #f3e3c3;      /* le carrelage du musée */
  --paper: #ffffff;
  --sticker: 6px 6px 0 var(--ink);
  --sticker-sm: 4px 4px 0 var(--ink);
  --line: 3px solid var(--ink);
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Bricolage", ui-rounded, system-ui, sans-serif;
  font-size: 1.125rem; line-height: 1.55; font-weight: 430; font-stretch: 100%;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Boutons : autocollants qu'on enfonce ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .55em;
  font: inherit; font-weight: 750; font-stretch: 88%; font-size: 1.15rem; line-height: 1;
  color: var(--ink); background: var(--gold); text-decoration: none; cursor: pointer;
  padding: .85em 1.3em; border: var(--line); border-radius: 999px; box-shadow: var(--sticker-sm);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 1em; height: 1em; }
.btn--big { font-size: 1.35rem; padding: .95em 1.5em; }
.btn--white { background: var(--paper); }

/* ---------- En-tête ---------- */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 82%; font-size: 1.35rem; letter-spacing: -.01em; }
.brand svg { width: 40px; height: 40px; }
.top .btn { font-size: 1rem; padding: .7em 1.1em; }

/* ---------- Hero : la page commence par une partie ---------- */
.hero { background: var(--clover); border-bottom: var(--line); position: relative; overflow: hidden; }
.hero .print { position: absolute; right: -180px; top: -120px; width: 820px; height: auto; color: var(--clover-deep); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 28px 72px; }
.hero h1 {
  margin: 0; font-weight: 800; font-stretch: 75%; letter-spacing: -.025em;
  font-size: clamp(3.6rem, 8.6vw, 8.4rem); line-height: .86;
}
.hero h1 span { display: block; }
.hero .lede { max-width: 26rem; margin: 28px 0 0; font-size: 1.25rem; line-height: 1.5; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero .facts li { font-weight: 650; font-stretch: 90%; font-size: .98rem; background: var(--paper); border: var(--line); border-radius: 999px; padding: .32em .85em; }

.stage { margin: 0; }
.stage__board {
  position: relative; background: var(--tile); border: 4px solid var(--ink); border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink); overflow: hidden; touch-action: none; aspect-ratio: 4 / 3;
  transform: rotate(1.2deg);
}
.stage canvas { width: 100%; height: 100%; cursor: crosshair; }
.stage__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; min-height: 52px; }
.stage__say { margin: 0; font-weight: 650; font-stretch: 92%; font-size: 1.15rem; line-height: 1.3; }
.stage__again { font: inherit; font-weight: 650; font-size: 1rem; background: none; border: 0; padding: 6px 2px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; color: var(--ink); }
.stage .btn { display: none; }
.stage.is-won .btn { display: inline-flex; }

/* ---------- Le jeu ---------- */
.game { background: var(--vault); color: var(--paper); border-bottom: var(--line); }
.game .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding-block: 96px; }
.game__art { position: relative; }
.game__art img { width: 100%; height: auto; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 #120c1f; transform: rotate(-2deg); }
.game__art .tag {
  position: absolute; right: -14px; top: -22px; transform: rotate(6deg);
  background: var(--alarm); color: var(--paper); border: var(--line); border-radius: 14px; box-shadow: var(--sticker-sm);
  font-weight: 800; font-stretch: 80%; font-size: 1.35rem; padding: .3em .7em; line-height: 1.1;
}
.game h2 { margin: 0; font-weight: 800; font-stretch: 75%; font-size: clamp(3rem, 6vw, 5.2rem); line-height: .9; letter-spacing: -.02em; color: var(--gold); }
.game p { max-width: var(--measure); margin: 22px 0 0; font-size: 1.2rem; color: #e9e2f7; }
.game ul { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: var(--measure); }
.game li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; font-size: 1.08rem; color: #f4f0fb; }
.game li svg { width: 52px; height: 52px; }
.game .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 38px; }
.game .cta a:not(.btn) { color: #e9e2f7; font-weight: 600; }

/* ---------- L'étagère : même métaphore que la vitrine du jeu ---------- */
.shelf .wrap { padding-block: 96px 88px; }
.shelf__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }
.shelf h2 { margin: 0; font-weight: 800; font-stretch: 75%; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .92; letter-spacing: -.02em; }
.shelf__head p { margin: 0; max-width: 24rem; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; padding: 26px; background: var(--tile); border: var(--line); border-radius: 30px; }
.slot { position: relative; border: var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--sticker-sm); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.slot__pic { aspect-ratio: 63 / 50; display: grid; place-items: center; border-bottom: var(--line); background: #e9dcc0; }
.slot__pic img { width: 100%; height: 100%; object-fit: cover; }
.slot__pic b { font-weight: 800; font-stretch: 75%; font-size: 5rem; line-height: 1; color: #c9b88f; }
.slot__txt { padding: 14px 16px 16px; }
.slot__txt strong { display: block; font-weight: 750; font-stretch: 88%; font-size: 1.25rem; line-height: 1.2; }
.slot__txt span { color: #5b5170; font-size: 1rem; }
a.slot:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
a.slot { transition: transform .1s ease, box-shadow .1s ease; }
.slot--locked { background: #faf4e6; box-shadow: none; border-style: dashed; }
.slot--locked .slot__pic { background: transparent; border-bottom-style: dashed; }

/* ---------- Qui ---------- */
.who { border-top: var(--line); background: var(--gold); }
.who .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 72px; align-items: start; }
.who h2 { margin: 0; font-weight: 800; font-stretch: 75%; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: .95; letter-spacing: -.02em; }
.who p { margin: 0 0 14px; max-width: var(--measure); }
.who .mail { font-weight: 750; font-stretch: 90%; font-size: 1.3rem; }

.foot { background: var(--ink); color: #cfc6e4; font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Pages simples ---------- */
.doc .wrap { max-width: 44rem; padding-block: 40px 80px; }
.doc h1 { font-weight: 800; font-stretch: 75%; font-size: clamp(2.6rem, 6vw, 4rem); line-height: .95; letter-spacing: -.02em; margin: 24px 0 28px; }
.doc h2 { font-weight: 750; font-stretch: 88%; font-size: 1.35rem; margin: 34px 0 8px; }
.doc p { margin: 0 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .game .wrap, .who .wrap { grid-template-columns: 1fr; }
  .hero .wrap { gap: 36px; padding-block: 12px 56px; }
  .hero .print { width: 560px; right: -220px; top: -60px; }
  .stage__board { transform: rotate(.6deg); }
  .game .wrap { gap: 48px; padding-block: 72px; }
  .slots { grid-template-columns: 1fr 1fr; }
  .slots .slot:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 1.05rem; }
  .top .btn span { display: none; }
  .slots { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .stage__bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .stage__board, .game__art img { transform: none; }
}
