/* Lexalia — système de design, charte A · Marine (docs/identite/charte.md, mission M2).
   Jetons = charte §9, à l'identique (un test les compare). Composants = resources/views/components/.
   Mobile d'abord ; points de rupture 768 px et 1 024 px ; aucune largeur fixe ; polices : polices.css. */

/* ===== 1. Jetons (charte §9) ===== */
:root {
  /* Marque */
  --lx-encre: #0F2236;
  --lx-marine: #1D3A5C;
  --lx-marine-fonce: #142C47;
  --lx-bleu-pale: #E9EFF6;
  --lx-rouge: #D12F47;
  --lx-rouge-texte: #B42840;
  --lx-rose-pale: #FBEAED;
  --lx-recommande-fond: #F2F6FB;
  /* Neutres */
  --lx-fond: #F4F6F9;
  --lx-surface: #FFFFFF;
  --lx-surface-2: #F8FAFC;
  --lx-bord: #D9E0E8;
  --lx-bord-champ: #7F8FA2;
  --lx-texte: var(--lx-encre);
  --lx-texte-2: #56677A;
  --lx-absent: #A3ABB3;
  /* États */
  --lx-succes: #1D7A4C;      --lx-succes-fond: #E5F3EB;      --lx-succes-filet: #55B585;
  --lx-attention: #8F4E06;   --lx-attention-fond: #FDF1DF;   --lx-attention-filet: #E39A35;
  --lx-erreur: #B42318;      --lx-erreur-fond: #FCEAE8;      --lx-erreur-filet: #E06459;
  --lx-info: var(--lx-marine); --lx-info-fond: var(--lx-bleu-pale);
  --lx-simulation: #4B2E91;  --lx-simulation-fond: #F0EBFA;  --lx-simulation-filet: #8C6BD6;
  /* Typographie */
  --lx-police-titre: "Source Serif 4", Georgia, "Times New Roman", serif;
  --lx-police: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --lx-t-h1: 34px; --lx-t-h2: 22px; --lx-t-h3: 17px; --lx-t-prix: 30px;
  --lx-t-texte: 16px; --lx-t-petit: 14.5px; --lx-t-mini: 12.5px; --lx-t-intitule: 12px;
  /* Formes */
  --lx-rayon: 8px; --lx-rayon-carte: 12px; --lx-rayon-bouton: 6px;
  --lx-ombre: 0 1px 2px rgba(15, 34, 54, .05), 0 6px 18px rgba(15, 34, 54, .06);
  --lx-cible: 44px;
  --lx-s1: 4px; --lx-s2: 8px; --lx-s3: 12px; --lx-s4: 16px; --lx-s5: 20px; --lx-s6: 24px; --lx-s7: 32px; --lx-s8: 40px; --lx-s9: 56px;
  /* Dérivés (jamais une couleur nouvelle : seulement des jetons composés) */
  --lx-lateral-largeur: 252px;
  --lx-barre-hauteur: 57px;
  --lx-ombre-panneau: 0 20px 40px rgba(15, 34, 54, .18);
  --lx-h1-mobile: 28px; --lx-prix-mobile: 22px;
  color-scheme: light;
}

/* ===== 2. Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--lx-police); font-size: var(--lx-t-texte); line-height: 1.55; color: var(--lx-texte); background: var(--lx-fond); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--lx-police-titre); font-weight: 600; letter-spacing: -0.012em; color: var(--lx-texte); margin: 0; text-wrap: balance; }
h1 { font-size: var(--lx-h1-mobile); line-height: 1.12; }
h2 { font-size: var(--lx-t-h2); line-height: 1.2; }
h3 { font-size: var(--lx-t-h3); line-height: 1.3; }
h4 { margin: var(--lx-s2) 0 0; font: 700 15px/1.3 var(--lx-police); color: var(--lx-texte); }
p { margin: 0; }
p + p { margin-top: var(--lx-s3); }
a { color: var(--lx-marine); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--lx-marine); outline-offset: 2px; }
.lx-visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lx-intitule { font-family: var(--lx-police); font-size: var(--lx-t-intitule); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--lx-texte-2); }
.lx-num { font-variant-numeric: tabular-nums; }
.lx-texte-2 { color: var(--lx-texte-2); font-size: var(--lx-t-petit); }
.lx-centre { text-align: center; }
.lx-espace-haut { margin-top: var(--lx-s5); }
.lx-pile { display: grid; gap: var(--lx-s4); }
.lx-pile--serree { gap: var(--lx-s2); }
.lx-rangee { display: flex; gap: var(--lx-s3); flex-wrap: wrap; align-items: center; }
.lx-rangee--entre { justify-content: space-between; }
.lx-icone { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.lx-icone--s { width: 16px; height: 16px; }
.lx-icone--l { width: 28px; height: 28px; }
.lx-logo { display: inline-block; width: 118px; height: auto; vertical-align: middle; }
.lx-logo img { display: block; width: 100%; height: auto; }

/* ===== 3. Boutons ===== */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--lx-s2); min-height: var(--lx-cible); padding: var(--lx-s2) 18px; border-radius: var(--lx-rayon-bouton); border: 1px solid transparent; font: 600 15px/1.2 var(--lx-police); text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.lx-btn--primaire { background: var(--lx-marine); color: var(--lx-surface); }
.lx-btn--primaire:hover { background: var(--lx-marine-fonce); }
.lx-btn--secondaire { background: var(--lx-surface); color: var(--lx-marine); border-color: var(--lx-bord-champ); }
.lx-btn--secondaire:hover { border-color: var(--lx-marine); }
.lx-btn--discret { background: transparent; color: var(--lx-texte); border-color: var(--lx-bord); }
.lx-btn--discret:hover { border-color: var(--lx-bord-champ); }
.lx-btn--danger { background: var(--lx-surface); color: var(--lx-erreur); border-color: var(--lx-erreur-filet); }
.lx-btn--danger:hover { background: var(--lx-erreur-fond); }
.lx-btn--lien { background: none; border: none; color: var(--lx-marine); text-decoration: underline; padding: 0 var(--lx-s2); min-height: 0; font-weight: 500; }
.lx-btn--bloc { width: 100%; }
.lx-btn[aria-disabled="true"], .lx-btn:disabled { opacity: .5; cursor: not-allowed; }
.lx-btn .lx-compteur-discret { margin: 0; }
.lx-lien-action { display: inline-flex; align-items: center; gap: var(--lx-s1); font-weight: 600; color: var(--lx-marine); text-decoration: none; min-height: 32px; }
.lx-lien-action:hover { text-decoration: underline; }

