/*
  Passe finale d'harmonisation visuelle.
  Aucun ordre de funnel, aucune route et aucun moteur métier ne sont modifiés ici.
*/

/* Un seul langage pour les sur-titres : sobre, fin et signalé par un filet. */
.funnel-hero .eyebrow,
.funnel-method .section-label,
.funnel-voyage .section-label,
.funnel-questionnaire .section-label,
.funnel-carnet .section-label,
.funnel-cap .section-label,
.funnel-result-proof figcaption span,
.funnel-carnet-peek small {
  color: #d5a653;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.funnel-hero .eyebrow,
.funnel-method .section-label,
.funnel-voyage .section-label,
.funnel-questionnaire .section-label,
.funnel-carnet .section-label,
.funnel-cap .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.funnel-hero .eyebrow::before,
.funnel-method .section-label::before,
.funnel-voyage .section-label::before,
.funnel-questionnaire .section-label::before,
.funnel-carnet .section-label::before,
.funnel-cap .section-label::before {
  content: "";
  width: 27px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: .78;
}

.funnel-hero .eyebrow::after {
  display: none;
}

.js .funnel-hero .eyebrow {
  opacity: 1;
  animation: none;
  transform: none;
}

/* Hero : hiérarchie inchangée, cadre allégé, vraie preuve davantage visible. */
.funnel-hero h1 {
  max-width: 15.5ch;
  text-wrap: balance;
}

.funnel-hero .hero-actions-expanded p {
  color: rgba(255, 255, 255, .76);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .025em;
}

.funnel-result-proof {
  min-height: clamp(330px, 32vw, 455px);
  overflow: visible;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: 0 28px 72px rgba(0, 20, 32, .30);
}

.funnel-result-proof::before {
  inset: -1px;
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: none;
}

.funnel-result-proof .funnel-result-foreground {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  display: block;
  width: 84%;
  height: 89%;
  overflow: hidden;
  border-radius: 5px;
  background: #f8f3e9;
  box-shadow: 0 24px 58px rgba(0, 20, 32, .28);
  transform: rotate(-.45deg);
}

.funnel-result-proof .funnel-result-foreground img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.funnel-result-proof figcaption {
  z-index: 4;
  right: auto;
  bottom: 0;
  left: 0;
  width: 84%;
  gap: 3px;
  padding: 11px 15px 12px;
  border: 0;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, rgba(3, 54, 87, .74), rgba(2, 39, 60, .94));
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.funnel-result-proof figcaption span {
  font-size: 8px;
  letter-spacing: .14em;
}

.funnel-result-proof figcaption strong {
  font-size: 15px;
  line-height: 1.18;
}

.funnel-carnet-peek {
  z-index: 1;
  top: 1%;
  right: 0;
  display: block;
  width: 45%;
  height: 86%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 5px;
  background: #f7efe1;
  box-shadow: 0 20px 54px rgba(0, 20, 32, .24);
  transform: rotate(1.6deg);
}

.funnel-carnet-peek > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.funnel-carnet-peek > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  color: #fff;
  background: rgba(2, 45, 69, .88);
  backdrop-filter: blur(8px);
}

.funnel-carnet-peek strong {
  font-size: 14px;
  line-height: 1.16;
}

.funnel-result-proof::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 8%;
  right: 10%;
  width: 38%;
  height: 1px;
  background: rgba(239, 199, 118, .58);
  transform: rotate(-5deg);
}

/* La méthode reste l'étalon ; seuls ses espacements fins sont normalisés. */
.funnel-method .fusion-pillars span {
  color: #ba8334;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.funnel-method .fusion-pillars article {
  border-radius: 7px;
}

/* Le filet commun reste un repère ; il ne doit jamais devenir une ligne de grille. */
.section.funnel-voyage::before,
.section.funnel-questionnaire::before,
.section.funnel-carnet::before,
.section.funnel-cap::before {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
}

/* Voyage : une fenêtre cinématique est inscrite dans la photographie mère. */
.funnel-voyage-copy {
  place-items: initial;
}

.funnel-voyage-heading {
  width: min(43%, 520px);
}

