/* ==========================================================================
   1. POLICES & CONFIGURATION SYSTEME
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800;900&family=Oswald:wght@500;600;700&display=swap');

:root {
  /* Couleurs de fond strictes */
  --bg-dark-solid: #02040a;
  --bg-card-dark: rgba(3, 10, 24, 0.85);
  --bg-card-nav: rgba(2, 5, 12, 0.95);
  --bg-widget-dark: rgba(2, 6, 17, 0.95);
  
  /* Palette Néon Lumineuse */
  --color-cyan: #00d2ff;
  --color-cyan-glow: rgba(0, 210, 255, 0.3);
  --color-gold: #cca025;
  --color-gold-glow: rgba(204, 160, 37, 0.3);
  
  /* Couleurs des métiers & statistiques */
  --color-gendarmerie: #0088ff;
  --color-pompiers: #ff3c00;
  --color-samu: #00e1ff;
  --color-taxi: #ffcc00;
  --color-pecheur: #00cc66;
  --color-justice: #5dade2;

  /* Typographies */
  --font-main: 'Montserrat', sans-serif;
  --font-accent: 'Oswald', sans-serif;
}

/* Reset complet */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-image: 
    url('images/background.png'); /* Remplace par le chemin réel vers ton fichier */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: overlay; /* Optionnel : permet de mélanger l'image avec tes dégradés */
  color: #ffffff;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   2. LE HEADER & LA NAVIGATION
   ========================================================================== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: var(--bg-card-nav);
  border-bottom:5px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.nav-logo {
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.25));
}