/* ===== 4. Info-bulles (souris et clavier) ===== */
[data-lx-bulle] { position: relative; }
[data-lx-bulle]:hover::after, [data-lx-bulle]:focus-visible::after, [data-lx-bulle].is-ouverte::after { content: attr(data-lx-bulle); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--lx-encre); color: var(--lx-surface); font: 500 13px/1.35 var(--lx-police); padding: 7px 10px; border-radius: var(--lx-rayon-bouton); white-space: normal; width: max-content; max-width: 240px; z-index: 30; text-align: left; letter-spacing: 0; text-transform: none; }

/* ===== 5. États : étiquette (icône + libellé), badge, pastille ===== */
.lx-etiquette { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--lx-police); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.lx-etiquette--succes { background: var(--lx-succes-fond); color: var(--lx-succes); }
.lx-etiquette--attention { background: var(--lx-attention-fond); color: var(--lx-attention); }
.lx-etiquette--erreur { background: var(--lx-erreur-fond); color: var(--lx-erreur); }
.lx-etiquette--info { background: var(--lx-info-fond); color: var(--lx-info); }
.lx-etiquette--nouveau { background: var(--lx-marine); color: var(--lx-surface); }
.lx-etiquette--marque { background: var(--lx-rose-pale); color: var(--lx-rouge-texte); }
.lx-etiquette--neutre { background: var(--lx-surface-2); color: var(--lx-texte-2); border: 1px solid var(--lx-bord); }
.lx-badge { display: inline-block; font: 700 11.5px/1 var(--lx-police); letter-spacing: .04em; text-transform: uppercase; background: var(--lx-rouge); color: var(--lx-surface); padding: 5px 9px; border-radius: 999px; }
.lx-badge--fantome { visibility: hidden; }
.lx-badge--neutre { background: var(--lx-bleu-pale); color: var(--lx-marine); }
.lx-pastille { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 0 0 1px var(--lx-bord); cursor: help; }
.lx-pastille--verte { background: var(--lx-succes-filet); }
.lx-pastille--orange { background: var(--lx-attention-filet); }
.lx-pastille--rouge { background: var(--lx-erreur-filet); }
.lx-pastille--grise { background: var(--lx-bord); }

