/* crt-archives.css */

:root {
  --crt-bg: #05070a;
  --crt-panel: #11141a;
  --crt-accent: #d4b15a;
  --crt-text: #f5f5f5;
  --crt-muted: #9a9fa8;
  --crt-danger: #c0392b;
  --crt-border: #2a2f3a;
  --crt-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --crt-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.crt-body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #151924 0, #05070a 55%);
  color: var(--crt-text);
  font-family: var(--crt-font-main);
}

/* Header */

.crt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 6vw;
  border-bottom: 1px solid var(--crt-border);
  background: linear-gradient(to right, #05070a, #10131b);
}

.crt-logo {
  font-family: var(--crt-font-mono);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--crt-accent);
}

.crt-header-meta {
  text-align: right;
}

.crt-header-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--crt-muted);
}

.crt-header-case {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Main layout */

.crt-main {
  padding: 2.5rem 6vw 3.5rem;
}

/* Summary */

.crt-summary {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.crt-summary h1 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
}

.crt-summary-tagline {
  margin: 0 0 1rem;
  color: var(--crt-muted);
  font-size: 0.9rem;
}

.crt-summary-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.crt-summary-meta li {
  margin-bottom: 0.25rem;
}

.crt-summary-right {
  border-left: 1px solid var(--crt-border);
  padding-left: 1.5rem;
  display: flex;
  align-items: center;
}

.crt-summary-note {
  font-style: italic;
  font-size: 0.95rem;
  position: relative;
}

.crt-summary-note::before {
  content: "“";
  position: absolute;
  left: -0.8rem;
  top: -0.6rem;
  font-size: 2rem;
  color: var(--crt-accent);
  opacity: 0.4;
}

.crt-summary-signature {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--crt-muted);
}

/* Evidence grid */

.crt-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.crt-evidence {
  background: var(--crt-panel);
  border: 1px solid var(--crt-border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.crt-evidence h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.crt-evidence-media {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #000;
}

.crt-evidence-media img {
  display: block;
  width: 100%;
  height: auto;
}

.crt-photo-frame {
  padding: 0.6rem;
  background: #f5f5f5;
}

.crt-photo-frame img {
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.crt-evidence-caption {
  font-size: 0.85rem;
  color: var(--crt-muted);
  margin: 0 0 0.75rem;
}

/* Buttons */

.crt-btn {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.crt-btn-outline {
  background: transparent;
  border: 1px solid var(--crt-accent);
  color: var(--crt-accent);
}

.crt-btn-outline:hover {
  background: rgba(212, 177, 90, 0.08);
}

/* Report */

.crt-report {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(10, 13, 20, 0.9);
  border-radius: 10px;
  border: 1px solid var(--crt-border);
  padding: 1.75rem 1.5rem;
}

.crt-report h2 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.crt-report p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--crt-muted);
}

/* Modal */

.crt-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.crt-modal.is-open {
  display: block;
}

.crt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.crt-modal-content {
  position: relative;
  max-width: 960px;
  margin: 4vh auto;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--crt-border);
}

.crt-modal-content img {
  display: block;
  width: 100%;
  height: auto;
}

.crt-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Footer */

.crt-footer {
  padding: 1rem 6vw 1.5rem;
  border-top: 1px solid var(--crt-border);
  font-size: 0.75rem;
  color: var(--crt-muted);
}

/* Responsive */

@media (max-width: 960px) {
  .crt-summary {
    grid-template-columns: 1fr;
  }
  .crt-summary-right {
    border-left: none;
    border-top: 1px solid var(--crt-border);
    padding-left: 0;
    padding-top: 1rem;
  }
  .crt-evidence-grid {
    grid-template-columns: 1fr;
  }
}


/* crt-login.css */

body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #f5f5f5;
    font-family: "Segoe UI", system-ui, sans-serif;
}

/* Écran principal */
.crt-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #220000 0%, #000000 55%);
}

/* Logo CRT-Ω pulsant */
.crt-logo {
    margin-bottom: 40px;
}

