/* ============================================================
   PF2026 — Mini-site JCC Pokémon
   Accueil /tcg-extension/ (archive-tcg-extension.php), hub de l'Académie
   (page-apprendre-a-jouer-jcc.php), leçons (catégorie apprendre-jcc),
   barre commune sur les fiches extension / carte.
   Identité : bleu du dos des cartes, jaune du logo, rouge Poké Ball ;
   chaque niveau de l'Académie porte la couleur d'un type d'Énergie.
   ============================================================ */

:root {
  --jcc-blue:      #1F57C3;
  --jcc-blue-2:    #2F74E0;
  --jcc-deep:      #0E2A6B;
  --jcc-night:     #0A1A45;
  --jcc-yellow:    #FFCB05;
  --jcc-yellow-2:  #F5B800;
  --jcc-red:       #E3350D;
  --jcc-bg:        #F3F6FD;
  --jcc-line:      #DDE5F5;
  --jcc-ink:       #101631;
  --jcc-muted:     #58617F;
  --jcc-shadow:    0 14px 40px rgba(14, 42, 107, .14);
  --jcc-shadow-sm: 0 4px 14px rgba(14, 42, 107, .08);
}
.jcc-lvl--debutant { --lvl: #3FA129; --lvl-bg: #EAF6E5; --lvl-ink: #23661A; }
.jcc-lvl--avance   { --lvl: #2980EF; --lvl-bg: #E6F0FE; --lvl-ink: #1B56A8; }
.jcc-lvl--expert   { --lvl: #9141CB; --lvl-bg: #F3EAFB; --lvl-ink: #632A8E; }
.jcc-lvl--champion { --lvl: #E6A700; --lvl-bg: #FFF6D6; --lvl-ink: #8A6400; }

.jcc-home, .jcc-academy { background: var(--jcc-bg); color: var(--jcc-ink); overflow-x: clip; }
.jcc-home .sr-only, .jcc-academy .sr-only, .jcc-lesson-bar .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Orbe d'Énergie ---------- */
.jcc-orb {
  --orb: #999;
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), transparent 45%), var(--orb);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .15);
  border: 2px solid #fff;
}
.jcc-orb--lg { width: 44px; height: 44px; font-size: 21px; }
.jcc-orb--xl { width: 64px; height: 64px; font-size: 30px; border-width: 3px; }

/* ---------- Barre de navigation commune ---------- */
.jcc-nav { background: linear-gradient(90deg, var(--jcc-deep), var(--jcc-blue)); color: #fff; position: relative; z-index: 40; }
.jcc-nav::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--jcc-yellow) 0 33%, var(--jcc-red) 33% 66%, #fff 66%); opacity: .9; }
.jcc-nav__inner { display: flex; align-items: center; gap: 18px; min-height: 52px; }
.jcc-nav__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.jcc-nav__brand b { font-size: 15px; letter-spacing: .02em; }
.jcc-nav__logo {
  width: 22px; height: 30px; border-radius: 4px; position: relative; flex: none;
  background: radial-gradient(circle at 50% 50%, #fff 0 22%, var(--jcc-red) 23% 34%, transparent 35%), linear-gradient(160deg, var(--jcc-blue-2), var(--jcc-deep));
  box-shadow: 0 0 0 2px var(--jcc-yellow);
}
.jcc-nav__links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.jcc-nav__links::-webkit-scrollbar { display: none; }
.jcc-nav__links a { flex: none; padding: 8px 12px; border-radius: 999px; color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.jcc-nav__links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.jcc-nav__links a.is-current { background: var(--jcc-yellow); color: var(--jcc-deep); }

/* ---------- Boutons ---------- */
.jcc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.jcc-btn:hover { transform: translateY(-2px); }
.jcc-btn--yellow { background: var(--jcc-yellow); color: var(--jcc-deep); box-shadow: 0 6px 0 var(--jcc-yellow-2), 0 10px 24px rgba(0, 0, 0, .25); }
.jcc-btn--yellow:hover { box-shadow: 0 8px 0 var(--jcc-yellow-2), 0 14px 28px rgba(0, 0, 0, .25); }
.jcc-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.jcc-btn--blue { background: var(--jcc-blue); color: #fff; }
.jcc-btn--blue:hover { background: var(--jcc-deep); }

/* ---------- Héros (accueil + Académie) ---------- */
.jcc-hero {
  position: relative; isolation: isolate; color: #fff; padding: 22px 0 48px;
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(47, 116, 224, .9), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(10, 26, 69, .95), transparent 70%),
    linear-gradient(150deg, var(--jcc-blue) 0%, var(--jcc-deep) 60%, var(--jcc-night) 100%);
}
.jcc-hero__swirl { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.jcc-hero__swirl::before {
  /* Poké Ball géante en filigrane, façon dos de carte */
  content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -120px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 13%, rgba(255, 255, 255, .14) 13.5% 16%, transparent 16.5%),
    linear-gradient(transparent 47.5%, rgba(255, 255, 255, .1) 47.5% 52.5%, transparent 52.5%);
  border: 18px solid rgba(255, 255, 255, .08);
}
.jcc-hero__swirl::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 10% 120%, transparent 0 38px, rgba(255, 255, 255, .035) 38px 40px);
}
.jcc-crumb .breadcrumb { color: rgba(255, 255, 255, .7); font-size: 13px; margin: 0 0 18px; padding: 0; background: none; }
.jcc-crumb .breadcrumb a { color: rgba(255, 255, 255, .85); }
.jcc-crumb .breadcrumb-current { color: #fff; }
.jcc-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.jcc-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jcc-yellow); margin-bottom: 12px; }
.jcc-hero__title { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.03em; color: #fff; }
.jcc-hero__title span { display: block; color: var(--jcc-yellow); text-shadow: 0 3px 0 rgba(10, 26, 69, .45); }
.jcc-hero__lead { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 600px; margin: 0 0 24px; }
.jcc-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.jcc-hero__stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jcc-hero__stats li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 10px 16px; }
.jcc-hero__stats b { display: block; font-size: 24px; color: var(--jcc-yellow); line-height: 1.1; }
.jcc-hero__stats span { font-size: 13px; color: rgba(255, 255, 255, .8); }

