/* Vélo Boulot — styles de la page diagnostic, en complément de style.css. */

:root { --faint: #6B7B8C; }

h1, h2, h3, h4, p, ul, ol, fieldset, legend {
  margin: 0;
  padding: 0;
}
fieldset {
  border: 0;
  min-width: 0;
}
ul, ol { list-style: none; }
button, input, textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Mise en page ---------- */

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: clamp(64px, 6.7vw, 96px);
}
.aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 24px;
}
.aside-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}
.d-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.d-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  color: var(--faint);
}
.d-steps .dot {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--faint);
}
.d-steps li.done, .d-steps li.current { color: var(--text); }
.d-steps li.current { font-weight: 700; }
.d-steps li.done .dot {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.d-steps li.current .dot {
  border-color: var(--blue);
  color: var(--blue);
}
.linkbtn {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  min-height: 44px;
}
.privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--tint);
  font-size: 15px;
  line-height: 1.55;
  color: #1F3F5E;
}
.privacy svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  scroll-margin-top: 16px;
}

/* ---------- Cartes ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.card h2, .card h3 {
  font-family: var(--font-display);
  letter-spacing: -.015em;
}
.q-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
}
.q-title:focus { outline: none; }
.help {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.progress-head strong {
  color: #1F3F5E;
  font-weight: 600;
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--tint-2);
  overflow: hidden;
  margin-top: 12px;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transition: width .3s ease;
}

/* ---------- Choix du profil ---------- */

.profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.profile:hover {
  border-color: var(--blue);
  background: #FBFDFF;
}
.profile .ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tint-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile .t {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
.profile .d {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}
.profile .go {
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Options ---------- */

.opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.opts.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
legend + .opts { margin-top: 20px; }
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid var(--line-faint);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--line); }
.opt:has(input:checked) {
  border-color: var(--blue);
  background: var(--tint);
}
.opt:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin: 0;
  border: 2px solid var(--blue);
  background: #fff;
  cursor: pointer;
}
.opt input:focus-visible {
  outline: none;
  box-shadow: none;
}
.opt input[type=radio] { border-radius: 50%; }
.opt input[type=radio]:checked {
  background: var(--blue);
  box-shadow: inset 0 0 0 4px #fff;
}
.opt input[type=checkbox] { border-radius: 7px; }
.opt input[type=checkbox]:checked { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/16px no-repeat; }
.opt .lbl {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.opt .l {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.opt .s {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ---------- Boutons ---------- */

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #E1EAF3;
}
.d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.d-btn:hover {
  background: var(--blue-hover);
  color: #fff;
}
.d-btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
}
.d-btn.ghost {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--line);
  padding: 0 22px;
}
.d-btn.ghost:hover {
  border-color: var(--blue);
  background: #fff;
  color: var(--text);
}

/* ---------- Contexte ---------- */

.d-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.d-field label {
  font-size: 15px;
  font-weight: 600;
  color: #1F3F5E;
}
textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 17px;
  line-height: 1.55;
  resize: vertical;
}
textarea::placeholder, input::placeholder { color: #7C8B9A; }
.count {
  align-self: flex-end;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Aperçu ---------- */

.preview h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.preview-grid div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--tint);
}
.preview-grid strong { font-size: 17px; }
.preview-grid span {
  font-size: 15px;
  line-height: 1.55;
  color: #1F3F5E;
}

/* ---------- Résultats ---------- */

.res-hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.res-illu {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 24px;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
}
.res-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.res-title {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.res-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}
.bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bullets li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
  line-height: 1.55;
}
.bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-2px);
}
.note {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--tint);
  font-size: 15px;
  line-height: 1.55;
  color: #1F3F5E;
}
.sec-title {
  font-size: 28px;
  font-weight: 700;
}
.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.sub {
  font-size: 15px;
  font-weight: 700;
  color: #1F3F5E;
  margin-bottom: 12px;
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
}
.checks svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 12px;
}
.advised {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.advised li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 3px solid var(--sky);
}
.advised strong { font-size: 16px; }
.advised span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.numlist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.numlist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}
.numlist .txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.numlist strong { font-size: 17px; }
.numlist span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.numlist a {
  font-size: 15px;
  font-weight: 600;
}
.gauge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.gauge i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--tint-2);
}
.gauge i.on { background: var(--blue); }
.gauge span {
  font-size: 14px;
  color: var(--faint);
}
.gauge span.on {
  color: var(--text);
  font-weight: 700;
}
.d-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.d-chips span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint-2);
  color: #1F3F5E;
  font-size: 14px;
  font-weight: 600;
}
.prios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prios li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line-faint);
}
.prios .num {
  width: 40px;
  height: 40px;
  font-size: 19px;
}
.prios .txt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prios strong { font-size: 19px; }
.prios .d {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}
.prios .w {
  font-size: 14px;
  line-height: 1.5;
  color: #1F3F5E;
}
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.duo .card {
  gap: 14px;
  padding: 32px;
}
.duo .card.soft {
  background: var(--tint);
  border-color: var(--tint);
}
.duo h3 {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.obl strong {
  display: block;
  font-size: 16px;
}
.obl span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.d-chips.white span { background: #fff; }
.quote {
  padding: 24px 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-left: 6px solid var(--sky);
}
.quote p:first-child {
  font-size: 14px;
  font-weight: 700;
  color: #1F3F5E;
  margin-bottom: 8px;
}
.quote p:last-child {
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  white-space: pre-line;
}

/* ---------- Envoi ---------- */

.send {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.send h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.send p {
  color: #C3D3E3;
  line-height: 1.6;
}
.send-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.send .f {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.send label {
  font-size: 14px;
  font-weight: 600;
  color: #C3D3E3;
}
.send input[type=text], .send input[type=email], .send input[type=tel] {
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}
.send input[aria-invalid=true] { border-color: #F2A49A; }
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.55;
  color: #C3D3E3;
}
.consent input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--sky);
}
.send-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.send .d-btn {
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
}
.send .d-btn:hover {
  background: #B5D7F6;
  color: var(--navy);
}
.send .fine {
  font-size: 14px;
  line-height: 1.5;
  color: #AFC1D3;
}
.send .fine a { color: #fff; }
.send .d-btn.ghost {
  background: #fff;
  color: var(--text);
}
.send .d-btn[disabled] { opacity: 0.55; }
.send .progress-head, .send .progress-head strong { color: #C3D3E3; }
.send .bar { background: rgba(255, 255, 255, 0.18); }
.send .bar span { background: var(--sky); }
.send .linkbtn { color: #fff; }
.send .f-err {
  font-size: 14px;
  line-height: 1.4;
  color: #F9C4BC;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ok {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.ok .tick {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
}
.err {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 15px;
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Mobile ---------- */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: clamp(64px, 6.7vw, 96px);
  }
  .aside {
    position: static;
    order: 2;
  }
  .aside .d-steps, .aside .aside-intro { display: none; }
  .duo, .two-cols { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .profiles, .opts, .opts.cols3, .send-grid { grid-template-columns: 1fr; }
  .res-hero {
    flex-direction: column;
    gap: 20px;
  }
  .res-illu {
    width: 100%;
    height: 120px;
  }
  .send-row {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-row .d-btn { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
