/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--forest);
  transition: color 0.18s;
}
.breadcrumb a:hover { color: var(--forest-deep); }
.breadcrumb svg { stroke: var(--ink-soft); flex: none; }

/* ─── PAGE INTRO ─── */
.qst-intro {
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  padding: 10px 0 36px;
  border-bottom: 1px solid var(--line);
}
.qst-intro h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.qst-intro p {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 560px;
}
.qst-intro .wrap,
.qst-section .wrap {
  max-width: 760px;
}
.qst-logofr {
  height: 88px;
  width: auto;
  float: left;
  margin: 0 16px 12px 0;
}

/* ─── SECTION ─── */
.qst-section {
  padding: 48px 0 80px;
  background: var(--cream-2);
}

/* ─── NOTE ─── */
.qst-note {
  padding: 16px 20px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ─── GRILLE 1 À 100 (10 par ligne max, responsive) ─── */
.qst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(56px, calc(10% - 7.2px)), 1fr));
  gap: 8px;
}
.qst-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--forest);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  line-height: 1;
  padding: 0;
}
.qst-cell:hover,
.qst-cell:focus-visible {
  border-color: var(--forest);
  background: var(--mist);
  transform: scale(1.06);
  z-index: 1;
}
.qst-cell.active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
}

/* ─── MODAL QUESTION ─── */
.qst-modal { max-width: 560px; }
.qst-modal .pref-footer .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
/* Garder Précédente / Suivante sur la même ligne, même sur très petits écrans */
.qst-modal .pref-footer {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-around;
  gap: 8px;
  padding-left: 14px;
  padding-right: 14px;
}
.qst-modal .pref-footer .btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px;
  overflow: hidden;
}
@media (max-width: 380px) {
  .qst-modal .pref-footer .btn {
    font-size: 0.82rem;
    padding: 10px 6px;
  }
}

.qst-group + .qst-group {
  margin-top: 4px;
}
/* ─── NOTE ─── */
.syn-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--box-infos);
  border-radius: 0 6px 6px 0;
  background: var(--box-infos-light);
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.qst-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  border-radius: 5px 5px 5px 5px ;
  background: var(--mist);
  color: var(--forest);
  font-size: 0.90rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.qst-cat--verif   { background: #ff0000;
  color: #fff;
width:100%; }
.qst-cat--secu    { background: #ff6600; color: #fff; width:100%;}
.qst-cat--secours { background: #33cc33; color: #fff; width:100%;}
.qst-q {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.5;
}
.qst-a-wrap {
  position: relative;
  cursor: pointer;
  padding: 4px 0;
}
.qst-a {
  color: var(--ink-soft);
  line-height: 1.65;
  padding-left: 14px;
  border-left: 3px solid var(--sage-soft);
  filter: blur(6px);
  transition: filter 0.25s ease;
  user-select: none;
}
.qst-a-wrap:hover .qst-a { filter: blur(4px); }
.qst-a-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--sage-soft);
  background: var(--paper);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.qst-a-wrap.revealed .qst-a {
  filter: blur(0);
  user-select: text;
}
.qst-a-wrap.revealed .qst-a-hint {
  display: none;
}
.qst-a-wrap:not(.revealed):focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .qst-intro h1 { font-size: 1.9rem; }
  .qst-section { padding: 32px 0 60px; }
}
@media (max-width: 560px) {
  .qst-grid { gap: 6px; }
  .qst-cell { border-radius: 8px; font-size: 1.4rem; }
}
@media (max-width: 380px) {
  .qst-grid { gap: 5px; }
  .qst-cell { border-radius: 6px; font-size: 1.3rem; border-width: 1.2px; }
}