/* ===== 6. Bandeaux, flash, échéances ===== */
.lx-bandeau { display: flex; gap: var(--lx-s3); align-items: flex-start; padding: var(--lx-s3) var(--lx-s4); border-radius: var(--lx-rayon); border: 1px solid transparent; font-size: var(--lx-t-petit); }
.lx-bandeau .lx-icone { margin-top: 1px; }
.lx-bandeau__corps { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lx-bandeau__titre { font-weight: 700; }
.lx-bandeau__actions { display: flex; gap: var(--lx-s2); flex-wrap: wrap; margin-top: var(--lx-s2); }
.lx-bandeau--info { background: var(--lx-info-fond); color: var(--lx-info); }
.lx-bandeau--succes { background: var(--lx-succes-fond); color: var(--lx-succes); border-color: var(--lx-succes-filet); }
.lx-bandeau--attention { background: var(--lx-attention-fond); color: var(--lx-attention); border-color: var(--lx-attention-filet); }
.lx-bandeau--erreur { background: var(--lx-erreur-fond); color: var(--lx-erreur); border-color: var(--lx-erreur-filet); }
.lx-bandeau--simulation { background: var(--lx-simulation-fond); color: var(--lx-simulation); border-color: var(--lx-simulation-filet); border-style: dashed; }
.lx-bandeau__etiquette { display: inline-block; font: 700 11.5px/1 var(--lx-police); letter-spacing: .08em; text-transform: uppercase; background: var(--lx-simulation); color: var(--lx-surface); padding: 5px 8px; border-radius: 4px; flex: none; }
.lx-flash { display: grid; gap: var(--lx-s2); margin-bottom: var(--lx-s4); }
.lx-echeances { display: grid; gap: 10px; }
.lx-echeance { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--lx-rayon); text-decoration: none; border: 1px solid; border-left-width: 5px; }
.lx-echeance--vert { background: var(--lx-succes-fond); border-color: var(--lx-succes-filet); color: var(--lx-succes); }
.lx-echeance--orange { background: var(--lx-attention-fond); border-color: var(--lx-attention-filet); color: var(--lx-attention); }
.lx-echeance--rouge { background: var(--lx-erreur-fond); border-color: var(--lx-erreur-filet); color: var(--lx-erreur); }
.lx-echeance__texte { flex: 1; min-width: 0; display: grid; gap: 2px; color: var(--lx-texte); }
.lx-echeance__texte strong { font-weight: 700; }
.lx-echeance__texte span { font-size: var(--lx-t-petit); color: var(--lx-texte-2); }
.lx-echeance time { font-weight: 700; white-space: nowrap; }

/* ===== 7. Verrou : grisé, jamais masqué (CLAUDE.md §5.8) ===== */
.lx-verrou { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--lx-s1); max-width: 100%; }
.lx-verrou > .lx-btn, .lx-verrou > .lx-puce { opacity: .55; cursor: not-allowed; border-style: dashed; }
.lx-verrou__detail { font-size: var(--lx-t-mini); color: var(--lx-texte-2); line-height: 1.4; }
.lx-verrou__upgrade { display: inline-flex; align-items: center; gap: var(--lx-s1); font-weight: 700; font-size: var(--lx-t-petit); color: var(--lx-marine); min-height: 32px; }

