/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #5B7CFF;
  --blue-dim:   #3F46CA;
  --blue-deep:  #1B1F5C;
  --red:        #E13943;
  --bg:         #05060D;
  --bg-mid:     #0D1020;
  --panel:      rgba(13, 15, 30, 0.7);
  --panel-alt:  rgba(63, 70, 202, 0.12);
  --border:     rgba(91, 124, 255, 0.2);
  --border-hi:  rgba(91, 124, 255, 0.5);
  --text:       #E4E8F7;
  --text-dim:   #8B93B8;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --nav-h: 84px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; }

/* ─── CANVAS ÉTOILES ───────────────────────────────────── */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(63,70,202,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 30% 25% at 75% 70%, rgba(225,57,67,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── NAVIGATION ───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
  background: rgba(5, 6, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.logo-img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(91,124,255,0.7));
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--blue);
  white-space: nowrap;
}

nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.25s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 12px; right: 12px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s;
}

nav a:hover, nav a.active { color: var(--blue); text-decoration: none; }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }

.nav-links { display: flex; align-items: center; gap: 2px; height: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── DROPDOWN ─────────────────────────────────────────── */
.dropdown { position: relative; display: inline-flex; align-items: center; height: 100%; }

.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 12px;
  transition: color 0.25s;
}

.dropdown:hover > .dropbtn { color: var(--blue); }

.dropdown-content {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  background-color: rgba(13, 15, 30, 0.97);
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 200;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 0;
}

.dropdown:hover > .dropdown-content { display: block; }

.dropdown-content a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text);
  font-size: 0.9rem;
}

.dropdown-content a::after { display: none; }

.dropdown-content a:hover {
  background-color: var(--panel-alt);
  color: var(--blue);
}

/* ─── CONTENU PRINCIPAL ────────────────────────────────── */
.content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  padding-bottom: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─── HERO (accueil) ───────────────────────────────────── */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px 56px;
}

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 20px rgba(91,124,255,0.6)) drop-shadow(0 0 60px rgba(91,124,255,0.2));
  animation: logoFloat 6s ease-in-out infinite, logoPulse 4s ease-in-out infinite;
}

@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(91,124,255,0.6)) drop-shadow(0 0 60px rgba(91,124,255,0.2)); }
  50% { filter: drop-shadow(0 0 30px rgba(91,124,255,0.9)) drop-shadow(0 0 80px rgba(91,124,255,0.35)); }
}

.hero-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 12vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  background: linear-gradient(160deg, #D6DDFF 0%, #5B7CFF 35%, #3F46CA 65%, #1B1F5C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 24px rgba(91,124,255,0.35));
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.95rem, 3vw, 1.5rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  margin-bottom: 24px;
}

.hero-slogan {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.82rem, 2vw, 1rem);
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.hero-slogan em { font-style: italic; color: var(--blue); font-weight: 300; }

/* ─── PAGE HEADER (sous-pages) ─────────────────────────── */
.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 46px 12px 28px;
  gap: 10px;
}

.page-header .kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--red);
}

.page-header h1 {
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: 0.06em;
  color: var(--blue);
  text-shadow: 0 0 30px rgba(91,124,255,0.4);
}

.page-header p.subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.6;
  margin: 0;
}

.header-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-dim), transparent);
  margin-top: 4px;
}

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-dim), transparent);
  opacity: 0.7;
}

.card:hover { border-color: var(--border-hi); }

.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--blue);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: var(--text);
}

/* ─── TAGS ──────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 6px;
  border-radius: 3px;
  border: 1px solid currentColor;
}

.tag-blue { background: rgba(63,70,202,0.18); color: #A9B7FF; }
.tag-red { background: rgba(225,57,67,0.15); color: #F3A4AB; }
.tag-gold { background: rgba(216,167,67,0.15); color: #F0CF8A; }
.tag-green { background: rgba(16,54,42,0.5); color: #8fe0bd; }
.tag-purple { background: rgba(42,31,61,0.5); color: #c9a8f5; }

/* ─── TABLES ────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; margin: 14px 0; }

th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

th {
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border-hi);
}

tr:hover td { background: rgba(91,124,255,0.05); }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  position: relative;
  padding: 13px 32px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dim) 100%);
  border: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: filter 0.25s, transform 0.2s;
  margin-top: 8px;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.15); transform: translateY(-2px); text-decoration: none; }

/* ─── NOTICE ────────────────────────────────────────────── */
.notice {
  border-left: 3px solid var(--red);
  padding: 12px 18px;
  background: rgba(225,57,67,0.06);
  margin: 16px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-radius: 0 6px 6px 0;
}

