@charset "utf-8";
/* ==========================================================================
   LA MICRO BY FLO · feuille commune des quiz (lmbf-quiz)
   Valeurs : « LA MICRO BY FLO · Design System 2027 », section Outils.
   Les noms de variables sont ceux du socle (c-…, sp-…, r-…, sh-…, bw-…).
   Classes : préfixe « lq- » (quiz), pour ne jamais croiser « lmf- » (site)
   ni « lm- » (générateurs).
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('polices/inter.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-blue: #3058E5;
  --c-blue-050: #EEF2FE;
  --c-blue-600: #2A4ECF;
  --c-blue-700: #2342B0;
  --c-navy: #192152;
  --c-yellow: #FEFBC5;
  --c-yellow-200: #FBF59A;
  --c-white: #FFFFFF;
  --c-muted: #5A6184;
  --c-line: #E2E5F0;
  --c-surface: #F5F6FA;
  --c-info-bg: #EEF2FE;
  --c-tip-bg: #FEFBC5;
  --c-error-bg: #FDECEC;
  --c-error-fg: #B42318;
  --c-success-bg: #E6F5EC;
  --c-success-fg: #1B6B3A;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 32px;
  --r-sm: 10px; --r-md: 12px; --r-lg: 14px; --r-xl: 18px; --r-pill: 999px;
  --sh-sm: 3px 3px 0 #192152;
  --sh-md: 4px 4px 0 #192152;
  --sh-lg: 6px 6px 0 #192152;
  --sh-none: 0 0 0 #192152;
  --bw-card: 2px;
  --bw-inner: 1px;
  --control-h: 48px;
  --control-h-lg: 52px;
  --focus-width: 3px;
  --focus-offset: 2px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--c-blue);
  font-family: var(--font);
  color: var(--c-navy);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.lq-transparent { background: transparent; }

/* La racine porte la hauteur envoyée à la page Ghost : jamais de hauteur liée à la fenêtre. */
.lq-racine {
  display: flex;
  justify-content: center;
  padding: 0 6px 6px 0; /* laisse la place de l'ombre dure de la carte */
}

.lq-carte {
  width: 100%;
  max-width: 640px;
  background: var(--c-white);
  border: var(--bw-card) solid var(--c-navy);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: clamp(22px, 5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lq-carte p { margin: 0; }
.lq-carte a { color: var(--c-blue); }
.lq-carte a:hover { color: var(--c-blue-700); }

/* ---------- Textes ---------- */
.lq-surtitre {
  margin: 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-blue-600);
}
.lq-titre {
  margin: 0;
  font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--c-navy);
}
.lq-titre:focus { outline: none; }
.lq-texte { font-size: 16px; line-height: 1.55; }
.lq-secondaire { font-size: 14px; color: var(--c-muted); }
.lq-mention { font-size: 11px; color: var(--c-muted); line-height: 1.5; }
.lq-marque {
  background: var(--c-yellow); font-weight: 700; padding: 1px 4px; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Intro ---------- */
.lq-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.lq-intro .lq-texte { margin-bottom: 4px; }

/* ---------- Barre du haut : retour + compteur ---------- */
.lq-haut { display: flex; align-items: center; justify-content: space-between; min-height: 22px; gap: 12px; }
.lq-retour {
  background: none; border: 0; padding: 4px 0; margin: 0;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--c-muted); cursor: pointer;
  border-radius: 6px;
}
.lq-retour:hover { color: var(--c-navy); }
.lq-compteur { margin-left: auto; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-blue-600); }
.lq-progression {
  height: 8px; border: var(--bw-inner) solid var(--c-navy); border-radius: var(--r-pill);
  background: var(--c-surface); overflow: hidden;
}
.lq-progression > span { display: block; height: 100%; background: var(--c-blue); transition: width 200ms ease; }

