/* Panel fondateur (11/10/2026) : ce qui n'existe pas dans le panel staff. Même charte (styles.css, relevée au pixel
   sur le dashboard KobraLost) : fond #101A30 et halos, cartes en verre, Public Sans, bleu #005AE2, pilules. */

:root { --turquoise: #22c9be; --vert-vif: #4fe08f; --rouge-vif: #ff7a7a; }
.marque .sous-marque { font-family: 'Public Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--doux); text-transform: uppercase; padding-top: 4px; }
.positif { color: var(--vert-vif) !important; }
.negatif { color: var(--rouge-vif) !important; }
.or-txt { color: var(--or) !important; }
.centre { text-align: center; }
.flex-1 { flex: 1; min-width: 0; }
@media (max-width: 640px) { .cache-mobile { display: none !important; } }

/* Le point vivant qui respire (direct) */
.vivant { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); animation: respire 2s infinite; flex: none; }
.vivant.rouge { background: var(--rouge); animation-name: respire-rouge; }
.vivant.orange { background: var(--orange); animation: none; }
.vivant.gris { background: #5b6680; animation: none; }
@keyframes respire { 0% { box-shadow: 0 0 0 0 rgba(40, 199, 111, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(40, 199, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 199, 111, 0); } }
@keyframes respire-rouge { 0% { box-shadow: 0 0 0 0 rgba(238, 72, 72, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(238, 72, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(238, 72, 72, 0); } }
.change { animation: change 0.9s ease-out; }
@keyframes change { 0% { color: #fff; text-shadow: 0 0 12px rgba(77, 141, 255, 0.9); } 100% { text-shadow: none; } }

/* ─── Accueil : catégories et cartes des serveurs ──────────────────────────── */
.categorie + .categorie { margin-top: 34px; }
.categorie-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.categorie-tete .icone-ronde { width: 38px; height: 38px; font-size: 20px; }
.categorie-tete h4 { font-family: 'Bebas Neue', 'Public Sans', sans-serif; font-size: 28px; font-weight: 400; letter-spacing: 1px; color: #f4f6fb; line-height: 1; padding-top: 4px; }
.categorie-tete .compte { color: var(--doux); font-size: 13px; }
.grille-serveurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.carte-serveur { display: block; color: inherit; overflow: hidden; transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s; cursor: pointer; }
.carte-serveur:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 34px rgba(0, 0, 0, 0.55); color: inherit; }
.carte-serveur .banniere { aspect-ratio: 16 / 7; background-size: cover; background-position: center; position: relative; background-color: #16213b; }
.carte-serveur .banniere::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 26, 48, 0) 45%, rgba(16, 26, 48, 0.85)); }
.carte-serveur .etat { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; border-radius: 999px; background: rgba(10, 16, 32, 0.72); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; color: #eef1f7; border: 1px solid rgba(255, 255, 255, 0.12); }
.carte-serveur .logo { position: absolute; left: 16px; bottom: -22px; z-index: 2; width: 58px; height: 58px; border-radius: 12px; border: 3px solid #1d2a47; background: #16213b; object-fit: cover; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.carte-serveur .corps { padding: 30px 20px 18px; }
.carte-serveur .nom { font-size: 19px; font-weight: 600; color: var(--titre); display: flex; align-items: center; gap: 8px; }
.carte-serveur .sous { font-size: 13px; color: var(--doux); margin-top: 2px; }
.stats-serveur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.stats-serveur .stat { padding: 11px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--filet-doux); min-width: 0; }
.stats-serveur .stat .etiquette { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--doux); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.stats-serveur .stat .etiquette i { font-size: 14px; }
.stats-serveur .stat .valeur { font-size: 19px; font-weight: 700; color: var(--titre); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-serveur .stat .valeur small { font-size: 13px; color: var(--doux); font-weight: 500; }
.stats-serveur .stat .sous-stat { font-size: 11.5px; color: var(--tres-doux); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .stats-serveur .stat .valeur { font-size: 16px; } .stats-serveur { gap: 8px; } .stats-serveur .stat { padding: 10px; } }
.vide-categorie { border: 1.5px dashed rgba(255, 255, 255, 0.13); border-radius: var(--rayon); padding: 28px 20px; text-align: center; color: var(--doux); display: flex; flex-direction: column; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.015); }
.vide-categorie i { font-size: 30px; color: var(--tres-doux); }

/* ─── En-tête d'un serveur ─────────────────────────────────────────────────── */
.serveur-tete { overflow: hidden; padding: 0; }
.serveur-tete .profil-banniere { height: 220px; background-position: center 66%; }
@media (max-width: 640px) { .serveur-tete .profil-banniere { height: 140px; } }
.serveur-tete .profil-bas { align-items: center; }
.serveur-tete .profil-avatar { width: 86px; height: 86px; }
.serveur-tete .direct-tete { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 34px; }
.pastille-direct { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--filet-doux); min-width: 0; }
.pastille-direct > i { font-size: 22px; color: var(--doux); }
.pastille-direct .v { font-size: 18px; font-weight: 700; color: var(--titre); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pastille-direct .e { font-size: 11.5px; color: var(--doux); white-space: nowrap; }
@media (max-width: 900px) { .serveur-tete .direct-tete { padding-top: 6px; margin-left: 0; width: 100%; } .pastille-direct { flex: 1 1 140px; } }
.retour { display: inline-flex; align-items: center; gap: 6px; color: var(--doux); font-size: 14px; }
.retour:hover { color: var(--titre); }

/* ─── Logs ─────────────────────────────────────────────────────────────────── */
.filtres-logs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px; }
.filtres-logs .recherche { width: 190px; }
.famille { border-top: 1px solid var(--filet-doux); }
.famille:first-child { border-top: 0; }
.famille-tete { display: flex; align-items: center; gap: 12px; padding: 13px 20px; cursor: pointer; user-select: none; }
.famille-tete:hover { background: rgba(255, 255, 255, 0.025); }
.famille-tete .barre-couleur { width: 4px; height: 26px; border-radius: 4px; flex: none; }
.famille-tete .icone { font-size: 20px; flex: none; }
.famille-tete .nom { font-weight: 600; color: var(--titre); font-size: 14.6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.famille-tete .chevron { font-size: 22px; color: var(--doux); transition: transform 0.15s; flex: none; }
.famille.ouverte .famille-tete .chevron { transform: rotate(90deg); }
.famille-tete .compteurs { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--doux); white-space: nowrap; }
.famille-corps { padding: 0 0 6px; }
.famille .types { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px 56px; }
.puce-type { border: 1px solid var(--filet); background: rgba(255, 255, 255, 0.03); color: var(--texte); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.puce-type.actif { background: var(--bleu-voile); border-color: rgba(0, 90, 226, 0.6); color: #b9d2ff; }
.puce-type .n { margin-left: 7px; color: var(--tres-doux); font-variant-numeric: tabular-nums; }
.puce-type.actif .n { color: #8fb3ef; }
.ligne-log { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 8px 20px; border-top: 1px solid rgba(255, 255, 255, 0.035); font-size: 14px; line-height: 1.5; }
.ligne-log:hover { background: rgba(255, 255, 255, 0.02); }
.ligne-log .quand { color: var(--tres-doux); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 2px; white-space: nowrap; }
.ligne-log .quand b { display: block; color: var(--doux); font-weight: 600; font-size: 13px; }
.ligne-log .ctx { font-size: 12px; color: var(--tres-doux); margin-top: 2px; }
.ligne-log .tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 0 6px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 640px) { .ligne-log { grid-template-columns: 1fr; gap: 2px; } .famille .types { padding-left: 20px; } .famille-tete .compteurs .n-tout { display: none; } }
.s-nom { color: #f4f7f3; font-weight: 600; }
.s-liant { color: var(--doux); }
.s-arme { color: #c9a4f0; font-weight: 600; }
.s-argent { color: #58cd82; font-weight: 600; }
.s-grave { color: #f06a5a; font-weight: 600; }
.s-precision { color: var(--tres-doux); }
.s-or { color: #ffd166; font-weight: 600; }
.s-turq { color: #7fe8dc; font-weight: 600; }
.s-blanc { color: var(--titre); }
.embed { border-left: 3px solid #4f5d7a; padding: 1px 0 1px 12px; min-width: 0; }
.embed .titre { font-weight: 600; color: var(--titre); overflow-wrap: anywhere; }
.embed .texte { color: var(--texte); white-space: pre-wrap; overflow-wrap: anywhere; }
.embed .champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 14px; margin-top: 5px; }
.embed .champ-n { font-size: 12px; font-weight: 600; color: var(--doux); }
.embed .champ-v { font-size: 13px; color: var(--texte); white-space: pre-wrap; overflow-wrap: anywhere; }
.embed .pied { font-size: 11.5px; color: var(--tres-doux); margin-top: 3px; }
.plus-logs { display: flex; justify-content: center; padding: 10px; }
.bandeau-direct { display: inline-flex; align-items: center; gap: 8px; }

/* ─── Hébergement ──────────────────────────────────────────────────────────── */
.machine-tete { display: flex; align-items: flex-start; gap: 14px; }
.machine-tete .icone-ronde { width: 46px; height: 46px; font-size: 24px; }
.jauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 16px; }
.jauge-barre .haut { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--doux); margin-bottom: 6px; }
.jauge-barre .haut b { color: var(--titre); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jauge-barre .barre-progres { height: 8px; }
.services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.attente-branchement { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 9px; background: rgba(77, 141, 255, 0.07); border: 1px solid rgba(77, 141, 255, 0.25); color: #c7dbff; font-size: 13.5px; }
.attente-branchement > i { font-size: 20px; color: var(--bleu-clair); }

/* ─── Liens ────────────────────────────────────────────────────────────────── */
.grille-liens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.lien-carte { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--filet-doux); color: var(--texte); transition: background 0.12s, border-color 0.12s; min-width: 0; }
.lien-carte:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.lien-carte .icone-ronde { width: 40px; height: 40px; font-size: 21px; }
.lien-carte .nom { font-weight: 600; color: var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lien-carte .note { font-size: 12.5px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Argent ───────────────────────────────────────────────────────────────── */
.gros-chiffre { font-size: 30px; font-weight: 700; color: var(--titre); font-variant-numeric: tabular-nums; line-height: 1.15; }
.paiement { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--filet-doux); }
.paiement:last-child { border-bottom: 0; }
.paiement .montant { margin-left: auto; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paiement.nouveau, .flash { animation: arrive 1.6s ease-out; }
@keyframes arrive { 0% { background: rgba(40, 199, 111, 0.22); } 100% { background: transparent; } }

/* ─── Connexion et 2FA ─────────────────────────────────────────────────────── */
.qr { background: #fff; border-radius: 12px; padding: 10px; display: inline-block; line-height: 0; }
.qr svg { width: 196px; height: 196px; display: block; }
.secret { font-family: var(--mono); font-size: 13.5px; letter-spacing: 1.5px; word-break: break-all; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--filet); color: var(--titre); }
.etapes { text-align: left; margin: 0 0 18px; padding-left: 20px; color: var(--texte); font-size: 14px; }
.etapes li { margin: 4px 0; }

/* ─── Divers ───────────────────────────────────────────────────────────────── */
.chaleur { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 11px; color: var(--tres-doux); }
.chaleur .case-c { aspect-ratio: 1.5 / 1; border-radius: 3px; min-height: 10px; }
.chaleur .jour-c { display: flex; align-items: center; }
.chaleur .heure-c { text-align: center; }
.legende-ligne { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--doux); }
.legende-ligne span { display: inline-flex; align-items: center; gap: 6px; }
.legende-ligne i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pastille-metier { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.pastille-metier .pt { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.compte-a-rebours { font-family: 'Bebas Neue', 'Public Sans', sans-serif; font-size: 46px; letter-spacing: 1px; color: #fff; line-height: 1; }
.note-source { font-size: 12px; color: var(--tres-doux); }
.note-source i { vertical-align: -2px; }
.sous-onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.barre-outils-carte { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.etiquette-mini { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--doux); }
.ligne-cle { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--filet-doux); font-size: 14px; }
.ligne-cle:last-child { border-bottom: 0; }
.ligne-cle .v { font-weight: 600; color: var(--titre); text-align: right; font-variant-numeric: tabular-nums; }