.notice::before {
  content: "AVIS RÉGIMENTAIRE : ";
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.logo-small {
  height: 28px;
  width: 28px;
  object-fit: contain;
  opacity: 0.6;
  filter: drop-shadow(0 0 4px rgba(91,124,255,0.4));
}

footer p {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  opacity: 0.7;
  text-transform: uppercase;
}

ul.clean { padding-left: 20px; }
ul.clean li { margin-bottom: 6px; }

/* ─── ACCORDIONS ────────────────────────────────────────── */
details.accordion {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

details.accordion::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-dim), transparent);
  opacity: 0.7;
}

details.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

details.accordion summary::-webkit-details-marker { display: none; }

details.accordion summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

details.accordion[open] summary::after { content: "\2212"; }
details.accordion summary:hover { background: var(--panel-alt); }
details.accordion[open] summary { border-bottom: 1px solid var(--border); background: var(--panel-alt); }

details.accordion .accordion-body {
  padding: 16px 22px 20px;
  color: var(--text-dim);
}

details.accordion .accordion-body h4 {
  color: var(--blue);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 14px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

details.accordion .accordion-body h4:first-child { margin-top: 0; }

.h4-icon { height: 30px; width: auto; max-width: 46px; object-fit: contain; flex-shrink: 0; }

details.accordion.sub {
  background: rgba(5, 6, 13, 0.4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-dim);
  margin: 12px 0;
}

details.accordion.sub::before { display: none; }

details.accordion.sub summary {
  padding: 11px 16px;
  font-size: 0.92rem;
  gap: 10px;
}

details.accordion.sub summary::after { color: var(--blue); font-size: 1.05rem; }
details.accordion.sub[open] summary { background: transparent; border-bottom: 1px solid var(--border); }
details.accordion.sub .accordion-body { padding: 14px 18px 18px; }
details.accordion.sub .accordion-body h5 {
  color: var(--red);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 6px;
}
details.accordion.sub .accordion-body h5:first-child { margin-top: 0; }

.accordion-group { margin-bottom: 24px; }
.accordion-group > .group-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* ─── BACKGROUND ART (filigrane décoratif) ──────────────── */
.bg-art {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  filter: saturate(0.6);
}

.bg-art.clone {
  right: -4%;
  top: 90px;
  width: 380px;
}

.bg-art.venator {
  left: -6%;
  bottom: 4%;
  width: 520px;
  transform: rotate(-6deg);
}

@media (max-width: 900px) {
  .bg-art.clone { width: 220px; top: 70px; }
  .bg-art.venator { width: 320px; }
}

/* ─── GUIDE GALLERY (pages PDF) ─────────────────────────── */
.guide-gallery { display: flex; flex-direction: column; gap: 26px; margin-bottom: 24px; }

.guide-page {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.guide-page img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--border); }
.guide-page .caption { padding: 14px 20px; color: var(--text-dim); }
.guide-page .caption h3 { margin: 0 0 4px; color: var(--blue); }

/* ─── TENUE ITEMS ────────────────────────────────────────── */
.tenue-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.tenue-item:last-child { margin-bottom: 0; }

.tenue-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: rgba(13,15,30,0.85);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
}

.tenue-item h3 { margin-bottom: 4px; }
.tenue-item p { margin: 0; }

@media (max-width: 560px) {
  .tenue-item { flex-direction: column; }
  .tenue-thumb { width: 100%; height: auto; max-height: 160px; }
}

table .kama-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: rgba(13,15,30,0.85);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  display: block;
}

/* ─── VEHICLE CARDS ─────────────────────────────────────── */
.vehicle-img {
  display: block;
  max-width: 220px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  margin: 0 0 14px;
}

/* ─── OWNER RESET FAB ────────────────────────────────────── */
.owner-reset-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: linear-gradient(135deg, var(--red), #7a1218);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.owner-reset-fab:hover { filter: brightness(1.15); }

/* ─── EFFECTIF (tableau live) ───────────────────────────── */
.content.wide { max-width: 1500px; }

.eff-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
}

#eff-table, #qual-table, #reserve-table { min-width: 1280px; font-size: 1rem; }

#eff-table th, #reserve-table th, #qual-table th {
  font-size: 0.85rem;
  color: var(--blue);
  border-bottom: 2px solid var(--border-hi);
}

#eff-table td, #reserve-table td, #qual-table td { color: var(--text); }
#eff-table tbody td { line-height: 1.5; }

