/* =========================================================
   MON PARCOURS — CV interactif « descente en rappel »
   Une corde, un explorateur, les étapes d'une carrière.
   Sans JS / prefers-reduced-motion : tout est visible d'emblée.
   ========================================================= */

.parcours-page {
  --pc-bg: #050d1c;
  --pc-ink: #eaf3fb;
  --pc-soft: #b9c8d8;
  --pc-muted: #8ea3b9;
  --pc-cyan: #28d2ea;
  --pc-line: rgba(40, 210, 234, 0.22);
  --col: 200px;          /* colonne centrale réservée à la corde */
  --cw: 150px;           /* largeur du personnage */
  --rope-x: 0.53;        /* position de la corde dans l'image du personnage */
  color: var(--pc-ink);
  background: var(--pc-bg);
}
.parcours-page main { background: var(--pc-bg); }

.pc a:focus-visible,
.pc button:focus-visible,
.pc summary:focus-visible {
  outline: 3px solid var(--pc-cyan);
  outline-offset: 3px;
  border-radius: 10px;
}

.pc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--pc-cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.pc-eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- Boutons ---------- */
.pc .button-primary {
  color: #04101f;
  background: linear-gradient(135deg, #5fe6f6, #28d2ea 60%, #1bb3d1);
  border: 0;
  box-shadow: 0 10px 30px rgba(40, 210, 234, 0.28);
}
.pc .button-primary:hover {
  color: #04101f;
  background: linear-gradient(135deg, #8af0fb, #3ddcf1 60%, #22bedb);
}
.pc .cv-sheet .button-primary { box-shadow: none; }
.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.pc-btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(40, 210, 234, 0.55);
}
.pc-btn-ghost:hover {
  background: rgba(40, 210, 234, 0.12);
  color: #fff;
}
.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.pc-actions-center { justify-content: center; }

/* =========================================================
   HÉROS
   ========================================================= */
.pc-hero {
  position: relative;
  overflow: hidden;
  padding: 160px 24px 40px;
  background:
    radial-gradient(ellipse at 78% 20%, rgba(40, 210, 234, 0.1), transparent 55%),
    linear-gradient(180deg, #081a31 0%, #071426 100%);
}
.pc-hero-map {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%2328d2ea' stroke-width='1'%3E%3Cpath d='M-20 210c60-70 140-90 220-40s170 40 240-30'/%3E%3Cpath d='M-20 250c70-60 150-70 220-20s160 50 240-20'/%3E%3Cpath d='M-20 290c80-50 150-50 220 0s160 60 240-10'/%3E%3Cpath d='M-20 170c50-80 130-110 220-60s180 30 240-40'/%3E%3Cpath d='M-20 130c40-90 120-130 220-80s190 20 240-50'/%3E%3Cpath d='M-20 330c90-40 160-30 220 20s160 60 240 0'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.pc-hero-peak {
  position: absolute;
  right: max(-40px, calc((100vw - 1320px) / 2));
  top: 40px;
  width: min(62vw, 820px);
  height: auto;
}
.pc-flag { transform-origin: 501px 56px; animation: pcFlag 2.6s ease-in-out infinite; }
@keyframes pcFlag { 50% { transform: scaleX(0.86) skewY(-4deg); } }
.pc-hero-trail {
  stroke-dashoffset: 0;
  animation: pcTrail 6s linear infinite;
}
@keyframes pcTrail { to { stroke-dashoffset: -110; } }

.pc-hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.pc-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.1rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.pc-lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
}
.pc-intro {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--pc-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}
.pc-hint {
  margin: 46px 0 0;
  color: var(--pc-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pc-hint span {
  display: inline-block;
  margin-left: 6px;
  color: var(--pc-cyan);
  animation: pcHint 1.8s ease-in-out infinite;
}
@keyframes pcHint { 50% { transform: translateY(5px); } }

/* =========================================================
   L'EXPÉDITION (corde + étapes)
   ========================================================= */
.pc-expedition {
  position: relative;
  overflow: clip;
  padding: 10px 0 0;
  background: linear-gradient(180deg, #071426 0%, #050f1f 45%, #030914 100%);
}

/* parois de la grotte : simple vignette sombre sur les bords */
.pc-walls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(1, 5, 12, 0.85), transparent 70%),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(1, 5, 12, 0.85), transparent 70%);
  background-size: 16vw 100%, 16vw 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
}
.pc-wall { display: none; }

/* point d'ancrage */
.pc-anchor {
  position: relative;
  height: 74px;
  max-width: 1180px;
  margin: 0 auto;
}
.pc-ledge {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 230px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 12px 12px 18px 18px;
  background: linear-gradient(180deg, #2a3d55 0%, #142338 55%, #0b1626 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 14px 28px rgba(0, 0, 0, 0.55);
}
.pc-piton {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  border: 4px solid #a9b8c8;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.pc-timeline {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 70px;
}

/* --- la corde : torsade + volume --- */
.pc-rope {
  position: absolute;
  top: -26px;
  bottom: 0;
  left: 50%;
  width: 12px;
  margin-left: -6px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 28%, rgba(255, 255, 255, 0.3) 47%, rgba(0, 0, 0, 0) 66%, rgba(0, 0, 0, 0.6) 100%),
    repeating-linear-gradient(-58deg, #167fae 0 4px, #4fdcf5 4px 6px, #0f6a93 6px 10px);
  box-shadow: 0 0 16px rgba(40, 210, 234, 0.16);
  /* la corde se perd dans l'obscurité en bas */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent);
}
.pc-rope-lit {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--lit, 0px);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(40, 210, 234, 0) 0%, rgba(40, 210, 234, 0.4) 100%);
  box-shadow: 0 0 14px rgba(40, 210, 234, 0.45);
  mix-blend-mode: screen;
}

