/* ============================================= */
/* ============= VARIABLES GLOBALES ============ */
/* ============================================= */
:root {
  --primary: #00ff41;
  --bg: #0d0208;
  --card: rgba(15, 15, 15, 0.98);
  --text: #00ff41;
  --accent: #ff003c;
  --electric-blue: #00d4ff;
  --row-bg: rgba(30, 30, 50, 0.9);
}

/* ============================================= */
/* ================ RESET & BASE =============== */
/* ============================================= */
body {
  font-family: 'Courier New', monospace;
  background: var(--bg);
  color: #fff;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  transition: opacity 0.15s ease-in-out;
}
body.loading-system .container {
  opacity: 0;
  pointer-events: none;
}
.hidden { display: none; }

/* ============================================= */
/* ================== LAYOUT =================== */
/* ============================================= */
.container {
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

/* ============================================= */
/* =========== ARRIÈRE-PLAN MATRIX ============= */
/* ============================================= */
#matrix-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 1;
}

/* ============================================= */
/* ============ LOGO PLATEFORME ================ */
/* ============================================= */
.logo-lien-plateforme {
  position: fixed;
  top: 20px; left: 20px;
  z-index: 1000;
  transition: transform 0.2s ease, filter 0.2s ease;
  display: inline-block;
  cursor: pointer;
}
.logo-img-plateforme {
  height: 150px;
  width: auto;
  display: block;
}
.logo-lien-plateforme:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px var(--electric-blue));
}

/* ============================================= */
/* =========== TITRE & NAVIGATION ============== */
/* ============================================= */
h1 {
  text-align: center;
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary);
  font-size: 2.5em;
  margin-bottom: 30px;
}
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
nav button {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 12px 25px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  font-weight: bold;
}
nav button.active {
  background: var(--primary);
  color: black;
  box-shadow: 0 0 20px var(--primary);
}

/* ============================================= */
/* ========= TABLE DES MISSIONS ================ */
/* ============================================= */
.mission-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  margin: auto;
}
.mission-table th {
  color: #fff;
  text-transform: uppercase;
  padding: 20px;
  font-size: 1.1em;
  border-bottom: 2px solid var(--electric-blue);
  text-align: center;
  letter-spacing: 2px;
  background: rgba(0, 212, 255, 0.05);
}
.mission-table th:first-child {
  text-align: left;
  padding-left: 30px;
}
.mission-row td {
  padding: 20px;
  background: var(--row-bg);
  text-align: center;
  font-size: 1.1em;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mission-row td:first-child {
  border-left: 3px solid var(--electric-blue);
  border-radius: 8px 0 0 8px;
  text-align: left;
  padding-left: 30px;
  color: var(--electric-blue);
  font-weight: bold;
}
.mission-row td:last-child {
  border-right: 3px solid var(--electric-blue);
  border-radius: 0 8px 8px 0;
}

/* ============================================= */
/* ========= BADGES DE DIFFICULTÉ ============== */
/* ============================================= */
.badge-diff {
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 0.9em;
  border: 2px solid;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-block;
}
.diff-café_froid {
  border-color: #00d4ff; color: #00d4ff;
  background: rgba(0,0,0,0.85);
  text-shadow: 0 0 10px #00d4ff;
  box-shadow: 0 0 15px rgba(0,212,255,0.5);
}
.diff-nuit_blanche {
  border-color: #ffaa00; color: #ffaa00;
  background: rgba(0,0,0,0.85);
  text-shadow: 0 0 10px #ffaa00;
  box-shadow: 0 0 15px rgba(255,170,0,0.5);
}
.diff-burnout {
  border-color: #ff0055; color: #ff0055;
  background: rgba(0,0,0,0.85);
  text-shadow: 0 0 10px #ff0055;
  box-shadow: 0 0 18px rgba(255,0,85,0.6);
}
.diff-lait_fraise {
  border-color: #ffffff; color: #ffffff;
  background: rgba(0,0,0,0.85);
  text-shadow: 0 0 10px #ffffff;
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* ============================================= */
/* ============ PASTILLES (DOTS) =============== */
/* ============================================= */
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 12px;
  vertical-align: middle;
}
.dot-red {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.5s infinite;
}
.dot-green {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================= */
/* =========== BOUTONS D'ACTION ================ */
/* ============================================= */
.btn-action {
  background: var(--electric-blue);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: 0.3s;
}
.btn-action:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--electric-blue);
}