#eff-table tbody tr, #promo-table tbody tr, #qual-table tbody tr, #reserve-table tbody tr { border-bottom: 1px solid rgba(91,124,255,0.15); }
#eff-table tbody tr:nth-child(odd), #promo-table tbody tr:nth-child(odd), #qual-table tbody tr:nth-child(odd), #reserve-table tbody tr:nth-child(odd) { background: rgba(91,124,255,0.09); }
#eff-table tbody tr:nth-child(even), #promo-table tbody tr:nth-child(even), #qual-table tbody tr:nth-child(even), #reserve-table tbody tr:nth-child(even) { background: rgba(5,6,13,0.55); }
#eff-table tbody tr:hover, #promo-table tbody tr:hover, #qual-table tbody tr:hover, #reserve-table tbody tr:hover { background: rgba(91,124,255,0.22) !important; }
#eff-table td, #eff-table th, #promo-table td, #promo-table th, #qual-table td, #qual-table th, #reserve-table td, #reserve-table th { padding: 13px 12px; }

#eff-table th:last-child, #eff-table td.eff-row-actions, #qual-table th:last-child, #qual-table td.eff-row-actions, #reserve-table th:last-child, #reserve-table td.eff-row-actions { white-space: nowrap; }

#eff-table { min-width: 0; }
#eff-table td, #eff-table th { padding: 10px 6px; }
#eff-table .eff-icon-btn { font-size: 0.62rem; padding: 3px 4px; letter-spacing: 0.02em; }
#eff-table td input[type="date"] { font-size: 0.75rem; padding: 5px 3px; }
#eff-table td.eff-row-actions { white-space: normal; padding: 6px 4px; }
#eff-table td.eff-row-actions .eff-icon-btn { font-size: 0.62rem; padding: 3px 4px; letter-spacing: 0.02em; }

#eff-table tbody tr.grade-group-start, #promo-table tbody tr.grade-group-start, #qual-table tbody tr.grade-group-start {
  border-top: 2px solid var(--blue);
}

#eff-table tbody tr.blame-row-2 td, #reserve-table tbody tr.blame-row-2 td {
  background: rgba(216, 167, 67, 0.28) !important;
}

#eff-table tbody tr.blame-row-3 td, #reserve-table tbody tr.blame-row-3 td {
  background: rgba(225, 57, 67, 0.32) !important;
}

.reserve-highlight { font-size: 1.05em; color: var(--text); }

#eff-table input, #eff-table select, #reserve-table input, #reserve-table select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(13,15,30,0.9);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 5px 6px;
  border-radius: 3px;
}

.eff-row-actions { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }

.eff-icon-btn {
  cursor: pointer;
  background: none;
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 3px;
  width: 100%;
}

.eff-icon-btn:hover { background: var(--panel-alt); color: var(--blue); }

@media (min-width: 1100px) {
  .content.wide { padding-left: 12px; padding-right: 12px; }
}
.eff-icon-btn.danger:hover { color: var(--red); }

#rec-steamid, #rec-discordid, .eff-form > .rating-row { flex: 1 1 100%; }

.eff-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.eff-form input, .eff-form select, .eff-form textarea {
  background: rgba(13,15,30,0.9);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 4px;
  flex: 1 1 150px;
}

.eff-form textarea { flex: 1 1 100%; min-height: 60px; resize: vertical; }
.eff-form .btn { margin-top: 0; flex: 0 0 auto; }

.rating-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.rating-row .q-text { color: var(--text); font-size: 0.92rem; margin: 0; }

.rating-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.rating-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-right: 4px;
}

.rating-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,15,30,0.9);
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rating-btn:hover { border-color: var(--blue); color: var(--text); }

.rating-btn.active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dim) 100%);
  color: #fff;
  border-color: var(--blue);
}

.rating-row textarea {
  background: rgba(13,15,30,0.9);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 4px;
  min-height: 46px;
  resize: vertical;
  width: 100%;
}

.rec-status { margin-top: 10px; font-size: 0.88rem; }
.rec-status.ok { color: #7de3a8; }
.rec-status.err { color: var(--red); }

/* ─── MODERATION INLINE (accepter/refuser un rapport) ──────── */
.mod-actions { align-items: center; flex-wrap: wrap; gap: 8px; }

.mod-actions .mod-reviewer-select {
  background: rgba(13,15,30,0.9);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 7px 10px;
  border-radius: 4px;
}

.mod-inline-error { color: var(--red); font-size: 0.8rem; }

/* ─── CHIP TOGGLES (qualifications) ────────────────────────── */
.chip-toggle {
  padding: 5px 11px;
  background: rgba(13,15,30,0.9);
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip-toggle:hover { border-color: var(--blue); color: var(--text); }

.chip-toggle.active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dim) 100%);
  color: #fff;
  border-color: var(--blue);
}

.chip-dropdown {
  position: relative;
  background: rgba(13,15,30,0.9);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  width: 170px;
}

