/* ========================================
   PAGE HIDDEN — THEMED FOR PROTOCOLE ECHO
   Matches the provided brand mockup: deep navy, geometric type, crisp accents
   ======================================== */

/* Color tokens are centralized in colors.css */

/* BODY & LAYOUT */
body {
  background: linear-gradient(180deg, var(--brand-bg) 0%, var(--brand-bg) 100%);
  color: var(--brand-white);
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography rules: use Bruno Ace for headings, Loos for body/UI */
h1, h2, h3, h4, h5, h6, .header h1, .login-big h2, .terminal-box h3, .section-title {
  font-family: var(--font-main) !important;
}

/* Ensure UI text and content use the secondary body font */
p, li, a, span, button, input, textarea, .message-text, .terminal-line, .contact-item, .session-info, .sensitive-box, table, th, td {
  font-family: var(--font-secondary) !important;
}

.container {
  max-width: 980px;
  margin: 24px auto;
  border-radius: 6px;
  border: 1px solid var(--grey);
  background-color: var(--bg-soft);
  overflow: hidden;
}
  
  /* ==========================================
     3. HEADER ET NAVIGATION
     ========================================== */
  .header {
    background: linear-gradient(90deg, var(--bg-soft), var(--bg-soft));
    text-align: center;
    padding: 18px 12px;
    border-bottom: 1px solid var(--grey);
  }

  .header h1 {
    color: var(--brand-accent-2);
    font-size: 22px;
    margin: 0;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: var(--font-main);
  }
  
  .marquee {
    background-color: transparent;
    color: var(--brand-muted);
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
  }
  
  .counter {
    text-align: right;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--brand-muted);
  }
  
  .navigation {
    background-color: transparent;
    overflow: hidden;
    padding: 10px 12px;
  }

  .navigation a {
    display: inline-block;
    color: var(--white);
    text-align: center;
    padding: 8px 14px;
    text-decoration: none;
    margin-right: 6px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color var(--transition-fast), color var(--transition-fast);
  }

  .navigation a:hover {
    background-color: var(--accent-soft);
    color: var(--brand-accent-2);
    text-decoration: none;
  }
  
  /* ==========================================
     4. LAYOUT PRINCIPAL
     ========================================== */
  .main {
    display: flex;
    padding: 10px;
  }
  
  .sidebar {
    width: 240px;
    background-color: var(--bg-soft);
    padding: 14px;
    border-right: 1px solid var(--grey);
  }

  .content {
    flex: 1;
    padding: 18px;
    margin-left: 12px;
    background-color: transparent;
  }
  
  /* ==========================================
     5. SESSION INFO ET WARNINGS
     ========================================== */
  .session-info {
    margin-bottom: 20px;
    border: 1px dashed var(--grey);
    padding: 12px;
    color: var(--brand-muted);
  }
  
  .session-info p {
    margin: 5px 0;
    color: var(--intranet-text);
  }
  
  .session-info .user-id {
    color: var(--intranet-text);
    font-weight: bold;
  }
  
  .warning {
    color: var(--brand-danger);
    font-weight: 700;
  }

  #panel-accueil .warning {
    margin-left: 70px;
  }
  
  /* ==========================================
     6. SENSITIVE BOX
     ========================================== */
  .sensitive-box {
    border: 1px dashed var(--danger-soft);
    padding: 12px;
    margin-top: 15px;
    background-color: var(--danger-soft);
  }
  
  .sensitive-box h3 {
    color: var(--intranet-danger);
    margin-top: 0;
    text-decoration: underline;
  }
  
  .sensitive-box ul {
    list-style-type: none;
    padding: 0;
  }
  
  .sensitive-box li {
    margin: 5px 0;
  }
  
  .sensitive-box a {
    color: var(--intranet-text);
    text-decoration: none;
  }
  
  .sensitive-box a:hover {
    color: var(--intranet-danger);
    text-decoration: underline;
  }
  
  /* ==========================================
     7. TABLEAUX
     ========================================== */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    color: var(--brand-white);
  }

  table, th, td {
    border: 1px solid var(--grey);
  }

  th, td { padding: 8px; text-align: left; }

  th {
    background-color: var(--accent-soft);
    color: var(--brand-accent-2);
    font-weight: 700;
  }

  td {
    background-color: var(--bg-soft);
  }
  
  /* ==========================================
     8. MESSAGE BOARD
     ========================================== */
  .message-board {
    margin-top: 15px;
    border: 1px solid var(--intranet-text);
    padding: 10px;
    background-color: var(--bg-soft);
  }
  
  .message {
    border-bottom: 1px dotted var(--intranet-text);
    padding: 5px 0;
  }
  
  .message-header {
    color: var(--intranet-text);
    font-size: 12px;
  }
  
  .message-text {
    padding-left: 10px;
    color: var(--intranet-text);
  }
  
  /* ==========================================
     9. SYSTEM STATS
     ========================================== */
  .system-stats {
    background-color: var(--intranet-bg);
    border: 1px solid var(--intranet-text);
    padding: 8px;
    margin-top: 15px;
    font-size: 12px;
  }
  
  .system-stats h4 {
    color: var(--intranet-text);
    margin: 0 0 5px 0;
    border-bottom: 1px solid var(--intranet-text);
    padding-bottom: 3px;
  }
  
  .system-stats .stat-item {
    display: flex;
    justify-content: space-between;
    margin: 3px 0;
    color: var(--intranet-text);
  }
  
  .sidebar-section {
    margin-bottom: 15px;
  }
  
  /* ==========================================
     10. LOGIN SCREEN
     ========================================== */
  #restricted-content {
    display: none;
  }
  
  .login-screen {
    text-align: center;
    padding: 50px 0;
  }
  
  .login-screen h2 {
    color: var(--intranet-danger);
    margin-bottom: 30px;
  }
  
  .access-denied {
    color: var(--intranet-danger);
    font-weight: bold;
    margin-top: 10px;
    display: none;
  }
  
  .login-big {
    max-width: 400px;
    margin: 0 auto;
    background-color: var(--intranet-dark);
    padding: 20px;
    border: 2px solid var(--intranet-danger);
  }
  
  .login-big input {
    background-color: transparent;
    color: var(--brand-bg);
    border: none;
    padding: 8px 10px;
    width: 100%;
  }
  
  .login-big button {
      background-color: var(--brand-accent);
      color: var(--brand-white);
      border: 0;
      padding: 10px 20px;
      cursor: pointer;
      font-weight: 700;
      border-radius: 6px;
      transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  }
  
  .login-big button:hover {
      background-color: var(--brand-accent-2);
      transform: translateY(-1px);
  }

  /* Rectangle style around inputs */
  .input-rect {
    background: var(--white);
    border: 1px solid var(--grey);
    padding: 6px 8px;
    border-radius: 6px;
    margin: 8px 0;
    box-shadow: inset 0 -2px 8px var(--overlay-dark);
  }

  .input-rect:focus-within {
    border-color: var(--brand-accent);
  }
  
  /* ==========================================
     11. UNDER CONSTRUCTION
     ========================================== */
  .under-construction {
    text-align: center;
    margin: 10px 0;
    color: var(--intranet-text);
  }
  
  .under-construction img {
    width: 150px;
    height: auto;
  }
  
  img.badge {
    width: 60px;
    height: auto;
    float: left;
    margin-right: 10px;
  }
  
  /* ==========================================
     12. FOOTER
     ========================================== */
  .footer {
    background-color: var(--intranet-dark);
    text-align: center;
    padding: 10px;
    border-top: 2px solid var(--intranet-danger);
    font-size: 12px;
    color: var(--intranet-text);
  }
  
  /* ==========================================
     13. TERMINAL INTERACTIF
     ========================================== */
  .terminal-box {
    margin-top: 20px;
    border: 1px solid var(--grey);
    background: linear-gradient(180deg, var(--intranet-dark) 0%, var(--brand-bg) 100%);
    padding: 12px;
    box-shadow: 0 6px 18px var(--overlay-dark);
  }

  .terminal-box h3 {
    color: var(--brand-accent-2);
    margin: 0 0 10px 0;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid var(--grey);
    padding-bottom: 6px;
  }

  .terminal-screen {
    background-color: #000000;
    border: 1px solid var(--grey);
    padding: 12px;
    height: 300px;
    overflow-y: auto;
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: var(--intranet-text);
    margin-bottom: 10px;
  }
  
  .terminal-line {
    margin: 2px 0;
    line-height: 1.4;
  }
  
  .terminal-line.error {
    color: var(--intranet-danger);
  }
  
  .terminal-line.success {
    color: var(--lime);
  }
  
  .terminal-line.warning {
    color: var(--yellow);
  }
  
  .terminal-input-area {
    display: flex;
    align-items: center;
    background-color: #000000;
    border: 1px solid var(--intranet-text);
    padding: 5px;
  }
  
  .terminal-prompt {
    color: var(--intranet-text);
    margin-right: 5px;
    font-weight: bold;
  }
  
  .terminal-input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: var(--brand-accent-2);
    font-family: "Courier New", monospace;
    font-size: 13px;
    outline: none;
  }
  
  .terminal-screen::-webkit-scrollbar {
    width: 8px;
  }
  
  .terminal-screen::-webkit-scrollbar-track {
    background: #000000;
  }
  
  .terminal-screen::-webkit-scrollbar-thumb {
    background: var(--brand-accent);
    border-radius: 4px;
  }

