/* ============================================
   DÉCLIC PÉDAGO — La boussole (outil d'orientation)
   Uniquement les tokens de style.css : aucune nouvelle couleur.
   ============================================ */

.boussole {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(29, 58, 94, 0.08);
  padding: clamp(24px, 5vw, 52px);
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

/* ── INTRO ── */
.bq-intro__eyebrow,
.bq-result__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 10px;
}
.bq-intro__title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 18px;
}
.bq-intro__list {
  list-style: none;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.bq-intro__list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-mid);
  line-height: 1.6;
}
.bq-intro__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45em;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ocre);
  background: radial-gradient(circle, var(--ocre) 0 3px, transparent 4px);
}
.bq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.bq-meta span {
  font-size: 0.8rem;
  color: var(--navy);
  background: var(--navy-pale);
  border-radius: 999px;
  padding: 6px 14px;
}
.bq-intro__start { min-width: 240px; }
.bq-intro__privacy {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.6;
}
.bq-noscript {
  background: var(--sand);
  border-radius: var(--r);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.6;
}

/* ── PROGRESSION ── */
.bq-progress { margin-bottom: 26px; }
.bq-progress__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  margin-bottom: 10px;
  min-height: 32px;
}
.bq-progress__bar {
  height: 6px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
}
.bq-progress__bar span {
  display: block;
  height: 100%;
  background: var(--ocre);
  border-radius: inherit;
  transition: width 0.35s var(--ease-out);
}
.bq-back {
  background: none;
  border: 0;
  color: var(--navy);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 0 6px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── QUESTION ── */
.bq-question { border: 0; padding: 0; margin: 0; min-width: 0; }
.bq-question__label {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 8px;
  padding: 0;
  outline: none;
}
.bq-question__help {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 4px;
}
.bq-options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.bq-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.bq-option:hover { border-color: var(--navy-mid); background: var(--navy-pale); }
.bq-option:active { transform: scale(0.99); }
.bq-option:focus-visible,
.bq-option--check:focus-within {
  outline: 3px solid var(--ocre);
  outline-offset: 2px;
}
.bq-option__radio,
.bq-option__box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--navy-mid);
  background: var(--white);
}
.bq-option__radio { border-radius: 50%; }
.bq-option__box { border-radius: 4px; }
/* Sélection : fond + coche, jamais la couleur seule */
.bq-option[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.bq-option[aria-pressed="true"] .bq-option__radio {
  border-color: var(--ocre-light);
  background: radial-gradient(circle, var(--ocre-light) 0 5px, var(--navy) 6px);
}
.bq-option--check input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.bq-option--check { position: relative; }
.bq-option--check:has(input:checked) {
  background: var(--navy-pale);
  border-color: var(--navy);
}
.bq-option--check input:checked + .bq-option__box {
  background: var(--navy);
  border-color: var(--navy);
  position: relative;
}
.bq-option--check input:checked + .bq-option__box::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bq-next { margin-top: 22px; }
.bq-next:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── RÉSULTAT ── */
.bq-result__title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.12;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 18px;
  outline: none;
}
.bq-priority {
  border-radius: var(--r-lg);
  padding: 16px 20px;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 30px;
  border-left: 4px solid;
}
.bq-priority strong { font-weight: 600; }
.bq-priority--observer { background: var(--navy-pale); border-color: var(--navy-mid); color: var(--navy-dark); }
.bq-priority--agir     { background: var(--sand);      border-color: var(--ocre);     color: var(--ink); }
.bq-priority--avis     { background: #fbefeb;          border-color: var(--terra);    color: var(--ink); }

.bq-block { margin-bottom: 28px; }
.bq-block p { color: var(--ink-mid); line-height: 1.7; }
.bq-block__title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 12px;
}
.bq-block--action {
  background: var(--sand);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.bq-block--action p { color: var(--ink); }

.bq-steps { list-style: none; display: grid; gap: 16px; }
.bq-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.bq-step__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-size: 1.15rem;
}
.bq-step__who { font-weight: 600; color: var(--navy); margin-bottom: 2px; line-height: 1.4; }
.bq-step__why { font-size: 0.93rem; }

