/* Guides « pas à pas » (inc/guide-pas.php, guide-pas-template.php, 3 décembre 2026). Sombre par défaut, clair en fin de fichier. */
.gp {
  --gp-bg: #121116; --gp-card: #1d1b23; --gp-card2: #26232e; --gp-line: rgba(255,255,255,.12);
  --gp-fg: #f3eff4; --gp-fg2: #d6d0d9; --gp-mut: #a9a2b0; --gp-pink: #ff7aa0; --gp-gold: #f2b53c; --gp-ok: #3ccf86;
  --gp-route: linear-gradient(180deg, #d6235f, #ff8a3d 55%, #f2b53c);
  --gp-d: var(--font-display); --gp-u: var(--font-ui);
  background: var(--gp-bg); color: var(--gp-fg); padding: 0; overflow-x: clip;
}
.gp a { color: inherit; }
.gp img { display: block; max-width: 100%; }
.gp .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.gp-ico { width: 20px; height: 20px; flex: none; }
.gp :is(a, button, input, label):focus-visible { outline: 2px solid var(--gp-pink); outline-offset: 3px; border-radius: 6px; }

/* ---------- haut de page ---------- */
.gp-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(460px, 50vw, 660px); overflow: hidden; background: #121116; color: #f3eff4; }
.gp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #121116 2%, rgba(18,17,22,.78) 34%, rgba(18,17,22,.12) 78%); }
.gp-hero-in { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 34px; }
.gp-crumbs { display: flex; gap: 10px; font: 600 15px/1 var(--gp-u); color: #d6d0d9; }
.gp-crumbs a { text-decoration: none; }
.gp-crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gp-hero h1 { margin: 14px 0 0; max-width: 16ch; font: 400 clamp(58px, 9vw, 128px)/.88 var(--gp-d); letter-spacing: .3px; color: #fff; text-wrap: balance; background: none; -webkit-text-fill-color: currentColor; }
.gp-hero h1 .gp-sub { display: block; max-width: 46ch; margin-top: 16px; font: 500 clamp(19px, 2vw, 25px)/1.35 var(--font-body); letter-spacing: 0; color: #e9e4ec; text-wrap: pretty; }
.gp-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 26px 0 0; }
.gp-facts > div { display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; justify-content: start; }
.gp-facts .gp-ico { grid-row: span 2; width: 28px; height: 28px; color: #f2b53c; }
.gp-facts dt { font: 600 14px/1.2 var(--gp-u); color: #c9c2cf; }
.gp-facts dd { margin: 0; font: 700 19px/1.2 var(--gp-u); color: #fff; }
.gp-by { margin: 22px 0 0; font-size: 14.5px; color: #c9c2cf; }

/* ---------- avant de partir ---------- */
.gp-brief { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 44px; padding-bottom: 64px; }
.gp-intro { margin: 0; font-size: 19px; line-height: 1.65; color: var(--gp-fg2); }
.gp-safe { display: flex; gap: 12px; margin: 22px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--gp-mut); }
.gp-safe .gp-ico { margin-top: 2px; color: var(--gp-ok); }
.gp-kit h2 { margin: 0 0 8px; font: 400 34px/1 var(--gp-d); color: var(--gp-fg); }
.gp-kit ul { list-style: none; margin: 0 0 22px; padding: 0; }
.gp-kit li { border-bottom: 1px solid var(--gp-line); }
.gp-kit li label { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 0; font-size: 17px; line-height: 1.4; cursor: pointer; }
.gp-kit input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 24px; width: 24px; min-width: 0; height: 24px; min-height: 0; padding: 0; margin: 0; box-sizing: border-box; border: 2px solid var(--gp-mut); border-radius: 7px; background: none center/16px no-repeat; cursor: pointer; }
.gp-kit input[type="checkbox"]:checked { border-color: var(--gp-ok); background-color: var(--gp-ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308130d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E"); }
.gp-kit li input:checked + span { color: var(--gp-mut); text-decoration: line-through; }
.gp-kit .gp-bref li { padding: 12px 0; font-size: 16.5px; line-height: 1.5; color: var(--gp-fg2); }
.gp-go { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 0 24px; border-radius: 14px; background: #d6235f; color: #fff !important; font: 700 21px/1 var(--gp-u); text-decoration: none; }
.gp-go span { font-weight: 600; font-size: 17px; }
.gp-go:hover { background: #b91b50; }
.gp-wake { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 15.5px; color: var(--gp-fg2); cursor: pointer; }
.gp-wake[hidden] { display: none; }

/* ---------- itinéraire ---------- */
.gp-route { padding-bottom: 40px; }
.gp-h2 { margin: 0; max-width: 22ch; font: 400 clamp(42px, 5vw, 68px)/.95 var(--gp-d); color: var(--gp-fg); text-wrap: balance; }
.gp-chapo { max-width: 68ch; margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--gp-fg2); }
.gp-steps { --fill: 0; position: relative; list-style: none; margin: 36px 0 0; padding: 0 0 0 92px; display: grid; gap: 40px; }
.gp-steps::before, .gp-steps::after { content: ""; position: absolute; left: 25px; top: 30px; bottom: 0; width: 8px; border-radius: 8px; background: var(--gp-card2); }
.gp-steps::after { background: var(--gp-route); clip-path: inset(0 0 calc((1 - var(--fill)) * 100%) 0 round 8px); }
.gp-step { position: relative; z-index: 1; margin: 0; scroll-margin-top: 92px; }
.gp-pin { position: absolute; z-index: 1; left: -92px; top: 0; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--gp-bg); border: 4px solid var(--gp-card2); color: var(--gp-mut); transition: background .25s, border-color .25s, color .25s; }
.gp-pin b { font: 400 30px/1 var(--gp-d); transform: translateY(1px); }
.gp-step.is-cur .gp-pin { border-color: #d6235f; color: var(--gp-fg); box-shadow: 0 0 0 7px rgba(214,35,95,.22); }
.gp-step.is-done .gp-pin { background: var(--gp-ok); border-color: var(--gp-ok); color: #08130d; }
.gp-card { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); border-radius: 20px; overflow: hidden; background: var(--gp-card); }
.gp-card.no-img { grid-template-columns: 1fr; }
.gp-card figure { position: relative; margin: 0 !important; padding: 0; border: 0; border-radius: 0; background: #0c0b0f; display: flex; flex-direction: column; max-width: none; width: auto; }
.gp-card figure img { width: 100%; height: 100%; min-height: 0; flex: 1; object-fit: cover; aspect-ratio: 16/9; border-radius: 0; margin: 0; }
.gp-card figure img { cursor: zoom-in; }
.gp-card figcaption { margin: 0; padding: 9px 16px 10px; font: 400 13.5px/1.4 var(--font-body); text-align: left; color: #b9b2c0; background: #0c0b0f; }
.gp-copy { display: flex; flex-direction: column; padding: 28px 30px 26px; }
.gp-copy h3 { margin: 0; font: 400 clamp(32px, 3vw, 42px)/1 var(--gp-d); letter-spacing: .2px; color: var(--gp-fg); text-wrap: balance; }
.gp-txt { margin-top: 12px; font-size: 16.5px; line-height: 1.62; color: var(--gp-fg2); }
.gp-txt p { margin: 0 0 12px; }
.gp-txt a { color: var(--gp-pink); text-decoration: underline; text-underline-offset: 3px; }
.gp-txt strong { color: var(--gp-fg); }
.gp-txt .callout { display: block; margin: 4px 0 12px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--gp-line); border-radius: 0; background: none; }
.gp-txt .callout .ic { display: none; }
.gp-txt .callout p { margin: 0; font-size: 15.5px; color: var(--gp-fg2); }
.gp-txt .callout strong { color: var(--gp-gold); }
.gp-done { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 48px; margin-top: auto; padding: 0 20px 0 16px; border: 2px solid var(--gp-line); border-radius: 12px; color: var(--gp-fg); font: 700 18px/1 var(--gp-u); cursor: pointer; }
.gp-done:hover { border-color: var(--gp-ok); }
.gp-done[aria-pressed="true"] { border-color: transparent; background: rgba(60,207,134,.16); color: var(--gp-ok); }

/* Fin : le texte de fin de mission du jeu. */
.gp-end { display: none; padding: 80px 0 40px; text-align: center; scroll-margin-top: 80px; outline: none; }
.gp-end.is-on { display: block; }
.gp-end-t { margin: 0; font: 400 clamp(60px, 11vw, 150px)/.9 var(--gp-d); color: var(--gp-gold); }
.gp-end.is-on .gp-end-t { animation: gp-pass .7s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes gp-pass { from { transform: scale(1.5); opacity: 0; } }
.gp-end-s { margin: 12px 0 0; font-size: 20px; color: var(--gp-fg2); }
.gp-reset { min-height: 44px; margin-top: 18px; padding: 0 10px; color: var(--gp-mut); text-decoration: underline; text-underline-offset: 4px; font-size: 16px; cursor: pointer; }

/* ---------- barre « étape suivante » ---------- */
.gp-bar { position: fixed; z-index: 60; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; width: min(560px, calc(100vw - 24px)); padding: 8px; border-radius: 18px; overflow: hidden; background: #2b2734; color: #f3eff4; box-shadow: 0 12px 36px rgba(0,0,0,.5); }
.gp-bar[hidden] { display: none; }
.gp-bar p { flex: 1; min-width: 0; margin: 0; }
.gp-bar small { display: block; font: 500 14px/1.2 var(--gp-u); color: #c9c2cf; }
.gp-bar b { display: block; font: 700 18px/1.25 var(--gp-u); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-bar button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 50px; height: 50px; border-radius: 12px; color: inherit; background: rgba(255,255,255,.09); cursor: pointer; }
.gp-bar button:disabled { opacity: .35; cursor: default; }
.gp-bar .gp-next { padding: 0 10px 0 18px; background: #d6235f; color: #fff; font: 700 18px/1 var(--gp-u); }
.gp-bar .gp-next:hover { background: #b91b50; }
.gp-bar i { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #d6235f, #ff8a3d, #f2b53c); transform-origin: 0 0; transition: transform .25s; }

/* ---------- la suite de l'article ---------- */
.gp-more { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 70px; }
.gp-toc { position: sticky; top: 96px; align-self: start; }
.gp-toc p { margin: 0 0 10px; font: 400 32px/1 var(--gp-d); color: var(--gp-fg); }
.gp-toc ul { list-style: none; margin: 0; padding: 0; }
.gp-toc a { display: block; padding: 9px 0; border-top: 1px solid var(--gp-line); font-size: 15px; line-height: 1.35; color: var(--gp-fg2); text-decoration: none; }
.gp-toc a:hover { color: var(--gp-pink); }
.gp-art.vc-article { max-width: none; margin: 0; padding: 0; background: none; }
.gp-art .article-body { max-width: 800px; padding: 0; }
.gp-art .article-body > h2:first-child { margin-top: 0; }
.gp-art h2 { scroll-margin-top: 92px; }

@media (max-width: 960px) {
  .gp-brief { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 30px; padding-bottom: 48px; }
  .gp-steps { padding-left: 74px; }
  .gp-pin { left: -74px; }
  .gp-card { grid-template-columns: 1fr; }
  .gp-done { margin-top: 8px; }
  .gp-more { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .gp-toc { position: static; }
}
@media (max-width: 640px) {
  .gp-wrap { padding-left: 18px; padding-right: 18px; }
  .gp-hero { min-height: 520px; }
  .gp-hero-in { padding-top: 130px; padding-bottom: 26px; }
  .gp-hero::after { background: linear-gradient(0deg, #121116 4%, rgba(18,17,22,.86) 46%, rgba(18,17,22,.05) 88%); }
  .gp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .gp-facts dd { font-size: 17px; }
  .gp-intro { font-size: 17.5px; }
  /* Le tracé passe derrière les cartes, le repère se pose sur l'image. */
  .gp-steps { padding-left: 0; gap: 34px; }
  .gp-steps::before, .gp-steps::after { left: 34px; }
  .gp-pin { left: 12px; top: -20px; width: 52px; height: 52px; }
  .gp-card { position: relative; border-radius: 16px; }
  .gp-copy { padding: 20px 18px 20px; }
  .gp-card.no-img .gp-copy { padding-top: 46px; }
  .gp-done { align-self: stretch; justify-content: center; min-height: 52px; }
  .gp-end { padding: 60px 0 20px; }
}
@media (prefers-reduced-motion: reduce) { .gp * { animation: none !important; transition: none !important; } }

/* ---------- mode clair ---------- */
html[data-theme="light"] .gp {
  --gp-bg: #f7f4f0; --gp-card: #fff; --gp-card2: #ddd5cc; --gp-line: rgba(26,16,20,.14);
  --gp-fg: #1a1014; --gp-fg2: #43353b; --gp-mut: #66565d; --gp-pink: #b8174f; --gp-gold: #8a5a00; --gp-ok: #0c7a4b;
}
html[data-theme="light"] .gp-hero::after { background: linear-gradient(0deg, rgba(18,17,22,.94) 2%, rgba(18,17,22,.72) 36%, rgba(18,17,22,.1) 80%); }
html[data-theme="light"] .gp-card { box-shadow: 0 2px 14px rgba(60,40,30,.09); }
html[data-theme="light"] .gp-end-t { color: #d6235f; }
html[data-theme="light"] .gp-step.is-done .gp-pin { color: #fff; }
html[data-theme="light"] .gp-done[aria-pressed="true"] { background: rgba(12,122,75,.12); }