/* ==========================================
   IN-PAGE TRANSITION OVERLAY (integrated animation)
   ========================================== */
.transition-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, var(--bg-soft) 0%, var(--brand-bg) 62%, var(--brand-bg) 100%);
  z-index: 9999;
  overflow: hidden;
}

.transition-overlay .overlay-inner {
  width: min(560px, calc(100% - 40px));
  border: 1px solid var(--grey);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-soft));
  box-shadow: 0 18px 40px var(--overlay-dark);
  padding: 22px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.transition-overlay.play .overlay-inner {
  animation: transitionPanelIn 260ms ease-out forwards;
}

.transition-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--accent-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  transform: perspective(380px) rotateX(36deg) translateY(10px);
  transform-origin: center bottom;
  animation: gridDrift 3.2s linear infinite;
}

.transition-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-accent-2) 50%, transparent 100%);
  box-shadow: 0 0 14px var(--accent-soft);
  opacity: 0;
}

.transition-overlay.play .transition-scanline {
  animation: scanDown 1900ms cubic-bezier(0.2, 0, 0.2, 1) 120ms forwards;
}

.transition-core {
  margin: 0 auto 14px;
  width: 112px;
  height: 112px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  opacity: 0.5;
}

.ring-1 {
  width: 112px;
  height: 112px;
}

