/* script/mini_jeux.css : habillage commun des mini-jeux « Le juste prix » et « Memory » (pages/jeu_prix.php, pages/jeu_memory.php),
   d'après la maquette de serge du 06/11/2026. Couleurs prises dans script/theme.css (--mf-accent, --mf-gold, --mf-ombre). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,700;1,500&display=swap');
.jp { --jp-acc: var(--mf-accent, #A0582A); --jp-encre: #3b2418; --jp-creme: #fbf6ef; --jp-ligne: #e7dccd;
      max-width: 1180px; margin: 0 auto; padding: 8px 0 48px; color: var(--jp-encre); }
.jp-serif { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; }
.jp-tete { text-align: center; margin: 24px 0 26px; }
.jp-sur { display: inline-flex; align-items: center; gap: 22px; color: var(--jp-acc); font-weight: 700; letter-spacing: .25em; font-size: .9rem; text-transform: uppercase; }
.jp-sur::before, .jp-sur::after, .jp-trait::after { content: ""; width: 54px; height: 1px; background: currentColor; opacity: .6; }
.jp-tete h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; margin: 6px 0 4px; line-height: 1.05; }
.jp-tete p { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.45rem); margin: 0; }
.jp-carte { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; background: #fff; border-radius: 18px; padding: 16px;
            box-shadow: var(--mf-ombre, 0 6px 20px rgba(0,0,0,.16)); }
.jp-photo { position: relative; border-radius: 12px; overflow: hidden; background: var(--jp-creme); aspect-ratio: 4 / 3; }   /* photos produits souvent carrées */
.jp-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.jp-badge { position: absolute; left: 22px; top: 20px; z-index: 1; background: #fbe9d6; color: var(--jp-encre); font-weight: 700; letter-spacing: .12em; font-size: .78rem;
            text-transform: uppercase; padding: 9px 22px; border-radius: 999px; }
