/* ============================================================
   NOUVELLE INTERFACE HADES — maquette validée par Adrien (08/10/2026)
   Rouge = couleur principale. Une seule famille d'icônes fines.
   Ordinateur : 3 colonnes ; tablette : tiroirs ; téléphone : onglets.
   ============================================================ */
/* Police IBM Plex Sans (cahier de la maquette) HÉBERGÉE sur le serveur : aucune ressource externe. Fichiers @fontsource/ibm-plex-sans 5.3.0
   (sous-ensemble latin, accents français compris), licence SIL OFL 1.1 : ibm-plex-sans-LICENCE-OFL.txt. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
:root {
  --fond: #0a0d10; --panneau: #0e1115; --s1: #101317; --s2: #14181c; --s3: #171a20; --s4: #1b1d22;
  --bord: #23282f; --bord2: #2a2f36; --bord3: #3a4049;
  --texte: #f3f5f7; --texte2: #c5cad0; --texte3: #9aa3ad; --texte4: #7f8892;
  --rouge: #e3122c; --rouge-survol: #f0213a; --rouge2: #c10a1f; --rouge3: #6e0614; --rouge-fond: #2a0308;
  --vert: #3ecf74; --orange: #f0a43a; --gris: #8f99a4;
  --lecture: 860px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fond); color: var(--texte);
  font: 15px/1.45 "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }
a { color: var(--rouge); }
.n-ico { flex: 0 0 auto; }
.n-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- squelette ---------- */
.n-app { display: grid; grid-template-columns: 296px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
.n-side { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--bord);
  background: radial-gradient(120% 40% at 0% 100%, rgba(227, 18, 44, .16), transparent 60%), linear-gradient(180deg, #0c0f12, #0a0d10); }
.n-main { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.n-onglets { display: none; }

/* ---------- barre latérale ---------- */
.n-side-haut { padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.n-marque { display: flex; align-items: center; gap: 12px; }
.n-marque-casque { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--rouge); background: radial-gradient(circle at 50% 35%, #2a0a0f, #0b0d10 70%); border: 1px solid #2c1015; flex: 0 0 58px; }
.n-marque-textes { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.n-marque-textes small { color: var(--texte2); font-size: 13px; margin-bottom: 2px; }
.n-marque-textes b { font-size: 34px; font-weight: 700; letter-spacing: 1px; }
.n-marque-textes em { font-style: normal; color: var(--texte3); font-size: 10.5px; letter-spacing: 2.2px; margin-top: 6px; white-space: nowrap; }
.n-retour-direction { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--texte3); font-size: 13px; padding: 2px 0; }
.n-retour-direction:hover { color: var(--texte); }
.n-nouvelle { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border: 0; border-radius: 9px; background: var(--rouge); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 6px 18px rgba(227, 18, 44, .25); }
.n-nouvelle:hover { background: var(--rouge-survol); }
.n-recherche { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 1px solid var(--bord2); border-radius: 9px; background: rgba(10, 13, 16, .6); color: var(--texte3); }
.n-recherche input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--texte); font-size: 14px; }
.n-recherche input::placeholder, textarea::placeholder, input::placeholder { color: var(--texte4); }
.n-recherche:focus-within { border-color: var(--bord3); }
.n-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.n-nav button { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--bord); border-radius: 8px; background: rgba(16, 19, 23, .7); color: var(--texte2); font-size: 13.5px; text-align: left; }
.n-nav button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-nav button:hover { border-color: var(--bord3); color: #fff; }
.n-nav button.actif { border-color: var(--rouge3); background: var(--rouge-fond); color: #fff; }
.n-nav button.actif .n-ico { color: var(--rouge); }
.n-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.n-nav .n-badge { margin-left: auto; }
.n-liste-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 4px; color: var(--texte3); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; }
.n-liste-tete .n-lien { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.n-liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 10px 10px; scrollbar-width: thin; scrollbar-color: #2a2f36 transparent; }
.n-groupe-tete { display: flex; align-items: center; gap: 8px; color: var(--texte3); font-size: 13px; padding: 10px 4px 6px; }
.n-groupe-tete .n-caret { color: var(--gris); }
.n-groupe-tete.rouge .n-caret { color: var(--rouge); }
.n-conv { position: relative; border-radius: 9px; }
.n-conv-ouvrir { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; color: var(--texte); }
.n-conv-ouvrir .n-ico { color: var(--texte2); }
.n-conv:hover .n-conv-ouvrir { background: #15181d; }
.n-conv.actif .n-conv-ouvrir { background: var(--s4); box-shadow: inset 3px 0 0 var(--rouge); }
.n-conv.actif .n-conv-ouvrir .n-ico { color: #fff; }
.n-conv-textes { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.n-conv-titre { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-conv-sous { font-size: 13px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-conv-quand { font-size: 12.5px; color: var(--texte3); align-self: flex-start; margin-top: 2px; white-space: nowrap; }
.n-conv-menu { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--s4); color: var(--texte2); opacity: 0; }
.n-conv:hover .n-conv-menu, .n-conv:focus-within .n-conv-menu, .n-conv-menu[aria-expanded="true"], .n-dossier-tete:hover .n-conv-menu, .n-dossier-tete:focus-within .n-conv-menu { opacity: 1; }
.n-conv-menu:hover { color: #fff; background: #23272e; }
.n-saisie-ligne-texte { width: 100%; background: #0b0e11; border: 1px solid var(--rouge3); border-radius: 6px; color: #fff; padding: 3px 6px; font-size: 14px; }
.n-dossier { margin: 2px 0; border-radius: 9px; }
.n-dossier-tete { position: relative; display: flex; align-items: center; }
.n-dossier-bascule { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 40px 8px 6px; border: 0; background: transparent; color: var(--texte2); text-align: left; border-radius: 8px; }
.n-dossier-bascule:hover { background: #15181d; }
.n-dossier-bascule small { margin-left: auto; color: var(--texte4); }
.n-dossier-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.n-dossier .n-caret { transition: transform .15s; }
.n-dossier.ferme .n-caret { transform: rotate(-90deg); }
.n-dossier.ferme .n-dossier-corps { display: none; }
.n-dossier-corps { padding-left: 14px; }
.n-nouveau-dossier .n-dossier-tete { gap: 8px; padding: 6px; color: var(--texte2); }
.n-nouveau-dossier input { flex: 1; min-width: 0; background: #0b0e11; border: 1px solid var(--bord3); border-radius: 6px; padding: 4px 8px; }
[data-dossier].cible { outline: 1px dashed var(--rouge); outline-offset: -1px; background: rgba(227, 18, 44, .06); }
.n-vide { color: var(--texte4); font-size: 13.5px; padding: 14px 6px; }
.n-side-pied { border-top: 1px solid var(--bord); padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.n-pied-lien { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--texte); font-size: 15px; text-align: left; }
.n-pied-lien span { flex: 1; }
.n-pied-lien b { min-width: 30px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--s4); color: var(--texte2); font-size: 12.5px; line-height: 24px; text-align: center; font-weight: 500; }
.n-pied-lien:hover, .n-pied-lien.actif { background: #15181d; }
.n-pied-lien.actif { box-shadow: inset 3px 0 0 var(--rouge); }
.n-compte { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--bord); }
.n-av-compte { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #cfd4da; display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: 0 0 46px; }
.n-compte b { display: block; font-size: 15.5px; }
.n-compte small { color: var(--texte3); font-size: 13px; }

/* ---------- bandeau ---------- */
.n-bandeau { position: relative; height: 156px; flex: 0 0 auto; background-color: #07090b;
  background-image: linear-gradient(180deg, rgba(4, 6, 8, .55) 0%, rgba(4, 6, 8, 0) 48%), linear-gradient(0deg, #0a0d10 0%, rgba(10, 13, 16, 0) 34%), url(hades-bandeau.webp);
  background-size: auto, auto, cover; background-position: center, center, left center; background-repeat: no-repeat; }
.n-bandeau .n-menu-bouton, .n-bandeau .n-droite-bouton { display: none; }
.n-bandeau-titre { position: absolute; top: 0; bottom: 0; left: clamp(150px, 20%, 320px); display: flex; align-items: center; gap: 14px; color: var(--rouge); }
.n-bandeau-titre h1 { margin: 0; font-size: 58px; line-height: 1; font-weight: 700; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.n-bandeau-titre p { margin: 10px 0 0; color: #e8ebee; font-size: 13.5px; letter-spacing: 3.5px; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.n-pastilles { position: absolute; top: 13px; right: 92px; display: flex; align-items: center; height: 48px; padding: 0 6px; border: 1px solid var(--bord2); border-radius: 12px; background: rgba(5, 7, 9, .88); }
.n-pastille { position: relative; display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #f3f5f7; font-size: 14px; white-space: nowrap; }
.n-pastille + .n-pastille { border-left: 1px solid #2a2f36; border-radius: 0; }
button.n-pastille:hover { background: rgba(255, 255, 255, .06); }
.n-pastille .n-badge { position: absolute; top: -2px; left: 22px; }
.n-connexion { cursor: default; }
.n-point { width: 9px; height: 9px; border-radius: 50%; background: var(--gris); flex: 0 0 9px; }
.n-point.ok { background: var(--vert); box-shadow: 0 0 0 3px rgba(62, 207, 116, .18); }
.n-point.attente { background: var(--orange); }
.n-point.ko { background: var(--rouge); }
.n-compte-bandeau { position: absolute; top: 13px; right: 14px; }
.n-avatar-bouton { height: 48px; min-width: 64px; padding: 0 12px; border: 1px solid var(--bord2); border-radius: 12px; background: rgba(5, 7, 9, .88); color: #fff; font-weight: 700; }
.n-avatar-bouton:hover { border-color: var(--bord3); }
.n-menu-compte { position: absolute; right: 0; top: 54px; z-index: 30; }
.n-famille { position: absolute; right: 26px; bottom: 22px; text-align: center; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.n-famille b { display: block; font-size: 19px; letter-spacing: 4px; font-weight: 600; }
.n-famille span { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 3px; color: #e3e7eb; }
.n-famille span::before, .n-famille span::after { content: ""; width: 30px; height: 1px; background: var(--rouge); }

/* ---------- corps : centre + colonne de droite ---------- */
.n-corps { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; padding: 0 14px 14px 14px; }
body.sans-droite .n-corps { grid-template-columns: minmax(0, 1fr); }
body.sans-droite .n-droite { display: none; }
.n-centre { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.n-centre.depot::after { content: "Déposer les fichiers ici"; position: absolute; inset: 0; display: grid; place-items: center; border: 2px dashed var(--rouge); border-radius: 16px; background: rgba(10, 13, 16, .85); color: #fff; font-size: 18px; z-index: 5; }
.n-fil-tete { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 4px; min-height: 52px; }
.n-fil-titres { flex: 1; min-width: 0; }
.n-fil-titres h2 { margin: 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-fil-titres small { color: var(--texte3); font-size: 13px; }
.n-fil, .n-vue { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: 1px solid var(--bord); border-radius: 16px; background: var(--panneau);
  padding: 18px max(22px, calc((100% - var(--lecture)) / 2)); scrollbar-width: thin; scrollbar-color: #2a2f36 transparent; }

/* ---------- messages ---------- */
.n-msg { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0; position: relative; flex-wrap: wrap; }
.n-msg time { flex-basis: 100%; font-size: 12px; color: var(--texte4); }
.n-msg-bulle { max-width: min(80%, 700px); padding: 14px 20px; border-radius: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.n-msg-bulle p { margin: 0 0 6px; } .n-msg-bulle p:last-child { margin: 0; }
.n-av-hades { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--rouge); background: radial-gradient(circle at 50% 35%, #2a0a0f, #0b0d10 72%); border: 1px solid #2c1015; flex: 0 0 44px; }
.n-msg-hades .n-msg-bulle { background: var(--s3); border: 1px solid #1f2329; border-top-left-radius: 6px; }
.n-msg-hades time { padding-left: 58px; }
.n-msg-moi { justify-content: flex-end; }
.n-msg-moi .n-msg-bulle { background: #c8102e; color: #fff; border-top-right-radius: 6px; box-shadow: 0 6px 18px rgba(200, 16, 46, .18); }
.n-av-moi { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #cfd4da; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: 0 0 40px; margin-top: 4px; }
.n-msg-moi time { text-align: right; padding-right: 54px; }
.n-msg-moi.en-cours .n-msg-bulle { opacity: .78; }
.n-msg-moi.echec .n-msg-bulle { background: transparent; border: 1px dashed var(--rouge); color: var(--texte); }
.n-msg-moi.echec time { color: var(--rouge); }
.n-msg-systeme { gap: 8px; align-items: center; margin: 8px 0 8px 58px; color: var(--texte3); font-size: 13.5px; flex-wrap: nowrap; }
.n-msg-systeme .n-ico { color: var(--rouge); }
.n-msg-systeme time { flex-basis: auto; margin-left: auto; }
.n-reflexion .n-msg-bulle { display: flex; gap: 6px; padding: 18px 20px; }
.n-reflexion i { width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); animation: n-point 1.2s infinite ease-in-out; }
.n-reflexion i:nth-child(2) { animation-delay: .18s; } .n-reflexion i:nth-child(3) { animation-delay: .36s; }
@keyframes n-point { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---------- accueil ---------- */
.n-accueil-bonjour h2 { margin: 0 0 12px; font-size: 21px; font-weight: 600; line-height: 1.35; }
.n-accueil-bonjour p { color: var(--texte2); }
.n-raccourcis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.n-raccourci { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 96px; border: 1px solid var(--bord2); border-radius: 12px; background: #101317; text-align: left; color: var(--texte); }
.n-raccourci .n-ico { color: var(--rouge); }
.n-raccourci b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.n-raccourci small { display: block; margin-top: 4px; color: var(--texte3); font-size: 13px; }
.n-raccourci:hover { border-color: var(--bord3); background: #13171b; }
.n-absence { margin: 18px 0 8px; padding: 16px 18px; border: 1px solid var(--bord); border-radius: 14px; background: #0c0f12; }
.n-absence h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.n-absence h3 .n-ico { color: var(--rouge); }
.n-absence h4 { margin: 14px 0 6px; font-size: 13px; color: var(--texte3); text-transform: uppercase; letter-spacing: 1px; }
.n-texte { color: var(--texte2); margin: 10px 0; }
.n-compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.n-compteurs > div { padding: 10px 12px; border: 1px solid var(--bord); border-radius: 10px; background: var(--s1); color: var(--texte3); font-size: 12.5px; }
.n-compteurs b { display: block; color: #fff; font-size: 20px; font-weight: 600; }
.n-carte-ligne { display: flex; flex-direction: column; width: 100%; gap: 2px; margin: 6px 0; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 10px; background: var(--s1); text-align: left; color: var(--texte); }
.n-carte-ligne small { color: var(--texte3); }
.n-carte-ligne:hover { border-color: var(--bord3); }

/* ---------- carte mission (suivi de colis) ---------- */
.n-mission { margin: 6px 0 16px 58px; padding: 14px 18px 16px; border-radius: 16px; background: #f3f4f6; color: #13161a; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.n-mission-tete { display: flex; align-items: center; gap: 10px; }
.n-mission-tete b { font-size: 15.5px; }
.n-mission-pastille { width: 18px; height: 18px; border: 2px solid var(--rouge); border-radius: 5px; display: grid; place-items: center; }
.n-mission-pastille::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); }
.n-mission.finie .n-mission-pastille { border-color: #1f9d55; } .n-mission.finie .n-mission-pastille::after { background: #1f9d55; }
.n-mission.en-pause .n-mission-pastille { border-color: #c77700; } .n-mission.en-pause .n-mission-pastille::after { background: #c77700; }
.n-mission-pct { margin-left: auto; font-weight: 700; font-size: 15px; }
.n-mission-replier { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--rouge); }
.n-mission-pct + .n-mission-replier { margin-left: 4px; }
.n-mission-tete b + .n-mission-replier { margin-left: auto; }
.n-mission-replier:hover { background: #e5e7eb; }
.n-mission-replier .n-ico { transition: transform .15s; }
.n-mission.repliee .n-mission-replier .n-ico { transform: rotate(-90deg); }
.n-mission.repliee .n-mission-corps { display: none; }
.n-mission-titre { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 2px 28px; color: #3b4148; font-size: 14px; }
.n-mission-titre span { flex: 1; min-width: 0; }
.n-mission .n-lien { color: #c10a1f; }
.n-colis { list-style: none; display: flex; margin: 14px 0 6px; padding: 0; overflow-x: auto; }
.n-etape { flex: 1 1 0; min-width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 12.5px; color: #4b525a; text-align: center; }
.n-etape::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 2px; background: #d6d9dd; z-index: 0; }
.n-etape:first-child::before { display: none; }
.n-etape.fait::before, .n-etape.on::before { background: #1f9d55; }
.n-etape-ico { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #c9cdd2; color: #6b737c; }
.n-etape.fait .n-etape-ico { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.n-etape.on .n-etape-ico { background: var(--rouge); border-color: var(--rouge); color: #fff; animation: n-pulse 1.6s infinite; }
.n-etape.bloque .n-etape-ico { background: #c77700; border-color: #c77700; color: #fff; }
.n-etape.on .n-etape-nom { color: #13161a; font-weight: 600; }
.n-etape-nom { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
@keyframes n-pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 18, 44, .45); } 70% { box-shadow: 0 0 0 10px rgba(227, 18, 44, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 18, 44, 0); } }
.n-taches { margin-top: 8px; }
.n-tache { display: grid; grid-template-columns: 26px 108px minmax(0, 1fr) 110px auto; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid #e1e4e8; font-size: 14px; }
.n-tache b { font-size: 14.5px; }
.n-tache-ico { color: #2b3036; display: grid; place-items: center; }
.n-tache-objet { color: #4b525a; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.n-barre { display: block; height: 6px; border-radius: 3px; background: #d9dcdf; overflow: hidden; }
.n-barre i { display: block; height: 100%; width: 0; background: var(--rouge); border-radius: 3px; }
.n-tache .n-barre.fait i { width: 100%; background: #1f9d55; }
.n-tache .n-barre.on i { width: 40%; animation: n-indetermine 1.6s infinite ease-in-out; }
.n-tache .n-barre.bloque i { width: 100%; background: #c77700; opacity: .5; }
@keyframes n-indetermine { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.n-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: #fff; color: #13161a; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.n-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5d6670; }
.n-chip.on::before { background: var(--rouge); } .n-chip.fait::before { background: #1f9d55; } .n-chip.bloque::before, .n-chip.attente::before { background: #c77700; }
.n-fil-tete .n-chip, .n-vue .n-chip, .n-tiroir .n-chip { background: var(--s4); color: var(--texte); box-shadow: none; border: 1px solid var(--bord2); }
.n-mission-pause { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #6b4300; font-size: 13.5px; }
.n-mission-pause span { flex: 1; }

/* ---------- saisie ---------- */
.n-saisie { width: 100%; max-width: calc(var(--lecture) + 44px); margin: 12px auto 0; flex: 0 0 auto; }
.n-saisie-ligne { display: flex; align-items: flex-end; gap: 10px; padding: 12px 12px 12px 14px; border: 1px solid var(--bord2); border-radius: 14px; background: var(--s1); }
.n-saisie-ligne:focus-within { border-color: var(--bord3); }
#n-champ { flex: 1; min-width: 0; min-height: 24px; max-height: 220px; resize: none; border: 0; outline: none; background: transparent; color: var(--texte); font-size: 16px; line-height: 1.5; padding: 12px 4px; }
.n-icone-bouton { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--texte2); flex: 0 0 auto; }
.n-icone-bouton:hover { background: #1b1f25; color: #fff; }
.n-icone-bouton.rond { width: 48px; height: 48px; border-radius: 50%; background: #181c22; }
.n-icone-bouton.petit { width: 30px; height: 30px; }
.n-envoyer { width: 52px; height: 52px; border: 0; border-radius: 12px; background: var(--rouge); color: #fff; display: grid; place-items: center; flex: 0 0 52px; box-shadow: 0 6px 16px rgba(227, 18, 44, .3); }
.n-envoyer:hover { background: var(--rouge-survol); }
.n-actions-rapides { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.n-actions-rapides button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border: 1px solid var(--bord2); border-radius: 18px; background: #0f1215; color: var(--texte); font-size: 13.5px; white-space: nowrap; }
.n-actions-rapides button.icone-seule { width: 36px; padding: 0; justify-content: center; }
.n-actions-rapides button.icone-seule span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.n-actions-rapides button:hover { border-color: var(--bord3); color: #fff; }
.n-aide-clavier { margin: 8px 2px 0; color: var(--texte4); font-size: 12.5px; }
.n-pieces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.n-piece { display: flex; align-items: center; gap: 8px; max-width: 280px; padding: 6px 6px 6px 8px; border: 1px solid var(--bord2); border-radius: 10px; background: var(--s2); }
.n-piece img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.n-piece span { min-width: 0; display: flex; flex-direction: column; }
.n-piece b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-piece small { font-size: 12px; color: var(--texte3); }
.n-piece.erreur { border-color: var(--rouge3); } .n-piece.erreur small { color: #ff6b7d; }
.n-piece.envoi { opacity: .75; }

/* ---------- colonne de droite ---------- */
.n-droite { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a2f36 transparent; padding-bottom: 2px; }
.n-boite { padding: 14px; border: 1px solid var(--bord); border-radius: 14px; background: var(--s1); }
.n-boite-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; letter-spacing: 1.4px; font-weight: 600; }
.n-boite-tete > span { display: inline-flex; align-items: center; gap: 8px; }
.n-boite-tete .n-lien { letter-spacing: 0; font-weight: 400; }
.n-vert { color: var(--vert); font-size: 12.5px; letter-spacing: 0; font-weight: 600; }
.n-boite-decider { border-color: var(--rouge3); background: linear-gradient(180deg, #1a0609, var(--s1)); }
.n-boite-decider .n-ico { color: var(--rouge); }
.n-pastille-rouge { min-width: 24px; height: 24px; border-radius: 12px; background: var(--rouge); color: #fff; font-size: 12.5px; line-height: 24px; text-align: center; padding: 0 6px; letter-spacing: 0; }
.n-decider { display: flex; align-items: center; gap: 10px; width: 100%; margin: 6px 0; padding: 9px 10px; border: 1px solid var(--bord2); border-radius: 10px; background: var(--s2); text-align: left; color: var(--texte); font-size: 13.5px; }
.n-decider:hover { border-color: var(--bord3); }
.n-niveau { display: inline-grid; place-items: center; min-width: 32px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--rouge-fond); border: 1px solid var(--rouge3); color: #ff8090; font-size: 12px; font-weight: 700; }
.n-agent { display: flex; align-items: center; gap: 12px; padding: 9px 8px; margin: 4px 0; border-radius: 10px; background: #12151a; }
.n-agent.sous { margin-left: 18px; }
.n-agent.sur-mission { box-shadow: inset 0 0 0 1px var(--rouge3); background: #160a0d; }
.n-agent-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--rouge); border: 1.5px solid var(--rouge); background: #170709; flex: 0 0 40px; }
.n-agent.claude .n-agent-ico { color: #ff8a3d; border-color: #ff8a3d; background: #1a1008; }
.n-agent-textes { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.n-agent-ligne { display: flex; align-items: center; gap: 8px; }
.n-agent-ligne b { font-size: 14.5px; }
.n-agent small { color: var(--texte3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-sur-mission { color: #ff8090; font-size: 11.5px; }
.n-etat { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.n-etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.n-etat.ok { color: var(--vert); } .n-etat.travaille { color: #ff5468; } .n-etat.attente { color: var(--orange); } .n-etat.ko { color: #e86a6a; } .n-etat.inconnu { color: var(--texte4); }
.n-etat.travaille::before { animation: n-clignote 1.4s infinite; }
@keyframes n-clignote { 50% { opacity: .3; } }
.n-mligne { display: flex; gap: 12px; width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--bord); background: transparent; text-align: left; color: var(--texte); }
.n-mligne:last-child { border-bottom: 0; }
.n-mligne:hover b { color: #fff; text-decoration: underline; text-decoration-color: var(--rouge); }
.n-mligne-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1.5px solid var(--rouge); color: var(--rouge); flex: 0 0 32px; margin-top: 2px; }
.n-mligne.fait .n-mligne-ico { border-color: var(--vert); color: var(--vert); }
.n-mligne.bloque .n-mligne-ico, .n-mligne.attente .n-mligne-ico { border-color: var(--orange); color: var(--orange); }
.n-mligne-textes { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.n-mligne-textes b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.n-mligne-textes small { color: var(--texte3); font-size: 12.5px; }
.n-mligne-barre { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.n-mligne-barre .n-barre { flex: 1; background: #2a2f36; }
.n-mligne-barre em { font-style: normal; font-size: 12.5px; color: var(--texte2); min-width: 38px; text-align: right; }
.n-mligne.fait .n-barre i { background: var(--vert); } .n-mligne.bloque .n-barre i, .n-mligne.attente .n-barre i { background: var(--orange); }
/* Annulée / échouée : ✕ gris, sans pourcentage (12/10/2026). */
.n-mligne.annule .n-mligne-ico { border-color: var(--gris); color: var(--gris); }
.n-groupe-replie > summary { list-style: none; cursor: pointer; }
.n-groupe-replie > summary::-webkit-details-marker { display: none; }
.n-groupe-replie > summary h3 { display: inline-flex; align-items: center; gap: 6px; }
.n-groupe-replie > summary h3::after { content: '▸'; color: var(--texte3); font-size: 12px; }
.n-groupe-replie[open] > summary h3::after { content: '▾'; }
/* Reprise d'une mission en pause : ⏸ orange au repos, ▶ au survol / focus, ▶ animé pendant l'appel (bouton frère de la ligne). */
.n-reprendre { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; border: 1.5px solid var(--orange); color: var(--orange); background: transparent; cursor: pointer; padding: 0; flex: 0 0 32px; }
.n-reprendre.petit { width: 26px; height: 26px; flex-basis: 26px; border-radius: 7px; color: #b36b00; border-color: #c77700; }
.n-reprendre .n-reprendre-play { display: none; }
.n-reprendre:hover .n-reprendre-pause, .n-reprendre:focus-visible .n-reprendre-pause, .n-reprendre.en-cours .n-reprendre-pause { display: none; }
.n-reprendre:hover .n-reprendre-play, .n-reprendre:focus-visible .n-reprendre-play, .n-reprendre.en-cours .n-reprendre-play { display: inline-flex; }
.n-reprendre:hover, .n-reprendre:focus-visible { background: rgba(240, 164, 58, .12); outline: none; }
.n-reprendre.en-cours { cursor: progress; }
.n-reprendre.en-cours .n-reprendre-play { animation: n-reprendre-pulse 0.9s ease-in-out infinite; }
@keyframes n-reprendre-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .n-reprendre.en-cours .n-reprendre-play { animation: none; opacity: .6; } }
.n-mligne-cadre { position: relative; }
.n-mligne-cadre > .n-mligne-reprendre { position: absolute; left: 2px; top: 12px; z-index: 1; }
.n-mligne-cadre > .n-mligne .n-mligne-ico { visibility: hidden; }
.n-mligne-cadre .n-mligne { border-bottom: 1px solid var(--bord); }
.n-mligne-cadre:last-child .n-mligne { border-bottom: 0; }
.n-carte-ligne-cadre { position: relative; }
.n-carte-ligne-cadre > .n-carte-ligne { padding-right: 50px; }
.n-carte-ligne-cadre > .n-carte-reprendre { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.n-memoire-total { color: var(--texte3); font-size: 13px; margin-bottom: 10px; }
.n-memoire-total b { color: #fff; font-size: 18px; margin-right: 4px; }
.n-memoire-natures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.n-memoire-natures > div { display: grid; grid-template-columns: 32px 1fr; align-items: center; column-gap: 8px; }
.n-memoire-natures span { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1b1f25; color: var(--texte2); }
.n-memoire-natures b { font-size: 13.5px; } .n-memoire-natures small { color: var(--texte3); font-size: 12.5px; }
.n-memoire-natures > div, .n-compteurs > div { min-width: 0; }
/* Libellés longs (« Connaissances techniques ») : retour à la ligne ENTRE les mots, jamais au milieu d'un mot (13/10/2026). */
.n-memoire-natures b, .n-compteurs > div { overflow-wrap: break-word; word-break: normal; hyphens: manual; white-space: normal; line-height: 1.25; }
/* Formulaire « Déjà réalisée hors HADES » : la case et son libellé alignés, le libellé cliquable. */
.n-realisee label { display: flex; align-items: center; gap: 8px; margin-top: 10px; cursor: pointer; }
.validation.n-realisee label input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--rouge); }

/* ---------- boutons, cartes, vues ---------- */
.n-lien { border: 0; background: transparent; color: var(--rouge); font-size: 13.5px; padding: 2px 0; }
.n-lien:hover { text-decoration: underline; }
.n-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--bord2); border-radius: 9px; background: #181c22; color: var(--texte); font-size: 14px; }
.n-bouton:hover { border-color: var(--bord3); color: #fff; }
.n-bouton.primaire { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.n-bouton.primaire:hover { background: var(--rouge-survol); }
.n-bouton.danger { border-color: var(--rouge3); color: #ff8090; background: #170709; }
.n-bouton.large { width: 100%; }
.n-bouton:disabled { opacity: .55; cursor: default; }
.n-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.n-carte { margin: 10px 0; padding: 14px 16px; border: 1px solid var(--bord); border-radius: 12px; background: var(--s2); }
.n-carte p { margin: 6px 0; }
.n-petit { color: var(--texte3); font-size: 13px; }
.n-code { white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.45 ui-monospace, Consolas, monospace; color: var(--texte2); background: #0b0e11; border-radius: 8px; padding: 10px; }
.n-carte textarea, .n-filtres input, .n-filtres select, .validation textarea, .validation input, .n-session input { width: 100%; padding: 10px 12px; border: 1px solid var(--bord2); border-radius: 9px; background: #0b0e11; color: var(--texte); }
.n-vue-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.n-vue-tete h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; }
.n-vue-tete h2 .n-ico { color: var(--rouge); }
.n-vue h3 { margin: 22px 0 8px; font-size: 15px; color: var(--texte2); }
.n-vue h3 small { color: var(--texte4); font-weight: 400; margin-left: 4px; }
.n-liste-missions { border: 1px solid var(--bord); border-radius: 12px; background: var(--s1); padding: 4px 12px; }
.n-filtres { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 8px; margin: 10px 0; }
.n-grille-fichiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.n-fichier-ico { color: var(--rouge); display: block; margin-bottom: 6px; }
.n-fichier b { overflow-wrap: anywhere; }
details summary { cursor: pointer; color: var(--texte3); font-size: 13px; margin-top: 8px; }
.n-qualite .n-compteurs { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* validations SAS (balisage de hades-rendu.js) */
.validation { margin: 10px 0; padding: 14px 16px; border: 1px solid var(--rouge3); border-radius: 12px; background: #120a0c; }
.validation h4 { margin: 0 0 4px; font-size: 15px; }
.validation > small { color: var(--texte3); }
.validation dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 14px; margin: 12px 0; }
.validation dt { color: var(--texte3); font-size: 13px; }
.validation dd { margin: 0; overflow-wrap: anywhere; }
.validation textarea, .validation input { margin-top: 8px; }
.validation-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.validation-boutons button { min-height: 38px; padding: 0 14px; border: 1px solid var(--bord2); border-radius: 9px; background: #181c22; color: var(--texte); }
.validation-boutons button:hover { border-color: var(--bord3); }
.validation-boutons .autoriser { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.validation-boutons button[data-confirme="1"] { box-shadow: 0 0 0 2px #fff; }

/* menus, tiroir, avis */
.n-menu { min-width: 230px; padding: 6px; border: 1px solid var(--bord2); border-radius: 12px; background: var(--s3); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.n-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--texte); font-size: 14px; text-align: left; }
.n-menu button:hover, .n-menu button:focus-visible { background: #23272e; }
.n-menu-ranger { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; color: var(--texte2); font-size: 14px; }
.n-menu-ranger span { display: flex; align-items: center; gap: 10px; }
.n-menu-ranger select { padding: 6px 8px; border: 1px solid var(--bord2); border-radius: 8px; background: #0b0e11; }
.n-pop { position: fixed; z-index: 50; }
.n-voile { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .55); }
.n-tiroir { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(460px, 100vw); overflow-y: auto; padding: 18px 20px 24px; background: var(--s1); border-left: 1px solid var(--bord2); box-shadow: -20px 0 50px rgba(0, 0, 0, .5); }
.n-tiroir-tete { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.n-tiroir-tete > div { flex: 1; min-width: 0; }
.n-tiroir-tete small { color: var(--texte3); text-transform: uppercase; letter-spacing: 1.4px; font-size: 12px; }
.n-tiroir-tete h3 { margin: 4px 0 0; font-size: 19px; overflow-wrap: anywhere; }
.n-tiroir h4 { margin: 18px 0 4px; color: var(--texte2); }
.n-tiroir .n-colis { background: #f3f4f6; border-radius: 12px; padding: 12px 6px 8px; }
.n-tiroir .n-taches { background: #f3f4f6; border-radius: 12px; padding: 4px 12px; color: #13161a; }
.n-tiroir .n-tache { grid-template-columns: 24px 90px minmax(0, 1fr) auto; }
.n-tiroir .n-tache .n-barre { display: none; }
.n-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.n-meta > div { padding: 10px 12px; border: 1px solid var(--bord); border-radius: 10px; background: var(--s2); }
.n-meta dt { color: var(--texte3); font-size: 12px; margin-bottom: 4px; }
.n-meta dd { margin: 0; font-weight: 500; }
.n-session { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(5, 7, 9, .94); }
.n-session-carte { width: min(440px, 100%); padding: 24px; border: 1px solid var(--bord2); border-radius: 16px; background: var(--s1); display: flex; flex-direction: column; gap: 12px; }
.n-session-carte h2 { margin: 0; }
.n-erreur-texte { color: #ff8090; }
.n-notes { position: fixed; top: 14px; right: 14px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 28px)); }
.n-note { padding: 12px 14px; border: 1px solid var(--bord2); border-left: 4px solid var(--rouge); border-radius: 10px; background: var(--s3); color: var(--texte); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); cursor: pointer; }
.n-note.info { border-left-color: var(--vert); }
.n-apercu { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .75); }
.n-apercu-cadre { width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; border: 1px solid var(--bord2); border-radius: 14px; background: var(--s1); overflow: hidden; }
.n-apercu-cadre header { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--bord); }
.n-apercu-cadre header small { flex: 1; color: var(--texte3); }
.n-apercu-corps { overflow: auto; min-height: 200px; }
.n-apercu-corps img { display: block; max-width: 100%; margin: auto; }
.n-apercu-corps iframe { width: 100%; height: 75vh; border: 0; background: #fff; }
.n-apercu-corps pre { white-space: pre-wrap; padding: 16px; margin: 0; }
.n-seul-mobile, .n-seul-tactile { display: none !important; }
@media (hover: none) and (pointer: coarse) {
  .n-seul-tactile { display: inline-grid !important; }
  .n-conv-menu { opacity: 1; background: transparent; }
  .n-conv-quand { margin-right: 30px; }
}

/* ---------- écrans moyens ---------- */
@media (max-width: 1320px) {
  .n-pastille-texte { display: none; }
  .n-pastille { padding: 0 11px; }
  .n-pastille .n-badge { left: 18px; }
  .n-raccourcis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .n-corps { grid-template-columns: minmax(0, 1fr); }
  .n-droite { display: none; }
  .n-bandeau .n-droite-bouton { display: inline-grid; position: absolute; top: 17px; right: 92px; width: 40px; height: 40px; border: 1px solid var(--bord2); border-radius: 10px; background: rgba(5, 7, 9, .88); color: #fff; }
  .n-pastilles { right: 142px; }
  body.droite-ouverte .n-droite { display: flex; position: fixed; top: 0; right: 0; bottom: 0; z-index: 38; width: min(340px, 92vw); padding: 14px; background: var(--fond); border-left: 1px solid var(--bord2); box-shadow: -20px 0 50px rgba(0, 0, 0, .55); }
  .n-tache { grid-template-columns: 24px 96px minmax(0, 1fr) auto; }
  .n-tache .n-barre { display: none; }
}
@media (max-width: 1100px) {
  .n-bandeau-titre { left: 140px; }
  .n-bandeau-titre h1 { font-size: 44px; }
  .n-famille { display: none; }
}
@media (max-width: 900px) {
  .n-app { grid-template-columns: minmax(0, 1fr); }
  .n-main { grid-column: 1; }
  .n-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 45; width: min(330px, 88vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0, 0, 0, .55); background: #0a0d10; }
  body.side-ouverte .n-side { transform: none; }
  .n-seul-mobile { display: inline-grid !important; margin-left: auto; }
  .n-bandeau .n-menu-bouton { display: inline-grid; position: absolute; top: 13px; left: 14px; width: 48px; height: 48px; border: 1px solid var(--bord2); border-radius: 12px; background: rgba(5, 7, 9, .88); color: #fff; z-index: 2; }
  .n-bandeau-titre { left: auto; right: 24px; top: auto; bottom: 18px; align-items: flex-end; }
  .n-pastilles { left: 76px; right: auto; }
  .n-bandeau .n-droite-bouton { right: 92px; }
}

/* ---------- téléphone ---------- */
@media (max-width: 760px) {
  html, body { font-size: 15px; }
  .n-app { grid-template-rows: minmax(0, 1fr) auto; }
  .n-bandeau { height: 124px; background-position: center, center, 30% 20%; }
  .n-pastilles, .n-bandeau .n-droite-bouton, .n-famille { display: none !important; }
  .n-bandeau .n-menu-bouton { top: 14px; left: 12px; }
  .n-compte-bandeau { top: 14px; right: 12px; }
  .n-avatar-bouton { min-width: 48px; width: 48px; border-radius: 50%; padding: 0; }
  .n-bandeau-titre { right: auto; left: 27%; bottom: 14px; gap: 10px; }
  .n-bandeau-titre h1 { font-size: 40px; }
  .n-bandeau-titre p { font-size: 11px; letter-spacing: 3px; margin-top: 6px; }
  .n-sous-groupe { display: none; }
  .n-eclair { width: 16px; height: 30px; }
  .n-corps { padding: 0; gap: 0; }
  .n-fil, .n-vue { border: 0; border-radius: 0; background: transparent; padding: 10px 14px 16px; }
  .n-fil-tete { padding: 6px 12px 0; min-height: 44px; }
  .n-msg { gap: 10px; margin: 12px 0; }
  .n-av-hades { width: 38px; height: 38px; flex-basis: 38px; }
  .n-msg-bulle { max-width: 84%; padding: 12px 15px; }
  .n-msg-hades time { padding-left: 48px; }
  .n-msg-moi .n-av-moi { display: none; }
  .n-msg-moi time { padding-right: 2px; }
  .n-msg-systeme { margin-left: 4px; }
  .n-accueil-bonjour h2 { font-size: 19px; }
  .n-accueil-bonjour p { display: none; }
  .n-raccourcis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .n-raccourci { min-height: 84px; padding: 12px; gap: 10px; }
  .n-mission { margin-left: 0; padding: 12px 14px; }
  .n-mission-titre { margin-left: 0; flex-wrap: wrap; }
  .n-tache { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .n-tache .n-tache-objet { display: none; }
  .n-etape { min-width: 58px; font-size: 11.5px; }
  .n-etape-ico { width: 32px; height: 32px; }
  .n-etape::before { top: 15px; }
  .n-saisie { margin: 0; padding: 8px 10px 8px; border-top: 1px solid var(--bord); background: #0b0e11; max-width: none; }
  .n-saisie-ligne { padding: 6px 6px 6px 10px; border-radius: 26px; gap: 6px; }
  .n-icone-bouton.rond { width: 40px; height: 40px; background: transparent; }
  #n-champ { padding: 9px 2px; }
  .n-envoyer { width: 46px; height: 46px; border-radius: 50%; flex-basis: 46px; }
  .n-actions-rapides { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
  .n-actions-rapides button { height: 34px; font-size: 13px; padding: 0 12px; }
  .n-aide-clavier { display: none; }
  .n-onglets { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--bord); background: #0b0e11; padding-bottom: env(safe-area-inset-bottom); }
  .n-onglets button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 0 10px; border: 0; background: transparent; color: var(--texte3); font-size: 12.5px; }
  .n-onglets button[aria-current="page"] { color: var(--rouge); font-weight: 600; }
  .n-onglets .n-badge { position: absolute; top: 4px; left: calc(50% + 6px); }
  .n-filtres { grid-template-columns: 1fr; }
  .validation dl { grid-template-columns: 1fr; }
  .n-meta { grid-template-columns: 1fr; }
  .n-notes { top: auto; bottom: 150px; left: 14px; right: 14px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.n-renommer { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--s4); color: var(--rouge); flex: 1; }
.n-fil-titres .n-renommer { padding: 2px 6px; }
@media (max-width: 760px) { .n-fil-tete { border-bottom: 1px solid var(--bord); padding-bottom: 6px; } }

/* 19/10/2026 : lot de validation (sélection multiple) */
.n-lot-choix { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.n-lot-choix input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.n-lot-carte[data-groupe="doublons_incompletes"] { opacity: .8; }
.n-lot-recap ul, .n-lot-resultat ul { max-height: 18rem; overflow: auto; }

/* 21/10/2026 : croix de suppression des cartes de mission — haut à droite, zone de clic 44 px (ordinateur et mobile). */
.n-mission-supprimable { position: relative; }
.n-mission-supprimable > .n-mligne, .n-mission-supprimable > .n-carte-ligne, .n-mission-supprimable > .n-mligne-cadre, .n-mission-supprimable > .n-carte-ligne-cadre { padding-right: 52px; }
.n-supprimer-mission { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--rouge); background: transparent; color: var(--rouge); cursor: pointer; z-index: 2; }
.n-supprimer-mission:hover, .n-supprimer-mission:focus-visible { background: var(--rouge); color: #fff; outline: 2px solid var(--rouge); outline-offset: 1px; }
.n-mission-supprimable.annulation { opacity: .6; pointer-events: none; }
.n-annulation { display: block; padding: 0 52px 8px 46px; color: var(--rouge); font-size: 13px; }
.n-annulation[hidden] { display: none; }

/* 10/11/2026 : rubrique Commercial & Communication (dossiers OSLO / RAGNARD) */
.n-com-champ { margin: 0 0 12px; }
.n-com-champ > small { display: block; color: var(--rouge); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; margin-bottom: 2px; }
.n-com-champ p, .n-com-champ ul { margin: 0; overflow-wrap: anywhere; }
.n-com-champ ul { padding-left: 18px; }
.n-plans { margin: 4px 0 0; padding-left: 20px; }
.n-plans li { margin-bottom: 10px; }
.n-plans small { color: var(--texte2, #9aa3ad); }
.n-com-texte { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; font-size: 12.5px; margin: 6px 0 0; }
.n-com-alerte { border-color: var(--rouge) !important; }