/* ============================================= */
/* =========== BOÎTES DE CONTENU =============== */
/* ============================================= */
.rules-box, .category-box {
  background: var(--card);
  padding: 40px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  margin-top: 20px;
}
.mission-desc {
  font-size: 1.1em;
  color: #000;
  background: #fff;
  padding: 20px;
  border-left: 6px solid var(--primary);
  margin: 20px 0;
  line-height: 1.6;
  text-align: justify;
  font-weight: 500;
}

/* ============================================= */
/* ============== LEADERBOARD ================== */
/* ============================================= */
.rank-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.rank-table th {
  padding: 20px;
  color: var(--electric-blue);
  border-bottom: 2px solid var(--primary);
  font-size: 1.2em;
}
.rank-table td {
  padding: 20px;
  font-size: 1.2em;
  border-bottom: 1px solid rgba(0,255,65,0.1);
}

/* ============================================= */
/* ================== INPUTS =================== */
/* ============================================= */
input {
  padding: 12px;
  border: 1px solid var(--primary);
  background: #000;
  color: var(--primary);
  width: 100%;
  font-family: 'Courier New';
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* ============================================= */
/* =========== NOTIFICATIONS (TOASTS) ========== */
/* ============================================= */
#notification-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
}
.toast {
  padding: 15px 25px;
  border: 1px solid var(--primary);
  background: #000;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* ============================================= */
/* ========= JAUGES DE PROGRESSION ============= */
/* ============================================= */
.jauge-t1 { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.jauge-t2 { background: #ffaa00; box-shadow: 0 0 8px #ffaa00; }
.jauge-t3 { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ============================================= */
/* ============ GALERIE PHOTOS ================ */
/* ============================================= */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}
.gallery-item {
  flex: 1 1 250px;
  max-width: 320px;
  height: 280px;
  border: 1px solid rgba(0,212,255,0.3);
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  transition: 0.3s;
}
.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--electric-blue);
  box-shadow: 0 0 15px rgba(0,212,255,0.4);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.8;
  transition: 0.3s;
}
.gallery-item img:hover { opacity: 1; }
.gallery-item .img-caption {
  padding: 8px;
  font-size: 0.75em;
  color: var(--electric-blue);
  text-align: center;
  border-top: 1px solid rgba(0,212,255,0.1);
  background: #000;
  margin-top: auto;
}

/* ============================================= */
/* ================ LIGHTBOX =================== */
/* ============================================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid var(--electric-blue);
  box-shadow: 0 0 30px rgba(0,212,255,0.5);
  border-radius: 4px;
  animation: zoomIn 0.2s ease-out;
}
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============================================= */
/* ======= GRILLE DES CHALLENGES (CTFd) ======== */
/* ============================================= */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.challenge-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.challenge-card.active-card {
  border-color: var(--electric-blue);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 10px rgba(0,212,255,0.1);
}
.challenge-card.active-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0,212,255,0.3);
}
.challenge-card.locked-card {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(255,255,255,0.05);
}
.challenge-card .card-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 10px;
  color: #fff;
}
.challenge-card .card-points {
  color: var(--electric-blue);
  font-size: 0.9em;
  margin-top: 5px;
  font-weight: bold;
}

/* ============================================= */
/* ========= MODAL : CORPS & INPUT FLAG ======== */
/* ============================================= */
#modal-body {
  font-size: 1.05em;
  line-height: 1.6;
}
#modal-body p,
#modal-body div {
  margin-bottom: 15px;
}
#modal-body input[type="text"] {
  background: #020617 !important;
  border: 1px solid rgba(0,212,255,0.3) !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}
#modal-body input[type="text"]:focus {
  border-color: var(--electric-blue) !important;
  box-shadow: 0 0 10px rgba(0,212,255,0.2) !important;
}

