:root {
  --bg: #f4f4f8;
  --surface: #ffffff;
  --surface-2: #eeeef4;
  --ligne: rgba(18, 20, 40, .09);
  --texte: #12141c;
  --doux: #5f6578;
  --accent: #f0532c;
  --accent-2: #ff9a3c;
  --accent-texte: #ffffff;
  --ok: #12a46b;
  --attention: #b97700;
  --erreur: #d93848;
  --ombre: 0 10px 40px -18px rgba(20, 22, 50, .35);
  --halo: rgba(240, 83, 44, .16);
  --rayon: 18px;
  --police: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090b12; --surface: #121522; --surface-2: #1a1e2f; --ligne: rgba(255, 255, 255, .08);
    --texte: #eef0f8; --doux: #8a90a8; --accent: #ff6a3d; --accent-2: #ffb054;
    --ok: #3ddc97; --attention: #ffc861; --erreur: #ff6070;
    --ombre: 0 20px 60px -25px rgba(0, 0, 0, .8); --halo: rgba(255, 106, 61, .22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090b12; --surface: #121522; --surface-2: #1a1e2f; --ligne: rgba(255, 255, 255, .08);
  --texte: #eef0f8; --doux: #8a90a8; --accent: #ff6a3d; --accent-2: #ffb054;
  --ok: #3ddc97; --attention: #ffc861; --erreur: #ff6070;
  --ombre: 0 20px 60px -25px rgba(0, 0, 0, .8); --halo: rgba(255, 106, 61, .22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: radial-gradient(1200px 600px at 85% -10%, var(--halo), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--texte);
  font: 16px/1.5 var(--police);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.sprite { display: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
p { margin: 0; }

.app { max-width: 460px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); min-height: 100dvh; display: flex; flex-direction: column; }
.vue { display: flex; flex-direction: column; gap: 20px; flex: 1; animation: entree .35s ease both; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } }

/* astre */
.astre { width: 112px; height: 112px; border-radius: 50%; position: relative; margin: 0 auto 8px;
  background: radial-gradient(circle at 35% 30%, #fff3d6 0, var(--accent-2) 22%, var(--accent) 55%, #7a1d10 100%);
  box-shadow: 0 0 60px 6px var(--halo), 0 0 140px 30px var(--halo); }
.astre span { position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--ligne); animation: orbite 9s linear infinite; }
.astre span::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--texte); top: 50%; left: -4px; opacity: .7; }
@keyframes orbite { to { transform: rotate(360deg); } }
.astre.petit { width: 72px; height: 72px; }
.astre.mini { width: 22px; height: 22px; margin: 0; box-shadow: 0 0 16px 2px var(--halo); }
.astre.mini span { display: none; }

.hero { text-align: center; display: flex; flex-direction: column; gap: 10px; padding: 9vh 0 2vh; }
.sous { color: var(--doux); }
.mention { color: var(--doux); font-size: 13px; text-align: center; margin-top: auto; }
.pile { display: flex; flex-direction: column; gap: 12px; }

/* boutons */
.btn { font: inherit; font-weight: 600; border: 0; cursor: pointer; border-radius: 14px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--texte); background: transparent; transition: transform .12s ease, filter .2s, background .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.grand { padding: 16px 20px; font-size: 16px; width: 100%; }
.btn.primaire { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-texte); box-shadow: 0 10px 30px -12px var(--accent); }
.btn.primaire:hover:not(:disabled) { filter: brightness(1.06); }
.btn.secondaire { background: var(--surface); border: 1px solid var(--ligne); }
.btn.secondaire:hover { background: var(--surface-2); }
.btn.texte { color: var(--accent); padding: 8px; }
.btn.discret { color: var(--doux); font-weight: 500; font-size: 14px; }
.btn.puce { padding: 6px 12px; border-radius: 10px; font-size: 13px; background: var(--surface-2); color: var(--accent); }
.icone-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--texte); cursor: pointer; }
.icone-btn:hover { background: var(--surface-2); }
.icone-btn.fantome { visibility: hidden; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* barre */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.titre-barre { font-size: 17px; font-weight: 650; text-align: center; flex: 1; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.barre-droite { display: flex; align-items: center; gap: 2px; }
.reseau { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--doux); padding: 4px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--ligne); margin-right: 4px; white-space: nowrap; }
.reseau i { width: 7px; height: 7px; border-radius: 50%; background: var(--doux); }
.reseau.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.reseau.ko i { background: var(--erreur); }

