/* ═══ « Claude » dans l'Espace (20/11/2026) — l'application de conversation avec le Claude de jules ═══
   Comme l'appli de Claude : historique | conversation | ce qu'il fait (en blocs). Style 008 : noir franc, cartes arrondies,
   pilules blanches. Deux façons de l'avoir : plein écran, ou PAR-DESSUS l'Espace, transparente (molette = plus l'appli ou
   plus la conversation). */
#c8 { position: fixed; inset: 0; z-index: 110; display: none; --c8-v: 1; color: #f2f2f2;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; }
#c8.ouvert { display: grid; grid-template-columns: 250px minmax(340px, 1fr) minmax(300px, 34vw); grid-template-rows: 52px minmax(0, 1fr); }
#c8.plein { background: #000; }
#c8.dessus { background: rgba(0, 0, 0, calc(var(--c8-v) * .9)); -webkit-backdrop-filter: blur(calc(var(--c8-v) * 6px)); backdrop-filter: blur(calc(var(--c8-v) * 6px)); }
#c8.dessus > :not(.c8-haut) { opacity: calc(.38 + var(--c8-v) * .62); }
/* par-dessus et très transparent : les clics traversent, sauf sur ce qu'on doit toucher */
#c8.traverse { pointer-events: none; }
#c8.traverse .c8-prise, #c8.traverse .c8-haut, #c8.traverse .c8-saisie, #c8.traverse .c8-sessions, #c8.traverse button, #c8.traverse a, #c8.traverse input, #c8.traverse textarea { pointer-events: auto; }
#c8.sans-gauche { grid-template-columns: 0 minmax(340px, 1fr) minmax(300px, 34vw); }
#c8.sans-droite { grid-template-columns: 250px minmax(340px, 1fr) 0; }
#c8.sans-gauche.sans-droite { grid-template-columns: 0 1fr 0; }
#c8 button, #c8 input, #c8 textarea { font: inherit; color: inherit; }
#c8 .c8-bt { background: transparent; border: 1px solid #2a2b2f; border-radius: 999px; padding: 6px 13px; cursor: pointer; font-size: 12.5px; color: #e8e8e8; }
#c8 .c8-bt:hover { border-color: #6b6d72; }
#c8 .c8-bt.plein-bt, #c8 .c8-bt.on { background: #f2f2f2; color: #000; border-color: #f2f2f2; font-weight: 600; }

