/* =====================================================================
   Radar de lancement - page /radar-de-lancement/
   Toutes les classes sont préfixées « rd- » pour ne jamais entrer en
   conflit avec style.css. Couleurs et polices : celles du site.
   Aucun style en ligne (la politique de sécurité CSP les bloque) :
   les largeurs variables sont posées par radar.js.
   ===================================================================== */
.page-radar {
  --rd-line: #dde5ea;
  --rd-cyan-tint: #e8f8fb;
  --rd-warm: #f0a35e;
  --rd-warm-ink: #a3570f;
  --rd-warm-tint: #fdf0e2;
}

/* ---------- Fond spatial ---------- */
.rd-page {
  position: relative;
  overflow: hidden;
  padding: 130px 0 72px;
  background: radial-gradient(ellipse 900px 500px at 85% -10%, rgba(93, 213, 232, 0.18), transparent 60%),
              linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-mid) 55%, var(--navy-mid-2) 100%);
}
.rd-space { position: absolute; inset: 0; pointer-events: none; }
.rd-space svg { width: 100%; height: 100%; display: block; }
.rd-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}
.rd-app { display: flex; flex-direction: column; gap: 20px; min-height: 420px; }
.rd-app h1, .rd-app h2, .rd-app h3, .rd-app h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
.rd-app p { margin: 0; }
.rd-app :focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Cartes ---------- */
.rd-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -12px rgba(11, 27, 58, 0.18);
  padding: clamp(20px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* ---------- Accueil ---------- */
.rd-hero {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 5vw, 48px);
}
.rd-intro { display: grid; grid-template-columns: 1fr 210px; gap: 28px; align-items: center; }
.rd-intro > div { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rd-intro .eyebrow { margin: 0; }
.rd-intro h1 { font-size: clamp(32px, 5.6vw, 46px); color: var(--navy-deep); }
.rd-accent { color: var(--teal); }
.rd-lead { color: var(--ink-soft); font-size: 18px; max-width: 46ch; }
.rd-byline { font-size: 13.5px; color: var(--ink-soft); }
.rd-noscript { background: var(--rd-warm-tint); color: var(--rd-warm-ink); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; }
.rd-noscript a { color: var(--rd-warm-ink); }
.rd-resume { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.rd-deco { width: 100%; max-width: 210px; aspect-ratio: 1; }
.rd-deco .ring { fill: none; stroke: var(--teal); stroke-opacity: 0.4; }
.rd-deco .sweep { fill: var(--cyan); fill-opacity: 0.3; transform-origin: 100px 100px; animation: rd-sweep 5s linear infinite; }
.rd-deco .blip { fill: var(--teal); }
@keyframes rd-sweep { to { transform: rotate(360deg); } }

/* ---------- Boutons propres à l'outil ---------- */
.rd-app .btn { cursor: pointer; font-family: var(--font-body); }
.rd-app .btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.rd-app .btn-ghost-dark { border: 1.5px solid var(--navy-deep); background: transparent; }
.rd-back {
  background: none;
  border: none;
  padding: 10px 4px;
  font: inherit;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.rd-back:hover { color: var(--ink); }
.rd-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--teal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Progression ---------- */
.rd-progress { display: flex; flex-direction: column; gap: 8px; }
.rd-segs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.rd-seg { height: 6px; border-radius: 3px; background: var(--rd-line); overflow: hidden; }
.rd-seg i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width 0.25s; }
.rd-progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.rd-axis-num {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--cyan), var(--teal-light));
  border-radius: 999px;
  padding: 4px 11px;
  font-variant-numeric: tabular-nums;
}
.rd-axis-name { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3vw, 23px); color: var(--teal-text); line-height: 1.2; }
.rd-q-count { flex: none; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- « Pourquoi je vous pose ces questions » ---------- */
.rd-why { background: var(--rd-cyan-tint); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.rd-why .rd-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); font-weight: 700; }
.rd-why blockquote { margin: 0; font-style: italic; font-size: 15.5px; color: var(--ink); }
.rd-why figcaption { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Question ---------- */
.rd-q { display: flex; flex-direction: column; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.rd-q legend { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 3.4vw, 26px); line-height: 1.25; padding: 0; margin-bottom: 4px; text-wrap: balance; color: var(--ink); }
.rd-hint { font-size: 14px; color: var(--ink-soft); margin-top: -6px !important; }
.rd-opts { display: flex; flex-direction: column; gap: 10px; }
.rd-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--rd-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.rd-opt:hover { border-color: var(--teal); }
.rd-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--rd-line); display: grid; place-items: center; }
.rd-opt[aria-checked="true"] { border-color: var(--cyan); background: var(--rd-cyan-tint); }
.rd-opt[aria-checked="true"] .rd-dot { border-color: var(--teal); background: var(--teal); }
.rd-opt[aria-checked="true"] .rd-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white); }
.rd-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Résultat ---------- */
.rd-result-top { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: center; }
.rd-result-top > div { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rd-result-top .eyebrow { margin: 0; }
.rd-result-top h2 { font-size: clamp(26px, 4.4vw, 34px); }
.rd-hook { font-size: 17px; color: var(--ink-soft); }
.rd-dial { width: 100%; max-width: 180px; aspect-ratio: 1; }
.rd-dial .track { fill: none; stroke: var(--rd-line); stroke-width: 12; }
.rd-dial .val { fill: none; stroke: url(#rdDialGrad); stroke-width: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 70px 70px; }
.rd-dial text { fill: var(--navy-deep); font-family: var(--font-display); font-weight: 600; }
.rd-dial .unit { fill: var(--ink-soft); font-family: var(--font-body); font-weight: 500; }

.rd-lever { border: 1px solid var(--rd-line); border-radius: var(--radius-sm); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.rd-chip { align-self: flex-start; background: var(--rd-cyan-tint); color: var(--navy-mid-2); border: 1px solid rgba(93, 213, 232, 0.5); font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 11px; }
.rd-lever h3 { font-size: 20px; }

.rd-radar-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; align-items: center; }
.rd-radar-wrap > div { min-width: 0; }
.rd-radar-wrap .eyebrow { margin: 0 0 8px; }
.rd-chart { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.rd-chart .grid { fill: none; stroke: var(--rd-line); }
.rd-chart .spoke { stroke: var(--rd-line); }
.rd-chart .shape { fill: var(--cyan); fill-opacity: 0.3; stroke: var(--teal); stroke-width: 2; }
.rd-chart .pt.fort { fill: var(--teal); }
.rd-chart .pt.cons { fill: var(--rd-warm); }
.rd-chart text { fill: var(--ink-soft); font-size: 14px; font-family: var(--font-body); }
.rd-small { font-size: 14px; color: var(--ink-soft); }
.rd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.rd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rd-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rd-legend .fort { background: var(--teal); }
.rd-legend .cons { background: var(--rd-warm); }

/* ---------- Formulaire : carte d'embarquement ---------- */
.rd-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px solid rgba(93, 213, 232, 0.55);
  box-shadow: 0 18px 40px -22px rgba(23, 64, 111, 0.45);
  overflow: hidden;
}
.rd-stub { position: relative; background: linear-gradient(155deg, var(--rd-cyan-tint) 0%, #d6f2f1 100%); padding: clamp(18px, 3vw, 26px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rd-stub .eyebrow { font-size: 0.7rem; margin: 0; }
.rd-stub h3 { font-size: 22px; color: var(--navy-deep); }
.rd-stub dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.rd-stub dt { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 700; padding-top: 2px; }
.rd-stub dd { margin: 0; font-weight: 600; color: var(--navy-deep); min-width: 0; }
.rd-inc { margin: 0; padding: 12px 0 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--navy-mid-2); border-top: 1px dashed rgba(23, 64, 111, 0.25); }
.rd-inc li { display: flex; gap: 8px; align-items: flex-start; }
.rd-inc li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--teal); }
.rd-rocket { position: absolute; right: 14px; bottom: 12px; width: 34px; height: 34px; color: var(--teal); opacity: 0.55; }
.rd-capture { position: relative; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; min-width: 0; border-left: 2px dashed rgba(93, 213, 232, 0.7); }
.rd-capture::before, .rd-capture::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 1.5px solid rgba(93, 213, 232, 0.55); }
.rd-capture::before { top: -14px; }
.rd-capture::after { bottom: -14px; }
.rd-capture h3 { font-size: 21px; }
.rd-sub { color: var(--ink-soft); font-size: 14.5px; margin-top: -6px !important; }
.rd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd-field label { font-size: 0.86rem; font-weight: 600; color: var(--navy-deep); }
.rd-field label small { color: var(--ink-soft); font-weight: 400; font-size: inherit; }
.rd-field input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--rd-line);
  background: var(--cream);
  color: var(--ink);
}
.rd-field input:focus { border-color: var(--cyan); background: var(--white); outline: none; box-shadow: 0 0 0 3px rgba(93, 213, 232, 0.25); }
.rd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rd-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.rd-consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.rd-legal { font-size: 12px; color: var(--ink-soft); }
.rd-legal a { color: var(--navy-mid-2); }
.rd-capture .btn { width: 100%; }
.rd-err { color: #b3261e; font-size: 13.5px; font-weight: 600; }

/* ---------- Après l'envoi ---------- */
.rd-sent { display: flex; gap: 14px; align-items: flex-start; border: 1px solid rgba(93, 213, 232, 0.5); border-radius: var(--radius-sm); padding: 18px; background: var(--rd-cyan-tint); }
.rd-sent.is-warn { background: var(--rd-warm-tint); border-color: rgba(240, 163, 94, 0.5); }
.rd-ok { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.rd-sent.is-warn .rd-ok { background: var(--rd-warm); }
.rd-sent > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd-next { display: flex; flex-direction: column; gap: 14px; }
.rd-next h3 { font-size: 22px; }
.rd-offer {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px 24px;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-mid) 60%, var(--navy-mid-2) 130%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rd-app .rd-offer h4 { color: var(--white); font-size: 21px; }
.rd-offer p { color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.rd-offer .rd-kick { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.rd-offer-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 4px; }
.rd-offer-actions .btn-ghost { padding: 12px 22px; }
.rd-restart { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }

/* ---------- Section « Ce que le Radar analyse » ---------- */
.rd-axes { background: var(--cream); padding: 64px 0 72px; }
.rd-axes .container { max-width: 980px; }
.rd-axes h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 34px); margin: 10px 0 26px; color: var(--navy-deep); }
.rd-axes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: rd-axe; }
.rd-axes-list li { counter-increment: rd-axe; background: var(--white); border-radius: var(--radius-sm); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 26px -18px rgba(11, 27, 58, 0.35); }
.rd-axes-list li::before { content: counter(rd-axe); width: 30px; height: 30px; border-radius: 50%; background: var(--navy-deep); color: var(--cyan); font-family: var(--font-display); font-weight: 600; display: grid; place-items: center; margin-bottom: 4px; }
.rd-axes-list b { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--navy-deep); }
.rd-axes-list span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.rd-axes-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-soft); }
.rd-axes-note a { color: var(--teal-text); }

@media (prefers-reduced-motion: reduce) {
  .rd-deco .sweep { animation: none; }
  .rd-seg i, .rd-opt { transition: none; }
}

@media (max-width: 900px) {
  .rd-page { padding: 104px 0 56px; }
  .rd-axes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rd-intro { grid-template-columns: 1fr; gap: 18px; }
  .rd-deco { display: none; }
  .rd-result-top { grid-template-columns: 1fr; justify-items: start; }
  .rd-dial { max-width: 150px; }
  .rd-radar-wrap { grid-template-columns: 1fr; }
  .rd-ticket { grid-template-columns: 1fr; }
  .rd-capture { border-left: none; border-top: 2px dashed rgba(93, 213, 232, 0.7); }
  .rd-capture::before, .rd-capture::after { top: -13px; bottom: auto; }
  .rd-capture::before { left: -13px; }
  .rd-capture::after { left: auto; right: -13px; }
  .rd-segs { gap: 3px; }
  .rd-axes-list { grid-template-columns: 1fr; }
  .rd-offer-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* Liens dans les petits textes de l'outil */
.rd-app .rd-small a { color: var(--teal-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
