/* git.devinckpaul.com — appli des dépôts de l'équipe (aucune dépendance) */
:root {
  --fond: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f5; --bord: #dfe3e8; --bord-fort: #c7cdd5;
  --texte: #1c2128; --gris: #65707d; --gris-clair: #9aa4af;
  --accent: #2563eb; --accent-fond: #e8efff; --ok: #1a7f37; --ok-fond: #e6f4ea; --attention: #9a6700; --attention-fond: #fff6db;
  --danger: #cf222e; --danger-fond: #ffebe9;
  --fond-code: #ffffff; --fond-gouttiere: #fafbfc; --texte-code: #1f2328; --curseur: #1f2328; --selection: rgba(37, 99, 235, .22);
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ombre: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --rayon: 8px;
  --kw: #cf222e; --ty: #8250df; --str: #0a3069; --com: #6e7781; --num: #0550ae; --pre: #953800; --fn: #6639ba; --h: #0550ae;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f1216; --surface: #161b22; --surface-2: #1c2129; --bord: #2a313b; --bord-fort: #3a424e;
    --texte: #e6edf3; --gris: #8b949e; --gris-clair: #6e7681;
    --accent: #4c8dff; --accent-fond: #15233f; --ok: #3fb950; --ok-fond: #12261a; --attention: #d29922; --attention-fond: #2a2210;
    --danger: #f85149; --danger-fond: #2d1416;
    --fond-code: #0d1117; --fond-gouttiere: #10151c; --texte-code: #e6edf3; --curseur: #e6edf3; --selection: rgba(76, 141, 255, .3);
    --ombre: 0 1px 2px rgba(0, 0, 0, .4);
    --kw: #ff7b72; --ty: #d2a8ff; --str: #a5d6ff; --com: #8b949e; --num: #79c0ff; --pre: #ffa657; --fn: #d2a8ff; --h: #79c0ff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* Bandeau « Tableau de bord » de la plateforme (http/Bandeau_Proprietaire) :
   l'appli a sa propre pastille de compte, et il décalerait l'écran plein. */
#pf-bandeau { display: none !important; }
body { font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif; background: var(--fond); color: var(--texte); }
#app { height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .commande { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 22px 0 8px; }
[hidden] { display: none !important; }
.demarrage, .chargement { color: var(--gris); padding: 24px; }
.erreur { color: var(--danger); padding: 16px; }
.vide { color: var(--gris); padding: 12px 14px; margin: 0; }
.aide { color: var(--gris); font-size: 12.5px; }
.centre { text-align: center; }

/* Boutons et champs */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bord-fort); background: var(--surface); color: var(--texte);
  padding: 6px 12px; border-radius: 6px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.principal { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.principal:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--bord)); }
.btn.danger:hover { background: var(--danger-fond); }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn.petit { padding: 3px 9px; font-size: 12.5px; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; }
.icone { background: none; border: 0; color: var(--gris); cursor: pointer; padding: 2px 5px; border-radius: 4px; font-size: 14px; line-height: 1; }
.icone:hover { background: var(--surface-2); color: var(--texte); }
.champ { width: 100%; border: 1px solid var(--bord-fort); background: var(--surface); color: var(--texte); border-radius: 6px; padding: 7px 10px; font: inherit; }
.champ:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.champ.petit { width: auto; padding: 4px 8px; }
.champ.jeton { font-family: var(--mono); font-size: 13px; }
textarea.champ { resize: vertical; }
.libelle { display: block; font-weight: 600; font-size: 13px; margin: 10px 0 4px; }
.libelle .champ { margin-top: 5px; font-weight: 400; }
.case { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 13px; }

