/* Styles de l'écran questionnaire. Tout est préfixé par .e-questionnaire et passe par les variables de core.css (clair et sombre). */
.e-questionnaire .hero { background: var(--hero); color: var(--sur-hero); border-radius: var(--r-4) var(--r-4) var(--r-4) var(--r-1); padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; box-shadow: var(--ombre); min-width: 0; }
.e-questionnaire .hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 210px; height: 210px; border-radius: 50%; background: var(--hero-2); }
.e-questionnaire .hero > * { position: relative; }
.e-questionnaire .hero-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.e-questionnaire .hero .etiquette { color: var(--sur-hero-2); }
.e-questionnaire .qm-quand { font-size: var(--t-11); font-weight: 800; letter-spacing: .04em; padding: 3px 10px; border-radius: 99px; background: var(--hero-2); color: var(--sur-hero); }
.e-questionnaire .hero-phrase { margin: 0; font-family: var(--f-titre); font-weight: 600; font-size: var(--t-17); line-height: 1.3; color: var(--sur-hero-2); overflow-wrap: anywhere; }
.e-questionnaire .hero-phrase b { color: var(--sur-hero); font-weight: 800; }
.e-questionnaire .hero-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--hero-2); padding-top: 12px; }
.e-questionnaire .hero-chiffres > div { display: flex; flex-direction: column; min-width: 0; }
.e-questionnaire .hero-chiffres b { font-size: var(--t-30); line-height: 1; }
.e-questionnaire .hero-chiffres b.nd { font-size: var(--t-15); line-height: 1.2; padding: 7px 0; }
.e-questionnaire .hero-chiffres small { font-size: var(--t-11); color: var(--sur-hero-2); margin-top: 3px; line-height: 1.25; }
.e-questionnaire .hero-note { margin: 0; font-size: var(--t-13); color: var(--sur-hero-2); }

.e-questionnaire .qm-note { margin: 0; font-size: var(--t-13); line-height: 1.4; }
.e-questionnaire .qm-pont { display: flex; flex-direction: column; }