.jcc-hero__fan { position: relative; height: 400px; }
.jcc-hero__card { position: absolute; top: 50%; left: 50%; width: 220px; height: auto; border-radius: 12px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); transition: transform .35s ease; }
.jcc-hero__card--0 { transform: translate(-50%, -54%); z-index: 2; width: 240px; }
.jcc-hero__card--1 { transform: translate(-112%, -46%) rotate(-11deg); }
.jcc-hero__card--2 { transform: translate(12%, -46%) rotate(11deg); }
.jcc-hero__fan:hover .jcc-hero__card--1 { transform: translate(-122%, -48%) rotate(-14deg); }
.jcc-hero__fan:hover .jcc-hero__card--2 { transform: translate(22%, -48%) rotate(14deg); }
.jcc-hero__fan::before { content: ""; position: absolute; inset: 14% 10%; z-index: -1; border-radius: 50%; background: var(--jcc-yellow); filter: blur(70px); opacity: .35; }

/* Héros de l'Académie : niveaux en colonne */
.jcc-hero__levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jcc-hero__levels li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 14px; }
.jcc-hero__levels .jcc-orb { grid-row: span 2; }
.jcc-hero__levels b { font-size: 18px; }
.jcc-hero__levels span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.jcc-progress { margin-top: 22px; max-width: 420px; }
.jcc-progress__bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.jcc-progress__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #3FA129, #2980EF, #9141CB, #E6A700); transition: width .4s ease; }
.jcc-progress > span { display: block; font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 6px; }

/* ---------- Sections ---------- */
.jcc-sec { padding: 60px 0; scroll-margin-top: 80px; }
.jcc-sec + .jcc-sec { border-top: 1px solid var(--jcc-line); }
.jcc-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.jcc-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--jcc-red); margin-bottom: 6px; }
.jcc-h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; color: var(--jcc-ink); }
.jcc-h3 { font-size: 22px; margin: 0 0 10px; color: var(--jcc-ink); }
.jcc-sec__sub { margin: 0; max-width: 700px; color: var(--jcc-muted); font-size: 16px; line-height: 1.6; }
.jcc-more { font-weight: 700; color: var(--jcc-blue); text-decoration: none; white-space: nowrap; }
.jcc-more:hover { text-decoration: underline; }
.jcc-home .jcc30-banner { margin-bottom: 22px; }

