/* 🧭 LES TROIS ESPACES D'ACHAT TACTICIA (01/10/2026, Clawd) — feuille commune aux 3 pages :
 *    🤝 Marché commun  tacticia.fr/marche/        « Acheter à un joueur »        — sobre, place de marché
 *    ✨ Monde          tacticia.fr/marche/monde/  « Voir avant d'acheter »       — lumineux, paquets carrés 3D (SANS bande tricolore)
 *    🇫🇷 JONUM France   fr.tacticia.fr             « Booster surprise — France »  — institutionnel, bande tricolore, mentions JONUM
 * S'appuie sur /assets/site.css (refonte tacticia.fr : en-tête, pied, .ambient) ; chaque page pose body.e-commun | e-monde | e-jonum.
 * 📱 Rien de tout cela n'est montré dans l'appli iOS/Android (app.js : html.est-app [data-hors-app] masqué). */

.e-commun, .e-monde, .e-jonum { --font-display: "Cinzel", "Marcellus", Georgia, serif; --or: #cfa55b; --or-grad: linear-gradient(180deg, #fff1c4 0%, #e9c46f 42%, #b8862a 70%, #f3d58a 100%); }
.e-commun {
  --bg: #0d0e11; --bg2: #15171c; --panel: #17191f; --ink: #eeeff2; --muted: #a2a7b1; --line: rgba(255,255,255,.09);
  --accent: #cfa55b; --accent2: #d7dbe2; --accent-ink: #17130a; --glow: rgba(207,165,91,.18);
  --grad: linear-gradient(135deg, #f1dca8 0%, #cfa55b 45%, #8a6a2e 100%);
}
.e-monde {
  --bg: #080d1d; --bg2: #0f1730; --panel: #131c38; --ink: #f6f7ff; --muted: #b3bcdf; --line: rgba(190,205,255,.16);
  --accent: #f2cf7a; --accent2: #9fd8ff; --accent-ink: #1b1302; --glow: rgba(150,200,255,.30);
  --grad: linear-gradient(120deg, #ffffff 0%, #ffe9b0 35%, #9fd8ff 70%, #d9c2ff 100%);
}
.e-jonum {
  --bg: #08122b; --bg2: #0d1a3a; --panel: #101f45; --ink: #f4f6fb; --muted: #b6c0d8; --line: rgba(200,212,240,.16);
  --accent: #5b8cff; --accent2: #ffffff; --accent-ink: #ffffff; --glow: rgba(70,110,230,.25);
  --bleu: #1f3fa0; --blanc: #f4f4f4; --rouge: #d8202f;
  --tricolore: linear-gradient(90deg, var(--bleu) 0 33.3%, var(--blanc) 33.3% 66.6%, var(--rouge) 66.6% 100%);
  --grad: linear-gradient(90deg, #8fb0ff, #ffffff 55%, #ff8a92);
  --holo: var(--tricolore);
}
body.e-commun, body.e-monde, body.e-jonum { padding: 0; background: var(--bg); color: var(--ink); font-family: "Manrope", system-ui, sans-serif; }
.e-monde .ambient { background:
  radial-gradient(60vw 40vw at 75% -5%, rgba(255,226,150,.20), transparent 60%),
  radial-gradient(55vw 45vw at 10% 10%, rgba(120,180,255,.22), transparent 62%),
  radial-gradient(40vw 40vw at 50% 110%, rgba(190,150,255,.16), transparent 60%), var(--bg); }
.e-commun .ambient { background: radial-gradient(70vw 40vw at 80% -10%, rgba(207,165,91,.10), transparent 60%), var(--bg); }
.e-jonum .ambient { background: radial-gradient(70vw 50vw at 15% -10%, rgba(31,63,160,.45), transparent 60%), radial-gradient(50vw 40vw at 95% 0%, rgba(216,32,47,.14), transparent 60%), var(--bg); }

/* ── bande tricolore (JONUM seulement) ── */
.tricolore { height: 6px; background: var(--tricolore); }
.e-jonum .site-header { border-top: 0; }

/* ── bandeau MODE TEST ── */
.esp-test { background: repeating-linear-gradient(135deg, #ffcf6a 0 14px, #ffbe45 14px 28px); color: #231400; text-align: center;
  font: 800 11px/1.35 "Manrope", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; }

/* ── marque « TACTICIA » chrome + « TCG BATTLE » or ── */
.esp-marque { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.esp-marque img.em { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.esp-marque .wm { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1; }
.esp-marque .wm img { height: 17px; width: auto; }
.esp-marque .wm b { font: 700 9.5px/1 "Unbounded", system-ui, sans-serif; letter-spacing: .32em; background: var(--or-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-left: 1px; }
@media (max-width: 520px) { .site-header .nav { display: none; } }

/* ── les trois espaces : navigation commune ── */
.esp-nav { max-width: 1160px; margin: 18px auto 0; padding: 0 var(--gutter, 16px); }
.esp-nav .phrase { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.esp-nav .phrase b { color: var(--ink); }
.esp-nav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.esp-nav a { position: relative; display: flex; gap: 10px; align-items: center; height: 100%; text-decoration: none; color: #eef0f6;
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 11px 13px; background: rgba(12,14,22,.66);
  transition: border-color .2s, transform .2s, background .2s; overflow: hidden; }
.esp-nav a:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.esp-nav a .ic { font-size: 22px; line-height: 1; flex-shrink: 0; }
.esp-nav a .tx { display: flex; flex-direction: column; min-width: 0; }
.esp-nav a b { font: 800 14.5px/1.2 "Manrope", system-ui, sans-serif; }
.esp-nav a span.p { font-size: 12.5px; color: #c9cede; }
.esp-nav a small { font-size: 11px; color: #8f97ad; margin-top: 2px; }
.esp-nav a.commun[aria-current] { border-color: #cfa55b; background: linear-gradient(180deg, rgba(207,165,91,.16), rgba(12,14,22,.7)); }
.esp-nav a.monde[aria-current] { border-color: #f2cf7a; background: linear-gradient(180deg, rgba(255,230,160,.20), rgba(120,180,255,.10)); box-shadow: 0 0 30px -10px rgba(255,220,140,.6); }
.esp-nav a.jonum { border-top: 0; padding-top: 14px; }
.esp-nav .coffre-l { margin: 8px 0 0; text-align: right; font-size: 13px; }
.esp-nav .coffre-l a { display: inline-flex; height: auto; padding: 6px 12px; border-style: dashed; border-radius: 999px; font-weight: 700; }
.esp-nav a.jonum::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #1f3fa0 0 33.3%, #f4f4f4 33.3% 66.6%, #d8202f 66.6%); }
.esp-nav a.jonum[aria-current] { border-color: #5b8cff; background: linear-gradient(180deg, rgba(31,63,160,.35), rgba(12,14,22,.7)); }
.esp-nav a[aria-current]::after { content: "Vous êtes ici"; position: absolute; right: 10px; top: 8px; font: 800 9px/1 "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
@media (max-width: 760px) {
  .esp-nav ol { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .esp-nav a { flex-direction: column; align-items: flex-start; gap: 4px; padding: 9px 9px; }
  .esp-nav a small, .esp-nav a[aria-current]::after { display: none; }
  .esp-nav a b { font-size: 13px; } .esp-nav a span.p { font-size: 11.5px; } .esp-nav a .ic { font-size: 18px; }
}

/* ── héros ── */
.esp-hero { max-width: 1160px; margin: 0 auto; padding: 30px var(--gutter, 16px) 10px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.esp-hero .surtitre { display: inline-flex; align-items: center; gap: 12px; font: 800 11.5px/1.3 "Manrope", sans-serif; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.esp-hero .surtitre::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.esp-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 54px); line-height: 1.04; margin: 10px 0 12px; }
.esp-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.esp-hero p.lead { color: var(--muted); max-width: 58ch; font-size: 16px; }
.esp-hero ul.pts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.esp-hero ul.pts li { font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
@media (max-width: 860px) { .esp-hero { grid-template-columns: 1fr; padding-top: 20px; gap: 10px; } }

/* Commun : éventail de cartes sobre */
.e-commun .eventail { position: relative; height: 230px; }
.e-commun .eventail img { position: absolute; top: 10px; width: 170px; height: 170px; border-radius: 14px; box-shadow: 0 20px 40px -18px #000; border: 1px solid rgba(255,255,255,.12); }
.e-commun .eventail img:nth-child(1) { left: calc(50% - 205px); transform: rotate(-8deg); }
.e-commun .eventail img:nth-child(2) { left: calc(50% - 85px); top: 0; z-index: 2; }
.e-commun .eventail img:nth-child(3) { left: calc(50% + 35px); transform: rotate(8deg); }
.e-commun .eventail .etq { position: absolute; z-index: 3; bottom: 6px; left: 50%; transform: translateX(-50%); background: #0d0e11; border: 1px solid var(--accent); color: var(--accent); font: 800 13px/1 "Manrope", sans-serif; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 860px) { .e-commun .eventail { height: 150px; } .e-commun .eventail img { width: 110px; height: 110px; } .e-commun .eventail img:nth-child(1) { left: calc(50% - 135px); } .e-commun .eventail img:nth-child(2) { left: calc(50% - 55px); } .e-commun .eventail img:nth-child(3) { left: calc(50% + 25px); } }

/* Monde : paquets carrés en 3D, flottants, lumineux */
.e-monde .paquets { position: relative; height: 290px; perspective: 900px; }
.e-monde .paquets img { position: absolute; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(255,225,150,.35));
  animation: flotte 6s ease-in-out infinite; transform-style: preserve-3d; }
.e-monde .paquets img:nth-child(1) { left: 2%; top: 70px; transform: rotateY(24deg) rotateZ(-6deg); animation-delay: -1s; }
.e-monde .paquets img:nth-child(2) { left: 24%; top: 10px; width: 175px; height: 175px; transform: rotateY(12deg); animation-delay: -3s; }
.e-monde .paquets img:nth-child(3) { left: 50%; top: 40px; width: 200px; height: 200px; z-index: 2; transform: rotateY(-10deg); animation-delay: -2s; }
.e-monde .paquets img:nth-child(4) { left: 70%; top: 95px; transform: rotateY(-26deg) rotateZ(6deg); animation-delay: -4s; }
@keyframes flotte { 50% { translate: 0 -10px; } }
.e-monde .paquets::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 40px; background: radial-gradient(closest-side, rgba(255,230,160,.35), transparent); filter: blur(6px); }
@media (max-width: 860px) { .e-monde .paquets { height: 170px; } .e-monde .paquets img { width: 90px; height: 90px; } .e-monde .paquets img:nth-child(1) { top: 50px; }
  .e-monde .paquets img:nth-child(2) { width: 105px; height: 105px; } .e-monde .paquets img:nth-child(3) { width: 120px; height: 120px; top: 20px; } .e-monde .paquets img:nth-child(4) { top: 60px; } }
@media (prefers-reduced-motion: reduce) { .e-monde .paquets img { animation: none; } }
.e-monde .etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: e; }
.e-monde .etapes li { counter-increment: e; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.e-monde .etapes li::before { content: counter(e); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; margin-right: 6px; }
.e-monde .etapes b { color: var(--ink); }
@media (max-width: 520px) { .e-monde .etapes { grid-template-columns: 1fr; } }

/* ── zone du module (widget) ── */
.esp-main { max-width: 1160px; margin: 0 auto; padding: 14px var(--gutter, 16px) 40px; }
.esp-main #marche { border-radius: 18px; overflow: hidden; min-height: 60vh; display: flex; flex-direction: column; }
.esp-main #marche .tm-fen { width: 100%; box-shadow: 0 30px 80px -40px rgba(0,0,0,.9); border: 1px solid var(--line); border-radius: 18px; }
.e-commun #marche .tm-tete h2, .e-monde #marche .tm-tete h2 { font-family: "Cinzel", Georgia, serif; font-weight: 700; }
.e-monde #marche .tm-fen { border-color: rgba(255,230,160,.35); box-shadow: 0 0 0 1px rgba(160,200,255,.12), 0 30px 90px -30px rgba(140,190,255,.45); }
.e-monde #marche .tm-tete { background: linear-gradient(90deg, rgba(255,226,150,.16), rgba(140,190,255,.10)), var(--panel); }

/* ── JONUM : bloc d'information institutionnel ── */
.jn-grille { max-width: 1160px; margin: 0 auto; padding: 18px var(--gutter, 16px) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .jn-grille { grid-template-columns: 1fr; } }
.jn-bloc { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; position: relative; }
.jn-bloc h2 { font: 800 15px/1.25 "Manrope", sans-serif; letter-spacing: .02em; margin: 0 0 10px; color: #fff; display: flex; align-items: center; gap: 8px; }
.jn-bloc p, .jn-bloc li { font-size: 14px; color: var(--muted); }
.jn-bloc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 7px; counter-reset: c; }
.jn-bloc ol li { counter-increment: c; display: flex; gap: 10px; align-items: flex-start; }
.jn-bloc ol li::before { content: counter(c); flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--bleu); color: #fff; font: 800 12px/1 "Manrope", sans-serif; }
.jn-bloc ol li b { color: #fff; }
.jn-alerte { border-color: rgba(216,32,47,.55); background: linear-gradient(180deg, rgba(216,32,47,.10), rgba(255,255,255,.03)); }
.jn-alerte .num { display: inline-block; font: 800 22px/1.1 "Manrope", sans-serif; color: #fff; letter-spacing: .04em; margin: 4px 0; }
.jn-age { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--rouge); color: #fff; font: 800 14px/1 "Manrope", sans-serif; flex-shrink: 0; }
.jn-regles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.jn-regles li { background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.jn-regles li b { display: block; color: #fff; font-size: 13.5px; }
@media (max-width: 520px) { .jn-regles { grid-template-columns: 1fr; } }
.jn-pleine { grid-column: 1 / -1; }
.jn-paquets { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.jn-paquets img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.5)); }
@media (max-width: 860px) { .jn-paquets img { width: 84px; height: 84px; } }
.jn-taux { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.jn-taux th, .jn-taux td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.jn-taux th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.jn-taux td.pc { text-align: right; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.jn-taux .barre { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; min-width: 60px; }
.jn-taux .barre i { display: block; height: 100%; background: linear-gradient(90deg, #5b8cff, #fff); }

/* ── pied commun ── */
.esp-pied { max-width: 1160px; margin: 0 auto; padding: 10px var(--gutter, 16px) 30px; font-size: 12.5px; color: var(--muted); }
.esp-pied a { color: var(--ink); }
.esp-app-msg { max-width: 640px; margin: 60px auto; padding: 30px 20px; text-align: center; color: var(--muted); }
