/* ═══════════════════════════════════════════════════════
   Audit FabLab — Styles publics
   Palette Res Fabrica : orange #F58220 → corail/rose #EC4E63 · gris neutres
   ═══════════════════════════════════════════════════════ */

/* Variables */
:root {
  --afl-primary   : #F26C2A;   /* orange Res Fabrica */
  --afl-primary-d : #EC4E63;   /* corail/rose (fin de dégradé "Fabrica.") */
  --afl-gradient  : linear-gradient(135deg, #F58220, #EC4E63);
  --afl-tint      : #FFF4EC;   /* pêche très clair */
  --afl-tint-2    : #FFE7DA;   /* pêche clair */
  --afl-tint-bd   : #F8C6AE;   /* bordure sur fond pêche */
  --afl-bg        : #fbf8f6;
  --afl-card      : #ffffff;
  --afl-border    : #ece4df;
  --afl-text      : #2a211d;
  --afl-muted     : #8a7d76;
  --afl-radius    : 12px;
  --afl-shadow    : 0 4px 24px rgba(0,0,0,.07);
  --afl-transition: .18s ease;
}

/* ── Conteneur global ── */
.afl-app {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--afl-text);
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px;
  position: relative;
}

/* ── Écrans (one visible at a time) ── */
.afl-screen { display: none; }
.afl-screen--active { display: block; }

/* ══════════════════════════
   LANDING
   ══════════════════════════ */
.afl-landing { text-align: center; }

.afl-landing__logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 20px;
}

.afl-landing__badge {
  display: inline-block;
  background: var(--afl-tint-2);
  color: var(--afl-primary-d);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.afl-landing__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

.afl-landing__manifeste {
  font-size: 16px;
  color: var(--afl-text);
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.65;
  font-style: italic;
  border-left: 3px solid var(--afl-primary);
  padding-left: 18px;
  text-align: left;
}
.afl-landing__intro {
  font-size: 17px;
  color: var(--afl-muted);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.afl-landing__why {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 640px;
  margin: 0 auto 36px;
}
.afl-why-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--afl-text);
  background: var(--afl-tint);
  border: 1px solid var(--afl-tint-bd);
  border-radius: 50px;
  padding: 7px 14px;
}
.afl-why-item__ico { font-size: 16px; }

/* ── Choix du profil (porteur / utilisateur) ── */
.afl-profile-step {
  max-width: 780px;
  margin: 0 auto 24px;
}
.afl-profile-step__intro {
  font-size: 15px;
  color: var(--afl-muted);
  margin: 0 0 14px;
}
.afl-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.afl-profile-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  background: var(--afl-card);
  border: 2px solid var(--afl-border);
  border-radius: var(--afl-radius);
  padding: 18px 20px;
  font: inherit;
  color: var(--afl-text);
  transition: border-color var(--afl-transition), box-shadow var(--afl-transition), background var(--afl-transition);
}
.afl-profile-card:hover { border-color: var(--afl-tint-bd); background: var(--afl-tint); }
.afl-profile-card--active {
  border-color: var(--afl-primary);
  background: var(--afl-tint-2);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--afl-primary) 18%, transparent);
}
.afl-profile-card__ico { font-size: 26px; }
.afl-profile-card__title { font-size: 16px; font-weight: 700; }
.afl-profile-card__desc { font-size: 13px; color: var(--afl-muted); line-height: 1.4; }

.afl-landing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 780px;
  margin: 0 auto 32px;
}

.afl-landing__card {
  background: var(--afl-card);
  border: 2px solid var(--afl-border);
  border-radius: var(--afl-radius);
  padding: 28px 24px;
  text-align: left;
  box-shadow: var(--afl-shadow);
  transition: transform var(--afl-transition), box-shadow var(--afl-transition);
}
.afl-landing__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(242,108,42,.14);
}
.afl-landing__card--long { border-color: var(--afl-primary); }

.afl-card__icon { font-size: 32px; margin-bottom: 12px; }