/* ===== 8. Cartes, grilles, sections, titres de page ===== */
.lx-carte { background: var(--lx-surface); border: 1px solid var(--lx-bord); border-radius: var(--lx-rayon-carte); box-shadow: var(--lx-ombre); }
.lx-carte--remplie { padding: 18px 20px; }
.lx-carte__titre { margin-bottom: var(--lx-s3); }
.lx-grille { display: grid; gap: var(--lx-s4); grid-template-columns: minmax(0, 1fr); }
.lx-section { display: grid; gap: var(--lx-s3); }
.lx-section-tete { display: flex; justify-content: space-between; align-items: baseline; gap: var(--lx-s3); margin-bottom: var(--lx-s3); flex-wrap: wrap; }
.lx-section-tete a { font-size: var(--lx-t-petit); font-weight: 600; color: var(--lx-marine); text-decoration: none; }
.lx-compteur-discret { font-family: var(--lx-police); font-size: 13px; color: var(--lx-texte-2); font-weight: 500; margin-left: var(--lx-s2); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.lx-titre-page { display: flex; justify-content: space-between; align-items: flex-start; flex-direction: column; gap: var(--lx-s4); }
.lx-titre-page .lx-intitule { display: block; margin-bottom: 6px; }
.lx-titre-page__sous { color: var(--lx-texte-2); font-size: var(--lx-t-petit); margin-top: var(--lx-s1); }
.lx-plan { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lx-plan__nom { color: var(--lx-texte-2); font-weight: 500; }
.lx-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 13px/1 var(--lx-police); background: var(--lx-bleu-pale); color: var(--lx-marine); flex: none; }
.lx-avatar--marine { background: var(--lx-marine); color: var(--lx-surface); }
.lx-avatar--l { width: 40px; height: 40px; }

/* ===== 9. Formulaires ===== */
.lx-form { display: grid; gap: var(--lx-s4); }
.lx-form__actions { display: flex; gap: var(--lx-s3); flex-wrap: wrap; align-items: center; margin-top: var(--lx-s1); }
.lx-champ { position: relative; display: grid; gap: 6px; min-width: 0; }
.lx-champ__label { display: block; font-size: 14px; font-weight: 600; }
.lx-champ__label small { font-weight: 400; color: var(--lx-texte-2); }
.lx-champ__aide { display: block; font-size: var(--lx-t-mini); color: var(--lx-texte-2); }
.lx-champ__erreur { display: flex; gap: 6px; align-items: center; font-size: var(--lx-t-petit); color: var(--lx-erreur); font-weight: 600; }
.lx-saisie, .lx-zone, .lx-select { width: 100%; min-height: var(--lx-cible); border: 1px solid var(--lx-bord-champ); border-radius: var(--lx-rayon); background: var(--lx-surface); font: inherit; color: var(--lx-texte); padding: 11px 13px; }
.lx-zone { min-height: 120px; resize: vertical; padding-bottom: 30px; }
.lx-zone--haute { min-height: 140px; }
.lx-saisie::placeholder, .lx-zone::placeholder { color: var(--lx-texte-2); opacity: .8; }
.lx-saisie:focus, .lx-zone:focus, .lx-select:focus { outline: 2px solid var(--lx-marine); outline-offset: -1px; border-color: var(--lx-marine); }
.lx-saisie[aria-invalid="true"], .lx-zone[aria-invalid="true"], .lx-select[aria-invalid="true"] { border-color: var(--lx-erreur); }
.lx-saisie:disabled, .lx-zone:disabled, .lx-select:disabled { background: var(--lx-surface-2); color: var(--lx-texte-2); cursor: not-allowed; }
.lx-select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lx-texte-2) 50%), linear-gradient(135deg, var(--lx-texte-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.lx-champ--zone { position: relative; }
.lx-compteur { position: absolute; right: 12px; bottom: 9px; font-size: 12px; color: var(--lx-texte-2); font-variant-numeric: tabular-nums; pointer-events: none; }
.lx-champ__aide ~ .lx-compteur, .lx-champ__erreur ~ .lx-compteur { bottom: auto; top: 0; }
.lx-compteur--attention { color: var(--lx-attention); font-weight: 600; }
.lx-compteur--limite { color: var(--lx-erreur); font-weight: 700; }
.lx-choix { display: grid; gap: var(--lx-s2); }
.lx-choix label { display: flex; gap: 10px; align-items: flex-start; min-height: var(--lx-cible); padding: var(--lx-s2) 0; cursor: pointer; }
.lx-choix input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lx-marine); flex: none; }
.lx-choix--ligne { display: flex; flex-wrap: wrap; gap: var(--lx-s2) var(--lx-s5); }
.lx-puces { display: flex; gap: 6px; flex-wrap: wrap; }
.lx-puce { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--lx-bord-champ); background: var(--lx-surface); border-radius: var(--lx-rayon-bouton); padding: 9px 12px; min-height: 40px; font: 500 14px/1 var(--lx-police); cursor: pointer; color: var(--lx-texte); }
.lx-puce[aria-pressed="true"] { border-color: var(--lx-marine); background: var(--lx-bleu-pale); color: var(--lx-marine); font-weight: 600; }
.lx-puce[aria-disabled="true"] { color: var(--lx-texte-2); border-style: dashed; cursor: not-allowed; opacity: .75; }
.lx-depot { border: 1.5px dashed var(--lx-bord-champ); border-radius: var(--lx-rayon); padding: 18px; display: flex; gap: 14px; align-items: center; background: var(--lx-surface-2); color: var(--lx-texte-2); font-size: var(--lx-t-petit); cursor: pointer; position: relative; }
.lx-depot b { color: var(--lx-texte); display: block; font-weight: 600; }
.lx-depot .lx-icone { width: 28px; height: 28px; color: var(--lx-marine); }
.lx-depot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.lx-depot:focus-within { outline: 2px solid var(--lx-marine); outline-offset: 2px; }
.lx-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lx-actions__groupe { display: flex; gap: 10px; flex-wrap: wrap; }
.lx-deux-colonnes { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lx-trois-colonnes { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ===== 10. Commutateur segmenté, onglets, fil d'Ariane / retour ===== */
.lx-commutateur { display: inline-flex; background: var(--lx-surface); border: 1px solid var(--lx-bord); border-radius: calc(var(--lx-rayon-bouton) + 4px); padding: 4px; gap: 4px; }
.lx-commutateur button, .lx-commutateur a { border: 0; background: transparent; cursor: pointer; padding: 9px 18px; min-height: 36px; border-radius: var(--lx-rayon-bouton); font: 600 14.5px/1 var(--lx-police); color: var(--lx-texte-2); display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.lx-commutateur [aria-pressed="true"], .lx-commutateur [aria-current] { background: var(--lx-marine); color: var(--lx-surface); }
.lx-commutateur--clair [aria-pressed="true"], .lx-commutateur--clair [aria-current] { background: var(--lx-bleu-pale); color: var(--lx-marine); }
.lx-cadeau { font: 600 12px/1 var(--lx-police); background: var(--lx-rose-pale); color: var(--lx-rouge-texte); padding: 4px 7px; border-radius: 999px; }
.lx-commutateur [aria-pressed="true"] .lx-cadeau { background: var(--lx-rouge); color: var(--lx-surface); }
.lx-onglets { display: flex; gap: var(--lx-s1); overflow-x: auto; border-bottom: 1px solid var(--lx-bord); scrollbar-width: thin; }
.lx-onglets [role="tab"] { border: 0; background: none; padding: 12px 14px; min-height: var(--lx-cible); font: 600 15px/1 var(--lx-police); color: var(--lx-texte-2); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.lx-onglets [role="tab"][aria-selected="true"] { color: var(--lx-texte); border-bottom-color: var(--lx-rouge); }
.lx-onglets__panneau[hidden] { display: none; }
.lx-onglets__panneau { padding-top: var(--lx-s4); }
.lx-retour { display: inline-flex; align-items: center; gap: 6px; color: var(--lx-texte-2); text-decoration: none; font-size: var(--lx-t-petit); font-weight: 500; min-height: 32px; }
.lx-retour:hover { color: var(--lx-texte); }
.lx-fil-ariane { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--lx-t-petit); color: var(--lx-texte-2); list-style: none; margin: 0; padding: 0; }
.lx-fil-ariane a { color: var(--lx-texte-2); text-decoration: none; }
.lx-fil-ariane li + li::before { content: "›"; margin-right: 6px; color: var(--lx-absent); }
.lx-fil-ariane [aria-current] { color: var(--lx-texte); font-weight: 600; }

/* ===== 11. Tableaux, comparatif, listes ===== */
.lx-tableau-conteneur { overflow-x: auto; background: var(--lx-surface); border: 1px solid var(--lx-bord); border-radius: var(--lx-rayon-carte); box-shadow: var(--lx-ombre); -webkit-overflow-scrolling: touch; }
.lx-tableau { width: 100%; border-collapse: separate; border-spacing: 0; }
.lx-tableau th, .lx-tableau td { padding: 12px 16px; border-bottom: 1px solid var(--lx-bord); text-align: left; vertical-align: middle; }
.lx-tableau thead th { font-size: var(--lx-t-intitule); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--lx-texte-2); background: var(--lx-surface-2); }
.lx-tableau tbody tr:last-child > * { border-bottom: 0; }
.lx-tableau td.lx-num, .lx-tableau th.lx-num { text-align: right; }
.lx-comparatif { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 520px; }
.lx-comparatif caption { position: absolute; left: -9999px; }
.lx-comparatif th, .lx-comparatif td { padding: 10px 10px; border-bottom: 1px solid var(--lx-bord); text-align: center; vertical-align: middle; }
.lx-comparatif thead th { vertical-align: top; padding-top: 20px; padding-bottom: 18px; }
.lx-comparatif th[scope="row"] { text-align: left; font-weight: 500; color: var(--lx-texte); width: 150px; min-width: 150px; font-size: 14px; position: sticky; left: 0; background: var(--lx-surface); z-index: 1; box-shadow: 1px 0 0 var(--lx-bord); }
.lx-comparatif tbody tr:last-child > * { border-bottom: 0; }
.lx-comparatif td { font-weight: 600; font-variant-numeric: tabular-nums; }
.lx-comparatif .lx-comparatif__reco { background: var(--lx-recommande-fond); }
.lx-comparatif thead .lx-comparatif__reco { box-shadow: inset 0 3px 0 var(--lx-marine); }
.lx-comparatif__section th { background: var(--lx-surface-2); text-align: left; padding-top: 16px; padding-bottom: 10px; }
.lx-comparatif__section th .lx-intitule { color: var(--lx-texte); }
.lx-comparatif__section td { background: var(--lx-surface-2); }
.lx-comparatif__section td.lx-comparatif__reco { background: var(--lx-recommande-fond); }
.lx-comparatif--domaines td { font-weight: 500; }
.lx-comparatif--domaines th[scope="row"] { font-weight: 400; }
.lx-comparatif--domaines thead th { padding-top: 14px; padding-bottom: 12px; font-family: var(--lx-police-titre); font-weight: 600; font-size: var(--lx-t-h3); }
.lx-offre { display: grid; gap: 6px; justify-items: center; }
.lx-offre__nom { font-family: var(--lx-police-titre); font-weight: 600; font-size: var(--lx-t-h2); letter-spacing: -0.012em; line-height: 1.1; }
.lx-offre__accroche { display: none; font-size: 13.5px; color: var(--lx-texte-2); font-weight: 400; max-width: 24ch; line-height: 1.4; min-height: calc(13.5px * 1.4 * 3); }
.lx-prix { display: flex; align-items: baseline; gap: 4px; justify-content: center; margin-top: 6px; }
.lx-prix b { font: 600 var(--lx-prix-mobile)/1 var(--lx-police-titre); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lx-prix small { font-size: 13px; color: var(--lx-texte-2); font-weight: 500; }
.lx-prix-note { font-size: var(--lx-t-mini); color: var(--lx-texte-2); font-weight: 500; min-height: 18px; }
.lx-oui { color: var(--lx-marine); display: inline-flex; }
.lx-non { color: var(--lx-absent); font-weight: 400; display: inline-block; min-width: 24px; cursor: help; }
.lx-cta-ligne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: var(--lx-s4) 0 0; }
.lx-cta-ligne > div { padding: 0; }
.lx-cta-ligne > div:first-child { display: none; }
.lx-cta-ligne .lx-btn { padding-left: 8px; padding-right: 8px; font-size: 14px; }
.lx-definitions { display: grid; gap: 10px; margin: 0; }
.lx-definitions div { display: grid; gap: 1px; }
.lx-definitions dt { font-size: var(--lx-t-mini); color: var(--lx-texte-2); }
.lx-definitions dd { margin: 0; font-weight: 600; font-size: var(--lx-t-petit); }
.lx-liste-docs { display: grid; gap: 4px; }
.lx-liste-docs a { display: flex; align-items: center; gap: 10px; padding: 8px 0; min-height: 40px; text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--lx-bord); color: var(--lx-texte); }
.lx-liste-docs a:last-child { border-bottom: 0; }
.lx-liste-docs small { margin-left: auto; color: var(--lx-texte-2); white-space: nowrap; }
.lx-recent { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--lx-bord); padding-top: 6px; }
.lx-recent .lx-intitule { margin: 6px 0 4px; }
.lx-recent a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; min-height: var(--lx-cible); text-decoration: none; border-bottom: 1px solid var(--lx-bord); font-size: var(--lx-t-petit); color: var(--lx-texte); }
.lx-recent a:last-child { border-bottom: 0; }
.lx-recent a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lx-recent a small { color: var(--lx-texte-2); font-size: var(--lx-t-mini); white-space: nowrap; }
.lx-etat-vide { text-align: center; padding: var(--lx-s7) var(--lx-s5); color: var(--lx-texte-2); background: var(--lx-surface-2); border: 1px dashed var(--lx-bord-champ); border-radius: var(--lx-rayon-carte); display: grid; gap: var(--lx-s2); justify-items: center; }
.lx-etat-vide .lx-icone { width: 36px; height: 36px; color: var(--lx-absent); }
.lx-etat-vide h3 { color: var(--lx-texte); }
.lx-introuvable { text-align: center; padding: var(--lx-s8) var(--lx-s5); display: grid; gap: var(--lx-s3); justify-items: center; }

