/* ==========================================================================
   1. VARIABLES, CONFIGURATION ET STRUCURE DU SITE OFFICIEL
   ========================================================================== */
:root {
    --fbi-dark-blue: #0c2340;
    --fbi-light-blue: #1d70b8;
    --fbi-bg-gray: #f8f9fa;
    --fbi-border-gray: #d2d2d2;
    --text-dark: #212121;
    --alert-red: #b30000;
    --success-green: #00a651;
    --status-active: #d97706;
    --hint-orange: #f59e0b;
    --case-open: #1d70b8;
    --case-locked: #64748b;
    --case-classified: #701a75;
    --threat-high: #b30000;
    --threat-medium: #d97706;
    --threat-low: #475569;
    --preview-bg: #f1f5f9;
    --preview-text: #334155;
    --db-terminal-bg: #0f172a;
    --db-text-green: #38bdf8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--fbi-bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* BANDEAU REPUBLICAIN OFFICIEL */
.gov-banner {
    background-color: #f0f0f0;
    font-size: 0.75rem;
    padding: 5px 20px;
    border-bottom: 1px solid var(--fbi-border-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.translation-notice {
    font-style: italic;
    text-transform: none;
    color: #777;
    letter-spacing: 0;
}

/* EN-TETE INSTITUTIONNEL */
header {
    background-color: var(--fbi-dark-blue);
    color: white;
    padding: 25px 20px;
    border-bottom: 4px solid var(--fbi-light-blue);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fbi-logo {
    width: 80px;  
    height: auto; 
    display: block;
    flex-shrink: 0;
}

.title-area h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title-area p {
    font-size: 0.9rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ENCART SESSION AGENT */
.user-session-box {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    font-size: 0.8rem;
    min-width: 200px;
    border-radius: 2px;
}

.user-session-box .agent-id {
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.user-session-box .session-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.user-session-box .status-indicator {
    width: 7px;
    height: 7px;
    background-color: var(--success-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--success-green);
}

/* ALERTE SYSTEME GENERALE */
.system-alert {
    background-color: var(--alert-red);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* TITRAGE DE PAGE COMPOSANT */
.page-title {
    margin-bottom: 30px;
    border-left: 4px solid var(--fbi-dark-blue);
    padding-left: 15px;
}

.page-title h2 {
    font-size: 1.5rem;
    color: var(--fbi-dark-blue);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.navigation-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--fbi-light-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.navigation-link:hover {
    text-decoration: underline;
}


/* ==========================================================================
   2. STYLES SPÉCIFIQUES : PAGE D'ACCUEIL (index.html)
   ========================================================================== */
.welcome-banner {
    background: white;
    border: 1px solid var(--fbi-border-gray);
    padding: 30px;
    margin-bottom: 40px;
    border-top: 5px solid var(--fbi-dark-blue);
}

.welcome-banner h2 {
    color: var(--fbi-dark-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.4rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border: 1px solid var(--fbi-border-gray);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-top: 4px solid var(--fbi-light-blue);
}

.card h3 {
    color: var(--fbi-dark-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card .btn {
    display: inline-block;
    background-color: var(--fbi-dark-blue);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    position: relative;
}

.card .btn:hover {
    background-color: var(--fbi-light-blue);
}

.card.tech-variant {
    border-top-color: #475569;
}

.card.tech-variant .btn {
    background-color: #475569;
}

.card.tech-variant .btn:hover {
    background-color: #64748b;
}

.tutorial-target {
    border-color: var(--hint-orange);
}

.tutorial-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background-color: var(--hint-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--hint-orange);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}


/* ==========================================================================
   3. STYLES SPÉCIFIQUES : REGISTRE DISPARITIONS (disparitions.html)
   ========================================================================== */
.database-table-container {
    background: white;
    border: 1px solid var(--fbi-border-gray);
    border-top: 5px solid var(--fbi-dark-blue);
    padding: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background-color: #f1f5f9;
    color: var(--fbi-dark-blue);
    text-transform: uppercase;
    font-weight: 700;
    padding: 12px 15px;
    border-bottom: 2px solid var(--fbi-border-gray);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

tr:hover td {
    background-color: #f8fafc;
}

.avatar-placeholder {
    width: 50px;
    height: 60px;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #64748b;
    border: 1px solid #94a3b8;
    text-transform: uppercase;
    font-weight: bold;
}

.avatar-photo {
    width: 50px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--fbi-border-gray);
    display: block;
}

.badge-status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #fef3c7;
    color: var(--status-active);
    border: 1px solid #fde68a;
    border-radius: 2px;
}

/* Rétablissement des styles de boutons spécifiques du tableau HTML */
.btn-view {
    display: inline-block;
    background-color: var(--fbi-dark-blue);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
}

.btn-view:hover {
    opacity: 0.9;
}

/* Gestion de la ligne "Priorité Rouge" et "Fichier Corrompu" de vos fichiers originaux */
tr:has(.badge-status[style*="b91c1c"]) .btn-view, 
.btn-view[style*="b30000"] {
    background-color: #b30000 !important;
}
tr:has(.badge-status[style*="475569"]) .btn-view,
.btn-view[style*="475569"] {
    background-color: #475569 !important;
}

/* FENÊTRE MODALE DOSSIER INDIVIDUEL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    color: var(--text-dark);
    width: 95%;
    max-width: 950px;
    height: 85vh;
    border: 1px solid var(--fbi-border-gray);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background-color: var(--fbi-dark-blue);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--fbi-light-blue);
}

.modal-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close-btn {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 10px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    color: white;
    border-color: white;
    background-color: rgba(255,255,255,0.05);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background-color: #f8fafc;
}

.modal-visual-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visual-box {
    background-color: #eaeded;
    border: 1px solid #cbd5e1;
    width: 100%;
    object-fit: cover;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    display: block;
}

.box-photo { height: 320px; }
.box-map { height: 200px; }

.modal-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-info-column h3 {
    font-size: 1.6rem;
    color: var(--fbi-dark-blue);
    font-weight: 800;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.info-grid-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: white;
    border: 1px solid var(--fbi-border-gray);
    padding: 15px;
}

.meta-item { font-size: 0.9rem; }

.meta-item strong {
    color: #475569;
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.report-section {
    background: white;
    border: 1px solid var(--fbi-border-gray);
    padding: 20px;
    flex-grow: 1;
}

.report-section h4 {
    font-size: 0.85rem;
    color: var(--fbi-dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border-left: 3px solid var(--fbi-light-blue);
    padding-left: 8px;
}

.report-text {
    font-size: 0.95rem;
    color: #334155;
    white-space: pre-line;
}


/* ==========================================================================
   4. ARCHIVES DES AFFAIRES (dossiers.html)
   ========================================================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border: 1px solid var(--fbi-border-gray);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 6px solid var(--case-open);
}

.case-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 15px;
}

.case-card h3 {
    color: var(--fbi-dark-blue);
    font-size: 1.2rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.case-summary {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 20px;
    flex-grow: 1;
}

.case-meta {
    font-size: 0.8rem;
    background-color: #f1f5f9;
    padding: 12px;
    border-radius: 2px;
    margin-bottom: 20px;
    color: #475569;
    line-height: 1.5;
}

.case-meta strong {
    color: var(--fbi-dark-blue);
}

.btn-action {
    display: block;
    width: 100%;
    background-color: var(--fbi-dark-blue);
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-action:hover {
    background-color: var(--fbi-light-blue);
}

.case-card.locked {
    border-left-color: var(--case-locked);
    background-color: #fafafa;
}
.case-card.locked .btn-action {
    background-color: var(--case-locked);
    cursor: not-allowed;
}

.case-card.classified {
    border-left-color: var(--case-classified);
}
.case-card.classified .btn-action {
    background-color: var(--case-classified);
}
.case-card.classified .btn-action:hover {
    background-color: #86198f;
}

.case-card.encrypted {
    border-left-color: var(--alert-red);
    background-color: #fff5f5;
}
.case-card.encrypted h3 {
    color: var(--alert-red);
}
.case-card.encrypted .btn-action {
    background-color: var(--alert-red);
}


/* ==========================================================================
   5. ORGANISATIONS SURVEILLÉES (organisations.html) - STYLE CORPORATE
   ========================================================================== */
.org-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.org-card {
    background: #ffffff;
    border: 1px solid var(--fbi-border-gray);
    border-top: 4px solid var(--fbi-dark-blue);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.org-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

/* EMPLACEMENT LOGO CORPORATE EXCLUSIF */
.org-logo-placeholder {
    width: 70px;
    height: 70px;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    text-align: center;
    text-transform: uppercase;
    flex-shrink: 0;
    overflow: hidden;
}

.org-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.org-title-block {
    flex-grow: 1;
}

.org-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.org-title h3 {
    color: var(--fbi-dark-blue);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.org-codename {
    font-family: "Consolas", monospace;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
    letter-spacing: -0.2px;
}

/* BADGES DE THREAT */
.badge-threat {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

/* RE-CONCEPTION DU CORPS DE LA FICHE */
.org-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.org-description h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.org-description p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
}

/* TABLEAU ALIGNÉ CORPORATE POUR LES INFOS */
.org-details-table {
    background-color: #f8fafc;
    border-left: 3px solid #cbd5e1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row strong {
    color: #475569;
    width: 140px;
    display: inline-block;
}

/* PASTILLES DE STATUT MINIATURE */
.status-indicator-mini {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-indicator-mini.active { background-color: var(--alert-red); }
.status-indicator-mini.watch { background-color: var(--status-active); }
.status-indicator-mini.inactive { background-color: var(--threat-low); }

/* BOUTONS ACTIONS */
.btn-intel {
    display: inline-block;
    background-color: var(--fbi-dark-blue);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s;
    border: 1px solid transparent;
}

.btn-intel:hover {
    background-color: var(--fbi-light-blue);
}

.btn-intel.layout-neutral {
    background-color: #475569;
}

/* VARIATION CASE BLOCKED ET CRYPTÉE */
.org-card.encrypted-card {
    border-top-color: var(--alert-red);
    background-color: #fff5f5;
}

.org-card.encrypted-card h3 {
    color: var(--alert-red);
}

.locked-logo {
    background-color: #fee2e2;
    border-color: #fca5a5;
    font-size: 1.5rem;
}

.locked-table {
    border-left-color: var(--alert-red);
    background-color: #fee2e2;
}

.disabled-intel {
    background-color: #94a3b8 !important;
    cursor: not-allowed;
}

.censored-text {
    font-style: italic;
    color: #991b1b;
}


/* ==========================================================================
   6. SERVICES APPLICATIFS (outils.html)
   ========================================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.tool-card {
    background: white;
    border: 1px solid var(--fbi-border-gray);
    border-top: 5px solid var(--fbi-dark-blue);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--fbi-border-gray);
    padding-bottom: 10px;
}

.tool-header h3 {
    color: var(--fbi-dark-blue);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.tool-status {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--success-green);
}

.tool-status.offline {
    color: var(--alert-red);
}

.tool-description {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 15px;
}

.tool-status-preview {
    background-color: var(--preview-bg);
    color: var(--preview-text);
    font-size: 0.85rem;
    padding: 12px;
    border-radius: 2px;
    margin-bottom: 15px;
    min-height: 80px;
    overflow: hidden;
    border-left: 3px solid var(--fbi-light-blue);
}

.preview-accent {
    color: var(--fbi-light-blue);
    font-weight: bold;
}

.tool-input-group {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.tool-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid var(--fbi-border-gray);
    font-size: 0.85rem;
    background-color: #f8fafc;
    color: var(--text-dark);
}

.btn-tool-execute {
    background-color: var(--fbi-dark-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-tool-execute:hover {
    background-color: var(--fbi-light-blue);
}

.btn-tool-execute:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}


/* ==========================================================================
   7. LOGS INTERFACE CONSOLE (database.html)
   ========================================================================== */
.db-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.db-terminal-section {
    background-color: var(--db-terminal-bg);
    color: var(--db-text-green);
    font-family: "Consolas", "Courier New", Courier, monospace;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #1e293b;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.db-terminal-log {
    overflow-y: auto;
    flex-grow: 1;
    font-size: 0.85rem;
    line-height: 1.4;
    padding-right: 10px;
}

.db-log-line {
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.db-input-line {
    display: flex;
    align-items: center;
    border-top: 1px solid #1e293b;
    padding-top: 10px;
    margin-top: 10px;
}

.db-prompt {
    color: #f43f5e;
    font-weight: bold;
    margin-right: 10px;
}

.db-terminal-input {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
    flex-grow: 1;
    outline: none;
}

.db-tables-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-content: start;
}

.db-table-card {
    background: white;
    border: 1px solid var(--fbi-border-gray);
    border-top: 4px solid var(--fbi-light-blue);
    padding: 15px;
}

.db-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.db-table-name {
    font-family: "Consolas", monospace;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--fbi-dark-blue);
}

.db-row-count {
    font-size: 0.7rem;
    background-color: #e2e8f0;
    padding: 2px 6px;
    font-weight: bold;
    color: #475569;
}

.db-columns-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: #64748b;
    font-family: "Consolas", monospace;
}


/* ==========================================================================
   8. PIED DE PAGE ET RESPONSIVE DESIGN (GLOBAL)
   ========================================================================== */
footer {
    background-color: #212121;
    color: #aaa;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.8rem;
    margin-top: 60px;
    border-top: 1px solid #333;
}

@media (max-width: 992px) {
    .db-layout { grid-template-columns: 1fr; }
    .org-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; align-items: flex-start; }
    .user-session-box { width: 100%; }
    .modal-body { grid-template-columns: 1fr; }
    .modal-content { height: 95vh; }
    .db-tables-section { grid-template-columns: 1fr; }
}


/* ==========================================================================
   9. MODIFICATION DU COMPORTEMENT DES DOSSIERS BLOQUÉS (.locked)
   ========================================================================== */
.case-card.locked {
    /* Remplace la bordure grise par le rouge d'alerte du FBI */
    border-left-color: var(--alert-red); 
    /* Ajoute une légère teinte de fond rougeâtre pour signaler le blocage */
    background-color: #fff5f5; 
}

.case-card.locked h3 {
    /* Met également le titre censuré en rouge pour un effet visuel fort */
    color: var(--alert-red);
}

.case-card.locked .btn-action {
    /* Le bouton "Accès refusé" prend la couleur rouge d'erreur */
    background-color: var(--alert-red);
    cursor: not-allowed;
}

.case-card.locked .btn-action:hover {
    /* Empêche le changement de couleur au survol puisque l'accès est impossible */
    background-color: var(--alert-red);
}
