/* =============================================================
   Styles par section
   ============================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(var(--hero-h) - 86px);
  color: var(--on-dark);
  padding: 6px 0 48px;
}
.hero__halo {
  top: -10px;
  left: -90px;
  width: 520px;
  height: 430px;
  animation: halo-pulse 7s ease-in-out infinite;
}
.hero__content { position: relative; max-width: 700px; }
.hero__eyebrow {
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 22px;
}
.hero__title {
  font-weight: var(--fw-light);
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  margin-bottom: 18px;
}
.hero__sub {
  font-weight: var(--fw-light);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--on-dark-80);
  max-width: 560px;
}
.hero__cta { margin-top: 30px; }

/* ---------- Bandeau logos ---------- */
.logos { padding: 26px 0 30px; }
.logos__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logos__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee 38s linear infinite;
}
.logos__track:hover { animation-play-state: paused; }
.logos__group { display: flex; align-items: center; }
.logos__item {
  height: 38px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: clamp(34px, 4.5vw, 64px);
  opacity: 0.9;
}

/* ---------- Constat ---------- */
.constat__title { margin-bottom: 36px; }
.stats { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 30px; }
.stat { flex: 1 1 240px; border-radius: var(--radius-lg); padding: 28px 28px 24px; }
.stat--light { background: var(--surface-tint); }
.stat--dark { background: var(--purple); }
.stat__num {
  font-weight: var(--fw-light);
  font-size: clamp(58px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--purple);
}
.stat--dark .stat__num { color: var(--pink); }
.stat__desc { font-weight: var(--fw-regular); font-size: 16px; line-height: 1.4; color: var(--grey-700); margin: 14px 0 4px; }
.stat--dark .stat__desc { color: var(--on-dark); }
.stat__source { font-size: 12px; color: var(--text-soft); }
.stat--dark .stat__source { color: var(--on-dark-50); }
.constat__editorial { margin: 0 0 40px; }
.constat__why { font-weight: var(--fw-medium); font-size: clamp(19px, 2.2vw, 24px); color: var(--purple); margin-bottom: 22px; }

.reasons { display: flex; flex-direction: column; }
.reason { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--grey-50); }
.reason__num { flex-shrink: 0; font-weight: var(--fw-light); font-size: 34px; line-height: 1; color: var(--pink); letter-spacing: -0.02em; }
.reason__title { font-weight: var(--fw-medium); font-size: 19px; color: var(--purple); line-height: 1.25; margin-bottom: 6px; }
.reason__desc { font-weight: var(--fw-light); font-size: 15px; line-height: 1.55; color: var(--grey-500); max-width: 640px; }

/* ---------- Notre différence ---------- */
.diff__halo { top: -10%; right: -6%; width: 440px; height: 440px; }
.diff__content { position: relative; }
.diff__title { margin-bottom: 18px; max-width: 680px; }
.diff__intro { margin-bottom: 34px; max-width: 680px; line-height: 1.6; }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(8px, 1vw, 14px); }
.equation__term {
  background: var(--glass-06);
  border: 1px solid var(--on-dark-border);
  border-radius: 14px;
  padding: 16px clamp(14px, 1.6vw, 22px);
  font-weight: var(--fw-medium);
  font-size: clamp(13px, 1.4vw, 18px);
  color: var(--on-dark);
}
.equation__op { font-weight: var(--fw-light); font-size: clamp(20px, 2vw, 28px); color: var(--pink); }
.equation__result {
  background: var(--pink);
  border-radius: 14px;
  padding: 16px clamp(16px, 1.8vw, 24px);
  font-weight: var(--fw-bold);
  font-size: clamp(13px, 1.4vw, 18px);
  color: var(--purple);
}