/* Barre du haut */
.barre { height: 52px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--bord); }
.logo { font-weight: 700; font-size: 16px; color: var(--texte); display: flex; align-items: center; gap: 6px; }
.logo:hover { text-decoration: none; }
.logo-signe { color: var(--accent); font-size: 20px; }
.logo-site { color: var(--gris); font-weight: 500; }
.fil { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 14px; }
.fil .sep { color: var(--gris-clair); }
.fil span:last-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.barre-droite { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.direct { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gris); }
.point-direct { width: 8px; height: 8px; border-radius: 50%; background: var(--gris-clair); }
.point-direct.ouvert { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.point-direct.connexion, .point-direct.reconnexion { background: var(--attention); }
.zone-moi, .zone-menu { position: relative; }
.moi { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; padding: 3px 8px; border-radius: 20px; color: var(--texte); cursor: pointer; font: inherit; }
.moi:hover { background: var(--surface-2); }
.menu-moi, .menu-fichier { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14); min-width: 230px; padding: 6px; z-index: 30; display: flex; flex-direction: column; }
.menu-moi a, .menu-moi button, .menu-fichier a, .menu-fichier button { text-align: left; padding: 7px 10px; border-radius: 5px; color: var(--texte); background: none; border: 0; font: inherit; cursor: pointer; }
.menu-moi a:hover, .menu-moi button:hover, .menu-fichier a:hover, .menu-fichier button:hover { background: var(--surface-2); text-decoration: none; }
.menu-fichier .danger { color: var(--danger); }