.ring-2 {
  width: 86px;
  height: 86px;
  border-color: var(--brand-accent-2);
}

.ring-3 {
  width: 60px;
  height: 60px;
  border-color: var(--brand-accent);
}

.transition-overlay.play .ring-1 { animation: spinClockwise 1.8s linear infinite; }
.transition-overlay.play .ring-2 { animation: spinCounter 1.3s linear infinite; }
.transition-overlay.play .ring-3 { animation: pulseRing 1.1s ease-in-out infinite; }

.core-lock {
  width: 26px;
  height: 22px;
  border: 2px solid var(--brand-accent-2);
  border-radius: 4px;
  position: relative;
  background: var(--overlay-dark);
}

.core-lock::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 11px;
  border: 2px solid var(--brand-accent-2);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
}

.transition-panel {
  position: relative;
  z-index: 2;
  border: 1px solid var(--grey);
  background: var(--overlay-dark);
  padding: 14px;
}

.transition-title {
  margin: 0 0 8px 0;
  font-size: 14px;
  letter-spacing: 1.2px;
  color: var(--brand-accent-2);
  text-align: center;
}

.transition-status {
  margin: 0 0 12px 0;
  font-size: 12px;
  text-align: center;
  color: var(--brand-white);
  min-height: 18px;
}

.transition-progress {
  height: 10px;
  border: 1px solid var(--grey);
  background: var(--white);
  overflow: hidden;
  margin-bottom: 10px;
}

.transition-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-2));
}

.transition-overlay.play .transition-progress-bar {
  animation: progressFill 2500ms cubic-bezier(0.2, 0.75, 0.2, 1) 180ms forwards;
}

.transition-log {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: var(--brand-muted);
}

.transition-log li {
  padding: 4px 0;
  border-top: 1px dashed var(--accent-soft);
  opacity: 0;
  transform: translateX(-6px);
}

.transition-overlay.play .transition-log li:nth-child(1) {
  animation: logReveal 360ms ease-out 260ms forwards;
}

.transition-overlay.play .transition-log li:nth-child(2) {
  animation: logReveal 360ms ease-out 920ms forwards;
}

.transition-overlay.play .transition-log li:nth-child(3) {
  animation: logReveal 360ms ease-out 1550ms forwards;
}

@keyframes transitionPanelIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 32px, 32px 0; }
}

@keyframes scanDown {
  0% { top: -10px; opacity: 0; }
  12% { opacity: 0.8; }
  88% { opacity: 0.75; }
  100% { top: calc(100% + 8px); opacity: 0; }
}

@keyframes progressFill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(0.95); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes logReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================
   EASTER EGG: ECHO REVIVE OVERLAY
   ========================================== */