.afl-landing__card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.afl-card__duration {
  font-size: 13px;
  color: var(--afl-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.afl-landing__card p {
  font-size: 14px;
  color: var(--afl-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.afl-card__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
}
.afl-card__perks li::before { content: '✓ '; color: #10b981; font-weight: 700; }
.afl-card__perks li { margin-bottom: 4px; }

.afl-landing__trust {
  font-size: 13px;
  color: var(--afl-muted);
  margin-top: 8px;
}

/* ══════════════════════════
   BOUTONS
   ══════════════════════════ */
.afl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--afl-transition);
  text-decoration: none;
}
.afl-btn--primary {
  background: var(--afl-gradient);
  color: #fff;
  width: 100%;
}
.afl-btn--primary:hover { filter: brightness(1.05); color: #fff; box-shadow: 0 6px 18px rgba(236,78,99,.28); }
.afl-btn--secondary {
  background: var(--afl-tint-2);
  color: var(--afl-primary-d);
  border-color: var(--afl-tint-bd);
  width: 100%;
}
.afl-btn--secondary:hover { background: #ffd9c6; }
.afl-btn--ghost {
  background: transparent;
  color: var(--afl-muted);
  border-color: var(--afl-border);
}
.afl-btn--ghost:hover { background: var(--afl-bg); }
.afl-btn--full { width: 100%; }
.afl-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ══════════════════════════
   FORMULAIRE (WIZARD)
   ══════════════════════════ */
.afl-form {
  background: var(--afl-card);
  border-radius: var(--afl-radius);
  box-shadow: var(--afl-shadow);
  padding: 32px 28px;
}

.afl-progress-header { margin-bottom: 28px; }

.afl-progress-header__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.afl-dim-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--afl-tint-2);
  color: var(--afl-primary-d);
  padding: 3px 10px;
  border-radius: 50px;
}

.afl-step-counter { font-size: 13px; color: var(--afl-muted); }

.afl-progress-bar {
  height: 6px;
  background: var(--afl-border);
  border-radius: 3px;
  overflow: hidden;
}
.afl-progress-bar__fill {
  height: 100%;
  background: var(--afl-primary);
  border-radius: 3px;
  transition: width .3s ease;
}

.afl-question__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}
.afl-question__desc {
  font-size: 14px;
  color: var(--afl-muted);
  margin: 0 0 24px;
}

/* Options (radio stylés) */
.afl-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.afl-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--afl-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--afl-transition), background var(--afl-transition);
}
.afl-option input[type="radio"] { display: none; }
.afl-option:hover { border-color: var(--afl-tint-bd); background: var(--afl-tint); }
.afl-option--selected {
  border-color: var(--afl-primary);
  background: var(--afl-tint-2);
}

.afl-option__badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--afl-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--afl-muted);
  transition: background var(--afl-transition), color var(--afl-transition);
}
.afl-option--selected .afl-option__badge {
  background: var(--afl-primary);
  color: #fff;
}

.afl-option__text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.afl-option__text span {
  font-size: 13px;
  color: var(--afl-muted);
}

.afl-na-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--afl-muted);
  cursor: pointer;
  margin-bottom: 20px;
}

.afl-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.afl-nav .afl-btn { flex: 1; }

.afl-saving {
  text-align: right;
  font-size: 12px;
  color: var(--afl-muted);
  margin-top: 8px;
  min-height: 18px;
}

/* ══════════════════════════
   EMAIL GATE
   ══════════════════════════ */
.afl-email-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--afl-card);
  border-radius: var(--afl-radius);
  box-shadow: var(--afl-shadow);
  overflow: hidden;
}

.afl-email-gate__left {
  background: linear-gradient(160deg, var(--afl-tint), var(--afl-tint-2));
  padding: 36px 28px;
}
.afl-email-gate__right { padding: 36px 28px; }

.afl-email-gate__title { font-size: 24px; font-weight: 800; margin: 0 0 20px; }

.afl-score-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.afl-score-preview__ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--afl-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.afl-score-num { font-size: 26px; font-weight: 800; line-height: 1; }
.afl-score-unit { font-size: 11px; opacity: .8; }
.afl-badge-palier {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.afl-score-caption { font-size: 13px; color: var(--afl-muted); margin: 0; }

/* Radar teaser */
.afl-radar-teaser {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
}
.afl-radar-teaser canvas { filter: blur(4px); display: block; }
.afl-radar-teaser__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.afl-radar-teaser__overlay span {
  background: rgba(255,255,255,.92);
  border: 2px solid var(--afl-primary);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--afl-primary);
}

/* Formulaire email */
.afl-email-gate__right h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }

.afl-report-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14px;
}
.afl-report-perks li { padding: 5px 0; }
.afl-perk--cta { color: var(--afl-primary); font-weight: 600; }

