/* Noctalis Panel - "Nuit lunaire"
   Concept : salle de controle d'un observatoire. Fond nuit teinte violet, argent lunaire pour le texte, amethyste pour l'action,
   cyan comete pour les donnees. Theme sombre unique. Les effets (lueur, mouvement) sont gardes pour l'element actif et les etats. */

@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  /* surfaces (neutres teintes violet, jamais de gris pur) */
  --bg: #0b0a1a; --bg-2: #0f0e22; --surf: #14132b; --surf-2: #1b1a3a; --surf-3: #25234b;
  --line: rgba(170, 160, 255, .13); --line-2: rgba(170, 160, 255, .26);
  /* texte */
  --txt: #ebeaf7; --txt-2: #aeacce; --txt-3: #7f7da3;
  /* accents */
  --acc: #8b6cff; --acc-2: #b1a0ff; --acc-3: #6a4ce0; --acc-soft: rgba(139, 108, 255, .16); --acc-glow: rgba(139, 108, 255, .45);
  --cyan: #4fd8ff; --cyan-soft: rgba(79, 216, 255, .14);
  /* etats (distincts de l'accent) */
  --ok: #3ee0a0; --ok-soft: rgba(62, 224, 160, .14); --warn: #ffb347; --warn-soft: rgba(255, 179, 71, .14); --err: #ff5d7a; --err-soft: rgba(255, 93, 122, .14);
  /* series de graphiques (palette verifiee : CVD, contraste, bande de luminosite) */
  --s1: #8b6cff; --s2: #14a3cf; --s3: #e8588f;
  /* formes */
  --r-s: 8px; --r-m: 12px; --r-l: 18px;
  --shadow: 0 10px 30px -12px rgba(2, 0, 20, .7), 0 2px 6px rgba(2, 0, 20, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif; --f-body: "Inter", system-ui, "Segoe UI", sans-serif; --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--txt); font: 400 14px/1.55 var(--f-body); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 520px at 8% -6%, rgba(139, 108, 255, .13), transparent 60%), radial-gradient(700px 480px at 100% 100%, rgba(79, 216, 255, .06), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--acc-2); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1.55rem; font-weight: 600; } h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--acc-glow); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--surf-3); border-radius: 10px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }
.mono { font-family: var(--f-mono); font-size: .86em; } .doux { color: var(--txt-2); } .faible { color: var(--txt-3); font-size: .85rem; } .num { font-variant-numeric: tabular-nums; }
.espace { flex: 1; } .ligne { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; } .pile { display: flex; flex-direction: column; gap: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- boutons et champs ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 .88rem var(--f-body); color: #fff; background: linear-gradient(180deg, var(--acc), var(--acc-3)); border: 0; border-radius: var(--r-s); padding: .55rem .95rem; cursor: pointer;
  box-shadow: 0 6px 18px -8px var(--acc-glow), inset 0 1px 0 rgba(255, 255, 255, .22); transition: transform .15s var(--ease), box-shadow .2s, filter .2s; }
