/* atlas.css — CRM REP, mode Atlas : thème « Signal chantier » (comme le site de REP) + Atlas partout.
   Chargé après app.css : redéfinit les couleurs et habille tous les écrans existants. */

:root {
  --bg: #06070b;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f4f6fb;
  --muted: #a1a9bb;
  --faint: #6f7689;
  --red: #e31d1d;
  --red-2: #ff4b4b;
  --red-bg: rgba(227, 29, 29, .15);
  --signal: #ffc21a;
  --radius: 16px;
  --side: 244px;
  --ax-niv: 0;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: Unbounded, "Plus Jakarta Sans", system-ui, sans-serif;
}
html, body { font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
body {
  background:
    radial-gradient(1100px 700px at 100% -10%, rgba(227, 29, 29, .13), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(255, 194, 26, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 24px; }
h2 { font-weight: 700; letter-spacing: -.01em; }
::selection { background: rgba(227, 29, 29, .5); }

/* Écrans existants : verre, rayons plus doux, relief */
.card, .kpi, .col, .eq, .gantt { background: var(--panel); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card, .kpi { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -30px rgba(0, 0, 0, .8); }
.kpi { transition: transform .25s var(--ease), border-color .25s; }
.kpi:hover { transform: translateY(-2px); border-color: var(--line-2); }
.btn { border-radius: 999px; padding: 7px 15px; background: var(--panel-2); border-color: var(--line-2); transition: all .2s var(--ease); }
.btn.primary { background: linear-gradient(180deg, #f03030, #c71616); border-color: transparent; box-shadow: 0 8px 22px -10px rgba(227, 29, 29, .9); }
.btn.primary:hover { filter: brightness(1.08); background: linear-gradient(180deg, #f03030, #c71616); }
input.in, select.in, textarea.in { background: rgba(0, 0, 0, .35); border-radius: 12px; border-color: var(--line-2); }
input.in:focus, select.in:focus, textarea.in:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 29, 29, .18); }
.deal { background: rgba(255, 255, 255, .04); border-radius: 12px; }
.modal { background: #0d0f16; border-radius: 20px; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
.modal-bg { backdrop-filter: blur(6px); }
.t tbody tr.link:hover td { background: rgba(255, 255, 255, .04); }

.side { background: rgba(8, 9, 14, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right-color: var(--line); }
.nav a { border-radius: 12px; padding: 10px 12px; transition: background .2s, color .2s; }
.nav a.on { background: linear-gradient(90deg, rgba(227, 29, 29, .22), rgba(227, 29, 29, .04)); box-shadow: inset 2px 0 0 var(--red); }
.nav a[href="#/"] { font-weight: 700; color: #fff; }
.nav a[href="#/"] svg { color: var(--signal); }
.mobilebar { background: rgba(6, 7, 11, .85); }
.tabbar { background: rgba(8, 9, 14, .92); backdrop-filter: blur(16px); }
.tabbar a[href="#/"] svg { color: var(--signal); }

/* ---------- Atlas : orbe (portrait vivant) ---------- */
.ax-orbe { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: conic-gradient(from 0deg, var(--red), var(--signal), var(--red)); padding: 2px; }
.ax-orbe img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #10131c; border: 2px solid #0b0d14; }
.ax-orbe::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(227, 29, 29, .55);
  transform: scale(calc(1 + var(--ax-niv) * .22)); opacity: calc(.25 + var(--ax-niv)); transition: transform .08s linear; }
.ax-orbe.sm { width: 38px; height: 38px; }
body.ax-ecoute .ax-orbe::after { border-color: var(--signal); animation: ax-pouls 1.2s ease-out infinite; }
@keyframes ax-pouls { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

/* Bouton d'Atlas en bas à droite */
.ax-dock { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(14, 16, 24, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #fff; cursor: pointer; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(227, 29, 29, .55); transition: transform .25s var(--ease), opacity .25s; }
.ax-dock:hover { transform: translateY(-2px); }
.ax-dock-t { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.ax-dock-t b { font-family: var(--display); font-size: 14px; }
.ax-dock-t small { color: var(--faint); font-size: 11px; }
body.ax-ouvert .ax-dock { opacity: 0; pointer-events: none; transform: scale(.9); }

/* ---------- Panneau d'Atlas ---------- */
.ax-panneau { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); z-index: 45; display: flex; flex-direction: column;
  background: rgba(10, 12, 19, .9); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 30px 90px -40px rgba(227, 29, 29, .7);
  transform: translateX(calc(100% + 24px)); transition: transform .4s var(--ease); }
.ax-panneau.on { transform: none; }
@media (min-width: 1280px) { body.ax-ouvert .shell { padding-right: 484px; } body.ax-ouvert .shell .main { transition: padding .3s; } }
.ax-tete { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(227, 29, 29, .16), transparent 70%); }
.ax-tete-t { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.ax-tete-t b { font-family: var(--display); font-size: 15px; }
.ax-tete-t small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.ax-tete-t small i, .ax-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; display: inline-block; }
.ax-tete .iconbtn { font-size: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.ax-tete .iconbtn svg { width: 18px; height: 18px; }
#axVoix.on { background: rgba(255, 194, 26, .16); color: var(--signal); }

/* Panneau = agent vivant du site : Atlas en grand, Appeler / Écrire, sous-titres */
.ax-p-hero { position: relative; height: 270px; flex: none; overflow: hidden; background: #0b0d14; }
.ax-p-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: filter .3s; }
.ax-p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 19, 0) 40%, rgba(10, 12, 19, .95)); pointer-events: none; }
body.ax-parle .ax-p-hero video { filter: brightness(1.08) saturate(1.1); }
.ax-p-hero { box-shadow: inset 0 0 0 calc(var(--ax-niv) * 3px) rgba(227, 29, 29, .8); }
.ax-p-top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; gap: 8px; align-items: center; }
.ax-p-top span { flex: 1; }
.ax-p-top button { border: 0; cursor: pointer; padding: 7px 11px; border-radius: 999px; background: rgba(10, 12, 19, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-weight: 700; font-size: 12.5px; }
.ax-p-top button:hover { background: rgba(10, 12, 19, .85); }
.ax-p-id { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; }
.ax-p-id b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -.01em; }
.ax-p-id span { font-size: 12.5px; color: #9ff0d0; display: flex; align-items: center; gap: 6px; }
.ax-p-id i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; display: inline-block; }
.ax-p-sous { position: absolute; left: 14px; right: 14px; bottom: 70px; z-index: 2; padding: 9px 12px; border-radius: 14px; background: rgba(10, 12, 19, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; line-height: 1.4; color: #fff; max-height: 92px; overflow: hidden; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.ax-p-sous.on { opacity: 1; transform: none; }
.ax-p-acts { display: flex; gap: 8px; padding: 12px 14px 4px; }
.ax-p-acts button { flex: 1; border: 0; cursor: pointer; padding: 12px 10px; border-radius: 14px; font-weight: 800; font-size: 14px; }
.ax-p-appel { background: linear-gradient(90deg, #e31d1d, #ff4a3d); color: #fff; box-shadow: 0 10px 30px rgba(227, 29, 29, .35); }
.ax-p-ecrire { background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .16) !important; }
.ax-p-appelv { display: none; flex-direction: column; align-items: center; gap: 14px; padding: 18px 18px 22px; text-align: center; }
.ax-panneau.appel .ax-p-appelv { display: flex; }
.ax-panneau.appel .ax-p-acts, .ax-panneau.appel .ax-fil, .ax-panneau.appel .ax-saisie, .ax-panneau.appel .ax-p-sous { display: none; }
.ax-panneau.appel .ax-p-hero { height: min(430px, 52vh); }
.ax-p-st { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.ax-p-st.l { color: #34d399; } .ax-p-st.s { color: var(--signal); } .ax-p-st.t { color: #a5b4fc; }
.ax-p-onde { display: flex; gap: 4px; height: 30px; align-items: center; }
.ax-p-onde i { width: 5px; border-radius: 3px; background: var(--red); height: calc(6px + var(--ax-niv) * 24px); transition: height .08s; }
.ax-p-onde i:nth-child(2n) { height: calc(6px + var(--ax-niv) * 16px); } .ax-p-onde i:nth-child(3n) { height: calc(6px + var(--ax-niv) * 28px); }
body.ax-ecoute .ax-p-onde i { background: #34d399; animation: ax-onde 1s ease-in-out infinite; }
body.ax-ecoute .ax-p-onde i:nth-child(2n) { animation-delay: .2s; } body.ax-ecoute .ax-p-onde i:nth-child(3n) { animation-delay: .4s; }
@keyframes ax-onde { 50% { height: 22px; } }
.ax-p-tr { width: 100%; min-height: 48px; max-height: 140px; overflow: auto; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: #d6dbe7; font-size: 13.5px; }
.ax-p-racc { border: 0; cursor: pointer; padding: 13px 26px; border-radius: 999px; background: #ef4444; color: #fff; font-weight: 800; box-shadow: 0 12px 30px rgba(239, 68, 68, .35); }

.ax-fil { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.ax-msg { display: flex; gap: 8px; max-width: 100%; animation: ax-entre .35s var(--ease); }
@keyframes ax-entre { from { opacity: 0; transform: translateY(6px); } }
.ax-msg.moi { align-self: flex-end; max-width: 85%; background: linear-gradient(180deg, #e52424, #b91414); color: #fff; padding: 9px 13px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; }
.ax-mini { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; margin-top: 2px; border: 1px solid rgba(255, 255, 255, .15); }
.ax-bulle { min-width: 0; flex: 1; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); padding: 10px 13px; border-radius: 4px 16px 16px 16px; font-size: 13.5px; line-height: 1.5; }
.ax-bulle p { margin: 0 0 6px; } .ax-bulle p:last-child { margin-bottom: 0; }
.ax-bulle ul { margin: 4px 0 8px; padding-left: 18px; } .ax-bulle li { margin: 2px 0; }
.ax-msg.err .ax-bulle { border-color: rgba(227, 29, 29, .5); }
.ax-lien { color: var(--signal); text-decoration: underline; text-decoration-color: rgba(255, 194, 26, .4); text-underline-offset: 2px; font-weight: 600; }
.ax-pense { color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ax-pense span { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: ax-point 1s infinite; }
.ax-pense span:nth-child(2) { animation-delay: .15s; } .ax-pense span:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes ax-point { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ax-vide { text-align: center; padding: 26px 8px; color: var(--muted); }
.ax-vide img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid rgba(227, 29, 29, .6); box-shadow: 0 0 40px -6px rgba(227, 29, 29, .7); }
.ax-vide b { color: #fff; }
.ax-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 12px; }
.ax-chips button { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; transition: all .2s; }
.ax-chips button:hover { border-color: var(--signal); color: var(--signal); }

/* Cartes d'action (proposées par Atlas, confirmées par l'équipe) */
.ax-carte { margin-top: 10px; border: 1px solid rgba(255, 194, 26, .35); background: linear-gradient(180deg, rgba(255, 194, 26, .08), rgba(255, 194, 26, .02)); border-radius: 14px; padding: 11px 12px; }
.ax-carte.ok { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .06); }
.ax-carte-h { display: flex; gap: 10px; align-items: center; }
.ax-carte-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 194, 26, .16); color: var(--signal); font-weight: 800; flex: none; }
.ax-carte-t { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
.ax-carte-t small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--signal); font-weight: 700; }
.ax-carte-d { color: var(--muted); margin-top: 6px; font-size: 13px; }
.ax-carte-p { margin-top: 6px; font-size: 12.5px; color: #d6dbe7; display: grid; gap: 2px; }
.ax-carte-acts { display: flex; gap: 8px; margin-top: 10px; }
.ax-fait { margin-top: 8px; font-weight: 700; color: #34d399; font-size: 13px; }

.ax-saisie { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.ax-saisie input { flex: 1; min-width: 0; background: rgba(0, 0, 0, .4); border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 16px; outline: none; color: #fff; }
.ax-saisie input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 29, 29, .18); }
.ax-micro, .ax-go { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s var(--ease), background .2s; }
.ax-micro { background: rgba(255, 255, 255, .08); color: #fff; }
.ax-micro svg, .ax-go svg { width: 20px; height: 20px; }
body.ax-ecoute .ax-micro { background: var(--signal); color: #111; animation: ax-micro 1s ease-in-out infinite; }
@keyframes ax-micro { 50% { transform: scale(1.08); } }
.ax-go { background: linear-gradient(180deg, #f03030, #c71616); color: #fff; }
.ax-go:hover { transform: scale(1.05); }
.ax-go:disabled { opacity: .5; }

/* ---------- Accueil : Atlas en grand ---------- */
.ax-hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 470px; display: flex; align-items: flex-end; margin: -4px 0 26px;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 100px -40px rgba(227, 29, 29, .55); isolation: isolate; }
.ax-hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; }
.ax-hero-voile { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 7, 11, .96) 0%, rgba(6, 7, 11, .82) 38%, rgba(6, 7, 11, .15) 70%, transparent),
              linear-gradient(0deg, rgba(6, 7, 11, .9), transparent 45%); }
.ax-hero-txt { padding: 34px 36px 30px; max-width: 660px; }
.ax-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #d9dfec;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.ax-titre { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.02; margin: 16px 0 14px; letter-spacing: -.035em; }
.ax-titre span { background: linear-gradient(90deg, #fff, var(--signal) 55%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ax-brief { font-size: 15.5px; line-height: 1.6; color: #dfe4ef; margin: 0 0 18px; min-height: 50px; max-width: 600px; }
.ax-shimmer { display: block; height: 13px; border-radius: 7px; margin: 6px 0 10px; width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: ax-sh 1.4s infinite; }
.ax-shimmer.court { width: 62%; }
@keyframes ax-sh { to { background-position: -200% 0; } }
.ax-hero-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ax-btn-blanc { background: #fff; color: #0b0d14; border-color: #fff; font-weight: 700; }
.ax-btn-blanc:hover { background: #fff; filter: brightness(.94); }
.ax-btn-verre { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); font-weight: 600; }
body.ax-parle #axEcouterBrief { background: var(--signal); border-color: var(--signal); }
.ax-demande { display: flex; gap: 8px; align-items: center; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 5px 5px 5px 18px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 620px; transition: border-color .2s, box-shadow .2s; }
.ax-demande:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 29, 29, .2); }
.ax-demande input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 15px; padding: 9px 0; }
.ax-hero .ax-chips { justify-content: flex-start; }
.ax-hero .ax-chips button { background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }

.ax-sec { margin-bottom: 28px; }
.ax-sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ax-sec-h h2 { font-family: var(--display); font-size: 17px; margin: 0; }
.ax-missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ax-mission { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 12px;
  overflow: hidden; transition: transform .25s var(--ease), border-color .25s; animation: ax-entre .45s var(--ease) both; }
.ax-mission:hover { transform: translateY(-2px); border-color: var(--line-2); }
.ax-mission::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--line-2)); box-shadow: 0 0 24px var(--c, transparent); }
.ax-mission.rouge { --c: var(--red); } .ax-mission.jaune { --c: var(--signal); } .ax-mission.bleu { --c: #5b8cff; }
.ax-m-h { display: flex; gap: 11px; align-items: flex-start; }
.ax-m-h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ax-m-h b { font-size: 14px; line-height: 1.3; }
.ax-m-h small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ax-m-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; font-weight: 800;
  background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.ax-m-mt { font-weight: 800; font-size: 15px; }
.ax-m-acts { display: flex; gap: 8px; margin-top: auto; }
.ax-btn-atlas { background: linear-gradient(90deg, rgba(227, 29, 29, .22), rgba(255, 194, 26, .12)); border-color: rgba(227, 29, 29, .45); font-weight: 700; padding-left: 4px; }
.ax-btn-atlas img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ax-btn-atlas:hover { border-color: var(--signal); }
.ax-zen { background: linear-gradient(90deg, rgba(52, 211, 153, .1), transparent); border: 1px solid rgba(52, 211, 153, .3); border-radius: 18px; padding: 18px; color: #c9f5e2; }

.ax-pouls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ax-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; transition: transform .25s var(--ease), border-color .25s; }
.ax-kpi:hover { transform: translateY(-2px); border-color: var(--line-2); }
.ax-kpi small { color: var(--muted); font-size: 12px; font-weight: 600; }
.ax-kpi b { font-family: var(--display); font-size: 24px; letter-spacing: -.03em; }
.ax-kpi b em { font-style: normal; color: var(--faint); font-size: 15px; }
.ax-kpi span { color: var(--faint); font-size: 12px; }
.ax-kpi.chaud { border-color: rgba(227, 29, 29, .45); background: linear-gradient(180deg, rgba(227, 29, 29, .12), rgba(227, 29, 29, .02)); }
.ax-kpi.chaud b { color: #ff6b6b; }
.ax-kpi.tiede b { color: var(--signal); }

@media (max-width: 1100px) { .ax-pouls { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ax-hero { min-height: 560px; border-radius: 20px; margin: 0 0 20px; }
  .ax-hero-v { object-position: 78% 20%; }
  .ax-hero-voile { background: linear-gradient(0deg, rgba(6, 7, 11, .98) 30%, rgba(6, 7, 11, .55) 62%, rgba(6, 7, 11, .1)); }
  .ax-hero-txt { padding: 22px 18px 20px; }
  .ax-pouls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-missions { grid-template-columns: 1fr; }
  .ax-dock { right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); padding: 4px; }
  .ax-dock-t { display: none; }
  .ax-panneau { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; border: 0; }
  .ax-p-hero { height: 30vh; }
  .ax-panneau.appel .ax-p-hero { height: 52vh; }
  .ax-saisie { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .ax-saisie input { font-size: 16px; }
  .ax-demande input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ax-hero-v { display: none; } .ax-hero { background: url(/atlas/nacelle.jpg) 70% 30% / cover; } * { animation: none !important; } }
@media print { .ax-dock, .ax-panneau { display: none !important; } }

/* Accueil sans vidéo (2026-10-16) : fond REP à la place de la vidéo d'Atlas dans sa nacelle */
.ax-hero { background: radial-gradient(70% 90% at 85% 20%, rgba(227, 29, 29, .35), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(255, 194, 26, .12), transparent 60%), #0b0d14; }
/* Gros rond d'Atlas en bas à droite, copie du rond des ébauches de zenitech.dev (anneau néon, vidéo vivante, « en ligne ») */
.ax-dock.ax-rond { padding: 0; background: none; border: 0; box-shadow: none; flex-direction: column; gap: 8px; border-radius: 0; animation: ax-rond-in .6s cubic-bezier(.2, .8, .2, 1) .3s backwards; }
.ax-dock.ax-rond:hover { transform: translateY(-4px); }
.ax-rond-o { position: relative; width: var(--ax-rs, 150px); height: var(--ax-rs, 150px); display: block; transition: width .4s, height .4s; }
.ax-rond-ring { position: absolute; inset: -8px; border-radius: 50%; background: conic-gradient(from 0deg, #3CE1FF, #2E7FFF, #FF28D2, #FFD746, #3CE1FF); animation: ax-rond-spin 6s linear infinite; filter: saturate(1.2); }
.ax-rond-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #070A12; }
.ax-rond-glow { position: absolute; inset: -24px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 225, 255, .45), rgba(255, 40, 210, .18) 60%, transparent); animation: ax-rond-breathe 3.2s ease-in-out infinite; }
.ax-rond-ping { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(60, 225, 255, .6); animation: ax-rond-ping 2.8s cubic-bezier(0, 0, .2, 1) infinite; }
.ax-rond-o video, .ax-rond-o .ax-rond-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #0A0F1A; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); transform: scale(calc(1 + var(--ax-niv) * .04)); }
.ax-rond-on { position: absolute; right: 6%; bottom: 6%; width: 16px; height: 16px; border-radius: 50%; background: #34D399; border: 3px solid #070A12; box-shadow: 0 0 12px #34D399; }
.ax-rond-pill { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 10, 18, .88); color: #EDF2FA; border: 1px solid rgba(60, 225, 255, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.ax-rond-pill b { color: #fff; }
.ax-rond-pill i { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; animation: ax-rond-blink 1.6s infinite; }
@keyframes ax-rond-in { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes ax-rond-spin { to { transform: rotate(360deg); } }
@keyframes ax-rond-breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes ax-rond-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.3); opacity: 0; } }
@keyframes ax-rond-blink { 50% { opacity: .35; } }
@media (max-width: 760px) { .ax-dock.ax-rond { padding: 0; } .ax-rond-o { --ax-rs: 92px; } .ax-rond-pill { font-size: 11px; padding: 4px 9px; } }
@media print { .ax-dock.ax-rond { display: none !important; } }

/* Atlas en grand à côté de « Bon matin », comme sur un site (2026-10-16) */
.ax-hero-atlas { position: absolute; right: clamp(40px, 11vw, 220px); top: 50%; transform: translateY(-50%); width: clamp(220px, 24vw, 330px); aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; z-index: 1; transition: transform .3s; }
.ax-hero-atlas:hover { transform: translateY(calc(-50% - 4px)); }
.ax-hero-atlas video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #0A0F1A; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(calc(1 + var(--ax-niv) * .03)); }
.ax-ha-ring { position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 0deg, #3CE1FF, #2E7FFF, #FF28D2, #FFD746, #3CE1FF); animation: ax-rond-spin 6s linear infinite; filter: saturate(1.2); }
.ax-ha-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #070A12; }
.ax-ha-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 225, 255, .4), rgba(255, 40, 210, .16) 60%, transparent); animation: ax-rond-breathe 3.2s ease-in-out infinite; }
.ax-ha-tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: rgba(7, 10, 18, .9); color: #EDF2FA; border: 1px solid rgba(60, 225, 255, .45); white-space: nowrap; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.ax-ha-tag b { color: #fff; }
.ax-ha-tag i { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; animation: ax-rond-blink 1.6s infinite; }
@media (max-width: 1100px) { .ax-hero-atlas { width: 200px; right: 24px; } }
@media (max-width: 760px) { .ax-hero { flex-direction: column; align-items: stretch; } .ax-hero-atlas { position: relative; right: auto; top: auto; transform: none; width: 170px; margin: 26px auto 0; } .ax-hero-atlas:hover { transform: translateY(-4px); } }

/* Fluidité de l'accueil (10 nov. 2026, Alexandre : « ça saute ») : pas de flou d'arrière-plan sur et autour de la scène animée NJEE 360. */
.ax-hero, .ax-hero *, .side { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.ax-hero-voile { will-change: auto; }

/* ===== Accueil = NJEE en grand, un chat (10 nov. 2026, Alexandre : « njee en gros un chat rien de plus avec les options à lui demander et les suivis à côté ») ===== */
body:has(#njFil) #axDock { display: none; }
.nj { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; height: calc(100vh - 150px); min-height: 520px; }
.nj-chat { min-width: 0; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2, rgba(255,255,255,.12));
  background: radial-gradient(80% 60% at 85% 0%, rgba(227, 29, 29, .16), transparent 65%), radial-gradient(60% 50% at 0% 100%, rgba(255, 194, 26, .07), transparent 65%), rgba(9, 10, 16, .96); }
.nj-tete { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.nj-tete > img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 2px solid rgba(227, 29, 29, .7); }
.nj-qui { display: grid; line-height: 1.2; }
.nj-qui b { font-size: 19px; letter-spacing: -.01em; }
.nj-qui span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted, #9aa0b4); }
.nj-qui i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.nj-bt { border: 1px solid var(--line-2, rgba(255,255,255,.14)); background: rgba(255, 255, 255, .05); color: inherit; border-radius: 999px; padding: 7px 13px; font: 600 12.5px inherit; font-family: inherit; cursor: pointer; }
.nj-bt:hover { border-color: var(--signal, #ffc21a); color: var(--signal, #ffc21a); }
.nj-brief { margin: 0; padding: 10px 18px; font-size: 13.5px; color: #c7cbdb; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line, rgba(255,255,255,.06)); }
.nj-fil { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.nj-fil .ax-msg { font-size: 15px; }
.nj-fil .ax-bulle { font-size: 15px; line-height: 1.5; }
.nj-vide { margin: auto; max-width: 720px; text-align: center; padding: 10px 0; }
.nj-vide > img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 3px solid rgba(227, 29, 29, .75); box-shadow: 0 0 60px -10px rgba(227, 29, 29, .6); }
.nj-vide h2 { margin: 16px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.nj-vide p { margin: 0 auto 22px; max-width: 520px; color: var(--muted, #9aa0b4); line-height: 1.5; }
.nj-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
.nj-options button { text-align: left; display: grid; grid-template-columns: 34px 1fr; grid-template-areas: "i t" "i s"; column-gap: 11px; align-items: center; padding: 11px 14px; border-radius: 16px; cursor: pointer; color: inherit; font-family: inherit;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line-2, rgba(255,255,255,.12)); }
.nj-options button:hover { border-color: var(--signal, #ffc21a); background: rgba(255, 194, 26, .07); }
.nj-options span { grid-area: i; font-size: 22px; text-align: center; }
.nj-options b { grid-area: t; font-size: 14px; font-weight: 700; }
.nj-options small { grid-area: s; font-size: 12px; color: var(--muted, #9aa0b4); }
.nj-saisie { display: flex; align-items: center; gap: 10px; padding: 14px 18px 16px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.nj-saisie input { flex: 1; min-width: 0; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2, rgba(255,255,255,.14)); border-radius: 999px; padding: 14px 20px; outline: none; color: inherit; font-size: 15px; font-family: inherit; }
.nj-saisie input:focus { border-color: var(--red, #e31d1d); box-shadow: 0 0 0 3px rgba(227, 29, 29, .18); }
.nj-saisie .ax-micro, .nj-saisie .ax-go { width: 48px; height: 48px; }
.nj-suivis { min-width: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding-right: 2px; }
.nj-suivis-h { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 4px 0; }
.nj-suivis-h h2 { margin: 0; font-size: 18px; }
.nj-suivis-l { display: grid; gap: 10px; }
.nj-suivis .ax-mission { margin: 0; }
@media (max-width: 1000px) { .nj { grid-template-columns: 1fr; height: auto; } .nj-chat { height: calc(100vh - 170px); } .nj-suivis { overflow: visible; } }
@media (max-width: 760px) { .nj-options { grid-template-columns: 1fr; } .nj-chat { border-radius: 18px; } }

/* Mode vocal de l'accueil (11 nov. 2026, Alexandre : « je veux aussi le mode vocal, pas juste du texte »). Transform/opacité seulement : pas de saccades. */
.nj-voix { display: grid; justify-items: center; gap: 8px; padding: 22px 18px 14px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.nj-orbe { position: relative; width: 150px; height: 150px; }
.nj-orbe img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 4px solid rgba(227, 29, 29, .8); background: #0b0d14; }
.nj-onde { position: absolute; inset: -14px; border-radius: 50%; border: 3px solid rgba(255, 194, 26, .55); opacity: 0; transform: scale(calc(.92 + var(--ax-niv, 0) * .22)); transition: transform .09s linear, opacity .2s; will-change: transform, opacity; }
.nj-voix[data-etat="s"] .nj-onde { opacity: .9; }
.nj-voix[data-etat="l"].appel .nj-onde { opacity: .7; border-color: rgba(34, 197, 94, .7); transform: scale(1.06); }
.nj-voix[data-etat="t"] .nj-onde { opacity: .6; border-color: rgba(91, 140, 255, .7); transform: scale(1.04); }
.nj-etat { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.nj-sous { min-height: 1.4em; max-width: 640px; text-align: center; font-size: 14px; color: #c7cbdb; line-height: 1.4; }
.nj-appel { border: 0; cursor: pointer; padding: 14px 34px; border-radius: 999px; font: 800 16px inherit; font-family: inherit; color: #fff; background: linear-gradient(180deg, #f03030, #c71616); }
.nj-appel:hover { filter: brightness(1.1); }
.nj-voix.appel .nj-appel { background: linear-gradient(180deg, #3a3f52, #23273a); }
.nj-chat.conv .nj-orbe { width: 84px; height: 84px; }
.nj-chat.conv .nj-voix { padding: 12px 18px 10px; gap: 4px; }
.nj-chat.conv .nj-etat { font-size: 14px; }
.nj-chat.conv .nj-appel { padding: 9px 22px; font-size: 14px; }
.nj-tete > img { display: none; }
@media (max-height: 760px) { .nj-orbe { width: 100px; height: 100px; } .nj-voix { padding: 12px 18px 8px; } }
.nj-vide { padding: 4px 0; } .nj-vide h2 { display: none; } .nj-vide p { margin-bottom: 12px; font-size: 13.5px; }
.nj-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nj-options button { grid-template-columns: 1fr; grid-template-areas: "i" "t"; row-gap: 4px; padding: 10px 10px; text-align: center; justify-items: center; }
.nj-options small { display: none; } .nj-options span { font-size: 20px; } .nj-options b { font-size: 12.5px; line-height: 1.25; }
@media (max-width: 760px) { .nj-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== NJEE cockpit : ultra tech (11 nov. 2026). Quadrillage statique, cadres à coins, chiffres en direct ; seule animation : l'anneau tourne (transform) et l'onde suit la voix. ===== */
.nj { grid-template-columns: minmax(0, 1fr) 400px; }
.nj-chat { border: 1px solid rgba(255, 194, 26, .28); border-radius: 18px; position: relative;
  background: linear-gradient(rgba(255, 194, 26, .045) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(90deg, rgba(255, 194, 26, .045) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(60% 45% at 50% 18%, rgba(227, 29, 29, .22), transparent 70%), #07080d; }
.nj-chat::before, .nj-chat::after, .nj-info::before { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; border: 2px solid #ffc21a; }
.nj-chat::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.nj-chat::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.nj-tete { background: rgba(0, 0, 0, .35); border-bottom: 1px solid rgba(255, 194, 26, .2); }
.nj-qui b { letter-spacing: .14em; text-transform: uppercase; font-size: 15px; }
.nj-qui span { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; color: #8fd9a8; }
.nj-bt { border-radius: 6px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; border-color: rgba(255, 194, 26, .35); }
.nj-voix { border-bottom: 1px solid rgba(255, 194, 26, .2); padding: 26px 24px 16px; background: transparent; }
.nj-orbe { width: 190px; height: 190px; margin-bottom: 6px; }
.nj-orbe img { width: 82%; height: 82%; margin: 9%; border-width: 3px; border-color: rgba(255, 194, 26, .85); }
.nj-hud { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); animation: nj-tourne 46s linear infinite; will-change: transform; pointer-events: none; }
@keyframes nj-tourne { to { transform: rotate(360deg); } }
.nj-onde { inset: -26px; }
.nj-etat { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: #ffc21a; }
.nj-sous { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #9fe8ff; }
.nj-appel { border-radius: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; padding: 13px 30px; }
.nj-bloc { width: min(760px, 100%); margin-top: 10px; padding: 10px 14px; border-left: 3px solid #ffc21a; background: rgba(255, 194, 26, .05); text-align: left; }
.nj-bloc small { display: block; font-size: 10px; letter-spacing: .18em; color: #ffc21a; margin-bottom: 4px; }
.nj-brief { margin: 0; padding: 0; border: 0; background: none; font-size: 14px; line-height: 1.5; color: #dfe3f0; max-height: 6.5em; overflow: auto; }
.nj-chat.conv .nj-orbe { width: 96px; height: 96px; } .nj-chat.conv .nj-bloc { display: none; } .nj-chat.conv .nj-hud { inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); }
.nj-options button { border-radius: 8px; border-color: rgba(255, 194, 26, .22); }
.nj-saisie { background: rgba(0, 0, 0, .4); border-top-color: rgba(255, 194, 26, .2); }
.nj-saisie input { border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.nj-saisie .ax-micro, .nj-saisie .ax-go { border-radius: 8px; }
.nj-suivis-h h2 { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: #ffc21a; }
.nj-infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nj-info { position: relative; display: grid; gap: 1px; padding: 10px 12px 9px; border-radius: 6px; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .1); background: #0b0c13; overflow: hidden; }
.nj-info::before { left: -1px; top: -1px; width: 9px; height: 9px; border-right: 0; border-bottom: 0; }
.nj-info small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8d93a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nj-info b { font: 800 28px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.02em; line-height: 1.15; }
.nj-info span { font-size: 11px; color: #9aa0b4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nj-info:hover { border-color: #ffc21a; background: #11121b; }
.nj-info.on { border-color: rgba(227, 29, 29, .7); } .nj-info.on small { color: #ff6b6b; } .nj-info.on b { color: #ffc21a; }
@media (prefers-reduced-motion: reduce) { .nj-hud { animation: none; } }
@media (max-width: 1000px) { .nj { grid-template-columns: 1fr; } }
.nj-orbe { width: 150px; height: 150px; } .nj-voix { padding: 16px 24px 12px; } .nj-vide p { display: none; } .nj-vide { padding: 0; }
.nj-chat.conv .nj-orbe { width: 84px; height: 84px; }