/* pubs d'origine */
.e-questionnaire .qm-pubs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.e-questionnaire .qm-pub-l { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.e-questionnaire .qm-pub-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.e-questionnaire .qm-pub-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.e-questionnaire .qm-pub-t b { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.e-questionnaire .qm-pub-t span { font-weight: 800; flex: none; }
.e-questionnaire .qm-pub-c small { color: var(--encre-2); font-size: var(--t-13); line-height: 1.3; overflow-wrap: anywhere; }

/* classements de la vue d'ensemble */
.e-questionnaire .rangs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.e-questionnaire .rang { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.e-questionnaire .rang-n { width: 34px; height: 34px; border-radius: 12px 12px 12px 4px; background: var(--teinte-doux, var(--creux)); color: var(--teinte, var(--encre-2)); display: grid; place-items: center; font-size: var(--t-17); }
.e-questionnaire .rang.premier .rang-n { background: var(--teinte, var(--encre)); color: var(--sur-accent); }
.e-questionnaire .rang-c { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.e-questionnaire .rang-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.e-questionnaire .rang-t b { font-weight: 700; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.e-questionnaire .rang-t span { font-weight: 800; flex: none; }
.e-questionnaire .rang-b { height: 8px; border-radius: 4px; background: var(--creux); overflow: hidden; }
.e-questionnaire .rang-b i { display: block; height: 100%; border-radius: 4px; background: var(--teinte, var(--accent)); }
.e-questionnaire .rang small { color: var(--encre-2); font-size: var(--t-13); line-height: 1.3; }
.e-questionnaire .qn { font-size: var(--t-22); color: var(--encre-3); }

/* barres cliquables de l'onglet « Les questions » */
.e-questionnaire .qb-liste { display: flex; flex-direction: column; gap: 4px; }
.e-questionnaire .qb { display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 44px; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; padding: 8px 10px; border-radius: var(--r-2); cursor: pointer; justify-content: center; }
.e-questionnaire .qb:hover { background: var(--creux); }
.e-questionnaire .qb.on { background: var(--teinte-doux, var(--creux)); box-shadow: inset 0 0 0 2px var(--teinte, var(--accent)); }
.e-questionnaire .qb-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--t-15); }
.e-questionnaire .qb-l { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.e-questionnaire .qb-t b { flex: none; font-weight: 800; }
.e-questionnaire .qb-b { display: block; height: 8px; border-radius: 4px; background: var(--creux); overflow: hidden; }
.e-questionnaire .qb.on .qb-b { background: var(--surface); }
.e-questionnaire .qb-b i { display: block; height: 100%; border-radius: 4px; background: var(--teinte, var(--accent)); }
.e-questionnaire .qb.zero { opacity: .55; }

/* puce de filtre */
.e-questionnaire .qm-filtre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.e-questionnaire .qm-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 6px 10px 6px 14px; border: 0; border-radius: 99px; background: var(--accent); color: var(--sur-accent); font: inherit; font-weight: 700; font-size: var(--t-13); cursor: pointer; text-align: left; }
.e-questionnaire .qm-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-questionnaire .qm-chip i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sur-accent); color: var(--accent); display: grid; place-items: center; }
.e-questionnaire .qm-chip svg { width: 12px; height: 12px; }

/* tableau croisé par pub */
.e-questionnaire .qt-defile { overflow-x: auto; margin: 0 -2px; padding-bottom: 4px; scrollbar-width: thin; }
.e-questionnaire .qt { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: var(--t-13); }
.e-questionnaire .qt th { font-weight: 600; color: var(--encre-2); text-align: center; padding: 6px 8px; font-size: var(--t-11); line-height: 1.25; min-width: 92px; vertical-align: bottom; }
.e-questionnaire .qt th.qt-p { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 130px; max-width: 170px; font-size: var(--t-13); color: var(--encre); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-questionnaire .qt td { padding: 0; text-align: center; }
.e-questionnaire .qt-c { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; min-height: 48px; border: 0; border-radius: var(--r-2); background: var(--creux); color: var(--encre); font: inherit; cursor: pointer; overflow: hidden; }
.e-questionnaire .qt-c i { position: absolute; inset: 0; background: var(--c3); }
.e-questionnaire .qt-c b, .e-questionnaire .qt-c small { position: relative; }
.e-questionnaire .qt-c small { font-size: var(--t-11); color: var(--encre-2); }
.e-questionnaire .qt-c.on { box-shadow: inset 0 0 0 2px var(--encre); }
.e-questionnaire .qt-z { color: var(--encre-3); padding: 12px 8px; }
.e-questionnaire .qt-tot { color: var(--encre-2); padding: 12px 8px; }

/* mur des mots */
.e-questionnaire .qm-mur { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.e-questionnaire .verbatim-carte { margin: 0; background: var(--surface); border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--ombre); min-width: 0; align-items: flex-start; }
.e-questionnaire .verbatim { margin: 0; font-family: var(--f-titre); font-weight: 600; font-size: var(--t-17); line-height: 1.3; letter-spacing: -.005em; overflow-wrap: anywhere; }
.e-questionnaire .verbatim::before { content: "\201C"; color: var(--c3); font-weight: 800; margin-right: 2px; }
.e-questionnaire .verbatim::after { content: "\201D"; color: var(--c3); font-weight: 800; margin-left: 2px; }
.e-questionnaire .qm-orig { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--t-13); color: var(--encre-2); border-top: 1px solid var(--trait); padding-top: 8px; width: 100%; overflow-wrap: anywhere; }
.e-questionnaire .qm-orig b { color: var(--encre-3); font-weight: 600; font-size: var(--t-11); }
.e-questionnaire .verbatim-carte figcaption { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-13); color: var(--encre-2); min-width: 0; max-width: 100%; }
.e-questionnaire .qm-pub { display: inline-block; max-width: 100%; align-self: flex-start; background: var(--c2-doux); color: var(--encre); border-radius: 99px; padding: 3px 10px; font-size: var(--t-11); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* liste de toutes les réponses */
.e-questionnaire .qm-liste { display: flex; flex-direction: column; gap: 10px; }
.e-questionnaire .rep-carte { background: var(--surface); border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1); padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--ombre), inset 3px 0 0 var(--c3); min-width: 0; align-items: flex-start; }
.e-questionnaire .rep-m { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; width: 100%; font-size: var(--t-13); color: var(--encre-2); }
.e-questionnaire .rep-m b { color: var(--encre); }
.e-questionnaire .puces-rep { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.e-questionnaire .rep-puce { background: var(--c3-doux); color: var(--encre); border-radius: var(--r-2); padding: 5px 10px; font-size: var(--t-13); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.e-questionnaire .rep-puce i { font-style: normal; font-weight: 500; color: var(--encre-2); }
.e-questionnaire .rep-libre { margin: 0; font-family: var(--f-titre); font-weight: 600; font-size: var(--t-15); line-height: 1.35; overflow-wrap: anywhere; }
.e-questionnaire .qm-orig-mini { margin: 0; font-size: var(--t-13); overflow-wrap: anywhere; }

@container app (min-width: 700px) {
  .e-questionnaire .qm-mur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container app (min-width: 1100px) {
  .e-questionnaire .qm-mur { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e-questionnaire .qm-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
