/* Test informatique Groupe Duclos — feuille de style unique. */
:root {
  --marine: #153E74;
  --marine-fonce: #0E2C55;
  --marine-clair: #EAF0F9;
  --corail: #E83258;
  --corail-2: #EB5758;
  --encre: #1C2533;
  --texte-2: #4A5568;
  --gris: #7C879A;
  --trait: #DCE2EA;
  --fond: #F2F4F8;
  --blanc: #FFFFFF;
  --ombre: 0 10px 30px rgba(16, 24, 40, .08);
  --police: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--fond); color: var(--encre); font-family: var(--police); font-size: 15px; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.cache { display: none !important; }
noscript { display: block; padding: 40px; text-align: center; }

/* ---------- Icônes ---------- */
.ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-petit { width: 12px; height: 12px; }
.ic-grand { width: 48px; height: 48px; stroke-width: 1.2; }
.ic-vide { width: 16px; display: inline-block; flex-shrink: 0; }
.ic-fichier { flex-shrink: 0; display: block; }

/* ---------- Gabarit des écrans hors test ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.entete-simple { height: 64px; background: var(--blanc); border-bottom: 1px solid var(--trait); display: flex; align-items: center; padding: 0 28px; gap: 16px; flex-shrink: 0; }
.logo { height: 36px; width: auto; display: block; }
.logo-petit { height: 28px; }
.entete-titre { font-size: 16px; font-weight: 600; color: var(--marine); border-left: 1px solid var(--trait); padding-left: 16px; }
.principal-centre { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 28px 20px; }
.pied { text-align: center; font-size: 12px; color: var(--gris); padding: 14px; }
.carte { background: var(--blanc); border-radius: 14px; box-shadow: var(--ombre); padding: 32px 36px; width: 100%; max-width: 760px; }
.carte-etroite { max-width: 540px; }
.carte h1 { font-size: 26px; margin: 0 0 8px; color: var(--encre); letter-spacing: -.01em; }
.carte h2 { font-size: 17px; margin: 22px 0 10px; }
.carte p { line-height: 1.55; }
.sous-titre { color: var(--texte-2); margin: 0 0 24px; }
.pastille-etape { display: inline-block; background: var(--marine-clair); color: var(--marine); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.carte-attente { text-align: center; padding: 48px 36px; }
.roue { width: 38px; height: 38px; border: 4px solid var(--marine-clair); border-top-color: var(--marine); border-radius: 50%; margin: 0 auto 16px; animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Formulaires ---------- */
.champ { margin-bottom: 16px; }
.champ > label, .champ-lib { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.champ input[type=text], .champ input[type=password], .champ select { width: 100%; height: 42px; border: 1px solid #C9D2DE; border-radius: 8px; padding: 0 12px; font-size: 15px; background: var(--blanc); color: var(--encre); }
.champ input:focus, .champ select:focus { outline: none; border-color: var(--marine); box-shadow: 0 0 0 3px rgba(21, 62, 116, .15); }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.champ-aide { font-size: 12.5px; color: var(--gris); margin-top: 6px; }
.choix-type { display: flex; flex-direction: column; gap: 8px; }
.choix-type label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.choix-type input { width: 17px; height: 17px; accent-color: var(--marine); }
.msg-erreur { color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 8px 0; white-space: pre-line; }
.msg-erreur:empty { display: none; }
.msg-attention { color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 14px 0; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.actions-droite { justify-content: flex-end; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-size: 15px; font-weight: 600; padding: 10px 18px; border: 1px solid transparent; transition: background .15s, border-color .15s, opacity .15s; line-height: 1.2; }
.btn .ic { width: 18px; height: 18px; }
.btn-primaire { background: var(--marine); color: #fff; }
.btn-primaire:hover:not(:disabled) { background: var(--marine-fonce); }
.btn-primaire:disabled { opacity: .45; }
.btn-secondaire { background: var(--blanc); color: var(--marine); border-color: #C9D2DE; }
.btn-secondaire:hover:not(:disabled) { background: #F3F6FA; }
.btn-large { padding: 13px 26px; font-size: 16px; }
.btn-petit { padding: 7px 12px; font-size: 13.5px; }
.btn:focus-visible, .qcm-option:focus-visible, .rc-boite:focus-visible { outline: 3px solid rgba(21, 62, 116, .35); outline-offset: 2px; }
.attente { opacity: .55; pointer-events: none; }
.lien-discret { background: none; border: none; color: var(--gris); font-size: 13px; text-decoration: underline; padding: 4px; }

/* ---------- Écran de préparation et consignes ---------- */
.carte-consignes .intro { font-size: 16px; color: var(--texte-2); margin: 0 0 6px; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 4px; }
.chiffre { background: #F4F7FB; border-radius: 10px; padding: 10px 14px; text-align: center; }
.chiffre strong { display: block; font-size: 24px; color: var(--marine); }
.chiffre span { font-size: 13px; color: var(--texte-2); }
.regles { padding: 0; margin: 0; list-style: none; }
.regles li { position: relative; padding-left: 26px; margin-bottom: 10px; line-height: 1.5; }
.regles li::before { content: ""; position: absolute; left: 8px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--corail); }
.mention { font-size: 12.5px; color: var(--gris); line-height: 1.5; margin-top: 20px; border-top: 1px solid var(--trait); padding-top: 12px; }
.carte .mention h2 { font-size: 13px; margin: 0 0 4px; color: var(--texte-2); }
.carte .mention p { margin: 0 0 6px; line-height: 1.5; }
.bandeau-essai { background: #FFF7ED; color: #9A3412; border: 1px solid #FED7AA; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; margin-bottom: 14px; }

/* ---------- Fin et résultat sur place ---------- */
.carte-fin { text-align: center; }
.fin-icone { width: 72px; height: 72px; border-radius: 50%; background: #E7F5EC; color: #1E7B45; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.fin-icone .ic { width: 38px; height: 38px; stroke-width: 2.4; }
.fin-bas { margin-top: 34px; }
.voile { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.carte-modale { max-width: 420px; }
.carte-modale h2 { margin-top: 0; }
.carte-resultat { max-width: 720px; }
.res-qui { font-size: 15px; color: var(--texte-2); margin-bottom: 18px; }
.res-haut { display: flex; align-items: center; gap: 26px; margin-bottom: 16px; }
.res-score { display: flex; align-items: baseline; }
.res-nombre { font-size: 64px; font-weight: 700; color: var(--marine); line-height: 1; letter-spacing: -.02em; }
.res-sur { font-size: 20px; color: var(--gris); margin-left: 4px; }
.badge-niveau { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.n-insuffisant { background: #FDE8E8; color: #9B1C1C; }
.n-basique { background: #FFF1E0; color: #9A4A00; }
.n-operationnel { background: #E6F0FB; color: #153E74; }
.n-confirme { background: #E3F4EA; color: #166534; }
.res-niveau-txt { font-size: 14px; color: var(--texte-2); margin-top: 8px; max-width: 420px; line-height: 1.45; }
.res-attendu { border-radius: 8px; padding: 10px 14px; font-size: 14.5px; font-weight: 600; margin-bottom: 18px; }
.res-attendu.ok { background: #E3F4EA; color: #166534; }
.res-attendu.ko { background: #FDE8E8; color: #9B1C1C; }
.res-attendu.reserve { background: #FFF7ED; color: #9A3412; }
.res-plafond { font-size: 13px; color: #9A3412; margin-top: 6px; max-width: 460px; line-height: 1.45; }
.res-domaines { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.res-dom { display: grid; grid-template-columns: 190px 1fr 52px; align-items: center; gap: 12px; font-size: 14px; }
.res-dom-barre { height: 10px; background: #E8EDF4; border-radius: 999px; overflow: hidden; }
.res-dom-rempli { display: block; height: 100%; background: var(--marine); border-radius: 999px; }
.res-dom-pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.res-drapeaux { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 8px; padding: 10px 14px; color: #9A3412; font-size: 14px; }
.res-drapeaux ul { margin: 6px 0 0; padding-left: 18px; }
.res-meta, .res-note { font-size: 13.5px; color: var(--texte-2); }

/* ---------- Écran de test ---------- */
.app.ecran-test { height: 100vh; min-height: 640px; overflow: hidden; }
.barre-test { height: 56px; background: var(--blanc); border-bottom: 1px solid var(--trait); display: flex; align-items: center; padding: 0 20px; gap: 14px; flex-shrink: 0; }
.bt-titre { font-weight: 600; color: var(--marine); font-size: 15px; padding-left: 14px; border-left: 1px solid var(--trait); }
.bt-essai { font-size: 12px; font-weight: 700; color: #9A3412; background: #FFF7ED; border: 1px solid #FED7AA; padding: 2px 8px; border-radius: 999px; }
.bt-espace { flex: 1; }
.bt-compteur { color: var(--texte-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.bt-chrono { display: inline-flex; align-items: center; gap: 7px; background: var(--marine); color: #fff; padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 92px; justify-content: center; }
.bt-chrono .ic { width: 17px; height: 17px; }
.bt-chrono.alerte { background: #B45F06; }
.bt-chrono.danger { background: #C0262D; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .78; } }
.progression { height: 4px; background: #E3E8EF; flex-shrink: 0; }
.progression-remplie { height: 100%; width: 0; background: linear-gradient(90deg, var(--corail), var(--corail-2)); transition: width .35s ease; }
.zone-test { flex: 1; display: flex; gap: 18px; padding: 16px 18px; min-height: 0; }
.consigne { width: 350px; flex-shrink: 0; background: var(--blanc); border-radius: 12px; box-shadow: 0 2px 10px rgba(16, 24, 40, .06); padding: 20px 20px 16px; display: flex; flex-direction: column; overflow: auto; }
.pastille-domaine { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--marine-clair); color: var(--marine); }
.d-fichiers { background: #FFF4DB; color: #8A5A00; }
.d-messagerie { background: #E7F0FF; color: #1D4ED8; }
.d-securite { background: #FDE8EC; color: #B4233C; }
.d-texte { background: #E8EEFB; color: #2B5FB4; }
.d-tableur { background: #E3F4EA; color: #166534; }
.consigne-titre { font-size: 20px; margin: 12px 0 14px; line-height: 1.3; letter-spacing: -.01em; }
.etapes { counter-reset: e; list-style: none; padding: 0; margin: 0; }
.etapes > li { counter-increment: e; position: relative; padding-left: 36px; margin-bottom: 14px; line-height: 1.5; font-size: 15px; }
.etapes > li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--marine); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.etape-unique > li { padding-left: 0; color: var(--texte-2); }
.etape-unique > li::before { display: none; }
.sc { white-space: nowrap; }
.val { display: inline-block; white-space: nowrap; background: #EEF2F8; border: 1px solid #D5DDEA; border-radius: 4px; padding: 0 5px; font-family: var(--mono); font-size: 13px; color: #0E2C55; line-height: 1.6; }
.champs-mail { list-style: none; padding: 0; margin: 10px 0 0; }
.champs-mail li { display: flex; flex-direction: column; gap: 2px; margin-bottom: 9px; }
.cm-lib { font-size: 11.5px; color: var(--gris); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.consigne-pied { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.btn-valider { width: 100%; }
.btn-passer { background: none; border: none; color: var(--texte-2); text-decoration: underline; font-weight: 500; font-size: 14px; padding: 6px; }
.btn-passer:hover { color: var(--encre); background: none; }
.confirm-vide { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 6px; }
.confirm-vide p { margin: 0 0 8px; }
.confirm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.espace { flex: 1; min-width: 0; display: flex; overflow: auto; }
.espace-interne { width: 100%; height: 100%; display: flex; justify-content: center; align-items: stretch; position: relative; }
.annonce { position: fixed; top: 70px; left: 50%; transform: translate(-50%, -10px); background: #1F2937; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 200; }
.annonce.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1199px) {
  .app.ecran-test { height: auto; min-height: 100vh; overflow: visible; }
  .zone-test { flex-direction: column; }
  .consigne { width: auto; }
  .espace { min-height: 600px; }
}

/* ---------- Fenêtres simulées (commun) ---------- */
.fenetre { background: #fff; border: 1px solid #C9D1DC; border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); display: flex; flex-direction: column; overflow: hidden; position: relative; font-size: 13px; }
.fen-titre { height: 32px; background: #F3F4F6; display: flex; align-items: center; justify-content: space-between; padding-left: 10px; color: #333; border-bottom: 1px solid #E2E5EA; user-select: none; flex-shrink: 0; }
.fen-titre-g { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fen-titre-txt { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fen-btns { display: flex; height: 100%; }
.fen-btn { width: 42px; height: 100%; display: flex; align-items: center; justify-content: center; color: #555; font-size: 12px; pointer-events: none; border: none; background: none; }
.fen-btn.actif { pointer-events: auto; }
.fen-btn.actif:hover { background: #E81123; color: #fff; }
.fen-corps { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.selectionnable { user-select: text; }
.sim-toast { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); background: #1F2937; color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 13px; z-index: 80; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); transition: opacity .3s; white-space: nowrap; }
.sim-toast.sortie { opacity: 0; }

/* Menus contextuels */
.menu-ctx { position: absolute; z-index: 70; min-width: 230px; background: #fff; border: 1px solid #D4D7DD; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); padding: 4px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border: none; background: none; font-size: 13px; border-radius: 4px; text-align: left; color: #1F2937; }
.menu-item:hover:not(.desactive) { background: #EEF3FA; }
.menu-item.desactive { color: #A3A9B4; }
.menu-lib { flex: 1; }
.menu-racc { color: #8A8F98; font-size: 12px; }
.menu-sep { height: 1px; background: #E5E7EB; margin: 4px 6px; }

/* ---------- Saisie d'une fiche (q01) ---------- */
.sim-saisie { display: flex; gap: 28px; align-items: flex-start; justify-content: center; width: 100%; padding-top: 18px; flex-wrap: wrap; }
.fiche-papier { width: 400px; background: #FFFDF5; border: 1px solid #E8E1C8; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); padding: 18px 20px; transform: rotate(-1deg); user-select: none; -webkit-user-select: none; }
.fiche-papier-tete { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #8A7A4A; margin-bottom: 10px; border-bottom: 1px dashed #E0D6B5; padding-bottom: 8px; font-weight: 700; }
.fiche-ligne { display: flex; gap: 10px; padding: 7px 0; align-items: baseline; }
.fiche-lib { width: 86px; color: #7A6E50; font-size: 13px; flex-shrink: 0; }
.fiche-val { font-weight: 600; font-size: 16px; color: #222; white-space: nowrap; }
.fen-gestion { width: 480px; }
.gestion-bandeau { background: #F3F6FA; padding: 9px 14px; font-size: 13px; color: #4B5563; display: flex; gap: 6px; align-items: center; border-bottom: 1px solid #E5E7EB; }
.form-gestion { padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.fg-ligne { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; }
.fg-ligne label { font-size: 13.5px; color: #374151; }
.fg-ligne input, .suivi-ligne input { height: 34px; border: 1px solid #C9CED6; border-radius: 4px; padding: 0 9px; font-size: 14.5px; color: #111; }
.fg-ligne input:focus, .suivi-ligne input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.avis-collage { font-size: 12.5px; color: #B45F06; min-height: 18px; }

/* ---------- Copier-coller (q02) ---------- */
.sim-copier { display: flex; gap: 26px; align-items: flex-start; justify-content: center; width: 100%; padding-top: 18px; flex-wrap: wrap; }
.fen-mail-simple { width: 450px; }
.ms-entete { display: flex; gap: 11px; padding: 14px 16px; border-bottom: 1px solid #EEE; align-items: center; }
.ms-de { font-weight: 600; font-size: 13.5px; }
.ms-objet { font-size: 13px; color: #4B5563; }
.ms-corps { padding: 14px 18px; font-size: 14px; line-height: 1.6; }
.ms-corps p { margin: 0 0 8px; }
.num-suivi { font-family: var(--mono); font-size: 15px; background: #FFF8DB; padding: 1px 4px; border-radius: 3px; }
.ms-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--marine); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.ms-avatar.petit { width: 28px; height: 28px; font-size: 11px; }
.fen-suivi { width: 420px; }
.nav-barre { padding: 7px 10px; background: #F3F4F6; border-bottom: 1px solid #E5E7EB; }
.nav-url { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #D1D5DB; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: #374151; }
.suivi-page { padding: 22px 24px 26px; }
.suivi-page h2 { font-size: 18px; margin: 0 0 14px; color: var(--marine); }
.suivi-page label { display: block; font-size: 13px; margin-bottom: 6px; color: #374151; }
.suivi-ligne { display: flex; gap: 8px; }
.suivi-ligne input { flex: 1; height: 38px; border-radius: 6px; font-family: var(--mono); }
.btn-suivi { background: var(--marine); color: #fff; border: none; border-radius: 6px; padding: 0 16px; font-weight: 600; }
.suivi-info { font-size: 12.5px; color: #1E7B45; margin-top: 8px; min-height: 18px; }

/* ---------- Raccourcis (q03) ---------- */
.sim-raccourcis { display: flex; justify-content: center; align-items: flex-start; width: 100%; padding-top: 24px; }
.rc-carte { background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(16, 24, 40, .08); padding: 22px 26px; width: 660px; max-width: 100%; }
.rc-titre { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.rc-ligne { display: grid; grid-template-columns: 220px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F0F0F0; }
.rc-ligne:last-child { border-bottom: none; }
.rc-lib { font-size: 15px; font-weight: 600; }
.rc-boite { height: 44px; border: 2px dashed #C3CAD5; border-radius: 8px; background: #F6F8FB; display: flex; align-items: center; padding: 0 12px; cursor: pointer; outline: none; user-select: none; }
.rc-boite.actif { border-color: #2563EB; border-style: solid; background: #EFF5FF; }
.rc-boite.rempli { border-style: solid; background: #fff; }
.rc-ph { color: #8A94A6; font-size: 13px; }
kbd { display: inline-block; min-width: 28px; text-align: center; padding: 3px 9px; border: 1px solid #B8C0CC; border-bottom-width: 3px; border-radius: 6px; background: #FAFBFC; font-family: var(--police); font-size: 13.5px; font-weight: 600; color: #1F2937; }
.rc-plus { margin: 0 6px; color: #6B7280; }
.rc-effacer { border: none; background: none; color: #6B7280; font-size: 12.5px; text-decoration: underline; }

/* ---------- Questions à choix ---------- */
.sim-qcm { display: flex; justify-content: center; align-items: flex-start; width: 100%; padding-top: 24px; }
.qcm-carte { background: #fff; border-radius: 12px; box-shadow: 0 4px 18px rgba(16, 24, 40, .08); padding: 26px 30px; width: 700px; max-width: 100%; }
.qcm-question { font-size: 18px; font-weight: 600; line-height: 1.45; margin-bottom: 18px; color: var(--encre); }
.qcm-options { display: flex; flex-direction: column; gap: 10px; }
.qcm-option { display: flex; align-items: center; gap: 14px; text-align: left; padding: 13px 16px; border: 1.5px solid #D5DBE5; border-radius: 10px; background: #fff; font-size: 15px; color: var(--encre); transition: border-color .12s, background .12s, box-shadow .12s; }
.qcm-option:hover { border-color: #8FA9D6; background: #F7FAFF; }
.qcm-option.choisie { border-color: var(--marine); background: #EAF0F9; box-shadow: 0 0 0 3px rgba(21, 62, 116, .12); }
.qcm-option.mono .qcm-texte { font-family: var(--mono); font-size: 14.5px; overflow-wrap: anywhere; }
.qcm-lettre { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #B6C1D2; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #4B5563; flex-shrink: 0; }
.qcm-option.choisie .qcm-lettre { background: var(--marine); border-color: var(--marine); color: #fff; }
.sim-qcm-mail { display: flex; gap: 18px; width: 100%; height: 100%; align-items: stretch; }
.fen-mail-suspect { width: 45%; min-width: 360px; }
.fen-mail-suspect .fen-corps { overflow: auto; }
.qcm-carte-double { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; width: auto; }
.qcm-carte-double .qcm-question { font-size: 15px; margin-bottom: 8px; }
.qcm-carte-double .qcm-options { gap: 6px; }
.qcm-carte-double .qcm-option { padding: 7px 12px; font-size: 13.5px; gap: 10px; line-height: 1.3; }
.qcm-carte-double .qcm-lettre { width: 26px; height: 26px; font-size: 12px; }
.mq { padding: 16px 18px 34px; position: relative; min-height: 100%; }
.mq-objet { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.mq-entete { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.mq-avatar { background: #0F6CBD; }
.mq-de { font-size: 13px; line-height: 1.45; }
.mq-adresse { color: #6B7280; }
.mq-date { font-size: 12px; color: #6B7280; }
.mq-corps { font-size: 14px; line-height: 1.55; border-top: 1px solid #EEE; padding-top: 12px; }
.mq-corps p { margin: 0 0 8px; }
.mq-logo { display: inline-flex; background: #0F6CBD; color: #fff; font-weight: 700; border-radius: 6px; padding: 6px 10px; margin-bottom: 10px; font-size: 13px; }
.mq-centre { text-align: center; margin: 16px 0 !important; }
.mq-bouton { display: inline-block; background: #0F6CBD; color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 4px; font-weight: 600; }
.mq-sig { color: #374151; margin: 2px 0 !important; }
.mq-avis { font-size: 12px; color: #6B7280; text-align: center; min-height: 16px; margin-bottom: 6px; }
.mq-statut { position: absolute; left: 0; bottom: 0; background: #F1F3F4; border: 1px solid #DADCE0; font-size: 12px; padding: 3px 8px; color: #333; opacity: 0; transition: opacity .15s; border-top-right-radius: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-statut.visible { opacity: 1; }

/* ---------- Explorateur de fichiers ---------- */
.sim-explorateur { width: 100%; max-width: 1120px; height: 100%; max-height: 660px; }
.explorateur { position: relative; height: 100%; outline: none; }
.fen-explorateur { height: 100%; }
.ex-adresse { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid #E5E7EB; flex-shrink: 0; }
.ex-navbtn { width: 30px; height: 30px; border: none; background: none; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #374151; }
.ex-navbtn:hover:not(:disabled) { background: #EEF0F3; }
.ex-navbtn:disabled { color: #C0C4CC; }
.ex-fil { flex: 1; display: flex; align-items: center; gap: 2px; border: 1px solid #D1D5DB; border-radius: 4px; height: 30px; padding: 0 6px; overflow: hidden; background: #fff; min-width: 0; }
.ex-fil-pc { display: flex; color: #4B5563; margin-right: 2px; }
.ex-fil-seg { background: none; border: none; padding: 2px 6px; border-radius: 3px; font-size: 13px; color: #1F2937; white-space: nowrap; }
button.ex-fil-seg:hover { background: #E5F3FF; }
.ex-fil-sep { color: #9CA3AF; }
.ex-rech-boite { width: 220px; border: 1px solid #D1D5DB; border-radius: 4px; height: 30px; display: flex; align-items: center; padding: 0 8px; gap: 6px; color: #6B7280; flex-shrink: 0; }
.ex-recherche { border: none; outline: none; flex: 1; font-size: 13px; min-width: 0; }
.ex-cmd { display: flex; align-items: center; gap: 2px; padding: 5px 10px; border-bottom: 1px solid #E5E7EB; background: #FAFAFA; flex-shrink: 0; }
.ex-cmdbtn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; border: none; background: none; font-size: 13px; color: #1F2937; }
.ex-cmdbtn:hover:not(:disabled) { background: #EAEAEA; }
.ex-cmdbtn:disabled { opacity: .38; }
.ex-sep { width: 1px; height: 22px; background: #DDD; margin: 0 6px; }
.ex-milieu { flex: 1; display: flex; min-height: 0; }
.ex-nav { width: 180px; border-right: 1px solid #E5E7EB; padding: 8px 6px; overflow: auto; background: #FBFBFB; flex-shrink: 0; }
.ex-nav-titre { font-size: 11.5px; color: #6B7280; padding: 4px 8px 6px; font-weight: 600; }
.ex-nav-item { display: flex; width: 100%; align-items: center; gap: 9px; padding: 6px 8px; border: 1px solid transparent; background: none; border-radius: 4px; font-size: 13px; text-align: left; color: #1F2937; }
.ex-nav-item:hover { background: #EEF3FA; }
.ex-nav-item.actif { background: #DCE8F7; }
.ex-nav-sep { height: 1px; background: #E5E7EB; margin: 8px 6px; }
.ex-liste { flex: 1; overflow: auto; padding: 0 0 8px; user-select: none; -webkit-user-select: none; position: relative; background: #fff; }
.ex-entete, .ex-ligne { display: grid; grid-template-columns: minmax(230px, 3fr) minmax(120px, 140px) minmax(130px, 170px) 76px; gap: 8px; align-items: center; }
.ex-entete { font-size: 12px; color: #6B7280; padding: 6px 16px; border-bottom: 1px solid #EEE; position: sticky; top: 0; background: #fff; z-index: 1; }
.ex-ligne { padding: 3px 12px; font-size: 13px; border: 1px solid transparent; margin: 0 4px; border-radius: 3px; }
.ex-ligne:hover { background: #E5F3FF; }
.ex-ligne.sel { background: #CCE8FF; border-color: #99D1FF; }
.ex-ligne.coupe .ex-c-nom { opacity: .5; }
.ex-c-nom { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; min-width: 0; }
.ex-nom-txt { overflow: hidden; text-overflow: ellipsis; }
.ex-c-date, .ex-c-type, .ex-c-taille { color: #555; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-c-taille { text-align: right; }
.ex-entete .ex-c-date, .ex-entete .ex-c-type, .ex-entete .ex-c-taille { color: #6B7280; font-size: 12px; }
.cible, .ex-ligne.cible { background: #CCE8FF !important; outline: 2px solid #3B82F6; outline-offset: -2px; }
.ex-renommer { font: inherit; font-size: 13px; padding: 1px 4px; border: 1px solid #3B82F6; outline: none; width: 100%; max-width: 380px; background: #fff; }
.ex-vide { padding: 30px; text-align: center; color: #888; font-size: 13px; }
.ex-etat { height: 26px; font-size: 12px; color: #555; border-top: 1px solid #E5E7EB; padding: 0 12px; display: flex; align-items: center; white-space: pre; flex-shrink: 0; }
.ex-fantome { position: absolute; pointer-events: none; z-index: 50; background: rgba(255, 255, 255, .96); border: 1px solid #99D1FF; border-radius: 4px; padding: 4px 9px; font-size: 12.5px; display: flex; gap: 6px; align-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); white-space: nowrap; }
.ex-bulle { position: absolute; z-index: 40; background: #FFFBE6; border: 1px solid #E0C46C; padding: 6px 10px; font-size: 12.5px; max-width: 340px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.ex-voile, .dlg-voile { position: absolute; inset: 0; background: rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; z-index: 60; }
.ex-dialogue, .dlg-petit { width: 430px; max-width: 94%; background: #fff; border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); overflow: hidden; }
.ex-dlg-titre { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid #EEE; }
.ex-dlg-corps, .dlg-petit-corps { display: flex; gap: 12px; padding: 18px; font-size: 13.5px; align-items: flex-start; }
.ex-dlg-corps p, .dlg-petit-corps p { margin: 0; line-height: 1.5; }
.ex-dlg-ic { color: #D97706; }
.ex-dlg-ic .ic { width: 28px; height: 28px; }
.ex-dlg-btns, .dlg-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; background: #F7F7F7; }
.ex-dlg-btn, .dlg-btn { min-width: 92px; padding: 6px 14px; border: 1px solid #C5C5C5; background: #FDFDFD; border-radius: 4px; font-size: 13px; color: #1F2937; }
.ex-dlg-btn:hover, .dlg-btn:hover { background: #F0F0F0; }
.ex-dlg-btn.defaut, .dlg-btn.defaut { border-color: #2563EB; background: #2563EB; color: #fff; }
.ex-dlg-btn.defaut:hover, .dlg-btn.defaut:hover { background: #1D4ED8; }

/* Fenêtre « Ouvrir » */
.dlg-fenetre { width: min(840px, 94%); height: min(500px, 92%); background: #fff; border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #C9D1DC; }
.dlg-milieu { flex: 1; min-height: 0; }
.dlg-nav { width: 170px; }
.dlg-fil { flex: 1; display: flex; align-items: center; gap: 2px; border: 1px solid #D1D5DB; border-radius: 4px; height: 30px; padding: 0 6px; overflow: hidden; }
.dlg-bas { display: grid; grid-template-columns: auto 1fr 210px; gap: 8px 10px; align-items: center; padding: 10px 14px; border-top: 1px solid #E5E7EB; background: #F9FAFB; }
.dlg-lib { font-size: 13px; color: #374151; }
.dlg-nom, .dlg-type { border: 1px solid #C9CED6; border-radius: 4px; padding: 5px 8px; font-size: 13px; background: #fff; height: 30px; }
.dlg-erreur { grid-column: 1 / -1; color: #B91C1C; font-size: 12.5px; white-space: pre-line; }
.dlg-erreur:empty { display: none; }
.dlg-bas .dlg-btns { grid-column: 1 / -1; justify-self: end; background: none; padding: 0; }

/* ---------- Messagerie ---------- */
.sim-messagerie { width: 100%; max-width: 1180px; height: 100%; max-height: 680px; }
.messagerie { position: relative; height: 100%; }
.fen-messagerie { height: 100%; }
.mx-haut { height: 44px; background: #1F4E8C; color: #fff; display: flex; align-items: center; padding: 0 14px; gap: 18px; flex-shrink: 0; }
.mx-marque { font-weight: 600; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.mx-rech-boite { background: rgba(255, 255, 255, .95); border-radius: 4px; width: 320px; max-width: 40%; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: #555; }
.mx-recherche { border: none; outline: none; flex: 1; font-size: 13px; min-width: 0; background: none; }
.mx-milieu { flex: 1; display: flex; min-height: 0; }
.mx-dossiers { width: 208px; border-right: 1px solid #E5E7EB; padding: 12px 8px; background: #FAFBFC; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.mx-nouveau { display: flex; align-items: center; gap: 8px; justify-content: center; background: #2563EB; color: #fff; border: none; border-radius: 4px; padding: 8px 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.mx-nouveau:hover { background: #1D4ED8; }
.mx-dossier { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: none; background: none; border-radius: 4px; font-size: 13px; text-align: left; color: #1F2937; }
.mx-dossier:hover { background: #EEF3FA; }
.mx-dossier.actif { background: #DCE8F7; font-weight: 600; }
.mx-dossier-nom { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-compte { color: #2563EB; font-weight: 700; font-size: 12px; }
.mx-liste { width: 290px; border-right: 1px solid #E5E7EB; overflow: auto; background: #fff; flex-shrink: 0; }
.mx-liste-titre { font-size: 15px; font-weight: 600; padding: 12px 14px 9px; border-bottom: 1px solid #EEE; position: sticky; top: 0; background: #fff; }
.mx-item { padding: 9px 12px 9px 11px; border-bottom: 1px solid #F0F0F0; border-left: 3px solid transparent; outline: none; }
.mx-item:hover { background: #F3F6FA; }
.mx-item.actif { background: #DCE8F7; }
.mx-item.nonlu { border-left-color: #2563EB; }
.mx-item-l1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.mx-item-de { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-item.nonlu .mx-item-de { font-weight: 700; }
.mx-item-date { font-size: 12px; color: #666; white-space: nowrap; }
.mx-item-l2 { font-size: 13px; color: #1F2937; display: flex; gap: 4px; align-items: center; white-space: nowrap; overflow: hidden; }
.mx-item-l2 span { overflow: hidden; text-overflow: ellipsis; }
.mx-item.nonlu .mx-item-l2 { color: #1D4ED8; font-weight: 600; }
.mx-item-l3 { font-size: 12px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-vide { padding: 24px; color: #888; font-size: 13px; text-align: center; }
.mx-panneau { flex: 1; min-width: 0; overflow: auto; position: relative; background: #fff; }
.mx-rien { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #9CA3AF; gap: 6px; font-size: 13.5px; }
.mx-lect { padding: 18px 22px; }
.mx-lect-objet { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.mx-lect-entete { display: flex; gap: 12px; align-items: flex-start; }
.mx-lect-qui { flex: 1; font-size: 13px; line-height: 1.5; min-width: 0; }
.mx-lect-adr { color: #6B7280; }
.mx-lect-dest { color: #4B5563; overflow-wrap: anywhere; }
.mx-lect-lib { font-weight: 600; margin-right: 6px; }
.mx-lect-date { font-size: 12px; color: #6B7280; white-space: nowrap; }
.mx-actions { display: flex; gap: 6px; margin: 14px 0 6px; flex-wrap: wrap; }
.mx-act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #D1D5DB; background: #fff; border-radius: 4px; font-size: 13px; color: #1F2937; }
.mx-act:hover { background: #F3F4F6; }
.mx-pj { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mx-pj-puce { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #D1D5DB; border-radius: 6px; padding: 6px 8px 6px 10px; background: #FAFAFA; max-width: 340px; }
.mx-pj-txt { display: flex; flex-direction: column; min-width: 0; }
.mx-pj-nom { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-pj-taille { font-size: 11.5px; color: #6B7280; }
.mx-pj-suppr { border: none; background: none; color: #6B7280; padding: 3px; border-radius: 3px; display: flex; }
.mx-pj-suppr:hover { background: #E5E7EB; color: #111; }
.mx-pj-redac { margin: 8px 0 0; }
.mx-lect-corps { font-size: 14px; line-height: 1.55; margin-top: 14px; overflow-wrap: anywhere; }
.mx-redac { padding: 12px 16px; display: flex; flex-direction: column; min-height: 100%; }
.mx-redac-barre { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mx-envoyer { background: #2563EB; color: #fff; border: none; border-radius: 4px; padding: 7px 16px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; font-size: 13.5px; }
.mx-envoyer:hover { background: #1D4ED8; }
.mx-outil { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid transparent; background: none; border-radius: 4px; font-size: 13px; color: #1F2937; }
.mx-outil:hover { background: #F3F4F6; }
.mx-espace { flex: 1; }
.mx-champ { display: flex; align-items: center; border-bottom: 1px solid #E5E7EB; min-height: 38px; }
.mx-lib { width: 58px; font-size: 13px; color: #4B5563; flex-shrink: 0; }
.mx-input { flex: 1; border: none; outline: none; font-size: 14px; padding: 8px 4px; min-width: 0; color: #111; }
.mx-lien-cci { border: none; background: none; color: #2563EB; font-size: 13px; padding: 4px 8px; }
.mx-corps { flex: 1; min-height: 150px; border: none; outline: none; resize: none; font-size: 14px; line-height: 1.5; padding: 10px 4px; margin-top: 4px; color: #111; }
.mx-erreur { color: #B91C1C; font-size: 13px; background: #FEF2F2; border: 1px solid #FECACA; padding: 6px 10px; border-radius: 4px; margin-bottom: 6px; }
.mx-erreur:empty { display: none; }
.mx-suggestions { position: absolute; z-index: 65; background: #fff; border: 1px solid #D1D5DB; border-radius: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, .14); padding: 4px; }
.mx-sugg { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 4px; font-size: 13px; cursor: pointer; line-height: 1.3; }
.mx-sugg:hover, .mx-sugg.actif { background: #EEF3FA; }
.mx-sugg-adr { font-size: 12px; color: #6B7280; }

/* ---------- Traitement de texte ---------- */
.sim-texte, .sim-tableur { width: 100%; max-width: 1120px; height: 100%; max-height: 660px; }
.traitement-texte, .tableur { position: relative; height: 100%; }
.fen-texte, .fen-tableur { height: 100%; }
.tt-onglets { display: flex; gap: 2px; background: #2B5FB4; padding: 4px 8px 0; flex-shrink: 0; }
.tb-onglets { background: #1E7B45; }
.tt-onglet { color: rgba(255, 255, 255, .92); background: none; border: none; padding: 6px 13px 7px; font-size: 13px; border-radius: 4px 4px 0 0; }
.tt-onglet:hover:not(.actif) { background: rgba(255, 255, 255, .12); }
.tt-onglet.actif { background: #F8F9FA; color: #2B5FB4; font-weight: 600; }
.tb-onglets .tt-onglet.actif { color: #1E7B45; }
.tt-ruban, .tb-ruban { display: flex; background: #F8F9FA; border-bottom: 1px solid #DADCE0; padding: 6px 4px 4px; flex-shrink: 0; }
.tt-groupe { display: flex; flex-direction: column; justify-content: space-between; padding: 0 12px; border-right: 1px solid #E0E0E0; align-items: center; gap: 5px; }
.tt-ligne { display: flex; gap: 2px; align-items: center; }
.tt-ligne-haute { flex: 1; }
.tt-groupe-nom { font-size: 11px; color: #6B7280; }
.tt-btn { width: 32px; height: 28px; border: 1px solid transparent; background: none; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #1F2937; }
.tt-btn:hover { background: #E8EAED; }
.tt-btn.actif { background: #D2E3FC; border-color: #A8C7FA; }
.tt-btn .ic { width: 17px; height: 17px; }
.tt-btn-hist { width: 30px; }
.tt-select { height: 26px; border: 1px solid #C9CED6; border-radius: 3px; font-size: 12.5px; padding: 0 4px; background: #fff; color: #111; }
.tt-police { width: 146px; }
.tt-taille { width: 58px; }
.tt-fond { flex: 1; overflow: auto; background: #E9EBEE; padding: 18px 12px; display: flex; justify-content: center; align-items: flex-start; }
.doc-page { width: 640px; max-width: 100%; min-height: 430px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); padding: 42px 54px; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 11pt; line-height: 1.45; color: #111; outline: none; cursor: text; flex-shrink: 0; }
.doc-page p { margin: 0 0 10pt; min-height: 1em; }
.doc-page .doc-titre { font-size: 18pt; margin-bottom: 16pt; }
.tt-etat, .tb-etat { height: 24px; background: #F3F3F3; border-top: 1px solid #DDD; font-size: 11.5px; color: #555; display: flex; gap: 18px; padding: 0 12px; align-items: center; flex-shrink: 0; white-space: pre; }

/* ---------- Tableur ---------- */
.tb-rbtn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 12.5px; border: none; background: none; border-radius: 4px; color: #1F2937; }
.tb-rbtn:hover { background: #E8EAED; }
.tb-rbtn .ic { width: 17px; height: 17px; }
.tb-formule { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-bottom: 1px solid #DADCE0; background: #fff; flex-shrink: 0; }
.tb-nom { width: 86px; height: 26px; border: 1px solid #C9CED6; display: flex; align-items: center; padding: 0 6px; font-size: 12.5px; flex-shrink: 0; }
.tb-fx { font-style: italic; color: #6B7280; font-family: "Times New Roman", serif; padding: 0 8px; border-left: 1px solid #DDD; border-right: 1px solid #DDD; height: 24px; display: flex; align-items: center; font-size: 15px; }
.tb-barre { flex: 1; height: 26px; border: 1px solid #C9CED6; padding: 0 7px; font-size: 13px; outline: none; min-width: 0; color: #111; }
.tb-barre:focus { border-color: #1E7B45; }
.tb-grille-cont { flex: 1; overflow: auto; background: #fff; position: relative; }
.tb-grille { display: grid; position: relative; width: max-content; font-size: 13.5px; user-select: none; -webkit-user-select: none; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; }
.tb-coin, .tb-col, .tb-lig { background: #F3F4F6; color: #444; font-size: 12px; display: flex; align-items: center; justify-content: center; border-right: 1px solid #D6D9DE; border-bottom: 1px solid #D6D9DE; }
.tb-coin { background: #E9EBEE; }
.tb-col.sur, .tb-lig.sur { background: #D9E9DF; color: #1E7B45; font-weight: 700; }
.tb-cell { border-right: 1px solid #E2E4E8; border-bottom: 1px solid #E2E4E8; padding: 0 5px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; color: #111; }
.tb-cell.num { justify-content: flex-end; }
.tb-cell.err, .tb-cell.bool { justify-content: center; }
.tb-cell.gras { font-weight: 700; }
.tb-sel { position: absolute; border: 2px solid #1E7B45; pointer-events: none; z-index: 3; }
.tb-sel.multi { background: rgba(30, 123, 69, .08); }
.tb-actif { position: absolute; pointer-events: none; z-index: 2; }
.tb-poignee { position: absolute; width: 8px; height: 8px; background: #1E7B45; border: 1px solid #fff; z-index: 5; cursor: crosshair; }
.tb-marquee { position: absolute; border: 2px dashed #1E7B45; pointer-events: none; z-index: 4; }
.tb-apercu { position: absolute; border: 1.5px dashed #444; pointer-events: none; z-index: 4; }
.tb-refs { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.tb-ref { position: absolute; border: 2px solid; pointer-events: none; }
.tb-saisie { position: absolute; z-index: 6; height: 24px; border: none; outline: none; padding: 0 5px; font: inherit; background: transparent; color: transparent; caret-color: transparent; pointer-events: none; }
.tb-saisie.visible { background: #fff; color: #111; caret-color: auto; border: 2px solid #1E7B45; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); padding: 0 4px; pointer-events: auto; }
.tb-bulle { position: absolute; z-index: 7; background: #FFF4E5; border: 1px solid #F0B46B; padding: 6px 10px; font-size: 12.5px; max-width: 340px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); font-family: var(--police); }
.tb-feuilles { height: 28px; background: #F3F4F6; border-top: 1px solid #DADCE0; display: flex; align-items: stretch; padding-left: 40px; flex-shrink: 0; }
.tb-feuille { padding: 0 16px; display: flex; align-items: center; font-size: 12.5px; background: #fff; border-bottom: 2px solid #1E7B45; color: #1E7B45; font-weight: 600; }
.tb-feuille-plus { padding: 0 10px; color: #6B7280; display: flex; align-items: center; }
.tb-mode { min-width: 60px; }
.tb-circ { color: #B45F06; }
.tb-stats { font-variant-numeric: tabular-nums; }
