/* Lot 4 : Projets (arbre, fiche, tableau, kanban, calendrier) et la vue en carte. Maquettes : maquettes/app-ordinateur/melange
   (« n-projet »), experimentale (kanban, carte), app-telephone-1710 (27-mes-taches). Jetons du socle seulement (app.css : --esp-*,
   --r-*, --cible). Préfixes : pj- (projets), gl- (glisser), ct- (carte). Les mises en page suivent la PLACE de l'écran (`data-l`
   = s, m ou l, posé par js/projets/mise-en-page.js), pas la fenêtre : un tiroir ouvert change la place qui reste. */
:root {
  --pj-moyenne: #3E5C8A; --pj-st-c: #FFFFFF;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pj-moyenne: #8FA9D6; --pj-st-c: var(--prune); } }
:root[data-theme="dark"] { --pj-moyenne: #8FA9D6; --pj-st-c: var(--prune); }

/* ---------- Glisser (js/projets/glisser.js) ---------- */
.gl-fantome { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; margin: 0; background: var(--carte); border-radius: var(--r-4); box-shadow: var(--ombre), 0 0 0 1px var(--ligne); opacity: .95; will-change: transform; }
.gl-fantome.ligne, .gl-fantome .ligne { border-bottom: 0; }
.gl-source { opacity: .38; }
.gl-sur { background: var(--accent-voile) !important; box-shadow: inset 0 0 0 2px var(--accent) !important; }
body.gl-en-cours { user-select: none; -webkit-user-select: none; cursor: grabbing; }
[data-glisser] { touch-action: pan-y; -webkit-touch-callout: none; }

/* ---------- Écran Projets ---------- */
.pj-espace { display: block; }
.pj-gauche-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-3); margin: var(--esp-2) 0 var(--esp-3); }
.pj-titre-liste { font-size: 30px; }
.pj-gauche-actions { display: flex; align-items: center; gap: var(--esp-2); }
.pj-rond { width: var(--cible); height: var(--cible); border-radius: var(--r-rond); display: grid; place-items: center; flex: none; color: var(--accent-texte); background: var(--voile); transition: transform 160ms var(--ease-out), background var(--duree) ease; }
.pj-rond:active { transform: scale(.94); }
.pj-rond.rempli { background: var(--accent); color: var(--accent-contraste); }
.pj-arbre { display: grid; gap: var(--esp-1); padding-bottom: var(--esp-6); }
.pj-bloc { display: grid; gap: 0; }
.pj-bloc + .pj-bloc { margin-top: var(--esp-2); }
.pj-tete-dossier { display: flex; align-items: center; gap: var(--esp-1); }
.pj-dossier { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--esp-2); min-height: var(--cible); padding: 0 var(--esp-2); border-radius: var(--r-4); font-weight: 600; font-size: 15px; transition: background var(--duree) ease; }
.pj-dossier.simple { cursor: default; color: var(--texte-doux); font-weight: 500; }
.pj-dossier:active:not(.simple) { background: var(--accent-voile); }
.pj-chev { color: var(--texte-doux); transition: transform var(--duree) var(--ease-out); }
.pj-dossier[aria-expanded="true"] .pj-chev { transform: rotate(90deg); }
.pj-dossier .ic-s { color: var(--texte-doux); }
.pj-nb { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.pj-menu { width: var(--cible); height: var(--cible); display: grid; place-items: center; border-radius: var(--r-4); color: var(--texte-doux); opacity: 0; transition: opacity var(--duree) ease; }
.pj-tete-dossier:hover .pj-menu, .pj-tete-dossier:focus-within .pj-menu { opacity: 1; }
@media (hover: none) { .pj-menu { opacity: 1; } }
.pj-contenu { display: grid; gap: 2px; padding-left: var(--esp-4); }
.pj-groupe { position: relative; }
.pj-groupe > .pj-bascule { position: absolute; left: calc(-1 * (var(--esp-4) + var(--cible)) / 2); top: 0; width: var(--cible); height: var(--cible); display: grid; place-items: center; color: var(--texte-doux); }
.pj-bascule .ic { transition: transform var(--duree) var(--ease-out); }
.pj-bascule[aria-expanded="true"] .ic { transform: rotate(90deg); }
.pj-ligne { display: flex; align-items: center; gap: var(--esp-3); min-height: var(--cible); width: 100%; padding: 0 var(--esp-3); border-radius: var(--r-4); text-align: left; transition: background var(--duree) ease, transform 160ms var(--ease-out); }
.pj-ligne:active { transform: scale(.985); }
.pj-ligne.choisi { background: var(--accent-voile); }
.pj-ligne.choisi .pj-nom { font-weight: 600; }
.pj-glyphe { display: grid; place-items: center; color: var(--pj, var(--accent-texte)); flex: none; }
.pj-nom { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.pj-pc { font-size: 13px; color: var(--texte-doux); font-variant-numeric: tabular-nums; flex: none; }
.pj-retard { width: 8px; height: 8px; border-radius: var(--r-rond); background: var(--or-texte); flex: none; }
.pj-sous { display: grid; gap: 2px; margin: 2px 0 var(--esp-1) var(--esp-4); padding-left: var(--esp-2); border-left: 1.5px solid var(--ligne); }
.pj-ligne.sous { min-height: 40px; }
.pj-ligne.sous .pj-nom { font-size: 14px; }
.pj-plus { display: flex; align-items: center; gap: var(--esp-2); min-height: var(--cible); padding: 0 var(--esp-3); color: var(--accent-texte); font-weight: 600; font-size: 14px; border-radius: var(--r-4); }
.pj-vide { padding: var(--esp-2) var(--esp-3); }
.pj-droite { min-width: 0; }

/* Assez de place : l'arbre à gauche, le projet à droite (maquette melange). Fenêtre de bureau seulement. */
body.mode-bureau .contenu:has(> .pj-espace[data-l="l"]) { padding: 0; max-width: none; overflow: hidden; }
body.mode-bureau .pj-espace[data-l="l"] { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); }
body.mode-bureau .pj-espace[data-l="l"] .pj-gauche { overflow-y: auto; padding: var(--esp-4) var(--esp-4) var(--esp-6); border-right: 1px solid var(--ligne); }
body.mode-bureau .pj-espace[data-l="l"] .pj-droite { overflow-y: auto; padding: var(--esp-6) 40px var(--esp-8); }
.pj-espace[data-l="l"] .pj-titre-liste { font-family: "Aileron", system-ui, sans-serif; font-size: 15px; font-weight: 600; }
@media (max-width: 1023px) { .pj-espace[data-l="l"] .pj-droite { margin-top: var(--esp-6); } }

/* ---------- Fiche d'un projet ---------- */
.pj-fiche { display: block; min-width: 0; }
.pj-fiche-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--esp-4); margin-top: var(--esp-2); }
.pj-fiche-titre { flex: 1 1 18rem; min-width: 0; }
.pj-fiche-titre h1 { font-size: 34px; }
.pj-fiche-sous { margin-top: var(--esp-2); font-size: 15px; line-height: 1.4; }
.pj-fiche-sous b { color: var(--texte); font-weight: 600; }
.pj-fiche-actions { display: flex; align-items: center; gap: var(--esp-3); flex-wrap: wrap; }
.pj-barre { display: inline-flex; align-items: center; gap: var(--esp-2); font-size: 13px; color: var(--texte-doux); }
.pj-barre .avancement-barre { width: 120px; height: 6px; border-radius: 3px; }
.pj-barre .avancement-barre i { border-radius: 3px; }
.pj-onglets-ligne { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-3); flex-wrap: wrap; margin-top: var(--esp-4); border-bottom: 1px solid var(--ligne); }
.pj-onglets { display: flex; gap: var(--esp-1); overflow-x: auto; scrollbar-width: none; max-width: 100%; margin-bottom: -1px; }
.pj-onglets::-webkit-scrollbar { display: none; }
.pj-onglet { display: inline-flex; align-items: center; gap: var(--esp-2); min-height: var(--cible); padding: 0 var(--esp-2); font-size: 15px; font-weight: 600; color: var(--texte-doux); white-space: nowrap; border-bottom: 2px solid transparent; transition: color var(--duree) ease; }
.pj-onglet[aria-selected="true"] { color: var(--accent-texte); border-bottom-color: var(--accent); }
.pj-onglet-nb { font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--r-rond); background: var(--voile); color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.pj-vues { gap: var(--esp-1); padding: 3px; border-radius: var(--r-rond); background: var(--voile); margin: var(--esp-2) 0; }
.pj-vues .puce { min-height: 36px; padding: 0 var(--esp-3); gap: 6px; font-size: 13.5px; flex: none; }
.pj-fiche[data-l="s"] .pj-vues { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pj-fiche[data-l="s"] .pj-vues .puce { padding: 0 var(--esp-2); }
.pj-t-meta { display: inline-flex; align-items: center; gap: var(--esp-3); }
.pj-corps { padding-top: var(--esp-2); }
.pj-vide-t { padding: var(--esp-8) var(--esp-4); text-align: center; }
.pj-onglet-web { display: flex; gap: var(--esp-4); align-items: flex-start; padding: var(--esp-6) 0; }
.pj-onglet-web p { margin: var(--esp-1) 0 var(--esp-3); }
.pj-evt { display: flex; gap: var(--esp-3); align-items: center; padding: var(--esp-3) 0; border-bottom: 1px solid var(--ligne); }
.pj-evt:last-child { border-bottom: 0; }

/* ---------- Statuts, priorités, personnes ---------- */
.pj-st { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--esp-3); border-radius: var(--r-3); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--st, var(--texte-doux)); color: var(--st-c, var(--pj-st-c)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pj-st { background: var(--st-s, var(--st, var(--texte-doux))); color: var(--st-cs, var(--prune)); } }
:root[data-theme="dark"] .pj-st { background: var(--st-s, var(--st, var(--texte-doux))); color: var(--st-cs, var(--prune)); }
.pj-prio { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.pj-prio i { width: 9px; height: 9px; border-radius: var(--r-2); background: var(--p, var(--texte-doux)); flex: none; }
.pj-prio.p-urgente { --p: var(--erreur); } .pj-prio.p-haute { --p: var(--attention); } .pj-prio.p-moyenne { --p: var(--pj-moyenne); } .pj-prio.p-basse { --p: var(--texte-doux); }
.pj-prio.vide { display: none; }
.pj-qui { display: inline-flex; }
.pj-ini { width: 28px; height: 28px; border-radius: var(--r-rond); display: grid; place-items: center; background: var(--voile); color: var(--texte); font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--fond); }
.pj-ini + .pj-ini { margin-left: -8px; }
.pj-ech.retard, .c-ech.retard { color: var(--or-texte); font-weight: 600; }
.pj-case { width: 28px; height: 28px; border-radius: var(--r-3); border: 1.75px solid color-mix(in srgb, var(--texte-doux) 60%, transparent); display: grid; place-items: center; color: transparent; flex: none; position: relative; transition: background var(--duree) ease, border-color var(--duree) ease; }
.pj-case::after { content: ""; position: absolute; inset: -8px; } /* cible de 44 px sans agrandir le dessin */
.pj-case[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contraste); }
.pj-case:disabled { opacity: .5; }