/* ============================================= */
/* ========= GROUPE DIFFICULTÉ ================= */
/* ============================================= */
.difficulty-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}
.difficulty-count {
  font-size: 0.9em;
  color: #00d4ff;
  font-weight: bold;
  font-family: monospace;
}

/* ============================================= */
/* =========== PAGE MÉTHODOLOGIE OSINT ========= */
/* ============================================= */
.metho-section {
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid var(--electric-blue);
  border-radius: 8px;
  border-left: 4px solid var(--electric-blue);
}

.metho-section h3 {
  color: var(--electric-blue);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.metho-section h4 {
  color: var(--primary);
  font-size: 1.1em;
  margin-top: 20px;
  margin-bottom: 10px;
}

.metho-section p,
.metho-section li {
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 0.95em;
  text-align: justify;
}

.metho-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.metho-steps li {
  counter-increment: step-counter;
  padding: 15px 20px 15px 60px;
  margin-bottom: 15px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 6px;
  position: relative;
  transition: 0.3s;
}

.metho-steps li:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--electric-blue);
  transform: translateX(5px);
}

.metho-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--electric-blue);
  color: #000;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tool-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  padding: 20px;
  transition: 0.3s;
}

.tool-card:hover {
  border-color: var(--electric-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
}

.tool-card h5 {
  color: var(--electric-blue);
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

.tool-card p {
  color: #aaa;
  font-size: 0.85em;
  margin: 0 0 10px 0;
}

.tool-card a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85em;
  font-weight: bold;
  transition: 0.3s;
}

.tool-card a:hover {
  color: var(--electric-blue);
  text-decoration: underline;
}

.tip-box {
  background: rgba(255, 170, 0, 0.05);
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-left: 4px solid #ffaa00;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 4px;
}

.tip-box strong {
  color: #ffaa00;
}

.tip-box p {
  margin: 5px 0;
  color: #e0e0e0;
}

.warning-box {
  background: rgba(255, 0, 60, 0.05);
  border: 1px solid rgba(255, 0, 60, 0.3);
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 4px;
}

.warning-box strong {
  color: var(--accent);
}

.warning-box p {
  margin: 5px 0;
  color: #e0e0e0;
}

/* ============================================= */
/* =========== PAGE MÉTHODOLOGIE OSINT ========= */
/* ============================================= */
.metho-section {
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid var(--electric-blue);
  border-radius: 8px;
  border-left: 4px solid var(--electric-blue);
}

.metho-section h3 {
  color: var(--electric-blue);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.metho-section h4 {
  color: var(--primary);
  font-size: 1.1em;
  margin-top: 20px;
  margin-bottom: 10px;
}

.metho-section p,
.metho-section li {
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 0.95em;
  text-align: justify;
}

.metho-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.metho-steps li {
  counter-increment: step-counter;
  padding: 15px 20px 15px 60px;
  margin-bottom: 15px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 6px;
  position: relative;
  transition: 0.3s;
}

.metho-steps li:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--electric-blue);
  transform: translateX(5px);
}

.metho-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--electric-blue);
  color: #000;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tool-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  padding: 20px;
  transition: 0.3s;
}

.tool-card:hover {
  border-color: var(--electric-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
}

.tool-card h5 {
  color: var(--electric-blue);
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

.tool-card p {
  color: #aaa;
  font-size: 0.85em;
  margin: 0 0 10px 0;
}

.tool-card a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85em;
  font-weight: bold;
  transition: 0.3s;
}

.tool-card a:hover {
  color: var(--electric-blue);
  text-decoration: underline;
}

.tip-box {
  background: rgba(255, 170, 0, 0.05);
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-left: 4px solid #ffaa00;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 4px;
}

.tip-box strong {
  color: #ffaa00;
}

.tip-box p {
  margin: 5px 0;
  color: #e0e0e0;
}

.warning-box {
  background: rgba(255, 0, 60, 0.05);
  border: 1px solid rgba(255, 0, 60, 0.3);
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 4px;
}

.warning-box strong {
  color: var(--accent);
}

.warning-box p {
  margin: 5px 0;
  color: #e0e0e0;
}  

/* ============================================= */
/* ================ MODAL PROFIL =============== */
/* ============================================= */
#profil-stats .stat-box {
  text-align: center;
  padding: 15px 20px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  min-width: 140px;
}

