/* ==========================================================================
   Réorganisation du bas de page (version allégée uniquement)
   Direction A : le prix repasse sur fond crème (clair → sombre), et la
   réservation + le footer se regroupent en une seule clôture sombre.
   ========================================================================== */

/* ----- Offre & prix : fond beige plus chaud, carte blanche en élévation ----- */
.hero {
  padding-bottom: 88px;
}

.problem {
  margin-top: 104px;
}

.pricing__block {
  background: #F1E9DF;
}
.pricing__title {
  color: var(--off-black);
}
.pricing__lead {
  color: var(--slate);
}
.pricing-card {
  background: #FFF;
  border: 1px solid rgba(16, 16, 16, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
}

/* ----- « Notre objectif » : repasse en clair pour garder la séquence
   preuves (clair) → objectif (clair) → prix (clair) → réservation+footer (sombre) ----- */
.proof-card--dark {
  background: var(--cream);
  border-color: rgba(16, 16, 16, 0.07);
}
.proof-card--dark .proof-card__title--light {
  color: var(--off-black);
}
.proof-card--dark .proof-pillars li {
  border-top-color: rgba(16, 16, 16, 0.08);
}
.proof-card--dark .proof-pillars__k {
  color: var(--off-black);
}
.proof-card--dark .proof-pillars__v {
  color: var(--slate);
}

/* ----- Réservation : carte flottante isolée, entourée de crème ----- */
.booking-cmd {
  margin-top: 56px;
  margin-bottom: 80px;
}

/* ----- FAQ : CTA final centré, distinct du footer ----- */
.faq__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  height: auto;
  margin: 32px auto 0;
  text-align: center;
  white-space: normal;
}

/* ----- Footer : on calme le « AdWaves » géant pour un rendu plus premium ----- */
.footer__giant {
  font-size: 140px;
  left: 56px;
  bottom: 24px;
  opacity: 0.08;
}

@media (max-width: 1199px) and (min-width: 900px) {
  .footer__giant { font-size: 140px; left: 48px; bottom: 24px; }
}

@media (max-width: 899px) {
  .hero {
    padding-bottom: 48px;
  }

  .hero__actions {
    width: 100%;
    align-items: stretch;
  }

  .hero__actions .btn,
  .pricing-card > .btn {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 52px;
    padding: 12px 18px;
    text-align: center;
    white-space: normal;
    line-height: 1.12;
  }

  .problem {
    margin-top: 52px;
  }

  .booking-cmd {
    margin-top: 48px;
    margin-bottom: 56px;
  }

  .footer__left .btn--footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    white-space: normal;
  }

  .footer__giant { font-size: 72px; left: 24px; bottom: 16px; }
}

/* ==========================================================================
   Timeline parallèle du parcours client
   Version allégée uniquement.
   ========================================================================== */
.process-cal--parallel {
  max-width: 1320px;
}

.process-cal--parallel .process-cal__head {
  max-width: 840px;
}

.process-cal--parallel .process-cal__title,
.process-cal--parallel .process-cal__subtitle,
.journey-card h3,
.journey-card p,
.journey-parallel__label {
  letter-spacing: 0;
}