/* ---------- Questions ---------- */
.lq-question { display: flex; flex-direction: column; gap: 14px; }
.lq-aide-bouton {
  align-self: flex-start;
  background: none; border: 0; padding: 2px 0; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--c-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.lq-options { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.lq-options--rangee { flex-direction: row; flex-wrap: wrap; }
.lq-options--rangee .lq-option { flex: 1 1 160px; }

.lq-option {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: var(--control-h);
  padding: 13px 15px;
  background: var(--c-white);
  border: var(--bw-inner) solid var(--c-navy);
  border-radius: var(--r-md);
  box-shadow: none;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--c-navy);
  text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lq-option:hover { background: var(--c-blue-050); border-color: var(--c-blue-600); }
/* Sélectionné : même fond, bordure épaissie à 2 px, rond (ou case) plein. Rien d'autre. */
.lq-option[aria-checked="true"] {
  background: var(--c-blue-050);
  border-color: var(--c-blue-600);
  box-shadow: inset 0 0 0 1px var(--c-blue-600);
}
.lq-option__libelle { flex: 1; }
.lq-option__emoji { font-size: 20px; line-height: 1; flex-shrink: 0; }

.lq-rond, .lq-case {
  flex-shrink: 0; width: 22px; height: 22px;
  border: 2px solid var(--c-navy); background: var(--c-white);
  display: inline-flex; align-items: center; justify-content: center;
}
.lq-rond { border-radius: 50%; }
.lq-case { border-radius: 6px; color: var(--c-white); font-size: 14px; font-weight: 900; }
.lq-option[aria-checked="true"] .lq-rond { border-color: var(--c-blue-600); }
.lq-option[aria-checked="true"] .lq-rond::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-blue-600); }
.lq-option[aria-checked="true"] .lq-case { background: var(--c-blue-600); border-color: var(--c-blue-600); }
.lq-option[aria-checked="true"] .lq-case::after { content: "\2713";  /* coche, écrite en code pour ne pas dépendre de l'encodage */ }

.lq-options--erreur .lq-option { border-color: var(--c-error-fg); }

/* ---------- Champs ---------- */
.lq-champs { display: flex; flex-direction: column; gap: 14px; }
.lq-champ { display: flex; flex-direction: column; gap: 6px; }
.lq-champ label { font-size: 14px; font-weight: 700; }
.lq-champ__boite { position: relative; display: flex; align-items: center; }
.lq-champ input {
  width: 100%; height: var(--control-h);
  padding: 0 44px 0 14px;
  border: var(--bw-inner) solid var(--c-navy); border-radius: var(--r-sm);
  font: inherit; font-size: 20px; font-weight: 800; color: var(--c-navy);
  font-variant-numeric: tabular-nums; background: var(--c-white);
}
.lq-champ input::placeholder { color: var(--c-muted); font-weight: 500; }
.lq-champ__unite { position: absolute; right: 14px; font-weight: 700; color: var(--c-muted); pointer-events: none; }
.lq-champ input[aria-invalid="true"] { border: 2px solid var(--c-error-fg); padding-left: 13px; }

.lq-erreur { margin: 0; font-size: 14px; font-weight: 500; color: var(--c-error-fg); }

/* ---------- Boutons ---------- */
.lq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: var(--control-h-lg);
  padding: 12px 20px;
  border: 2px solid var(--c-navy); border-radius: var(--r-sm);
  background: var(--c-blue); color: var(--c-white);
  font: inherit; font-size: 16px; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none;
  box-shadow: var(--sh-md);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.lq-carte a.lq-btn, .lq-carte a.lq-btn:hover { color: var(--c-white); }
.lq-btn:hover { background: var(--c-blue-600); transform: translate(-1px, -1px); box-shadow: var(--sh-lg); }
.lq-btn:active { transform: translate(4px, 4px); box-shadow: var(--sh-none); background: var(--c-blue-700); }

/* ---------- Encarts (même grille que les encadrés du site, sans émoji) ---------- */
.lq-encart { border-radius: var(--r-lg); padding: 14px 16px; font-size: 15px; line-height: 1.55; }
.lq-encart strong:first-child { font-weight: 800; }
.lq-encart p + p { margin-top: 8px; }
.lq-encart--info { background: var(--c-info-bg); }
.lq-encart--conseil { background: var(--c-tip-bg); }
.lq-encart--attention { background: var(--c-error-bg); }
.lq-encart--aide { background: var(--c-surface); font-size: 13px; }