#profil-stats .stat-value {
  font-size: 2em;
  font-weight: 900;
  color: var(--electric-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  display: block;
}

#profil-stats .stat-label {
  font-size: 0.75em;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
  display: block;
}

@media (max-width: 900px) {
  #profil-modal > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================= */
/* =========== BOUTON PROFIL & DISCONNECT ======= */
/* ============================================= */
.btn-profil {
  border-color: var(--electric-blue) !important;
  color: var(--electric-blue) !important;
  text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
  transition: all 0.3s ease;
}

.btn-profil:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
  text-shadow: 0 0 10px var(--electric-blue);
  transform: translateY(-2px);
}

.btn-disconnect {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  text-shadow: 0 0 5px rgba(255, 0, 60, 0.5);
  transition: all 0.3s ease;
}

.btn-disconnect:hover {
  background: rgba(255, 0, 60, 0.1);
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
  text-shadow: 0 0 10px var(--accent);
  transform: translateY(-2px);
}

/* ============================================= */
/* ================ GALERIE BADGES ============= */
/* ============================================= */
.badges-gallery {
  display: flex;
  flex-wrap: wrap; /* Passe à la ligne automatiquement */
  justify-content: center;
  gap: 20px;
  min-height: 100px;
  padding: 10px 0;
}

.badge-item {
  position: relative;
  width: 90px;
  height: 90px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.badge-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.4));
  transition: all 0.3s ease;
}

/* Effet au survol : zoom + glow */
.badge-item:hover {
  transform: scale(1.15) translateY(-5px);
  z-index: 10;
}

.badge-item:hover img {
  filter: drop-shadow(0 0 15px var(--electric-blue));
}

/* Tooltip (Infobulle) */
.badge-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--electric-blue);
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.8em;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.badge-tooltip .tt-name {
  color: var(--electric-blue);
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  font-size: 1.1em;
}

.badge-item:hover .badge-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Message si aucun badge */
.badges-empty {
  color: #666;
  font-style: italic;
  text-align: center;
  width: 100%;
  padding: 20px;
  font-size: 0.9em;
}
/* ============================================= */
/* =========== MODERN BRIEFING STYLES ========== */
/* ============================================= */
.briefing-title { 
  color: var(--electric-blue); 
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5); 
  font-size: 2em; 
  letter-spacing: 3px; 
  margin-bottom: 30px; 
  border-bottom: 2px solid rgba(0, 212, 255, 0.3); 
  padding-bottom: 15px; 
}

.ai-warning { 
  background: rgba(255, 0, 60, 0.05); 
  border: 1px solid var(--accent); 
  border-left: 4px solid var(--accent); 
  padding: 20px; 
  border-radius: 8px; 
  margin-bottom: 40px; 
  color: #fff; 
  text-align: center; 
  font-weight: bold; 
  letter-spacing: 1px; 
}
.ai-warning span { color: var(--accent); }

.briefing-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 20px; 
  margin-bottom: 40px; 
}

.briefing-card { 
  background: rgba(15, 15, 15, 0.6); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 12px; 
  padding: 25px; 
  transition: all 0.3s ease; 
  position: relative; 
  overflow: hidden; 
}
.briefing-card:hover { 
  transform: translateY(-5px); 
  border-color: var(--electric-blue); 
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15); 
}
.briefing-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; left: 0; 
  width: 4px; height: 100%; 
  background: var(--electric-blue); 
  opacity: 0.5; 
}
.briefing-card h4 { 
  color: var(--electric-blue); 
  margin-top: 0; margin-bottom: 10px; 
  font-size: 1.1em; letter-spacing: 1px; 
}
.briefing-card p { 
  color: #aaa; font-size: 0.9em; line-height: 1.6; margin: 0; 
}

.difficulty-section-title { 
  color: var(--primary); 
  font-size: 1.5em; 
  margin: 40px 0 20px 0; 
  letter-spacing: 2px; 
}