.journey {
  position: relative;
  overflow: hidden;
  padding: 54px 34px 44px;
  background: linear-gradient(180deg, #FBFAF8 0%, #FFFFFF 64%);
  border: 1px solid rgba(16, 16, 16, 0.07);
  border-radius: 34px;
  box-shadow: 0 16px 42px rgba(16, 16, 16, 0.07);
}

.journey__lines {
  position: absolute;
  z-index: 0;
  inset: 96px 44px 58px;
  width: calc(100% - 92px);
  height: calc(100% - 154px);
  pointer-events: none;
}

.journey__line {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.journey__line--prep {
  stroke: #CBD1D9;
}

.journey__line--action {
  stroke: rgba(255, 79, 1, 0.74);
}

.journey__line--system {
  stroke: rgba(31, 157, 85, 0.72);
}

.journey__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1.1fr 1.05fr;
  grid-template-rows: 24px repeat(3, minmax(186px, auto));
  gap: 16px 20px;
  align-items: center;
}

.journey-group {
  margin: 0;
  color: #9098A3;
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.journey-group--prep {
  grid-column: 1 / 3;
  grid-row: 1;
}

.journey-group--production {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  color: var(--orange);
}

.journey-group--launch {
  grid-column: 4;
  grid-row: 1;
  justify-self: center;
  color: var(--orange);
}

.journey-group--follow {
  grid-column: 5;
  grid-row: 1;
  justify-self: center;
  color: var(--green);
}

.journey-days {
  position: absolute;
  z-index: 2;
  inset: 74px 34px auto;
  height: 22px;
  pointer-events: none;
}

.journey-day {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.08);
  color: #8B929C;
  font-family: var(--font-alt);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.journey-day--j1 {
  left: 31%;
  color: var(--orange);
  border-color: rgba(255, 79, 1, 0.20);
}

.journey-day--j7 {
  left: 49.5%;
  color: var(--orange);
  border-color: rgba(255, 79, 1, 0.20);
}

.journey-day--j14 {
  left: 68.5%;
  color: var(--orange);
  border-color: rgba(255, 79, 1, 0.20);
}

.journey-card--call {
  grid-column: 1;
  grid-row: 3;
}

.journey-card--onboarding {
  grid-column: 2;
  grid-row: 3;
}

.journey-parallel {
  grid-column: 3;
  grid-row: 2 / 5;
  display: grid;
  grid-template-rows: auto repeat(3, minmax(186px, auto));
  gap: 12px;
  align-self: stretch;
}

.journey-card--launch {
  grid-column: 4;
  grid-row: 3;
}

.journey-card--automation {
  grid-column: 5;
  grid-row: 3;
}

.journey-parallel__label {
  justify-self: center;
  align-self: end;
  margin: 0 0 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 79, 1, 0.10);
  border: 1px solid rgba(255, 79, 1, 0.18);
  color: var(--orange);
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.journey-card {
  box-sizing: border-box;
  min-height: 186px;
  display: grid;
  align-items: stretch;
  align-self: stretch;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.06);
}

.journey-card__main {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.journey-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.journey-card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-card__copy {
  min-width: 0;
}

.journey-card h3 {
  margin: 1px 0 0;
  color: #20242B;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.12;
}

.journey-card p {
  margin: 7px 0 0;
  color: var(--slate);
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.26;
}

.journey-parallel .journey-card {
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
}

.journey-card--prep {
  border-color: rgba(91, 100, 112, 0.16);
}

.journey-card--prep .journey-card__icon {
  background: #F1F3F5;
  color: #7D8590;
}

.journey-card--action {
  border-color: rgba(255, 79, 1, 0.18);
}

.journey-card--action .journey-card__icon {
  background: rgba(255, 79, 1, 0.10);
  color: var(--orange);
}

.journey-card--launch {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 18px 38px rgba(255, 79, 1, 0.22);
}

.journey-card--launch .journey-card__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.journey-card--launch h3,
.journey-card--launch p {
  color: #fff;
}

.journey-card--launch p {
  opacity: 0.86;
}

.journey-card--system {
  border-color: rgba(31, 157, 85, 0.20);
}

.journey-card--system .journey-card__icon {
  background: var(--green-soft);
  color: var(--green);
}

.journey-mini {
  min-height: 84px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 16px;
  background: #FFF7F2;
  border: 1px solid rgba(255, 79, 1, 0.14);
}

.journey-mini--site {
  justify-items: stretch;
  padding: 10px;
}

.journey-mini--site span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: var(--orange);
}

.journey-mini--site i {
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.14);
}

.journey-mini--site i:nth-of-type(1) {
  width: 82%;
}

.journey-mini--site i:nth-of-type(2) {
  width: 66%;
}

.journey-mini--site i:nth-of-type(3) {
  width: 74%;
}

.journey-mini--site b {
  display: block;
  width: 48px;
  height: 14px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 79, 1, 0.28);
}

.journey-mini--maps {
  gap: 7px;
  padding: 10px;
}