.btn:hover { filter: brightness(1.1); box-shadow: 0 8px 22px -6px var(--acc-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn.sec { background: var(--surf-2); color: var(--txt); border: 1px solid var(--line-2); box-shadow: none; } .btn.sec:hover { background: var(--surf-3); }
.btn.ghost { background: transparent; color: var(--txt-2); border: 1px solid transparent; box-shadow: none; } .btn.ghost:hover { background: var(--acc-soft); color: var(--txt); }
.btn.danger { background: linear-gradient(180deg, #ff6f8a, #e0415f); box-shadow: 0 6px 18px -8px rgba(255, 93, 122, .6), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.sm { padding: .32rem .62rem; font-size: .8rem; } .btn svg { width: 1.05em; height: 1.05em; }
.btn.charge::after { content: ""; width: .9em; height: .9em; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: tourne .7s linear infinite; }
.champ { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 150px; } .champ > span { font-size: .78rem; color: var(--txt-2); font-weight: 500; }
input, select, textarea { font: inherit; color: var(--txt); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: .55rem .7rem; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: var(--txt-3); }
input:hover, select:hover, textarea:hover { border-color: rgba(170, 160, 255, .4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238f8db5' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
.recherche { position: relative; min-width: 220px; flex: 1; max-width: 420px; } .recherche svg { position: absolute; left: .7rem; top: 50%; translate: 0 -50%; width: 1rem; color: var(--txt-3); } .recherche input { padding-left: 2.2rem; }
.case { display: inline-flex; gap: .5rem; align-items: center; color: var(--txt-2); font-size: .85rem; cursor: pointer; } .case input { width: auto; accent-color: var(--acc); }

/* ---------- cartes, puces, badges ---------- */
.carte { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--surf); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); min-width: 0; }
.carte > h3:first-child { margin-bottom: .75rem; }
.carte.survol { transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; } .carte.survol:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 1px var(--acc-soft), 0 14px 40px -18px var(--acc-glow); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; } .grille.petite { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); } .grille.large { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .12rem .55rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc-2); border: 1px solid rgba(139, 108, 255, .28); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(62, 224, 160, .28); } .badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(255, 179, 71, .3); }
.badge.err { background: var(--err-soft); color: var(--err); border-color: rgba(255, 93, 122, .3); } .badge.cyan { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(79, 216, 255, .3); } .badge.gris { background: var(--surf-2); color: var(--txt-2); border-color: var(--line); }
.pastille { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--txt-3); flex: none; }
.pastille.active { background: var(--ok); box-shadow: 0 0 0 0 rgba(62, 224, 160, .6); animation: pulse 2.2s infinite; } .pastille.failed { background: var(--err); } .pastille.activating, .pastille.deactivating { background: var(--warn); animation: pulse-w 1.2s infinite; }
.message { padding: .7rem .9rem; border-radius: var(--r-m); background: var(--surf-2); border: 1px solid var(--line-2); } .message.ko { border-color: rgba(255, 93, 122, .45); background: var(--err-soft); } .message.ok { border-color: rgba(62, 224, 160, .45); background: var(--ok-soft); } .message.info { border-color: rgba(79, 216, 255, .4); background: var(--cyan-soft); }
code { font-family: var(--f-mono); font-size: .86em; background: var(--bg-2); border: 1px solid var(--line); padding: .08rem .38rem; border-radius: 6px; user-select: all; word-break: break-all; }
.etat-vide { text-align: center; color: var(--txt-3); padding: 2.2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; } .etat-vide svg { width: 2.2rem; height: 2.2rem; color: var(--acc); opacity: .7; }

/* ---------- tuiles chiffrees ---------- */
.tuile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; }
.tuile .etiquette { font-size: .72rem; color: var(--txt-2); display: flex; align-items: center; gap: .4rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; } .tuile .etiquette svg { width: .95rem; color: var(--acc-2); }
.tuile .valeur { font: 600 1.85rem/1.2 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .tuile .sous { font-size: .8rem; color: var(--txt-3); }
.tuile svg.spark { position: absolute; right: .8rem; top: 2.15rem; width: 38%; height: 34px; }

/* ---------- tableaux ---------- */
.tableau { width: 100%; overflow-x: auto; border-radius: var(--r-m); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; font-weight: 500; color: var(--txt-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; padding: .6rem .8rem; background: var(--surf); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: .62rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; } tbody tr { transition: background .15s; } tbody tr:hover { background: rgba(139, 108, 255, .07); } tbody tr:last-child td { border-bottom: 0; }
tr.cliquable { cursor: pointer; } td.droite, th.droite { text-align: right; } td.num { font-variant-numeric: tabular-nums; }
.barre { height: 6px; border-radius: 6px; background: var(--surf-3); overflow: hidden; min-width: 70px; } .barre > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--acc), var(--cyan)); transform-origin: left; animation: barre .7s var(--ease) both; }