.diff-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 15px; 
  margin-bottom: 40px; 
}

.diff-card { 
  background: rgba(0, 0, 0, 0.4); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 8px; 
  padding: 20px; 
  transition: 0.3s; 
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.diff-card:hover { background: rgba(255, 255, 255, 0.05); }
.diff-card .badge-diff { 
  align-self: flex-start;
  margin-bottom: 5px;
}
.diff-card p { 
  margin: 0; 
  color: #ccc; 
  font-size: 0.9em; 
  line-height: 1.5;
  text-align: justify;
}

.rules-split { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 30px; 
  margin: 40px 0; 
}
@media (max-width: 768px) { .rules-split { grid-template-columns: 1fr; } }

.rules-col { 
  background: rgba(15, 15, 15, 0.8); 
  border-radius: 12px; 
  padding: 25px; 
  border: 1px solid rgba(255, 255, 255, 0.1); 
}
.rules-col h3 { margin-top: 0; font-size: 1.2em; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.rules-col.green h3 { color: var(--primary); }
.rules-col.green { border-top: 3px solid var(--primary); }
.rules-col.red h3 { color: var(--accent); }
.rules-col.red { border-top: 3px solid var(--accent); }

.rules-list { list-style: none; padding: 0; margin: 0; }
.rules-list li { 
  padding: 10px 0; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
  color: #ddd; font-size: 0.95em; 
  display: flex; align-items: flex-start; gap: 10px; 
}
.rules-list li:last-child { border-bottom: none; }

.flag-box { 
  background: #000; 
  border: 1px solid var(--electric-blue); 
  border-radius: 8px; 
  padding: 30px; 
  margin: 40px 0; 
  position: relative; 
}
.flag-box::before { 
  content: 'FLAG_FORMAT'; 
  position: absolute; 
  top: -10px; left: 20px; 
  background: var(--bg); 
  padding: 0 10px; 
  color: var(--electric-blue); 
  font-size: 0.8em; letter-spacing: 2px; 
}
.flag-code { 
  font-family: monospace; 
  font-size: 1.5em; 
  color: var(--electric-blue); 
  text-align: center; 
  letter-spacing: 3px; 
  margin: 20px 0; 
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); 
}
.anti-brute { 
  background: rgba(255, 0, 60, 0.05); 
  border-left: 3px solid var(--accent); 
  padding: 15px; 
  color: #ccc; font-size: 0.9em; 
  margin-top: 20px; 
}

.cta-container { text-align: center; margin-top: 50px; }
.cta-btn { 
  background: transparent; 
  border: 2px solid var(--electric-blue); 
  color: var(--electric-blue); 
  padding: 15px 40px; 
  font-size: 1.2em; 
  font-weight: bold; 
  letter-spacing: 2px; 
  border-radius: 6px; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  text-transform: uppercase; 
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2); 
}
.cta-btn:hover { 
  background: var(--electric-blue); 
  color: #000; 
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6); 
  transform: scale(1.05); 
}

/* ============================================= */
/* =========== MODERN METHODO STYLES =========== */
/* ============================================= */
.metho-header {
  color: var(--electric-blue);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  font-size: 2em;
  letter-spacing: 3px;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
  padding-bottom: 15px;
}
.metho-subtitle {
  color: #888;
  font-size: 0.95em;
  margin-bottom: 40px;
  font-style: italic;
}

.metho-section {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.metho-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--electric-blue);
  opacity: 0.7;
}
.metho-section:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.1);
}

.metho-section h3 {
  color: var(--electric-blue);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.metho-section h4 {
  color: var(--primary);
  font-size: 1.15em;
  margin-top: 25px;
  margin-bottom: 15px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.metho-section h4::before {
  content: '▸';
  color: var(--electric-blue);
}

.metho-section p {
  color: #ccc;
  line-height: 1.7;
  font-size: 0.95em;
  text-align: justify;
  margin-bottom: 15px;
}

/* Liste des étapes numérotées */
.metho-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: grid;
  gap: 15px;
}

.metho-steps li {
  counter-increment: step-counter;
  padding: 20px 20px 20px 70px;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
  color: #ddd;
  line-height: 1.6;
}

.metho-steps li:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--electric-blue);
  transform: translateX(5px);
}