.bq-grid { display: grid; gap: 0 32px; }
@media (min-width: 720px) { .bq-grid { grid-template-columns: 1fr 1fr; } }
.bq-list { list-style: none; display: grid; gap: 10px; }
.bq-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-mid);
  line-height: 1.6;
  font-size: 0.93rem;
}
.bq-list li::before { position: absolute; left: 0; top: 0; font-weight: 600; }
.bq-list--plus li::before { content: '+'; color: var(--ocre); font-size: 1.15rem; line-height: 1.4; }
.bq-list--warn li::before { content: '!'; color: var(--terra); width: 18px; text-align: center; }

.bq-link {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--ocre);
  text-underline-offset: 4px;
  line-height: 1.6;
}
.bq-disclaimer {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 18px;
}
.bq-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 36px; }
.bq-restart {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.85rem; color: var(--ink-light);
  text-decoration: underline; text-underline-offset: 3px;
  padding: 10px 6px;
}

/* ── CAPTURE EMAIL ── */
.bq-capture {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: 24px;
}
.bq-capture__title {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.bq-capture__sub { color: rgba(255,255,255,0.82); line-height: 1.65; margin-bottom: 20px; font-size: 0.95rem; }
.bq-capture .form-label { color: rgba(255,255,255,0.85); }
.bq-capture .form-control[aria-invalid="true"] { border-color: var(--ocre-light); box-shadow: 0 0 0 3px rgba(232,184,122,0.35); }
.bq-form__row { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .bq-form__row { grid-template-columns: 1fr 1fr; } }
.bq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bq-optin {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.85rem; line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin: 4px 0 16px;
  cursor: pointer;
}
.bq-optin input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ocre); flex-shrink: 0; }
.bq-form__error {
  background: rgba(192, 88, 64, 0.2);
  border: 1px solid var(--terra);
  color: var(--white);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.bq-form__legal { font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,0.6); margin-top: 14px; }
.bq-form__legal a { color: inherit; text-decoration: underline; }
.bq-success { line-height: 1.7; outline: none; }
.bq-success strong { color: var(--ocre-light); }

/* ── CTA FINAL ── */
.bq-cta {
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.bq-cta p { color: var(--ink-mid); line-height: 1.7; margin-bottom: 16px; font-size: 0.95rem; }
.bq-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── SECTION « QUI FAIT QUOI » ── */
.pros-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .pros-grid { grid-template-columns: 1fr 1fr; } }
.pro-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 24px 20px;
}
.pro-card__title {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 10px;
}
.pro-card dl { display: grid; gap: 8px; margin: 0; }
.pro-card dt {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terra); font-weight: 500;
}
.pro-card dd { margin: 0 0 4px; color: var(--ink-mid); font-size: 0.92rem; line-height: 1.6; }
.pro-card--self { border-color: var(--ocre); background: var(--cream); }

/* ── MOBILE ── */
@media (max-width: 480px) {
  .boussole { padding: 22px 16px; border-radius: var(--r); }
  .bq-option { font-size: 0.97rem; padding: 14px; }
  .bq-tools .btn, .bq-cta__actions .btn, .bq-intro__start { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bq-progress__bar span, .bq-option { transition: none; }
}

/* ── IMPRESSION : seul le plan s'imprime ── */
@media print {
  .nav, .footer, .page-hero, .cookie-banner, .whatsapp-btn, .scroll-top, .skip-link,
  .bq-tools, .bq-capture, .bq-cta, .boussole-after, .cta-band { display: none !important; }
  body, .section, .section--sand { background: #fff !important; }
  .boussole { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .bq-result::before {
    content: 'Déclic Pédago · La boussole · declicpedago.fr';
    display: block; font-size: 10pt; color: #555; margin-bottom: 12pt;
  }
  .bq-block, .bq-step { break-inside: avoid; }
  a { color: #000 !important; }
}
