/* ProPilot · sections de l’accueil, hors récit (la section #methode est mise en forme par css/story.css)
   1. Comparateur  2. Rapport vendeur  3. Pour qui  4. Respiration prix */

/* 1. Avant / après : comparateur à glisser (#comparer) */
.cmp { --on-photo: #E6EBF0; padding: var(--section-y) var(--gutter); background: var(--paper); color: var(--navy); }
.cmp__in { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(28px, 5vw, 56px); }
.cmp__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px 64px; align-items: end; }
.cmp__lead { max-width: 500px; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.cmp__fig { display: flex; flex-direction: column; gap: 14px; }
.cmp__box {
  --cmp: 50%;   /* position de la poignée, mise à jour par js/home.js */
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden;
  background: var(--white); box-shadow: 0 40px 100px rgba(11, 20, 36, .16);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;   /* le défilement vertical reste possible sur mobile */
}
.cmp__box.is-drag { cursor: ew-resize; }
.cmp__box img { -webkit-user-drag: none; user-select: none; }
.cmp__cap { font-size: 12px; color: var(--muted); }

/* Côté gauche : l’annonce de portail, grisée et générique */
.cmp__portal { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: clamp(14px, 3vw, 40px); background: #E9EDF1; }
.cmp__search { display: flex; align-items: center; gap: 8px; }
.cmp__field { flex: 1; max-width: 420px; height: 30px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.cmp__go { width: 70px; height: 30px; border-radius: 4px; background: var(--mist); }
.cmp__count { font-size: 12px; color: var(--muted); }
.cmp__list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.cmp__card {
  display: grid; grid-template-columns: clamp(90px, 16vw, 200px) minmax(0, 1fr); gap: 14px;
  padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--white);
}
.cmp__card--ghost { display: block; height: clamp(56px, 9vw, 118px); padding: 0; }
.cmp__card--ghost-1 { opacity: .7; }
.cmp__card--ghost-2 { opacity: .5; }
.cmp__thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.35) brightness(1.08) contrast(.85); }
.cmp__info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cmp__name { font-size: clamp(13px, 1.3vw, 16px); font-weight: 700; color: var(--ink-2); }
.cmp__price { font-size: clamp(14px, 1.3vw, 16px); font-weight: 800; color: var(--navy); }
.cmp__desc { font-size: 12px; line-height: 1.45; color: var(--muted); }
.cmp__meta { font-size: 11px; color: var(--muted); }
.cmp__tag {
  position: absolute; padding: 7px 12px; border-radius: var(--r-pill); background: var(--white);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.cmp__tag--portal { left: clamp(14px, 3vw, 40px); bottom: clamp(14px, 3vw, 32px); color: var(--muted); }
.cmp__tag--pp { right: clamp(14px, 3vw, 40px); top: clamp(14px, 3vw, 32px); color: var(--navy); }

/* Côté droit : la page ProPilot, révélée par clip-path */
.cmp__pp { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cmp)); }
.cmp__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 20, 36, .15) 0%, rgba(11, 20, 36, 0) 35%, rgba(11, 20, 36, .86) 100%); }
.cmp__text {
  position: absolute; left: clamp(18px, 4vw, 56px); right: clamp(18px, 4vw, 56px); bottom: 56px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; color: var(--white);
}
.cmp__where { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-photo); }
.cmp__title { font-family: var(--font-serif); font-size: clamp(44px, 7vw, 104px); line-height: .92; letter-spacing: -.03em; }
.cmp__facts { font-size: clamp(13px, 1.3vw, 16px); color: var(--on-photo); }

/* Poignée et curseur : le curseur natif (input range) est transparent et couvre toute la zone ; sans JavaScript il reçoit le pointeur,
   avec JavaScript (.is-drag) la zone s’en charge et il ne sert plus qu’au clavier et aux lecteurs d’écran */