/* --- le personnage --- */
.pc-climber {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: var(--cw);
  margin-left: calc(var(--cw) * var(--rope-x) * -1);
  margin-top: calc(var(--cw) * -0.087); /* les mains = point de référence */
  transform: translate3d(0, var(--y, 0px), 0);
  pointer-events: none;
  will-change: transform;
}
.pc-swing {
  position: relative;
  display: block;
  transform-origin: calc(var(--rope-x) * 100%) 8%;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s ease-out;
}
.pc-swing img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: calc(var(--rope-x) * 100%) 8%;
  transform: translateY(var(--bob, 0px));
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.55));
}
.pc-climber:not(.is-moving) .pc-swing img { animation: pcSway 3.4s ease-in-out infinite; }
@keyframes pcSway {
  0%, 100% { transform: rotate(-0.8deg); }
  50% { transform: rotate(0.8deg); }
}
.pc-torch { /* lumière de lampe frontale autour de l'explorateur */
  position: absolute;
  left: 50%;
  top: 35%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.11) 0%, rgba(40, 210, 234, 0.05) 32%, transparent 64%);
  z-index: -1;
}
.pc-say {
  position: absolute;
  left: 40%;
  bottom: 100%;
  padding: 7px 12px;
  border-radius: 14px;
  color: #071426;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, 6px) scale(0.92);
  transform-origin: center bottom;
  transition: opacity 0.25s, transform 0.25s;
}
.pc-climber.is-saying .pc-say { opacity: 1; transform: translate(-50%, 0); }
.pc-climber.is-landed { opacity: 0; transition: opacity 0.4s; }

/* poussières qui tombent quand il descend vite */
.pc-pebble {
  position: absolute;
  z-index: 4;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #6f8197;
  pointer-events: none;
  animation: pcFall 0.9s ease-in forwards;
}
@keyframes pcFall {
  to { transform: translate(var(--dx, 0px), 90px) rotate(160deg); opacity: 0; }
}

/* chauve-souris dérangée */
.pc-bat {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: auto;
  fill: #1c2c42;
  stroke: #31455f;
  stroke-width: 0.6;
  opacity: 0.9;
}
.pc-bat.is-flown { animation: pcBat 1.6s ease-in forwards; }
@keyframes pcBat {
  0% { transform: none; }
  15% { transform: translate(6px, -6px) scaleY(0.6); }
  30% { transform: translate(30px, -26px) scaleY(1.1); }
  45% { transform: translate(60px, -40px) scaleY(0.6); }
  60% { transform: translate(110px, -70px) scaleY(1.1); }
  100% { transform: translate(260px, -180px) scaleY(0.6); opacity: 0; }
}