.funnel-voyage-heading > p:not(.section-label) {
  max-width: 34ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.58;
}

.funnel-voyage-window {
  position: absolute;
  top: 50%;
  right: clamp(30px, 5vw, 72px);
  width: min(46%, 550px);
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .60);
  border-radius: 6px;
  color: #fff;
  background: #063850;
  box-shadow: 0 28px 70px rgba(0, 18, 30, .42);
  cursor: pointer;
  transform: translateY(-36%);
}

.funnel-voyage-window > img,
.funnel-voyage-window-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.funnel-voyage-window > img {
  object-fit: cover;
  object-position: 50% 36%;
  filter: saturate(.84) contrast(1.04) brightness(.78);
  transition: transform .7s cubic-bezier(.2, .75, .2, 1), filter .45s ease;
}

.funnel-voyage-window-shade {
  background:
    radial-gradient(circle at 50% 46%, transparent 0, rgba(1, 26, 39, .12) 34%, rgba(1, 24, 36, .47) 100%),
    linear-gradient(180deg, transparent 46%, rgba(1, 28, 43, .66));
}

.funnel-voyage-window .funnel-voyage-launch {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.funnel-voyage-window .funnel-play {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 50%;
  color: var(--deep);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 17px 42px rgba(0, 20, 32, .31);
  font-size: 14px;
  transition: transform .3s ease, background .3s ease;
}

.funnel-voyage-window .funnel-voyage-launch strong {
  font: 800 12px/1.2 var(--sans);
  letter-spacing: .055em;
}

.funnel-voyage-window .funnel-voyage-launch small {
  color: rgba(255, 255, 255, .76);
  font: 600 9px/1.2 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.funnel-voyage-window:hover > img,
.funnel-voyage-window:focus-visible > img {
  filter: saturate(.94) contrast(1.07) brightness(.88);
  transform: scale(1.035);
}

.funnel-voyage-window:hover .funnel-play,
.funnel-voyage-window:focus-visible .funnel-play {
  transform: scale(1.07);
  background: #fff;
}

.funnel-voyage-window:focus-visible {
  outline: 3px solid #f0b85f;
  outline-offset: 5px;
}

/* Résultat : texte à gauche, preuve visuelle à droite, mêmes proportions que le reste. */
.funnel-questionnaire {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .82fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.section.process.funnel-questionnaire {
  padding: 48px 0 54px;
}

.funnel-questionnaire-copy {
  grid-column: 1;
  grid-row: 1;
}

.funnel-questionnaire-visual {
  grid-column: 2;
  grid-row: 1;
  min-height: 300px;
}

.funnel-questionnaire-visual img {
  width: min(100%, 500px);
  max-height: 292px;
  margin-inline: auto;
}

.funnel-questionnaire-copy h2,
.funnel-carnet h2,
.funnel-cap h2 {
  max-width: 23ch;
  text-wrap: balance;
}

/* Carnet : mêmes pages réelles, mais un éventail plus calme et une densité plus utile. */
.funnel-carnet {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .82fr);
  gap: clamp(40px, 5vw, 72px);
  padding-top: clamp(42px, 4.4vw, 58px);
  padding-bottom: clamp(42px, 4.4vw, 58px);
}

.funnel-carnet-copy {
  max-width: 670px;
}

.funnel-carnet-copy > p:not(.section-label) {
  max-width: 610px;
}

.funnel-carnet-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 15px;
  margin-top: 18px;
  padding-top: 17px;
}

.funnel-carnet-list li {
  font-size: 12.5px;
}

.funnel-carnet-actions {
  gap: 15px;
  margin-top: 21px;
}

.funnel-carnet-pages {
  min-height: 360px;
}

.carnet-page {
  border-color: rgba(10, 52, 75, .09);
  box-shadow: 0 18px 45px rgba(6, 44, 66, .14);
}

.carnet-page-cover {
  top: 16px;
  left: 5%;
  width: 42%;
}

.carnet-page-detail {
  top: 42px;
  right: 4%;
  width: 43%;
}

.carnet-page-small {
  right: 28%;
  width: 30%;
}

/* CAP : l'image accompagne le texte au lieu de dominer la section. */
.funnel-cap {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .62fr);
  gap: clamp(38px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 4vw, 50px);
}