.echo-revive-overlay {
  position: fixed;
  inset: 0;
  display: none; /* shown when triggered */
  align-items: center;
  justify-content: center;
  background: #175f99;
  z-index: 10000;
  backdrop-filter: blur(3px);
  flex-direction: column;
  --accent-bright: #ffffff;
}

.echo-revive-inner {
  width: 420px;
  max-width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.echo-revive-overlay .anim-container {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.echo-revive-overlay .path-style {
  fill: none;
  stroke: var(--accent-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 14;
}

.echo-revive-overlay .particle {
  fill: var(--accent-bright);
  animation: floatParticle 4s ease-in-out infinite;
}

.echo-revive-overlay.play #echo-mask-revealer {
  animation: wipe-mask 2200ms ease-out forwards;
}

@keyframes wipe-mask {
  from { transform: translateX(0); }
  to { transform: translateX(-510px); }
}

.echo-revive-overlay.play .scan-line-vertical {
  position: absolute;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-bright), transparent);
  top: 0;
  left: 100%;
  opacity: 0.6;
  animation: scanReveal 2s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes scanReveal {
  0% { left: 100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: -10px; opacity: 0; }
}

.echo-revive-overlay svg {
  width: 100%;
  height: auto;
  filter: none;
}

.echo-revive-text {
  margin-top: 30px;
  text-align: center;
  font-family: var(--font-main);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--accent-bright);
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Typing area rectangle: visually indicate where user types */
.terminal-input-area {
  display: flex;
  align-items: center;
  background-color: var(--overlay-dark);
  border: 1px solid var(--grey);
  padding: 10px 12px;
  border-radius: 6px;
}

.terminal-input-area:focus-within {
  border-color: var(--brand-accent);
}

/* ==========================================
   BUTTON UTILITIES
   ========================================== */
.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  border: none;
}

.btn.fullwidth { width: 100%; text-align: center; }

.btn-primary { background: var(--brand-accent); color: var(--brand-white); }
.btn-primary:hover { background: var(--brand-accent-2); }

.btn-danger { background: var(--brand-danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.95); }

  /* ==========================================
     14. ANIMATION BLINK
     ========================================== */
  @keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }

  .blink {
    animation: blink 2s infinite;
  }

/* ==========================================
   ACCESS LEVEL RESTRICTIONS
   ========================================== */

/* Contenu visible uniquement pour l'accès "full" (Rousseau) */
#restricted-content.access-level-light .sensitive-box:not(.sacha-notes),
#restricted-content.access-level-light .message-board,
#restricted-content.access-level-light .terminal-box {
  display: none !important;
}

/* Afficher spécifiquement les notes Sacha pour l'accès "light" */
#restricted-content.access-level-light .sacha-notes {
  display: block !important;
}

/* Pour l'accès "light", masquer les éléments sensibles de la sidebar mais pas la sidebar elle-même */
#restricted-content.access-level-light .sidebar .sensitive-box,
#restricted-content.access-level-light .sidebar .system-stats,
#restricted-content.access-level-light .sidebar .under-construction {
  display: none !important;
}

/* Masquer certains liens de navigation sensibles pour "light" */
#restricted-content.access-level-light .navigation a {
  display: none;
}

#restricted-content.access-level-light .navigation a:first-child {
  display: inline-block;
}

/* Afficher le lien messagerie pour l'accès "light" (Sacha) */
#restricted-content.access-level-light #nav-messagerie {
  display: inline-block !important;
}

/* Message de restriction pour accès "light" */
#restricted-content.access-level-light .content::before {
  content: 'Accès restreint - Fonctionnalités limitées';
  display: block;
  background-color: var(--danger-soft);
  border: 1px dashed var(--danger-soft);
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--brand-muted);
  text-align: center;
  letter-spacing: 0.5px;
}

/* ==========================================
   STYLES POUR L'ENIGME DANS HIDDEN (Rousseau)
   Fond sombre, accents cyan/orange, typographie resserrée
   ========================================== */
.rousseau-section .coordinates-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:14px; margin-top:12px; }
.rousseau-section . { background: linear-gradient(180deg, var(--intranet-dark), var(--bg-soft)); border: 1px solid var(--grey); padding:14px; border-left:4px solid var(--accent-soft); border-radius:8px; box-shadow: 0 6px 18px var(--overlay-dark); }
.rousseau-section .coordinate-card.prison { border-left-color: var(--orange-accent); }
.rousseau-section .coordinate-id { color: var(--brand-accent-2); font-weight:800; }
.rousseau-section .coordinate-coords { font-family: var(--font-mono); color: var(--intranet-text); background: var(--overlay-dark); padding:8px; border-radius:6px; }
.rousseau-section .location-name { color: var(--brand-accent-2); font-weight:800; margin-top:8px; display:none; }
.rousseau-section .location-name.revealed { display:block; }
.rousseau-section .coordinate-description { color: var(--intranet-text); font-size:13px; }

