/* Quiz « Quel Qualiticien êtes-vous ? » — A-QE
   Toutes les règles sont préfixées .aqeq pour ne pas interférer avec le site hôte. */
.aqeq {
  --aqeq-blue: #6EC8E4;
  --aqeq-blue-dark: #2E8FAF;
  --aqeq-yellow: #F6BD60;
  --aqeq-yellow-dark: #B9811F;
  --aqeq-cream: #FDF2DF;
  --aqeq-text: #242424;
  --aqeq-muted: #5F6368;
  --aqeq-line: #E6E1D8;
  --aqeq-card: #FFFFFF;
  --aqeq-radius: 22px;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--aqeq-text);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
  box-sizing: border-box;
}
.aqeq *, .aqeq *::before, .aqeq *::after { box-sizing: border-box; }
.aqeq h1, .aqeq h2, .aqeq h3 { line-height: 1.2; margin: 0 0 .5em; }
.aqeq h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; }
.aqeq h2 { font-size: clamp(1.25rem, 3.4vw, 1.55rem); font-weight: 700; }
.aqeq h3 { font-size: 1.05rem; font-weight: 700; }
.aqeq p { margin: 0 0 .9em; }

.aqeq-panel {
  background: var(--aqeq-cream);
  border-radius: var(--aqeq-radius);
  padding: clamp(20px, 4vw, 40px);
}

/* Boutons */
.aqeq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; padding: .85em 1.6em;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, filter .12s ease;
  min-height: 48px;
}
.aqeq-btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.aqeq-btn:focus-visible { outline: 3px solid var(--aqeq-text); outline-offset: 2px; }
.aqeq-btn-primary { background: var(--aqeq-yellow); color: #2b1d00; }
.aqeq-btn-secondary { background: var(--aqeq-blue); color: #06323f; }
.aqeq-btn-ghost { background: transparent; color: var(--aqeq-muted); padding-left: .4em; padding-right: .4em; }
.aqeq-btn-ghost:hover { color: var(--aqeq-text); transform: none; }
.aqeq-btn[disabled] { opacity: .4; cursor: default; transform: none; }
.aqeq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }

/* Intro */
.aqeq-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--aqeq-blue-dark); margin-bottom: .6em; }
.aqeq-lead { font-size: 1.1rem; }
.aqeq-note { font-size: .92rem; color: var(--aqeq-muted); background: #fff; border-radius: 14px; padding: 12px 16px; }
.aqeq-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--aqeq-muted); margin: .4em 0 1em; }