/* ---------- Cas par métier ---------- */
.cases__title { margin-bottom: 12px; }
.cases__intro { margin-bottom: 32px; max-width: 580px; }
.cases__layout { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); align-items: flex-start; }
.cases__rail { flex: 0 0 240px; display: flex; flex-direction: column; gap: 5px; }
.rail-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 16px;
  font-weight: var(--fw-medium);
  font-size: 15px;
  background: var(--tint);
  color: var(--muted-ink);
  transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base), padding var(--dur-base);
}
.rail-btn:hover { background: var(--tint-hover); border-color: var(--line-2); color: var(--purple); }
.rail-btn.is-active { border-color: var(--purple); background: var(--purple); color: var(--on-dark); padding: 11px 16px; }
.rail-btn__arrow {
  font-size: 15px;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--pink);
  transition: opacity var(--dur-base), transform var(--dur-base), color var(--dur-base);
}
.rail-btn.is-active .rail-btn__arrow { opacity: 1; transform: translateX(0); }
.rail-btn:hover .rail-btn__arrow { opacity: 1; transform: translateX(0); color: var(--purple-300); }

.cases__detail {
  flex: 1 1 360px;
  min-width: 280px;
  align-self: stretch;
  border-left: 1px solid var(--grey-50);
  padding-left: clamp(20px, 3vw, 40px);
}
.cases__panel[hidden] { display: none; }
.cases__panel-label {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.cases__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-card {
  border-left: 3px solid var(--purple-400);
  background: var(--tint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 16px;
}
.case-card__title { font-weight: var(--fw-medium); font-size: 16px; line-height: 1.25; color: var(--purple); margin-bottom: 8px; }
.case-card__metric { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: var(--fw-medium); line-height: 1.3; color: var(--purple-metric); }
.case-card__metric::before {
  content: "";
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  background: var(--purple-400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%3E%3Cpath%20d='M3%2011L11%203M11%203H5M11%203V9'%20fill='none'%20stroke='%23000'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%3E%3Cpath%20d='M3%2011L11%203M11%203H5M11%203V9'%20fill='none'%20stroke='%23000'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Cas client mis en avant (Kroschke) */
.case-highlight {
  position: relative;
  overflow: hidden;
  background: var(--gradient-case);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.case-highlight__halo { bottom: -40%; right: -4%; width: 320px; height: 320px; }
.case-highlight__body { flex: 1 1 300px; min-width: 240px; position: relative; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pink);
  color: var(--purple);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.case-highlight__meta {
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-50);
  margin-bottom: 8px;
}
.case-highlight__title {
  font-weight: var(--fw-regular);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.18;
  color: var(--on-dark);
  margin-bottom: 12px;
  max-width: 420px;
}
.case-highlight__desc { font-weight: var(--fw-light); font-size: 14.5px; line-height: 1.55; color: var(--on-dark-65); max-width: 400px; }
.case-highlight__stats {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 14px;
}
.metric-pair { display: flex; align-items: flex-end; gap: clamp(8px, 1.4vw, 14px); }
.metric-pair__val { font-weight: var(--fw-light); font-size: clamp(30px, 4vw, 44px); line-height: 0.9; color: var(--on-dark); letter-spacing: -0.03em; }
.metric-pair__val--accent { color: var(--pink); }
.metric-pair__cap { font-size: 11px; color: var(--on-dark-50); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
.metric-pair__arrow { flex-shrink: 0; margin-bottom: 18px; color: var(--pink); }
.case-highlight__note { font-size: 13.5px; font-weight: var(--fw-light); color: var(--on-dark-65); }
.case-highlight__note strong { font-weight: var(--fw-medium); color: var(--pink); }
.case-highlight__x { font-size: clamp(22px, 2.6vw, 30px); font-weight: var(--fw-bold); line-height: 1; letter-spacing: -0.02em; }

/* ---------- Méthode : accordéon logé dans la carte « Notre différence » ---------- */
.method-acc { margin-top: clamp(22px, 3vw, 30px); position: relative; }
.method-acc__head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px clamp(16px, 1.8vw, 22px);
  border: 1px solid var(--on-dark-border);
  border-radius: 14px;
  background: var(--glass-06);
  color: var(--on-dark);
  font-family: inherit;
  font-weight: var(--fw-medium);
  font-size: clamp(16px, 1.8vw, 19px);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.method-acc__head:hover { background: var(--glass-04); border-color: var(--on-dark-80); }
.method-acc__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 16px;
}
.method-acc__label { flex: 1; min-width: 0; }
.method-acc__chev { flex-shrink: 0; color: var(--on-dark-80); transition: transform var(--dur-base) var(--ease-out); }
.method-acc__head[aria-expanded="true"] .method-acc__chev { transform: rotate(180deg); }
.method-acc__panel { padding-top: 18px; }
.method-acc__intro { font-weight: var(--fw-light); font-size: 14px; line-height: 1.5; color: var(--on-dark-65); margin-bottom: 16px; max-width: 560px; }
/* Les 4 phases côte à côte, numéro au-dessus du texte (pas d'indentation) */
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.method-step {
  background: var(--glass-04);
  border: 1px solid var(--on-dark-hairline);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}
.method-step__num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pink-glass);
  border: 1px solid var(--pink-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-medium);
  font-size: 15px;
  color: var(--pink);
  margin-bottom: 14px;
}
.method-step__title { font-weight: var(--fw-medium); font-size: 16px; color: var(--on-dark); margin-bottom: 6px; }
.method-step__desc { font-weight: var(--fw-light); font-size: 13px; line-height: 1.5; color: var(--on-dark-65); }

/* ---------- Incitation diagnostic (pleine largeur) ---------- */
.diag-push { position: relative; padding: 0; }
.diag-push__bleed {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * (var(--shell-pad) + max(0px, (100vw - var(--shell-max)) / 2)));
  width: 100vw;
  background: var(--purple);
  overflow: hidden;
  z-index: 0;
}
.diag-push__halo { right: 16%; top: -90px; width: 320px; height: 320px; background: var(--halo-circle); }
.diag-push__content {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 4.5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.diag-push__col { flex: 1 1 320px; }
.diag-push__title { color: var(--on-dark); margin-bottom: 12px; line-height: 1.08; letter-spacing: -0.025em; }
.diag-push__sub { font-weight: var(--fw-light); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.5; color: var(--on-dark-80); max-width: 460px; }
.diag-push__action { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq__title { margin-bottom: 18px; }
.faq-item { border-bottom: 1px solid var(--grey-100); }
.faq-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
}
.faq-item__q { font-weight: var(--fw-medium); font-size: 16px; color: var(--purple); line-height: 1.3; }
.faq-item__icon { transition: transform 0.3s; font-size: 24px; font-weight: var(--fw-light); color: var(--purple); line-height: 1; flex-shrink: 0; }
.faq-item[aria-expanded="true"] .faq-item__icon,
.faq-item__head[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__body { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.35s var(--ease-out), opacity 0.3s, margin 0.3s; }
.faq-item.is-open .faq-item__body { max-height: 260px; opacity: 1; margin: 0 0 20px; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { font-weight: var(--fw-light); font-size: 15px; line-height: 1.6; color: var(--grey-500); }

/* ---------- Engagements ---------- */
.eng__title { margin-bottom: 8px; }
.eng__intro { margin-bottom: 32px; }
.eng-list { display: flex; flex-direction: column; }
.eng-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--grey-50); }
.eng-item__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
}
.eng-item__title { font-weight: var(--fw-medium); font-size: 17px; color: var(--purple); line-height: 1.25; margin-bottom: 4px; }
.eng-item__desc { font-weight: var(--fw-light); font-size: 14.5px; line-height: 1.55; color: var(--grey-500); max-width: 640px; }

/* ---------- Closing ---------- */
.closing {
  background: var(--purple);
  margin-bottom: clamp(28px, 4vw, 48px);
  padding: clamp(34px, 5vw, 60px) clamp(34px, 5vw, 60px) clamp(40px, 6vw, 64px);
}
.closing__halo { top: -30%; left: 30%; width: 500px; height: 400px; }
.closing__content { position: relative; max-width: 560px; }
.closing__title { font-weight: var(--fw-light); font-size: clamp(28px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; color: var(--on-dark); margin-bottom: 16px; }
.closing__sub { font-weight: var(--fw-light); font-size: 17px; line-height: 1.5; color: var(--on-dark-80); margin-bottom: 26px; }

/* ---------- Aside : formulaire / diagnostic ---------- */
/* A/B testing : variante A par défaut, B affichée si <html data-ab="B"> */
[data-variant="B"] { display: none; }
:root[data-ab="B"] [data-variant="A"] { display: none; }
:root[data-ab="B"] [data-variant="B"] { display: block; }

.lead__card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: 20px;
  padding: 24px 26px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  text-align: center;
}
/* Variante B : carte de formulaire alignée à gauche */
.lead__card--form { text-align: left; }
.lead__card--form button[type="submit"] { margin-top: 12px; }
.lead__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--pink);
  border-radius: var(--radius-pill);
  background: var(--pink-light);
  color: var(--purple);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
}
/* Illustration animée : radar dont la zone respire / dérive discrètement */
.lead__pill { position: absolute; top: 22px; right: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: var(--radius-pill); background: var(--pink); color: var(--purple); font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.02em; }
.lead-illus { display: flex; justify-content: center; margin: 0 0 4px; }
.lead-radar { width: 208px; height: auto; overflow: visible; }
.lead-radar__grid polygon { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-linejoin: round; }
.lead-radar__grid line { stroke: var(--line-2); stroke-width: 1.2; }
.lead-radar__area { fill: var(--purple-600); fill-opacity: 0.15; stroke: var(--purple-600); stroke-width: 2.2; stroke-linejoin: round; }
.lead-radar__dot { fill: var(--purple-600); }
.lead-radar__zone {
  transform-box: view-box;
  transform-origin: 100px 92px;
  animation: radar-live 9s ease-in-out infinite;
}
@keyframes radar-live {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%      { transform: translate(3px, -2px) scale(1.05) rotate(2deg); }
  50%      { transform: translate(-2px, 2px) scale(0.965) rotate(-2deg); }
  75%      { transform: translate(2px, 1px) scale(1.03) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .lead-radar__zone { animation: none; }
}
.lead__title { font-weight: var(--fw-light); font-size: clamp(21px, 2.3vw, 25px); line-height: 1.14; letter-spacing: -0.015em; color: var(--purple); margin: 12px 0 8px; }
.lead__sub { font-weight: var(--fw-light); font-size: 14px; line-height: 1.5; color: var(--grey-500); margin-bottom: 20px; }

.lead__contact {
  position: relative;
  margin-top: -20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 38px 22px 18px;
  text-align: center;
}
.lead__contact-label { font-size: 13px; font-weight: var(--fw-medium); color: var(--muted-ink); margin-bottom: 10px; text-align: center; }
[data-contact-state="closed"] .lead__contact-label { margin-bottom: 3px; }
.lead__form { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Diagnostic (modale) ---------- */
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal__eyebrow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.modal__eyebrow-label { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); white-space: nowrap; }
.modal__step { font-size: 12px; font-weight: var(--fw-medium); letter-spacing: 0.04em; color: var(--muted-ink); white-space: nowrap; }

.diag-question__text { font-weight: var(--fw-regular); font-size: clamp(21px, 2.8vw, 28px); line-height: 1.2; letter-spacing: -0.01em; color: var(--purple); margin-bottom: 22px; }
.diag-options { display: flex; flex-direction: column; gap: 10px; }
.diag-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--purple);
  font-family: inherit;
  font-weight: var(--fw-medium);
  font-size: 15.5px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.diag-option:hover { border-color: var(--purple-400); background: var(--tint); }