.journey-mini--maps strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.journey-mini--maps svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-mini--maps span,
.journey-mini--reviews strong {
  color: var(--slate);
  font-family: var(--font-alt);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.journey-mini--reviews {
  gap: 8px;
  padding: 10px;
}

.journey-stars {
  display: flex;
  gap: 2px;
  color: var(--orange);
  font-size: 15px;
  line-height: 1;
}

.journey-stars i {
  font-style: normal;
}

@keyframes journeyLoop {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.journey-motion .journey-card,
.journey-motion .journey-group,
.journey-motion .journey-day {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.journey-motion .journey__line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.95s cubic-bezier(.2, .8, .2, 1);
}

.journey-motion .journey-stars i {
  color: #D8DDE4;
  opacity: 0.5;
  transform: scale(0.78);
  transition: color 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.journey-motion.is-visible .journey-card,
.journey-motion.is-visible .journey-group,
.journey-motion.is-visible .journey-day {
  opacity: 1;
  transform: translateY(0);
}

.journey-motion.is-visible .journey__line {
  stroke-dashoffset: 0;
}

.journey-motion.is-visible .journey-group,
.journey-motion.is-visible .journey-day {
  transition-delay: 0.05s;
}

.journey-motion.is-visible .journey-card--call { transition-delay: 0.12s; }
.journey-motion.is-visible .journey-card--onboarding { transition-delay: 0.22s; }
.journey-motion.is-visible .journey-card--site { transition-delay: 0.34s; }
.journey-motion.is-visible .journey-card--maps { transition-delay: 0.44s; }
.journey-motion.is-visible .journey-card--reviews { transition-delay: 0.54s; }
.journey-motion.is-visible .journey-card--launch { transition-delay: 0.68s; }
.journey-motion.is-visible .journey-card--automation { transition-delay: 0.80s; }
.journey-motion.is-visible .journey__line--prep { transition-delay: 0.04s; }
.journey-motion.is-visible .journey__line--action { transition-delay: 0.18s; }
.journey-motion.is-visible .journey__line--system { transition-delay: 0.76s; }

.journey-motion.is-visible .journey-stars i {
  color: var(--orange);
  opacity: 1;
  transform: scale(1);
}

.journey-motion.is-visible .journey-stars i:nth-child(1) { transition-delay: 0.72s; }
.journey-motion.is-visible .journey-stars i:nth-child(2) { transition-delay: 0.78s; }
.journey-motion.is-visible .journey-stars i:nth-child(3) { transition-delay: 0.84s; }
.journey-motion.is-visible .journey-stars i:nth-child(4) { transition-delay: 0.90s; }
.journey-motion.is-visible .journey-stars i:nth-child(5) { transition-delay: 0.96s; }

.journey-motion.is-visible .journey-card--automation .journey-card__icon svg {
  transform-origin: center;
  animation: journeyLoop 0.75s ease-out 1.02s both;
}

@media (max-width: 1180px) and (min-width: 900px) {
  .process-cal--parallel .process-cal__title {
    font-size: 44px;
  }
}

@media (max-width: 1180px) {
  .process-cal--parallel {
    margin-top: 90px;
  }

  .journey {
    padding: 24px 16px 28px;
    border-radius: 28px;
  }

  .journey__lines {
    display: none;
  }

  .journey__grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 28px;
  }

  .journey__grid::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 18px;
    bottom: 18px;
    border-left: 2px solid #D8DDE4;
  }

  .journey__grid > .journey-card,
  .journey-parallel {
    position: relative;
    width: 100%;
  }

  .journey-group,
  .journey-days {
    display: none;
  }

  .journey__grid > .journey-card::before,
  .journey-parallel::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: -29px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #A8AFB8;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(16, 16, 16, 0.06);
  }

  .journey-parallel::before,
  .journey-card--launch::before {
    background: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 79, 1, 0.12);
  }

  .journey-card--automation::before {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.14);
  }

  .journey-card {
    min-height: 138px;
  }

  .journey-parallel {
    display: grid;
    grid-template-rows: none;
    gap: 12px;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid rgba(255, 79, 1, 0.20);
    border-left: 4px solid rgba(255, 79, 1, 0.46);
    border-radius: 22px;
    background: rgba(255, 79, 1, 0.04);
  }

  .journey-parallel__label {
    justify-self: start;
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .journey {
    padding-inline: 10px;
  }

  .journey__grid {
    padding-left: 18px;
  }

  .journey__grid::before {
    left: 5px;
  }

  .journey__grid > .journey-card::before,
  .journey-parallel::before {
    left: -21px;
  }

  .journey-card {
    padding: 12px;
    min-height: 150px;
  }

  .journey-card__main {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .journey-card__icon {
    width: 36px;
    height: 36px;
  }

  .journey-parallel .journey-card {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 8px;
  }

  .journey-mini {
    min-height: 72px;
    border-radius: 13px;
  }

  .journey-mini--site {
    padding: 8px;
  }

  .journey-mini--site b {
    width: 38px;
  }

  .journey-mini--maps strong {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .journey-stars {
    font-size: 11px;
  }
}

/* ==========================================================================
   Timeline « Notre processus » (roadmap) : ajustements landing
   - en-tête centré comme le reste de la landing
   - espace entre le titre et le badge « outcome »
   - espace entre le calculateur et la section
   ========================================================================== */

/* Le body hérite de `overflow-x: hidden` (style.css), qui force overflow-y à
   `auto` et transforme le body en conteneur de défilement : cela casse
   `position: sticky` de la timeline. `overflow-x: clip` masque le débordement
   horizontal sans créer de conteneur de défilement → le sticky refonctionne. */
body.proc--cal {
  overflow-x: clip;
}

/* Espacement avec le calculateur situé au-dessus */
.aw-roadmap {
  margin-top: 130px;
}

/* En-tête centré (le prototype le laisse aligné à gauche en desktop).
   Le header est désormais HORS du bloc collé : il défile normalement au-dessus
   de la timeline, donc il a besoin de sa propre contrainte de largeur. */
.aw-roadmap__head {
  grid-template-columns: 1fr;
  gap: 16px;
  width: min(860px, calc(100% - 48px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.aw-roadmap__head .eyebrow {
  text-align: center;
}

.aw-roadmap__head h2 {
  margin-left: auto;
  margin-right: auto;
}

/* Espace entre « Pendant 14 jours… » et le badge « En 14 jours… » */
.aw-roadmap .aw-roadmap__head .aw-roadmap__outcome {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}

.aw-roadmap__head p:not(.eyebrow) {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1199px) {
  .aw-roadmap {
    margin-top: 90px;
  }
}

/* Sticky desktop : le bloc collé fait 100vh. Le header reste épinglé en haut
   (en version compacte : on masque le long paragraphe et on réduit le titre
   pour qu'il tienne sur les écrans bas), et la timeline est centrée dans
   l'espace restant via `margin: auto`. Résultat : une partie du texte reste
   visible au-dessus, la timeline est au milieu et n'est jamais coupée.
   Le 100vh fait aussi coïncider le pin CSS avec le calcul de progression du
   JS (basé sur window.innerHeight). */
@media (min-width: 1200px) {
  .aw-roadmap__sticky {
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* En-tête compact, ancré en haut du bloc épinglé */
  .aw-roadmap__head {
    flex: 0 0 auto;
    gap: 8px;
    margin-bottom: 0;
    padding-top: 30px;
  }

  .aw-roadmap__head h2 {
    font-size: clamp(30px, 3.2vw, 46px);
  }

  /* Le paragraphe descriptif est masqué en vue épinglée (l'essentiel —
     eyebrow + titre + badge — suffit à relier le texte à la timeline). */
  .aw-roadmap__head > p:not(.eyebrow):not(.aw-roadmap__outcome) {
    display: none;
  }

  .aw-roadmap .aw-roadmap__head .aw-roadmap__outcome {
    margin-top: 14px;
  }

  /* La timeline se centre dans l'espace libre sous le header */
  .aw-roadmap__board {
    margin-top: auto;
    margin-bottom: auto;
  }
}