/* --- les étapes --- */
.pc-steps {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pc-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--col) 1fr;
}
.pc-step + .pc-step { margin-top: -64px; }
.pc-left .pc-card { grid-column: 1; justify-self: end; --dx: -30px; }
.pc-right .pc-card { grid-column: 3; justify-self: start; --dx: 30px; }

/* anneau sur la corde */
.pc-ring {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 40px;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  border: 5px solid #8b9db0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.25), 0 3px 6px rgba(0, 0, 0, 0.6);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.pc-ring span { display: none; }
.pc-ring::after { /* petit rivet lumineux côté carte */
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #2b3f57;
  transition: background 0.4s, box-shadow 0.4s;
}
.pc-left .pc-ring::after { left: -9px; }
.pc-right .pc-ring::after,
.pc-parallel .pc-ring::after { right: -9px; }
.pc-parallel .pc-ring::after { left: -9px; right: auto; }
.pc-step.is-lit .pc-ring {
  border-color: #c9f4fb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(40, 210, 234, 0.25), 0 0 22px rgba(40, 210, 234, 0.65);
}
.pc-step.is-lit .pc-ring::after { background: var(--pc-cyan); box-shadow: 0 0 10px var(--pc-cyan); }

/* trait de liaison anneau → carte */
.pc-step::before {
  content: "";
  position: absolute;
  top: 60px;
  height: 2px;
  width: calc(var(--col) / 2 - 29px);
  background: linear-gradient(90deg, rgba(40, 210, 234, 0.12), rgba(40, 210, 234, 0.4));
  transition: background 0.4s;
}
.pc-left::before,
.pc-parallel::before { right: calc(50% + 29px); transform: scaleX(-1); }
.pc-right::before { left: calc(50% + 29px); }
.pc-step.is-lit::before { background: linear-gradient(90deg, rgba(40, 210, 234, 0.45), var(--pc-cyan)); }

/* cartes */
.pc-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  padding: 22px 24px 20px;
  border: 1px solid var(--pc-line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(22, 46, 78, 0.78), rgba(8, 19, 37, 0.92));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s, box-shadow 0.4s;
}
.pc-step.is-lit .pc-card,
.pc-step.is-lit .pc-parallel-head {
  border-color: rgba(40, 210, 234, 0.5);
}
.pc-card-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  align-items: center;
}
.pc-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(40, 210, 234, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(40, 210, 234, 0.28), rgba(8, 20, 38, 0.9) 70%);
  box-shadow: 0 0 18px rgba(40, 210, 234, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 1.75rem;
  line-height: 1;
}
.pc-kicker {
  margin: 0 0 4px;
  color: var(--pc-cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pc-title {
  margin: 0;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pc-meta {
  margin: 4px 0 0;
  color: var(--pc-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.pc-resume {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--pc-soft);
  font-size: 0.97rem;
  line-height: 1.6;
}
.pc-more { margin-top: 12px; }
.pc-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pc-cyan);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.pc-more summary::-webkit-details-marker { display: none; }
.pc-more summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.25s;
}
.pc-more[open] summary::before { transform: rotate(45deg); }
.pc-more-body h4 {
  margin: 12px 0 4px;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pc-more-body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--pc-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.pc-chips li {
  padding: 4px 10px;
  border: 1px solid rgba(40, 210, 234, 0.25);
  border-radius: 999px;
  color: #bfeff7;
  background: rgba(40, 210, 234, 0.07);
  font-size: 0.76rem;
  font-weight: 600;
}
.pc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
}
.pc-link {
  color: var(--pc-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(40, 210, 234, 0.35);
  text-underline-offset: 4px;
}
.pc-link:hover { color: #fff; }

/* étape « Aujourd'hui » : activités en parallèle */
.pc-step.pc-parallel {
  row-gap: 26px;
  margin-top: 0;
  padding-top: 40px;
}
.pc-parallel .pc-ring { top: 80px; }
.pc-parallel::before { top: 100px; }
.pc-parallel-head {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  max-width: 470px;
  margin-top: 46px;
  padding: 18px 22px;
  border: 1px dashed rgba(40, 210, 234, 0.35);
  border-radius: 18px;
  text-align: right;
  transition: opacity 0.7s, transform 0.7s, border-color 0.4s;
  --dx: -30px;
}
.pc-parallel-head .pc-title { font-size: 1.7rem; }
.pc-together {
  display: block;
  margin-top: 4px;
  color: var(--pc-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: normal;
}
.pc-parallel-grid { display: contents; }
.pc-parallel-grid .pc-card:nth-child(1) { grid-column: 3; grid-row: 1; justify-self: start; --dx: 30px; }
.pc-parallel-grid .pc-card:nth-child(2) { grid-column: 1; grid-row: 2; justify-self: end; --dx: -30px; }
.pc-parallel-grid .pc-card:nth-child(3) { grid-column: 3; grid-row: 2; justify-self: start; --dx: 30px; }
.pc-parallel-grid .pc-card:nth-child(4) { grid-column: 1; grid-row: 3; justify-self: end; --dx: -30px; }
.pc-parallel-grid .pc-card:nth-child(5) { grid-column: 3; grid-row: 3; justify-self: start; --dx: 30px; }
.pc-parallel .pc-title { font-size: 1.22rem; }

/* apparition (uniquement si JS + animations autorisées) */
.pc-anim .pc-step:not(.is-reached) .pc-card,
.pc-anim .pc-step:not(.is-reached) .pc-parallel-head {
  opacity: 0;
  transform: translate3d(var(--dx, 0px), 18px, 0) scale(0.98);
}
.pc-anim .pc-step.is-reached .pc-parallel-grid .pc-card:nth-child(2) { transition-delay: 0.08s; }
.pc-anim .pc-step.is-reached .pc-parallel-grid .pc-card:nth-child(3) { transition-delay: 0.16s; }
.pc-anim .pc-step.is-reached .pc-parallel-grid .pc-card:nth-child(4) { transition-delay: 0.24s; }

/* =========================================================
   ARRIVÉE — le trésor
   ========================================================= */
.pc-finale {
  --ground-top: 150px;
  position: relative;
  z-index: 2;
  padding: 0 24px 110px;
  text-align: center;
}
.pc-finale::after { /* le sol continue sous le texte */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--ground-top) + 292px);
  bottom: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0a1729 0%, #071426 100%);
}
.pc-ground {
  position: absolute;
  left: 0;
  top: var(--ground-top);
  z-index: -1;
  width: 100%;
  height: 300px;
}
.pc-finale-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  height: 260px;
}
.pc-welcome {
  width: auto;
  height: 270px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.55));
  transition: opacity 0.6s, transform 0.7s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.pc-anim .pc-finale:not(.is-in) .pc-welcome { opacity: 0; transform: translateY(-120px) scale(0.85); }

.pc-chest {
  position: relative;
  width: 118px;
  height: 92px;
  margin-bottom: 8px;
}
.pc-chest-box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  border-radius: 6px 6px 8px 8px;
  background:
    linear-gradient(90deg, transparent 18%, #c9a24a 18% 24%, transparent 24% 76%, #c9a24a 76% 82%, transparent 82%),
    linear-gradient(180deg, #6b4524, #3e2714);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.45), 0 10px 18px rgba(0, 0, 0, 0.5);
}
.pc-chest-lock {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 16px;
  height: 18px;
  margin-left: -8px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f1cf74, #b88a2c);
}
.pc-chest-lid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  height: 34px;
  border-radius: 60px 60px 4px 4px / 40px 40px 4px 4px;
  background:
    linear-gradient(90deg, transparent 18%, #c9a24a 18% 24%, transparent 24% 76%, #c9a24a 76% 82%, transparent 82%),
    linear-gradient(180deg, #7d532c, #4a2f18);
  transform-origin: 6% 100%;
  transition: transform 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) 0.35s;
}
.pc-chest-glow {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 200px;
  height: 160px;
  margin-left: -100px;
  background: radial-gradient(ellipse at 50% 100%, rgba(40, 210, 234, 0.55), rgba(40, 210, 234, 0.08) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.8s 0.6s;
}
.pc-chest.is-open .pc-chest-lid { transform: rotate(-32deg); }
.pc-chest.is-open .pc-chest-glow { opacity: 1; transition-delay: 0.3s; }
.pc-finale-copy { position: relative; margin-top: 40px; }
.pc-finale-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.pc-finale-copy > p:not(.pc-eyebrow) {
  margin: 14px 0 0;
  color: var(--pc-soft);
  font-size: 1.08rem;
}
.pc-finale-copy .pc-eyebrow::after { display: none; }

/* =========================================================
   JAUGE « Votre exploration » (grand écran)
   ========================================================= */
.pc-gauge {
  position: fixed;
  right: 20px;
  top: 50%;
  z-index: 30;
  display: none;
  width: 92px;
  transform: translateY(-50%);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.pc-gauge.is-visible { opacity: 1; visibility: visible; }
.pc-gauge-title {
  margin: 0 0 12px;
  color: var(--pc-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}
.pc-gauge-list {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pc-gauge-list::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.14);
}
.pc-gauge-list a {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22344b;
  box-shadow: 0 0 0 3px var(--pc-bg);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.pc-gauge-list a.is-passed { background: rgba(40, 210, 234, 0.6); }
.pc-gauge-list a.is-current {
  background: var(--pc-cyan);
  box-shadow: 0 0 0 3px var(--pc-bg), 0 0 14px var(--pc-cyan);
  transform: scale(1.3);
}
.pc-gauge-label {
  position: absolute;
  right: 22px;
  top: 50%;
  padding: 4px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 20, 38, 0.95);
  border: 1px solid var(--pc-line);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.pc-gauge-list a:hover .pc-gauge-label,
.pc-gauge-list a:focus-visible .pc-gauge-label { opacity: 1; }
.pc-gauge-depth {
  margin: 12px 0 0;
  color: var(--pc-cyan);
  font-size: 0.72rem;
  font-weight: 800;
}
@media (min-width: 1320px) {
  .pc-gauge { display: block; }
}

/* =========================================================
   LE CV EN UN COUP D'ŒIL
   ========================================================= */
.pc-cv {
  position: relative;
  padding: 90px 24px 100px;
  background: #071426;
  scroll-margin-top: 80px;
}
.pc-cv-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.pc-cv h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}
.cv-sheet {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px;
  color: var(--ink);
  background: #fbfdff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.cv-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line);
}
.cv-name {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.cv-tag { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.cv-contact {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.cv-contact a { color: #0b6fa0; font-weight: 700; }
.cv-intro {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}
.cv-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  margin-top: 28px;
}
.cv-col h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cv-col h3 small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
}
.cv-exps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cv-exp {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.cv-when {
  color: #0b6fa0;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
}
.cv-exp strong { display: block; font-size: 1rem; }
.cv-meta { display: block; margin-top: 2px; color: var(--muted); font-size: 0.86rem; }
.cv-exp p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
.cv-skill { margin-bottom: 16px; }
.cv-skill h4 { margin: 0 0 6px; font-size: 0.88rem; }
.cv-skill .pc-chips { margin: 0; }
.cv-skill .pc-chips li {
  color: #0d4f6f;
  background: #e8f7fb;
  border-color: #bfe7f1;
}
.cv-forms { margin: 0; padding: 0; list-style: none; }
.cv-forms li { display: grid; gap: 2px; font-size: 0.92rem; }
.cv-forms span { color: var(--ink-soft); }
.cv-col section + section { margin-top: 24px; }
.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}
.cv-actions .pc-btn-ghost { color: var(--ink); border-color: #9fdbea; background: #fff; }
.pc-back {
  display: inline-block;
  margin-top: 24px;
  color: var(--pc-cyan);
  font-weight: 700;
}

/* =========================================================
   MOBILE : corde dans une colonne latérale
   ========================================================= */
@media (max-width: 899px) {
  .parcours-page { --col: 82px; --cw: 76px; }
  .pc-rope { width: 7px; margin-left: -3.5px; }
  .pc-hero { padding: 128px 20px 30px; }
  .pc-hero-peak { width: 70vw; top: 90px; right: -12vw; opacity: 0.4; }
  .pc-walls { display: none; }
  .pc-anchor { height: 56px; }
  .pc-ledge, .pc-piton { left: calc(16px + var(--col) / 2); }
  .pc-ledge { width: 70px; }
  .pc-timeline { padding: 26px 16px 60px; }
  .pc-rope { left: calc(16px + var(--col) / 2); }
  .pc-climber { left: calc(16px + var(--col) / 2); }
  .pc-torch { width: 240px; height: 240px; }
  .pc-say { display: none; }
  .pc-bat { display: none; }
  .pc-step,
  .pc-step.pc-parallel { grid-template-columns: var(--col) 1fr; row-gap: 18px; }
  .pc-step + .pc-step { margin-top: 30px; }
  .pc-step.pc-parallel { padding-top: 0; }
  .pc-left .pc-card,
  .pc-right .pc-card,
  .pc-parallel-head,
  .pc-parallel-grid .pc-card:nth-child(n) {
    grid-column: 2;
    grid-row: auto;
    justify-self: stretch;
    max-width: none;
    --dx: 24px;
  }
  .pc-parallel-head { margin-top: 0; text-align: left; }
  .pc-parallel-head .pc-title { font-size: 1.4rem; }
  .pc-ring,
  .pc-parallel .pc-ring {
    left: var(--col);
    top: 30px;
    width: 30px;
    height: 30px;
    margin-left: calc(var(--col) / -2 - 15px);
    border-width: 4px;
  }
  .pc-ring::after,
  .pc-left .pc-ring::after,
  .pc-parallel .pc-ring::after { left: auto; right: -8px; width: 8px; height: 8px; margin-top: -4px; }
  .pc-step::before,
  .pc-left::before,
  .pc-right::before,
  .pc-parallel::before {
    top: 44px;
    left: calc(var(--col) / 2 + 15px);
    right: auto;
    width: calc(var(--col) / 2 - 15px);
    transform: none;
  }
  .pc-card { padding: 18px 16px 16px; border-radius: 18px; }
  .pc-card-head { grid-template-columns: 48px 1fr; gap: 12px; }
  .pc-icon { width: 48px; height: 48px; font-size: 1.35rem; }
  .pc-title { font-size: 1.15rem; }
  .pc-finale { --ground-top: 96px; }
  .pc-finale-stage { height: 200px; }
  .pc-welcome { height: 200px; }
  .pc-chest { transform: scale(0.8); transform-origin: bottom; }
  .cv-grid { grid-template-columns: 1fr; gap: 28px; }
  .cv-exp { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================
   MOINS D'ANIMATIONS
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .pc-hero-trail,
  .pc-hint span,
  .pc-climber .pc-swing img { animation: none !important; }
  .pc-card,
  .pc-welcome,
  .pc-chest-lid { transition: none !important; }
}

/* =========================================================
   IMPRESSION : le CV seul, propre, sans décor
   ========================================================= */
@media print {
  @page { margin: 14mm; }
  body.parcours-page,
  .parcours-page main { background: #fff !important; color: #000; }
  .site-header,
  .mobile-menu,
  .skip-link,
  .pc-hero,
  .pc-expedition,
  .site-footer,
  .ygm,
  .ygc,
  .contact-modal,
  .pc-back,
  .cv-actions,
  .pc-cv .pc-eyebrow,
  .pc-cv h2 { display: none !important; }
  .pc-cv { padding: 0; background: none; }
  .pc-cv-inner { max-width: none; }
  .cv-sheet { padding: 0; box-shadow: none; border-radius: 0; background: none; }
  .cv-grid { grid-template-columns: 1.5fr 1fr; gap: 28px; }
  .cv-exp { break-inside: avoid; }
  .cv-contact a,
  .cv-when { color: #000; }
  .cv-skill .pc-chips li { background: none; border-color: #999; color: #000; }
}


/* =========================================================
   LE COFFRE AU TRÉSOR (cliquable) + bulle d'invitation
   ========================================================= */
.pc-chest {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pc-chest:hover { transform: scale(1.06) rotate(-2deg); }
.pc-chest:focus-visible { outline: 3px solid var(--pc-cyan); outline-offset: 8px; border-radius: 14px; }
.pc-finale.is-in .pc-chest:not(.is-open) { animation: pcChestWiggle 2.4s ease-in-out 1.2s infinite; }
@keyframes pcChestWiggle {
  0%, 70%, 100% { transform: none; }
  76% { transform: rotate(-4deg) translateY(-3px); }
  82% { transform: rotate(4deg) translateY(-3px); }
  88% { transform: rotate(-2deg); }
}
.pc-finale.is-in .pc-chest:not(.is-open) .pc-chest-glow { opacity: 0.45; transition-delay: 0.6s; }
.pc-chest-sparkles i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8f7ff;
  box-shadow: 0 0 10px #28d2ea;
  opacity: 0;
}
.pc-chest-sparkles i:nth-child(1) { left: 6px; top: 8px; }
.pc-chest-sparkles i:nth-child(2) { right: 4px; top: 0; }
.pc-chest-sparkles i:nth-child(3) { left: 50%; top: -14px; }
.pc-chest-sparkles i:nth-child(4) { right: 26px; top: 22px; }
.pc-finale.is-in .pc-chest-sparkles i { animation: pcTwinkle 1.8s ease-in-out infinite; }
.pc-chest-sparkles i:nth-child(2) { animation-delay: 0.45s !important; }
.pc-chest-sparkles i:nth-child(3) { animation-delay: 0.9s !important; }
.pc-chest-sparkles i:nth-child(4) { animation-delay: 1.35s !important; }
@keyframes pcTwinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1); } }
.pc-chest-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  padding: 5px 10px;
  border-radius: 999px;
  color: #04101f;
  background: var(--pc-cyan);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.pc-finale.is-in .pc-chest:not(.is-open) .pc-chest-hint { opacity: 1; transition-delay: 1.4s; animation: pcHint 1.6s ease-in-out infinite; }

.pc-welcome-wrap { position: relative; }
.pc-welcome-say {
  position: absolute;
  left: 58%;
  bottom: calc(100% - 26px);
  z-index: 2;
  width: max-content;
  max-width: 220px;
  padding: 9px 14px;
  border-radius: 16px 16px 16px 4px;
  color: #071426;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transform-origin: left bottom;
  transition: opacity 0.3s, transform 0.3s;
}
.pc-finale.is-in .pc-welcome-say { opacity: 1; transform: none; transition-delay: 0.8s; }
.pc-finale.is-opened .pc-welcome-say { opacity: 0; transition-delay: 0s; }

/* =========================================================
   LE CV EN POP-UP (si JavaScript est actif)
   Sans JS : la section reste affichée normalement en bas de page.
   ========================================================= */
.pc-cv-backdrop,
.pc-cv-close { display: none; }
.pc-js .pc-cv {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: none;
}
.pc-js .pc-cv.is-open { display: block; }
.pc-js .pc-cv-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 18, 0.82);
  backdrop-filter: blur(6px);
  animation: pcFade 0.3s ease;
}
.pc-js .pc-cv-inner {
  position: relative;
  margin: 40px auto;
  padding: 0 20px 30px;
  animation: pcPop 0.55s cubic-bezier(0.2, 1.2, 0.3, 1);
  transform-origin: 50% 100%;
}
.pc-js .pc-cv-close {
  display: grid;
  place-items: center;
  position: sticky;
  top: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin: 0 0 -44px auto;
  border: 1px solid rgba(40, 210, 234, 0.6);
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 20, 38, 0.9);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.pc-js .pc-cv-close:hover { background: var(--pc-cyan); color: #04101f; }
.pc-js .pc-cv h2 { padding-right: 56px; }
html.pc-cv-lock { overflow: hidden; }
@keyframes pcFade { from { opacity: 0; } }
@keyframes pcPop { from { opacity: 0; transform: translateY(60px) scale(0.85); } }
@media (prefers-reduced-motion: reduce) {
  .pc-js .pc-cv-inner,
  .pc-js .pc-cv-backdrop,
  .pc-finale.is-in .pc-chest,
  .pc-chest-sparkles i,
  .pc-chest-hint { animation: none !important; }
}
@media print {
  .pc-js .pc-cv { position: static; display: block !important; overflow: visible; }
  .pc-cv-backdrop, .pc-cv-close { display: none !important; }
  .pc-js .pc-cv-inner { margin: 0; padding: 0; animation: none; }
}

/* bouton « voix du guide » (débloque le son sur mobile) */
.pc-voice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px dashed rgba(40, 210, 234, 0.5);
  border-radius: 999px;
  color: #bfeff7;
  background: rgba(40, 210, 234, 0.06);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.pc-voice:hover { background: rgba(40, 210, 234, 0.14); }
.pc-voice[aria-pressed="true"] { border-style: solid; color: #04101f; background: var(--pc-cyan); }

/* =========================================================
   L'HISTOIRE COMPLÈTE EN AUDIO (option A : pastille discrète)
   ========================================================= */
.pc-audio-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--pc-soft);
  font-size: 0.9rem;
}
.pc-audio-hint svg { color: var(--pc-cyan); flex: none; }
.pc-icon.has-audio { position: relative; }
.pc-audio-dot {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #0a1729;
  border-radius: 50%;
  color: #04101f;
  background: var(--pc-cyan);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(40, 210, 234, 0.55);
  transition: transform 0.2s;
}
.pc-audio-dot svg { width: 12px; height: 12px; fill: currentColor; }
.pc-step.is-lit .pc-audio-dot { animation: pcPing 2.4s ease-out infinite; }
@keyframes pcPing { 70% { box-shadow: 0 0 0 10px rgba(40, 210, 234, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 210, 234, 0); } }
.pc-audio-dot:hover { transform: scale(1.12); }
.pc-audio-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(var(--pc-cyan) calc(var(--p, 0) * 1%), rgba(40, 210, 234, 0.12) 0);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 3px), #000 calc(50% - 2px));
  mask: radial-gradient(circle, transparent calc(50% - 3px), #000 calc(50% - 2px));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.is-playing .pc-audio-ring,
.is-paused .pc-audio-ring { opacity: 1; }
.pc-listen {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  padding: 4px 0;
  border: 0;
  color: var(--pc-cyan);
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.pc-listen svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.pc-listen:hover span:first-of-type { text-decoration: underline; text-underline-offset: 3px; }
.pc-listen-time { font-variant-numeric: tabular-nums; opacity: 0.85; }
.pc-listen-time::before { content: "· "; }
.is-playing .pc-listen.is-active span:first-of-type::after { content: " — en cours"; font-weight: 600; }
.is-paused .pc-listen.is-active span:first-of-type::after { content: " — en pause"; font-weight: 600; }
.pc-listen + .pc-listen { display: flex; margin-top: 2px; }
/* étape « aujourd'hui » : l'en-tête devient une vraie carte d'étape */
.pc-parallel-head { text-align: left; }
.pc-parallel-head .pc-title { font-size: 1.45rem; }
.pc-parallel-head .pc-together { margin-top: 14px; }
/* CV : compétences en lignes simples */
.cv-skill p { margin: 4px 0 0; color: inherit; font-size: 0.92rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .pc-step.is-lit .pc-audio-dot { animation: none; }
}
@media print {
  .pc-audio-dot, .pc-audio-ring, .pc-listen, .pc-audio-hint { display: none !important; }
}
.cv-forms li + li { margin-top: 10px; }

/* ---------- accessibilité : le texte de chaque audio, dans une fenêtre ---------- */
.pc-audio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; }
.pc-audio-row .pc-listen { margin-top: 0; }
.pc-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(40, 210, 234, 0.4);
  border-radius: 999px;
  color: #d9f6fb;
  background: rgba(40, 210, 234, 0.08);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pc-read svg { width: 15px; height: 15px; flex: none; }
.pc-read:hover { background: rgba(40, 210, 234, 0.18); border-color: var(--pc-cyan); }
.pc-tr-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 1px solid rgba(40, 210, 234, 0.45);
  border-radius: 20px;
  color: #eaf3fb;
  background: linear-gradient(160deg, #10284a, #071226);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.pc-tr-dialog::backdrop { background: rgba(2, 8, 18, 0.72); backdrop-filter: blur(3px); }
.pc-tr-dialog header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 14px;
  background: #0f2545;
  border-bottom: 1px solid rgba(40, 210, 234, 0.2);
}
.pc-tr-dialog .pc-tr-kicker { margin: 0 0 4px; color: var(--pc-cyan); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.pc-tr-dialog h2 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.pc-tr-close {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(40, 210, 234, 0.4);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.pc-tr-close:hover { background: rgba(40, 210, 234, 0.15); }
.pc-tr-body { padding: 18px 24px 26px; overflow: auto; }
.pc-tr-body p { margin: 0 0 14px; color: #d6e4f2; font-size: 1.02rem; line-height: 1.7; }
.pc-tr-body p:last-child { margin-bottom: 0; }
@media print { .pc-read { display: none !important; } }