/* Dernières extensions */
.jcc-latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jcc-latest__item { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--jcc-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.jcc-latest__item:hover { transform: translateY(-4px); box-shadow: var(--jcc-shadow); }
.jcc-latest__item.is-new { box-shadow: 0 0 0 3px var(--jcc-yellow), var(--jcc-shadow-sm); }
.jcc-latest__badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--jcc-red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.jcc-latest__logo { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 22px; background: radial-gradient(80% 90% at 50% 30%, #fff, #E8EEFB); }
.jcc-latest__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(14, 42, 107, .2)); }
.jcc-latest__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.jcc-latest__body b { font-size: 16px; }
.jcc-latest__body span { font-size: 13px; color: var(--jcc-muted); }

/* Académie : aperçu sur l'accueil */
.jcc-sec--academy { background: linear-gradient(180deg, #fff, var(--jcc-bg)); }
.jcc-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jcc-level { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--jcc-shadow-sm); border-top: 5px solid var(--lvl); }
.jcc-level header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.jcc-level h3 { margin: 0; font-size: 19px; color: var(--lvl-ink); }
.jcc-level header span { font-size: 13px; color: var(--jcc-muted); }
.jcc-level ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jcc-level a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--jcc-ink); font-weight: 600; font-size: 14px; line-height: 1.35; }
.jcc-level a:hover { background: var(--lvl-bg); }
.jcc-level a span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--lvl); }
.jcc-level li.is-done a span { background: var(--jcc-ink); }
.jcc-level li.is-done a span::before { content: "✓"; }
.jcc-level li.is-done a span { font-size: 0; }
.jcc-level li.is-done a span::before { font-size: 12px; }