details.chip-dropdown summary {
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 5px 9px;
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  font-size: 0.76rem !important;
  line-height: 1.3;
  color: var(--text);
}

.chip-dropdown summary::-webkit-details-marker { display: none; }
.chip-dropdown summary::marker { content: ""; }
.chip-dropdown summary::after { content: " \25be"; color: var(--blue); }
.chip-dropdown[open] summary::after { content: " \25b4"; }

.chip-dropdown-body {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  width: 230px;
  margin-top: 2px;
  padding: 8px 10px 10px;
  background: rgba(8,9,20,0.98);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.chip-dropdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.chip-dropdown-row .chip-toggle { padding: 3px 10px; font-size: 0.74rem; flex-shrink: 0; }

/* ─── ACCESS GATE (officiers) ───────────────────────────── */
.gate {
  max-width: 420px;
  margin: 40px auto 60px;
  padding: 34px 30px;
  background: var(--panel);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  text-align: center;
}

.gate .lock-icon { font-size: 2.2rem; margin-bottom: 10px; }

.gate h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.gate p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 20px; }

.gate input[type="password"] {
  width: 100%;
  background: rgba(13,15,30,0.9);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px;
  margin-bottom: 14px;
  border-radius: 4px;
}

.gate input[type="password"]:focus { outline: 1px solid var(--blue); }
.gate button { width: 100%; cursor: pointer; }

.gate .error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: none;
}

.gate .error.show { display: block; }
.officer-content { display: none; }
.officer-content.show { display: block; }

/* ─── GRID ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── BOOT SCREEN ───────────────────────────────────────── */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s;
}

#boot-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 45%, rgba(63,70,202,0.14) 0%, transparent 70%);
  pointer-events: none;
}

#boot-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(91,124,255,0.03) 0px, rgba(91,124,255,0.03) 1px, transparent 1px, transparent 4px);
  pointer-events: none;
  animation: bootScan 8s linear infinite;
}

@keyframes bootScan { from { background-position-y: 0; } to { background-position-y: 120px; } }

#boot-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(91,124,255,0.55));
  animation: bootLogoPulse 1.6s ease-in-out infinite;
}

@keyframes bootLogoPulse { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }

.boot-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
}

.boot-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(91,124,255,0.15);
  border-top-color: var(--blue);
  animation: bootSpin 1.4s linear infinite;
}

.boot-ring.inner {
  width: 152px;
  height: 152px;
  border-top-color: transparent;
  border-bottom-color: var(--red);
  opacity: 0.5;
  animation: bootSpin 2.2s linear infinite reverse;
}

@keyframes bootSpin { to { transform: rotate(360deg); } }

.boot-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.28em;
  color: var(--blue);
  text-transform: uppercase;
  text-align: center;
}

.boot-status {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  min-height: 1.2em;
  text-align: center;
}

.boot-status::after { content: ''; animation: bootDots 1.2s steps(4, end) infinite; }

@keyframes bootDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.boot-bar {
  width: min(300px, 70vw);
  height: 3px;
  background: rgba(63,70,202,0.18);
  border-radius: 2px;
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue));
  box-shadow: 0 0 10px rgba(91,124,255,0.6);
  transition: width 0.35s ease;
}

.boot-skip {
  position: absolute;
  bottom: 26px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  opacity: 0.5;
  text-transform: uppercase;
}

body.booting .content, body.booting nav, body.booting footer { opacity: 0; }
.content, nav, footer { transition: opacity 0.9s ease; }

/* ─── RESPONSIVE : MENU MOBILE ──────────────────────────── */
@media (max-width: 1100px) {
  nav { padding: 0 16px; justify-content: space-between; }
  .nav-logo { margin-right: 0; }
  .nav-logo, .nav-toggle { position: relative; z-index: 10; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--nav-h) + 8px) 0 40px;
    background: rgba(5, 6, 13, 0.98);
    backdrop-filter: blur(12px);
  }

  .nav-links.open { display: flex; }

  .nav-links > a, .nav-links > .dropdown > .dropbtn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 0.82rem;
    text-align: left;
    border-bottom: 1px solid rgba(91,124,255,0.12);
  }

  nav a::after { display: none; }

  .dropdown { display: block; width: 100%; height: auto; }

  .dropdown-content {
    display: block;
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(91,124,255,0.4);
    border-radius: 0;
    margin-left: 16px;
    padding: 0;
    background-color: rgba(13,15,30,0.6);
  }

  .dropdown-content a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.82rem;
    text-align: left;
    border-bottom: 1px solid rgba(91,124,255,0.08);
  }

  main, .content { padding-left: 18px; padding-right: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .nav-brand { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .boot-logo, .boot-ring, #boot-screen::after { animation: none; }
}