/* Progression */
.aqeq-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .85rem; color: var(--aqeq-muted); }
.aqeq-progress-bar { flex: 1; height: 8px; background: #fff; border-radius: 99px; overflow: hidden; }
.aqeq-progress-bar span { display: block; height: 100%; background: var(--aqeq-blue); border-radius: 99px; transition: width .3s ease; }

/* Situation */
.aqeq-sit-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--aqeq-blue-dark); margin-bottom: .3em; }
.aqeq-prompt { font-size: clamp(1.1rem, 2.8vw, 1.3rem); font-weight: 600; margin-bottom: 1em; }
.aqeq-instruction { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; min-height: 32px; }
.aqeq-chip { display: inline-block; border-radius: 99px; padding: 4px 12px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.aqeq-chip-most { background: var(--aqeq-blue); color: #06323f; }
.aqeq-chip-least { background: var(--aqeq-yellow); color: #2b1d00; }
.aqeq-options { display: grid; gap: 10px; }
.aqeq-option {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  background: var(--aqeq-card); border: 2px solid transparent; border-radius: 16px;
  padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--aqeq-text); cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, opacity .12s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.aqeq-option:hover:not([disabled]) { border-color: var(--aqeq-blue); }
.aqeq-option:focus-visible { outline: 3px solid var(--aqeq-text); outline-offset: 2px; }
.aqeq-option .aqeq-chip { margin-left: auto; flex-shrink: 0; }
.aqeq-option.is-most { border-color: var(--aqeq-blue); background: #EAF7FB; }
.aqeq-option.is-least { border-color: var(--aqeq-yellow); background: #FFF6E6; }
.aqeq-option.is-muted { opacity: .45; }
.aqeq-option[disabled] { cursor: default; }
.aqeq-hint { font-size: .85rem; color: var(--aqeq-muted); margin-top: 10px; }
.aqeq-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

/* Question de sincérité */
.aqeq-truefalse { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aqeq-truefalse .aqeq-option { justify-content: center; font-weight: 700; }

/* Résultat */
.aqeq-result-hero { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 24px; align-items: center; }
.aqeq-result-hero img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; background: #fff; }
.aqeq-result-hero .aqeq-imgs { display: grid; gap: 10px; }
.aqeq-result-hero .aqeq-imgs.is-duo { grid-template-columns: 1fr 1fr; }
.aqeq-profile-name { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 900; letter-spacing: .02em; text-transform: uppercase; margin: .1em 0 .15em; line-height: 1.05; }
.aqeq-tagline { font-size: 1.1rem; font-style: italic; color: var(--aqeq-muted); margin-bottom: .6em; }
.aqeq-axes { font-size: .85rem; color: var(--aqeq-muted); }
.aqeq-section { background: #fff; border-radius: 18px; padding: 18px 20px; margin-top: 14px; }
.aqeq-section ul { margin: 0; padding-left: 1.2em; }
.aqeq-section li { margin-bottom: .35em; }
.aqeq-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aqeq-grid-2 .aqeq-section { margin-top: 14px; }
.aqeq-bars { display: grid; gap: 10px; margin-top: 6px; }
.aqeq-bar-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: .92rem; }
.aqeq-bar-row.is-top { font-weight: 800; }
.aqeq-bar-track { height: 14px; background: #F1EEE8; border-radius: 99px; overflow: hidden; }
.aqeq-bar-fill { height: 100%; border-radius: 99px; background: #B9C3CC; }
.aqeq-bar-row.is-top .aqeq-bar-fill { background: var(--aqeq-blue); }
.aqeq-bar-row.is-second .aqeq-bar-fill { background: #A9DDEE; }
.aqeq-bar-val { text-align: right; color: var(--aqeq-muted); font-variant-numeric: tabular-nums; }
.aqeq-second-line { font-size: 1rem; margin: -.2em 0 .5em; }
.aqeq-second-line strong { color: var(--aqeq-blue-dark); letter-spacing: .03em; }
.aqeq-secondary { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; background: #fff; border-radius: 18px; padding: 18px 20px; margin-top: 14px; border: 2px solid #A9DDEE; }
.aqeq-secondary img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; }
@media (max-width: 600px) { .aqeq-secondary { grid-template-columns: 1fr; } .aqeq-secondary img { max-width: 120px; } }
.aqeq-wink { background: #FFF6E6; border-left: 5px solid var(--aqeq-yellow); }
.aqeq-cta { background: var(--aqeq-text); color: #fff; border-radius: 18px; padding: 22px 24px; margin-top: 18px; }
.aqeq-cta h3 { color: #fff; }
.aqeq-cta p { color: #E8E8E8; }
.aqeq-small { font-size: .85rem; color: var(--aqeq-muted); }
.aqeq-profiles-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.aqeq-profiles-list a { color: var(--aqeq-blue-dark); font-weight: 600; }

@media (max-width: 600px) {
  .aqeq-result-hero { grid-template-columns: 1fr; text-align: center; }
  .aqeq-result-hero .aqeq-imgs { max-width: 220px; margin: 0 auto; }
  .aqeq-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .aqeq-bar-row { grid-template-columns: 92px 1fr 40px; font-size: .85rem; }
  .aqeq-actions .aqeq-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .aqeq * { transition: none !important; }
}

/* Intégration site A-QE : pas de cadre de fond, cartes délimitées par un filet */
.aqeq-panel { background: transparent; padding-left: 0; padding-right: 0; }
.aqeq-option { border-color: var(--aqeq-line); }
.aqeq-note, .aqeq-section { border: 1px solid var(--aqeq-line); }
.aqeq-progress-bar { background: #EEF2F4; }