/* Catalogue des extensions */
.jcc-search input { width: min(320px, 80vw); padding: 12px 16px 12px 40px; border-radius: 999px; border: 1px solid var(--jcc-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2358617F' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 14px 50% no-repeat; font-size: 15px; box-shadow: var(--jcc-shadow-sm); }
.jcc-search input:focus { outline: 2px solid var(--jcc-blue-2); outline-offset: 1px; }
.jcc-eras { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.jcc-eras a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--jcc-ink); font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: var(--jcc-shadow-sm); }
.jcc-eras a:hover { background: var(--jcc-blue); color: #fff; }
.jcc-eras a span { font-size: 12px; color: var(--jcc-muted); background: var(--jcc-bg); border-radius: 999px; padding: 1px 8px; }
.jcc-eras a:hover span { color: var(--jcc-blue); }
.jcc-search-empty { padding: 30px; text-align: center; color: var(--jcc-muted); background: #fff; border-radius: 16px; }
.jcc-sec--all .tcg-block { margin: 36px 0 0; }
.jcc-sec--all .tcg-block__title { font-size: 22px; }
.jcc-sec--all .tcg-extension-card { background: #fff; }
.jcc-sec--all [hidden] { display: none !important; }

/* Cartes phares */
.jcc-sec--cards { background: linear-gradient(160deg, var(--jcc-deep), var(--jcc-night)); color: #fff; border-top: 0 !important; }
.jcc-sec--cards .jcc-h2 { color: #fff; }
.jcc-sec--cards .jcc-sec__sub { color: rgba(255, 255, 255, .75); }
.jcc-sec--cards .jcc-eyebrow { color: var(--jcc-yellow); }
.jcc-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.jcc-shelf__card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: #fff; }
.jcc-shelf__img { display: block; aspect-ratio: 63 / 88; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.jcc-shelf__card:hover .jcc-shelf__img { transform: translateY(-4px) rotate(-1deg); }
.jcc-shelf__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jcc-shelf__card b { margin-top: 8px; font-size: 14px; }
.jcc-shelf__card span { font-size: 12px; color: rgba(255, 255, 255, .7); }
.jcc-shelf__card em { font-style: normal; align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--jcc-yellow); color: var(--jcc-deep); }

/* Actus + jeu en ligne */
.jcc-news-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.jcc-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.jcc-news__item { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--jcc-shadow-sm); transition: transform .2s ease; }
.jcc-news__item:hover { transform: translateY(-3px); }
.jcc-news__img { aspect-ratio: 16 / 9; overflow: hidden; background: #E8EEFB; }
.jcc-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jcc-news__date { font-size: 12px; color: var(--jcc-muted); padding: 12px 14px 0; }
.jcc-news__item b { padding: 4px 14px 16px; font-size: 15px; line-height: 1.35; }
.jcc-online { background: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--jcc-shadow-sm); border-top: 5px solid var(--jcc-blue); position: sticky; top: 90px; }
.jcc-online p { color: var(--jcc-muted); line-height: 1.6; }
.jcc-online + .jcc-online { margin-top: 16px; }
.jcc-online__pocket { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--jcc-line); }

/* ---------- Hub de l'Académie ---------- */
.jcc-path { display: flex; flex-direction: column; gap: 26px; }
.jcc-path__level { background: #fff; border-radius: 26px; padding: 26px; box-shadow: var(--jcc-shadow-sm); border-left: 8px solid var(--lvl); scroll-margin-top: 80px; }
.jcc-path__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.jcc-path__tag { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--lvl-ink); background: var(--lvl-bg); padding: 3px 10px; border-radius: 999px; }
.jcc-path__head h3 { margin: 6px 0 4px; font-size: 26px; color: var(--jcc-ink); }
.jcc-path__head p { margin: 0; color: var(--jcc-muted); max-width: 720px; line-height: 1.55; }
.jcc-path__lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.jcc-lesson-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; background: var(--lvl-bg); transition: transform .2s ease, box-shadow .2s ease; }
.jcc-lesson-card:hover { transform: translateY(-4px); box-shadow: var(--jcc-shadow); }
.jcc-lesson-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lvl); }
.jcc-lesson-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jcc-lesson-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.jcc-lesson-card__num { font-size: 12px; font-weight: 800; color: var(--lvl-ink); text-transform: uppercase; letter-spacing: .06em; }
.jcc-lesson-card b { font-size: 17px; line-height: 1.3; }
.jcc-lesson-card__excerpt { font-size: 14px; color: var(--jcc-muted); line-height: 1.5; }
.jcc-lesson-card__done { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: none; place-items: center; background: var(--lvl); color: #fff; font-weight: 900; box-shadow: 0 0 0 3px #fff; }
.jcc-lesson-card.is-done .jcc-lesson-card__done { display: grid; }

.jcc-memo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
.jcc-memo__grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jcc-memo__grid li { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--jcc-shadow-sm); display: flex; align-items: center; gap: 14px; }
.jcc-memo__grid b { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; color: var(--jcc-deep); background: var(--jcc-yellow); box-shadow: inset 0 -4px 0 var(--jcc-yellow-2); }
.jcc-memo__grid span { font-weight: 600; line-height: 1.35; }
.jcc-glossary { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jcc-glossary div { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--jcc-shadow-sm); }
.jcc-glossary dt { font-weight: 800; color: var(--jcc-blue); margin-bottom: 2px; }
.jcc-glossary dd { margin: 0; font-size: 14px; color: var(--jcc-muted); line-height: 1.5; }
.jcc-academy-outro { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--jcc-shadow-sm); }
.jcc-academy-outro p { margin: 0; max-width: 760px; color: var(--jcc-muted); line-height: 1.6; }

/* ---------- Bandeau d'une leçon ---------- */
.jcc-lesson-bar { margin: 0 0 26px; padding: 14px 18px; border-radius: 18px; background: var(--lvl-bg); border: 1px solid color-mix(in srgb, var(--lvl) 25%, transparent); }
.jcc-lesson-bar__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.jcc-lesson-bar__level { font-weight: 800; color: var(--lvl-ink); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.jcc-lesson-bar__num, .jcc-lesson-bar__min { color: var(--jcc-muted); font-weight: 600; }
.jcc-lesson-bar__hub { margin-left: auto; font-weight: 700; color: var(--jcc-blue) !important; text-decoration: none !important; }
.jcc-lesson-bar__track { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 6px; }
.jcc-lesson-bar__track li { flex: 1; }
.jcc-lesson-bar__track a { display: block; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--lvl) 28%, #fff); }
.jcc-lesson-bar__track li.is-done a { background: var(--lvl); }
.jcc-lesson-bar__track li.is-current a { background: var(--lvl); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--lvl); }

