/* ==========================================================================
   EMPAN CURSEURS — PAGE D'ANALYSE V2 (15/10/2026)
   Volet des étapes à gauche, fil de l'analyse au centre, zone de saisie en bas.
   Chaque zone défile seule : la page entière ne bouge jamais.
   Charte Empan : Archivo, fond blanc, gris clair, panneaux noirs à double filet,
   une couleur par curseur (titres, pastilles, filets), jamais d'aplat coloré sous du texte.
   ========================================================================== */

@font-face {
  font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../polices/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../polices/archivo-latin-wdth-normal.woff2) format('woff2-variations');
}

:root {
  --e-encre: #1D1D1F; --e-texte: #4A4A4F; --e-doux: #5F5F64;
  --e-filet: #E3E3E8; --e-filet-fort: #C7C7CC; --e-gris: #F5F5F7; --e-gris-2: #EBEBEF; --e-fond: #FCFCFD;
  --e-panneau: #181819; --e-panneau-filet: #3A3A3C; --e-panneau-doux: #AEAEB2;
  --e-ligne: #38702E; --e-ligne-fonce: #2B5823; --e-ligne-clair: #E6F0E2;
  --e-attention: #8A5A00; --e-attention-clair: #FFF4D6; --e-alerte: #B3261E; --e-alerte-clair: #FBEAE8;
  --e-r-l: 22px; --e-r-m: 14px; --e-r-s: 10px;
  --e-police: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --e-ombre-douce: 0 1px 2px rgba(29,29,31,.06), 0 8px 24px -12px rgba(29,29,31,.18);
  --e-focus: 0 0 0 3px #fff, 0 0 0 5px var(--e-ligne);
  --v2-volet: 276px;
  --v2-col: 820px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.v2 {
  font-family: var(--e-police); font-size: 16px; line-height: 1.5; color: var(--e-encre);
  background: #fff; overflow: hidden; -webkit-font-smoothing: antialiased;
}
/* Réglages de base sans poids de spécificité : les classes de la page l'emportent toujours */
:where(body.v2) :where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(body.v2) :where(a) { color: var(--e-ligne); }
:where(body.v2) :where(a:hover) { color: var(--e-ligne-fonce); }
body.v2 :focus-visible { outline: none; box-shadow: var(--e-focus); border-radius: 8px; }
.v2-cache { display: none !important; }
.v2-lecteur { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* -------------------------------------------------------------------------- Cadre */
.v2-app { display: flex; height: 100vh; height: 100dvh; width: 100%; }
.v2-volet {
  flex: 0 0 var(--v2-volet); width: var(--v2-volet); display: flex; flex-direction: column; gap: 18px;
  background: var(--e-gris); border-right: 1px solid var(--e-filet); padding: 14px 12px 12px;
  overflow-y: auto; overscroll-behavior: contain;
}
.v2-principal { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; height: 100%; background: #fff; }
.v2-fil { position: relative; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.v2-app.volet-replie .v2-volet { display: none; }
.v2-voile { display: none; }

/* -------------------------------------------------------------------------- Volet */
.v2-volet-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 0 6px; }
.v2-marque { display: block; line-height: 0; }
.v2-marque img { height: 34px; width: auto; display: block; }
.v2-icone {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: var(--e-r-s); background: transparent; color: var(--e-doux);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.v2-icone:hover { background: var(--e-gris-2); color: var(--e-encre); }
.v2-icone svg { width: 20px; height: 20px; }
.v2-nouvelle {
  min-height: 44px; border: 0; border-radius: 12px; background: var(--e-encre); color: #fff; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px; cursor: pointer; text-align: left;
}
.v2-nouvelle:hover { background: #000; }
.v2-nouvelle svg { width: 18px; height: 18px; flex: none; }
.v2-volet-titre { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--e-doux); padding: 0 10px 6px; }
.v2-lecon { padding: 0 10px 8px; }
.v2-lecon strong { display: block; font-size: 15px; line-height: 1.3; }
.v2-lecon span { display: block; font-size: 13px; color: var(--e-doux); }
.v2-etapes ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.v2-etape {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 12px;
  border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--e-encre);
}
.v2-etape:hover:not(:disabled) { background: var(--e-gris-2); }
.v2-etape:disabled { cursor: default; color: var(--e-doux); }
.v2-etape[aria-current="step"] { background: #fff; border-color: var(--e-filet); font-weight: 700; box-shadow: 0 1px 2px rgba(29,29,31,.06); }
.v2-etape-num {
  flex: none; width: 24px; height: 24px; border-radius: 99px; border: 1.5px solid #AEAEB2; color: var(--e-doux);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.v2-etape[aria-current="step"] .v2-etape-num { background: var(--e-encre); border-color: var(--e-encre); color: #fff; }
.v2-etape.faite .v2-etape-num { border-color: var(--e-ligne); color: var(--e-ligne); }
.v2-etape.faite .v2-etape-num svg { width: 14px; height: 14px; }
.v2-etape-lib { flex: 1; min-width: 0; }
.v2-etape-info { font-size: 12px; font-weight: 500; color: var(--e-doux); white-space: nowrap; }
.v2-recentes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.v2-recentes a, .v2-volet-lien {
  display: block; padding: 8px 10px; border-radius: var(--e-r-s); color: var(--e-encre); text-decoration: none; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v2-recentes a:hover, .v2-volet-lien:hover { background: var(--e-gris-2); color: var(--e-encre); }
.v2-recentes a[aria-current="page"] { background: var(--e-gris-2); font-weight: 600; }
.v2-recentes .v2-recente-meta { display: block; font-size: 12px; color: var(--e-doux); }
.v2-recentes-vide { font-size: 13px; color: var(--e-doux); padding: 4px 10px; }
.v2-volet-biblio { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.v2-volet-biblio svg { width: 18px; height: 18px; flex: none; color: var(--e-doux); }
.v2-volet-pied { margin-top: auto; border-top: 1px solid var(--e-filet); padding-top: 10px; display: flex; flex-direction: column; gap: 1px; }
.v2-volet-pied .v2-volet-lien { color: var(--e-texte); }
.v2-utilisateur { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.v2-avatar {
  width: 32px; height: 32px; flex: none; border-radius: 99px; background: var(--e-encre); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.v2-utilisateur div { min-width: 0; line-height: 1.25; }
.v2-utilisateur strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-lien-discret { border: 0; background: none; padding: 0; color: var(--e-doux); font-size: 12px; cursor: pointer; text-decoration: underline; }

/* -------------------------------------------------------------------------- En-tête */
.v2-entete {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-bottom: 1px solid var(--e-filet); background: #fff;
}
.v2-entete-titre { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.v2-titre {
  min-width: 0; flex: 0 1 auto; max-width: 100%; border: 1px solid transparent; border-radius: 8px; background: transparent;
  font-weight: 700; font-size: 16px; padding: 4px 6px; margin-left: -6px; text-overflow: ellipsis;
}
.v2-titre:hover { border-color: var(--e-filet); }
.v2-titre:focus { border-color: var(--e-filet-fort); outline: none; }
.v2-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-meta span:empty { display: none; }
.v2-meta span { font-size: 12px; color: var(--e-texte); border: 1px solid var(--e-filet); border-radius: 99px; padding: 2px 10px; }
.v2-meta #resultIa { border-style: dashed !important; background: none !important; border-width: 1px !important; border-color: var(--e-filet-fort) !important; font-weight: 500 !important; }
.v2-entete-actions { flex: none; display: flex; gap: 8px; }
.v2-btn {
  min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--e-encre); background: #fff; color: var(--e-encre);
  font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.v2-btn:hover { background: var(--e-gris); color: var(--e-encre); }
.v2-btn.noir { background: var(--e-encre); color: #fff; border-color: var(--e-encre); }
.v2-btn.noir:hover { background: #000; color: #fff; }
.v2-btn.grand { min-height: 48px; padding: 0 22px; font-size: 15px; }
.v2-btn:disabled { opacity: .45; cursor: default; }
.v2-btn svg { width: 18px; height: 18px; flex: none; }
.v2-btn-lien { border: 0; background: none; padding: 6px 0; min-height: 36px; color: var(--e-ligne); font-weight: 600; font-size: 14px; cursor: pointer; }
.v2-btn-lien:hover { color: var(--e-ligne-fonce); text-decoration: underline; }
.v2-seulement-mobile { display: none; }
.v2-app.volet-replie .v2-montrer-volet { display: inline-flex; }
.v2-montrer-volet { display: none; }

/* -------------------------------------------------------------------------- Fil */
.v2-col { width: 100%; max-width: var(--v2-col); margin: 0 auto; padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 22px; }
.v2-ens { display: flex; justify-content: flex-end; }
.v2-ens-bulle { max-width: 88%; background: var(--e-gris); border-radius: 22px 22px 6px 22px; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.v2-ens-bulle.court { padding: 12px 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.v2-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-puce-info { font-size: 12px; color: var(--e-texte); border: 1px solid var(--e-filet-fort); border-radius: 99px; padding: 2px 10px; background: transparent; }
.v2-puce-info.fichier { background: #fff; border-color: var(--e-filet); font-weight: 600; color: var(--e-encre); }
.v2-puce-info a { color: inherit; text-decoration: none; }
.v2-puce-info a:hover { text-decoration: underline; }
.v2-ens-texte { font-size: 14px; color: var(--e-texte); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9.5em; overflow: hidden; position: relative; }
.v2-ens-texte.ouvert { max-height: none; }
.v2-ens-texte:not(.ouvert)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5em; background: linear-gradient(rgba(245,245,247,0), var(--e-gris)); }
.v2-plat { display: flex; gap: 14px; align-items: flex-start; }
.v2-plat-avatar { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--e-panneau); display: flex; align-items: center; justify-content: center; }
.v2-plat-avatar svg { width: 20px; height: 20px; }
.v2-plat-corps { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.v2-plat-corps > p { margin: 0; }
.v2-plat-texte { margin: 0; font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.v2-replie {
  width: 100%; min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--e-filet); border-radius: var(--e-r-m);
  background: #fff; text-align: left; cursor: pointer; font-size: 14px; color: var(--e-encre);
}
.v2-replie:hover { background: var(--e-fond); border-color: var(--e-filet-fort); }
.v2-replie svg { width: 20px; height: 20px; flex: none; color: var(--e-ligne); }
.v2-replie span { flex: 1; min-width: 0; }
.v2-replie b { font-weight: 600; }
.v2-replie em { font-style: normal; font-size: 13px; color: var(--e-ligne); font-weight: 600; flex: none; }
.v2-etiquette { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--e-doux); margin: 0; }
.v2-carte { border: 1px solid var(--e-filet); border-radius: var(--e-r-l); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.v2-carte.grise { background: var(--e-gris); border-color: var(--e-gris); }
.v2-carte.pointillee { border: 1.5px dashed var(--e-filet-fort); }
.v2-carte h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.v2-carte p { margin: 0; }
.v2-carte .v2-texte { font-size: 14px; color: var(--e-texte); }
.v2-attente { display: flex; align-items: center; gap: 10px; color: var(--e-doux); font-size: 14px; }
.v2-points { display: inline-flex; gap: 4px; }
.v2-points i { width: 6px; height: 6px; border-radius: 99px; background: var(--e-doux); animation: v2-point 1.2s infinite ease-in-out; }
.v2-points i:nth-child(2) { animation-delay: .15s; } .v2-points i:nth-child(3) { animation-delay: .3s; }
@keyframes v2-point { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.v2-erreur { border: 1px solid #E8B9B4; background: var(--e-alerte-clair); color: var(--e-alerte); border-radius: var(--e-r-m); padding: 12px 16px; font-size: 14px; }
.v2-erreur a { color: var(--e-alerte); font-weight: 700; }
.v2-note { font-size: 13px; color: var(--e-doux); margin: 0; }

/* -------------------------------------------------------------------------- Préparation */
.v2-accueil { display: flex; flex-direction: column; gap: 20px; padding-top: 32px; }
.v2-accueil-tete { text-align: center; }
.v2-accueil h1 { margin: 0; font-size: 42px; line-height: 1.08; font-weight: 800; font-stretch: 88%; letter-spacing: -.025em; }
.v2-accueil-tete p { margin: 12px auto 0; max-width: 560px; color: var(--e-texte); font-size: 17px; }
.v2-indice { border: 1px solid var(--e-filet-fort); background: var(--e-fond); border-radius: var(--e-r-m); padding: 12px 16px; font-size: 14px; color: var(--e-texte); }
.v2-indice strong { color: var(--e-encre); }
.v2-formulaire { border: 1px solid var(--e-filet-fort); border-radius: var(--e-r-l); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--e-ombre-douce); background: #fff; }
.v2-depot {
  border: 1.5px dashed var(--e-filet-fort); border-radius: var(--e-r-m); background: var(--e-fond); padding: 24px 18px; text-align: center; cursor: pointer;
  width: 100%; color: var(--e-encre);
}
.v2-depot:hover, .v2-depot.survol { border-color: var(--e-ligne); background: #fff; }
.v2-depot strong { display: block; font-size: 16px; }
.v2-depot span { display: block; color: var(--e-doux); font-size: 13px; }
.v2-fichiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.v2-fichiers li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--e-filet); border-radius: var(--e-r-s); padding: 6px 6px 6px 14px; font-size: 14px; }
.v2-fichiers li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-fichiers li small { color: var(--e-doux); }
.v2-champ { display: flex; flex-direction: column; gap: 4px; }
.v2-champ label { font-size: 13px; font-weight: 600; color: var(--e-texte); }
.v2-champ input, .v2-champ textarea, .v2-champ select {
  border: 1px solid var(--e-filet); border-radius: var(--e-r-s); padding: 10px 12px; font-size: 15px; background: #fff; width: 100%;
}
.v2-champ textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.v2-champ input:focus, .v2-champ textarea:focus, .v2-champ select:focus { border-color: var(--e-filet-fort); outline: none; box-shadow: var(--e-focus); }
.v2-grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.v2-ligne-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.v2-lancer { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 1 1 260px; }
#choixIa { width: 100%; border: 1px dashed var(--e-filet-fort) !important; border-radius: var(--e-r-m); padding: 12px 14px; margin: 0; background: var(--e-fond); }
#choixIa h3 { font-size: 14px; margin: 0 0 8px; }
#choixIa .metadata-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
#choixIa label { display: block; font-size: 12px; font-weight: 600; color: var(--e-texte); margin-bottom: 2px; }
#choixIa select { border: 1px solid var(--e-filet) !important; border-radius: var(--e-r-s); padding: 8px !important; font-size: 14px !important; }
#choixIa p { margin: 6px 0 0 !important; font-size: 12px !important; }

/* -------------------------------------------------------------------------- Lecture */
.v2-lecture { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; background: var(--e-gris); border-radius: var(--e-r-l); padding: 22px; }
.v2-cible { position: relative; width: 230px; height: 230px; flex: none; }
.v2-cible svg.fond { position: absolute; inset: 0; width: 100%; height: 100%; }
.v2-cible-point { position: absolute; border-radius: 99px; box-sizing: border-box; transition: left .9s ease, top .9s ease, background .3s, width .3s, height .3s; }
.v2-cible-point.fixe { border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(29,29,31,.15); }
.v2-cible-point.cherche { background: #fff; border: 2px solid #AEAEB2; }
.v2-cible-point.absent { background: var(--e-filet); border: 2px solid #fff; }
.v2-lecture-infos { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.v2-lecture-infos strong { font-size: 20px; font-stretch: 92%; }
#loader p { margin: 0; }
.v2-barre { height: 6px; background: var(--e-filet); border-radius: 99px; overflow: hidden; }
.v2-barre i { display: block; height: 100%; background: var(--e-encre); border-radius: 99px; transition: width .4s ease; }
.v2-lecture-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; font-size: 14px; }
.v2-lecture-liste li { display: flex; align-items: center; gap: 8px; }
.v2-lecture-liste li span { flex: 1; min-width: 0; }
.v2-lecture-liste li b { font-size: 13px; font-weight: 600; }
.v2-pastille { flex: none; width: 10px; height: 10px; border-radius: 99px; box-sizing: border-box; border: 2px solid currentColor; }

/* -------------------------------------------------------------------------- Table de mixage */
.v2-console {
  background: var(--e-panneau); border-radius: var(--e-r-l); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--e-panneau);
  margin: 5px; padding: 18px 12px 14px; color: #F5F5F7;
}
.v2-console-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; padding: 0 8px 14px; }
.v2-console-tete strong { font-size: 15px; }
.v2-console-tete span { font-size: 12px; color: var(--e-panneau-doux); }
.v2-console-tete button { border: 1px solid rgba(255,255,255,.28); background: transparent; color: #F5F5F7; border-radius: 99px; min-height: 32px; padding: 0 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.v2-console-tete button:hover { border-color: #fff; }
.v2-voies { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.v2-voie {
  min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 10px; border: 0; border-radius: var(--e-r-m);
  background: transparent; color: inherit; cursor: pointer;
}
.v2-voie:hover { background: rgba(255,255,255,.06); }
.v2-voie[aria-pressed="true"] { background: rgba(255,255,255,.11); }
.v2-voie:focus-visible { box-shadow: 0 0 0 2px #fff; }
.v2-justesse { font-size: 10px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; border: 1px solid rgba(255,255,255,.22); color: #F5F5F7; border-radius: 99px; padding: 2px 7px; text-transform: uppercase; }
.v2-justesse.monter, .v2-justesse.descendre { color: #FFD66B; border-color: rgba(255,214,107,.45); }
.v2-justesse.absent { color: #8E8E93; border-color: var(--e-panneau-filet); }
.v2-justesse.vide { visibility: hidden; }
.v2-rail { position: relative; display: block; width: 100%; height: 150px; }
.v2-rail::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; margin-left: -1.5px; border-left: 3px solid var(--e-panneau-filet); }
.v2-voie.absente .v2-rail::before { border-left-style: dashed; border-left-color: #48484A; }
.v2-cran { position: absolute; left: 50%; width: 18px; height: 1px; margin-left: -9px; background: var(--e-panneau-filet); }
.v2-bouton-niveau {
  position: absolute; left: 50%; width: 46px; height: 26px; margin-left: -23px; background: #fff; color: var(--e-encre); border-radius: 6px;
  border-bottom: 3px solid var(--c, #fff); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  transition: bottom .5s ease;
}
.v2-bouton-niveau.fantome { background: transparent; color: var(--e-panneau-doux); border: 1.5px dashed #8E8E93; font-size: 11px; }
.v2-bouton-niveau.corrige::after { content: ''; position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; border-radius: 99px; background: #FFD66B; border: 2px solid var(--e-panneau); }
.v2-nom-voie { font-size: 12px; font-weight: 600; color: #F5F5F7; border-bottom: 3px solid var(--c, #fff); padding-bottom: 3px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-voie.absente .v2-nom-voie { color: #8E8E93; border-bottom-color: var(--e-panneau-filet); }
.v2-note-voie { font-size: 11px; font-weight: 700; color: #BFD9B5; min-height: 16px; white-space: nowrap; }
.v2-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 8px 0; font-size: 12px; color: var(--e-panneau-doux); }
.v2-legende a { color: #F5F5F7; }
.v2-legende a:hover { color: #fff; }
.v2-radar svg { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; }

.v2-detail { border: 1px solid var(--e-filet); border-radius: var(--e-r-l); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.v2-detail-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.v2-detail-tete h3 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 90%; }
.v2-pilule { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; background: var(--e-gris); color: var(--e-encre); }
.v2-pilule.juste { background: var(--e-ligne-clair); color: var(--e-ligne-fonce); }
.v2-pilule.monter, .v2-pilule.descendre { background: var(--e-attention-clair); color: var(--e-attention); }
.v2-pilule.absent { background: var(--e-gris-2); color: var(--e-texte); }
.v2-detail p { margin: 0; font-size: 15px; color: var(--e-texte); line-height: 1.6; }
.v2-detail .v2-raison { font-size: 14px; }
.v2-verif { border: 1px solid var(--e-filet); border-radius: var(--e-r-s); padding: 8px 12px; font-size: 14px; color: var(--e-texte); }
.v2-verif strong { color: var(--e-encre); }
.v2-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 2px; }
.v2-corriger { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.v2-corriger select { border: 1px solid var(--e-filet-fort); border-radius: var(--e-r-s); padding: 6px 8px; min-height: 40px; background: #fff; }
.v2-corriger output { font-size: 13px; color: var(--e-doux); }

.v2-profil { border: 1px solid #E2C88A; border-radius: var(--e-r-l); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.v2-profil .v2-etiquette { color: var(--e-attention); }
.v2-profil h3 { margin: 0; font-size: 17px; }
.v2-profil p { margin: 0; font-size: 14px; color: var(--e-texte); }
.v2-profil .chiffre { font-size: 13px; color: var(--e-doux); }
.v2-profil .conseil { font-weight: 600; color: var(--e-encre); }
.v2-absents ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-absents li { display: flex; gap: 12px; font-size: 14px; color: var(--e-texte); }
.v2-absents li .v2-pastille { margin-top: 6px; }
.v2-absents li b { color: var(--c); font-weight: 700; }
.v2-absents li i { display: block; color: var(--e-doux); }
.v2-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-liens li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 14px; color: var(--e-texte); }
.v2-liens li > span:last-child { flex: 1 1 300px; }
.v2-type { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 10px; background: var(--e-ligne-clair); color: var(--e-ligne-fonce); }
.v2-type.tension { background: var(--e-attention-clair); color: var(--e-attention); }
.v2-cur-noms { font-weight: 600; color: var(--e-encre); }

/* -------------------------------------------------------------------------- Pistes */
.v2-pistes { display: flex; flex-direction: column; gap: 12px; }
.v2-piste { border: 1px solid var(--e-filet); border-radius: var(--e-r-l); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.v2-piste.ecartee { background: var(--e-fond); }
.v2-piste.ecartee .v2-piste-action { color: var(--e-doux); }
.v2-piste-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.v2-piste-tete .v2-pastille { color: var(--c); background: var(--c); }
.v2-piste-tete h3 { margin: 0; font-size: 16px; color: var(--t); }
.v2-piste-nouvelle { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--e-ligne-fonce); border: 1px solid var(--e-ligne); border-radius: 99px; padding: 1px 8px; }
.v2-retenir { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.v2-retenir input { width: 18px; height: 18px; accent-color: var(--e-ligne); }
.v2-piste-action { margin: 0; font-size: 15px; line-height: 1.55; }
.v2-piste-pourquoi { margin: 0; font-size: 14px; color: var(--e-texte); }
.v2-piste-pourquoi b, .v2-piste-action b { color: var(--e-encre); font-weight: 600; }
.v2-cible-niveau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--e-texte); }
.v2-segments { display: inline-flex; border: 1px solid var(--e-filet-fort); border-radius: 99px; overflow: hidden; }
.v2-segments button { min-width: 44px; min-height: 36px; border: 0; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; border-left: 1px solid var(--e-filet); }
.v2-segments button:first-child { border-left: 0; }
.v2-segments button[aria-pressed="true"] { background: var(--e-encre); color: #fff; }
.v2-segments button.actuel:not([aria-pressed="true"]) { color: var(--e-doux); text-decoration: underline dotted; }
.v2-avis { border-radius: var(--e-r-s); padding: 10px 12px; font-size: 14px; color: var(--e-texte); border: 1px solid var(--e-filet); }
.v2-avis.ok { border-color: #BFD9B5; }
.v2-avis.attention { border-color: #E2C88A; }
.v2-avis b { display: block; color: var(--e-encre); font-size: 13px; }
.v2-reponses { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-reponses button { min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--e-filet-fort); background: #fff; font-size: 13px; cursor: pointer; }
.v2-reponses button:hover { border-color: var(--e-encre); }
.v2-reponses button[aria-pressed="true"] { background: var(--e-encre); border-color: var(--e-encre); color: #fff; }
.v2-precision { display: flex; flex-direction: column; gap: 6px; }
.v2-precision label { font-size: 13px; color: var(--e-texte); }
.v2-precision textarea { border: 1px solid var(--e-filet); border-radius: var(--e-r-s); padding: 8px 10px; min-height: 64px; resize: vertical; font-size: 14px; }
.v2-precision .v2-btn { align-self: flex-start; min-height: 36px; }
.v2-retour { border: 1px solid var(--e-filet); border-radius: var(--e-r-s); padding: 8px 12px; font-size: 14px; color: var(--e-texte); }
.v2-retour.erreur { border-color: #E8B9B4; color: var(--e-alerte); }
.v2-pistes-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.v2-ensemble { border: 1px solid var(--e-filet); border-radius: var(--e-r-l); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.v2-ensemble h3 { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.v2-ensemble h3 span { font-size: 13px; color: var(--e-doux); font-weight: 600; }
.v2-ensemble p { margin: 0; font-size: 14px; color: var(--e-texte); }
.v2-alerte-coh { border: 1px solid var(--e-filet); border-radius: var(--e-r-s); padding: 8px 12px; font-size: 14px; color: var(--e-texte); }
.v2-alerte-coh b { display: block; color: var(--e-encre); font-size: 13px; }

/* -------------------------------------------------------------------------- Fiche réécrite */
.v2-avertissement { font-size: 13px; color: var(--e-texte); border: 1px solid var(--e-filet); border-radius: var(--e-r-s); padding: 10px 14px; }
.v2-avertissement strong { color: var(--e-encre); }
.v2-doc { border: 1px solid var(--e-filet); border-radius: var(--e-r-l); overflow: hidden; }
.v2-doc-tete { background: var(--e-gris); padding: 14px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.v2-doc-tete h3 { margin: 2px 0 0; font-size: 18px; font-stretch: 92%; }
.v2-doc-tete .v2-note { margin-top: 2px; }
.v2-doc-corps { padding: 18px 22px 22px; }
.v2-legende-fiche { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--e-texte); }
.v2-legende-fiche span { display: inline-flex; align-items: center; gap: 6px; }
.v2-legende-fiche i { font-style: normal; padding: 0 6px; border-radius: 4px; }
.v2-legende-fiche i.ajout { background: var(--e-ligne-clair); }
.v2-legende-fiche i.modifie { background: var(--e-attention-clair); }
.v2-legende-fiche i.precise { border-bottom: 1px dotted #6E6E73; }
.v2-duree { display: flex; gap: 2px; height: 12px; border-radius: 99px; overflow: hidden; }
.v2-duree i { display: block; background: var(--e-filet-fort); }
.v2-duree i.ajout { background: var(--e-ligne); }
.v2-duree-legende { font-size: 13px; color: var(--e-doux); margin: 4px 0 0; }
.v2-fiche { font-size: 15px; line-height: 1.6; color: var(--e-encre); overflow-wrap: anywhere; }
.v2-fiche h1 { font-size: 22px; line-height: 1.2; margin: 6px 0 12px; font-stretch: 92%; }
.v2-fiche h2 { font-size: 18px; margin: 22px 0 8px; }
.v2-fiche h3 { font-size: 16px; margin: 18px 0 6px; }
.v2-fiche p, .v2-fiche ul, .v2-fiche ol { margin: 6px 0; }
.v2-fiche ul, .v2-fiche ol { padding-left: 22px; }
.v2-fiche table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 14px; display: block; overflow-x: auto; }
.v2-fiche th, .v2-fiche td { border: 1px solid var(--e-filet); padding: 6px 8px; text-align: left; vertical-align: top; }
.v2-fiche .fiche-entete, .v2-fiche .changements { background: var(--e-gris); border-radius: var(--e-r-m); padding: 12px 16px; margin: 10px 0; }
.v2-fiche .changements { background: #fff; border: 1px solid var(--e-filet-fort); }
.v2-fiche .consigne { border-left: 3px solid var(--e-encre); padding-left: 12px; font-weight: 500; }
.v2-fiche .note-enseignant { color: var(--e-texte); border-left: 3px solid var(--e-filet-fort); padding-left: 12px; font-size: 14px; }
.v2-fiche .ajout { background: var(--e-ligne-clair); border-radius: 3px; }
.v2-fiche .modifie { background: var(--e-attention-clair); border-radius: 3px; }
.v2-fiche .precise { border-bottom: 1px dotted #6E6E73; }
.v2-fiche div.ajout, .v2-fiche div.modifie { padding: 6px 12px; border-radius: 8px; margin: 8px 0; }
.v2-fiche div.precise { border-bottom: 0; border-left: 2px dotted #6E6E73; padding-left: 12px; }
.v2-fiche div.ajout .ajout, .v2-fiche div.ajout .precise, .v2-fiche div.modifie .modifie { background: none; border: 0; }
.v2-precedentes summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.v2-precedentes ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }

/* -------------------------------------------------------------------------- Fiche complète */
.v2-export { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; background: var(--e-gris); border-radius: var(--e-r-l); padding: 22px; }
.v2-feuille { flex: none; width: 170px; height: 240px; background: #fff; border-radius: 6px; box-shadow: var(--e-ombre-douce); padding: 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.v2-feuille i { display: block; height: 4px; background: var(--e-filet); border-radius: 2px; }
.v2-feuille i.titre { height: 8px; width: 70%; background: var(--e-encre); }
.v2-feuille i.sous { height: 5px; width: 45%; background: var(--e-filet-fort); }
.v2-feuille i.console { height: 56px; background: var(--e-panneau); border-radius: 6px; margin: 4px 0; }
.v2-export-infos { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.v2-export-infos h3 { margin: 0; font-size: 19px; font-stretch: 92%; }
.v2-export-infos ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--e-texte); }
.v2-boutons { display: flex; flex-wrap: wrap; gap: 8px; }

/* -------------------------------------------------------------------------- Dialogue */
.v2-proposition { border: 1px solid var(--e-filet-fort); border-radius: var(--e-r-m); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--e-texte); }
.v2-proposition b { color: var(--e-encre); }
.v2-proposition .v2-boutons .v2-btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.v2-proposition.appliquee { border-style: dashed; }

/* -------------------------------------------------------------------------- Zone de saisie */
.v2-saisie { flex: none; padding: 0 24px 16px; background: #fff; }
.v2-saisie-col { max-width: var(--v2-col); margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.v2-suggestions { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 6px 2px 2px; scrollbar-width: none; }
.v2-suggestions::-webkit-scrollbar { display: none; }
.v2-suggestions button {
  flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--e-filet-fort); border-radius: 99px; background: #fff; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.v2-suggestions button:hover { border-color: var(--e-encre); }
.v2-composeur {
  border: 1px solid var(--e-filet-fort); border-radius: var(--e-r-l); padding: 8px 8px 8px 18px; display: flex; align-items: flex-end; gap: 6px;
  box-shadow: var(--e-ombre-douce); background: #fff;
}
.v2-composeur:focus-within { border-color: var(--e-encre); }
.v2-composeur textarea { flex: 1; min-width: 0; border: 0; resize: none; font-size: 15px; line-height: 1.5; outline: none; background: transparent; padding: 9px 0; max-height: 180px; }
.v2-composeur textarea:disabled { color: var(--e-doux); }
.v2-envoyer { width: 44px; height: 44px; flex: none; border: 0; border-radius: 99px; background: var(--e-encre); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.v2-envoyer:disabled { background: var(--e-filet-fort); cursor: default; }
.v2-envoyer svg { width: 20px; height: 20px; }
.v2-signature { text-align: center; font-size: 12px; color: var(--e-doux); }

/* -------------------------------------------------------------------------- Dictée */
.v2-modale { border: 0; border-radius: var(--e-r-l); padding: 0; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 30px 60px -30px rgba(29,29,31,.4), 0 12px 24px -12px rgba(29,29,31,.2); }
.v2-modale::backdrop { background: rgba(24,24,25,.55); }
.v2-modale-corps { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.v2-modale h2 { margin: 0; font-size: 22px; font-stretch: 92%; }
.v2-modale p { margin: 0; color: var(--e-texte); }
.v2-modale-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.v2-chrono { text-align: center; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.v2-enregistre { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--e-doux); font-size: 14px; min-height: 20px; }
.v2-enregistre i { width: 12px; height: 12px; border-radius: 99px; background: var(--e-alerte); animation: v2-pulse 1s infinite; }
@keyframes v2-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.v2-resume { background: var(--e-gris); border-radius: var(--e-r-m); padding: 14px 16px; max-height: 240px; overflow-y: auto; white-space: pre-wrap; font-size: 15px; }

/* -------------------------------------------------------------------------- Téléphone et petite fenêtre */
@media (max-width: 900px) {
  .v2-volet {
    position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); z-index: 40; transform: translateX(-102%);
    transition: transform .22s ease; box-shadow: 0 30px 60px -30px rgba(29,29,31,.4);
  }
  .v2-app.volet-ouvert .v2-volet { transform: none; }
  .v2-app.volet-replie .v2-volet { display: flex; }
  .v2-app.volet-ouvert .v2-voile { display: block; position: fixed; inset: 0; background: rgba(24,24,25,.4); z-index: 30; }
  .v2-seulement-mobile, .v2-montrer-volet { display: inline-flex; }
  .v2-seulement-ordi { display: none !important; }
  .v2-entete { padding: 8px 12px; gap: 8px; }
  .v2-entete-actions .v2-btn { padding: 0 12px; }
  .v2-entete-actions .v2-btn .v2-lib-long { display: none; }
  .v2-col { padding: 20px 16px 24px; gap: 18px; }
  .v2-saisie { padding: 0 12px 10px; }
  .v2-accueil { padding-top: 8px; }
  .v2-accueil h1 { font-size: 32px; }
  .v2-plat { gap: 10px; }
  .v2-plat-avatar { width: 28px; height: 28px; }
  .v2-ens-bulle { max-width: 100%; }
}
@media (max-width: 640px) {
  /* Table de mixage compacte : les neuf curseurs tiennent dans la largeur, noms à la verticale */
  .v2-voies { gap: 0; }
  .v2-voie { gap: 8px; padding: 6px 0 8px; }
  .v2-justesse { padding: 1px 5px; font-size: 11px; }
  .v2-justesse .mot { display: none; }
  .v2-bouton-niveau { width: 28px; margin-left: -14px; height: 24px; font-size: 13px; }
  .v2-bouton-niveau .tiret { display: none; }
  .v2-cran { width: 12px; margin-left: -6px; }
  .v2-nom-voie {
    writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: none; height: 86px;
    border-bottom: 0; border-right: 3px solid var(--c, #fff); padding: 0 0 0 0; padding-right: 2px; font-size: 11px; text-align: right;
  }
  .v2-voie.absente .v2-nom-voie { border-right-color: var(--e-panneau-filet); }
  .v2-note-voie { display: none; }
  .v2-console { padding: 14px 6px 12px; }
  .v2-lecture-liste { grid-template-columns: 1fr; }
  .v2-cible { width: 200px; height: 200px; margin: 0 auto; }
  .v2-entete-titre .v2-meta { display: none; }
  .v2-signature { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-cible-point, .v2-bouton-niveau, .v2-volet, .v2-barre i { transition: none; }
  .v2-points i, .v2-enregistre i { animation: none; }
}
@media print {
  body.v2 { overflow: visible; }
  .v2-volet, .v2-saisie, .v2-entete-actions { display: none !important; }
  .v2-app, .v2-principal, .v2-fil { height: auto; overflow: visible; display: block; }
}
