/* Parcours Vote et Boutique : pseudo du joueur, choix, récapitulatif. */
.parcours .centre { max-width: 1160px; align-items: stretch; text-align: left; justify-content: flex-start; gap: clamp(18px, 2.4vh, 26px); padding-top: 18px; }
.tete-p { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.tete-p > div:first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.parcours .logo-p { width: clamp(130px, 13vw, 180px); }
.parcours .titre-page { margin: 0; font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.parcours .phrase { margin: 0; text-wrap: pretty; }

.joueur { flex: 0 1 380px; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: var(--beige-clair); color: var(--prune); box-shadow: 0 8px 0 var(--beige), 0 16px 24px rgba(20, 5, 20, .4); }
.tete-mc { flex: none; width: 72px; height: 72px; border-radius: 14px; background: var(--beige); overflow: hidden; display: grid; place-items: center; }
.tete-mc img { width: 100%; height: 100%; image-rendering: pixelated; }
.tete-mc svg { width: 40px; height: 40px; color: var(--prune); }
.joueur-champ { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.joueur label { font-weight: 900; font-size: .95rem; }
.joueur input { width: 100%; min-height: 44px; padding: 0 10px; border: 2px solid var(--beige); border-radius: 10px; background: #fff; color: var(--prune); font: 900 1.15rem var(--texte); }
.joueur input:focus { outline: 3px solid var(--rose-profond); outline-offset: 1px; }
.joueur.erreur input { border-color: var(--rose-profond); }
.joueur small { font-weight: 700; font-size: .85rem; min-height: 1.2em; }
.joueur.erreur small { color: var(--rose-profond); font-weight: 900; }

.boite { padding: clamp(16px, 2vw, 24px); border-radius: 22px; background: rgba(42, 10, 34, .86); }
.boite h2 { margin: 0 0 12px; font-weight: 1000; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.1; color: #fff; }
.boite h2 span { color: var(--rose); }

/* Vote */
.avancement { display: flex; flex-direction: column; gap: 6px; font-weight: 900; }
.barre { height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.barre i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--bleu); transition: width .3s ease; }
.parcours .sites { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); padding: 0 0 8px; }
.parcours .site { position: relative; text-align: center; align-items: center; cursor: pointer; }
.parcours .site.fait { background: var(--bleu); box-shadow: 0 9px 0 var(--bleu-fonce), 0 18px 26px rgba(20, 5, 20, .45); }
.parcours .note { max-width: none; margin: 0; }

/* Boutique */
.commande { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 24px); align-items: start; }
.parcours .packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; padding: 0 0 8px; }
.parcours .packs li { display: block; flex: none; padding: 0; background: none; box-shadow: none; }
.pack { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; height: 100%; min-height: 150px; padding: 14px 8px; border: 0; border-radius: 20px; background: var(--beige-clair); color: var(--prune); font-family: var(--texte); cursor: pointer; box-shadow: 0 8px 0 var(--beige); transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease; }
.pack:hover { transform: translateY(-2px); }
.pack img { width: 40px; height: 40px; image-rendering: pixelated; }
.pack b { font-weight: 1000; font-size: 1.1rem; }
.pack span { font-weight: 700; font-size: .92rem; }
.pack strong { font-weight: 1000; font-size: 1.7rem; line-height: 1.15; color: var(--rose-profond); }
.pack[aria-pressed="true"] { background: var(--rose); box-shadow: 0 8px 0 var(--rose-profond); }
.pack[aria-pressed="true"] strong { color: var(--prune); }
.ligne-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid rgba(255, 255, 255, .2); font-weight: 800; }
.ligne-total strong { font-weight: 1000; font-size: 1.9rem; color: var(--rose); }
.champ-c { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; font-weight: 800; }
.champ-c input[type="email"], .champ-c input[type="text"] { width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--beige-clair); color: var(--prune); font: 800 1rem var(--texte); }
.ligne-code { display: flex; gap: 8px; }
.ligne-code input { flex: 1; min-width: 0; }
.ligne-code button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--bleu); color: var(--prune); font: 900 1rem var(--texte); cursor: pointer; }
.info-c { min-height: 1.3em; font-size: .92rem; color: var(--bleu); font-weight: 700; }
.case { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-weight: 700; font-size: .96rem; line-height: 1.35; cursor: pointer; }
.case input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--rose); }
.case a { color: var(--bleu); font-weight: 800; }
.parcours .gros { width: 100%; margin: 10px 0 12px; min-height: 92px; text-align: center; }
.gros[disabled] { background: #cdbcc6; box-shadow: 0 10px 0 #93808c; cursor: not-allowed; transform: none; }
.parcours .trois { align-self: center; }
@media (prefers-reduced-motion: reduce) { .pack, .barre i, .retour { transition: none; } }

/* Retour à l'accueil, en haut de page */
.retour { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(42, 10, 34, .86); color: #fff; font-weight: 900; text-decoration: none; transition: background-color .15s ease; }
.retour:hover { background: var(--prune); }
.retour svg { width: 20px; height: 20px; }
.logo-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* Sélection des packs : une échelle de rareté */
.commande { display: flex; flex-wrap: wrap; align-items: stretch; }
.commande > .boite { min-width: 0; }
.commande > .boite:first-child { flex: 3 1 520px; }
.commande > .boite:last-child { flex: 2 1 340px; }
.parcours .packs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.parcours .packs li { grid-column: span 2; }
.parcours .packs li:nth-last-child(-n+2) { grid-column: span 3; }
.pack { --teinte: #929292; position: relative; justify-content: center; gap: 2px; min-height: 196px; padding: 22px 10px 16px; overflow: hidden; }
.pack::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: var(--teinte); }
.pack img { width: 56px; height: 56px; }
.pack b { font-size: 1.15rem; }
.pack strong { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.1; color: var(--prune); }
.pack-credits { font-weight: 900 !important; font-size: 1.05rem !important; }
.pack-bonus { padding: 1px 9px; border-radius: 999px; background: var(--prune); color: #fff; font-weight: 900 !important; font-size: .86rem !important; }
.pack-coche { position: absolute; top: 18px; right: 12px; display: none; width: 30px; height: 30px; border-radius: 50%; background: var(--prune); color: #fff; font: 900 1.05rem/30px var(--texte); text-align: center; }
.pack:hover { box-shadow: 0 10px 0 var(--teinte); }
.pack[aria-pressed="true"] { background: #fff; outline: 4px solid var(--rose); outline-offset: 0; box-shadow: 0 8px 0 var(--rose-profond), 0 0 28px rgba(248, 165, 194, .7); transform: translateY(-3px); }
.pack[aria-pressed="true"] .pack-coche { display: block; }
.pack[aria-pressed="true"] strong { color: var(--rose-profond); }
.rang-rare { --teinte: #38b7a0; }
.rang-epique { --teinte: #b455c9; }
.rang-legendaire { --teinte: #f2574a; }
.rang-divin { --teinte: #d29e27; }
.rang-divin:not([aria-pressed="true"]) { background: #fbeec2; }
@media (max-width: 620px) {
  .parcours .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parcours .packs li, .parcours .packs li:nth-last-child(-n+2) { grid-column: auto; }
  .parcours .packs li:last-child { grid-column: 1 / -1; }
}

/* En-tête : logo centré, retour à l'accueil dans le coin */
.tete-p { flex-direction: column; align-items: center; }
.tete-p > div:first-child { flex: none; align-items: center; }
.parcours .logo-p { width: clamp(170px, 18vw, 240px); }
.retour { position: absolute; top: 14px; left: max(14px, env(safe-area-inset-left, 0px)); z-index: 7; }
.joueur { flex: none; width: min(100%, 460px); }

/* Packs : le prix et les crédits, rien d'autre */
.pack { min-height: 170px; gap: 6px; padding: 18px 10px; }
.pack::before { display: none; }
.pack img { width: 48px; height: 48px; }
.pack:hover { box-shadow: 0 10px 0 var(--beige); }
.parcours .packs { grid-auto-rows: 1fr; }
.pack-coche { top: 10px; }

/* Quatre boutons en bas de chaque page */
.trois { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 860px); }
.p-wiki { background: var(--rose); color: var(--prune); box-shadow: 0 7px 0 var(--rose-profond), 0 14px 22px rgba(20, 5, 20, .45); }
@media (max-width: 620px) {
  .trois { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .petit { flex-direction: row; gap: 8px; min-height: 64px; }
  .p-texte { align-items: flex-start; }
}

/* Boutons du bas : la page en cours est soulignée */
.petit[aria-current="page"] { outline: 3px solid #fff; outline-offset: 2px; }

/* Cartes de packs : les crédits en grand, le prix en bandeau */
.pack { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 0; padding: 18px 0 0; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 8px 0 var(--beige), 0 14px 22px rgba(20, 5, 20, .35); }
.pack:hover { transform: translateY(-3px); box-shadow: 0 11px 0 var(--beige), 0 18px 26px rgba(20, 5, 20, .4); }
.pack-montant { display: flex; align-items: center; justify-content: center; gap: 8px; padding-inline: 8px; }
.pack-montant img { flex: none; width: clamp(30px, 3vw, 40px); height: clamp(30px, 3vw, 40px); image-rendering: pixelated; }
.pack-montant b { font-weight: 1000; font-size: clamp(1.9rem, 3.3vw, 2.9rem); line-height: 1; letter-spacing: -.03em; color: var(--prune); white-space: nowrap; }
.pack-unite { font-weight: 800 !important; font-size: .92rem !important; color: var(--rose-profond); }
.pack-offert { margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--bleu); font-weight: 900 !important; font-size: .9rem !important; }
.pack-offert em { font-style: normal; color: var(--rose-profond); }
.pack-etiquette { position: absolute; top: 0; left: 0; padding: 3px 12px 4px; border-radius: 0 0 12px 0; background: var(--prune); color: #fff; font-weight: 900 !important; font-size: .8rem !important; }
.pack-prix { margin-top: auto; width: 100%; padding: 9px 8px 10px; background: var(--rose); color: var(--prune); font-weight: 1000 !important; font-size: clamp(1.3rem, 2vw, 1.6rem) !important; line-height: 1.1; }
.pack[aria-pressed="true"] { background: #fff; outline: 4px solid var(--rose-profond); outline-offset: -1px; box-shadow: 0 8px 0 var(--rose-profond), 0 0 30px rgba(248, 165, 194, .8); transform: translateY(-3px); }
.pack[aria-pressed="true"] .pack-prix { background: var(--rose-profond); color: #fff; }
.pack-coche { top: 8px; right: 8px; width: 26px; height: 26px; font-size: .95rem; line-height: 26px; }
.pack-max { background: var(--beige-clair); }
.pack-max .pack-montant b { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.pack-max .pack-montant img { width: clamp(38px, 4vw, 52px); height: clamp(38px, 4vw, 52px); }
.parcours .packs { grid-auto-rows: auto; }
@media (max-width: 620px) { .pack-montant b { font-size: clamp(1.7rem, 7.6vw, 2.4rem); } .pack-max .pack-montant b { font-size: 3rem; } }
.page-vide .centre { justify-content: center; }

.commande > .boite:first-child { display: flex; flex-direction: column; }
.parcours .packs { flex: 1; grid-auto-rows: 1fr; }
.parcours .packs li { display: flex; }
.pack-montant { margin-top: auto; }
.pack-prix { position: relative; }
.pack-unite { margin-bottom: 12px; }
.pack-coche { top: auto; bottom: 9px; right: 10px; background: #fff; color: var(--rose-profond); z-index: 1; }
/* Packs : le montant en CR, le prix en bandeau sombre, une échelle qui grandit */
.pack { background: var(--beige-clair); box-shadow: 0 8px 0 var(--beige), 0 14px 22px rgba(20, 5, 20, .35); padding-top: 0; }
.pack:hover { box-shadow: 0 11px 0 var(--beige), 0 18px 26px rgba(20, 5, 20, .4); }
.pack-montant { align-items: baseline; gap: 6px; margin-block: auto; padding: 18px 8px; }
.pack-montant u { text-decoration: none; font-weight: 1000; font-size: .5em; color: var(--rose-profond); }
.pack-montant { font-size: clamp(2rem, 3.2vw, 2.7rem); }
.pack-montant b { font-size: 1em; }
.parcours .packs li:nth-child(2) .pack-montant { font-size: clamp(2.1rem, 3.4vw, 2.9rem); }
.parcours .packs li:nth-child(3) .pack-montant { font-size: clamp(2.2rem, 3.6vw, 3.1rem); }
.parcours .packs li:nth-child(4) .pack-montant { font-size: clamp(2.6rem, 4.4vw, 3.8rem); }
.parcours .packs li:nth-child(5) .pack-montant { font-size: clamp(3rem, 5.2vw, 4.6rem); }
.pack-max .pack-montant b { font-size: 1em; }
.pack-prix { margin-top: 0; padding: 11px 8px 12px; background: var(--prune); color: #fff; }
.pack-max { background: var(--bleu); }
.pack-max:hover, .pack-max { box-shadow: 0 8px 0 var(--bleu-fonce), 0 14px 22px rgba(20, 5, 20, .35); }
.pack-offert { margin: -10px 0 14px; background: var(--prune); color: #fff; }
.pack-offert em { color: var(--rose); }
.pack[aria-pressed="true"] { background: var(--rose); outline: 4px solid #fff; outline-offset: 0; box-shadow: 0 8px 0 var(--rose-profond), 0 0 34px rgba(248, 165, 194, .85); }
.pack[aria-pressed="true"] .pack-montant u { color: var(--prune); }
.pack[aria-pressed="true"] .pack-prix { background: var(--rose-profond); color: #fff; }
@media (max-width: 620px) {
  .pack-montant, .parcours .packs li:nth-child(n) .pack-montant { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .parcours .packs li:last-child .pack-montant { font-size: 3.4rem; }
}
.parcours .packs li:nth-child(1) .pack-montant { font-size: clamp(2rem, 3.2vw, 2.7rem); }
.parcours .packs li:nth-child(5) .pack-montant { font-size: clamp(2.8rem, 4.6vw, 4rem); }
@media (max-width: 620px) {
  .parcours .packs li:nth-child(n) .pack-montant { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .parcours .packs li:last-child .pack-montant { font-size: 3.4rem; }
}
/* Packs : mêmes matières que le logo. Face rose en relief, chiffres épais, planche de bois devant le feuillage. */
.pack { --face-haut: #ffd3e3; --face-bas: #f8a5c2; --arete: #c5447a; --arete-nuit: #8a2a55; position: relative; isolation: isolate; gap: 0; padding: 0; overflow: hidden; border-radius: 24px; background: linear-gradient(180deg, var(--face-haut), var(--face-bas)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), inset 0 -3px 0 rgba(138, 42, 85, .25), 0 9px 0 var(--arete), 0 18px 24px rgba(15, 3, 12, .5); transition: transform .12s ease, box-shadow .12s ease, filter .15s ease; }
.pack::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 62px; background: url(/images/feuillage.webp) repeat-x center bottom / auto 100%; }
.pack:hover { transform: translateY(-4px); filter: brightness(1.04); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), inset 0 -3px 0 rgba(138, 42, 85, .25), 0 13px 0 var(--arete), 0 22px 28px rgba(15, 3, 12, .5); }
.pack:active { transform: translateY(6px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 3px 0 var(--arete), 0 6px 10px rgba(15, 3, 12, .5); }
.pack-max { --face-haut: #d6f8ff; --face-bas: #8fe3fb; --arete: #3f9dbd; --arete-nuit: #276f89; background: linear-gradient(180deg, var(--face-haut), var(--face-bas)); }
.pack-max:hover, .pack-max:active { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 13px 0 var(--arete), 0 22px 28px rgba(15, 3, 12, .5); }
.pack-max { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 9px 0 var(--arete), 0 0 26px rgba(177, 239, 254, .55), 0 18px 24px rgba(15, 3, 12, .5); }

.pack-montant { flex: 1; align-items: baseline; justify-content: center; gap: 5px; margin: 0; padding: 22px 6px 12px; }
.pack-montant b { color: #fff8ec; -webkit-text-stroke: .17em var(--prune); paint-order: stroke fill; text-shadow: 0 .09em 0 var(--prune); letter-spacing: -.01em; }
.pack-montant u { color: #fff8ec; -webkit-text-stroke: .2em var(--prune); paint-order: stroke fill; text-shadow: 0 .1em 0 var(--prune); font-size: .46em; }

.pack-prix { position: relative; align-self: center; width: calc(100% - 26px); margin: 0 0 13px; padding: 8px 6px 9px; border-radius: 13px; border: 3px solid #6b3419; color: #fff8ec; text-shadow: 0 2px 0 #5a2a13; font-size: clamp(1.25rem, 1.9vw, 1.55rem) !important; background: repeating-linear-gradient(90deg, rgba(90, 42, 19, .13) 0 2px, transparent 2px 19px), linear-gradient(180deg, #d9a56b 0 8%, #bd8650 8% 52%, #a8703e 52% 100%); box-shadow: inset 0 2px 0 rgba(255, 234, 196, .6), 0 4px 0 #6b3419, 0 7px 10px rgba(15, 3, 12, .35); }

.pack[aria-pressed="true"] { background: linear-gradient(180deg, var(--face-haut), var(--face-bas)); outline: 5px solid #fff; outline-offset: 1px; transform: translateY(-4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 9px 0 var(--arete), 0 0 0 9px rgba(248, 165, 194, .35), 0 0 40px rgba(255, 214, 230, .9); }
.pack[aria-pressed="true"] .pack-prix { background: repeating-linear-gradient(90deg, rgba(90, 42, 19, .13) 0 2px, transparent 2px 19px), linear-gradient(180deg, #d9a56b 0 8%, #bd8650 8% 52%, #a8703e 52% 100%); color: #fff8ec; }
.pack-coche { top: 9px; right: 9px; bottom: auto; width: 30px; height: 30px; border: 3px solid #fff; background: var(--prune); color: #fff; font-size: .95rem; line-height: 24px; z-index: 2; }
.pack[aria-pressed="true"] .pack-montant u { color: #fff8ec; }
.pack-offert { align-self: center; margin: -4px 0 10px; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .pack { transition: none; } }
@media (max-width: 620px) { .pack::after { height: 46px; } .pack-montant { padding: 20px 4px 10px; } }

.pack-montant { align-items: center; gap: 7px; }
.pack-montant b { letter-spacing: .025em; word-spacing: .08em; }
.pack-montant u { letter-spacing: .03em; }

/* Packs plus aérés : plus d'espace entre les cartes et autour des chiffres */
.parcours .packs { gap: clamp(20px, 2vw, 28px); padding-bottom: 14px; }
.parcours .centre { gap: clamp(22px, 2.8vh, 32px); }
.boite { padding: clamp(20px, 2.4vw, 32px); }
.boite h2 { margin-bottom: 20px; }
.pack { min-height: 196px; }
.pack-montant { padding: 30px 14px 20px; }
.pack-montant b { letter-spacing: .01em; word-spacing: -.06em; }
.parcours .packs li:nth-child(1) .pack-montant,
.parcours .packs li:nth-child(2) .pack-montant,
.parcours .packs li:nth-child(3) .pack-montant { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.parcours .packs li:nth-child(4) .pack-montant,
.parcours .packs li:nth-child(5) .pack-montant { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.pack-prix { width: calc(100% - 40px); margin-bottom: 18px; }
.trois { gap: clamp(14px, 1.8vw, 22px); margin-top: 8px; }
@media (max-width: 620px) {
  .parcours .packs { gap: 18px 14px; }
  .pack { min-height: 150px; }
  .pack-montant { padding: 24px 6px 14px; }
  .parcours .packs li:nth-child(n) .pack-montant { font-size: clamp(1.6rem, 6.4vw, 2rem); }
  .parcours .packs li:last-child .pack-montant { font-size: 2.8rem; }
  .pack-prix { width: calc(100% - 28px); margin-bottom: 16px; }
}
/* Mobile : cartes bien séparées, sélection dessinée à l'intérieur de la carte */
@media (max-width: 620px) {
  .parcours .packs { gap: 30px 20px; padding-bottom: 16px; }
  .boite { padding: 22px 18px; }
  .pack { min-height: 164px; }
  .pack-montant { padding: 30px 6px 18px; }
  .pack[aria-pressed="true"] { outline: 3px solid #fff; outline-offset: -6px; transform: none; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 9px 0 var(--arete), 0 0 16px rgba(255, 214, 230, .55); }
  .pack:hover { transform: none; }
  .pack-coche { top: 11px; right: 11px; width: 26px; height: 26px; line-height: 20px; }
}
/* Vote : même famille que les packs. Relief, chiffres épais, planche de bois devant le feuillage. */
.parcours .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 30px); padding-bottom: 14px; }
.parcours .site { --face-haut: #ffd3e3; --face-bas: #f8a5c2; --arete: #c5447a; position: relative; isolation: isolate; overflow: hidden; justify-content: flex-start; gap: 4px; min-height: 196px; padding: 26px 18px 18px; border-radius: 24px; background: linear-gradient(180deg, var(--face-haut), var(--face-bas)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), inset 0 -3px 0 rgba(138, 42, 85, .25), 0 9px 0 var(--arete), 0 18px 24px rgba(15, 3, 12, .5); }
.parcours .site::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 62px; background: url(/images/feuillage.webp) repeat-x center bottom / auto 100%; }
.parcours .site[href]:hover { background: linear-gradient(180deg, var(--face-haut), var(--face-bas)); filter: brightness(1.04); transform: translateY(-4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 13px 0 var(--arete), 0 22px 28px rgba(15, 3, 12, .5); }
.parcours .site[href]:active { transform: translateY(6px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 3px 0 var(--arete), 0 6px 10px rgba(15, 3, 12, .5); }
.parcours .site b { color: #fff8ec; font-weight: 1000; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.15; letter-spacing: .01em; -webkit-text-stroke: .17em var(--prune); paint-order: stroke fill; text-shadow: 0 .09em 0 var(--prune); }
.parcours .site .site-delai { padding: 2px 12px; border-radius: 999px; background: rgba(77, 16, 56, .9); color: #fff; font-weight: 800; font-size: .92rem; margin-top: 6px; }
.parcours .site .site-planche { margin-top: auto; width: min(100%, 280px); padding: 9px 8px 10px; border-radius: 13px; border: 3px solid #6b3419; color: #fff8ec; text-shadow: 0 2px 0 #5a2a13; font-weight: 1000; font-size: 1.3rem; line-height: 1.1; background: repeating-linear-gradient(90deg, rgba(90, 42, 19, .13) 0 2px, transparent 2px 19px), linear-gradient(180deg, #d9a56b 0 8%, #bd8650 8% 52%, #a8703e 52% 100%); box-shadow: inset 0 2px 0 rgba(255, 234, 196, .6), 0 4px 0 #6b3419, 0 7px 10px rgba(15, 3, 12, .35); }
.parcours .site.fait { --face-haut: #d6f8ff; --face-bas: #8fe3fb; --arete: #3f9dbd; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 9px 0 var(--arete), 0 18px 24px rgba(15, 3, 12, .5); }

.tes-votes { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; }
.tes-votes h2 { margin: 0; }
.av-nb { font-weight: 1000; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #fff8ec; -webkit-text-stroke: .14em var(--rose-profond); paint-order: stroke fill; }
.avancement { flex: 1 1 260px; min-width: 0; }
.barre { height: 22px; border-radius: 12px; padding: 3px; background: #1d0617; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6); }
.barre i { border-radius: 9px; background: linear-gradient(180deg, #d6f8ff, #8fe3fb); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: reduce) { .parcours .site { transition: none; } }
@media (max-width: 620px) {
  .parcours .sites { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .parcours .site { min-height: 176px; }
  .parcours .site[href]:hover { transform: none; }
}

/* Joueur connecté : pastille en haut à droite */
.compte { position: absolute; top: 12px; right: max(14px, env(safe-area-inset-right, 0px)); z-index: 7; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 28px); padding: 5px 6px 5px 6px; border-radius: 14px; background: rgba(42, 10, 34, .92); color: #fff; box-shadow: 0 6px 16px rgba(15, 3, 12, .45); }
.compte-tete { flex: none; width: 36px; height: 36px; border-radius: 9px; image-rendering: pixelated; background: var(--beige); }
.compte-nom { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: 1rem; }
.compte-sortir { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--rose); color: var(--prune); font: 900 .9rem var(--texte); cursor: pointer; }
.compte-sortir:hover { background: var(--rose-clair); }
.joueur { align-items: center; }
.joueur-champ { position: relative; }
.joueur-ok { min-height: 44px; margin-top: 6px; border: 0; border-radius: 10px; background: var(--prune); color: #fff; font: 900 1rem var(--texte); cursor: pointer; }
.joueur-ok:hover { background: #6b1a4f; }
.joueur small:empty { display: none; }
@media (max-width: 620px) {
  .connecte .centre { padding-top: 66px; }
  .compte { gap: 7px; padding: 4px; }
  .compte-tete { width: 34px; height: 34px; }
  .compte-nom { max-width: 92px; font-size: .92rem; }
  .compte-sortir { padding: 0 9px; font-size: .82rem; }
}
/* Accueil : tout tient dans le premier écran, le pied de page n'apparaît qu'en descendant */
html, body { overflow-x: clip; max-width: 100%; }
.scene:not(.page) { min-height: 100vh; min-height: 100lvh; }
.scene:not(.page) .centre { min-height: 100svh; flex: none; padding-top: 14px; padding-bottom: clamp(64px, 11svh, 130px); gap: clamp(10px, 1.9svh, 22px); }
.scene:not(.page) .logo { width: min(100%, 620px, calc((100svh - 500px) * 1.575)); min-width: 210px; }
.scene:not(.page) .gros { margin: 2px 0 10px; }
@media (max-width: 620px) {
  .scene:not(.page) .centre { padding-bottom: 58px; gap: 10px; }
  .scene:not(.page) .logo { width: min(100%, calc((100svh - 470px) * 1.575)); min-width: 190px; }
  .scene:not(.page) .gros { min-height: 94px; }
  .scene:not(.page) .trois { gap: 12px 10px; }
  .scene:not(.page) .petit { min-height: 54px; }
  .connecte .scene:not(.page) .centre { padding-top: 56px; }
  .connecte .scene:not(.page) .logo { width: min(100%, calc((100svh - 510px) * 1.575)); min-width: 170px; }
  .scene:not(.page) .masc { width: 74px; }
  .scene:not(.page) .parch { width: 70px; }
  .scene:not(.page) .feuilles { height: 56px; }
}

/* Badge de version sur le bouton de l'adresse */
.gros-version { position: absolute; top: -13px; right: -8px; padding: 4px 13px 5px; border-radius: 999px; background: var(--bleu); color: var(--prune); font-weight: 1000; font-size: clamp(.92rem, 1.4vw, 1.1rem); line-height: 1.1; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 4px 0 var(--bleu-fonce), 0 7px 12px rgba(20, 5, 20, .4); transform: rotate(3deg); }
.gros.copie .gros-version { background: var(--prune); color: #fff; box-shadow: 0 4px 0 #1a0515; }
@media (max-width: 620px) { .gros-version { right: -4px; } }
/* Séries de vote : une piste de jalons, et le podium du mois */
.serie-texte { margin: -8px 0 22px; color: #fff; font-weight: 700; }
.serie-piste { position: relative; list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.serie-piste::before { content: ""; position: absolute; left: 10%; right: 10%; top: 42px; height: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(90, 42, 19, .2) 0 2px, transparent 2px 22px), linear-gradient(180deg, #d9a56b, #a8703e); box-shadow: 0 3px 0 #6b3419; }
.serie-piste li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.serie-piste b { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; color: #fff8ec; font-weight: 1000; font-size: 2.3rem; line-height: 1; -webkit-text-stroke: .15em var(--prune); paint-order: stroke fill; background: linear-gradient(180deg, #ffd3e3, #f8a5c2); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 7px 0 #c5447a, 0 12px 18px rgba(15, 3, 12, .4); }
.serie-piste small { margin-top: 10px; color: #fff; font-weight: 800; font-size: .95rem; }
.serie-piste span { padding: 3px 12px; border-radius: 999px; background: var(--bleu); color: var(--prune); font-weight: 1000; font-size: 1.05rem; white-space: nowrap; }
.serie-max b { background: linear-gradient(180deg, #d6f8ff, #8fe3fb); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 7px 0 #3f9dbd, 0 0 26px rgba(177, 239, 254, .6); }

.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); align-items: end; }
.podium li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px 8px; border-radius: 20px; text-align: center; color: var(--prune); background: var(--beige-clair); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .8), 0 7px 0 var(--beige); }
.podium .p1 { min-height: 170px; background: linear-gradient(180deg, #ffd3e3, #f8a5c2); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 7px 0 #c5447a; }
.podium .p2 { min-height: 130px; }
.podium .p3 { min-height: 106px; }
.podium b { font-weight: 1000; font-size: 1.15rem; }
.podium span { font-weight: 1000; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.1; }
.podium small { font-weight: 800; font-size: .86rem; line-height: 1.2; }

@media (max-width: 620px) {
  .serie-piste { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-left: 4px; }
  .serie-piste::before { left: 39px; right: auto; top: 20px; bottom: 30px; width: 10px; height: auto; background: linear-gradient(90deg, #d9a56b, #a8703e); box-shadow: 2px 0 0 #6b3419; }
  .serie-piste li { display: grid; grid-template-columns: 74px auto minmax(0, 1fr); align-items: center; column-gap: 12px; text-align: left; }
  .serie-piste b { width: 74px; height: 74px; font-size: 1.8rem; }
  .serie-piste small { margin-top: 0; }
  .serie-piste span { justify-self: end; }
  .podium .p1 { min-height: 150px; }
  .podium small { font-size: .76rem; }
}

/* Programme fidélité de la boutique */
.fidelite code { padding: 1px 7px; border-radius: 7px; background: var(--rose); color: var(--prune); font: 800 .92em ui-monospace, Consolas, monospace; }
.fid-piste { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 18px 14px; }
.fid-piste li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 14px 8px; border-radius: 18px; color: var(--prune); background: linear-gradient(180deg, #ffd3e3, #f8a5c2); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 7px 0 #c5447a; }
.fid-piste img { height: 28px; width: auto; max-width: 100%; image-rendering: pixelated; }
.fid-piste b { font-weight: 1000; font-size: 1.35rem; line-height: 1; }
.fid-max { background: linear-gradient(180deg, #d6f8ff, #8fe3fb) !important; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), 0 7px 0 #3f9dbd, 0 0 22px rgba(177, 239, 254, .55) !important; }
@media (max-width: 620px) { .fid-piste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Top 3 du mois sur la page Vote */
.podium-tete { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 14px; background: var(--prune); color: #fff; }
.podium-tete svg { width: 32px; height: 32px; }
.podium .p1 .podium-tete { width: 68px; height: 68px; }
.podium .p1 { min-height: 214px; }
.podium .p2 { min-height: 176px; }
.podium .p3 { min-height: 150px; }
@media (max-width: 620px) { .podium-tete { width: 44px; height: 44px; } .podium .p1 .podium-tete { width: 52px; height: 52px; } .podium .p1 { min-height: 188px; } .podium .p2 { min-height: 150px; } .podium .p3 { min-height: 130px; } }

.podium-nom { font-style: normal; font-weight: 900; font-size: 1rem; }

.fid-piste img { box-sizing: content-box; height: 22px; padding: 5px 7px; border-radius: 8px; background: var(--prune); max-width: calc(100% - 14px); object-fit: contain; }

/* Les quatre boutons sont en haut de chaque page */
.scene:not(.page) .trois { margin-top: 0; margin-bottom: auto; }
.scene:not(.page) .centre > :last-child { margin-bottom: auto; }
@media (max-width: 620px) {
  .parcours .centre { padding-top: 66px; }
}
