/* Landing : « Essaie, c'est elle qui joue » (démo jouable en 4 temps), les 3 étapes, et les idées par personne. Même langage que la
   landing : crème, rouge corail, menthe, or, bord encre, ombre dure, Fredoka pour les titres. */
.jx { padding: 40px 0 96px; background: var(--creme); color: var(--encre); }
.jx__tete { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.jx__tete .titre { color: var(--corail); }
.jx__tete .intro { margin: 10px auto 0; font: 500 18px/1.5 var(--f-texte); color: var(--encre); }
.jx__grille { display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .jx__grille { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }

/* les 4 temps */
.jx__etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: jx; }
.jx__etape { counter-increment: jx; }
.jx__etape button {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: center; text-align: left;
  min-height: 76px; padding: 12px 16px; background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--encre); cursor: pointer; font: inherit;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s cubic-bezier(.34, 1.56, .64, 1), background-color .2s;
}
.jx__etape button::before {
  content: counter(jx); grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--creme); border: 2px solid var(--encre); font: 700 22px/1 var(--f-titre);
}
.jx__etape b { font: 700 20px/1.15 var(--f-titre); }
.jx__etape span { font: 500 15px/1.4 var(--f-texte); color: #3B4A46; }
.jx__etape button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.jx__etape button[aria-current="step"] { background: var(--or); }
.jx__etape button[aria-current="step"]::before { background: var(--corail); color: var(--blanc); }
.jx__etape.est-fait button::before { content: "✓"; background: var(--menthe); color: var(--blanc); }
.jx__etape button:focus-visible { outline: 3px solid var(--corail); outline-offset: 3px; }
.jx__note { margin: 18px 4px 0; font: 600 15px/1.5 var(--f-texte); color: var(--menthe-fonce); }

/* le téléphone */
.jx__tel {
  position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 9 / 18.5; max-width: 100%;
  background: var(--encre); border-radius: 46px; padding: 12px; box-shadow: 10px 10px 0 var(--corail);
}
.jx__tel::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 22px; margin-left: -46px; background: var(--encre); border-radius: 99px; z-index: 3; }
.jx__ecran { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: #FFE9D6; }
.jx__vue { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 52px 18px 20px; gap: 10px; text-align: center; }
.jx__vue[hidden] { display: none; }
.jx__vue h3 { margin: 0; font: 700 23px/1.15 var(--f-titre); }
.jx__vue p { margin: 0; font: 500 14.5px/1.4 var(--f-texte); }
.jx__petit { font-size: 13px !important; color: #55635F; }
.jx__mascotte { width: 92px; height: auto; }
.jx__vue--code { background: linear-gradient(#FFE9D6, #FFD4BE); }
.jx__vue--jeu { background: linear-gradient(#CFEFEA, #9FDDD4); }
.jx__vue--gratte { background: linear-gradient(#FFF1C9, #F6D98A); }
.jx__vue--reponse { background: linear-gradient(#FFE1E6, #FFC6CF); }

/* le code */
.jx__cases { display: flex; gap: 8px; margin: 4px 0 2px; }
.jx__cases span { display: grid; place-items: center; width: 46px; height: 54px; border: 2px solid var(--encre); border-radius: 12px; background: var(--blanc); font: 700 26px/1 var(--f-titre); }
.jx__cases.est-bon span { background: var(--menthe); color: var(--blanc); }
.jx__cases.est-faux { animation: jx-tremble .4s; }
.jx__pave { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; margin-top: 4px; }
.jx__pave button {
  height: 52px; border: 2px solid var(--encre); border-radius: 14px; background: var(--blanc); box-shadow: 2px 2px 0 var(--encre);
  font: 700 22px/1 var(--f-titre); color: var(--encre); cursor: pointer;
}
.jx__pave button:active { transform: translate(2px, 2px); box-shadow: none; }
.jx__pave button:focus-visible, .jx__reacts button:focus-visible, .jx__rejouer:focus-visible { outline: 3px solid var(--corail); outline-offset: 2px; }
.jx__pave .jx__vide { visibility: hidden; }

/* le jeu */
.jx__score { font: 700 20px/1 var(--f-titre) !important; }
.jx__terrain { position: relative; width: 100%; flex: 1; overflow: hidden; border-radius: 22px; border: 2px dashed rgba(27, 42, 39, .25); touch-action: manipulation; }
.jx__cadeau {
  position: absolute; top: 0; left: 0; width: 58px; height: 58px; padding: 0; border: 0; background: none; cursor: pointer;
  will-change: transform; -webkit-tap-highlight-color: transparent;
}
.jx__cadeau svg { width: 100%; height: 100%; filter: drop-shadow(2px 3px 0 rgba(27, 42, 39, .35)); }
.jx__cadeau.est-pris { animation: jx-pris .35s forwards; pointer-events: none; }
.jx__panier { width: 84px; height: auto; }

/* la carte à gratter */
.jx__carte { position: relative; width: 100%; max-width: 280px; aspect-ratio: 4 / 3; border: 2px solid var(--encre); border-radius: 20px; overflow: hidden; background: var(--blanc); box-shadow: 4px 4px 0 var(--encre); }
.jx__dessous { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; padding: 14px; }
.jx__dessous small { font: 800 11.5px/1 var(--f-texte); letter-spacing: .12em; text-transform: uppercase; color: var(--menthe-fonce); }
.jx__dessous strong { font: 700 25px/1.15 var(--f-titre); color: var(--corail); }
.jx__carte canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.jx__carte.est-revele canvas { opacity: 0; transition: opacity .5s; pointer-events: none; }

/* la réponse */
.jx__reacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.jx__reacts button {
  min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px solid var(--encre); border-radius: 16px; background: var(--blanc); box-shadow: 3px 3px 0 var(--encre);
  font: 700 14px/1.1 var(--f-texte); color: var(--encre); cursor: pointer;
}
.jx__reacts button i { font-style: normal; font-size: 24px; }
.jx__bulle {
  width: 100%; padding: 12px 14px; border: 2px solid var(--encre); border-radius: 16px 16px 16px 4px; background: var(--blanc);
  text-align: left; font: 600 14.5px/1.4 var(--f-texte); box-shadow: 3px 3px 0 var(--encre);
}
.jx__bulle small { display: block; margin-bottom: 4px; font: 800 11px/1 var(--f-texte); letter-spacing: .1em; text-transform: uppercase; color: var(--menthe-fonce); }
.jx__rejouer {
  min-height: 48px; padding: 0 20px; border: 2px solid var(--encre); border-radius: 99px; background: var(--corail); color: var(--blanc);
  box-shadow: 3px 3px 0 var(--encre); font: 700 16px/1 var(--f-titre); cursor: pointer;
}

/* confettis du téléphone */
.jx__confetti { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; z-index: 4; }

@keyframes jx-tremble { 0%, 100% { transform: none; } 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
@keyframes jx-pris { to { transform: var(--jx-t) scale(1.6); opacity: 0; } }
@keyframes jx-entre { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .jx__vue:not([hidden]) { animation: jx-entre .45s cubic-bezier(.34, 1.56, .64, 1); } }
@media (prefers-reduced-motion: reduce) { .jx__etape button, .jx__cases.est-faux, .jx__cadeau.est-pris { transition: none; animation: none; } }

/* Comment ça marche : les 3 étapes, sur le fond nuit du « Silence, on tourne » */
.cine__etapes { list-style: none; margin: 46px 0 0; padding: 30px 0 0; border-top: 1px solid var(--trait-nuit); display: grid; gap: 26px; counter-reset: ce; }
@media (min-width: 860px) { .cine__etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; } }
.cine__etapes li { counter-increment: ce; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 6px 16px; align-content: start; }
.cine__etapes li::before {
  content: counter(ce); grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--or); color: var(--encre); font: 700 26px/1 var(--f-titre);
}
.cine__etapes b { font: 700 22px/1.15 var(--f-titre); color: var(--creme); }
.cine__etapes p { margin: 0; font: 500 15.5px/1.55 var(--f-texte); color: #C9D2CF; }

/* Pour qui ? des idées concrètes */
.idees { padding: 30px 0 90px; background: var(--creme); }
.idees__tete { text-align: center; margin-bottom: 30px; }
.idees__tete .titre { color: var(--corail); }
.idees__tete .intro { margin: 10px auto 0; max-width: 620px; font: 500 18px/1.5 var(--f-texte); }
.idees__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 640px) { .idees__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .idees__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.idee a {
  height: 100%; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--encre);
  background: var(--blanc); border: 2px solid var(--encre); border-radius: 22px; box-shadow: 5px 5px 0 var(--encre);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s cubic-bezier(.34, 1.56, .64, 1);
}
.idee a:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--encre); }
.idee a:focus-visible { outline: 3px solid var(--corail); outline-offset: 4px; }
.idee img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--encre); }
.idee__corps { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; flex: 1; }
.idee__pour { font: 800 13.5px/1.2 var(--f-texte); letter-spacing: .1em; text-transform: uppercase; color: var(--menthe-fonce); }
.idee__corps strong { font: 700 21px/1.15 var(--f-titre); }
.idee__corps span:last-child { font: 500 15px/1.45 var(--f-texte); color: #3B4A46; }
@media (prefers-reduced-motion: reduce) { .idee a { transition: none; } }

/* sous la promesse : ce que c'est, en une phrase, et le prix */
.vt-sous { position: relative; z-index: 3; margin: 8px 0 0; max-width: 440px; font: 600 18px/1.5 var(--f-texte); color: var(--blanc); }
/* Le prix : blanc, assez grand pour se lire d'un coup d'œil sur le rouge (Koda, 23/11 : l'orangé ne se lisait pas). */
.vt-prix { position: relative; z-index: 3; margin: 6px 0 0; font: 800 18px/1.4 var(--f-texte); color: var(--blanc); }
.vt-prix b { color: var(--creme); }
/* Téléphone : la phrase et le prix passent sous le bouton (en haut, la mascotte les recouvrait). */
@media (max-width: 899px) {
  .vt-action .vt-sous { order: 4; text-align: center; margin: 4px auto 0; }
  .vt-action .vt-prix { order: 3; text-align: center; }
  .vt-action .vt-moment { order: 1; }
  .vt-action .vt-cta { order: 2; }
}
@media (min-width: 900px) { .vt-sous, .vt-prix { text-align: right; } }

/* La consigne du moment, dans le téléphone (bas de l'écran) : on la voit en jouant, même sur un petit écran. */
.jx__bandeau {
  position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 9px 12px;
  background: var(--encre); color: var(--creme); border-radius: 14px; font: 600 13.5px/1.35 var(--f-texte); text-align: center;
}
.jx__bandeau:empty { display: none; }
.jx__vue { padding-bottom: 64px; }
/* Sur téléphone : les 4 temps deviennent une rangée de pastilles ; seul le temps en cours garde son texte. */
@media (max-width: 959px) {
  .jx__etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .jx__etape button { grid-template-columns: 1fr; justify-items: center; min-height: 64px; padding: 8px 4px; text-align: center; box-shadow: 3px 3px 0 var(--encre); }
  .jx__etape button::before { grid-row: auto; width: 38px; height: 38px; font-size: 19px; }
  .jx__etape b { font-size: 14px; }
  .jx__etape span { display: none; }
  .jx__note { display: none; }
}
