/* ════════ Le baromètre de la mobilité ════════ */
body { background: var(--bg); }

/* ─── Masthead ─── */
.masthead { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 46px 22px 52px;
  background: radial-gradient(120% 130% at 85% -10%, rgba(113,134,39,.34) 0%, rgba(113,134,39,0) 48%),
              linear-gradient(155deg, #204d88 0%, #183c6d 55%, #112a4c 100%); }
.mast-deco .q, .mast-deco .q2 { position: absolute; border-radius: 50%; pointer-events: none; }
.mast-deco .q { right: -120px; bottom: -180px; width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 60%); border: 1px solid rgba(255,255,255,.08); }
.mast-deco .q2 { left: -90px; top: -120px; width: 280px; height: 280px; background: radial-gradient(circle at 60% 60%, rgba(113,134,39,.18), transparent 60%); }
.mast-inner { position: relative; max-width: 720px; margin: 0 auto; }
.mast-logo img { height: 36px; margin-bottom: 22px; }
.mast-overline { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #d3e495; margin-bottom: 12px; }
.mast-title { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.mast-sub { font-size: 16px; color: rgba(255,255,255,.82); line-height: 1.6; max-width: 560px; margin: 16px auto 0; }

/* ─── Progress ─── */
.progress-wrap { height: 4px; background: rgba(24,60,109,.12); position: sticky; top: 0; z-index: 50; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-dark), var(--teal)); transition: width .2s ease; }

/* ─── Conteneur ─── */
.container { max-width: 740px; margin: 0 auto; padding: 36px 18px 60px; }

/* ─── Intro ─── */
.intro-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 26px; box-shadow: var(--shadow-sm); position: relative; }
.intro-card::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; background: linear-gradient(var(--teal), var(--teal-dark)); border-radius: 3px; }
.intro-lead { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.25; margin-bottom: 12px; letter-spacing: -.01em; }
.intro-card p { color: var(--text); font-size: 14.5px; line-height: 1.65; }
.intro-card p + p { margin-top: 10px; }
.intro-card strong { color: var(--teal-darker); font-weight: 700; }
.intro-meta { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.intro-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ─── Sections ─── */
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 32px 28px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.section-header { display: flex; align-items: center; gap: 16px; margin: 0 -32px 24px; padding: 22px 32px 18px; border-bottom: 1px solid var(--line-soft); background: var(--teal-tint); border-radius: var(--radius) var(--radius) 0 0; }
.section-index { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.section-title { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
.section-note { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ─── Questions ─── */
.question { margin-bottom: 28px; }
.question:last-child { margin-bottom: 0; }
.question-label { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.q-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.q-text { font-size: 15.5px; font-weight: 700; color: var(--text); line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.q-text em { color: var(--teal-darker); font-style: italic; }
.q-constraint { font-size: 12px; font-weight: 500; color: var(--muted); }
.q-hint { margin-top: 10px; padding-left: 38px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ─── Options ─── */
.options-list { display: flex; flex-direction: column; gap: 8px; padding-left: 38px; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-left: 38px; }
.mode-grid { grid-template-columns: 1fr 1fr; }
.inline-options { display: flex; gap: 9px; flex-wrap: wrap; padding-left: 38px; }
.inline-options .option-card { flex: 0 0 auto; }
.option-card { display: flex; align-items: center; gap: 11px; padding: 11px 15px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; transition: border-color .14s, background .14s, box-shadow .14s; -webkit-tap-highlight-color: transparent; }
.option-card:hover { border-color: var(--teal); background: var(--teal-tint); }
/* « > » : seulement le rond ou la case de la réponse. Sans lui, la règle
   écrasait aussi les champs à remplir (« précisez », « Autre ») à 18 px. */
.option-card > input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.option-body { font-size: 14px; color: var(--text); line-height: 1.4; }
.option-card:has(input:checked) { border-color: var(--teal); background: var(--teal-light); box-shadow: inset 0 0 0 1px var(--teal); }
.option-card.is-disabled { opacity: .42; cursor: not-allowed; }
.option-card.is-disabled:hover { border-color: var(--line); background: #fff; }

/* ─── Champ libre intégré à une option (« Autre », précision « 3 voitures ou plus ») ─── */
.option-card-autre .option-body, .option-card-precise .option-body { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-text, .inline-number { border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font-size: 13.5px; font-family: var(--font); color: var(--text); background: #fbfbfa; }
.inline-text { flex: 1 1 160px; min-width: 120px; }
.inline-number { width: 76px; }
.inline-text:not(:disabled), .inline-number:not(:disabled) { cursor: text; }
/* Un champ qui reçoit le curseur reste au-dessus de la barre d'outils flottante du bas. */
.inline-text, .inline-number, .text-input, .textarea-input { scroll-margin-bottom: 110px; }
.inline-text:disabled, .inline-number:disabled { background: #f1f1ef; color: var(--muted); }
.inline-text:focus, .inline-number:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); background: #fff; }

/* ─── Matrice (fréquence / satisfaction) ─── */
.matrix { padding-left: 38px; display: flex; flex-direction: column; gap: 7px; }
.matrix-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.matrix-row .mr-label { font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; }
.matrix-row .mr-label .mr-ico { font-size: 15px; }
.matrix-opts { display: flex; gap: 5px; flex-wrap: wrap; }
.matrix-opts label { flex: 1; min-width: 0; }
.matrix-opts input { position: absolute; opacity: 0; pointer-events: none; }
.matrix-opts .mo { display: block; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 7px 6px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; transition: all .12s; white-space: nowrap; }
.matrix-opts label:hover .mo { border-color: var(--teal); color: var(--teal-dark); }
.matrix-opts input:checked + .mo { background: var(--teal); border-color: var(--teal-dark); color: #fff; }
.likert .matrix-opts input:checked + .mo.sat-bad { background: var(--t-voiture); border-color: #b23b37; }
.likert .matrix-opts input:checked + .mo.sat-mid { background: var(--accent); border-color: #c98a00; }
.likert .matrix-opts input:checked + .mo.sat-good { background: var(--t-marche); border-color: #1d7a43; }

/* ─── Champs texte ─── */
.text-input, .textarea-input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; font-size: 14.5px; font-family: var(--font); background: #fff; color: var(--text); }
.textarea-input { resize: vertical; min-height: 92px; line-height: 1.55; margin-left: 0; }
.question .textarea-input, .question .text-input { width: calc(100% - 38px); margin-left: 38px; }
.text-input:focus, .textarea-input:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }

/* ─── Erreurs ─── */
.field-error { margin-top: 8px; margin-left: 38px; font-size: 12.5px; color: #b23b37; font-weight: 600; }

/* ─── Submit ─── */
.submit-wrap { text-align: center; margin-top: 8px; }
.btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; border: none; border-radius: 999px; padding: 16px 44px; font-size: 15px; font-weight: 700; font-family: var(--font); cursor: pointer; box-shadow: 0 10px 26px rgba(113,134,39,.3); transition: filter .15s, transform .1s; }
.btn-submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.submit-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Confirmation ─── */
.confirm-screen { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 32px; box-shadow: var(--shadow); animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
.confirm-crest { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.confirm-screen h2 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 14px; letter-spacing: -.02em; }
.confirm-screen p { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 480px; margin: 0 auto 24px; }
.confirm-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─── */
.site-footer { border-top: 1px solid var(--line); padding: 28px 20px 40px; text-align: center; background: var(--surface); }
.footer-logos { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 14px; flex-wrap: wrap; }
.footer-logo { height: 28px; width: auto; display: block; }
/* hauteurs ajustées à l'œil : les trois logos n'ont pas la même hauteur de casse */
.footer-logo-monono  { height: 24px; }
.footer-logo-straeto { height: 20px; }
.footer-by { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-rgpd { max-width: 600px; margin: 14px auto 0; font-size: 11.5px; line-height: 1.5; color: #9aa6b1; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .form-section { padding-left: 20px; padding-right: 20px; }
  .section-header { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .options-list, .options-grid, .inline-options, .matrix, .q-hint { padding-left: 0; }
  .options-grid { grid-template-columns: 1fr; }
  .field-error { margin-left: 0; }
  .question .textarea-input, .question .text-input { width: 100%; margin-left: 0; }
  .matrix-row { grid-template-columns: 1fr; gap: 8px; }
  .confirm-cta { flex-direction: column; }
}

/* ════════════════════════════════════════════════════════════════
   Ajouts CCVCD — liste des communes, consentement RGPD,
   message de soumission, partage, outils pas encore ouverts
   ════════════════════════════════════════════════════════════════ */

/* ─── Liste déroulante des 35 communes (Q1) ─── */
.select-input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 14px; font-size: 14.5px; font-family: var(--font);
  background: #fff; color: var(--text); appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2362707f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.select-input:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }

/* ─── Lien vers la carte, dans l'encart d'introduction ─── */
.intro-alt { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ─── Consentement RGPD (Q26) ─── */
.consent {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 16px;
  background: var(--teal-tint); border: 1px solid var(--teal-light); border-radius: 10px;
  padding: 14px 16px; font-size: 13px; line-height: 1.55; color: var(--text); cursor: pointer;
}
.consent input { accent-color: var(--teal); width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; cursor: pointer; }

/* ─── Message de soumission ─── */
.submit-msg { margin-top: 12px; font-size: 13.5px; font-weight: 600; min-height: 1em; }
.submit-msg.is-err { color: #b23b37; }

/* ─── Écran de confirmation ─── */
.confirm-share {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--muted); max-width: 480px; margin-left: auto; margin-right: auto;
}

/* ─── Outils pas encore ouverts (sélecteur d'outils) ─── */
.toolswitch .ts-soon {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: #b3bcc5;
  padding: 8px 13px; border-radius: 999px; white-space: nowrap; cursor: default;
}
.toolswitch .ts-soon .ts-ico { font-size: 14px; line-height: 1; filter: grayscale(1); opacity: .6; }
@media (max-width: 720px) { .toolswitch .ts-soon { padding: 8px 10px; } .toolswitch .ts-soon .ts-label { display: none; } }

/* ─── Correctifs d'affichage ─── */
/* Matrices (Q11, Q13, Q14) : en dessous de 880 px, les 4 modalités ne tiennent
   plus à côté du libellé (texte en nowrap) — on empile libellé puis modalités. */
@media (max-width: 880px) {
  .matrix-row { grid-template-columns: 1fr; gap: 8px; }
  /* grille 2 colonnes + retour à la ligne autorisé : plus aucun débordement,
     et des cibles tactiles confortables sur téléphone */
  .matrix-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .matrix-opts .mo { font-size: 12px; padding: 9px 6px; white-space: normal; }
}
/* Le sélecteur d'outils flottant ne doit pas masquer la fin du questionnaire. */
.container { padding-bottom: 96px; }
.site-footer { padding-bottom: 88px; }
/* Signature de pied de page : le nom complet de la collectivité doit pouvoir
   revenir à la ligne sur téléphone (sinon débordement horizontal). */
.footer-by { display: block; max-width: 100%; line-height: 1.6; }
/* Alignement de la liste des communes (Q1) et du consentement (Q26) sur les
   autres champs : même retrait de 38 px que les textes, supprimé sous 600 px. */
.question .select-input { width: calc(100% - 38px); margin-left: 38px; }
.question .consent { margin-left: 38px; }
/* Q1 : commune de la personne qui n'habite pas le territoire */
.q1-hors { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 0 38px; }
.q1-hors label { font-size: 14px; font-weight: 600; color: var(--navy); }
.question .q1-hors .text-input { flex: 1 1 220px; width: auto; margin-left: 0; }
@media (max-width: 600px) {
  .question .select-input { width: 100%; margin-left: 0; }
  .question .consent { margin-left: 0; }
  .q1-hors { margin-left: 0; }
}

/* ════════════════════════════════════════════════════════════════
   Baromètre « profils & attentes » (version du 26 juillet 2026)
   Cartes de profil d'usager · cartes d'action · chapeaux de chapitre
   ════════════════════════════════════════════════════════════════ */

/* ─── Chapeau de chapitre (contexte avant les questions) ─── */
.chapter-intro {
  background: var(--navy-soft); border: 1px solid var(--navy-line);
  border-radius: 11px; padding: 16px 20px; margin-bottom: 26px;
  font-size: 14px; line-height: 1.65; color: #36406e;
}
.chapter-intro strong { color: var(--navy); font-weight: 700; }

/* ─── Cartes de profil d'usager (Q2, Q3) ─── */
.profils { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-left: 38px; }
.profil-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; cursor: pointer; transition: border-color .14s, background .14s, box-shadow .14s;
  -webkit-tap-highlight-color: transparent;
}
.profil-card:hover { border-color: var(--teal); background: var(--teal-tint); }
.profil-card input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; margin-top: 2px; }
.profil-card:has(input:checked) { border-color: var(--teal); background: var(--teal-light); box-shadow: inset 0 0 0 1px var(--teal); }
.pc-ico { font-size: 22px; line-height: 1.1; flex-shrink: 0; }
.pc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-titre { font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.pc-texte { font-size: 13px; color: var(--muted); line-height: 1.5; }
/* profil déjà retenu comme profil actuel, rappelé dans « profil souhaité » */
.profil-card.is-echo { border-style: dashed; }
.profil-card.is-echo .pc-titre::after {
  content: " · votre profil actuel"; font-weight: 600; font-size: 11.5px; color: var(--accent-2);
}

/* ─── Cartes des 4 actions de la Fabrique Prospective (Q8) ─── */
.actions-fp { display: flex; flex-direction: column; gap: 14px; padding-left: 38px; }
.action-card {
  position: relative;            /* ancre les inputs radio masqués de .matrix-opts */
  border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 11px; background: #fff; padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.action-card:has(input:checked) { border-left-color: var(--teal-dark); background: var(--teal-tint); }
.ac-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 9px; }
.ac-ico { font-size: 26px; line-height: 1; flex-shrink: 0; }
.ac-num {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 3px;
}
.action-card h4 { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.25; letter-spacing: -.01em; }
.ac-texte { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.ac-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-opts label { flex: 1 1 130px; }

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .profils { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .profils, .actions-fp { padding-left: 0; }
  .action-card { padding: 15px 16px; }
  .ac-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ac-opts label { flex: none; }
}

/* ════════════════════════════════════════════════════════════════
   Baromètre paginé + chapitre diagnostic (26 juillet 2026)
   Fil des chapitres · navigation par étape · échelle de notes ·
   mini-baromètre de restitution immédiate
   ════════════════════════════════════════════════════════════════ */

/* ─── Fil des chapitres ─── */
.stepper {
  position: sticky; top: 4px; z-index: 40;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 18px; margin: 0 auto; max-width: 900px;
  background: rgba(245,247,248,.92); backdrop-filter: blur(8px);
}
.stepper::-webkit-scrollbar { display: none; }
.st-item {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px 6px 6px; font-family: var(--font); font-size: 12.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.st-item:disabled { opacity: .45; cursor: default; }
.st-item:not(:disabled):hover { border-color: var(--teal); color: var(--teal-dark); }
.st-pastille {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
}
.st-item.is-done { border-color: var(--teal-light); color: var(--teal-dark); }
.st-item.is-done .st-pastille { background: var(--teal-light); color: var(--teal-dark); }
.st-item.is-done .st-pastille::after { content: "✓"; font-size: 11px; }
.st-item.is-done .st-pastille { font-size: 0; }
.st-item.is-current { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(113,134,39,.28); }
.st-item.is-current .st-pastille { background: rgba(255,255,255,.22); color: #fff; }
@media (max-width: 760px) {
  .stepper { padding: 8px 12px; }
  .st-item .st-titre { display: none; }
  .st-item.is-current .st-titre { display: inline; }
  .st-item { padding: 6px 6px; }
  .st-item.is-current { padding-right: 14px; }
}

/* ─── Navigation d'étape ─── */
.step[hidden] { display: none !important; }
.step-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.intro-card .step-nav { border-top-color: var(--line); }
.step-nav .btn-next { min-width: 150px; justify-content: center; }
@media (max-width: 520px) {
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav .btn { justify-content: center; }
}

/* ─── Libellé secondaire dans les grilles (les dix domaines) ─── */
.mr-aide { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.matrix-row .mr-label { align-items: flex-start; }
.matrix-row .mr-label .mr-ico { margin-top: 1px; }

/* ─── Échelle de notation 1 → 5 ─── */
.likert .matrix-opts input:checked + .mo.note-1 { background: #d9534f; border-color: #b23b37; color: #fff; }
.likert .matrix-opts input:checked + .mo.note-2 { background: #e8833a; border-color: #c96a26; color: #fff; }
.likert .matrix-opts input:checked + .mo.note-3 { background: var(--accent); border-color: #c98a00; color: #fff; }
.likert .matrix-opts input:checked + .mo.note-4 { background: #7fb800; border-color: #679500; color: #fff; }
.likert .matrix-opts input:checked + .mo.note-5 { background: var(--t-marche); border-color: #1d7a43; color: #fff; }

/* ─── Mini-baromètre : restitution immédiate des notes ─── */
.mini-barometre, .confirm-barometre {
  background: linear-gradient(155deg, #204d88, #183c6d); color: #fff;
  border-radius: var(--radius); padding: 22px 26px 24px; margin: 0 0 28px;
  box-shadow: var(--shadow);
}
.confirm-barometre { margin: 26px 0 6px; text-align: left; }
.mini-barometre[hidden], .confirm-barometre[hidden] { display: none; }
.mb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.mb-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d3e495; }
.mb-head h4 { font-size: 17px; font-weight: 800; margin-top: 4px; }
.mb-score { display: flex; align-items: baseline; gap: 4px; flex: none; }
.mb-score span { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #c5dc74; }
.mb-score small { font-size: 13px; color: rgba(255,255,255,.6); }
.mb-bars { display: flex; flex-direction: column; gap: 7px; }
.mb-bar { display: grid; grid-template-columns: 1fr 128px 22px; gap: 12px; align-items: center; }
.mb-nom { font-size: 12.5px; color: rgba(255,255,255,.88); line-height: 1.3; }
.mb-piste { height: 9px; border-radius: 5px; background: rgba(255,255,255,.13); overflow: hidden; }
.mb-jauge { display: block; height: 100%; border-radius: 5px; transition: width .35s ease, background .2s; }
.mb-jauge.note-1 { background: #ff6b66; }
.mb-jauge.note-2 { background: #ff9a4d; }
.mb-jauge.note-3 { background: #ffc93c; }
.mb-jauge.note-4 { background: #9ede3a; }
.mb-jauge.note-5 { background: var(--t-marche); }
.mb-val { font-family: var(--font-mono); font-size: 12px; text-align: right; color: rgba(255,255,255,.75); }
.mb-bar.is-vide .mb-nom { color: rgba(255,255,255,.42); }
.mb-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.55; }
@media (max-width: 620px) {
  .mini-barometre, .confirm-barometre { padding: 18px 18px 20px; }
  .mb-bar { grid-template-columns: 1fr 74px 20px; gap: 9px; }
  .mb-nom { font-size: 11.5px; }
}

/* Les modalités des grilles ne doivent jamais déborder de leur bouton :
   avec `flex: 1` seul, la base 0 empêche tout retour à la ligne et les
   libellés longs (« Très insuffisant », « Pas une priorité ») se chevauchent. */
.matrix-opts label { flex: 1 1 86px; min-width: 86px; }
.matrix-opts .mo { white-space: normal; }

/* Question ouverte à la suite des questions 2 et 3 (01/10/2026) */
.q-precision { margin-top: 16px; }
.q-precision-label { display: block; padding-left: 38px; margin-bottom: 8px; font-weight: 600; font-size: 14.5px; color: var(--text); }
.q-precision-label .q-constraint { display: inline; margin-left: 8px; }
.q-precision .textarea-input { min-height: 64px; }