.rousseau-section .guess-input { background: var(--overlay-dark); color: var(--brand-white); border:1px solid var(--grey); }
.rousseau-section .coordinate-button { background: linear-gradient(90deg,var(--brand-accent),var(--brand-accent-2)); color:#001018; }

.rousseau-section .secret-unlock { background: var(--bg-soft); }
.rousseau-section .secret-content { border: 2px solid var(--accent-soft); background: linear-gradient(180deg,var(--brand-surface),var(--brand-bg)); }
.rousseau-section .code-input { background: var(--white); color: var(--brand-white); border:1px solid var(--accent-soft); }
.rousseau-section .code-feedback.success { border-color: #1abc9c; }
.rousseau-section .code-feedback.error { border-color: var(--orange-accent); }

/* ==== High-contrast look when a coordinate is validated ==== */
.rousseau-section .coordinate-card.discovered {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-soft));
  border-left-color: var(--brand-accent) !important;
  box-shadow: 0 6px 12px var(--overlay-dark);
  transform: translateY(-2px);
  transition: transform 180ms ease, box-shadow 180ms ease ;
}

.rousseau-section .coordinate-card.discovered .coordinate-coords {
  background: var(--overlay-dark);
  color: var(--brand-white);
}

.rousseau-section .coordinate-card.discovered .coordinate-status.found {
  background: linear-gradient(90deg,#00cc88,var(--success-dark));
  color: #001018;
}

.rousseau-section .coordinate-card.discovered .location-name {
  color: #00ffdd;
}


/* small responsive tweaks */
@media (max-width: 768px) {
  .rousseau-section .coordinates-grid { grid-template-columns: 1fr; }
  .rousseau-section #map { height: 300px; }
}

/* Ensure Leaflet tiles display correctly inside the hidden-themed panel */
.rousseau-section .leaflet-container { background: transparent; border-radius: 6px; }
.rousseau-section .leaflet-tile-pane img { filter: none; opacity: 1; }

/* Navigation active state for tabs */
.navigation a.active {
  background-color: var(--accent-soft);
  color: var(--brand-accent);
  box-shadow: 0 4px 14px var(--accent-soft);
}


/* === Contenu Rapports intégré (visible uniquement pour Sacha / access-level: light) === */
.rousseau-section { display: none; }
#restricted-content.access-level-light .rousseau-section { display: block; }

/* Montrer le lien de navigation Rapports uniquement pour accès light (Sacha) */
#nav-rapports { display: none; }
#restricted-content.access-level-light #nav-rapports { display: inline-block; }
#restricted-content.access-level-full #nav-rapports { display: inline-block; }

/* Layout pour l'onglet Rapports intégré */
.rousseau-section .map-container { background: transparent; }
.rousseau-section #map { height: 420px; width: 100%; border-radius: 6px; border: 1px solid var(--grey); }

/* Fake reports visible only to Rousseau (full access) */
.fake-reports { display: none; }
#restricted-content.access-level-full .fake-reports { display: block; }
.fake-reports {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-soft));
  border: 1px solid var(--grey);
  padding: 14px;
  border-radius: 8px;
}
.fake-reports h3 { margin: 0 0 8px 0; color: var(--brand-accent-2); font-size: 1.05rem; }
.fake-report-list { margin: 8px 0 0 0; padding-left: 18px; color: var(--brand-muted); }
.fake-report-item {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent-soft);
  padding: 10px 12px;
  margin-bottom: 10px;
  color: #cfe9ee;
  font-size: 0.95rem;
  border-radius: 4px;
}
.fake-report-meta { font-size: 12px; color: var(--brand-muted); margin-bottom: 6px; }

/* Sacha-only glitch layer for Rapports tab */
#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch {
  position: relative;
}

#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch .page-header,
#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch .coordinate-card {
  position: relative;
  overflow: hidden;
}

#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.16;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(180, 255, 255, 0.06) 0,
      rgba(180, 255, 255, 0.06) 2px,
      rgba(0, 0, 0, 0) 3px,
      rgba(0, 0, 0, 0) 6px
    );
  animation: flicker 0.28s infinite;
}