.afl-form-group { margin-bottom: 14px; }
.afl-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.afl-form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--afl-border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color var(--afl-transition);
  box-sizing: border-box;
}
.afl-form-group input:focus {
  outline: none;
  border-color: var(--afl-primary);
}
.afl-required { color: #ef4444; }

.afl-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--afl-muted);
  cursor: pointer;
}
.afl-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--afl-primary);
  cursor: pointer;
}
.afl-consent__opt { opacity: .7; }

.afl-privacy {
  font-size: 12px;
  color: var(--afl-muted);
  text-align: center;
  margin-top: 10px;
}

/* ══════════════════════════
   ÉCRAN MERCI
   ══════════════════════════ */
.afl-thanks {
  text-align: center;
  padding: 48px 24px;
  background: var(--afl-card);
  border-radius: var(--afl-radius);
  box-shadow: var(--afl-shadow);
}
.afl-thanks__icon { font-size: 48px; margin-bottom: 16px; }
.afl-thanks h2 { font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.afl-thanks__msg { font-size: 15px; color: var(--afl-muted); margin-bottom: 24px; }
.afl-thanks__actions { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 0 auto; }
.afl-upgrade-cta { margin-top: 16px; }
.afl-upgrade-cta p { font-size: 14px; color: var(--afl-muted); margin-bottom: 12px; }

/* ══════════════════════════
   RAPPORT
   ══════════════════════════ */
.afl-report {
  background: var(--afl-card);
  border-radius: var(--afl-radius);
  box-shadow: var(--afl-shadow);
  padding: 32px 28px;
}

.afl-report__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--afl-bg);
  border-radius: var(--afl-radius);
  margin-bottom: 24px;
}
.afl-report__logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}
.afl-report__brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--afl-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.afl-report__title { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.afl-report__meta { font-size: 13px; color: var(--afl-muted); margin: 0; }
.afl-report__score-box {
  text-align: center;
  border-radius: 12px;
  padding: 16px 20px;
  color: #fff;
  flex-shrink: 0;
  min-width: 90px;
}
.afl-report__score-num { display: block; font-size: 36px; font-weight: 900; line-height: 1; }
.afl-report__score-label { font-size: 14px; opacity: .8; }
.afl-report__palier { display: block; font-size: 12px; margin-top: 4px; opacity: .9; font-weight: 700; }
.afl-report__score-box { max-width: 240px; }
.afl-report__score-step-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.afl-report__score-step { display: block; font-size: 26px; font-weight: 900; line-height: 1.1; margin: 2px 0 4px; }
.afl-report__score-tagline { display: block; font-size: 12px; opacity: .92; line-height: 1.35; }

/* Trajectoire (élan) */
.afl-report__trajectoire {
  border: 1px solid var(--afl-border);
  border-left-width: 4px;
  border-radius: var(--afl-radius);
  background: var(--afl-bg);
  padding: 18px 20px;
  margin-bottom: 28px;
}
.afl-report__trajectoire-msg { margin: 0 0 16px; font-size: 15px; line-height: 1.5; font-weight: 600; }
.afl-traj-steps {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.afl-traj-step {
  flex: 1 1 0;
  min-width: 70px;
  text-align: center;
  position: relative;
  opacity: .45;
}
.afl-traj-step--passed, .afl-traj-step--current { opacity: 1; }
.afl-traj-step__dot {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background: var(--afl-border);
}
.afl-traj-step--passed .afl-traj-step__dot,
.afl-traj-step--current .afl-traj-step__dot { background: var(--step-color, var(--afl-primary)); }
.afl-traj-step--current .afl-traj-step__dot {
  width: 20px; height: 20px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-color, #F26C2A) 25%, transparent);
}
.afl-traj-step__name { font-size: 12px; font-weight: 700; }
.afl-traj-step--current .afl-traj-step__name { font-size: 13px; }
.afl-report__trajectoire-cap {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  padding-top: 14px;
  border-top: 1px dashed var(--afl-border);
}

.afl-report__section-intro { font-size: 14px; color: var(--afl-muted); line-height: 1.5; margin: -8px 0 16px; }

.afl-report__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.afl-report__actions .afl-btn { flex: none; }

.afl-report__section { margin-bottom: 32px; }
.afl-report__section h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--afl-border);
}

.afl-report__radar-wrap {
  max-width: 380px;
  margin: 0 auto;
}

/* Tableau scores */
.afl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.afl-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--afl-bg);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--afl-muted);
}
.afl-table td { padding: 10px 12px; border-bottom: 1px solid var(--afl-border); }

