/* Guides pratiques — styles préfixés .gp */
.gp { --gp-ink: #0f172a; --gp-soft: #475569; --gp-line: #e2e8f0; color: var(--gp-ink); }
.gp [hidden] { display: none !important; }
.gp-wrap { max-width: 1320px; margin: 0 auto; padding: 0 2rem; }   /* même largeur que l'en-tête du site (.nav-inner) */
.gp-hero { background: radial-gradient(1000px 380px at 85% -10%, rgba(56, 189, 248, .28), transparent 60%), linear-gradient(135deg, #020617 0%, #0f172a 55%, #1e3a5f 100%); color: #fff; padding: 34px 0 30px; }
.gp-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.gp-hero h1 .bi { color: #38bdf8; }
.gp-lead { color: rgba(255, 255, 255, .8); max-width: 760px; margin: 0 0 18px; font-size: 1.02rem; }
.gp-login { margin: 14px 0 0; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.gp-login a { color: #7dd3fc; }
.gp-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.gp-stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.gp-stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .55); margin-top: 5px; }
.gp-progress { flex: 1; min-width: 220px; }
.gp-progress-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.gp-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #38bdf8, #a78bfa); }

.gp-body { padding-top: 22px; padding-bottom: 56px; }
.gp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gp-filters button { border: 1px solid var(--gp-line); background: #fff; color: var(--gp-soft); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .88rem; cursor: pointer; }
.gp-filters button.is-active { background: var(--gp-ink); border-color: var(--gp-ink); color: #fff; }
.gp-filters button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.gp-grid { display: grid; grid-template-columns: repeat(var(--gp-cols, 4), minmax(0, 1fr)); gap: 16px; }
.gp-grid.gp-cols-2 { --gp-cols: 2; }
.gp-grid.gp-cols-3 { --gp-cols: 3; }
.gp-grid.gp-cols-4 { --gp-cols: 4; }
@media (max-width: 1199px) { .gp-grid.gp-cols-4 { --gp-cols: 3; } }
@media (max-width: 991px)  { .gp-grid.gp-cols-3, .gp-grid.gp-cols-4 { --gp-cols: 2; } }
.gp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gp-line); border-top: 4px solid var(--gp-color); border-radius: 16px; padding: 20px; transition: box-shadow .15s, transform .15s; }
.gp-card:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.gp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gp-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: var(--gp-color); background: color-mix(in srgb, var(--gp-color) 12%, #fff); }
.gp-tag { font-size: .72rem; font-weight: 700; color: var(--gp-soft); background: #f1f5f9; border-radius: 999px; padding: .2rem .6rem; }
.gp-card h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 6px; }
.gp-desc { color: var(--gp-soft); font-size: .9rem; margin: 0 0 14px; flex: 1; }
.gp-prog { margin-bottom: 14px; }
.gp-prog-row { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; font-weight: 700; }
.gp-prog-sub { font-weight: 500; color: var(--gp-soft); font-size: .78rem; margin-top: 4px; }
.gp-prog-bar { height: 7px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 5px; }
.gp-prog-bar span { display: block; height: 100%; width: 0; background: var(--gp-color); }
.gp-new { font-size: .82rem; color: var(--gp-soft); margin: 0 0 14px; }
.gp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gp-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: .6rem .9rem; border-radius: 10px; border: 1px solid var(--gp-line); color: var(--gp-ink); background: #fff; font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.gp-btn:hover { border-color: var(--gp-color); color: var(--gp-ink); }
.gp-btn.primary { background: var(--gp-color); border-color: var(--gp-color); color: #fff; }
.gp-btn.primary:hover { filter: brightness(.92); color: #fff; }
@media (max-width: 600px) { .gp-grid { grid-template-columns: minmax(0, 1fr); } }

/* Trophées transversaux */
.gp-trophies { background: #fff; border: 1px solid var(--gp-line); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.gp-trophies h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.gp-trophies h2 .bi { color: #f59e0b; }
.gp-trophies h2 span { font-size: .85rem; font-weight: 600; color: var(--gp-soft); }
.gp-trophy-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.gp-trophy { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--gp-line); border-radius: 12px; background: #f8fafc; }
.gp-trophy strong { display: block; font-size: .9rem; color: var(--gp-soft); }
.gp-trophy small { display: block; font-size: .76rem; color: var(--gp-soft); line-height: 1.35; }
.gp-trophy.earned { background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.gp-trophy.earned strong { color: var(--gp-ink); }
.gp-medal { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.gp-trophy:not(.earned) .gp-medal { filter: grayscale(1); opacity: .4; }
.tier-bronze { background: linear-gradient(135deg, #f0a35e, #b45309); }
.tier-silver { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.tier-gold { background: linear-gradient(135deg, #fde047, #d97706); }

/* Bandeau escape game */
.gp-escape { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 16px 20px; border-radius: 16px; text-decoration: none;
  color: #e2e8f0; background: radial-gradient(circle at 90% 0%, #164e63 0%, #0b1220 65%); line-height: 1.5; font-size: .92rem; }
.gp-escape:hover { color: #fff; box-shadow: 0 10px 28px rgba(11, 18, 32, .25); }
.gp-escape strong { color: #fff; font-size: 1.02rem; }
.gp-escape-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fbbf24; background: rgba(251, 191, 36, .12); }
.gp-escape-go { margin-left: auto; flex-shrink: 0; font-weight: 700; color: #67e8f9; white-space: nowrap; }
@media (max-width: 600px) { .gp-escape { flex-wrap: wrap; } .gp-escape-go { margin-left: 68px; } }

.gp-escape.gp-inbox { background: radial-gradient(circle at 90% 0%, #1e40af 0%, #0f172a 65%); }
.gp-inbox .gp-escape-icon { color: #93c5fd; background: rgba(147, 197, 253, .12); }
.gp-escape.gp-crisis { background: radial-gradient(circle at 90% 0%, #7f1d1d 0%, #111827 65%); }
.gp-crisis .gp-escape-icon { color: #fca5a5; background: rgba(252, 165, 165, .12); }

/* Parcours par métier */
.gp-jobs { align-items: center; margin-top: -6px; }
.gp-jobs-label { font-size: .82rem; font-weight: 700; color: var(--gp-soft); margin-right: 2px; }
.gp-jobs button .bi { margin-right: 3px; }
.gp-job { background: #f8fafc; border: 1px solid var(--gp-line); border-left: 4px solid #0369a1; border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.gp-job-head { display: flex; gap: 14px; align-items: flex-start; }
.gp-job-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #0369a1; background: #e0f2fe; }
.gp-job h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 4px; }
.gp-job p { margin: 0; color: var(--gp-soft); font-size: .93rem; }
.gp-job-path { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: gpstep; }
.gp-job-path li { counter-increment: gpstep; }
.gp-job-path a { display: inline-flex; align-items: center; gap: 7px; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: #fff; border: 1px solid var(--gp-line); color: var(--gp-ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.gp-job-path a::before { content: counter(gpstep); width: 22px; height: 22px; border-radius: 50%; background: #0369a1; color: #fff; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gp-job-path a:hover { border-color: #0369a1; }
.gp-job-games { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.gp-job-games-label { font-size: .82rem; font-weight: 700; color: var(--gp-soft); }
.gp-job-games a { display: inline-flex; align-items: center; gap: 6px; padding: .35rem .8rem; border-radius: 10px; background: #0f172a; color: #fff; font-size: .84rem; font-weight: 600; text-decoration: none; }
.gp-job-games a small { color: #67e8f9; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.gp-job-games a:hover { background: #1e293b; color: #fff; }
.gp-card.gp-flash { box-shadow: 0 0 0 3px #38bdf8; }
@media (max-width: 600px) { .gp-job-head { flex-direction: column; } .gp-jobs-label { width: 100%; } }

/* Filtres en listes déroulantes */
.gp-select-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 18px; }
.gp-select { display: flex; flex-direction: column; gap: 4px; min-width: 220px; flex: 0 1 280px; margin: 0; }
.gp-select > span { font-size: .78rem; font-weight: 700; color: var(--gp-soft); text-transform: uppercase; letter-spacing: .04em; }
.gp-select select { appearance: none; -webkit-appearance: none; width: 100%; border: 1px solid var(--gp-line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23475569' d='M1.6 5.1a.75.75 0 0 1 1.06 0L8 10.44l5.34-5.34a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 6.16a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") no-repeat right 14px center; padding: .6rem 2.4rem .6rem .9rem; font: inherit; font-weight: 600; color: var(--gp-ink); cursor: pointer; }
.gp-select select:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.gp-count { font-size: .85rem; color: var(--gp-soft); padding-bottom: .7rem; }
.gp-dash { display: flex; align-items: center; gap: 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; font-size: .9rem; }
.gp-dash .bi { color: #d97706; }
@media (max-width: 600px) { .gp-select { flex: 1 1 100%; } }

/* Choix d'affichage : cartes (2, 3 ou 4 colonnes) ou liste */
.gp-view { display: flex; align-items: flex-end; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.gp-view-label { width: 100%; font-size: .78rem; font-weight: 700; color: var(--gp-soft); text-transform: uppercase; letter-spacing: .04em; }
.gp-view-btns { display: inline-flex; border: 1px solid var(--gp-line); border-radius: 12px; background: #fff; padding: 3px; gap: 2px; }
.gp-view-btns button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: 9px; padding: .45rem .75rem; font: inherit; font-weight: 600; font-size: .85rem; color: var(--gp-soft); cursor: pointer; }
.gp-view-btns button[aria-pressed="true"] { background: var(--gp-ink); color: #fff; }
.gp-view-btns button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.gp-cols button { min-width: 2.2rem; justify-content: center; }
@media (max-width: 991px) { .gp-cols { display: none; } }
@media (max-width: 600px) { .gp-view { margin-left: 0; } }

.gp-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gp-grid.is-list .gp-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(170px, 220px) auto; grid-template-areas: "icon title prog actions" "icon desc prog actions";
    column-gap: 18px; row-gap: 2px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--gp-line); border-left: 4px solid var(--gp-color); }
.gp-grid.is-list .gp-card:hover { transform: none; }
.gp-grid.is-list .gp-card-top { display: contents; }
.gp-grid.is-list .gp-icon { grid-area: icon; align-self: start; }
.gp-grid.is-list .gp-tag { display: none; }
.gp-grid.is-list .gp-card h2 { grid-area: title; font-size: 1.05rem; margin: 0; }
.gp-grid.is-list .gp-desc { grid-area: desc; margin: 0; font-size: .85rem; }
.gp-grid.is-list .gp-prog, .gp-grid.is-list .gp-new { grid-area: prog; margin: 0; }
.gp-grid.is-list .gp-actions { grid-area: actions; flex-wrap: nowrap; }
.gp-grid.is-list .gp-btn { flex: 0 0 auto; }
@media (max-width: 991px) {
    .gp-grid.is-list .gp-card { grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "icon title" "icon desc" "prog prog" "actions actions"; row-gap: 8px; }
    .gp-grid.is-list .gp-actions { flex-wrap: wrap; }
    .gp-grid.is-list .gp-btn { flex: 1; }
}

/* Héros : icônes des jeux ; bannières des jeux en bas de page */
.gp-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.gp-hero-games { display: flex; gap: 10px; padding-top: 4px; }
.gp-hero-games a { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: var(--gp-gc); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; transition: background .15s, transform .15s; }
.gp-hero-games a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); color: var(--gp-gc); }
.gp-hero-games a:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.gp-games { margin-top: 40px; }
.gp-games-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.gp-games-title .bi { color: #38bdf8; }
@media (max-width: 600px) { .gp-hero-games { padding-top: 0; margin-bottom: 14px; } }

/* Héros : même style que le tableau de bord (réglages admin/dashboard_hero.php, champs vides = Typographie) */
.gp-hero.gph { color: var(--td-hero-text, #fff); }
.gp-hero.gph.is-light { --td-hero-text: var(--c-title, #111c2d); }
.gph h1 { color: var(--td-hero-text, #fff); }
.gph h1 .bi { color: var(--td-acc1, var(--gold, #38bdf8)); }
.gph .gp-lead { color: var(--td-hero-text, #fff); opacity: .8; }
.gph .gp-login { color: var(--td-hero-text, #fff); opacity: .75; }
.gph .gp-login a { color: var(--td-acc1, var(--gold, #7dd3fc)); }
.gph-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--td-acc1, var(--c-eyebrow, var(--gold, #a5b4fc))); margin: 0 0 .3rem; }
.gph-stats { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.1rem 0 0; }
.gph-stats > div { min-width: 96px; text-align: center; padding: .6rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.gph-stats strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--td-hero-text, #fff); }
.gph-stats span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .6; margin-top: .35rem; }
.gph-prog { margin: 1.2rem 0 0; max-width: 640px; }
.gph-prog-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gph-prog-row > span { opacity: .6; }
.gph-prog-row b { font-size: 1.25rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.gph-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; margin: .45rem 0 .4rem; }
.gph-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--td-acc1, var(--gold, #38bdf8)), var(--td-acc2, var(--gold-lt, #a78bfa))); transition: width 1.2s cubic-bezier(.22, 1, .36, 1); }
.gph-sub { font-size: .8rem; opacity: .65; margin: 0; }
.gph-tro { margin: 1.2rem 0 0; }
.gph-tro-head { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin: 0 0 .55rem; }
.gph-tro ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.gph-tro-item { position: relative; }
.gph-tro-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; cursor: help; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); transition: transform .15s; }
.gph-tro-btn:hover, .gph-tro-btn:focus-visible { transform: translateY(-2px) scale(1.06); }
.gph-tro-btn:focus-visible { outline: 2px solid var(--td-acc1, var(--gold, #a5b4fc)); outline-offset: 3px; }
.gph-tro-btn.tier-bronze { background: linear-gradient(135deg, #f0a35e, #b45309); }
.gph-tro-btn.tier-silver { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.gph-tro-btn.tier-gold { background: linear-gradient(135deg, #fde047, #d97706); }
.gph-tro-item:not(.earned) .gph-tro-btn { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.gph-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); width: min(230px, 80vw); background: #fff; color: #111c2d; border-radius: 10px; padding: .7rem .85rem;
           box-shadow: 0 12px 30px rgba(2, 6, 23, .3); font-size: .82rem; line-height: 1.4; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; z-index: 20; pointer-events: none; }
.gph-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
.gph-tip strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.gph-tip em { display: inline-block; margin-top: .4rem; font-style: normal; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; }
.gph-tip em.ok { color: #166534; background: #dcfce7; }
.gph-tip em.no { color: #475569; background: #f1f5f9; }
.gph-tro-item:hover .gph-tip, .gph-tro-btn:focus + .gph-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.gph-tro-item:first-child .gph-tip, .gph-tro-item:nth-child(2) .gph-tip { left: 0; transform: translateY(4px); }
.gph-tro-item:first-child:hover .gph-tip, .gph-tro-item:nth-child(2):hover .gph-tip, .gph-tro-item:first-child .gph-tro-btn:focus + .gph-tip, .gph-tro-item:nth-child(2) .gph-tro-btn:focus + .gph-tip { transform: translateY(0); }
.gph-tro-item:first-child .gph-tip::after, .gph-tro-item:nth-child(2) .gph-tip::after { left: 22px; }
.gph.is-light .gph-stats > div { background: rgba(15, 23, 42, .04); border-color: rgba(15, 23, 42, .1); }
.gph.is-light .gph-bar { background: rgba(15, 23, 42, .1); }
.gph.is-light .gph-tro-item:not(.earned) .gph-tro-btn { background: rgba(15, 23, 42, .06); color: rgba(15, 23, 42, .4); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .14); }
.gph.is-light .gp-hero-games a { background: rgba(15, 23, 42, .05); border-color: rgba(15, 23, 42, .12); }
@media (max-width: 600px) { .gph-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gph.is-light .gp-hero-games a, .gph.is-light .gp-hero-games a:hover { color: color-mix(in srgb, var(--gp-gc) 50%, #000); }