/* Avatars et couleurs des comptes */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; flex: none; border: 2px solid var(--surface); }
.avatar.cliquable { cursor: pointer; }
.u0 { --c: #e5484d; } .u1 { --c: #f76b15; } .u2 { --c: #c99400; } .u3 { --c: #30a46c; } .u4 { --c: #12a594; } .u5 { --c: #0090ff; }
.u6 { --c: #3e63dd; } .u7 { --c: #8e4ec6; } .u8 { --c: #d6409f; } .u9 { --c: #a07553; } .u10 { --c: #5b5bd6; } .u11 { --c: #2f7d32; }

/* Pages */
#vue { flex: 1; min-height: 0; overflow: auto; }
.page { max-width: 1040px; margin: 0 auto; padding: 28px 24px 60px; }
.page.etroite { max-width: 820px; }
.entete-page { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.sous-titre { color: var(--gris); margin: 4px 0 14px; }
.liste-depots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.carte-depot { display: block; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; color: var(--texte); box-shadow: var(--ombre); }
.carte-depot:hover { border-color: var(--accent); text-decoration: none; }
.titre-depot { font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: center; color: var(--accent); }
.carte-depot .desc { margin: 6px 0 10px; color: var(--texte); }
.carte-depot .desc.vide { color: var(--gris-clair); padding: 0; }
.carte-depot .meta { color: var(--gris); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icone-depot { color: var(--gris); }
.vide-grand { text-align: center; padding: 56px 20px; color: var(--gris); }
.vide-grand h2 { color: var(--texte); }
.logo-grand { font-size: 46px; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.barre-outils { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; flex-wrap: wrap; }
.tableau { width: 100%; border-collapse: collapse; background: var(--surface); }
.tableau th, .tableau td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--bord); font-size: 13.5px; }
.tableau th { color: var(--gris); font-weight: 600; font-size: 12.5px; background: var(--surface-2); }
.tableau .actions { text-align: right; }
.formulaire { max-width: 460px; }
.formulaire .btn { margin-top: 14px; }
.etiquette { display: inline-block; font-size: 11px; color: var(--accent); background: var(--accent-fond); border-radius: 10px; padding: 1px 7px; margin-left: 8px; }
.ligne-copie { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.ligne-copie .commande { flex: 1; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 6px; padding: 7px 10px; overflow-x: auto; white-space: nowrap; }
.etapes li { margin: 6px 0; }

/* Connexion */
.connexion { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.carte-connexion { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 36px; max-width: 420px; text-align: center; box-shadow: var(--ombre); }
.carte-connexion .btn { margin: 14px 0 6px; }

/* Dépôt */
.depot { display: flex; flex-direction: column; height: 100%; }
.entete-depot { padding: 14px 20px 6px; background: var(--surface); }
.titre-ligne { display: flex; align-items: center; gap: 12px; }
.titre-ligne h1 { font-size: 20px; display: flex; gap: 8px; align-items: center; margin: 0; }
.branche { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 12px; padding: 1px 9px; color: var(--gris); }
.presence-entete { margin-left: auto; display: flex; }
.presence-entete .avatar { margin-left: -6px; width: 26px; height: 26px; font-size: 11px; }
.sous-ligne { margin-top: 4px; }
.desc-depot { color: var(--gris); cursor: pointer; font-size: 13.5px; }
.desc-depot.vide { color: var(--gris-clair); font-style: italic; }
.desc-depot:hover { color: var(--accent); }
.onglets { display: flex; gap: 2px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--bord); flex: none; overflow-x: auto; }
.onglet { padding: 10px 14px; color: var(--gris); border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; }
.onglet:hover { color: var(--texte); text-decoration: none; }
.onglet.actif { color: var(--texte); border-bottom-color: var(--accent); }
.badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; text-align: center; line-height: 18px; }
.corps-depot { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.gauche { border-right: 1px solid var(--bord); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.outils-arbre { display: flex; align-items: center; gap: 2px; padding: 8px 8px 6px 14px; border-bottom: 1px solid var(--bord); }
.titre-arbre { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); font-weight: 700; margin-right: auto; }
.arbre { flex: 1; overflow: auto; padding: 6px 0 20px; }
.noeud { display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px calc(10px + var(--prof, 0) * 14px); cursor: pointer; white-space: nowrap; font-size: 13.5px; min-height: 26px; }
.noeud:hover { background: var(--surface-2); }
.noeud.courant { background: var(--accent-fond); }
.noeud.conflit .nom-noeud { color: var(--danger); font-weight: 600; }
.chevron { width: 12px; color: var(--gris); font-size: 11px; flex: none; }
.icone-fichier { width: 18px; flex: none; font-size: 13px; }
.nom-noeud { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gens { display: flex; margin-left: 4px; }
.gens .avatar { width: 18px; height: 18px; font-size: 8px; margin-left: -5px; border-width: 1.5px; }
.st { font-family: var(--mono); font-size: 11px; font-weight: 700; margin-left: auto; padding: 0 4px; border-radius: 3px; flex: none; }
.st.sA { color: var(--ok); } .st.sM { color: var(--attention); } .st.sD { color: var(--danger); } .st.sR { color: var(--accent); }
.actions-noeud { display: none; margin-left: 4px; flex: none; }
.noeud:hover .actions-noeud { display: flex; }
.noeud:hover .st { margin-left: 4px; }
.noeud:hover .actions-noeud { margin-left: auto; }
.actions-noeud .icone { font-size: 12px; padding: 2px 4px; }
.vide-arbre { color: var(--gris); font-size: 13px; padding: 12px 16px; }
.supprimes { border-top: 1px dashed var(--bord); margin-top: 8px; padding-top: 6px; }
.titre-supprimes { font-size: 11px; color: var(--gris); padding: 2px 14px; text-transform: uppercase; letter-spacing: .05em; }
.noeud.supprime { cursor: default; color: var(--gris); text-decoration: line-through; }
section.droite { min-width: 0; overflow: auto; display: flex; flex-direction: column; }
.panneau { padding: 18px 22px 50px; max-width: 1100px; width: 100%; }
.panneau.etroit { max-width: 820px; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); margin-bottom: 16px; box-shadow: var(--ombre); overflow: hidden; }
.carte-tete { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--bord); font-weight: 600; font-size: 13.5px; flex-wrap: wrap; }
.carte-tete .aide { font-weight: 400; }
.outils-carte { margin-left: auto; display: flex; gap: 6px; }
.carte-corps { padding: 14px 18px; }
.carte-corps.centre { text-align: center; padding: 40px 20px; }
.ligne-dernier { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); margin-bottom: 14px; font-size: 13.5px; flex-wrap: wrap; }
.droite-ligne { margin-left: auto; color: var(--gris); font-size: 12.5px; }
.liste-fichiers { width: 100%; border-collapse: collapse; }
.liste-fichiers td { padding: 7px 14px; border-bottom: 1px solid var(--bord); font-size: 13.5px; }
.liste-fichiers tr:last-child td { border-bottom: 0; }
.liste-fichiers .taille { text-align: right; color: var(--gris); width: 90px; font-size: 12.5px; }
.liste-fichiers .st-cell { width: 30px; }
.bandeau { padding: 10px 14px; border-radius: var(--rayon); margin-bottom: 14px; font-size: 13.5px; }
.bandeau.attention { background: var(--attention-fond); border: 1px solid color-mix(in srgb, var(--attention) 35%, transparent); }
.bandeau p { margin: 6px 0 0; }
.bandeau .btn { margin-left: 8px; }
.avertissement { color: var(--attention); padding: 10px 14px; }
.apercu { max-width: 100%; max-height: 60vh; border-radius: 6px; background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.texte-brut { white-space: pre-wrap; margin: 0; }

/* Markdown */
.markdown { line-height: 1.6; }
.markdown h1, .markdown h2, .markdown h3 { border-bottom: 1px solid var(--bord); padding-bottom: 4px; }
.markdown h2 { font-size: 20px; margin-top: 4px; } .markdown h3 { font-size: 17px; }
.markdown pre { background: var(--surface-2); padding: 12px; border-radius: 6px; overflow: auto; }
.markdown pre code { background: none; padding: 0; }
.markdown blockquote { margin: 0; padding: 2px 14px; border-left: 3px solid var(--bord-fort); color: var(--gris); }
.markdown table { border-collapse: collapse; } .markdown th, .markdown td { border: 1px solid var(--bord); padding: 5px 10px; }

/* Modifications */
.liste-modifs .modif { border-bottom: 1px solid var(--bord); }
.liste-modifs .modif:last-child { border-bottom: 0; }
.ligne-modif { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.ligne-modif .st { margin-left: 0; }
.nom-modif { font-family: var(--mono); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-modif { color: var(--gris); font-size: 12px; }
.modif.conflit .nom-modif { color: var(--danger); }
.zone-diff { padding: 0 14px 12px; }
.form-commit { padding: 6px 16px 14px; }
.message { font-family: inherit; }
.ligne-commit { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ligne-commit .btn { margin-left: auto; }

/* Historique */
.liste-commits { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.jour { padding: 7px 14px; background: var(--surface-2); color: var(--gris); font-size: 12.5px; border-bottom: 1px solid var(--bord); }
.commit { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--bord); color: var(--texte); }
.commit:hover { background: var(--surface-2); text-decoration: none; }
.commit .avatar { width: 28px; height: 28px; font-size: 11px; }
.commit-texte { flex: 1; min-width: 0; }
.commit .sujet { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commit .meta { color: var(--gris); font-size: 12.5px; }
.commit .sha { color: var(--gris); }
.sujet-commit { margin: 0 0 6px; font-size: 18px; }
.message-commit { white-space: pre-wrap; margin: 6px 0 12px; color: var(--texte); font-family: inherit; font-size: 14px; }
.meta-commit { display: flex; align-items: center; gap: 6px; color: var(--gris); font-size: 13px; flex-wrap: wrap; }
.centre .btn { margin-top: 12px; }

/* Différences */
.diff-fichier { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); margin-bottom: 12px; overflow: hidden; }
.diff-tete { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--bord); cursor: pointer; font-size: 13px; position: sticky; top: 0; }
.diff-nom { font-family: var(--mono); font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff-compte { font-family: var(--mono); font-size: 12px; }
.plus { color: var(--ok); } .moins { color: var(--danger); }
.diff-lib { color: var(--gris); font-size: 12px; }
.pastille-statut { font-family: var(--mono); font-size: 11px; font-weight: 700; width: 18px; text-align: center; border-radius: 3px; color: #fff; }
.pastille-statut.sA { background: var(--ok); } .pastille-statut.sM { background: var(--attention); } .pastille-statut.sD { background: var(--danger); } .pastille-statut.sR { background: var(--accent); }
.diff-contenu.replie { display: none; }
.diff-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; line-height: 19px; }
.diff-table td { padding: 0 8px; vertical-align: top; }
.diff-table td.no { width: 1%; min-width: 44px; text-align: right; color: var(--gris-clair); user-select: none; white-space: nowrap; }
.diff-table td.code { white-space: pre-wrap; word-break: break-all; }
.diff-table .signe { display: inline-block; width: 14px; color: var(--gris); user-select: none; }
.diff-table tr.ajout { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.diff-table tr.retrait { background: color-mix(in srgb, var(--danger) 11%, transparent); }
.diff-table tr.diff-bloc td { background: var(--accent-fond); color: var(--gris); }
.diff-table tr.note td { color: var(--gris); font-style: italic; }

/* Vue d'un fichier */
.vue-fichier { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.tete-fichier { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--bord); background: var(--surface); flex: none; }
.chemin-fichier { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dossier-fichier { color: var(--gris); font-size: 12.5px; }
.outils-fichier { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.gens-fichier { display: flex; }
.gens-fichier .avatar { margin-left: -5px; }
.etat-fichier { font-size: 12px; color: var(--gris); display: inline-flex; align-items: center; gap: 6px; }
.etat-fichier::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gris-clair); }
.etat-fichier.ok::before { background: var(--ok); }
.etat-fichier.envoi::before { background: var(--accent); }
.etat-fichier.attente::before, .etat-fichier.hors::before { background: var(--attention); }
.bandeaux .bandeau { margin: 10px 14px 0; }
.corps-fichier { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.corps-fichier > .editeur { flex: 1; }
.pied-editeur { display: flex; gap: 18px; padding: 3px 14px; font-size: 11.5px; color: var(--gris); border-top: 1px solid var(--bord); background: var(--surface); flex: none; }
.carte-editeur .editeur { height: 70vh; }

/* Éditeur */
.editeur { display: flex; min-height: 0; background: var(--fond-code); font: 13px/20px var(--mono); font-variant-ligatures: none; }
.gouttiere { width: var(--gouttiere, 48px); flex: none; position: relative; overflow: hidden; background: var(--fond-gouttiere); border-right: 1px solid var(--bord); user-select: none; }
.gouttiere-interieur { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
.gouttiere-interieur > div { position: absolute; right: 10px; height: 20px; color: var(--gris-clair); font-size: 12px; }
.zone { position: relative; flex: 1; overflow: hidden; }
.calque { position: absolute; top: 0; left: 0; min-width: 100%; pointer-events: none; white-space: pre; tab-size: 4; -moz-tab-size: 4; color: var(--texte-code); will-change: transform; }
.calque .l { position: absolute; left: 12px; height: 20px; white-space: pre; }
.saisie { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; outline: none; resize: none; padding: 6px 12px 40px; font: inherit; line-height: 20px;
  font-variant-ligatures: none; white-space: pre; overflow: auto; tab-size: 4; -moz-tab-size: 4; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--curseur); }
.saisie::selection { background: var(--selection); -webkit-text-fill-color: transparent; }
.saisie[readonly] { caret-color: transparent; }
.calque .kw { color: var(--kw); } .calque .ty { color: var(--ty); } .calque .str { color: var(--str); } .calque .com { color: var(--com); font-style: italic; }
.calque .num { color: var(--num); } .calque .pre { color: var(--pre); } .calque .fn { color: var(--fn); } .calque .h { color: var(--h); font-weight: 700; }
.calque .sel { background: color-mix(in srgb, var(--c) 26%, transparent); }
.calque .sel.fin { display: inline-block; width: 6px; }
.curseur { position: relative; display: inline-block; width: 0; height: 20px; vertical-align: top; }
.curseur::before { content: ""; position: absolute; left: -1px; top: 1px; bottom: 1px; width: 2px; background: var(--c); border-radius: 1px; }
.curseur::after { content: ""; position: absolute; left: -3px; top: 0; width: 6px; height: 4px; background: var(--c); border-radius: 1px; }
.curseur .nom { position: absolute; left: -1px; bottom: 100%; font: 600 10.5px/15px system-ui, sans-serif; color: #fff; background: var(--c); padding: 0 5px; border-radius: 3px 3px 3px 0;
  white-space: nowrap; opacity: 0; transition: opacity .3s; z-index: 2; }
.curseur.recent .nom { opacity: 1; }

/* Messages et dialogues */
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: 420px; }
.toast { background: var(--texte); color: var(--surface); padding: 10px 14px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); font-size: 13.5px; transition: opacity .3s, transform .3s; }
.toast.ok { background: var(--ok); color: #fff; } .toast.erreur { background: var(--danger); color: #fff; }
.toast.sortie { opacity: 0; transform: translateY(8px); }
.fond-dialogue { position: fixed; inset: 0; background: rgba(15, 18, 22, .45); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 16px; }
.dialogue { background: var(--surface); border-radius: 12px; width: 100%; max-width: 460px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); padding: 20px 22px 16px; }
.dialogue.large { max-width: 620px; }
.dialogue h2 { margin: 0 0 10px; }
.corps-dialogue p { margin: 8px 0; }
.boutons-dialogue { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 760px) {
  .corps-depot { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .gauche { max-height: 34vh; border-right: 0; border-bottom: 1px solid var(--bord); }
  .lib-direct, .nom-moi, .logo-site { display: none; }
  .panneau { padding: 14px; }
}