.jcc-lesson-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 36px 0 10px; }
.jcc-lesson-next a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; text-decoration: none !important; background: #fff; border: 1px solid var(--jcc-line); color: var(--jcc-ink) !important; transition: transform .2s ease, box-shadow .2s ease; }
.jcc-lesson-next a:hover { transform: translateY(-3px); box-shadow: var(--jcc-shadow); }
.jcc-lesson-next small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--jcc-muted); }
.jcc-lesson-next b { font-size: 17px; line-height: 1.3; }
.jcc-lesson-next__next { grid-column: 2; background: var(--lvl) !important; border-color: transparent !important; color: #fff !important; }
.jcc-lesson-next__next small { color: rgba(255, 255, 255, .85); }

/* ============================================================
   COMPOSANTS DES LEÇONS (shortcodes de inc/jcc-hub.php)
   ============================================================ */
.article-body [class^="jcc-"] img, .article-body [class*=" jcc-"] img { margin: 0; border-radius: 0; }
.article-body [class^="jcc-"] a, .article-body [class*=" jcc-"] a { text-decoration: none; }
.article-body [class^="jcc-"] p:last-child { margin-bottom: 0; }

/* Cartes illustrées */
.jcc-cards { margin: 26px 0; }
.jcc-cards__title { font-weight: 800; color: var(--jcc-ink); margin-bottom: 10px !important; }
.jcc-cards__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.jcc-card { margin: 0; flex: 0 1 180px; text-align: center; }
.jcc-cards--4 .jcc-card, .jcc-cards--5 .jcc-card { flex-basis: 150px; }
.jcc-card a { display: block; }
.article-body .jcc-card img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 24px rgba(14, 42, 107, .2); transition: transform .2s ease; }
.jcc-card a:hover img { transform: translateY(-4px) rotate(-1deg); }
.jcc-card figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--jcc-muted); font-weight: 600; }

/* Ligne d'évolution */
.jcc-evo { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0; flex-wrap: wrap; }
.jcc-evo__step { flex: 0 1 170px; text-align: center; }
.jcc-evo__stage { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--jcc-blue); color: #fff; }
.jcc-evo__step .jcc-card { flex: none; }
.jcc-evo__arrow { font-size: 26px; color: var(--jcc-blue); }

/* Anatomie d'une carte */
.jcc-anat { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 26px; margin: 28px 0; align-items: start; }
.jcc-anat__card { position: relative; border-radius: 14px; box-shadow: 0 16px 40px rgba(14, 42, 107, .25); }
.article-body .jcc-anat__card img { width: 100%; height: auto; display: block; border-radius: 14px; }
.jcc-anat__pin {
  position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: var(--jcc-red); color: #fff; font-size: 11px; font-weight: 800; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .15s ease, background .15s ease;
}
.jcc-anat__pin:hover, .jcc-anat__pin.is-on { transform: translate(-50%, -50%) scale(1.25); background: var(--jcc-blue); z-index: 2; }
.jcc-anat__legend { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 6px; max-height: 560px; overflow: auto; }
.jcc-anat__legend li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 12px; font-size: 14px; line-height: 1.45; margin: 0 !important; transition: background .15s ease; }
.jcc-anat__legend li.is-on { background: #E6F0FE; }
.jcc-anat__legend b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--jcc-red); }
.jcc-anat__legend strong { display: block; }

