/* Miamoscope — questionnaire */
body.survey { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.app { flex: 1; width: 100%; outline: none; }
.loading { padding: 80px 20px; text-align: center; color: var(--ink-3); }

.test-banner { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }

/* Barre du haut + progression */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(249,247,242,.94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
.topbar-inner { max-width: 720px; margin: 0 auto; padding: 12px 20px 10px; display: flex; align-items: center; justify-content: space-between; }
.topbar-logo img { width: 74px; height: auto; }
.topbar-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.progress { height: 4px; background: var(--line); }
.progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .35s ease; }

/* Écrans */
.screen { max-width: 720px; margin: 0 auto; padding: 28px 20px 140px; animation: enter .28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } .progress span { transition: none; } }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.q-title { font-size: clamp(21px, 4.6vw, 27px); line-height: 1.3; font-weight: 600; margin: 0 0 8px; letter-spacing: -.005em; outline: none; }
.q-hint { font-size: 14.5px; font-weight: 500; color: var(--ink-2); margin: 0 0 22px; transition: color .2s; }
.q-hint.alert { color: var(--ink); font-weight: 500; }
.q-hint.pulse { animation: pulse .45s ease; }
@keyframes pulse { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Options */
.options { display: grid; gap: 10px; }
.options.compact { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .options.compact { grid-template-columns: 1fr; } }
.opt {
  appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%;
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; min-height: 56px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s, box-shadow .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.opt[aria-checked="true"] { border-color: var(--ink); background: var(--yellow-tint); }
.opt.dim { opacity: .45; }
.opt.dim:hover { box-shadow: none; border-color: var(--line); }
.opt .mark { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; transition: all .15s; }
.opt[role="checkbox"] .mark { border-radius: 6px; }
.opt[role="radio"] .mark { border-radius: 50%; }
.opt[aria-checked="true"] .mark { background: var(--ink); border-color: var(--ink); }
.opt .mark svg { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: all .15s; }
.opt[role="radio"] .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); opacity: 0; transform: scale(.4); transition: all .15s; }
.opt[role="radio"] .mark svg { display: none; }
.opt[aria-checked="true"] .mark svg, .opt[aria-checked="true"] .mark::after { opacity: 1; transform: none; }
.opt .label { flex: 1; font-size: 15.5px; line-height: 1.45; }

.other-wrap { margin: -2px 0 2px; padding: 0 2px; }
.field { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-soft); }
textarea.field { min-height: 130px; resize: vertical; line-height: 1.5; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.field-row { margin-bottom: 14px; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 6px; }

/* Échelle (5a) : liste verticale, ordre fixe */
.scale .opt .label { font-weight: 500; }

/* Barre d'actions */
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: linear-gradient(to top, var(--cream) 70%, rgba(249,247,242,0)); padding-bottom: env(safe-area-inset-bottom); }
.actions-inner { max-width: 720px; margin: 0 auto; padding: 18px 20px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.actions #next { min-width: 150px; }
.actions .skip { font-size: 14px; color: var(--ink-2); }

/* Accueil du questionnaire */
.intro { padding-top: 0; }
.intro-hero { padding-top: 36px; }
.intro h1 { font-size: clamp(26px, 5.6vw, 38px); line-height: 1.18; font-weight: 700; margin: 0 0 18px; letter-spacing: -.01em; }
.intro .lead { font-size: clamp(16px, 2.4vw, 18px); color: var(--ink-2); margin: 0 0 24px; }
.intro .goal { font-size: clamp(16px, 2.4vw, 18px); margin: 0 0 26px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); margin: 0 0 28px; }
.facts div { padding: 14px 12px; text-align: center; }
.facts div + div { border-left: 1.5px solid var(--line); }
.facts strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.facts span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 480px) {
  .facts { margin-bottom: 20px; }
  .facts div { padding: 10px 6px; }
  .facts strong { font-size: 11px; letter-spacing: .06em; }
  .facts span { font-size: 11.5px; line-height: 1.35; display: block; }
  .intro-hero { padding-top: 24px; }
  .intro h1 { margin-bottom: 14px; }
}
.duo { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 22px 0 6px; border-top: 1.5px solid var(--line); margin-top: 32px; }
.person { display: flex; align-items: center; gap: 12px; }
.person img { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); }
.person strong { display: block; font-size: 15px; line-height: 1.2; }
.person span { font-size: 13px; color: var(--ink-2); }
.duo .x { font-weight: 700; color: var(--ink-3); }
@media (max-width: 480px) { .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; justify-items: start; } .duo .x { display: none; } .person { gap: 10px; } .person img { width: 44px; height: 44px; } .person strong { font-size: 14px; } }
.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-row .btn { min-width: 240px; }
.fineprint { font-size: 13px; color: var(--ink-3); margin: 0; }
.fineprint a { color: var(--ink-2); }
.resume { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

/* Contact + fin */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 16px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.note { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding-top: 40px; }
.done .badge { width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; margin: 0 auto 22px; }
.done .badge svg { width: 38px; height: 38px; }
.done h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.2; margin: 0 0 12px; }
.done p { color: var(--ink-2); max-width: 520px; margin: 0 auto 10px; }
.share { margin: 30px auto 0; padding: 22px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); max-width: 520px; }
.share strong { display: block; margin-bottom: 4px; }
.share p { font-size: 14px; margin-bottom: 16px; }
.share-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-btns .btn { min-height: 46px; font-size: 15px; padding: 0 20px; min-width: 210px; justify-content: center; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--yellow-tint); }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: 999px; z-index: 20; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }

/* Suivre sur LinkedIn (écran de remerciement) */
.follow { margin: 26px auto 0; max-width: 520px; }
.follow strong { display: block; font-size: 14px; margin-bottom: 10px; }
.follow-people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .follow-people { grid-template-columns: 1fr; } }
.follow-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; text-align: left; transition: border-color .15s, box-shadow .15s; }
.follow-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.follow-card img { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); flex: none; }
.follow-card span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.follow-card b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }

.intro .eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.intro .lead strong { color: var(--ink); font-weight: 600; }
.site-foot .foot-sign { margin: 0 0 8px; color: var(--ink-2); }
.field-label .opt-tag { font-weight: 400; color: var(--ink-3); }

/* Échelle 5a : options plus compactes pour que les 5 modalités tiennent à l'écran (pas d'effet « hors champ » sur le haut de l'échelle) */
.options.scale { gap: 8px; }
.options.scale .opt { min-height: 48px; padding: 11px 16px; }
@media (max-width: 480px) {
  .options.scale .opt { min-height: 44px; padding: 9px 16px; }
  .actions-inner { padding-top: 12px; padding-bottom: 12px; }
}
