.cards-container { display: flex; gap: 20px; margin-bottom: 25px; } .card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 20px; flex: 1; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); } .card-title { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; } .card-value { font-size: 22px; font-weight: bold; color: #f8fafc; display: flex; align-items: center; gap: 8px; } .section-box { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 20px; margin-bottom: 25px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .section-title { font-size: 16px; font-weight: 600; color: #f8fafc; display: flex; align-items: center; gap: 12px; margin: 0; } .domains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; min-height: 112px; margin-bottom: 15px; } .domain-item { background: #0f172a; border: 1px solid #334155; border-radius: 8px; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; height: 50px; box-sizing: border-box; } .pagination-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #334155; padding-top: 12px; font-size: 13px; color: #94a3b8; } .btn { background: #334155; color: #f8fafc; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; transition: background 0.2s; } .btn:hover { background: #475569; } .btn:disabled { opacity: 0.4; cursor: not-allowed; } .btn-danger { background: #dc2626; color: white; } .btn-danger:hover { background: #b91c1c; } select { background: #0f172a; color: #e2e8f0; border: 1px solid #475569; padding: 8px 12px; border-radius: 6px; font-size: 13px; } /* Tableau PC par défaut */ .desktop-table-wrapper { width: 100%; display: block; } table { width: 100%; border-collapse: collapse; margin-top: 10px; } th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #334155; font-size: 14px; } th { color: #94a3b8; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; } tr:hover { background-color: rgba(255, 255, 255, 0.02); } /* Vue mobile cartes (masquée sur PC) */ .mobile-cards-view { display: none; } .badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; } .badge-local { background: #0284c7; color: white; } .badge-capi { background: #475569; color: #cbd5e1; } .badge-online { background: #166534; color: #4ade80; border: 1px solid #22c55e; } .badge-down { background: #7f1d1d; color: #f87171; border: 1px solid #ef4444; } .clickable-ip { color: #38bdf8; cursor: pointer; text-decoration: underline dotted; } .clickable-ip:hover { color: #7dd3fc; } .form-input { background: #0f172a; border: 1px solid #475569; color: #e2e8f0; padding: 10px; border-radius: 6px; width: 100%; max-width: 400px; margin-right: 10px; box-sizing: border-box; } .loading { text-align: center; color: #94a3b8; font-style: italic; padding: 20px; grid-column: span 3; } .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.2s ease; } .modal-overlay.active { opacity: 1; visibility: visible; } .modal-box { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 25px; width: 90%; max-width: 400px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3); text-align: center; transform: scale(0.95); transition: transform 0.2s ease; } .modal-overlay.active .modal-box { transform: scale(1); } .modal-title { font-size: 16px; font-weight: 600; color: #f8fafc; margin-bottom: 10px; } .modal-text { font-size: 14px; color: #94a3b8; margin-bottom: 20px; line-height: 1.5; } .modal-actions { display: flex; justify-content: center; gap: 10px; } /* DESIGN SPÉCIFIQUE MOBILE (Max 480px / 768px) */ @media (max-width: 768px) { body { padding: 12px; } h1 { font-size: 20px; } p.subtitle { font-size: 13px; margin-bottom: 15px; } .cards-container { flex-direction: column; gap: 12px; margin-bottom: 15px; } .card { padding: 15px; } .section-box { padding: 15px; margin-bottom: 15px; } .domains-grid { grid-template-columns: 1fr; gap: 8px; min-height: auto; } .section-header { flex-direction: column; align-items: flex-start; gap: 10px; } .section-header > div { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 8px; } /* Bascule : Cacher le tableau PC et afficher les cartes mobiles percutantes */ .desktop-table-wrapper { display: none; } .mobile-cards-view { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; } .threat-card { background: #0f172a; border: 1px solid #334155; border-left: 4px solid #f87171; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; } .threat-card-header { display: flex; justify-content: space-between; align-items: center; } .threat-ip { font-size: 16px; font-weight: bold; color: #38bdf8; } .threat-scenario { font-size: 13px; color: #cbd5e1; word-break: break-word; } .threat-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; border-top: 1px solid #1e293b; padding-top: 8px; } .form-input { max-width: 100%; margin-right: 0; margin-bottom: 8px; } .section-box .form-input, .section-box button { width: 100%; } }
Supervision des menaces CrowdSec et statuts des domaines en temps réel
| ADRESSE IP (Cliquer pour cibler) | ORIGINE | SCÉNARIO | ACTION |
|---|---|---|---|
| Chargement des données... | |||
Sélectionnez une IP dans la liste ou entrez-la manuellement.