.jp-corps { padding: 12px 40px 12px 0; }
.jp-trait { display: flex; align-items: center; gap: 18px; color: var(--jp-acc); font-weight: 700; letter-spacing: .2em; font-size: .8rem; text-transform: uppercase; }
.jp-trait::after { width: 150px; }
.jp-corps h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; margin: 6px 0 4px; line-height: 1.15; }
.jp-regle { margin: 0 0 18px; font-size: 1.05rem; }
.jp-essais { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; font-weight: 700; }
.jp-essais > span:first-child { min-width: 150px; }
.jp-rond { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--jp-acc); color: var(--jp-encre); font-weight: 600; }
.jp-rond.is-actuel { background: var(--jp-acc); color: #fff; }
.jp-rond.is-fait { background: #efe4d8; border-color: #cdb8a3; color: #8b7563; }
.jp-label { display: block; font-weight: 700; margin-bottom: 8px; }
.jp-champ { display: flex; border: 1.5px solid #cdbca8; border-radius: 10px; overflow: hidden; background: #fff; }
.jp-champ input { flex: 1; min-width: 0; border: 0; padding: 12px 26px; font: inherit; font-size: 1.15rem; outline: none; }
.jp-champ span { display: grid; place-items: center; width: 58px; border-left: 1.5px solid #cdbca8; font-weight: 700; font-size: 1.15rem; }
.jp-champ:focus-within { border-color: var(--jp-acc); box-shadow: 0 0 0 3px rgba(160, 88, 42, .25); }
.jp-valider { width: 100%; margin-top: 18px; min-height: 52px; border: 0; border-radius: 999px; background: var(--jp-acc); color: #fff; font: inherit;
              font-weight: 700; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; }
.jp-valider[hidden] { display: none; }
.jp-valider:hover { background: var(--mf-accent-hover, #874A22); color: #fff; }
.jp-valider:focus-visible { outline: 3px solid var(--jp-encre); outline-offset: 2px; }
.jp-aide { display: flex; align-items: center; gap: 14px; margin: 14px 0 0 8px; font-size: .95rem; }
.jp-aide[hidden] { display: none; }
.jp-aide i { color: var(--mf-gold, #D9A55B); font-size: 1.1rem; }
.jp-historique { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.jp-historique li { padding: 7px 14px; border-radius: 10px; background: var(--jp-creme); font-weight: 600; }
.jp-msg { margin: 14px 0 0; font-weight: 700; }
.jp-msg:empty { display: none; }
.jp-msg.is-gagne { color: #1e7b34; } .jp-msg.is-perdu { color: #b3261e; }
.jp-etapes { display: flex; justify-content: center; flex-wrap: wrap; margin: 22px 0 18px; }
.jp-etapes > div { display: flex; align-items: center; gap: 18px; padding: 4px 44px; font-weight: 700; font-size: 1.1rem; }
.jp-etapes > div + div { border-left: 1.5px solid var(--jp-ligne); }
.jp-etapes i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #f0e6da; color: var(--jp-encre); font-size: 1.05rem; }
.jp-cagnotte { display: flex; align-items: center; gap: 28px; max-width: 704px; margin: 0 auto; padding: 14px 30px; border: 1.5px solid var(--mf-gold, #D9A55B);
               border-radius: 14px; background: linear-gradient(90deg, #fffaf1, #fbf0dc); }
.jp-cagnotte > i { font-size: 2rem; color: var(--mf-gold, #D9A55B); padding-right: 28px; border-right: 1.5px solid #e6cf9f; }
.jp-cagnotte strong { display: block; font-size: 1.5rem; font-weight: 800; }
.jp-cagnotte a { color: inherit; font-weight: 700; }
.jp-resume { display: flex; gap: 16px; align-items: center; max-width: 704px; margin: 22px auto 0; padding: 14px; background: #fff; border-radius: 14px;
             box-shadow: var(--mf-ombre, 0 6px 20px rgba(0,0,0,.16)); color: inherit; text-decoration: none; }
.jp-resume[hidden] { display: none; }
.jp-resume img { width: 90px; height: 90px; object-fit: contain; border-radius: 10px; background: var(--jp-creme); flex: none; }
.jp-resume > span { display: grid; gap: 4px; }
.jp-resume-prix { font-size: 1.2rem; font-weight: 800; }
.jp-resume-lien { font-weight: 700; color: var(--jp-acc); }
.jp-resume:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .24); color: inherit; }
.jp-suite { text-align: center; margin: 34px 0 18px; }
.jp-suite h2 { display: inline-flex; align-items: center; gap: 30px; font-style: italic; font-weight: 500; font-size: 1.6rem; margin: 0; }
.jp-suite h2::before, .jp-suite h2::after { content: ""; width: 120px; height: 1px; background: #c9b8a5; }
.jp-jeux { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.jp-jeu { display: flex; align-items: center; gap: 24px; padding: 18px 30px; background: #fff; border-radius: 14px; box-shadow: var(--mf-ombre, 0 6px 20px rgba(0,0,0,.16));
          color: inherit; text-decoration: none; }
.jp-jeu:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .24); color: inherit; }
.jp-jeu-icone { flex: none; width: 104px; height: 72px; display: grid; place-items: center; }
.jp-jeu-icone img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }   /* images découpées dans la maquette (fond crème fondu dans le blanc) */
.jp-jeu strong { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.jp-jeu .fa-arrow-right { margin-left: auto; color: var(--jp-acc); font-size: 1.3rem; }
@media (max-width: 900px) {
    .jp-carte { grid-template-columns: 1fr; gap: 18px; }
    .jp-photo { width: 100%; max-width: 480px; margin: 0 auto; }   /* tablette : la photo ne prend plus toute la largeur */
    .jp-corps { padding: 0 12px 16px; }
    .jp-etapes > div { padding: 8px 18px; }
    .jp-etapes > div + div { border-left: 0; }
    .jp-jeux { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .jp-essais { gap: 12px; } .jp-essais > span:first-child { min-width: 0; flex: 1; }
    .jp-cagnotte { gap: 16px; padding: 12px 16px; } .jp-cagnotte > i { padding-right: 16px; }
    .jp-suite h2::before, .jp-suite h2::after { width: 30px; }
    .jp-jeu { padding: 14px 16px; gap: 14px; } .jp-jeu-icone { width: 76px; height: 54px; }
}
/* 06/11 : écran tactile : pas de mélange de couleurs sur les petites images (plus léger pour les tablettes) */
@media (pointer: coarse) { .jp-jeu-icone img { mix-blend-mode: normal; } }