.metho-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--electric-blue), #0088aa);
  color: #000;
  font-weight: 900;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.metho-steps li strong {
  color: var(--electric-blue);
  display: block;
  margin-bottom: 5px;
  font-size: 1.05em;
}

/* Grille d'outils */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.tool-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--primary);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 20px rgba(0, 255, 65, 0.15);
  transform: translateY(-3px);
}
.tool-card:hover::before { opacity: 1; }

.tool-card h5 {
  color: var(--primary);
  margin: 0 0 8px 0;
  font-size: 1.05em;
  letter-spacing: 1px;
}

.tool-card p {
  color: #aaa;
  font-size: 0.85em;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.tool-card a {
  color: var(--electric-blue);
  text-decoration: none;
  font-size: 0.85em;
  font-weight: bold;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tool-card a:hover {
  color: var(--primary);
  text-decoration: none;
}
.tool-card a::after {
  content: '→';
  transition: transform 0.3s;
}
.tool-card a:hover::after {
  transform: translateX(3px);
}

/* Boîtes d'info (tip / warning) */
.tip-box, .warning-box {
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
  border-left: 4px solid;
  position: relative;
}

.tip-box {
  background: rgba(255, 170, 0, 0.05);
  border-left-color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-left-width: 4px;
}
.tip-box strong {
  color: #ffaa00;
  font-size: 1em;
}
.tip-box p {
  color: #ddd;
  margin: 8px 0 0 0;
}

.warning-box {
  background: rgba(255, 0, 60, 0.05);
  border-left-color: var(--accent);
  border: 1px solid rgba(255, 0, 60, 0.2);
  border-left-width: 4px;
}
.warning-box strong {
  color: var(--accent);
  font-size: 1em;
}
.warning-box p {
  color: #ddd;
  margin: 8px 0 0 0;
}

/* Liste de techniques */
.tech-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.tech-list li {
  padding: 10px 15px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--electric-blue);
  border-radius: 4px;
  color: #ddd;
  font-size: 0.95em;
  line-height: 1.6;
  transition: all 0.3s;
}
.tech-list li:hover {
  background: rgba(0, 212, 255, 0.05);
  transform: translateX(5px);
}
.tech-list li code {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  margin-right: 8px;
}

/* Liste de ressources */
.resources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.resources-list li {
  padding: 12px 15px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: #ddd;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}
.resources-list li:hover {
  border-color: var(--electric-blue);
  background: rgba(0, 212, 255, 0.05);
}
.resources-list li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.resources-list li a:hover {
  color: var(--electric-blue);
  text-decoration: underline;
}

/* CTA final méthodo */
.metho-cta {
  text-align: center;
  margin-top: 40px;
  padding: 25px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px dashed rgba(0, 212, 255, 0.3);
  border-radius: 8px;
}
.metho-cta p {
  color: var(--electric-blue);
  font-size: 1.1em;
  margin: 0;
}
.metho-cta strong {
  color: #fff;
}

/* ============================================= */
/* =========== TABLEAU MISSIONS MODERNE ======== */
/* ============================================= */
.mission-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  margin: auto;
}

.mission-table th {
  color: #fff;
  text-transform: uppercase;
  padding: 15px 20px;
  font-size: 0.9em;
  letter-spacing: 2px;
  text-align: center;
  border: none;
  background: rgba(0, 212, 255, 0.05);
}

.mission-table th:first-child {
  text-align: left;
  padding-left: 30px;
  border-radius: 8px 0 0 8px;
}

.mission-table th:last-child {
  border-radius: 0 8px 8px 0;
}

.mission-row td {
  padding: 25px 20px;
  background: rgba(15, 15, 15, 0.6);
  text-align: center;
  font-size: 1em;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.mission-row td:first-child {
  border-left: 3px solid var(--electric-blue);
  border-radius: 8px 0 0 8px;
  text-align: left;
  padding-left: 30px;
  color: var(--electric-blue);
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 1px;
}

.mission-row td:last-child {
  border-radius: 0 8px 8px 0;
}

.mission-row:hover td {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15);
}

.mission-row:hover td:first-child {
  border-left-color: var(--electric-blue);
  box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.2);
}