#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch .section-title {
  text-shadow: -1px 0 rgba(255, 0, 90, 0.45), 1px 0 rgba(0, 240, 255, 0.55);
  animation: rgb-shift 1.2s steps(2, end) infinite;
}

#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch .coordinate-card:nth-child(odd) {
  animation: flicker 8s steps(2, end) infinite;
  animation-delay: 0.3s;
}

#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch .coordinate-card:nth-child(even) {
  animation: flicker 9.5s steps(2, end) infinite;
  animation-delay: 0.8s;
}

#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch.glitch-burst .section-title {
  filter: contrast(1.12) saturate(1.16) brightness(1.04);
}

#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch.glitch-burst .coordinate-card {
  filter: contrast(1.08) saturate(1.12);
}

#restricted-content.access-level-light #panel-rapports.sacha-rapport-glitch .glitch-hit {
  animation: flicker 0.2s steps(2, end) 1;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.28), 0 0 14px rgba(0, 240, 255, 0.14);
}
/* ========================================
   AUDIOBANQUE STYLES - SACHA (MINIMAL)
   ======================================== */

/* Montrer l'onglet Audiobanque uniquement pour Sacha et Rousseau */
#nav-audiobanque { display: none; }
#restricted-content.access-level-light #nav-audiobanque { display: inline-block; }
#restricted-content.access-level-full #nav-audiobanque { display: inline-block; }

.sacha-audio-section { display: none; }
#restricted-content.access-level-light .sacha-audio-section { display: block; }
#restricted-content.access-level-full .sacha-audio-section { display: block; }

/* Audiobank Header */
.audiobank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey);
}

.audiobank-header h2 {
  margin: 0;
  color: var(--brand-white);
  font-size: 1.2rem;
  font-family: var(--font-main);
  letter-spacing: 0.5px;
}

.audiobank-stats {
  font-size: 12px;
  color: var(--brand-muted);
}

.stat-value {
  color: var(--brand-white);
  font-weight: 600;
}

/* Audiobank Grid */
.audiobank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

/* Audio Card - Minimal */
.audio-card {
  background: transparent;
  border: 1px solid var(--grey);
  border-radius: 0;
  padding: 12px;
  transition: border-color var(--transition-normal) ease, background var(--transition-normal) ease;
}

.audio-card:hover {
  background: var(--bg-soft);
  border-color: var(--brand-accent-2);
  box-shadow: 0 6px 16px var(--overlay-dark);
}

.audio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.audio-card-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brand-white);
  font-family: var(--font-secondary);
  font-weight: 600;
  flex: 1;
}

.audio-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 6px;
  border-radius: 0;
  white-space: nowrap;
  background: transparent;
  color: var(--brand-muted);
  text-transform: uppercase;
  border: 1px solid var(--grey);
}

.audio-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--brand-muted);
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}

.audio-duration {
  font-weight: 600;
  color: var(--brand-white);
}

.audio-date {
  opacity: 0.7;
}

/* Audio Player Controls */
.audio-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--grey);
  color: var(--brand-white);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast) ease;
  flex-shrink: 0;
}

.play-btn:hover {
  background: var(--white);
  border-color: var(--grey);
}

.play-btn.playing {
  background: var(--bg-soft);
  border-color: var(--brand-accent-2);
  color: var(--brand-accent-2);
}

.play-btn.playing:hover {
  background: var(--bg-soft);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}

.play-btn.playing .play-icon {
  border: none;
  width: 8px;
  height: 8px;
  background: 
    linear-gradient(90deg, currentColor 1.5px, transparent 1.5px, transparent 3px, currentColor 3px),
    linear-gradient(90deg, currentColor 6px, transparent 6px, transparent 7.5px, currentColor 7.5px);
  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
}

.audio-progress {
  flex: 1;
  height: 20px;
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--grey);
}

.progress-bar-audio {
  height: 100%;
  background: var(--white);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0;
}

.time-display {
  font-size: 10px;
  color: var(--brand-muted);
  min-width: 55px;
  text-align: right;
  font-weight: 400;
}

/* Audiobank Footer */
.audiobank-footer {
  background: transparent;
  border: 1px solid var(--grey);
  border-radius: 0;
  padding: 10px 12px;
  margin-top: 15px;
}

.footer-note {
  margin: 0;
  font-size: 10px;
  color: var(--brand-muted);
  letter-spacing: 0.2px;
  line-height: 1.4;
  text-transform: uppercase;
}