.diag-option.is-selected { border-color: var(--purple); background: var(--tint-select); }
.diag-option__dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line-2); }
.diag-option.is-selected .diag-option__dot { border-color: var(--purple); background: radial-gradient(circle, var(--purple) 0 42%, transparent 46%); }
.diag-option__text { flex: 1; min-width: 0; line-height: 1.3; }
.diag-eyebrow { font-size: 13px; font-weight: var(--fw-medium); color: var(--muted-ink); margin-bottom: 4px; }

/* Barre de progression : collée tout en haut de la modale, pleine largeur
   (bord à bord, ses coins suivent l'arrondi de la carte via le clip overflow). */
.diag-bar { height: 5px; margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) calc(var(--card-pad) - 5px); background: var(--line-2); overflow: hidden; }
.diag-bar__fill { display: block; height: 100%; width: 0; background: var(--gradient-metric); transition: width 0.5s var(--ease-out); }

/* Transition animée entre deux questions */
.diag-transition { display: flex; align-items: center; justify-content: center; min-height: 300px; }
.diag-tri { position: relative; width: 190px; text-align: center; animation: label-pop 0.4s var(--ease-out) both; }
.diag-tri__svg { display: block; width: 100%; height: auto; }
.diag-tri__num { position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%); font-weight: var(--fw-light); font-size: 40px; letter-spacing: -0.03em; color: var(--purple); }
.diag-tri__cap { position: absolute; top: 63%; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 15px; border-radius: var(--radius-pill); background: var(--pink); color: var(--purple); font-size: 13px; font-weight: var(--fw-medium); }
/* Le contour se dessine pendant la transition (progression) */
.diag-tri__draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: tri-draw 0.9s var(--ease-out) forwards; }
@keyframes tri-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .diag-tri__draw { animation: none; stroke-dashoffset: 0; } }

