.meq {
  --meq-rose: #d8a7a0;
  --meq-green: #bfd8b8;
  --meq-blue: #9ebad6;
  --meq-ink: #3a3a3a;
  --meq-muted: #76706f;
  --meq-white: #fcfbfc;
  --meq-pink-soft: #f5e3e6;
  --meq-green-soft: #e8f5e1;
  --meq-blue-soft: #e7f2fb;
  --meq-line: rgba(58, 58, 58, 0.12);
  position: relative;
  isolation: isolate;
  max-width: 880px;
  margin: clamp(1rem, 4vw, 3rem) auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  color: var(--meq-ink);
  font-family: "Nunito", Arial, sans-serif;
  background: var(--meq-white);
  border: 1px solid rgba(58, 58, 58, 0.1);
  border-radius: 30px;
  box-shadow: 0 1px 2px rgba(58, 58, 58, 0.04), 0 14px 38px rgba(58, 58, 58, 0.07);
}

.meq *,
.meq *::before,
.meq *::after {
  box-sizing: border-box;
}

.meq p,
.meq label,
.meq input,
.meq button,
.meq li,
.meq span,
.meq a {
  font-family: "Nunito", Arial, sans-serif !important;
  letter-spacing: normal;
}

.meq__brand {
  display: block;
  min-height: 0;
  margin: -4px 0 26px;
}

.meq__brand-copy {
  min-width: 0;
}

.meq p.meq__script {
  margin: 0;
  color: #bd8179;
  font-family: "Sacramento", cursive !important;
  font-size: clamp(2.65rem, 7vw, 4.65rem);
  font-weight: 400;
  line-height: 0.96;
}

.meq__brand-subtitle {
  max-width: 500px;
  margin: 10px 0 0;
  color: var(--meq-muted);
  font-size: 0.98rem;
}

.meq__progress {
  height: 7px;
  overflow: hidden;
  background: rgba(216, 167, 160, 0.2);
  border-radius: 999px;
}

.meq__progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--meq-rose), var(--meq-green), var(--meq-blue));
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  transition: width 0.28s ease;
}

.meq__progress-text,
.meq__eyebrow,
.meq__privacy,
.meq__disclaimer {
  color: var(--meq-muted);
  font-size: 0.88rem;
}

.meq__progress-text {
  margin: 9px 0 30px;
  text-align: right;
}

.meq__eyebrow {
  margin: 0 0 8px;
  color: #a76f68;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em !important;
  text-transform: uppercase;
}

.meq h2,
.meq h3 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 500;
}

.meq h2 {
  max-width: 720px;
  margin: 0 0 30px;
  line-height: 1.26;
}