.funnel-cap-intro {
  grid-column: 1;
  grid-row: 1;
  max-width: 760px;
}

.funnel-cap-intro > p:not(.section-label) {
  max-width: 660px;
}

.funnel-cap-photo {
  grid-column: 2;
  grid-row: 1;
  min-height: 270px;
  max-height: 320px;
}

.funnel-cap-photo img {
  height: 100%;
  min-height: 0;
  object-position: 50% 78%;
}

@media (max-width: 980px) {
  .funnel-voyage-window {
    right: 30px;
    width: min(50%, 480px);
  }

  .funnel-questionnaire,
  .funnel-carnet,
  .funnel-cap {
    grid-template-columns: 1fr;
  }

  .funnel-questionnaire-copy,
  .funnel-questionnaire-visual,
  .funnel-carnet-copy,
  .funnel-carnet-pages {
    grid-column: 1;
  }

  .funnel-questionnaire-copy {
    grid-row: 1;
  }

  .funnel-questionnaire-visual {
    grid-row: 2;
  }

  .funnel-questionnaire-visual img {
    width: min(620px, 100%);
  }

  .funnel-carnet-pages {
    width: min(620px, 100%);
    min-height: 390px;
    margin-inline: auto;
  }

  .funnel-cap-photo {
    grid-column: 1;
    grid-row: 2;
    min-height: 260px;
    max-height: 300px;
  }
}

@media (max-width: 720px) {
  .funnel-hero .eyebrow,
  .funnel-method .section-label,
  .funnel-voyage .section-label,
  .funnel-questionnaire .section-label,
  .funnel-carnet .section-label,
  .funnel-cap .section-label {
    gap: 8px;
    font-size: 9px;
  }

  .funnel-hero .eyebrow::before,
  .funnel-method .section-label::before,
  .funnel-voyage .section-label::before,
  .funnel-questionnaire .section-label::before,
  .funnel-carnet .section-label::before,
  .funnel-cap .section-label::before {
    width: 20px;
  }

  .funnel-result-proof {
    min-height: 430px;
    overflow: visible;
  }

  .funnel-result-proof .funnel-result-foreground {
    width: 86%;
    height: 89%;
    border-radius: 4px;
  }

  .funnel-result-proof figcaption {
    width: 86%;
    padding: 9px 11px 10px;
  }

  .funnel-carnet-peek {
    top: 0;
    right: 1px;
    width: 49%;
    height: 79%;
  }

  .funnel-carnet-peek > img {
    width: 100%;
    height: 100%;
  }

  .funnel-carnet-peek strong {
    font-size: 13px;
  }

  .funnel-voyage-heading {
    z-index: 2;
    width: 100%;
  }

  .funnel-voyage-heading > p:not(.section-label) {
    max-width: 31ch;
    margin-top: 16px;
  }

  .funnel-voyage-window {
    top: auto;
    right: 18px;
    bottom: 24px;
    left: 18px;
    width: auto;
    transform: none;
  }

  .funnel-voyage-window .funnel-play {
    width: 52px;
    height: 52px;
  }

  .funnel-questionnaire,
  .funnel-carnet {
    gap: 24px;
  }

  .funnel-questionnaire-visual {
    min-height: 235px;
  }

  .funnel-questionnaire-visual img {
    max-height: 225px;
  }

  .funnel-questionnaire-copy h2,
  .funnel-carnet h2,
  .funnel-cap h2 {
    font-size: clamp(29px, 8.1vw, 36px);
  }

  .funnel-carnet-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-carnet-pages {
    min-height: 300px;
  }

  .funnel-cap {
    padding-top: 31px;
  }

  .funnel-cap-contact {
    font-size: 13px;
  }

  .funnel-cap-photo {
    min-height: 205px;
    max-height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .funnel-voyage-window > img,
  .funnel-voyage-window .funnel-play {
    transition: none;
  }
}