/* champs */
.champ { font: inherit; width: 100%; color: var(--texte); background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s; resize: none; }
.champ:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--halo); }
.champ::placeholder { color: var(--doux); opacity: .8; }
textarea.champ.mono { line-height: 1.55; word-break: break-all; font-size: 14px; field-sizing: content; min-height: 78px; }
.champ-groupe { position: relative; }
.champ-groupe .champ { padding-right: 92px; }
.champ-outils { position: absolute; right: 6px; top: 6px; display: flex; }
.champ-montant { position: relative; display: flex; align-items: center; }
.champ-montant .champ { font-size: 26px; font-weight: 650; padding-right: 140px; font-variant-numeric: tabular-nums; }
.champ-montant span { position: absolute; right: 78px; color: var(--doux); font-weight: 600; }
.champ-montant .btn { position: absolute; right: 10px; }
.etiquette { font-size: 13px; font-weight: 600; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
.aide { font-size: 13px; color: var(--doux); }
.erreur { color: var(--erreur); font-size: 14px; min-height: 0; }
.erreur:empty { display: none; }
.note { font-size: 13px; color: var(--doux); text-align: center; }
.coche { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 15px; }
.coche input { width: 20px; height: 20px; accent-color: var(--accent); }
.depot { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 14px; border: 1.5px dashed var(--ligne); border-radius: 14px; color: var(--doux); cursor: pointer; font-size: 14px; }
.depot:hover { border-color: var(--accent); color: var(--texte); }
.depot input { display: none; }
.jauge { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.jauge i { display: block; height: 100%; width: 0; background: var(--erreur); transition: width .3s, background .3s; }

/* création */
.etapes { display: flex; gap: 6px; }
.etapes i { width: 26px; height: 4px; border-radius: 4px; background: var(--surface-2); transition: background .3s; }
.etapes i.fait { background: var(--accent); }
.etape { display: flex; flex-direction: column; gap: 16px; }
.mots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: mot; transition: filter .3s; user-select: text; }
.mots span { background: var(--surface); border: 1px solid var(--ligne); border-radius: 10px; padding: 8px 8px; font-family: var(--mono); font-size: 14px; display: flex; gap: 6px; }
.mots span::before { counter-increment: mot; content: counter(mot); color: var(--doux); font-size: 11px; min-width: 16px; text-align: right; padding-top: 2px; }
.mots.flou { filter: blur(7px); user-select: none; pointer-events: none; }
.quiz { display: flex; flex-direction: column; gap: 10px; }
.quiz label { display: flex; align-items: center; gap: 12px; }
.quiz label span { min-width: 64px; color: var(--doux); font-weight: 600; }

/* carte solde */
.carte-solde { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 22px 20px; background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 6px; }
.carte-solde::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, var(--accent-2) 0, var(--accent) 35%, transparent 70%); opacity: .35; filter: blur(10px); pointer-events: none; }
.solde { display: flex; align-items: baseline; gap: 8px; font-size: 42px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; position: relative; word-break: break-all; }
.solde small { font-size: 16px; font-weight: 600; color: var(--doux); letter-spacing: 0; }
.solde-detail { font-size: 13px; color: var(--doux); min-height: 19px; position: relative; }
.puce-adresse { margin-top: 10px; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font: 500 13px var(--mono); color: var(--texte); background: var(--surface-2); border: 0; border-radius: 99px; padding: 7px 12px; cursor: pointer; position: relative; }
.puce-adresse svg { width: 15px; height: 15px; color: var(--doux); }
.puce-adresse:hover svg { color: var(--accent); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions .action { padding: 16px; font-size: 16px; }
.section { font-size: 13px; color: var(--doux); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.activite { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.activite li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; }
.activite .pastille { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.activite li { cursor: pointer; }
.activite .pastille.recu { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.activite .montant.recu { color: var(--ok); }
.activite .pastille.attente { color: var(--attention); }
.activite .pastille.echec { color: var(--erreur); }
.activite .pastille.attente svg { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.activite .infos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.activite .infos b { font-weight: 600; font-size: 15px; }
.activite .infos small { color: var(--doux); font-size: 12px; font-family: var(--mono); overflow-wrap: anywhere; }
.activite .montant { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.activite .montant small { display: block; font-weight: 500; font-size: 12px; color: var(--doux); }
.vide { color: var(--doux); font-size: 14px; text-align: center; padding: 22px 12px; border: 1px dashed var(--ligne); border-radius: 16px; }

/* feuilles (dialog) */
dialog.feuille { border: 0; padding: 18px 18px max(22px, env(safe-area-inset-bottom)); width: 100%; max-width: 460px; max-height: 92dvh; overflow: auto; margin: auto auto 0; border-radius: 26px 26px 0 0; background: var(--bg); color: var(--texte); box-shadow: var(--ombre); }
dialog.feuille[open] { animation: monte .3s cubic-bezier(.2, .9, .3, 1.1) both; display: flex; flex-direction: column; gap: 16px; }
dialog.feuille::backdrop { background: rgba(5, 6, 12, .55); backdrop-filter: blur(4px); }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) {
  dialog.feuille { margin: auto; border-radius: 26px; }
}

.qr { align-self: center; background: #fff; padding: 16px; border-radius: 22px; width: 248px; height: 248px; box-shadow: var(--ombre); }
.qr svg { width: 100%; height: 100%; stroke: none; }
.adresse-complete { text-align: center; font-size: 15px; line-height: 1.7; word-spacing: 4px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px; user-select: all; }

.recap { background: var(--surface); border: 1px solid var(--ligne); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.recap-montant { font-size: 36px; font-weight: 750; letter-spacing: -.03em; display: flex; gap: 8px; align-items: baseline; justify-content: center; font-variant-numeric: tabular-nums; }
.recap-montant small { font-size: 15px; color: var(--doux); font-weight: 600; letter-spacing: 0; }
.recap dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.recap dt { color: var(--doux); }
.recap dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; word-break: break-all; }
.recap .plein { grid-column: 1 / -1; }
.recap .adresse-recap { text-align: left; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; line-height: 1.7; word-spacing: 3px; margin-top: -4px; }
.info { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); color: var(--texte); font-size: 14px; line-height: 1.5; }
.info > svg { color: var(--accent); margin-top: 1px; }
.info > div { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.info p { color: var(--doux); }
.info b { color: var(--texte); font-family: var(--mono); font-weight: 600; }
.info .coche { margin-top: 4px; font-weight: 600; font-size: 14px; }
.info-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.info-actions .btn { padding: 9px 14px; font-size: 14px; background: var(--surface-2); color: var(--accent); }
.info-actions .btn:hover { filter: brightness(1.1); }
.champ.petit { padding: 10px 12px; font-size: 15px; border-radius: 12px; }
.contact-ok { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--texte); }
.contact-ok svg { color: var(--ok); }
.contact-detecte { color: var(--ok); font-weight: 600; margin-top: -4px; }
.contacts-rapides { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.contacts-rapides button { font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 99px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte); cursor: pointer; }
.contacts-rapides button svg { width: 16px; height: 16px; color: var(--accent); }
.contacts-rapides button:hover { border-color: var(--accent); }
.liste-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.liste-contacts li { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; }
.liste-contacts li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.liste-contacts b { font-weight: 600; }
.liste-contacts small { font-family: var(--mono); color: var(--doux); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-contacts .icone-btn { color: var(--doux); }
.liste-contacts .icone-btn:hover { color: var(--erreur); }
.resultat { align-items: center; text-align: center; padding-top: 10px; }
.statut-icone { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.statut-icone svg { width: 36px; height: 36px; stroke-width: 2.2; }
.statut-icone.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.statut-icone.ko { color: var(--erreur); background: color-mix(in srgb, var(--erreur) 15%, transparent); }
.statut-icone.attente svg { color: var(--attention); }
.statut-icone.charge { border: 3px solid var(--surface-2); border-top-color: var(--accent); background: transparent; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.scanner { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 1; object-fit: cover; }

.liste-reglages { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; }
.ligne { font: inherit; color: var(--texte); background: transparent; border: 0; border-bottom: 1px solid var(--ligne); padding: 15px 16px; text-align: left; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.ligne:last-child { border-bottom: 0; }
.ligne:hover:not(.statique) { background: var(--surface-2); }
.ligne small { color: var(--doux); font-size: 13px; }
.ligne.statique { flex-direction: row; justify-content: space-between; align-items: center; cursor: default; }
.ligne.danger span { color: var(--erreur); font-weight: 600; }
.segments { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.segments button { font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--doux); padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.segments button[aria-checked="true"] { background: var(--surface); color: var(--texte); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }

/* délégations */
.lien-deleg { margin-top: 2px; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font: 500 13px var(--police); color: var(--doux); background: transparent; border: 0; padding: 4px 0; cursor: pointer; position: relative; text-align: left; }
.lien-deleg svg { width: 15px; height: 15px; }
.lien-deleg svg:last-child { width: 14px; height: 14px; transition: transform .2s; }
.lien-deleg:hover { color: var(--texte); }
.lien-deleg:hover svg:last-child { transform: translateX(2px); color: var(--accent); }
.deleg-resume { background: var(--surface); border: 1px solid var(--ligne); border-radius: 22px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.deleg-resume::before { content: ""; position: absolute; width: 200px; height: 200px; right: -80px; top: -110px; border-radius: 50%; background: radial-gradient(circle, var(--accent-2) 0, var(--accent) 35%, transparent 70%); opacity: .22; filter: blur(8px); pointer-events: none; }
.deleg-total { display: flex; align-items: baseline; gap: 8px; font-size: 32px; font-weight: 750; letter-spacing: -.025em; font-variant-numeric: tabular-nums; position: relative; }
.deleg-total small { font-size: 14px; font-weight: 600; color: var(--doux); letter-spacing: 0; }
.deleg-stats { display: flex; gap: 18px; font-size: 13px; color: var(--doux); margin-top: 2px; }
.deleg-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.deleg-stats b { color: var(--texte); font-weight: 650; font-variant-numeric: tabular-nums; }
.point { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.point.gelee { background: var(--attention); }
.point.libre { background: var(--ok); }
.aide-deleg { margin-top: 8px; border-top: 1px solid var(--ligne); padding-top: 10px; }
.aide-deleg summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--doux); cursor: pointer; }
.aide-deleg summary::-webkit-details-marker { display: none; }
.aide-deleg summary svg { width: 16px; height: 16px; }
.aide-deleg summary:hover { color: var(--texte); }
.aide-deleg ul { margin: 10px 0 2px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--doux); line-height: 1.45; }
.aide-deleg li::marker { color: var(--accent); }
.deleg-globales { display: flex; flex-direction: column; gap: 10px; }
.deleg-globales:empty { display: none; }
.carte-action { background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.carte-action h4 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.centre { text-align: center; }
.liste-deleg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.liste-deleg li { background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 15px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.deleg-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.deleg-montant { font-size: 20px; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.deleg-montant small { font-size: 12.5px; font-weight: 600; color: var(--doux); margin-left: 5px; letter-spacing: 0; }
.etat { font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 99px; white-space: nowrap; letter-spacing: .01em; }
.etat.gelee { color: var(--attention); background: color-mix(in srgb, var(--attention) 14%, transparent); }
.etat.libre { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.etat.encours { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.deleg-seq { font-size: 12.5px; color: var(--doux); margin-bottom: 6px; }
.deleg-seq code { font-size: 11.5px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; padding: 5px 0; border-top: 1px solid var(--ligne); }
.kv > span:first-child { color: var(--doux); }
.kv > span:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv small { display: block; font-weight: 500; color: var(--doux); font-size: 11.5px; }
.kv.net > span:last-child { color: var(--ok); }
.deleg-texte { font-size: 13px; color: var(--doux); padding-top: 6px; border-top: 1px solid var(--ligne); }
.liste-deleg .btn, .carte-action .btn { margin-top: 8px; padding: 11px 14px; font-size: 14.5px; }
.recap-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.parcours { list-style: none; margin: 2px 0 0; padding: 14px 0 4px; display: flex; justify-content: center; align-items: center; gap: 14px; border-top: 1px solid var(--ligne); }
.parcours li { display: flex; align-items: center; gap: 9px; }
.parcours li:first-child::after { content: ""; width: 34px; margin-left: 6px; border-top: 1.5px dashed color-mix(in srgb, var(--doux) 45%, transparent); }
.parcours i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--doux); }
.parcours li.actif i { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-texte); }
.parcours span { display: flex; flex-direction: column; line-height: 1.2; }
.parcours b { font-size: 13.5px; }
.parcours small { font-size: 11.5px; color: var(--doux); }
.recap .lignes-cout { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; font-size: 14px; }
.recap .lignes-cout dt, .recap .lignes-cout dd { padding: 10px 0; border-top: 1px solid var(--ligne); margin: 0; }
.recap .lignes-cout dt { color: var(--doux); padding-right: 12px; }
.recap .lignes-cout dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; word-break: normal; white-space: nowrap; }
.lignes-cout dd small { display: block; color: var(--doux); font-weight: 500; font-size: 11.5px; }
.recap .lignes-cout .fort { color: var(--texte); font-weight: 700; }
.recap .lignes-cout .net { color: var(--ok); font-weight: 750; font-size: 16px; }
.note-gratuit { font-size: 13px; color: var(--doux); text-align: center; }
.note-gratuit:empty { display: none; }

/* langue */
.barre-langue { justify-content: flex-end; min-height: 36px; margin-bottom: -28px; position: relative; z-index: 1; }
.langue-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--police); letter-spacing: .04em; color: var(--texte); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--ligne); border-radius: 99px; padding: 6px 12px 6px 9px; cursor: pointer; backdrop-filter: blur(8px); transition: border-color .2s, background .2s; }
.langue-btn svg { width: 16px; height: 16px; color: var(--doux); }
.langue-btn:hover { border-color: var(--accent); }
.langue-btn:hover svg { color: var(--accent); }
.ligne.avec-valeur { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.ligne-titre { display: inline-flex; align-items: center; gap: 10px; }
.ligne-titre svg { width: 18px; height: 18px; color: var(--doux); }
.valeur { display: inline-flex; align-items: center; gap: 4px; color: var(--doux); font-size: 14px; }
.valeur svg { width: 16px; height: 16px; }
.liste-langues { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; }
.choix-langue { font: inherit; color: var(--texte); background: transparent; border: 0; border-bottom: 1px solid var(--ligne); padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; text-align: left; transition: background .15s; }
.choix-langue:last-child { border-bottom: 0; }
.choix-langue:hover { background: var(--surface-2); }
.langue-noms { display: flex; flex-direction: column; gap: 1px; }
.langue-noms b { font-weight: 600; font-size: 16px; }
.langue-noms small { color: var(--doux); font-size: 12.5px; }
.langue-noms small:empty { display: none; }
.langue-coche { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ligne); transition: background .2s, border-color .2s; }
.langue-coche svg { width: 14px; height: 14px; stroke-width: 2.6; color: var(--accent-texte); opacity: 0; transition: opacity .2s; }
.choix-langue[aria-checked="true"] .langue-coche { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.choix-langue[aria-checked="true"] .langue-coche svg { opacity: 1; }
.choix-langue[aria-checked="true"] b { color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--texte); color: var(--bg); padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: transform .3s, opacity .3s; z-index: 10; max-width: calc(100% - 32px); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .solde { font-size: 34px; }
  .mots { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
