/* Page « Comment ça marche » : l'histoire d'un recrutement, dans l'ordre du
   temps. Une couleur par rôle : employeuse (vert profond, à gauche),
   candidat (corail, à droite), ancien employeur (vert citron), plateforme
   (pointillés, au centre). Le moment est écrit de l'autre côté de la ligne.
   Les innovations sont signalées par une étoile et un encadré. Le rôle est
   toujours écrit en toutes lettres : la couleur n'est jamais seule. */
.journey-page {
  --employer: #153c34;
  --employer-text: #dfe9e2;
  --candidate: #f28a6f;
  --candidate-bg: #fff1ec;
  --candidate-line: #f3c1b2;
  --candidate-ink: #9c3b22;
  --referee: #d2f36b;
  --referee-bg: #f6fbe3;
  --referee-line: #dcebab;
  --referee-ink: #4a6612;
  --star: #e2a400;
}
.desktop-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline 2px var(--lime); text-underline-offset: 7px; }
.mobile-dock a[aria-current="page"] { color: var(--ink); }
.journey-width { width: min(1160px, calc(100% - 56px)); margin: 0 auto; }

/* En-tête */
.journey-hero { padding: 56px 0 26px; }
.journey-hero h1 { max-width: 900px; margin: 16px 0 18px; color: var(--ink); font: 800 clamp(40px, 6.2vw, 76px)/1.02 var(--display); letter-spacing: -.03em; }
.journey-hero h1 em { color: #6f9178; font-style: normal; }
.journey-lead { max-width: 740px; margin: 0 0 24px; color: #4f6359; font-size: 18px; line-height: 1.6; }
.journey-cast { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.journey-cast li { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px 0 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); font-size: 14px; }
.journey-cast li b { font-weight: 800; }
.journey-cast i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-style: normal; }
.journey-cast .is-employer i { background: var(--employer); }
.journey-cast .is-candidate i { background: var(--candidate); }
.journey-cast .is-referee i { background: var(--referee); }
.journey-cast .is-auto i { border: 1.5px dashed #71827a; color: #4f6359; }

/* Les innovations, en tête de page : des étiquettes qui mènent au moment. */
.journey-innovations { margin: 28px 0 6px; padding: 22px 24px; border-radius: 22px; background: var(--ink); }
.journey-innovations h2 { margin: 0 0 14px; color: #fff; font: 800 clamp(20px, 2.4vw, 26px)/1.15 var(--display); }
.journey-innovations h2 span { color: var(--lime); }
.innovation-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.innovation-grid a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(210, 243, 107, .3); border-radius: 99px; color: #fff; font-size: 14px; font-weight: 700; transition: background .16s, border-color .16s; }
.innovation-grid a::before { content: "★"; margin-right: 7px; color: var(--lime); }
.innovation-grid a:hover, .innovation-grid a:focus-visible { border-color: var(--lime); background: rgba(210, 243, 107, .1); }

/* Frise : le moment d'un côté de la ligne, la carte de l'autre. */
.journey { position: relative; margin: 30px 0 0; padding: 0; list-style: none; }
.journey::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px); background: repeating-linear-gradient(to bottom, #c3cfc4 0 8px, transparent 8px 15px); }
.journey-chapter { position: relative; margin: 42px 0 26px; text-align: center; }
.journey-chapter h2 { display: inline-flex; margin: 0; padding: 10px 22px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); font: 800 clamp(19px, 2.2vw, 24px)/1.1 var(--display); }
.journey-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; margin: 0 0 18px; scroll-margin-top: 24px; }
.journey-step::before { content: ""; position: absolute; z-index: 1; top: 24px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border: 4px solid var(--paper); border-radius: 50%; }
.journey-when { display: grid; gap: 2px; padding-top: 14px; color: var(--ink); }
.journey-when b { font: 800 clamp(22px, 2.6vw, 30px)/1 var(--display); letter-spacing: -.02em; }
.journey-when span { color: #5c7066; font-size: 14px; font-weight: 700; }
.journey-step article { position: relative; padding: 18px 22px 20px; border-radius: 20px; }
.journey-step article::after { content: ""; position: absolute; top: 32px; width: 46px; height: 2px; }

/* Côté employeuse : la carte à gauche, le moment à droite. */
.journey-step.is-employer article { grid-column: 1; grid-row: 1; margin-right: 46px; background: var(--employer); color: var(--employer-text); }
.journey-step.is-employer .journey-when { grid-column: 2; grid-row: 1; padding-left: 46px; }
.journey-step.is-employer article::after { right: -46px; background: var(--employer); }
.journey-step.is-employer::before { background: var(--employer); }
/* Côté candidat et ancien employeur : le moment à gauche, la carte à droite. */
.journey-step.is-candidate .journey-when, .journey-step.is-referee .journey-when { grid-column: 1; grid-row: 1; padding-right: 46px; text-align: right; }
.journey-step.is-candidate article, .journey-step.is-referee article { grid-column: 2; grid-row: 1; margin-left: 46px; color: #34473d; }
.journey-step.is-candidate article { border: 1px solid var(--candidate-line); background: var(--candidate-bg); }
.journey-step.is-candidate article::after { left: -46px; background: var(--candidate); }
.journey-step.is-candidate::before { background: var(--candidate); }
.journey-step.is-referee article { border: 1px solid var(--referee-line); background: var(--referee-bg); }
.journey-step.is-referee article::after { left: -46px; background: #a9cf45; }
.journey-step.is-referee::before { background: #a9cf45; }
/* La plateforme : un encart au centre, sur la ligne. */
.journey-step.is-auto { display: block; text-align: center; }
.journey-step.is-auto::before { display: none; }
.journey-step.is-auto article { position: relative; z-index: 1; display: inline-block; max-width: 560px; padding: 16px 22px; border: 1.5px dashed #9fb0a5; border-radius: 18px; background: var(--paper); color: #34473d; text-align: left; }
.journey-step.is-auto article::after { display: none; }
.journey-step.is-auto .journey-when { display: block; padding: 0 0 8px; text-align: center; }
.journey-step.is-auto .journey-when b { font-size: 18px; }
.journey-step.is-auto .journey-when span { display: inline; margin-left: 6px; }

/* Contenu d'une étape */
.journey-who { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.journey-who::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.is-employer .journey-who { color: var(--lime); }
.is-employer .journey-who::before { background: var(--lime); }
.is-candidate .journey-who { color: var(--candidate-ink); }
.is-candidate .journey-who::before { background: var(--candidate); }
.is-referee .journey-who { color: var(--referee-ink); }
.is-referee .journey-who::before { background: #a9cf45; }
.is-auto .journey-who { color: #4f6359; }
.is-auto .journey-who::before { content: "⟳"; width: auto; height: auto; border-radius: 0; font-size: 14px; letter-spacing: 0; }
.journey-step h3 { margin: 0 0 6px; font: 800 clamp(19px, 2vw, 22px)/1.2 var(--display); }
.is-employer h3 { color: #fff; }
.is-candidate h3, .is-referee h3, .is-auto h3 { color: var(--ink); }
.is-auto h3 { font-size: 18px; }
.journey-story { margin: 0; font-size: 15.5px; line-height: 1.5; }
.is-auto .journey-story { font-size: 15px; }

/* L'innovation de l'étape : une ligne, l'étoile et le nom en gras. */
.journey-innovation { margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.journey-innovation b { display: block; }
.journey-innovation b::before { content: "★ "; }
.is-employer .journey-innovation { border: 1px solid rgba(210, 243, 107, .45); background: rgba(210, 243, 107, .1); color: #dfe9e2; }
.is-employer .journey-innovation b { color: #fff; }
.is-employer .journey-innovation b::before { color: var(--lime); }
.is-candidate .journey-innovation, .is-referee .journey-innovation { border: 1px solid #f0d7a0; background: #fff8e6; color: #3d3a2c; }
.is-candidate .journey-innovation b, .is-referee .journey-innovation b { color: var(--ink); }
.is-candidate .journey-innovation b::before, .is-referee .journey-innovation b::before { color: var(--star); }

/* Aussi possible à ce moment-là */
.journey-also { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.journey-also li { padding: 5px 10px; border-radius: 99px; font-size: 13px; line-height: 1.35; }
.is-employer .journey-also li { background: rgba(255, 255, 255, .08); color: #dfe9e2; }
.is-candidate .journey-also li { background: rgba(255, 255, 255, .7); color: #4a3128; }
.is-referee .journey-also li, .is-auto .journey-also li { background: rgba(255, 255, 255, .75); color: #3e4d33; }
.journey-also-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pour finir */
.journey-end { margin: 56px 0 76px; padding: 38px 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--white); text-align: center; }
.journey-end-note { max-width: 560px; margin: -8px auto 20px; color: #4f6359; font-size: 15px; line-height: 1.5; }
.journey-end h2 { margin: 0 0 20px; color: var(--ink); font: 800 clamp(28px, 4vw, 42px)/1.1 var(--display); }
.journey-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.journey-button { display: inline-flex; align-items: center; gap: 16px; min-height: 54px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 800; }
.journey-button.is-candidate { background: var(--candidate); color: #2d140c; }
.journey-button.is-employer { background: var(--employer); color: #fff; }
.journey-button.is-employer span { color: var(--lime); }

/* Téléphone : une colonne, la ligne à gauche, le moment au-dessus de la carte. */
@media (max-width: 760px) {
  .journey-width { width: calc(100% - 32px); }
  .journey-hero { padding: 34px 0 16px; }
  .journey-lead { font-size: 16px; }
  .journey-innovations { margin-top: 26px; padding: 22px 18px; border-radius: 20px; }
  .journey::before { left: 15px; }
  .journey-chapter { margin: 32px 0 18px; text-align: left; }
  .journey-step { grid-template-columns: 1fr; margin-bottom: 18px; }
  .journey-step::before { top: 8px; left: 16px; }
  .journey-step .journey-when, .journey-step.is-employer .journey-when, .journey-step.is-candidate .journey-when, .journey-step.is-referee .journey-when { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 8px; padding: 0 0 8px 40px; text-align: left; }
  .journey-when b { font-size: 21px; }
  .journey-step.is-employer article, .journey-step.is-candidate article, .journey-step.is-referee article { grid-column: 1; grid-row: 2; margin: 0 0 0 40px; padding: 20px 18px 22px; border-radius: 18px; }
  .journey-step article::after { display: none; }
  .journey-step.is-auto { text-align: left; }
  .journey-step.is-auto article { display: block; margin-left: 40px; padding: 14px 16px; }
  .journey-step.is-auto .journey-when { padding-left: 40px; text-align: left; }
  .journey-end { margin: 40px 0 110px; padding: 28px 18px; }
  .journey-button { width: 100%; justify-content: space-between; }
}

/* Version « emploi d'abord » : les boutons vers les offres dès l'en-tête,
   le récapitulatif des innovations après le parcours. */
.journey-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.journey-cast .is-star i { color: var(--star); font-size: 15px; }
.journey .journey-step:first-child, .journey .journey-chapter:first-child { margin-top: 10px; }
.journey-innovations { margin-top: 46px; }
@media (max-width: 760px) {
  .journey-hero-actions .journey-button { width: 100%; justify-content: space-between; }
  .journey-innovations { margin-top: 34px; }
}