/* ---------- onglets ---------- */
.onglets { display: inline-flex; gap: .2rem; padding: .25rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-m); flex-wrap: wrap; }
.onglets button { font: 500 .85rem var(--f-body); color: var(--txt-2); background: transparent; border: 0; padding: .42rem .85rem; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.onglets button:hover { color: var(--txt); } .onglets button.actif { background: var(--surf-3); color: var(--txt); box-shadow: 0 0 0 1px var(--line-2), 0 6px 16px -8px var(--acc-glow); }
.puce { font: 500 .8rem var(--f-body); color: var(--txt-2); background: var(--surf-2); border: 1px solid var(--line); padding: .3rem .75rem; border-radius: 99px; cursor: pointer; transition: all .15s; } .puce:hover { color: var(--txt); border-color: var(--line-2); } .puce.actif { background: var(--acc-soft); color: var(--acc-2); border-color: rgba(139, 108, 255, .5); }

/* ---------- squelettes ---------- */
.squelette { border-radius: var(--r-s); background: linear-gradient(100deg, var(--surf-2) 30%, var(--surf-3) 50%, var(--surf-2) 70%); background-size: 200% 100%; animation: brille 1.4s linear infinite; min-height: 1em; }

/* ---------- structure : menu, barre du haut ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.menu { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.1rem .8rem; background: linear-gradient(180deg, rgba(20, 19, 43, .92), rgba(11, 10, 26, .92)); border-right: 1px solid var(--line); backdrop-filter: blur(12px); z-index: 30; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: .65rem; padding: .2rem .5rem 1.1rem; font: 700 1.12rem var(--f-display); letter-spacing: .14em; } .logo svg { width: 30px; height: 30px; filter: drop-shadow(0 0 10px var(--acc-glow)); flex: none; }
.logo small { display: block; font: 500 .62rem var(--f-body); letter-spacing: .18em; color: var(--txt-3); margin-top: -2px; }
.groupe { margin: .9rem .5rem .35rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--txt-3); font-weight: 600; }
.menu a.lien { position: relative; display: flex; align-items: center; gap: .7rem; padding: .52rem .7rem; border-radius: var(--r-s); color: var(--txt-2); font-weight: 500; font-size: .9rem; text-decoration: none; transition: background .15s, color .15s; }
.menu a.lien svg { width: 1.1rem; height: 1.1rem; flex: none; opacity: .85; } .menu a.lien:hover { background: rgba(139, 108, 255, .09); color: var(--txt); }
.menu a.lien.actif { color: #fff; background: linear-gradient(90deg, rgba(139, 108, 255, .24), rgba(139, 108, 255, .06)); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .28); }
.menu a.lien.actif::before { content: ""; position: absolute; left: -.8rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); box-shadow: 0 0 12px var(--acc-glow); } .menu a.lien.actif svg { color: var(--acc-2); opacity: 1; }
.utilisateur { margin-top: auto; padding: .8rem .6rem .2rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .65rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 .82rem var(--f-display); color: #fff; flex: none; text-transform: uppercase; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.avatar.g { width: 52px; height: 52px; font-size: 1.15rem; }
.principal { min-width: 0; display: flex; flex-direction: column; }
.haut { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .8rem clamp(1rem, 2.4vw, 2rem); background: rgba(11, 10, 26, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.haut h1 { font: 600 1.08rem var(--f-display); } .haut .burger { display: none; }
.serveurs-haut { display: flex; gap: .45rem; flex-wrap: wrap; } .serveurs-haut .badge { gap: .45rem; padding: .22rem .65rem .22rem .55rem; }
.contenu { padding: clamp(1rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: 1.25rem; max-width: 1500px; width: 100%; }
.entete { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; } .entete p { color: var(--txt-2); margin-top: .2rem; }
.page { animation: entree .38s var(--ease) both; display: flex; flex-direction: column; gap: 1.25rem; }
.cascade > * { animation: entree .5s var(--ease) both; } .cascade > *:nth-child(2) { animation-delay: .05s; } .cascade > *:nth-child(3) { animation-delay: .1s; } .cascade > *:nth-child(4) { animation-delay: .15s; } .cascade > *:nth-child(5) { animation-delay: .2s; } .cascade > *:nth-child(n+6) { animation-delay: .25s; }

/* ---------- console ---------- */
.terminal { background: #07061a; border: 1px solid var(--line-2); border-radius: var(--r-m); font: 12.5px/1.5 var(--f-mono); overflow: auto; padding: .75rem .9rem; white-space: pre-wrap; word-break: break-word; box-shadow: inset 0 0 40px rgba(139, 108, 255, .05); }
.terminal.haute { height: min(62vh, 640px); } .terminal .l { display: block; padding: 0 .2rem; border-radius: 4px; } .terminal .l:hover { background: rgba(255, 255, 255, .03); }
.terminal .t { color: var(--txt-3); } .terminal .warn { color: var(--warn); } .terminal .err { color: var(--err); } .terminal .info { color: #c9c6ea; } .terminal .cmd { color: var(--cyan); } .terminal mark { background: rgba(255, 179, 71, .3); color: inherit; border-radius: 3px; }
.invite { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem .3rem .9rem; background: #07061a; border: 1px solid var(--line-2); border-radius: var(--r-m); } .invite:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.invite span { color: var(--cyan); font-family: var(--f-mono); } .invite input { border: 0; background: transparent; font-family: var(--f-mono); box-shadow: none !important; padding: .5rem 0; }
.terminal-mini { min-height: 3.2rem; max-height: 26vh; margin: 0; }

/* ---------- fenetres : dialogue, panneau lateral, notifications ---------- */
.voile { position: fixed; inset: 0; z-index: 80; background: rgba(4, 3, 16, .66); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 1rem; animation: fondu .18s both; }
.dialogue { width: min(460px, 100%); background: var(--surf); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 1.4rem; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--acc-soft); animation: surgit .25s var(--ease) both; display: flex; flex-direction: column; gap: 1rem; }
.dialogue h3 { font-size: 1.15rem; } .dialogue .detail { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: .6rem .8rem; font-family: var(--f-mono); font-size: .8rem; word-break: break-all; color: var(--cyan); }
.dialogue .pied { display: flex; justify-content: flex-end; gap: .6rem; } .dialogue.danger { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 93, 122, .35); }
.tiroir { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(520px, 100vw); background: var(--surf); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .8); overflow-y: auto; padding: 1.2rem; animation: glisse .3s var(--ease) both; display: flex; flex-direction: column; gap: 1rem; }
.notifs { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; pointer-events: none; }
.notif { pointer-events: auto; display: flex; align-items: center; gap: .6rem; max-width: min(420px, calc(100vw - 2rem)); padding: .7rem .95rem; background: var(--surf-2); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--shadow); animation: surgit .3s var(--ease) both; }
.notif svg { width: 1.2rem; flex: none; } .notif.ok { border-color: rgba(62, 224, 160, .45); } .notif.ok svg { color: var(--ok); } .notif.ko { border-color: rgba(255, 93, 122, .5); } .notif.ko svg { color: var(--err); } .notif.sortie { animation: sort .25s ease both; }