/* Choix « secteur » (menu déroulant) */
.diag-select {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--purple);
  font-family: inherit;
  font-weight: var(--fw-medium);
  font-size: 15.5px;
  cursor: pointer;
}
.diag-select:focus-visible { outline: none; border-color: var(--purple); }

/* Page de résultat : deux colonnes (contenu + formulaire) */
.diag-result { display: grid; grid-template-columns: 1.35fr 0.95fr; gap: clamp(22px, 3vw, 38px); align-items: start; }
.diag-result__title { font-weight: var(--fw-light); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.025em; color: var(--purple); margin: 2px 0 0; }
.diag-cap { display: inline-block; padding: 0 14px; border-radius: var(--radius-pill); background: var(--pink); color: var(--purple); }
.diag-result__lead { font-weight: var(--fw-light); font-size: 16px; line-height: 1.55; color: var(--grey-500); margin: 14px 0 22px; }

/* Radar « Vous vs Votre marché » */
.diag-radar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; background: var(--surface-soft); border-radius: var(--radius-lg); padding: clamp(12px, 2vw, 18px); }
.radar { display: block; flex: 0 1 auto; min-width: 0; width: 100%; max-width: 240px; height: auto; }
.radar text { font-family: var(--font-sans); }
.radar__ax { font-size: 9px; font-weight: var(--fw-bold); letter-spacing: 0.08em; fill: var(--muted-ink-2); }
.radar__pct { font-size: 13px; font-weight: var(--fw-bold); fill: var(--purple); }
.radar__legend { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.radar__key { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-ink); }
.radar__key--you::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--purple-600); }
.radar__key--market::before { content: ""; width: 15px; border-top: 2px dashed var(--purple-300); }