/* ===== 12. Vignettes (cas en cours), blocs de saisie ===== */
.lx-vignettes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lx-vignette { padding: 18px 20px; display: grid; gap: 10px; text-decoration: none; color: var(--lx-texte); min-width: 0; }
.lx-vignette:hover { border-color: var(--lx-bord-champ); }
.lx-vignette__haut { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.lx-vignette h3 { font-size: 18px; }
.lx-vignette p { font-size: var(--lx-t-petit); color: var(--lx-texte-2); }
.lx-vignette__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--lx-texte-2); border-top: 1px solid var(--lx-bord); padding-top: 10px; }
.lx-vignette__meta span { display: inline-flex; gap: 6px; align-items: center; }
.lx-ref { font: 600 var(--lx-t-mini)/1 var(--lx-police); color: var(--lx-texte-2); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lx-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.lx-bloc { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lx-bloc > * { min-width: 0; }
.lx-bloc__tete { display: grid; gap: 4px; }
.lx-bloc__tete p { font-size: var(--lx-t-petit); color: var(--lx-texte-2); }
.lx-bloc--grise { opacity: .55; }

/* ===== 13. Gabarit public ===== */
.lx-public { min-height: 100vh; display: flex; flex-direction: column; }
.lx-entete { display: flex; align-items: center; justify-content: space-between; gap: var(--lx-s4); padding: 12px 16px; background: var(--lx-surface); border-bottom: 1px solid var(--lx-bord); }
.lx-entete .lx-logo { width: 96px; }
.lx-entete nav { display: flex; align-items: center; gap: 6px; }
.lx-entete nav a:not(.lx-btn) { text-decoration: none; padding: 8px 6px; min-height: var(--lx-cible); display: inline-flex; align-items: center; border-radius: var(--lx-rayon-bouton); font-weight: 500; font-size: 14px; color: var(--lx-texte-2); }
.lx-entete nav a[aria-current="page"] { color: var(--lx-texte); font-weight: 600; box-shadow: inset 0 -2px 0 var(--lx-rouge); }
.lx-entete nav .lx-btn { margin-left: 8px; min-height: 38px; font-size: 14px; padding: 0 12px; }
.lx-entete nav .lx-btn span { display: none; }
.lx-public main { flex: 1; }
.lx-page { padding: 30px 16px 0; max-width: 1120px; margin: 0 auto; width: 100%; }
.lx-page--etroite { max-width: 720px; }
.lx-hero { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: 28px; }
.lx-hero p { color: var(--lx-texte-2); font-size: 15.5px; max-width: 56ch; }
.lx-domaines { margin-top: var(--lx-s9); }
.lx-domaines header { text-align: center; display: grid; gap: 10px; justify-items: center; margin-bottom: 20px; }
.lx-domaines header p { color: var(--lx-texte-2); max-width: 70ch; font-size: 15px; }
.lx-legal { max-width: 78ch; margin: 28px auto 0; text-align: center; color: var(--lx-texte-2); font-size: 13px; }
.lx-pied { margin-top: var(--lx-s9); padding: 18px 16px; border-top: 1px solid var(--lx-bord); background: var(--lx-surface); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--lx-texte-2); font-size: 13.5px; }
.lx-pied nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lx-pied a { text-decoration: none; color: var(--lx-texte-2); min-height: 32px; display: inline-flex; align-items: center; }
.lx-pied a:hover { color: var(--lx-texte); }

/* ===== 14. Connexion (carte centrée) ===== */
.lx-boite-centree { max-width: 440px; margin: 0 auto; padding: var(--lx-s6) var(--lx-s4) 48px; width: 100%; }
.lx-boite-centree .lx-logo { display: block; width: 140px; margin: var(--lx-s4) auto var(--lx-s6); }
.lx-boite-centree .lx-carte { padding: 24px 20px; display: grid; gap: var(--lx-s4); }
.lx-boite-centree h1 { font-size: 26px; }

/* ===== 15. Gabarit espace (client, partenaire) ===== */
.lx-espace { position: relative; min-height: 100vh; }
.lx-barre { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--lx-surface); border-bottom: 1px solid var(--lx-bord); height: var(--lx-barre-hauteur); position: sticky; top: 0; z-index: 45; }
.lx-barre .lx-logo { width: 96px; }
.lx-barre button { border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--lx-police); cursor: pointer; padding: 8px; min-height: var(--lx-cible); min-width: var(--lx-cible); justify-content: center; border-radius: var(--lx-rayon-bouton); }
.lx-espace__corps { display: grid; grid-template-columns: minmax(0, 1fr); }
.lx-lateral { display: none; background: var(--lx-surface); color: var(--lx-texte); border-right: 1px solid var(--lx-bord); padding: 22px 14px; flex-direction: column; gap: 22px; }
.lx-lateral.is-ouvert { display: flex; position: absolute; left: 0; right: 0; top: var(--lx-barre-hauteur); z-index: 40; border-right: 0; border-bottom: 1px solid var(--lx-bord); box-shadow: var(--lx-ombre-panneau); }
.lx-lateral > .lx-logo { display: none; width: 118px; margin: 0 10px 6px; }
.lx-nav { display: grid; gap: 2px; }
.lx-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: var(--lx-cible); border-radius: var(--lx-rayon); text-decoration: none; color: var(--lx-texte-2); font-weight: 500; font-size: 15px; position: relative; }
.lx-nav a:hover { color: var(--lx-texte); }
.lx-nav a[aria-current="page"] { background: var(--lx-bleu-pale); color: var(--lx-marine); font-weight: 600; }
.lx-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lx-rouge); }
.lx-lateral__pied { margin-top: auto; border-top: 1px solid var(--lx-bord); padding: 16px 10px 0; display: grid; gap: 10px; font-size: 14px; }
.lx-lateral__qui { display: flex; gap: 10px; align-items: center; }
.lx-lateral__qui small { display: block; color: var(--lx-texte-2); font-size: var(--lx-t-mini); }
.lx-lateral__sortie { display: flex; gap: 10px; align-items: center; color: var(--lx-texte-2); text-decoration: none; background: none; border: 0; padding: 6px 0; min-height: 40px; cursor: pointer; font: 500 14px/1 var(--lx-police); }
.lx-lateral__sortie:hover { color: var(--lx-texte); }
.lx-principal { padding: 22px 16px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; max-width: 1120px; width: 100%; }
.lx-principal > * { min-width: 0; }