/* Barre de progression moderne */
.progress-bar-container {
  width: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.progress-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px currentColor;
}

/* Style des jauges */
.jauge-t1 { 
  background: linear-gradient(90deg, var(--primary), #00ff88); 
  box-shadow: 0 0 10px var(--primary); 
}
.jauge-t2 { 
  background: linear-gradient(90deg, #ffaa00, #ffcc00); 
  box-shadow: 0 0 10px #ffaa00; 
}
.jauge-t3 { 
  background: linear-gradient(90deg, var(--accent), #ff3366); 
  box-shadow: 0 0 10px var(--accent); 
}

/* Bouton ACCÉDER moderne */
.btn-action {
  background: var(--electric-blue);
  color: #000;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s;
  letter-spacing: 1px;
  font-size: 0.85em;
}

.btn-action:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  background: #00e5ff;
}

/* Icônes de difficulté */
.difficulty-icon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 5px;
  font-size: 0.9em;
}

.difficulty-icon span {
  font-size: 0.85em;
  opacity: 0.8;
}

/* Stats en ligne */
.stat-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-weight: bold;
  font-size: 1.2em; /* ← AJOUTE CETTE LIGNE (ou 1.3em pour encore plus grand) */

}

.stat-inline.trophy {
  color: #ffaa00;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
}

.stat-inline.points {
  color: var(--electric-blue);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
  .mission-table th,
  .mission-row td {
    padding: 15px 10px;
    font-size: 0.85em;
  }
  
  .mission-row td:first-child {
    padding-left: 15px;
  }
}

/* ============================================= */
/* =========== LEADERBOARD MODERNE ============= */
/* ============================================= */
.rank-box {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
}

.rank-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.rank-table th {
  padding: 15px 20px;
  color: var(--electric-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9em;
  text-align: center;
  border: none;
  background: rgba(0, 212, 255, 0.05);
}

.rank-table th:first-child {
  border-radius: 8px 0 0 8px;
  padding-left: 30px;
}

.rank-table th:last-child {
  border-radius: 0 8px 8px 0;
  padding-right: 30px;
}

.rank-table tr {
  transition: all 0.3s ease;
}

.rank-table tbody tr:hover {
  transform: translateX(5px);
}

.rank-table td {
  padding: 20px;
  font-size: 1.1em;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Médailles Top 3 */
.rank-medal {
  font-size: 1.5em;
  filter: drop-shadow(0 0 8px currentColor);
}

.rank-1 { color: #ffaa00; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

/* Joueur connecté */
.player-me td {
  background: rgba(0, 212, 255, 0.15) !important;
  border-color: rgba(0, 212, 255, 0.4) !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.player-me td:first-child {
  border-left: 3px solid var(--electric-blue);
  border-radius: 8px 0 0 8px;
}

.player-me td:last-child {
  border-right: 3px solid var(--electric-blue);
  border-radius: 0 8px 8px 0;
}

/* Style des pseudos */
.agent-name {
  font-family: monospace;
  font-weight: bold;
  letter-spacing: 1px;
}

.agent-name.top-1 {
  color: #ff0055;
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.6);
  font-size: 1.2em;
}

.agent-name.top-2 {
  color: #ffaa00;
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
}

.agent-name.top-3 {
  color: var(--electric-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.agent-name.me {
  color: var(--electric-blue);
  font-weight: 900;
}

/* Score */
.score-value {
  font-family: monospace;
  font-weight: bold;
  color: var(--electric-blue);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* Séparateur */
.rank-separator td {
  text-align: center;
  color: #666;
  font-style: italic;
  background: transparent !important;
  border: none !important;
  padding: 10px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .rank-table th,
  .rank-table td {
    padding: 15px 10px;
    font-size: 0.9em;
  }
  
  .agent-name.top-1,
  .agent-name.top-2,
  .agent-name.top-3 {
    font-size: 1em;
  }
}