.cmp__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
  cursor: ew-resize; touch-action: pan-y;   /* le défilement vertical reste possible sur mobile */
}
.cmp__box.is-drag .cmp__range { pointer-events: none; }
.cmp__range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.cmp__range::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 100%; border: 0; background: transparent; }
.cmp__range::-moz-range-track { height: 100%; background: transparent; }
.cmp__range::-moz-range-thumb { width: 2px; height: 100%; border: 0; border-radius: 0; background: transparent; }
.cmp__handle {
  position: absolute; top: 0; bottom: 0; left: var(--cmp); width: 2px; margin-left: -1px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(11, 20, 36, .08); pointer-events: none;
}
.cmp__knob {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--white); box-shadow: 0 10px 30px rgba(11, 20, 36, .25);
  font-size: 16px; font-weight: 800; color: var(--navy);
}
.cmp__range:focus-visible + .cmp__handle .cmp__knob { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--blue), 0 10px 30px rgba(11, 20, 36, .25); }
.cmp__box:has(.cmp__range:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

/* 2. Rapport vendeur (#rapport) */
.rep { padding: var(--section-y) var(--gutter); background: var(--white); color: var(--navy); overflow-x: clip; }
.rep__in { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(40px, 7vw, 104px); align-items: center; }
.rep__copy { display: flex; flex-direction: column; gap: 22px; }
.rep__lead { max-width: 500px; font-size: var(--fs-body); line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.rep__cta { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.rep__art { position: relative; }
.rep__sky { position: absolute; inset: 8% -4% -6% 10%; border-radius: 24px; background: var(--sky); }
.rep__card {
  position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white);
  box-shadow: 0 40px 90px rgba(11, 20, 36, .12);
}
.rep__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rep__logo { display: block; height: 14px; width: auto; }
.rep__period { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rep__who { display: flex; flex-direction: column; gap: 4px; }
.rep__for { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rep__h { font-family: var(--font-serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.rep__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; overflow: hidden; border-radius: 10px; background: var(--line-soft); }
.rep__kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--white); }
.rep__v { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rep__u { font-size: .55em; font-weight: 700; letter-spacing: 0; }
.rep__l { font-size: 12px; color: var(--muted); }
.rep__src { display: flex; flex-direction: column; gap: 10px; }
.rep__srch { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rep__bar { display: flex; height: 10px; overflow: hidden; border-radius: 6px; background: var(--line-soft); }
.rep__bar-in { display: flex; width: 100%; transform: scaleX(var(--e, 1)); transform-origin: left; }   /* --e : avancement du comptage (0 à 1) */
.rep__seg { display: block; height: 100%; }
.rep__seg--1 { width: 31%; background: var(--navy); }
.rep__seg--2 { width: 50%; background: var(--cyan); }
.rep__seg--3 { width: 19%; background: var(--mist); }
.rep__legend { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 12px; color: var(--ink-2); }
.rep__leg--2 { color: var(--blue); }
.rep__leg--3 { color: var(--muted); }
.rep__quote { padding-top: 18px; border-top: 1px solid var(--line-soft); font-family: var(--font-serif); font-size: 17px; font-style: italic; line-height: 1.55; color: var(--ink-2); }
.rep__demo { font-size: 11px; color: var(--muted); }

/* 3. Pour qui : lignes éditoriales, survol qui inverse la ligne en navy */
.who { padding: 0 var(--gutter) var(--section-y); background: var(--white); color: var(--navy); }
.who__in { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; }
.who__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; padding-bottom: 24px; }
.who__sub { font-size: 14px; color: var(--muted); }
.who__list { border-bottom: 1px solid var(--navy); }
.who__item { border-top: 1px solid var(--navy); }
.who__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 48px; align-items: center;
  width: 100%; padding: clamp(24px, 3.4vw, 44px) clamp(4px, 1.6vw, 24px);
  background: var(--white); color: var(--navy); text-align: left; cursor: pointer;
  transition: background .5s var(--ease), color .5s var(--ease);
}
.who__main { display: flex; flex-direction: column; gap: 8px; }
.who__k { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); transition: color .5s var(--ease); }
.who__t { font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.who__side { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.who__d { max-width: 420px; font-size: clamp(15px, 1.2vw, 16px); line-height: 1.6; opacity: .75; }
.who__arrow { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: 18px; }
.who__row:focus-visible { background: var(--navy); color: var(--white); outline-color: var(--cyan); outline-offset: -4px; }
.who__row:focus-visible .who__k { color: var(--cyan-light); }
@media (hover: hover) {
  .who__row:hover { background: var(--navy); color: var(--white); }
  .who__row:hover .who__k { color: var(--cyan-light); }
}

/* 4. Respiration prix : « Publier est gratuit. » */
.breath { padding: clamp(88px, 13vw, 190px) var(--gutter); background: var(--paper); color: var(--navy); }
.breath__in { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 4vw, 44px); text-align: center; }
.breath__title { font-family: var(--font-serif); font-size: var(--fs-breath); font-weight: 400; line-height: .9; letter-spacing: -.035em; }
.breath__title em { font-style: italic; color: var(--blue); }
.breath__text { max-width: 620px; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.breath__prices {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(50%, 180px), 1fr)); width: 100%; max-width: 920px;
  border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist);
}
.breath__price { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; }
.breath__k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.breath__v { font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.breath__link { position: relative; padding-bottom: 3px; border-bottom: 1.5px solid var(--navy); font-size: 15px; font-weight: 700; color: var(--navy); transition: color .3s; }
.breath__link::before { content: ""; position: absolute; inset: -14px -10px -10px; }   /* zone de toucher portée à 44 px */
@media (hover: hover) { .breath__link:hover { color: var(--blue); } }

/* Mobile : comparateur 3:4, rapport sur deux colonnes */
@media (max-width: 759.98px) {
  .cmp__box { aspect-ratio: 3 / 4; }
  .cmp__card { grid-template-columns: 96px minmax(0, 1fr); }
  .rep__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