/* ===== 16. Dossier : fil, messages, attente, colonne droite ===== */
.lx-tete-cas { display: grid; gap: 8px; }
.lx-tete-cas__ligne { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.lx-en-cours { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--lx-rayon); background: var(--lx-bleu-pale); color: var(--lx-marine); font-weight: 500; }
.lx-en-cours b { font-weight: 700; }
.lx-cas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.lx-fil { display: grid; gap: 18px; }
.lx-fil > * { min-width: 0; }
.lx-message { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lx-message > .lx-avatar { display: none; }
.lx-message__corps { padding: 18px 20px; display: grid; gap: 12px; min-width: 0; }
.lx-message__corps > * { min-width: 0; }
.lx-message--client .lx-message__corps { background: var(--lx-surface-2); }
.lx-message--conseiller .lx-message__corps { border-color: var(--lx-bord-champ); }
.lx-message__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--lx-texte-2); }
.lx-message__meta b { color: var(--lx-texte); font-weight: 600; }
.lx-message__texte { display: grid; gap: 10px; max-width: 68ch; }
.lx-message__texte p { line-height: 1.62; margin: 0; }
.lx-signature { border-top: 1px solid var(--lx-bord); padding-top: 12px; display: grid; gap: 0; }
.lx-signature b { font-family: var(--lx-police-titre); font-weight: 600; font-size: var(--lx-t-h3); }
.lx-signature span { font-size: 13.5px; color: var(--lx-texte-2); }
.lx-pieces { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-piece { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; min-height: 40px; border: 1px solid var(--lx-bord); border-radius: var(--lx-rayon); background: var(--lx-surface); font-size: 13.5px; text-decoration: none; font-weight: 500; color: var(--lx-texte); }
.lx-piece small { color: var(--lx-texte-2); font-weight: 400; }
.lx-attente { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px dashed var(--lx-bord-champ); border-radius: var(--lx-rayon); color: var(--lx-texte-2); font-size: var(--lx-t-petit); }
.lx-points { display: inline-flex; gap: 4px; }
.lx-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--lx-rouge); opacity: .35; animation: lx-point 1.2s infinite; }
.lx-points i:nth-child(2) { animation-delay: .2s; } .lx-points i:nth-child(3) { animation-delay: .4s; }
@keyframes lx-point { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lx-points i { animation: none; opacity: .7; } }
.lx-reponse { padding: 18px 20px; display: grid; gap: 12px; }
.lx-colonne-droite { display: grid; gap: 16px; }
.lx-colonne-droite .lx-carte { padding: 18px 20px; }
.lx-colonne-droite h3 { margin-bottom: 10px; }
.lx-cloture { font-size: 13.5px; color: var(--lx-texte-2); display: grid; gap: 6px; }
.lx-cloture a { color: var(--lx-texte-2); font-weight: 600; }