/* Info « i » sur la légende marché : rappelle que la courbe est indicative. */
.radar-info { position: relative; display: inline-flex; }
.radar-info__btn {
  width: 15px; height: 15px; padding: 0; border-radius: 50%;
  border: 1px solid var(--muted-ink); background: none; color: var(--muted-ink);
  font-size: 10px; font-weight: var(--fw-bold); line-height: 1; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; cursor: help;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.radar-info__btn:hover { border-color: var(--purple); color: var(--purple); }
.radar-info__tip {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  width: max-content; max-width: 210px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--purple-ink); color: var(--on-dark);
  font-size: 11px; font-weight: var(--fw-regular); line-height: 1.45;
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, visibility var(--dur-fast);
  z-index: 5;
}
.radar-info__btn:hover + .radar-info__tip,
.radar-info__btn:focus-visible + .radar-info__tip { opacity: 1; visibility: visible; transform: none; }

/* Détail des trois métriques */
.diag-metrics { margin-top: 2px; }
.diag-mrow { padding: 15px 0; border-top: 1px solid var(--line); }
.diag-mrow:first-child { border-top: none; padding-top: 4px; }
.diag-mrow__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.diag-mrow__label { font-weight: var(--fw-medium); font-size: 16px; color: var(--purple); }
.diag-mrow__tag { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.03em; padding: 3px 11px; border-radius: var(--radius-pill); }
.diag-mrow__tag--l0 { background: var(--line-2); color: var(--muted-ink); }
.diag-mrow__tag--l1 { background: var(--tint-select); color: var(--purple-400); }
.diag-mrow__tag--l2 { background: var(--purple); color: var(--pink); }
.diag-mrow__pct { margin-left: auto; font-weight: var(--fw-bold); font-size: 15px; color: var(--purple-metric); }
.diag-mrow__desc { font-weight: var(--fw-light); font-size: 13.5px; line-height: 1.55; color: var(--grey-500); margin: 0; }