/* barre du haut */
.c8-haut { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .55); }
.c8-nom { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 300; letter-spacing: -.01em; }
.c8-nom svg { width: 22px; height: 22px; }
.c8-sous { color: #8b8d92; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.c8-vide { flex: 1; }
.c8-relais { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #8b8d92; }
.c8-relais i { width: 8px; height: 8px; border-radius: 50%; background: #5a5c61; display: inline-block; }
.c8-relais.on i { background: #46c37b; box-shadow: 0 0 8px rgba(70, 195, 123, .7); }
.c8-relais.occupe i { background: #4cc2ff; animation: c8-pouls 1.2s ease-in-out infinite; }
@keyframes c8-pouls { 50% { opacity: .35; } }
.c8-molette { display: none; align-items: center; gap: 8px; font-size: 11.5px; color: #b5b7bc; }
#c8.dessus .c8-molette { display: inline-flex; }
.c8-molette input { width: 150px; accent-color: #f2f2f2; }

/* gauche : l'historique */
.c8-gauche { border-right: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.c8-gauche .c8-tete { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.c8-gauche input { width: 100%; box-sizing: border-box; background: rgba(255, 255, 255, .04); border: 1px solid #2a2b2f; border-radius: 12px; padding: 8px 12px; outline: none; }
.c8-sessions { flex: 1; overflow: auto; padding: 0 8px 10px; }
.c8-groupe { color: #6b6d72; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 10px 4px; }
.c8-session { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.c8-session:hover { background: rgba(255, 255, 255, .05); }
.c8-session.active { background: rgba(255, 255, 255, .1); }
.c8-session .t { display: flex; gap: 6px; align-items: center; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c8-session .t i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.c8-session .t i.en-cours { background: #4cc2ff; animation: c8-pouls 1.2s infinite; } .c8-session .t i.attente { background: #e8c46a; }
.c8-session .q { font-size: 11px; color: #8b8d92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* milieu : la conversation */
.c8-milieu { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.c8-fil { flex: 1; overflow: auto; padding: 24px clamp(14px, 4vw, 44px) 12px; }
.c8-msg { max-width: 820px; margin: 0 auto 18px; }
.c8-msg.moi { display: flex; flex-direction: column; align-items: flex-end; }
.c8-msg.moi .bulle { background: #1c1d20; border-radius: 18px 18px 4px 18px; padding: 10px 14px; max-width: 82%; white-space: pre-wrap; overflow-wrap: anywhere; }
.c8-msg.moi .qui { font-size: 11px; color: #8b8d92; margin: 0 6px 3px; }
.c8-msg.claude .qui { font-size: 12px; color: #8b8d92; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.c8-msg.claude .qui b { color: #f2f2f2; font-weight: 600; }
.c8-msg.claude .qui svg { width: 18px; height: 18px; }
.c8-texte { overflow-wrap: anywhere; }
.c8-texte p { margin: 0 0 10px; } .c8-texte ul, .c8-texte ol { margin: 0 0 10px; padding-left: 20px; }
.c8-texte pre { background: #0b0b0c; border: 1px solid #1e1f22; border-radius: 12px; padding: 11px; overflow: auto; font-size: 12.5px; }
.c8-texte code { font-family: "SF Mono", ui-monospace, Menlo, monospace; background: #17181b; border-radius: 6px; padding: 1px 5px; font-size: 12.5px; }
.c8-texte pre code { background: none; padding: 0; }
.c8-texte h3, .c8-texte h4 { font-size: 15px; margin: 12px 0 6px; } .c8-texte a { color: #4cc2ff; }
.c8-erreur { border: 1px solid #5a1d22; color: #ff8a8f; border-radius: 12px; padding: 8px 12px; margin-top: 6px; font-size: 13px; }
.c8-ecrit { display: flex; align-items: center; gap: 10px; color: #8b8d92; font-size: 13px; margin-top: 4px; }
.c8-ecrit svg { width: 30px; height: 30px; flex: none; }
.c8-vide-fil { max-width: 560px; margin: 12vh auto 0; text-align: center; color: #8b8d92; }
.c8-vide-fil svg { width: 70px; height: 70px; }
.c8-vide-fil h2 { color: #f2f2f2; font-weight: 300; font-size: 30px; letter-spacing: -.02em; margin: 10px 0 8px; }

/* le 8 qui se forme et se déforme (Claude écrit) */
.c8-huit path { fill: none; stroke: url(#c8-degrade); stroke-width: 7; stroke-linecap: round; }
.c8-huit.anime path { stroke-dasharray: 300; animation: c8-forme 2.2s cubic-bezier(.65, 0, .35, 1) infinite; transform-origin: 50% 50%; }
@keyframes c8-forme { 0% { stroke-dashoffset: 300; transform: scale(.82) rotate(-8deg); } 45% { stroke-dashoffset: 0; transform: scale(1) rotate(0); }
  55% { stroke-dashoffset: 0; transform: scale(1) rotate(0); } 100% { stroke-dashoffset: -300; transform: scale(.82) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .c8-huit.anime path { animation: none; } }

/* la saisie */
.c8-saisie { padding: 10px clamp(14px, 4vw, 44px) 16px; }
.c8-boite { max-width: 820px; margin: 0 auto; border: 1px solid #2a2b2f; border-radius: 20px; background: rgba(12, 12, 14, .92); padding: 10px 12px 8px; }
.c8-boite:focus-within { border-color: #6b6d72; }
.c8-boite textarea { width: 100%; box-sizing: border-box; border: 0; outline: none; background: transparent; resize: none; max-height: 220px; min-height: 24px; line-height: 1.5; }
.c8-bas { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.c8-note { font-size: 11px; color: #6b6d72; flex: 1; }
.c8-envoyer { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f2f2f2; color: #000; font-size: 17px; cursor: pointer; }
.c8-envoyer[disabled] { opacity: .35; cursor: default; }
.c8-stop { border-radius: 999px; border: 1px solid #5a1d22; background: transparent; color: #ff8a8f; padding: 6px 12px; cursor: pointer; font-size: 12.5px; }

/* droite : ce qu'il fait, en blocs */
.c8-droite { border-left: 1px solid rgba(255, 255, 255, .08); overflow: auto; padding: 12px; display: grid; gap: 10px; align-content: start; grid-template-columns: 1fr 1fr; }
.c8-bloc { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 12px 13px; min-width: 0; }
.c8-bloc.large { grid-column: 1 / -1; }
.c8-bloc h3 { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8b8d92; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.c8-bloc h3 .n { margin-left: auto; color: #6b6d72; letter-spacing: 0; }
.c8-bloc .rien { color: #6b6d72; font-size: 12.5px; }
.c8-maintenant { font-size: 14px; display: flex; gap: 10px; align-items: center; }
.c8-maintenant svg { width: 34px; height: 34px; flex: none; }
.c8-maintenant small { display: block; color: #8b8d92; font-size: 11.5px; }
.c8-taches { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.c8-taches li { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.c8-taches li::before { content: '○'; color: #6b6d72; flex: none; }
.c8-taches li.en-cours::before { content: '◐'; color: #4cc2ff; } .c8-taches li.fait { color: #8b8d92; text-decoration: line-through; } .c8-taches li.fait::before { content: '●'; color: #46c37b; text-decoration: none; }
.c8-terminal { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; line-height: 1.45; background: #050506; border-radius: 12px; padding: 8px 10px; max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.c8-terminal .cmd { color: #4cc2ff; } .c8-terminal .err { color: #ff8a8f; } .c8-terminal .sortie { color: #c9cbd0; margin-bottom: 8px; display: block; }
.c8-apercus { display: grid; gap: 8px; }
.c8-apercus figure { margin: 0; } .c8-apercus img { width: 100%; border-radius: 12px; border: 1px solid #1e1f22; cursor: zoom-in; display: block; }
.c8-apercus figcaption { font-size: 11.5px; color: #8b8d92; margin-top: 3px; }
.c8-apercus .cadre { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid #1e1f22; }
.c8-apercus .cadre iframe { position: absolute; left: 0; top: 0; width: 250%; height: 250%; transform: scale(.4); transform-origin: 0 0; border: 0; background: #fff; }
.c8-liste { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.c8-liste li { padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); overflow-wrap: anywhere; }
.c8-liste li small { color: #6b6d72; margin-right: 6px; }
.c8-loupe { position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, .86); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.c8-loupe img { max-width: 94vw; max-height: 92vh; border-radius: 12px; }
.c8-toast { position: fixed; right: 16px; bottom: 16px; z-index: 135; background: #f2f2f2; color: #000; border-radius: 16px; padding: 11px 14px; font-size: 13px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); cursor: pointer; max-width: 340px; }

/* lien du rail */
.rail a[data-claude8] .glyphe svg, .pouce a[data-claude8] .glyphe svg { width: 15px; height: 15px; vertical-align: -2px; }

@media (max-width: 900px) {
  #c8.ouvert { grid-template-columns: 0 1fr 0; }
  #c8.ouvert.montre-gauche { grid-template-columns: 78vw 22vw 0; }
  .c8-droite { grid-template-columns: 1fr; }
}

/* les captures jointes (20/11/2026) */
.c8-pieces { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.c8-piece { position: relative; display: inline-block; }
.c8-piece img { height: 64px; border-radius: 10px; border: 1px solid #2a2b2f; display: block; cursor: zoom-in; }
.c8-piece button { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #f2f2f2; color: #000; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }
.c8-boite.survol { border-color: #4cc2ff; }
#c8 .c8-joindre { padding: 5px 10px; }
.c8-imgs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 6px; max-width: 82%; }
.c8-imgs img { max-height: 180px; max-width: 100%; border-radius: 12px; border: 1px solid #2a2b2f; cursor: zoom-in; }

/* ═══ « En bas » (20/11/2026, jules : « c'est un peu compliqué, fais plutôt en sorte que l'écran se coupe en bas ») ═══
   L'Espace garde le haut de l'écran (il défile au-dessus), la conversation prend le bas ; on tire la barre pour la hauteur. */
#c8.bas { top: auto; height: var(--c8-h, 42vh); background: #000; border-top: 1px solid #2a2b2f; box-shadow: 0 -18px 40px rgba(0, 0, 0, .55); grid-template-rows: 46px minmax(0, 1fr); }
#c8.bas .c8-haut { cursor: ns-resize; position: relative; }
#c8.bas .c8-haut button, #c8.bas .c8-haut input { cursor: pointer; }
#c8.bas .c8-fil { padding-top: 14px; }
#c8.bas .c8-vide-fil { margin-top: 2vh; } #c8.bas .c8-vide-fil svg { width: 40px; height: 40px; } #c8.bas .c8-vide-fil h2 { font-size: 22px; }
#c8.tire, #c8.tire * { user-select: none; }
.c8-poignee { display: none; }
#c8.bas .c8-poignee { display: block; position: absolute; left: 50%; top: 5px; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: #4a4c51; }
html.c8-bas body { padding-bottom: var(--c8-h, 42vh); }
html.c8-bas .plein { bottom: var(--c8-h, 42vh); }
html.c8-bas .pouce { bottom: var(--c8-h, 42vh); }
html.c8-bas .dictee { bottom: calc(var(--c8-h, 42vh) + 16px); }
html.c8-bas .avis-inactif { bottom: calc(var(--c8-h, 42vh) + 16px); }

/* Cloodine (20/11/2026) : le 8 bleu reste, avec à côté son petit logo fille (un cœur rose à nœud, original) */
.c8-logo { width: 18px; height: 18px; flex: none; }
.c8-nom .c8-logo { width: 26px; height: 26px; margin-left: -2px; }
.c8-msg.claude .qui .c8-logo { width: 19px; height: 19px; margin-left: -4px; }

/* les fichiers joints (21/11/2026) : en préparation (avec leur barre d'envoi) puis dans la conversation */
.c8-fichier { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 6px 26px 9px 8px; border: 1px solid #2a2b2f; border-radius: 12px; background: #17181b; overflow: hidden; }
.c8-fichier img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.c8-fichier-ic { font-size: 22px; width: 40px; text-align: center; flex: none; }
.c8-fichier-txt { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 1.3; }
.c8-fichier-txt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f2f2f2; }
.c8-fichier-etat { color: #9a9ca3; }
.c8-fichier.erreur .c8-fichier-etat { color: #ff8a8a; }
.c8-avance { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.c8-avance i { display: block; height: 100%; width: 0; background: #0090D3; transition: width .2s; }
.c8-fichier.pret .c8-avance i { background: #3ccf8e; }
.c8-fichier.erreur .c8-avance i { background: #ff6b6b; }
.c8-retirer, .c8-refaire { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: #f2f2f2; color: #000; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.c8-refaire { right: 26px; background: #0090D3; color: #fff; }
.c8-pj { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 6px; max-width: 82%; }
.c8-pj img { max-height: 180px; max-width: 100%; border-radius: 12px; border: 1px solid #2a2b2f; cursor: zoom-in; }
.c8-pj-media { display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
.c8-pj-media video { max-width: min(480px, 100%); max-height: 320px; border-radius: 12px; border: 1px solid #2a2b2f; background: #000; }
.c8-pj-media audio { width: min(360px, 100%); }
.c8-pj-nom { font-size: 12px; color: #9a9ca3; text-decoration: none; text-align: right; }
.c8-pj-nom:hover { color: #73D9FF; }
.c8-pj-fichier { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #2a2b2f; border-radius: 12px; background: #17181b; color: #f2f2f2; text-decoration: none; font-size: 13px; max-width: 320px; }
.c8-pj-fichier b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c8-pj-fichier span:last-child { color: #9a9ca3; white-space: nowrap; }
.c8-pj-fichier:hover { border-color: #0090D3; }

/* glisser-déposer (21/11/2026) : tout Cloodine reçoit les fichiers */
.c8-lacher { display: none; position: absolute; inset: 8px; z-index: 50; border: 2px dashed #0090D3; border-radius: 18px; background: rgba(0, 18, 32, .82); backdrop-filter: blur(6px);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; color: #f2f2f2; text-align: center; }
.c8-lacher div { font-size: 22px; font-weight: 500; }
.c8-lacher span { font-size: 14px; color: #c9e9ff; }
#c8.survol-fichiers .c8-lacher { display: flex; }

/* ═══ 29/11/2026 — la ligne de progression bien visible (bug n° 20 de Dominique : « la barre de progression n'est pas
   assez visible ») : (1) son cadre s'appelle .c8-progres (avant .c8-ligne, déjà pris par la liste des conversations :
   elle s'y retrouvait écrasée) ; (2) un trait plein au bleu du 8, épais, sous les éclairs ; (3) en mode clair, les
   éclairs (dessinés blancs pour un fond noir) sont inversés en encre, et le texte passe en noir. ═══ */
.c8-progres { margin: 12px 0 2px; width: 100%; }
.c8-progres .l8-piste:before { top: 5px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.c8-progres .l8-plein { background: linear-gradient(to bottom, transparent 8px, #0090D3 8px, #73D9FF 12px, transparent 12px); border-radius: 2px; }
.c8-progres .l8-tete { width: 9px; height: 9px; top: 3px; margin-left: -5px; background: #73D9FF; box-shadow: 0 0 8px 2px rgba(115, 217, 255, .8); }
.c8-progres .l8-txt { font-size: 12px; margin-top: 6px; }
.c8-progres .l8-txt b { font-weight: 500; }
#c8.clair .c8-progres .l8-piste:before { background: rgba(0, 0, 0, .10); }
#c8.clair .c8-progres .l8-plein { background: linear-gradient(to bottom, transparent 8px, #375CAD 8px, #0090D3 12px, transparent 12px); }
#c8.clair .c8-progres .l8-plein img, #c8.clair .c8-progres .l8-gerbe { filter: invert(1) hue-rotate(180deg) saturate(1.6) contrast(1.2); }
#c8.clair .c8-progres .l8-tete { background: #0090D3; box-shadow: 0 0 8px 2px rgba(0, 144, 211, .55); }
#c8.clair .c8-progres .l8-txt { color: #6b6d72; }
#c8.clair .c8-progres .l8-txt b { color: #1a1b1e; }

/* 29/11/2026 — la petite ligne de l'étape en cours, sous la grande (toute la demande) */
.c8-etape { margin: 10px 0 0; }
.c8-etape-txt { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #8a8a8a; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.c8-etape-txt b { font-weight: 400; color: #d8d8d8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c8-etape-piste { position: relative; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .10); overflow: hidden; }
.c8-etape-piste i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: #73D9FF; transition: width .8s linear; }
#c8.clair .c8-etape-txt { color: #6b6d72; }
#c8.clair .c8-etape-txt b { color: #2a2b2f; }
#c8.clair .c8-etape-piste { background: rgba(0, 0, 0, .08); }
#c8.clair .c8-etape-piste i { background: #0090D3; }
.c8-progres .l8-plein, .c8-progres .l8-tete { transition-duration: 1s; transition-timing-function: linear; }   /* 29/11 : glisse au lieu de sauter */