.meq__question h2 {
  min-height: 3.8em;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.meq h3 {
  margin: 38px 0 16px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.meq__answers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.meq__answer {
  min-height: 76px;
  padding: 12px 8px;
  color: var(--meq-ink);
  font: 700 0.92rem/1.25 "Nunito", Arial, sans-serif;
  background: #fff;
  border: 1px solid var(--meq-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(58, 58, 58, 0.03);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.meq__answer:hover,
.meq__answer:focus-visible {
  border-color: #c68d85;
  box-shadow: 0 8px 22px rgba(126, 96, 92, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.meq__answer:focus-visible {
  box-shadow: 0 0 0 3px rgba(158, 186, 214, 0.38), 0 8px 22px rgba(126, 96, 92, 0.1);
}

.meq__answer.is-selected,
.meq__answer.is-selected:nth-child(n) {
  color: var(--meq-ink);
  background: var(--meq-rose);
  border-color: #bd8179;
  box-shadow: 0 8px 22px rgba(126, 96, 92, 0.16);
}

.meq__answer.is-selected::before {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  color: #fff;
  font-size: 0.8rem;
  content: "✓";
  background: var(--meq-ink);
  border-radius: 50%;
  place-items: center;
}

.meq__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.meq__back,
.meq__next,
.meq__submit,
.meq__advice {
  min-height: 46px;
  padding: 12px 22px;
  font: 800 0.95rem/1.2 "Nunito", Arial, sans-serif;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.meq__back {
  color: var(--meq-ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--meq-line);
}

.meq__next,
.meq__submit,
.meq__advice {
  color: var(--meq-ink);
  background: var(--meq-rose);
  border: 1px solid #c9928a;
  box-shadow: 0 7px 18px rgba(175, 124, 116, 0.18);
}

.meq__next:hover,
.meq__submit:hover,
.meq__advice:hover,
.meq__next:focus-visible,
.meq__submit:focus-visible,
.meq__advice:focus-visible {
  background: #cf9991;
  box-shadow: 0 10px 24px rgba(175, 124, 116, 0.25);
  outline: none;
  transform: translateY(-1px);
}

.meq__back:hover,
.meq__back:focus-visible {
  border-color: var(--meq-blue);
  outline: none;
}

.meq__back:disabled,
.meq button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.meq__message {
  min-height: 1.4rem;
  margin: 14px 0 0;
  color: #9e4b45;
  font-weight: 800;
}

.meq__gate {
  max-width: 650px;
  margin: 0 auto;
  padding: clamp(4px, 2vw, 18px);
}

.meq__gate > p:not(.meq__eyebrow) {
  max-width: 610px;
  color: var(--meq-muted);
}

.meq__gate form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: clamp(18px, 4vw, 28px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 167, 160, 0.34);
  border-radius: 20px;
}

.meq__gate label:not(.meq__consent) {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.meq__gate label span {
  color: var(--meq-muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.meq__gate input[type="text"],
.meq__gate input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--meq-ink);
  font: 1rem "Nunito", Arial, sans-serif;
  background: var(--meq-white);
  border: 1px solid rgba(58, 58, 58, 0.2);
  border-radius: 10px;
}

.meq__gate input:focus {
  border-color: #c68d85;
  box-shadow: 0 0 0 3px rgba(216, 167, 160, 0.24);
  outline: none;
}

.meq__consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
}

.meq__consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #bd8179;
}

.meq__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.meq__result {
  max-width: 760px;
  margin: 0 auto;
}

.meq__result h2 {
  color: var(--result-color);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.meq__lead {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.meq__result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.meq__result-card {
  padding: 20px;
  background: var(--meq-white);
  border: 1px solid var(--meq-line);
  border-radius: 16px;
}

.meq__result-card:first-child {
  background: var(--meq-white);
  border-color: var(--meq-line);
}

.meq__result-card:nth-child(2) {
  background: var(--meq-white);
  border-color: var(--meq-line);
}

.meq__result-card span,
.meq__result-card strong {
  display: block;
}

.meq__result-card span {
  color: var(--meq-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meq__result-card strong {
  margin-top: 5px;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.32rem;
  font-weight: 500;
}

.meq__result-card p {
  margin-bottom: 0;
}

.meq__scores {
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--meq-line);
  border-radius: 18px;
}

.meq__score {
  margin: 13px 0;
}

.meq__score > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

.meq__score-track {
  height: 9px;
  margin-top: 6px;
  overflow: hidden;
  background: #ece8e5;
  border-radius: 999px;
}

.meq__score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.meq__result ol {
  display: grid;
  gap: 10px;
  padding-left: 24px;
}

.meq__result li {
  padding-left: 5px;
}

.meq__result blockquote {
  margin: 22px 0;
  padding: 12px 16px;
  color: var(--meq-ink);
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.5;
  font-style: italic;
  background: rgba(245, 227, 230, 0.72);
  border: 0;
  border-left: 3px solid var(--result-color);
  border-radius: 0 10px 10px 0;
}

.meq__advice {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
}

.meq__email-status {
  font-weight: 800;
}

.meq__disclaimer {
  max-width: 680px;
  margin-top: 28px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .meq {
    margin: 12px 0;
    padding: 20px 16px 24px;
    border-radius: 20px;
  }

  .meq__brand {
    display: block;
    min-height: 0;
    margin-bottom: 22px;
  }

  .meq__script {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .meq__brand-subtitle {
    margin-top: 5px;
    font-size: 0.86rem;
  }

  .meq__progress-text {
    margin-bottom: 23px;
  }

  .meq__question h2 {
    min-height: 5.15em;
    font-size: 1.55rem;
    margin-bottom: 22px;
  }

  .meq__answers {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .meq__answer {
    min-height: 50px;
    padding: 12px 14px;
    text-align: left;
  }

  .meq__nav {
    margin-top: 20px;
  }

  .meq__back,
  .meq__next {
    flex: 1;
    padding-right: 13px;
    padding-left: 13px;
  }

  .meq__result-grid {
    grid-template-columns: 1fr;
  }

  .meq__advice {
    display: block;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meq *,
  .meq *::before,
  .meq *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Intentions: native checkboxes/radios, keyboard-accessible, no fixed heights. */
.meq .meq__situations { border:0; margin:20px 0; padding:0; }
.meq .meq__situations legend { margin-bottom:12px; font-weight:600; }
.meq .meq__situations .meq__situation { display:flex; align-items:flex-start; gap:12px; padding:14px; margin:10px 0; border:1px solid #ded6d2; border-radius:12px; cursor:pointer; }
.meq .meq__situations input { flex:0 0 auto; width:20px; height:20px; margin-top:2px; accent-color:#a66e66; }
.meq .meq__situations .meq__situation:focus-within { outline:2px solid #a66e66; outline-offset:2px; }
.meq .meq__situations .meq__situation:has(input:checked) { background:#f5e3e6; border-color:#a66e66; }

/* Repères du bilan web : liste sans tableau, isolée des styles du thème. */
.meq .meq__index-list {
  display: grid;
  gap: 20px;
  margin: 24px 0 32px;
  padding: 0;
  border: 0;
  background: transparent;
}
.meq .meq__index-row { min-width: 0; margin: 0; padding: 0; }
.meq .meq__index-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  color: #3a3a3a;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.meq .meq__index-label { min-width: 0; overflow-wrap: anywhere; }
.meq .meq__index-value { flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.meq .meq__index-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe8e6;
}
.meq .meq__index-track > span { display: block; height: 100%; border-radius: inherit; }