/* Recommencer le test (résultat) */
.diag-restart { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 0; border: none; background: none; color: var(--accent-ink); font-family: inherit; font-weight: var(--fw-medium); font-size: 13.5px; cursor: pointer; transition: color var(--dur-fast) ease; }
.diag-restart:hover { color: var(--purple); }

/* Colonne droite : formulaire de contact */
.diag-result__aside { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 26px); }
.diag-result__aside form .btn { margin-top: 14px; }
.diag-form__title { font-weight: var(--fw-regular); font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; color: var(--purple); margin: 12px 0 6px; }
.diag-form__sub { font-weight: var(--fw-light); font-size: 14px; line-height: 1.5; color: var(--grey-500); margin-bottom: 16px; }

/* Résultat (desktop large) : deux cartes distinctes sur le fond sombre. Le
   formulaire est sticky (il suit le défilement si le résultat est haut) et
   glisse en place à l'apparition. */
.modal--diag.is-result .modal__card {
  background: transparent;
  box-shadow: none;
  overflow: visible;
  padding: clamp(8px, 1.4vw, 16px);
}
.modal--diag.is-result .diag-bar { display: none; }
.modal--diag.is-result .modal__eyebrow { display: none; }
.modal--diag.is-result .modal__head { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 6; }
.modal--diag.is-result .diag-result { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.modal--diag.is-result .diag-result__main {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
  padding: clamp(24px, 3vw, 36px);
}
.modal--diag.is-result .diag-result__aside {
  position: sticky;
  top: 16px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop);
  padding: clamp(24px, 2.4vw, 28px);
  animation: form-slide-in 0.5s var(--ease-out) both;
}
/* Compacité (confort de lecture) */
.modal--diag.is-result .diag-result__title { font-size: clamp(24px, 2.9vw, 32px); }
.modal--diag.is-result .diag-result__lead { margin: 12px 0 14px; }
.modal--diag.is-result .radar { max-width: 244px; }
.modal--diag.is-result .diag-mrow { padding: 10px 0; }
.modal--diag.is-result .diag-mrow:first-child { padding-top: 2px; }
.modal--diag.is-result .diag-mrow__desc { font-size: 13px; line-height: 1.45; }

/* Enrichissement (bonus) */
.bonus { background: var(--surface-bonus); border: 1px solid var(--line-bonus); border-radius: 14px; padding: 18px 16px; margin-top: 18px; }
.bonus__title { font-weight: var(--fw-bold); font-size: 16px; color: var(--purple); margin-bottom: 6px; letter-spacing: -0.01em; }
.bonus__text { font-weight: var(--fw-light); font-size: 13px; line-height: 1.55; color: var(--grey-500); margin-bottom: 16px; }
.bonus__fields { display: flex; flex-direction: column; gap: 12px; }
.bonus__row { display: flex; gap: 10px; flex-wrap: wrap; }
.bonus__row .field { flex: 1 1 130px; }
.bonus__row .field + .field { margin-top: 0; }

/* Popin d'enrichissement (après contact) */
.popin__header { text-align: center; margin-bottom: 22px; }
.popin__title { font-weight: var(--fw-regular); font-size: 26px; color: var(--purple); margin-bottom: 10px; letter-spacing: -0.01em; }
.popin__sub { font-weight: var(--fw-light); font-size: 15px; line-height: 1.5; color: var(--grey-500); }

/* ---------- Utilitaires ---------- */
[hidden] { display: none !important; }
