/* ============================================================
   davylheureux.fr — Page « Mon parcours » (/davy)
   CSS du tracé / étapes / halo / fondus TRANSPLANTÉ VERBATIM du
   prototype validé (site/prototype-parcours.html).
   Adaptations minimales (signalées) :
   - Variables locales --ivory / --cyan / --muted (mêmes couleurs que
     le prototype). On NE redéfinit PAS --bg pour ne pas écraser le
     token du site (le fond noir + WebGL vient de site.css).
   - body / * / .faux-header / .faux-footer NON repris : le shell du
     site (site.css + header/footer injectés) s'en charge.
   - .step-text p + p { margin-top } : le prototype n'avait qu'un seul
     paragraphe par étape ; le contenu réel en a plusieurs → espacement.
   - .closing en flex-column pour empiler la phrase + la pilule CTA.
   ============================================================ */
:root { --ivory:#F2EFE9; --cyan:#00E5FF; --muted:rgba(242,239,233,.55); }

/* Accroche agrandie sur desktop (~+50% vs 46vh d'origine) : à l'arrivée
   sur la page on ne voit QUE le titre + « Défiler », ni le tracé ni la
   photo 1. Le tracé ne se révèle qu'au scroll (startLine = 70% viewport
   dans davy.js). Mobile restauré à 46vh plus bas (le SVG y est masqué). */
.hero{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 24px 30px}
.hero .eyebrow{color:var(--muted);font-size:13px;letter-spacing:.2em;text-transform:uppercase;margin-bottom:16px}
.hero h1{font-size:clamp(40px,6vw,64px);font-weight:700;line-height:1.05;letter-spacing:-.01em}
.hero .scroll-hint{margin-top:34px;color:var(--muted);font-size:13px;letter-spacing:.15em;text-transform:uppercase;animation:pulse 2.4s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:.3}50%{opacity:.85}}

.journey{position:relative;width:100%;margin:0 auto;padding:0}
.journey svg{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}

.trace,.trace-glow{fill:none;stroke-linecap:round;stroke-linejoin:round}
.trace-glow{stroke:var(--ivory);stroke-width:16;opacity:.10;filter:blur(8px)}
.trace{stroke:var(--ivory);stroke-width:2.2;opacity:.85}

.steps{position:relative;z-index:2}
.step{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:62vh}

/* photo : reduite d'un tiers (~42vh), centree dans sa moitie */
.step-photo{
  position:relative;z-index:2;
  height:42vh;width:84%;
  background:linear-gradient(135deg,rgba(242,239,233,.16),rgba(242,239,233,.06));
  border:1px solid rgba(242,239,233,.14);border-radius:12px;
  display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;letter-spacing:.1em;text-transform:uppercase;
}
/* Photo réelle (PNG carré 1:1, bords déjà fondus) : on retire TOUT
   habillage du placeholder (fond, bordure, border-radius) pour que
   l'image se fonde directement dans le noir. Conteneur CARRÉ (aspect-
   ratio 1/1) pour ne pas déformer, taille généreuse dans la demi-colonne.
   z-index 2 hérité → reste au-dessus du tracé SVG (z-index 1). Aucun
   filtre / opacity / mask / shadow. */
.step-photo.has-img{
  background:none;border:none;border-radius:0;
  width:clamp(416px, 39vw, 560px); /* ~+30% vs version précédente (320/30vw/430) */
  height:auto;
  aspect-ratio:1 / 1;
}
.step-photo.has-img img{
  display:block;width:100%;height:auto;
}
/* Photo réelle CENTRÉE dans sa colonne (sa demi-largeur), pas collée au
   bord intérieur. Spécificité (0,4,0) pour battre .step.right/.left
   .step-photo { justify-self:start/end } (0,3,0). */
.step.right .step-photo.has-img,
.step.left  .step-photo.has-img{ justify-self:center; }
/* right : photo col2 (collee vers le centre = a gauche de sa moitie), texte
   col1 cale vers le centre via justify-self:end. Le texte se lit aligné à
   GAUCHE (lisibilité) — seul le positionnement de la colonne le rapproche
   du centre. */
.step.right .step-photo{grid-column:2;grid-row:1;justify-self:start}
.step.right .step-text {grid-column:1;grid-row:1;text-align:left;justify-self:end;max-width:74%;padding-right:4%}
/* left : photo col1 (collee vers le centre = a droite de sa moitie), texte col2 cale vers le centre (=gauche) */
.step.left  .step-photo{grid-column:1;grid-row:1;justify-self:end}
.step.left  .step-text {grid-column:2;grid-row:1;text-align:left;justify-self:start;max-width:74%;padding-left:4%}

.step-text .yr{color:var(--cyan);font-size:14px;letter-spacing:.15em;text-transform:uppercase;margin-bottom:12px}
.step-text h2{font-size:28px;font-weight:700;line-height:1.12;margin-bottom:14px}
.step-text p{color:var(--muted);font-size:16px;line-height:1.65}
/* Espacement entre blocs (le contenu réel a plusieurs paragraphes) */
.step-text p + p{margin-top:16px}
/* « Un point, une ligne » : chaque phrase d'un bloc est un .ph en bloc,
   léger espacement vertical intra-bloc. */
.step-text .ph{display:block}
.step-text .ph + .ph{margin-top:7px}

.pair-fx{opacity:0;transform:translateY(26px);transition:opacity .4s ease,transform .4s ease}

/* ADAPTATION : flex-column pour empiler la phrase de clôture + la pilule */
.closing{min-height:46vh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;padding:6vh 24px 90px}
.closing h1{font-size:38px;font-weight:700;margin-bottom:30px}

/* Pilule CTA (reprend les valeurs de .pill .pill-light du site) */
.parcours-cta{display:inline-block;padding:15px 36px;border-radius:100px;font-family:inherit;font-size:15px;font-weight:700;letter-spacing:.01em;text-decoration:none;background:#FAFAFA;color:#0A0A0A;box-shadow:0 10px 40px -8px rgba(255,255,255,.25);transition:transform .15s,box-shadow .2s}
.parcours-cta:hover{transform:translateY(-2px);box-shadow:0 16px 50px -8px rgba(255,255,255,.4)}

@media(max-width:760px){
  .journey svg{display:none}
  .hero{min-height:46vh} /* mobile : accroche inchangée (pas d'effet de tracé à préserver) */

  /* Étapes EMPILÉES (plus de grille 2 colonnes, plus de superposition) :
     photo en haut (grid-row 1), texte en dessous (grid-row 2), quel que
     soit le côté desktop. Le desktop met photo ET texte en grid-row:1 →
     sur 1 colonne ça les mettait dans la même cellule (d'où le texte
     caché derrière la photo). On force donc des rangées distinctes. */
  .step{grid-template-columns:1fr;min-height:auto;margin-bottom:72px;gap:22px}
  .step.right .step-photo,
  .step.left  .step-photo{grid-column:1;grid-row:1;justify-self:center;margin-bottom:4px}
  .step.right .step-text,
  .step.left  .step-text{grid-column:1;grid-row:2;text-align:left;justify-self:stretch;max-width:100%;padding:0 22px}

  /* Photo réelle carrée, pleine largeur (cap 480px), centrée. */
  .step-photo.has-img{width:100%;max-width:480px;height:auto;margin:0 auto}

  /* Fondu d'opacité au scroll RÉACTIVÉ en mobile : le JS (onScroll) pilote
     l'opacité de chaque .pair-fx (photo et texte séparément) selon sa
     position. On laisse donc le base .pair-fx (opacity:0 + transition)
     agir, sans override. Zone d'apparition plus généreuse gérée côté JS. */
}