/* ===== 17. Modale ===== */
.lx-modale { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(15, 34, 54, .45); }
.lx-modale[hidden] { display: none; }
.lx-modale__boite { background: var(--lx-surface); border-radius: var(--lx-rayon-carte) var(--lx-rayon-carte) 0 0; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: var(--lx-s5) var(--lx-s5) var(--lx-s6); display: grid; gap: var(--lx-s4); box-shadow: var(--lx-ombre-panneau); }
.lx-modale__tete { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--lx-s3); }
.lx-modale__fermer { border: 0; background: none; cursor: pointer; min-width: var(--lx-cible); min-height: var(--lx-cible); display: inline-grid; place-items: center; border-radius: var(--lx-rayon-bouton); color: var(--lx-texte-2); }
.lx-modale__actions { display: flex; gap: var(--lx-s3); justify-content: flex-end; flex-wrap: wrap; }

/* ===== 18. Charte (page de démonstration, lab) ===== */
.lx-nuancier { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--lx-s3); }
.lx-nuance { display: grid; gap: 6px; font-size: 13px; }
.lx-nuance i { display: block; height: 56px; border-radius: var(--lx-rayon); border: 1px solid var(--lx-bord); }
.lx-nuance code { font: 12.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--lx-texte-2); }
.lx-demo { display: grid; gap: var(--lx-s4); padding: 22px; }
.lx-demo__ligne { display: flex; gap: var(--lx-s3); flex-wrap: wrap; align-items: center; }
.lx-demo__cadre-mobile { width: 390px; max-width: 100%; border: 1px solid var(--lx-bord); border-radius: var(--lx-rayon-carte); overflow: hidden; }