.afl-score-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.afl-score-bar__fill {
  height: 8px;
  border-radius: 4px;
  flex: 1;
}
.afl-score-bar span { font-size: 13px; font-weight: 600; white-space: nowrap; }

.afl-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.afl-badge--na { background: #9ca3af; }

.afl-mini-bar { display: flex; gap: 3px; }
.afl-mini-bar__step {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--afl-border);
}
.afl-mini-bar__step--active { background: var(--afl-primary); }

/* Détail dimensions */
.afl-dim-detail { margin-bottom: 20px; }
.afl-dim-detail h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}
.afl-dim-score { font-size: 14px; color: var(--afl-muted); margin-left: auto; }

.afl-critere-list { list-style: none; padding: 0; margin: 0; }
.afl-critere-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--afl-border);
  font-size: 13px;
}
.afl-critere-item:last-child { border-bottom: none; }
.afl-critere-item--na { opacity: .6; }
.afl-critere-libelle { flex: 1; margin-right: 12px; }

/* Recommandations */
.afl-reco-list { list-style: none; padding: 0; margin: 0; }
.afl-reco-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--afl-border);
}
.afl-reco-item:last-child { border-bottom: none; }
.afl-reco-item__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--afl-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.afl-reco-item strong { display: block; font-size: 15px; margin-bottom: 3px; }
.afl-reco-score {
  display: inline-block;
  font-size: 12px;
  color: var(--afl-muted);
  margin-bottom: 4px;
  margin-left: 8px;
}
.afl-reco-item p { margin: 0; font-size: 13px; color: var(--afl-muted); line-height: 1.5; }
.afl-reco-offre {
  margin-top: 8px !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--afl-text) !important;
}
.afl-reco-offre__tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--afl-primary);
}
.afl-reco-offre__maillon {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  background: var(--afl-tint-2);
  color: var(--afl-primary-d);
}
.afl-reco-offre strong { font-size: 13px; }

/* Chaîne de valeur Res Fabrica */
.afl-report__chaine {
  background: linear-gradient(135deg, var(--afl-tint), var(--afl-tint-2));
  border-radius: var(--afl-radius);
  padding: 28px 24px;
}
.afl-report__chaine h2 { border: none; }
.afl-chaine-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.afl-chaine-item {
  background: #fff;
  border: 1px solid var(--afl-border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.afl-chaine-item--key {
  border-color: var(--afl-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--afl-primary) 20%, transparent);
}
.afl-chaine-item__step {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--afl-primary);
}
.afl-chaine-item__offre { font-size: 14px; font-weight: 700; line-height: 1.3; }
.afl-chaine-item__desc { font-size: 12px; color: var(--afl-muted); line-height: 1.4; }
.afl-report__chaine-baseline { font-size: 14px; line-height: 1.55; margin: 0; }

/* Bandeau enquête / livre blanc */
.afl-report__survey {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--afl-tint);
  border: 1px solid var(--afl-tint-bd);
  border-radius: var(--afl-radius);
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 14px;
  line-height: 1.5;
}
.afl-report__survey-ico { font-size: 26px; flex-shrink: 0; }

/* CTA upgrade */
.afl-report__cta-upgrade {
  background: linear-gradient(135deg, var(--afl-tint), var(--afl-tint-2));
  border-radius: var(--afl-radius);
  padding: 28px 24px;
  text-align: center;
}
.afl-report__cta-upgrade h2 { border: none; }
.afl-report__cta-upgrade p { color: var(--afl-muted); margin-bottom: 16px; }
.afl-report__cta-upgrade .afl-btn { max-width: 320px; }

/* Pied de page rapport */
.afl-report__footer {
  text-align: center;
  padding-top: 24px;
  border-top: 2px solid var(--afl-border);
  font-size: 13px;
  color: var(--afl-muted);
}
.afl-report__footer a { color: var(--afl-primary); }
.afl-report__footer-tagline { font-size: 12px; }

/* ══════════════════════════
   SPINNER
   ══════════════════════════ */
.afl-spinner {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.afl-spinner__ring {
  width: 44px;
  height: 44px;
  border: 4px solid var(--afl-border);
  border-top-color: var(--afl-primary);
  border-radius: 50%;
  animation: afl-spin .8s linear infinite;
}
@keyframes afl-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════
   ERREURS
   ══════════════════════════ */
.afl-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 640px) {
  .afl-email-gate {
    grid-template-columns: 1fr;
  }
  .afl-report__header {
    flex-direction: column;
  }
  .afl-report__score-box { align-self: flex-start; }
}