/* ---------- connexion ---------- */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 1rem; position: relative; overflow: hidden; }
.connexion canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.connexion form { position: relative; z-index: 1; width: min(400px, 100%); padding: 2rem 1.8rem; background: rgba(20, 19, 43, .72); backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--acc-soft), 0 0 80px -30px var(--acc-glow); display: flex; flex-direction: column; gap: .9rem; animation: surgit .6s var(--ease) both; }
.connexion .marque { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-bottom: .4rem; text-align: center; } .connexion .marque svg { width: 54px; filter: drop-shadow(0 0 18px var(--acc-glow)); }
.connexion .marque strong { font: 700 1.5rem var(--f-display); letter-spacing: .18em; } .connexion .marque span { color: var(--txt-2); font-size: .85rem; }
.tremble { animation: tremble .4s both !important; }

/* ---------- graphiques ---------- */
.graphique { position: relative; } .graphique svg { width: 100%; height: auto; display: block; overflow: visible; }
.graphique .axe text { fill: var(--txt-3); font: 11px var(--f-body); } .graphique .grille-h { stroke: var(--line); stroke-dasharray: 2 4; }
.bulle { position: absolute; pointer-events: none; z-index: 5; min-width: 150px; padding: .55rem .7rem; background: rgba(27, 26, 58, .96); border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: var(--shadow); font-size: .8rem; opacity: 0; transition: opacity .12s; }
.bulle.visible { opacity: 1; } .bulle b { display: block; margin-bottom: .25rem; color: var(--txt-2); font-weight: 500; } .bulle div { display: flex; align-items: center; gap: .45rem; } .bulle i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legende { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--txt-2); margin-top: .5rem; } .legende span { display: inline-flex; align-items: center; gap: .4rem; } .legende i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- divers ---------- */
.frise { position: relative; display: flex; flex-direction: column; gap: .9rem; padding-left: 1.2rem; } .frise::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); border-radius: 2px; }
.frise > div { position: relative; } .frise > div::before { content: ""; position: absolute; left: -1.2rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--surf), 0 0 10px var(--acc-glow); } .frise > div.actif::before { background: var(--err); box-shadow: 0 0 0 3px var(--surf), 0 0 10px rgba(255, 93, 122, .6); }
textarea.editeur { font: 12.5px/1.55 var(--f-mono); background: #07061a; resize: vertical; tab-size: 2; min-height: 50vh; white-space: pre; overflow: auto; }
.carte-action { display: flex; flex-direction: column; gap: .8rem; } .carte-action .tete { display: flex; gap: .7rem; align-items: flex-start; } .carte-action .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-2); flex: none; } .carte-action .ico svg { width: 1.2rem; }
.carte-action.danger .ico { background: var(--err-soft); color: var(--err); } .carte-action .champs { display: flex; gap: .6rem; flex-wrap: wrap; }
.medaille { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font: 600 .75rem var(--f-display); background: var(--surf-3); color: var(--txt-2); } .medaille.m1 { background: linear-gradient(135deg, #ffe08a, #d9a73c); color: #3a2a00; } .medaille.m2 { background: linear-gradient(135deg, #f1f0fb, #aeacce); color: #26244a; } .medaille.m3 { background: linear-gradient(135deg, #f0b48a, #b8743f); color: #381d08; }

/* ---------- animations ---------- */
@keyframes entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes surgit { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sort { to { opacity: 0; transform: translateX(20px); } }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 160, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(62, 224, 160, 0); } }
@keyframes pulse-w { 0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 179, 71, 0); } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes brille { to { background-position: -200% 0; } }
@keyframes barre { from { transform: scaleX(0); } }
@keyframes tremble { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .app { grid-template-columns: 76px minmax(0, 1fr); } .menu { padding-inline: .5rem; } .menu .texte, .logo .nom, .groupe, .utilisateur .principal { display: none; } .menu a.lien { justify-content: center; padding: .7rem; } .logo { justify-content: center; padding-inline: 0; } .utilisateur { justify-content: center; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .menu { position: fixed; inset: 0 auto 0 0; width: 260px; transform: translateX(-105%); transition: transform .28s var(--ease); height: 100%; padding-inline: .8rem; }
  .menu .texte, .logo .nom, .groupe, .utilisateur .principal { display: revert; } .menu a.lien { justify-content: flex-start; padding: .52rem .7rem; } .logo { justify-content: flex-start; padding-inline: .5rem; } .utilisateur { justify-content: flex-start; }
  body.menu-ouvert .menu { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .7); } body.menu-ouvert::after { content: ""; position: fixed; inset: 0; background: rgba(4, 3, 16, .6); z-index: 25; }
  .haut .burger { display: inline-flex; } .serveurs-haut { display: none; } .grille, .grille.large { grid-template-columns: 1fr; } .tuile .valeur { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
.voile.droite { place-items: stretch end; padding: 0; } .pile.serre { gap: .7rem; }
.ligne > select { width: auto; min-width: 170px; } .tuile .etiquette { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em; font-size: .7rem; }
.graphique .axe text { font-size: 12.5px; }
.formulaire-central { position: relative; z-index: 1; width: min(440px, 100%); padding: 2rem 1.8rem; background: rgba(20, 19, 43, .78); backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 80px -30px var(--acc-glow); animation: surgit .6s var(--ease) both; }
.utilisateur a.ligne { color: inherit; text-decoration: none; flex-wrap: nowrap; min-width: 0; } .utilisateur a.ligne:hover strong { color: var(--acc-2); }
.ligne > input:not([type=checkbox]) { width: auto; flex: 1; min-width: 180px; }
button.carte { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; } button.carte:disabled { cursor: default; opacity: .8; }
.mode-actif { border-color: rgba(139, 108, 255, .65); box-shadow: var(--shadow), 0 0 0 1px var(--acc-soft), 0 14px 40px -18px var(--acc-glow); }
.ico-mode { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-2); } .ico-mode svg { width: 1.2rem; }