/* Tapis de jeu */
.jcc-mat {
  display: grid; gap: 12px; margin: 28px 0; padding: 18px; border-radius: 22px;
  grid-template-columns: 1.1fr 1.4fr 1fr; grid-template-areas: "prizes active deck" "prizes stadium discard" "bench bench bench";
  background: radial-gradient(80% 80% at 50% 0%, #2F74E0, var(--jcc-deep)); color: #fff;
}
.jcc-mat__zone { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px; border-radius: 14px; border: 2px dashed rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); }
.jcc-mat__zone b { font-size: 14px; color: var(--jcc-yellow); }
.jcc-mat__zone small { font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .78); }
.jcc-mat__zone--prizes { grid-area: prizes; }
.jcc-mat__zone--active { grid-area: active; border-color: var(--jcc-yellow); }
.jcc-mat__zone--stadium { grid-area: stadium; }
.jcc-mat__zone--deck { grid-area: deck; }
.jcc-mat__zone--discard { grid-area: discard; }
.jcc-mat__zone--bench { grid-area: bench; }
.jcc-mat__slot { display: block; width: 46px; aspect-ratio: 63 / 88; border-radius: 6px; background: linear-gradient(160deg, #fff3, #fff1); border: 2px solid rgba(255, 255, 255, .5); }
.jcc-mat__slot--active { width: 66px; border-color: var(--jcc-yellow); background: linear-gradient(160deg, rgba(255, 203, 5, .35), rgba(255, 203, 5, .1)); }
.jcc-mat__slot--wide { width: 88px; aspect-ratio: 88 / 63; }
.jcc-mat__bench { display: flex; gap: 8px; }
.jcc-mat__prizes { display: grid; grid-template-columns: repeat(2, 30px); gap: 5px; }
.jcc-mat__prize { width: 30px; aspect-ratio: 63 / 88; border-radius: 4px; background: radial-gradient(circle, #fff 0 18%, var(--jcc-red) 19% 30%, transparent 31%), linear-gradient(160deg, var(--jcc-blue-2), var(--jcc-deep)); border: 1px solid rgba(255, 255, 255, .5); }
.jcc-mat__pile { display: block; width: 50px; aspect-ratio: 63 / 88; border-radius: 6px; background: radial-gradient(circle, #fff 0 16%, var(--jcc-red) 17% 27%, transparent 28%), linear-gradient(160deg, var(--jcc-blue-2), var(--jcc-deep)); box-shadow: 3px 3px 0 #fff4, 6px 6px 0 #fff2; }
.jcc-mat__pile--up { background: linear-gradient(160deg, #fff, #dfe7f7); box-shadow: 3px 3px 0 #fff4, 6px 6px 0 #fff2; }

/* Étapes numérotées (mise en place) */
.jcc-steps { list-style: none; margin: 26px 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.jcc-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--jcc-line); box-shadow: var(--jcc-shadow-sm); margin: 0 !important; line-height: 1.45; font-size: 14px; }
.jcc-steps__n { position: absolute; top: -10px; left: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--jcc-red); color: #fff; font-size: 13px; font-weight: 800; }
.jcc-steps__icon { font-size: 24px; }
.jcc-steps b { font-size: 15px; color: var(--jcc-ink); }

/* Déroulement d'un tour */
.jcc-turn { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; margin: 26px 0; align-items: stretch; }
.jcc-turn__phase { position: relative; padding: 18px 16px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--jcc-line); }
.jcc-turn__phase b { display: block; font-size: 16px; color: var(--jcc-ink); margin: 6px 0; }
.jcc-turn__phase p { font-size: 14px; line-height: 1.5; margin: 0 !important; color: var(--jcc-muted); }
.jcc-turn__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--jcc-blue); }
.jcc-turn__phase--attack { border-color: var(--jcc-red); }
.jcc-turn__phase--attack .jcc-turn__n { background: var(--jcc-red); }
.jcc-turn__phase--main { border-color: var(--jcc-yellow); }
.jcc-turn__phase--main .jcc-turn__n { background: var(--jcc-yellow-2); }
.jcc-turn ul { list-style: none; margin: 8px 0 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.jcc-turn li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 1.35; padding: 7px 10px; border-radius: 10px; background: var(--jcc-bg); margin: 0 !important; }
.jcc-turn li em { flex: none; font-style: normal; font-size: 12px; font-weight: 800; color: var(--jcc-muted); }
.jcc-turn li.is-once em { color: var(--jcc-red); }

/* Énergies */
.jcc-energies { list-style: none; margin: 22px 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.jcc-energies li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--jcc-line); font-weight: 700; font-size: 14px; margin: 0 !important; }

/* États Spéciaux */
.jcc-states { list-style: none; margin: 26px 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.jcc-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--jcc-line); margin: 0 !important; font-size: 13px; line-height: 1.4; }
.jcc-state__card { position: relative; width: 70px; height: 98px; display: grid; place-items: center; margin: 14px 0 18px; }
.article-body .jcc-state__card img { width: 70px; height: auto; border-radius: 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.jcc-state--endormi .jcc-state__card img { transform: rotate(-90deg); }
.jcc-state--paralyse .jcc-state__card img { transform: rotate(90deg); }
.jcc-state--confus .jcc-state__card img { transform: rotate(180deg); }
.jcc-state--empoisonne .jcc-state__card::after, .jcc-state--brule .jcc-state__card::after { position: absolute; right: -8px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.jcc-state--empoisonne .jcc-state__card::after { content: "☠"; background: #9141CB; color: #fff; }
.jcc-state--brule .jcc-state__card::after { content: "🔥"; background: #E62829; }
.jcc-state b { font-size: 15px; color: var(--jcc-ink); }
.jcc-state em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--jcc-red); }

/* Contrôle Pokémon */
.jcc-check { list-style: none; margin: 22px 0 8px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.jcc-check li { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--jcc-deep); color: #fff; margin: 0 !important; }
.jcc-check li span { font-size: 22px; }
.jcc-check li em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .78); }
.jcc-check__note { font-size: 14px; color: var(--jcc-muted); }

/* Calculateurs (dégâts, probabilités) */
.jcc-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin: 26px 0; padding: 20px; border-radius: 20px; background: #fff; border: 2px solid var(--jcc-blue); box-shadow: var(--jcc-shadow-sm); }
.jcc-calc__fields { display: grid; gap: 10px; }
.jcc-calc__fields label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--jcc-ink); }
.jcc-calc__fields small { color: var(--jcc-muted); font-weight: 500; }
.jcc-calc__fields input[type=number] { width: 90px; padding: 8px 10px; border: 1px solid var(--jcc-line); border-radius: 10px; font-size: 15px; font-weight: 700; text-align: right; }
.jcc-calc__check { justify-content: flex-start !important; }
.jcc-calc__check input { width: 18px; height: 18px; accent-color: var(--jcc-blue); }
.jcc-calc__out { background: var(--jcc-bg); border-radius: 14px; padding: 16px; }
.jcc-calc__steps { margin: 0 0 10px !important; padding-left: 20px !important; font-size: 14px; }
.jcc-calc__steps li { margin: 0 0 4px !important; }
.jcc-calc__result { font-size: 18px; font-weight: 800; color: var(--jcc-ink); margin: 0 !important; }
.jcc-calc__result.is-ko { color: var(--jcc-red); }
.jcc-calc__big { font-size: 44px; font-weight: 900; color: var(--jcc-blue); margin: 0 !important; line-height: 1.1; }
.jcc-calc__hint { font-size: 13px; color: var(--jcc-muted); margin: 8px 0 0 !important; }

/* Composition d'un deck */
.jcc-deck { margin: 26px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.jcc-deck__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.jcc-deck__grid span { aspect-ratio: 63 / 88; border-radius: 3px; }
.jcc-deck .is-pokemon { background: var(--jcc-red); }
.jcc-deck .is-dresseurs { background: var(--jcc-blue); }
.jcc-deck .is-energies { background: var(--jcc-yellow); }
.jcc-deck figcaption ul { list-style: none; margin: 0 0 8px !important; padding: 0 !important; }
.jcc-deck figcaption li { display: flex; align-items: center; gap: 8px; margin: 0 0 4px !important; font-weight: 700; }
.jcc-deck figcaption li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: currentColor; }
.jcc-deck figcaption li.is-pokemon { color: var(--jcc-red); }
.jcc-deck figcaption li.is-dresseurs { color: var(--jcc-blue); }
.jcc-deck figcaption li.is-energies { color: var(--jcc-yellow-2); }
.jcc-deck figcaption li b { color: var(--jcc-ink); }
.jcc-deck figcaption span { font-size: 13px; color: var(--jcc-muted); }

/* Tableaux */
.jcc-table-wrap { overflow-x: auto; margin: 22px 0; }
.article-body .jcc-table { margin: 0; font-size: 14px; }
.jcc-bar { display: inline-block; width: 80px; height: 8px; border-radius: 999px; background: var(--jcc-line); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.jcc-bar i { display: block; height: 100%; background: var(--jcc-blue); }

/* Échange de Récompenses */
.jcc-prizes { list-style: none; margin: 26px 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jcc-prizes li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--jcc-line); margin: 0 !important; font-size: 14px; line-height: 1.45; }
.jcc-prizes li b { font-size: 15px; color: var(--jcc-ink); }
.jcc-prizes__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.jcc-prize { display: inline-flex; gap: 3px; padding: 5px; border-radius: 8px; background: var(--jcc-bg); }
.jcc-prize i { width: 16px; height: 22px; border-radius: 3px; background: radial-gradient(circle, #fff 0 18%, var(--jcc-red) 19% 30%, transparent 31%), linear-gradient(160deg, var(--jcc-blue-2), var(--jcc-deep)); }
.jcc-prize--2 { background: #E6F0FE; }
.jcc-prize--3 { background: #FFF1D6; }

/* Circuit Play! Pokémon */
.jcc-circuit { list-style: none; margin: 26px 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.jcc-circuit li { display: grid; grid-template-columns: 40px 200px 1fr; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; margin: 0 0 0 calc(var(--i) * 18px) !important; color: #fff; background: linear-gradient(90deg, color-mix(in srgb, var(--jcc-deep) calc(100% - var(--i) * 12%), var(--jcc-yellow-2)), var(--jcc-blue)); font-size: 14px; }
.jcc-circuit span { font-size: 22px; }
.jcc-circuit em { font-style: normal; color: rgba(255, 255, 255, .85); }

/* Encadrés */
.jcc-box { margin: 24px 0; padding: 16px 18px; border-radius: 16px; border-left: 5px solid; background: #fff; box-shadow: var(--jcc-shadow-sm); }
.jcc-box p { margin-bottom: 10px; }
.jcc-box ul, .jcc-box ol { margin-bottom: 0; }
.jcc-box__title { font-weight: 800; color: var(--jcc-ink); margin-bottom: 6px !important; font-size: 15px; }
.jcc-box--astuce { border-color: var(--jcc-yellow-2); background: #FFFBEB; }
.jcc-box--attention { border-color: var(--jcc-red); background: #FFF2EE; }
.jcc-box--retenir { border-color: var(--jcc-blue); background: #EEF4FF; }
.jcc-box--exemple { border-color: #3FA129; background: #F0F9EC; }
.jcc-box--vocabulaire { border-color: #9141CB; background: #F6EEFC; }

/* Quiz */
.jcc-quiz { margin: 34px 0 10px; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, var(--jcc-deep), var(--jcc-blue)); color: #fff; }
.jcc-quiz__title { font-size: 18px; font-weight: 800; color: var(--jcc-yellow); margin-bottom: 12px !important; }
.jcc-quiz__list { display: grid; gap: 10px; }
.jcc-q { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 12px 16px; }
.jcc-q summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.jcc-q summary::-webkit-details-marker { display: none; }
.jcc-q summary::before { content: "?"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--jcc-yellow); color: var(--jcc-deep); }
.jcc-q[open] summary::before { content: "✓"; background: #3FA129; color: #fff; }
.jcc-q p { margin: 10px 0 0 32px !important; color: rgba(255, 255, 255, .9); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .jcc-latest, .jcc-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jcc-states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .jcc-hero__inner, .jcc-news-layout, .jcc-memo, .jcc-anat, .jcc-calc, .jcc-deck { grid-template-columns: minmax(0, 1fr); }
  .jcc-hero__fan { height: 300px; order: -1; }
  .jcc-hero__card { width: 150px; }
  .jcc-hero__card--0 { width: 165px; }
  .jcc-online { position: static; }
  .jcc-turn { grid-template-columns: minmax(0, 1fr); }
  .jcc-steps, .jcc-check { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jcc-anat__card { max-width: 360px; margin: 0 auto; }
  .jcc-circuit li { grid-template-columns: 34px 1fr; margin-left: 0 !important; }
  .jcc-circuit em { grid-column: 2; }
}
@media (max-width: 640px) {
  .jcc-sec { padding: 44px 0; }
  .jcc-hero__lead { font-size: 16px; }
  .jcc-hero__fan { height: 230px; }
  .jcc-hero__card { width: 115px; }
  .jcc-hero__card--0 { width: 128px; }
  .jcc-hero__levels, .jcc-latest, .jcc-levels, .jcc-news, .jcc-memo__grid, .jcc-glossary, .jcc-prizes, .jcc-steps, .jcc-lesson-next { grid-template-columns: minmax(0, 1fr); }
  .jcc-lesson-next__next { grid-column: auto; }
  .jcc-states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jcc-mat { grid-template-columns: 1fr 1fr; grid-template-areas: "active deck" "prizes discard" "stadium stadium" "bench bench"; padding: 12px; }
  .jcc-mat__slot { width: 36px; }
  .jcc-mat__slot--active { width: 54px; }
  .jcc-mat__bench { gap: 5px; }
  .jcc-path__level { padding: 18px; }
  .jcc-path__head { flex-direction: column; }
  .jcc-lesson-bar__hub { margin-left: 0; }
  .jcc-deck__grid { grid-template-columns: repeat(10, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .jcc-home *, .jcc-academy *, .article-body [class*="jcc-"] { transition: none !important; }
}
