/* ============================================================================
   AUDIT EXPRESS PROFIL MALT — design WPMalter (dark)
   Formulaire + loader + rendu du resultat (classes wpm-audit-result__* imposees)
   ============================================================================ */
.wpm-audit { position:relative; overflow:hidden; padding:clamp(56px,8vw,110px) 0; }
.wpm-audit-inner { position:relative; z-index:1; max-width:760px; }

/* ---- INTRO + FORM --------------------------------------------------------- */
.wpm-audit-intro { text-align:center; }
.wpm-audit-intro .eyebrow { display:inline-flex; align-items:center; gap:8px; margin-bottom:20px; }
.wpm-audit-intro h1 { font-family:var(--wpm-font-display); font-size:clamp(30px,4.6vw,50px); line-height:1.06; letter-spacing:-0.03em; margin:0 0 16px; }
.wpm-audit-intro .lede { font-size:clamp(16px,2vw,19px); line-height:1.6; color:var(--wpm-text-secondary); max-width:56ch; margin:0 auto 36px; }

.wpm-audit-form { max-width:560px; margin:0 auto; text-align:left; background:var(--wpm-surface-1);
  border:1px solid var(--wpm-border); border-radius:var(--wpm-radius-lg); padding:clamp(22px,3vw,32px); }
.af-field { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.af-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.af-field label { font-size:13.5px; font-weight:600; color:var(--wpm-text-primary); }
.af-opt { font-weight:400; color:var(--wpm-text-muted); }
.af-field input { width:100%; padding:13px 15px; font-size:15px; color:var(--wpm-text-primary);
  background:var(--wpm-surface-2); border:1px solid var(--wpm-border); border-radius:var(--wpm-radius-md); transition:var(--wpm-transition); }
.af-field input::placeholder { color:var(--wpm-text-muted); }
.af-field input:focus { outline:none; border-color:var(--wpm-brand); box-shadow:0 0 0 3px var(--wpm-brand-surface); }

.af-egg { margin:2px 0 0; font-size:13.5px; line-height:1.5; color:var(--wpm-accent-warm);
  background:var(--wpm-accent-bg); border:1px solid color-mix(in srgb, var(--wpm-accent-warm) 38%, transparent);
  border-radius:var(--wpm-radius-sm); padding:10px 12px; }

.af-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.af-consent { display:flex; align-items:flex-start; gap:10px; margin:6px 0 18px; font-size:13.5px; line-height:1.5; color:var(--wpm-text-secondary); cursor:pointer; }
.af-consent input { margin-top:3px; flex-shrink:0; accent-color:var(--wpm-brand); width:16px; height:16px; }
.af-consent a { color:var(--wpm-link); text-decoration:underline; }

.af-error { margin:14px 0 0; font-size:14px; color:var(--wpm-accent-warm); text-align:center; }
.af-limit { display:flex; align-items:center; justify-content:center; gap:7px; flex-wrap:wrap; margin:16px 0 0;
  font-size:12px; line-height:1.5; color:var(--wpm-text-muted); text-align:center; }
.af-limit svg { width:14px; height:14px; }
.af-limit a { color:var(--wpm-text-secondary); text-decoration:underline; }

/* bouton submit + spinner */
[data-audit-submit] { position:relative; }
[data-audit-submit] .af-spinner { display:none; position:absolute; top:50%; left:50%; width:20px; height:20px; margin:-10px 0 0 -10px;
  border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:wpm-spin .7s linear infinite; }
[data-audit-submit].is-loading .af-btn-label { visibility:hidden; }
[data-audit-submit].is-loading .af-spinner { display:block; }
@keyframes wpm-spin { to { transform:rotate(360deg); } }

/* ---- LOADER 4 etapes ------------------------------------------------------ */
.wpm-audit-loader { max-width:480px; margin:0 auto; text-align:center;
  background:var(--wpm-surface-1); border:1px solid var(--wpm-border); border-radius:var(--wpm-radius-lg); padding:clamp(30px,4vw,46px); }
.al-spinner { width:42px; height:42px; margin:0 auto 22px; border:3px solid var(--wpm-surface-2); border-top-color:var(--wpm-brand);
  border-radius:50%; animation:wpm-spin .8s linear infinite; }
.wpm-audit-loader h2 { font-family:var(--wpm-font-display); font-size:22px; letter-spacing:-0.02em; margin:0 0 24px; }
.al-steps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; text-align:left; }
.al-steps li { display:flex; align-items:center; gap:12px; font-size:14.5px; color:var(--wpm-text-muted); transition:color var(--wpm-dur) var(--wpm-ease); }
.al-steps li .al-dot { width:18px; height:18px; border-radius:50%; border:2px solid var(--wpm-border-strong); flex-shrink:0; }
.al-steps li .al-check { display:none; width:18px; height:18px; border-radius:50%; background:var(--wpm-brand); color:#fff; flex-shrink:0; align-items:center; justify-content:center; }
.al-steps li .al-check svg { width:11px; height:11px; }
.al-steps li.is-active { color:var(--wpm-text-primary); }
.al-steps li.is-active .al-dot { border-color:var(--wpm-brand); border-top-color:transparent; animation:wpm-spin .8s linear infinite; }
.al-steps li.is-done { color:var(--wpm-text-secondary); }
.al-steps li.is-done .al-dot { display:none; }
.al-steps li.is-done .al-check { display:flex; }

/* ============================================================================
   RESULTAT — classes wpm-audit-result__* (genere par le LLM, sanitize serveur)
   ============================================================================ */
.wpm-audit-result { max-width:720px; margin:0 auto; }
.wpm-audit-result__header { text-align:center; background:linear-gradient(160deg,var(--wpm-brand-surface),var(--wpm-surface-1));
  border:1px solid var(--wpm-brand); border-radius:var(--wpm-radius-lg); padding:clamp(24px,3vw,36px); margin-bottom:24px; }
.wpm-audit-result__header h2 { font-family:var(--wpm-font-display); font-size:clamp(22px,3vw,30px); letter-spacing:-0.02em; margin:0 0 10px; }
.wpm-audit-result__header p { font-size:16px; line-height:1.6; color:var(--wpm-text-secondary); margin:0; }

.wpm-audit-result__strengths, .wpm-audit-result__improvements { background:var(--wpm-surface-1);
  border:1px solid var(--wpm-border); border-radius:var(--wpm-radius-lg); padding:clamp(22px,3vw,32px); margin-bottom:24px; }
.wpm-audit-result__strengths h2, .wpm-audit-result__strengths h3,
.wpm-audit-result__improvements h2, .wpm-audit-result__improvements h3 {
  font-family:var(--wpm-font-display); font-size:21px; letter-spacing:-0.015em; margin:0 0 18px; }
.wpm-audit-result__item { border-left:3px solid var(--wpm-border-strong); padding:4px 0 4px 16px; margin-bottom:16px;
  font-size:15px; line-height:1.6; color:var(--wpm-text-secondary); }
.wpm-audit-result__item:last-child { margin-bottom:0; }
.wpm-audit-result__strengths .wpm-audit-result__item { border-left-color:var(--wpm-success,#1f9d6b); }
.wpm-audit-result__improvements .wpm-audit-result__item { border-left-color:var(--wpm-accent-warm); }
.wpm-audit-result__item strong { color:var(--wpm-text-primary); }

.wpm-audit-result__cta { background:var(--wpm-surface-1); border:1px solid var(--wpm-border); border-radius:var(--wpm-radius-lg); padding:clamp(24px,3vw,36px); }
.wpm-audit-result__cta h3 { font-family:var(--wpm-font-display); font-size:23px; letter-spacing:-0.02em; margin:0 0 10px; text-align:center; }
.wpm-audit-result__cta > p { font-size:15.5px; line-height:1.6; color:var(--wpm-text-secondary); text-align:center; max-width:54ch; margin:0 auto 26px; }
.wpm-audit-result__cards { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.wpm-audit-result__card { position:relative; display:flex; flex-direction:column; background:var(--wpm-surface-2);
  border:1px solid var(--wpm-border); border-radius:var(--wpm-radius-md); padding:24px 20px; text-align:center; }
.wpm-audit-result__card--featured { border-color:var(--wpm-brand); box-shadow:0 0 0 1px var(--wpm-brand), var(--wpm-glow, 0 8px 30px rgba(83,58,253,.25)); }
.wpm-audit-result__badge { position:absolute; top:-11px; left:50%; transform:translateX(-50%); white-space:nowrap;
  font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#fff; background:var(--wpm-brand);
  padding:4px 12px; border-radius:var(--wpm-radius-pill); }
.wpm-audit-result__card-emoji { font-size:30px; line-height:1; margin-bottom:12px; }
.wpm-audit-result__card h4 { font-family:var(--wpm-font-display); font-size:16px; letter-spacing:-0.01em; margin:0 0 8px; color:var(--wpm-text-primary); }
.wpm-audit-result__card p { font-size:13px; line-height:1.5; color:var(--wpm-text-secondary); margin:0 0 18px; flex:1; }
.wpm-audit-result__card-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; margin-top:auto;
  padding:10px 14px; font-size:13.5px; font-weight:600; border-radius:var(--wpm-radius-md);
  background:var(--wpm-surface-1); color:var(--wpm-text-primary); border:1px solid var(--wpm-border); transition:var(--wpm-transition); }
.wpm-audit-result__card--featured .wpm-audit-result__card-btn { background:var(--wpm-brand); color:#fff; border-color:var(--wpm-brand); }
.wpm-audit-result__card-btn:hover { transform:translateY(-1px); border-color:var(--wpm-brand); }
.wpm-audit-result__error { text-align:center; font-size:16px; line-height:1.6; color:var(--wpm-text-secondary);
  background:var(--wpm-surface-1); border:1px solid var(--wpm-border); border-radius:var(--wpm-radius-lg); padding:32px; }

@media (max-width:640px) {
  .af-row { grid-template-columns:1fr; }
  .wpm-audit-result__cards { grid-template-columns:1fr; }
}