.crt-symbol {
    display: inline-block;
    padding: 18px 32px;
    border: 2px solid #ff1b1b;
    border-radius: 999px;
    color: #ff4b4b;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.1rem;
    animation: pulse 1.8s infinite;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
}

@keyframes pulse {
    0%   { box-shadow: 0 0 8px rgba(255, 0, 0, 0.6); opacity: 0.9; }
    50%  { box-shadow: 0 0 22px rgba(255, 0, 0, 1); opacity: 1; }
    100% { box-shadow: 0 0 8px rgba(255, 0, 0, 0.6); opacity: 0.9; }
}

/* Panneau central */
.crt-panel {
    width: 360px;
    max-width: 90%;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 8px;
    padding: 20px 22px;
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.5);
}

.crt-panel h1 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffb3b3;
    margin-bottom: 18px;
}

/* Formulaire */
.crt-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crt-form label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cccccc;
}

.crt-form input,
.crt-form select {
    background: #050505;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 10px;
    color: #f5f5f5;
    font-size: 0.85rem;
}

.crt-form input:focus,
.crt-form select:focus {
    outline: none;
    border-color: #ff4b4b;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.crt-form button {
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 4px;
    border: 1px solid #ff4b4b;
    background: #200000;
    color: #ffb3b3;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s;
}

.crt-form button:hover {
    background: #400000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
}

/* Message d’avertissement */
.crt-warning {
    margin-top: 14px;
    font-size: 0.75rem;
    color: #ff8080;
    text-align: center;
    line-height: 1.4;
}





/* BOÎTE ARCHIVE GÉNÉRALE */
.archive-box {
    padding: 20px 25px;
    margin: 25px auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 18, 0.85);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
    max-width: 900px;
    transition: 0.3s;
}

/* VARIANTE BLEUE (CRT‑Ω-424) */
.archive-bleue {
    border-left: 4px solid #4aa3ff;
    box-shadow: 0 0 18px rgba(80, 150, 255, 0.25);
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.7), rgba(0, 0, 20, 0.9));
}

/* TITRE */
.archive-title {
    font-size: 1.3rem;
    color: #bcd9ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(80, 150, 255, 0.6);
}

/* AVERTISSEMENT */
.archive-warning {
    font-size: 0.85rem;
    color: #7fb8ff;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 2px solid #4aa3ff;
    opacity: 0.9;
}

/* CONTENU */
.archive-content {
    padding: 15px 18px;
    background: rgba(0, 10, 25, 0.6);
    border-radius: 6px;
    border: 1px solid;
}



/* Écran de chargement militaire */
#crt-loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #ff4b4b;
    font-family: "Courier New", monospace;
}

.loader-logo {
    font-size: 3rem;
    letter-spacing: 6px;
    margin-bottom: 20px;
    text-shadow: 0 0 12px red;
    animation: pulseLogo 1.5s infinite;
}

@keyframes pulseLogo {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loader-text {
    font-size: 1rem;
    opacity: 0.8;
}



/* Header militaire CRT */
.crt-header {
    background: #200000;
    border-bottom: 2px solid #ff0000;
    color: #ffb3b3;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(255,0,0,0.4);
}





/* Dashboard CRT */
.crt-dashboard {
    margin-top: 40px;
    padding: 20px;
    background: rgba(20,0,0,0.4);
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 8px;
}

.crt-dashboard h2 {
    color: #ffb3b3;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.dash-card {
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,0,0,0.3);
    padding: 15px;
    border-radius: 6px;
    color: #ffd9d9;
}

.ok {
    color: #7fff9f;
}









/* Logs militaires */
.crt-logs {
    margin-top: 30px;
}

.log-box {
    background: #000;
    border: 1px solid #ff0000;
    padding: 15px;
    height: 180px;
    overflow-y: auto;
    font-family: "Courier New", monospace;
    font-size: 0.8rem;
    color: #ff8080;
    box-shadow: inset 0 0 12px rgba(255,0,0,0.3);
}