/* ---------- Résultats ---------- */
.lq-resultat { display: flex; flex-direction: column; gap: 16px; }
.lq-resultat__tete { display: flex; flex-direction: column; gap: 8px; }

.lq-pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.lq-pastille {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  background: var(--c-yellow); color: var(--c-navy);
}
.lq-pastille--neutre { background: var(--c-surface); color: var(--c-muted); }
.lq-pastille--ok { background: var(--c-success-bg); color: var(--c-success-fg); }
.lq-pastille--ko { background: var(--c-error-bg); color: var(--c-error-fg); }

.lq-preuves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lq-preuves li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.lq-preuves li > span:first-child { flex-shrink: 0; width: 20px; text-align: center; }
.lq-preuves--asavoir li { color: var(--c-navy); }

.lq-sous-titre { margin: 4px 0 0; font-size: 15px; font-weight: 800; }

/* Partenaire */
.lq-partenaire { display: flex; align-items: center; gap: 14px; }
.lq-logo {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--r-md);
  border: var(--bw-inner) solid var(--c-line); background: var(--c-white);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 22px; font-weight: 900; color: var(--c-navy);
}
.lq-logo img { width: 100%; height: 100%; object-fit: contain; }
.lq-logo--monogramme { background: var(--c-blue-050); }
.lq-logo--petit { width: 44px; height: 44px; font-size: 17px; border-radius: var(--r-sm); }
.lq-partenaire__nom { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; }

.lq-autre {
  border: var(--bw-inner) solid var(--c-line); border-radius: var(--r-md); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.lq-autre__tete { display: flex; align-items: center; gap: 12px; }
.lq-autre__nom { margin: 0; font-size: 17px; font-weight: 800; }
.lq-lien-fort { font-weight: 800; color: var(--c-navy) !important; text-decoration: underline; text-underline-offset: 3px; }

.lq-plus-loin {
  background: var(--c-yellow); border: var(--bw-inner) solid var(--c-navy); border-radius: var(--r-lg);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}

/* Échéances (facturation électronique) */
.lq-lignes { display: flex; flex-direction: column; gap: 10px; }
.lq-ligne {
  border: var(--bw-inner) solid var(--c-line); border-radius: var(--r-md); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.lq-ligne__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lq-ligne__titre { margin: 0; flex: 1 1 180px; font-size: 16px; font-weight: 800; }
.lq-ligne__date { font-size: 14px; color: var(--c-muted); white-space: nowrap; }
.lq-ligne p { font-size: 15px; }
.lq-ligne--off .lq-ligne__titre { color: var(--c-muted); font-weight: 700; }

.lq-etapes { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }

/* Détail repliable */
.lq-details { border-radius: var(--r-md); background: var(--c-surface); padding: 0; }
.lq-details summary { cursor: pointer; padding: 12px 16px; font-size: 14px; font-weight: 700; list-style: none; }
.lq-details summary::-webkit-details-marker { display: none; }
.lq-details summary::after { content: " \25BE"; }
.lq-details[open] summary::after { content: " \25B4"; }
.lq-details > div { padding: 0 16px 14px; font-size: 14px; }

/* Pied de carte */
.lq-pied { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lq-refaire {
  background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--c-muted); cursor: pointer; border-radius: 6px;
}
.lq-refaire:hover { color: var(--c-navy); }
.lq-pied a { font-size: 13px; font-weight: 800; color: var(--c-blue-600); text-decoration: underline; text-underline-offset: 3px; }
.lq-sources { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Focus : 3 px c-blue, au clavier seulement sur les boutons ---------- */
.lq-carte :focus { outline: none; }
.lq-carte button:focus-visible, .lq-carte a:focus-visible, .lq-carte summary:focus-visible {
  outline: var(--focus-width) solid var(--c-blue); outline-offset: var(--focus-offset);
}
.lq-carte input:focus { outline: var(--focus-width) solid var(--c-blue); outline-offset: var(--focus-offset); }
.lq-option:focus-visible { outline-offset: 3px; }

.lq-invisible { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 420px) {
  .lq-partenaire__nom { font-size: 21px; }
  .lq-options--rangee .lq-option { flex: 1 1 120px; }
}