/* ===== 19. Tablette et ordinateur ===== */
@media (min-width: 768px) {
  h1 { font-size: var(--lx-t-h1); }
  .lx-titre-page { flex-direction: row; align-items: flex-end; }
  .lx-prix b { font-size: var(--lx-t-prix); }
  .lx-offre__accroche { display: block; }
  .lx-comparatif { min-width: 640px; }
  .lx-comparatif th, .lx-comparatif td { padding: 12px 16px; }
  .lx-comparatif th[scope="row"] { width: 31%; min-width: 0; font-size: inherit; box-shadow: none; }
  .lx-cta-ligne { grid-template-columns: 31% repeat(3, 1fr); gap: 0; }
  .lx-cta-ligne > div { padding: 0 12px; }
  .lx-cta-ligne > div:first-child { display: block; }
  .lx-cta-ligne .lx-btn { padding-left: 18px; padding-right: 18px; font-size: 15px; }
  .lx-entete { padding: 14px 32px; }
  .lx-entete .lx-logo { width: 118px; }
  .lx-entete nav a:not(.lx-btn) { padding: 9px 12px; font-size: inherit; }
  .lx-entete nav .lx-btn span { display: inline; }
  .lx-page { padding: 48px 32px 0; }
  .lx-hero p { font-size: 17px; }
  .lx-pied { padding: 22px 32px; }
  .lx-boite-centree { padding-top: 48px; }
  .lx-boite-centree .lx-carte { padding: 32px 28px; }
  .lx-vignettes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-deux-colonnes { grid-template-columns: 1fr 160px; }
  .lx-trois-colonnes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lx-principal { padding: 32px 40px 56px; gap: 26px; }
  .lx-message { grid-template-columns: 40px minmax(0, 1fr); }
  .lx-message > .lx-avatar { display: inline-grid; }
  .lx-attente, .lx-reponse { margin-left: 54px; }
  .lx-modale { align-items: center; padding: var(--lx-s5); }
  .lx-modale__boite { border-radius: var(--lx-rayon-carte); }
  .lx-grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lx-boite-centree { max-width: 480px; }
  .lx-barre { display: none; }
  .lx-espace__corps { grid-template-columns: var(--lx-lateral-largeur) minmax(0, 1fr); min-height: 100vh; }
  .lx-lateral { display: flex; position: static; box-shadow: none; border-bottom: 0; }
  .lx-lateral > .lx-logo { display: block; }
  .lx-cas { grid-template-columns: minmax(0, 1fr) 320px; }
  .lx-colonne-droite { position: sticky; top: 16px; }
}
