/* =========================
   PARCOURS DUPILOT
   Du risque à l'action
   ========================= */

/*
 * Ce fichier complète landing-style.css.
 * Il réutilise notamment :
 *
 * --landing-bg
 * --landing-surface
 * --landing-surface-soft
 * --landing-text
 * --landing-muted
 * --landing-border
 * --landing-primary
 * --landing-primary-dark
 * --landing-dark
 * --landing-radius
 * --landing-shadow
 */

.journey-page {
  background:
    radial-gradient(
      circle at 10% 8%,
      rgba(52, 140, 211, 0.08),
      transparent 24rem
    ),
    var(--landing-bg);
}

.journey-page section[id] {
  scroll-margin-top: 110px;
}

/* =========================
   TITRES DE SECTION
   ========================= */

.journey-section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.journey-section-heading h2 {
  margin: 0;
  color: var(--landing-dark);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.journey-section-heading > p:last-child {
  margin: 16px 0 0;
  color: var(--landing-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

/* =========================
   HERO
   ========================= */

.journey-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 24px 72px;

  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.journey-hero-content {
  max-width: 720px;
}

.journey-hero h1 {
  margin: 0;
  color: var(--landing-dark);
  font-size: clamp(2.35rem, 4.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.journey-hero-text {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--landing-muted);
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.journey-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Encadré de positionnement */

.journey-prerequisite {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 24px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(52, 140, 211, 0.16),
      transparent 45%
    ),
    linear-gradient(145deg, #ffffff 0%, #f4f9fd 100%);

  box-shadow:
    0 24px 70px rgba(31, 41, 55, 0.11),
    0 1px 2px rgba(31, 41, 55, 0.04);
  overflow: hidden;
}

.journey-prerequisite::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--landing-primary), #7cc7f0);
}

.journey-card-kicker {
  margin: 0 0 12px;
  color: var(--landing-primary-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-prerequisite h2 {
  margin: 0;
  color: var(--landing-dark);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.journey-prerequisite p:not(.journey-card-kicker) {
  margin: 16px 0 0;
  color: var(--landing-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* =========================
   CAS DE DÉPART
   ========================= */

.journey-case {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px 88px;
}

.journey-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.journey-case-card {
  position: relative;
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 18px 48px rgba(31, 41, 55, 0.07),
    0 1px 2px rgba(31, 41, 55, 0.04);
  overflow: hidden;
}

.journey-case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--landing-primary);
}

.journey-case-card:nth-child(2)::before {
  background: #d97706;
}

.journey-case-card:nth-child(3)::before {
  background: #16a34a;
}

.journey-case-label {
  margin: 0 0 18px;
  color: var(--landing-primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.journey-case-card:nth-child(2) .journey-case-label {
  color: #a35405;
}

.journey-case-card:nth-child(3) .journey-case-label {
  color: #14783b;
}

.journey-case-card h3 {
  margin: 0 0 12px;
  color: var(--landing-dark);
  font-size: 1.18rem;
  line-height: 1.3;
}

.journey-case-card > p:last-child {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* =========================
   PARCOURS PRINCIPAL
   ========================= */

.journey-process {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 92px;
}

.journey-steps {
  display: grid;
  gap: 28px;
}

/* Carte d'étape */

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 38px;
  align-items: center;

  padding: 38px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 26px;
  background: var(--landing-surface);

  box-shadow:
    0 20px 58px rgba(31, 41, 55, 0.075),
    0 1px 2px rgba(31, 41, 55, 0.04);
}

.journey-step::before {
  content: "";
  position: absolute;
  inset: 30px auto 30px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--landing-primary), #7cc7f0);
}

/* Alternance visuelle */

.journey-step-reverse .journey-step-content {
  order: 2;
}

.journey-step-reverse .journey-step-example {
  order: 1;
}

.journey-step-reverse::before {
  inset: 30px 0 30px auto;
  border-radius: 999px 0 0 999px;
}

/* Contenu éditorial */

.journey-step-content {
  min-width: 0;
}

.journey-step-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--landing-primary-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journey-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: rgba(52, 140, 211, 0.13);
  color: var(--landing-primary-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.journey-step h3 {
  margin: 0;
  color: var(--landing-dark);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.journey-step-content > p:not(.journey-step-kicker) {
  margin: 16px 0 0;
  color: var(--landing-muted);
  font-size: 0.99rem;
  line-height: 1.72;
}

/* Bloc d'exemple */

.journey-step-example {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(52, 140, 211, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(52, 140, 211, 0.1), transparent 42%),
    var(--landing-surface-soft);
}

.journey-example-label {
  margin: 0 0 18px;
  color: var(--landing-primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* =========================
   EXEMPLE : CHEMIN
   ========================= */

.journey-path {
  display: grid;
  gap: 8px;
}

.journey-path span:not([aria-hidden="true"]) {
  display: block;
  padding: 11px 14px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 12px;
  background: #ffffff;
  color: var(--landing-dark);
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 7px 20px rgba(31, 41, 55, 0.045);
}

.journey-path span[aria-hidden="true"] {
  display: flex;
  justify-content: center;
  color: var(--landing-primary);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

/* =========================
   EXEMPLE : DONNÉES
   ========================= */

.journey-data {
  display: grid;
  gap: 0;
  margin: 0;
}

.journey-data > div {
  padding: 13px 0;
  border-bottom: 1px solid rgba(203, 213, 225, 0.85);
}

.journey-data > div:first-child {
  padding-top: 0;
}

.journey-data > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.journey-data dt {
  margin: 0 0 5px;
  color: var(--landing-primary-dark);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.journey-data dd {
  margin: 0;
  color: var(--landing-dark);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.5;
}

/* =========================
   EXEMPLE : ACTION
   ========================= */

.journey-action-card {
  padding: 20px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.055);
}

.journey-action-card p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.journey-action-card .journey-action-title {
  margin-bottom: 10px;
  color: var(--landing-dark);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.4;
}

.journey-action-card .journey-action-category {
  display: inline-flex;
  margin-top: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(52, 140, 211, 0.12);
  color: var(--landing-primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

/* =========================
   EXEMPLE : STATUTS
   ========================= */

.journey-status-flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-status-flow li {
  position: relative;
  padding: 14px 16px 14px 48px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  background: #ffffff;
}

.journey-status-flow li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 17px;
  width: 14px;
  height: 14px;
  border: 4px solid rgba(52, 140, 211, 0.18);
  border-radius: 999px;
  background: var(--landing-primary);
  box-sizing: content-box;
}

.journey-status-flow li:nth-child(2)::before {
  background: #d97706;
  border-color: rgba(217, 119, 6, 0.18);
}

.journey-status-flow li:nth-child(3)::before {
  background: #16a34a;
  border-color: rgba(22, 163, 74, 0.18);
}

.journey-status-flow span {
  display: block;
  color: var(--landing-dark);
  font-size: 0.94rem;
  font-weight: 900;
}

.journey-status-flow small {
  display: block;
  margin-top: 4px;
  color: var(--landing-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* =========================
   EXEMPLE : QUESTIONS
   ========================= */

.journey-question-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-question-list li {
  position: relative;
  padding: 12px 14px 12px 40px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 13px;
  background: #ffffff;
  color: var(--landing-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.journey-question-list li::before {
  content: "?";
  position: absolute;
  top: 50%;
  left: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(52, 140, 211, 0.13);
  color: var(--landing-primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  transform: translateY(-50%);
}

/* =========================
   LIMITES ET POSITIONNEMENT
   ========================= */

.journey-boundaries {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

.journey-boundaries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.journey-boundary-card {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 18px 48px rgba(31, 41, 55, 0.07),
    0 1px 2px rgba(31, 41, 55, 0.04);
  overflow: hidden;
}

.journey-boundary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
}

.journey-boundary-positive::before {
  background: #16a34a;
}

.journey-boundary-neutral::before {
  background: #64748b;
}

.journey-boundary-card h3 {
  margin: 0 0 22px;
  color: var(--landing-dark);
  font-size: 1.28rem;
  line-height: 1.3;
}

.journey-boundary-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-boundary-card li {
  position: relative;
  padding-left: 28px;
  color: var(--landing-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.journey-boundary-card li::before {
  position: absolute;
  top: 0.02em;
  left: 0;
  font-size: 1rem;
  font-weight: 900;
}

.journey-boundary-positive li::before {
  content: "✓";
  color: #16803d;
}

.journey-boundary-neutral li::before {
  content: "—";
  color: #64748b;
}

/* =========================
   RÉSULTAT
   ========================= */

.journey-result {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

.journey-result-card {
  position: relative;
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(96, 165, 250, 0.22),
      transparent 32%
    ),
    linear-gradient(135deg, #263244 0%, #1f2937 100%);
  color: #ffffff;
  box-shadow:
    0 28px 78px rgba(31, 41, 55, 0.2),
    0 1px 2px rgba(31, 41, 55, 0.1);
  overflow: hidden;
}

.journey-result-card .section-kicker {
  color: #bfdbfe;
}

.journey-result-card h2 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.journey-result-card > p:last-child {
  max-width: 820px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: 1rem;
  line-height: 1.75;
}

.journey-result-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.journey-result-flow span:not([aria-hidden="true"]) {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.journey-result-flow span[aria-hidden="true"] {
  color: #7dd3fc;
  font-size: 1.15rem;
  font-weight: 900;
}

/* =========================
   CTA FINAL
   ========================= */

.journey-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.journey-final-actions .btn-primary,
.journey-final-actions .btn-secondary {
  margin-top: 0;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 980px) {
  .journey-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 70px;
  }

  .journey-hero-content {
    max-width: 780px;
  }

  .journey-prerequisite {
    max-width: 720px;
  }

  .journey-case-grid {
    grid-template-columns: 1fr;
  }

  .journey-case-card {
    min-height: auto;
  }

  .journey-step {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px;
  }

  .journey-step-reverse .journey-step-content,
  .journey-step-reverse .journey-step-example {
    order: initial;
  }

  .journey-step-reverse::before {
    inset: 30px auto 30px 0;
    border-radius: 0 999px 999px 0;
  }

  .journey-step-example {
    max-width: none;
  }

  .journey-boundaries-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .journey-page section[id] {
    scroll-margin-top: 92px;
  }

  .journey-hero {
    padding: 60px 18px 58px;
  }

  .journey-hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.25rem);
  }

  .journey-hero-actions {
    flex-direction: column;
  }

  .journey-prerequisite {
    padding: 26px 24px;
    border-radius: 20px;
  }

  .journey-case {
    padding: 0 18px 68px;
  }

  .journey-section-heading {
    margin-bottom: 28px;
  }

  .journey-case-card {
    padding: 24px;
    border-radius: 20px;
  }

  .journey-process {
    padding: 0 18px 70px;
  }

  .journey-steps {
    gap: 22px;
  }

  .journey-step {
    gap: 22px;
    padding: 26px 22px;
    border-radius: 21px;
  }

  .journey-step::before,
  .journey-step-reverse::before {
    inset: 24px auto 24px 0;
    width: 3px;
  }

  .journey-step-kicker {
    align-items: flex-start;
  }

  .journey-step-example {
    padding: 22px;
    border-radius: 17px;
  }

  .journey-boundaries {
    padding: 0 18px 68px;
  }

  .journey-boundary-card {
    padding: 26px 24px;
    border-radius: 21px;
  }

  .journey-result {
    padding: 0 18px 72px;
  }

  .journey-result-card {
    padding: 36px 24px;
    border-radius: 22px;
  }

  .journey-result-flow {
    display: grid;
    gap: 8px;
  }

  .journey-result-flow span:not([aria-hidden="true"]) {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .journey-result-flow span[aria-hidden="true"] {
    display: flex;
    justify-content: center;
    transform: rotate(90deg);
  }

  .journey-final-actions {
    flex-direction: column;
  }

  .journey-final-actions .btn-primary,
  .journey-final-actions .btn-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-page *,
  .journey-page *::before,
  .journey-page *::after {
    scroll-behavior: auto;
  }
}