/* ---------- Tableau ---------- */
.pj-t-entete, .pj-t { display: grid; grid-template-columns: minmax(0, 1fr) 84px 124px 112px 116px; align-items: center; column-gap: var(--esp-3); }
.pj-t-entete { font-size: 13px; color: var(--texte-doux); padding: var(--esp-3) 0 var(--esp-2); border-bottom: 1px solid var(--ligne); }
.pj-gr { margin-top: var(--esp-4); }
.pj-gt { display: flex; align-items: center; gap: var(--esp-2); min-height: var(--cible); width: 100%; text-align: left; font-size: 16px; }
.pj-gt strong { font-weight: 600; }
.pj-gt-chev { color: var(--texte-doux); transition: transform var(--duree) var(--ease-out); }
.pj-gt[aria-expanded="false"] .pj-gt-chev { transform: rotate(-90deg); }
.pj-t { min-height: 56px; border-bottom: 1px solid var(--ligne); padding: var(--esp-1) 0; }
.pj-t .c-tache { display: flex; align-items: center; gap: var(--esp-3); min-width: 0; }
.pj-t-titre { display: flex; align-items: center; gap: var(--esp-2); min-width: 0; min-height: var(--cible); flex: 1; text-align: left; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.pj-t.faite .pj-t-titre span:first-child, .pj-t-simple.faite .pj-t-titre { text-decoration: line-through; color: var(--texte-doux); }
.pj-t.niveau-1 .c-tache { padding-left: var(--esp-8); }
.pj-t.niveau-1 .pj-t-titre { font-size: 14px; color: var(--texte-doux); }
.pj-t-sous { font-size: 12.5px; }
.pj-t .c-ech { font-size: 15px; } .c-meta { display: none; }
.pj-fiche[data-l="s"] .pj-t-entete { display: none; }
.pj-fiche[data-l="s"] .pj-t { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tache statut" "meta meta"; row-gap: 0; padding: var(--esp-1) 0 var(--esp-2); }
.pj-fiche[data-l="s"] .c-tache { grid-area: tache; }
.pj-fiche[data-l="s"] .c-statut { grid-area: statut; }
.pj-fiche[data-l="s"] .c-qui, .pj-fiche[data-l="s"] .c-ech, .pj-fiche[data-l="s"] .c-prio { display: none; }
.pj-fiche[data-l="s"] .c-meta { grid-area: meta; display: flex; align-items: center; gap: var(--esp-3); padding-left: calc(28px + var(--esp-3)); font-size: 13.5px; color: var(--texte-doux); }
.pj-fiche[data-l="s"] .pj-t.niveau-1 .c-tache { padding-left: var(--esp-6); }

/* ---------- Kanban ---------- */
.pj-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--esp-4); overflow-x: auto; padding: var(--esp-2) 0 var(--esp-4); align-items: start; }
.pj-fiche[data-l="s"] .pj-kanban { grid-auto-columns: 84%; scroll-snap-type: x mandatory; scroll-padding-inline: 0; }
.pj-fiche[data-l="s"] .pj-col { scroll-snap-align: start; }
.pj-col { min-width: 0; border-radius: var(--r-5); transition: background var(--duree) ease; }
.pj-col-tete { display: flex; align-items: center; gap: var(--esp-2); font-size: 15px; font-weight: 600; padding: var(--esp-2) 0; }
.pj-col-point { width: 10px; height: 10px; border-radius: var(--r-2); background: var(--st, var(--texte-doux)); flex: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pj-col-point { background: var(--st-s, var(--st, var(--texte-doux))); } }
:root[data-theme="dark"] .pj-col-point { background: var(--st-s, var(--st, var(--texte-doux))); }
.pj-col-nb { font-weight: 500; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.pj-col-corps { display: grid; gap: var(--esp-2); min-height: 72px; align-content: start; padding: 0 0 var(--esp-2); }
.pj-carte { display: grid; gap: var(--esp-2); width: 100%; padding: var(--esp-3); border-radius: var(--r-4); background: var(--carte); box-shadow: inset 0 0 0 1px var(--ligne); text-align: left; transition: transform 160ms var(--ease-out); }
.pj-carte:active { transform: scale(.985); }
.pj-carte.faite .pj-carte-titre { text-decoration: line-through; color: var(--texte-doux); }
.pj-carte-projet { font-size: 12.5px; color: var(--accent-texte); font-weight: 600; }
.pj-carte-titre { font-size: 15px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.pj-carte-pied { display: flex; align-items: center; flex-wrap: wrap; gap: var(--esp-3); font-size: 13px; color: var(--texte-doux); }
.pj-carte-pied .pj-qui { margin-left: auto; }
.pj-carte-pied .pj-ini { width: 24px; height: 24px; font-size: 10px; }
.pj-ajouter { display: flex; align-items: center; justify-content: center; gap: var(--esp-2); min-height: var(--cible); border-radius: var(--r-4); border: 1.5px dashed var(--ligne); color: var(--texte-doux); font-size: 14px; }

/* ---------- Calendrier ---------- */
.pj-cal-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-3); margin: var(--esp-2) 0 var(--esp-3); }
.pj-cal-mois { font-size: 20px; font-weight: 600; }
.pj-cal-nav { display: flex; align-items: center; gap: var(--esp-2); }
.pj-cal-grille { border-radius: var(--r-4); overflow: hidden; box-shadow: inset 0 0 0 1px var(--ligne); }
.pj-cal-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pj-cal-semaine.jours { background: var(--voile); font-size: 12.5px; color: var(--texte-doux); text-align: center; padding: var(--esp-2) 0; }
.pj-jour { position: relative; min-height: 104px; padding: var(--esp-1); border-top: 1px solid var(--ligne); border-left: 1px solid var(--ligne); display: grid; grid-template-rows: auto 1fr; gap: 2px; align-content: start; }
.pj-jour:nth-child(7n+1) { border-left: 0; }
.pj-jour.hors { background: color-mix(in srgb, var(--voile) 50%, transparent); }
.pj-jour.hors .pj-num { color: var(--texte-doux); opacity: .6; }
.pj-jour.choisi { box-shadow: inset 0 0 0 2px var(--accent); }
.pj-num { justify-self: end; min-width: 28px; height: 28px; border-radius: var(--r-rond); display: grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.pj-jour.auj .pj-num { background: var(--accent); color: var(--accent-contraste); font-weight: 700; }
.pj-chips { display: grid; gap: 2px; min-width: 0; }
.pj-chip { display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 22px; padding: 0 6px; border-radius: var(--r-3); background: var(--accent-voile); color: var(--accent-texte); font-size: 12.5px; text-align: left; font-weight: 600; }
.pj-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-chip.faite { text-decoration: line-through; opacity: .6; }
.pj-chip.retard { background: var(--or-voile); color: var(--or-texte); }
.pj-chip.evt { background: var(--voile); color: var(--texte); font-weight: 500; }
.pj-plus-chips { font-size: 12px; color: var(--texte-doux); text-align: left; padding: 0 6px; min-height: 20px; }
.pj-points { display: none; gap: 3px; justify-content: center; }
.pj-points i { width: 6px; height: 6px; border-radius: var(--r-rond); background: var(--accent); }
.pj-liste-jour { margin-top: var(--esp-4); display: none; }
.pj-liste-jour h3 { font-size: 16px; margin-bottom: var(--esp-2); }
.pj-ligne-evt { display: flex; align-items: center; gap: var(--esp-3); min-height: var(--cible); color: var(--texte-doux); }
.pj-t-simple { display: flex; align-items: center; gap: var(--esp-3); min-height: 52px; border-bottom: 1px solid var(--ligne); }
.pj-fiche[data-l="s"] .pj-jour { min-height: 52px; align-content: start; justify-items: center; }
.pj-fiche[data-l="s"] .pj-chips { display: none; }
.pj-fiche[data-l="s"] .pj-points { display: flex; }
.pj-fiche[data-l="s"] .pj-num { justify-self: center; min-width: 36px; height: 36px; font-size: 15px; }
.pj-fiche[data-l="s"] .pj-liste-jour { display: block; }

/* ---------- Feuilles de choix, conflit ---------- */
.pj-choix-liste { display: grid; gap: 2px; margin-top: var(--esp-2); }
.pj-choix { display: flex; align-items: center; gap: var(--esp-3); width: 100%; min-height: var(--cible); padding: 0 var(--esp-3); padding-left: calc(var(--esp-3) + var(--n, 0) * var(--esp-5)); border-radius: var(--r-4); text-align: left; font-weight: 600; transition: background var(--duree) ease; }
.pj-choix:active { background: var(--accent-voile); }
.pj-choix[aria-current="true"] { background: var(--accent-voile); color: var(--accent-texte); }
.pj-choix > span:first-of-type:not(.ic) { flex: 1; }
.pj-choix.gros { min-height: 60px; padding-block: var(--esp-2); }
.pj-choix.gros span { display: grid; gap: 2px; }
.pj-choix.gros small { font-weight: 400; font-size: 14px; }
.pj-conflit { margin-top: var(--esp-2); }
.pj-conflit-col, .dc-conflit-col { padding: var(--esp-3); border-radius: var(--r-4); background: var(--fond); box-shadow: inset 0 0 0 1px var(--ligne); }
.pj-conflit-col h4, .dc-conflit-col h4 { margin: 0 0 var(--esp-1); font-size: 13px; font-weight: 600; color: var(--texte-doux); }
.pj-conflit-col p, .dc-conflit-col p { margin: 0 0 var(--esp-1); font-size: 15px; overflow-wrap: anywhere; }
.pj-ligne-lue { display: flex; justify-content: space-between; gap: var(--esp-4); padding: var(--esp-2) 0; border-bottom: 1px solid var(--ligne); }
.pj-fiche-tache .segments { margin-bottom: var(--esp-2); }

/* ---------- La vue en carte (R5) ---------- */
.ct-espace-carte { display: block; }
.ct-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-3); margin: var(--esp-2) 0 var(--esp-3); flex-wrap: wrap; }
.ct-tete .segments { gap: 4px; padding: 3px; border-radius: var(--r-rond); background: var(--voile); }
.ct-tete .puce { min-height: 36px; gap: 6px; font-size: 14px; }
.ct-zone { position: relative; height: clamp(460px, calc(100dvh - 400px), 820px); border-radius: var(--r-6); background: radial-gradient(ellipse at 50% 52%, color-mix(in srgb, var(--accent) 7%, var(--fond)), var(--fond) 70%); overflow: hidden; }
.ct-traits { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-traits line { stroke: color-mix(in srgb, var(--texte-doux) 38%, transparent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ct-bulle { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; width: 132px; text-align: center; animation: ct-entree 360ms var(--ease-out) both; }
@keyframes ct-entree { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .ct-bulle { animation: none; } }
.ct-rond { position: relative; width: 72px; height: 72px; border-radius: var(--r-rond); display: grid; place-items: center; background: var(--carte); color: color-mix(in srgb, var(--ct, var(--accent-texte)) 55%, var(--texte)); box-shadow: 0 0 0 2px var(--ct, var(--ligne)), var(--ombre); font-weight: 700; font-size: 20px; transition: transform 160ms var(--ease-out); }
.ct-bulle:hover .ct-rond, .ct-bulle:focus-visible .ct-rond { transform: scale(1.06); }
.ct-bulle:active .ct-rond { transform: scale(.96); }
.ct-espace .ct-rond { background: var(--ct, var(--accent)); color: #fff; box-shadow: 0 0 0 4px var(--fond), 0 0 0 5.5px var(--ct, var(--accent)); }
.ct-sym img { width: 40px; height: 40px; }
.ct-espace .ct-sym img { filter: brightness(0) invert(1); }
.ct-nb { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-rond); background: var(--prune); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--fond); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ct-nb { background: var(--pastel); color: var(--prune); } }
:root[data-theme="dark"] .ct-nb { background: var(--pastel); color: var(--prune); }
.ct-nom { font-size: 14.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.ct-sous { font-size: 13px; color: var(--texte-doux); }
.ct-centre .ct-rond { width: 88px; height: 88px; color: var(--texte); }
.ct-centre .ct-rond img { width: 52px; height: 52px; }
.ct-grand { width: 170px; }
.ct-grand .ct-rond { width: 112px; height: 112px; }
.ct-partie .ct-rond { width: 58px; height: 58px; }
.ct-projet { width: 104px; }
.ct-projet .ct-rond { width: 34px; height: 34px; }
.ct-projet.gros { width: 128px; } .ct-projet.gros .ct-rond { width: 64px; height: 64px; }
.ct-projet .ct-nom { font-size: 13px; }
.ct-point { width: 18px; height: 18px; border-radius: var(--r-rond); background: var(--ct, var(--accent)); box-shadow: 0 0 0 3px var(--fond), 0 0 0 4px var(--ct, var(--accent)); }
.ct-projet:not(.gros) .ct-rond, .ct-projet:not(.gros) .ct-point { align-self: center; }
.ct-projet:not(.gros) { gap: 6px; }
.ct-pc { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ct-etiquettes { position: absolute; display: grid; gap: 2px; width: 150px; transform: translateY(-50%); pointer-events: none; }
.ct-etiquettes.droite { margin-left: 84px; text-align: left; }
.ct-etiquettes.gauche { margin-left: -234px; text-align: right; }
.ct-etiquette { pointer-events: auto; min-height: 30px; padding: 0 var(--esp-2); font-size: 14px; color: var(--texte-doux); border-radius: var(--r-3); transition: background var(--duree) ease, color var(--duree) ease; }
.ct-etiquette:hover, .ct-etiquette:focus-visible { background: var(--accent-voile); color: var(--accent-texte); }
.ct-reste { position: absolute; left: 0; right: 0; bottom: var(--esp-3); text-align: center; }