.nav-logo-text {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
  
  /* --- AJOUTS POUR L'ALIGNEMENT --- */
  display: inline-flex;
  align-items: center; /* Aligne verticalement le logo et le texte au centre */
  gap: 12px;           /* Espace de 12px entre le logo et le texte (ajustable) */
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-item a {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.25s ease;
  padding-bottom: 5px;
}

.nav-item a:hover, .nav-item.active a {
  color: var(--color-cyan);
  text-shadow: 0 0 8px var(--color-cyan-glow);
}

/* Boutons d'action dans le Header */
.header-actions {
  display: flex;
  gap: 12px;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: #fff;
}

.btn-discord-header {
  background: linear-gradient(135deg, #5865F2 0%, #404eed 100%);
}
.btn-discord-header:hover {
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

.btn-gold-header {
  background: linear-gradient(135deg, #cca025 0%, #8f6b0f 100%);
}
.btn-gold-header:hover {
  box-shadow: 0 0 12px var(--color-gold-glow);
  border-color: var(--color-gold);
}

.btn-red-header {
  background: linear-gradient(135deg, #cc2525 0%, #8f0f0f 100%);
}
.btn-red-header:hover {
  box-shadow: 0 0 12px var(--color-gold-glow);
  border-color: var(--color-gold);
}

/* Position relative pour que le menu déroulant s'affiche sous l'item parent */
.has-dropdown {
    position: relative;
}

/* Cache le menu déroulant par défaut */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card-nav);
    min-width: 180px;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    z-index: 1000;
}

/* Affiche le menu au survol du parent */
.has-dropdown:hover .dropdown-menu {
    display: block;
}

/* Style des liens dans le sous-menu */
.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.2s;
}

.dropdown-menu li a:hover {
    color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.05);
}
/* Nettoyage des puces pour tout le menu */
.nav-menu, .dropdown-menu {
    list-style: none; /* Supprime les points */
    margin: 0;
    padding: 0;
}

/* S'assure que le menu de navigation est bien aligné */
.nav-menu {
    display: flex;
    align-items: center;
}
/* ==========================================================================
   3. SECTION HERO (Zone centrale)
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 180px 20px 60px 20px;
  text-align: center;
}

.logo-main-wrapper {
  margin-bottom: 25px;
}

.logo-main-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-cyan);
  box-shadow: 0 0 30px var(--color-cyan-glow);
}

.logo-main-placeholder i {
  font-size: 4rem;
  color: #ffffff;
}

.title-server {
  font-family: var(--font-accent);
  font-size: 5.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 40%, #899bb5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 20px;
}

.subtitle-server {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 12px;
  
  /* Ajout de l'ombre portée */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-group {
  display: flex;
  gap: 20px;
  margin-top: 35px;  
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-cyan {
  background: linear-gradient(135deg, #0052a3 0%, #002255 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-cyan:hover {
  box-shadow: 0 0 20px var(--color-cyan-glow);
  border-color: var(--color-cyan);
}

.btn-gold {
  background: linear-gradient(135deg, #b38600 0%, #664d00 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-gold:hover {
  box-shadow: 0 0 20px var(--color-gold-glow);
  border-color: var(--color-gold);
}

.btn-delete {
  background: linear-gradient(135deg, #b30000 0%, #660000 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-delete:hover {
  box-shadow: 0 0 20px var(--color-gold-glow);
  border-color: var(--color-gold);
}

/* ==========================================================================
   4. LES BLOCS DE CARACTÉRISTIQUES (Bandeau horizontal)
   ========================================================================== */
.info-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  max-width: 1400px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.info-card {
  background: var(--bg-card-dark);
  border: 1px solid rgba(0, 210, 255, 0.08);
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.info-card:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px var(--color-cyan-glow);
  transform: translateY(-3px);
}

.info-card-icon {
  font-size: 1.5rem;
  color: var(--color-cyan);
  margin-bottom: 10px;
  text-shadow: 0 0 8px var(--color-cyan-glow);
}

.info-card h4 {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.info-card p {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-cyan);
  letter-spacing: 1px;
  margin-top: 5px;
}

/* ==========================================================================
   5. LE LAYOUT 3 COLONNES (Dashboard principal)
   ========================================================================== */
.main-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.5fr 1.25fr;
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.panel-container {
  background: var(--bg-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 15px;
  padding: 22px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 5px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.panel-header h3 {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
}

.panel-action {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

.panel-action:hover {
  color: #fff;
}

/* --- COLONNE GAUCHE : Les Métiers --- */
.jobs-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  flex-grow: 1;
}

.job-item {
  position: relative;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(to bottom, #030a18, #001233);
}

.job-item i {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  opacity: 0.6;
}

.job-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 5px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 50%, transparent);
  text-align: center;
}

.job-label span {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

/* Lignes colorées sous les cartes métiers */
.job-item.gendarmerie { border-bottom: 5px solid var(--color-gendarmerie); }
.job-item.gendarmerie i { color: var(--color-gendarmerie); }
.job-item.gendarmerie .job-label span { color: var(--color-gendarmerie); }

.job-item.pompiers { border-bottom: 5px solid var(--color-pompiers); }
.job-item.pompiers i { color: var(--color-pompiers); }
.job-item.pompiers .job-label span { color: var(--color-pompiers); }

.job-item.samu { border-bottom: 5px solid var(--color-samu); }
.job-item.samu i { color: var(--color-samu); }
.job-item.samu .job-label span { color: var(--color-samu); }

.job-item.taxi { border-bottom: 5px solid var(--color-taxi); }
.job-item.taxi i { color: var(--color-taxi); }
.job-item.taxi .job-label span { color: var(--color-taxi); }

.job-item.pecheur { border-bottom: 5px solid var(--color-pecheur); }
.job-item.pecheur i { color: var(--color-pecheur); }
.job-item.pecheur .job-label span { color: var(--color-pecheur); }

/* --- COLONNE CENTRALE : Carte & Widget --- */
.map-view {
  width: 100%;
  height: 500px; /* Définis une hauteur fixe ou relative */
  overflow: hidden; /* Empêche l'image de dépasser */
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-view img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* L'image s'affiche en entier sans déformation */
  /* Utilise object-fit: cover si tu veux qu'elle remplisse tout le cadre quitte à couper les bords */
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  color: rgba(255, 255, 255, 0.2);
}

.map-placeholder i {
  font-size: 4rem;
  margin-bottom: 10px;
}

.map-widget {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 220px;
  background: var(--bg-widget-dark);
  border: 1px solid var(--color-cyan);
  box-shadow: 0 0 15px var(--color-cyan-glow);
  border-radius: 4px;
  padding: 15px;
  backdrop-filter: blur(5px);
}

.map-widget h5 {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 12px;
  border-bottom: 5px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  text-transform: uppercase;
}

.widget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.widget-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 0;
}

.widget-row .label { color: rgba(255, 255, 255, 0.5); }
.widget-row .val { font-weight: 700; color: #ffffff; }
.widget-row .val.cyan { color: var(--color-cyan); }

.icon-val i {
  margin-left: 6px;
  font-size: 0.9rem;
}

.btn-widget {
  width: 100%;
  background: var(--color-cyan);
  color: #000;
  font-family: var(--font-accent);
  font-weight: bold;
  border: none;
  border-radius: 2px;
  padding: 8px 0;
  margin-top: 10px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: background 0.2s ease;
}

.btn-widget:hover {
  background: #ffffff;
}

/* --- COLONNE DROITE : Statistiques --- */
.stat-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: 4px;
  border-left: 3px solid var(--color-cyan);
  transition: background 0.2s ease;
}

.stat-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.stat-row-content {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
}

.stat-title i {
  margin-right: 5px;
}

.stat-number {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2px;
}

.stat-number .max-val {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Simulate mini-chart with CSS */
.mini-svg-chart {
  width: 60px;
  height: 25px;
  opacity: 0.8;
}

/* Attribution des couleurs de bordures gauches spécifiques */
.stat-row.players { border-left-color: var(--color-gendarmerie); }
.stat-row.players .stat-number { color: var(--color-gendarmerie); }

.stat-row.money { border-left-color: var(--color-pecheur); }
.stat-row.money .stat-number { color: var(--color-pecheur); }

.stat-row.arrests { border-left-color: var(--color-taxi); }
.stat-row.arrests .stat-number { color: var(--color-taxi); }

.stat-row.interventions { border-left-color: var(--color-pompiers); }
.stat-row.interventions .stat-number { color: var(--color-pompiers); }

.stat-row.companies { border-left-color: var(--color-justice); }
.stat-row.companies .stat-number { color: var(--color-justice); }

/* ==========================================================================
   6. BANNIERES INFERIEURES (Galerie et Discord)
   ========================================================================== */
.footer-banners {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.mini-banner {
  background: linear-gradient(90deg, rgba(3, 10, 24, 0.95) 0%, rgba(8, 24, 56, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 25px 35px;
  position: relative;
  overflow: hidden;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 2;
}

.gallery-mini-logo {
  height: 35px;
  margin-right: 15px;
}

.banner-text h4 {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.banner-text p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 2px;
}

.btn-banner-action {
  padding: 10px 20px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid var(--color-cyan);
  background: transparent;
  color: var(--color-cyan);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-banner-action:hover {
  background: var(--color-cyan);
  color: #000;
  box-shadow: 0 0 12px var(--color-cyan-glow);
}

.btn-banner-action.btn-discord-color {
  border-color: #5865F2;
  color: #5865F2;
}

.btn-banner-action.btn-discord-color:hover {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

/* Grand logo Discord translucide en fond */
.banner-bg-icon {
  position: absolute;
  right: -15px;
  bottom: -20px;
  font-size: 6rem;
  color: rgba(88, 101, 242, 0.08);
  pointer-events: none;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer {
  background: #010307;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-cyan);
}

/* ==========================================================================
   8. MEDIA QUERIES (Responsive parfait)
   ========================================================================== */
@media (max-width: 1200px) {
  .info-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
  .footer-banners {
    grid-template-columns: 1fr;
  }
}

/* Menu Hamburger (Mobile) */
.menu-hamburger {
  background: none;
  border: none;
  color: #00d2ff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  margin-right: auto;
  display: none;
}

.menu-hamburger:hover {
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.nav-menu.active {
  display: flex !important;
}

@media (max-width: 768px) {
  .title-server {
    font-size: 3.5rem;
  }
  .info-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-header {
    padding: 12px 15px;
  }
  .nav-menu {
    display: none;
  }
  .menu-hamburger {
    display: block;
  }
  .jobs-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .job-item {
    height: 180px;
  }
  .sidebar {
    width: 100%;
    max-width: 200px;
  }
  .intranet-layout {
    flex-direction: column;
  }
  table {
    font-size: 0.85rem;
  }
  td, th {
    padding: 10px 8px !important;
  }
  .form-group {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .main-header {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .nav-logo-text {
    font-size: 1rem;
    gap: 8px;
  }
  .nav-logo-text img {
    width: 30px;
  }
  .header-actions {
    width: 100%;
    gap: 8px;
    margin-top: 10px;
  }
  .btn-header {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
  }
  .title-server {
    font-size: 2rem;
  }
  .info-row {
    grid-template-columns: 1fr;
  }
  .jobs-list {
    grid-template-columns: 1fr;
  }
  .job-item {
    height: 150px;
  }
  .page-wrapper {
    margin: 80px 10px 20px;
    padding: 0 10px;
  }
  .form-box, .table-box, .card {
    padding: 15px;
    margin-bottom: 15px;
  }
  .form-box h2, .page-header-box h1 {
    font-size: 1.2rem;
  }
  table {
    font-size: 0.75rem;
  }
  td, th {
    padding: 8px 6px !important;
  }
  .btn-submit, .btn-action {
    padding: 8px 12px !important;
    font-size: 0.7rem !important;
  }
  .sidebar {
    width: 100%;
    max-width: none;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .sidebar-link {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  .intranet-layout {
    flex-direction: column;
    padding-top: 0;
  }
  .org-node {
    min-width: 140px;
    padding: 12px 15px;
  }
  .org-node .name {
    font-size: 0.85rem;
  }
  .org-node .avatar {
    font-size: 20px !important;
  }
  .pole-title {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

/* ==========================================================================
   9. EXTENSION INTRANET (Formulaires, Tables & Badges)
   ========================================================================== */
.intranet-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
}

.sidebar {
  width: 260px;
  background: var(--bg-card-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(0, 210, 255, 0.1);
  color: var(--color-cyan);
  border-left: 3px solid var(--color-cyan);
}

.intranet-content {
  flex-grow: 1;
  padding: 40px;
  background: radial-gradient(circle at 50% 0%, rgba(3, 10, 24, 0.4), transparent);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: rgba(2, 6, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 12px 15px;
  color: #fff;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan-glow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: rgba(3, 10, 24, 0.4);
  border-radius: 6px;
  overflow: hidden;
  table-layout: fixed;
}

.data-table th, .data-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 5px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
  background: rgba(2, 6, 17, 0.8);
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-cyan);
  font-size: 0.9rem;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

.badge-success { background: rgba(0, 204, 102, 0.15); color: #00cc66; border: 1px solid #00cc66; }
.badge-warning { background: rgba(204, 160, 37, 0.15); color: #cca025; border: 1px solid #cca025; }
.badge-danger { background: rgba(255, 60, 0, 0.15); color: #ff3c00; border: 1px solid #ff3c00; }

/* STYLE GENDARMERIE */
.document-officiel {
    background: #fff;
    color: #000;
    padding: 50px;
    font-family: 'Times New Roman', serif;
    width: 210mm;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    min-height: 297mm;
}

.document-officiel h1 {
    text-align: center;
    text-transform: uppercase;
    text-decoration: underline;
    font-size: 24px;
}

.signature-box {
    margin-top: 50px;
    border-top: 2px solid #000;
    display: inline-block;
    padding-top: 10px;
}


    .edit-container {
      max-width: 600px;
      margin: 20px auto;
      padding: 25px;
      background: #0b172c;
      border: 1px solid var(--color-gold, #f1c40f);
      border-radius: 8px;
      color: #fff;
    }
    .form-group {
      margin-bottom: 20px;
    }
    .form-group label {
      display: block;
      margin-bottom: 8px;
      color: var(--color-gold, #f1c40f);
      font-weight: bold;
    }
    .form-control {
      width: 100%;
      padding: 10px;
      background: rgba(0,0,0,0.4);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 4px;
      color: #fff;
      font-size: 15px;
    }
    .form-control:focus {
      border-color: var(--color-gold, #f1c40f);
      outline: none;
    }
    .btn-container {
      display: flex;
      gap: 15px;
      margin-top: 25px;
    }
    .btn-submit {
      flex: 1;
      background: var(--color-gold, #f1c40f);
      color: #111;
      border: none;
      padding: 12px;
      border-radius: 4px;
      cursor: pointer;
      font-weight: bold;
      font-size: 15px;
    }
    .btn-back {
      flex: 1;
      background: rgba(255,255,255,0.1);
      color: #fff;
      text-decoration: none;
      text-align: center;
      padding: 12px;
      border-radius: 4px;
      font-weight: bold;
      font-size: 15px;
    }
    .alert {
      padding: 12px;
      border-radius: 4px;
      margin-bottom: 20px;
      font-weight: bold;
    }
    .alert-success { background: rgba(46, 204, 113, 0.2); border: 1px solid #2ecc71; color: #2ecc71; }
    .alert-error { background: rgba(231, 76, 60, 0.2); border: 1px solid #e74c3c; color: #e74c3c; }
/* Menu Mobile Déroulant */
.nav-menu.active {
  flex-direction: column !important;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(2, 5, 12, 0.99);
  border-bottom: 2px solid rgba(0, 210, 255, 0.2);
  padding: 10px 0;
  gap: 0;
  z-index: 1000;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.nav-menu.active .nav-item {
  width: 100%;
}

.nav-menu.active .nav-item a {
  display: block;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
