@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --bg: #0f1344;
  --bg2: #11184f;
  --bg3: #0d1140;
  --panel: #0d1140;
  --panel2: #131a56;
  --border: #1e2460;
  --border2: #2a3580;
  --accent: #6c8fff;
  --accent2: #9db3ff;
  --accent3: #7ab0ff;
  --gold: #efc56f;
  --text: #dce6ff;
  --text2: #9caedb;
  --text3: #5a6a99;
  --white: #ffffff;
  --danger: #e05252;
  --glow: rgba(108,143,255,0.2);
  --scan-line: rgba(122,176,255,0.03);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body.font-hacker,
body.font-hacker * {
  font-family: 'Courier New', monospace !important;
}

body.theme-green {
  --bg: #0d2a1a;
  --bg2: #123422;
  --bg3: #154229;
  --panel: #123422;
  --panel2: #175235;
  --border: #2a7a53;
  --border2: #34a46b;
  --accent: #7adfa8;
  --accent2: #b4f3d1;
  --accent3: #9decc2;
  --gold: #e8d78a;
  --text: #e8fff3;
  --text2: #b8dfc8;
  --text3: #7aa88f;
  --white: #f6fff9;
  --glow: rgba(122, 223, 168, 0.2);
}

body.theme-mint {
  --bg: #0f2d2e;
  --bg2: #133a3c;
  --bg3: #174749;
  --panel: #133a3c;
  --panel2: #1b5153;
  --border: #2b7f82;
  --border2: #3fb3b1;
  --accent: #74d9d4;
  --accent2: #a9efeb;
  --accent3: #88e5df;
  --gold: #f0d999;
  --text: #e8fffd;
  --text2: #b8dddb;
  --text3: #79a8a6;
  --white: #f8ffff;
  --glow: rgba(116, 217, 212, 0.2);
}

body.rainbow {
  --bg: #16143f;
  --bg2: #261a57;
  --bg3: #1f1850;
  --panel: rgba(32, 22, 77, 0.92);
  --panel2: rgba(45, 30, 102, 0.94);
  --border: #8f7bff;
  --border2: #ff86d1;
  --accent: #ffd66c;
  --accent2: #7dd9ff;
  --accent3: #b9ff7a;
  --gold: #ffd66c;
  --text: #f4eeff;
  --text2: #d4c9ff;
  --text3: #b39cdc;
  --white: #ffffff;
  --glow: rgba(255, 122, 220, 0.25);
  background: linear-gradient(120deg, #261a57, #1e2c7a, #224d7b, #3f2b72, #261a57);
  background-size: 300% 300%;
  animation: rainbowShift 12s ease infinite;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    var(--scan-line) 0px,
    var(--scan-line) 1px,
    transparent 1px,
    transparent 3px
  );
}

body.page-index {
  background: radial-gradient(circle at top, rgba(108,143,255,0.18), transparent 32%), linear-gradient(180deg, #0f1344 0%, #0d1140 100%);
}

body.page-index::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.00) 1px, rgba(255,255,255,0.00) 2px, rgba(255,255,255,0.02) 3px);
  pointer-events: none;
}

body.page-index .page-frame {
  position: relative;
  z-index: 1;
}

.page-frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.header-title {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 14px;
}

.header-subtitle {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--text2);
  max-width: 760px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.selection-card {
  display: flex;
  flex-direction: column;
  background: rgba(11, 19, 34, 0.88);
  border: 1px solid rgba(46,127,255,0.18);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  transition: transform 0.32s ease, border-color 0.32s ease;
  text-decoration: none;
  color: inherit;
}

.selection-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.35);
}

.selection-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.selection-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selection-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.selection-text {
  color: var(--text2);
  line-height: 1.75;
  font-size: 0.98rem;
}

.selection-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46,127,255,0.9), rgba(0,212,255,0.85));
  color: #071021;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.selection-link:hover {
  background: linear-gradient(135deg, rgba(0,212,255,0.95), rgba(46,127,255,0.95));
}

.back-top {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(15, 19, 68, 0.94);
  border-bottom: 1px solid rgba(46,127,255,0.18);
  padding: 12px 24px;
  backdrop-filter: blur(10px);
}

.back-top a {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.hero-label,
.sidebar-logo,
.sidebar-title,
.sidebar-badge,
.nav-section,
.nav a,
.hero-name,
.hero-stat-val,
.hero-stat-label,
.weapon-title,
.weapon-caption,
.sub-title,
.futuristic-button {
  position: relative;
}

#sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: linear-gradient(180deg, #0d1140 0%, #11184f 100%);
  border-right: 1px solid var(--border);
  z-index: 100;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#sidebar::-webkit-scrollbar {
  width: 4px;
}

#sidebar::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}

.sidebar-header {
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}

.sidebar-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.sidebar-title span {
  color: var(--accent3);
}

.sidebar-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  background: var(--panel2);
  border: 1px solid var(--border2);
  border-radius: 2px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

nav {
  padding: 16px 0;
  flex: 1;
}

.nav-section {
  padding: 8px 20px 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text3);
}

nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text2);
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--accent2);
  background: var(--glow);
  border-left-color: var(--accent);
}

nav a .nav-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  min-width: 20px;
}

nav a.active .nav-num {
  color: var(--accent);
}

#main {
  margin-left: 260px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

#hero {
  position: relative;
  background: linear-gradient(135deg, #0d1140 0%, #11184f 45%, #1a2366 100%);
  padding: 80px 60px 70px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

#hero::before {
  content: 'VEHICLE';
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 200px;
  letter-spacing: -0.05em;
  color: rgba(46,127,255,0.04);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

body.page-rafale #hero::before {
  content: 'RAFALE';
}

body.page-mirage #hero::before {
  content: 'MIRAGE 2000';
}

body.page-cdg #hero::before {
  content: 'CHARLES DE GAULLE';
}

.hero-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent3);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent3);
}

.hero-brand {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 8px;
}

.hero-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-name span,
.sidebar-title span {
  color: var(--accent3);
}

.hero-sub {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--text2);
  margin-top: 14px;
  margin-bottom: 32px;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-items: center;
  margin: 0 auto 34px;
  max-width: 930px;
  width: 100%;
}

.hero-visual img {
  width: 100%;
  max-width: 460px;
  border-radius: 22px;
  border: 1px solid rgba(46,127,255,0.25);
  box-shadow: 0 0 60px rgba(46,127,255,0.16);
  height: auto;
}

.article-visual {
  display: flex;
  justify-content: center;
  margin: 40px auto 0;
  max-width: 960px;
  width: 100%;
}

.article-visual img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(46,127,255,0.22);
  box-shadow: 0 0 70px rgba(46,127,255,0.12);
  height: auto;
}

.weapon-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.weapon-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.weapon-card {
  background: rgba(14, 24, 42, 0.96);
  border: 1px solid rgba(46,127,255,0.18);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.weapon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 60px rgba(46,127,255,0.18);
}

.weapon-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.weapon-content {
  padding: 14px 16px 18px;
}

.weapon-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.weapon-description {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.hero-stat {
  background: rgba(14,28,53,0.8);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--accent);
  padding: 14px 20px;
  min-width: 130px;
}

.hero-stat-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 22px;
  color: var(--accent2);
  line-height: 1;
}

.hero-stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 4px;
}

.content {
  padding: 0 60px 80px;
  max-width: 1000px;
}

.section {
  padding-top: 64px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--accent);
}

.section-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  margin-top: 6px;
  min-width: 28px;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

.sub-section {
  margin-top: 40px;
}

.sub-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.mini-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 22px;
  margin-bottom: 8px;
}

p {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.8;
}

h1 {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 3rem);
  text-align: center;
}

.spec-table,
.var-table,
.ops-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.spec-table caption,
.var-table caption,
.ops-table caption {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--panel2);
  border: 1px solid var(--border2);
  border-bottom: 2px solid var(--accent);
  padding: 10px 16px;
  text-align: left;
}

.spec-table th,
.ops-table th,
.var-table th {
  background: var(--panel2);
  color: var(--accent2);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.spec-table td,
.ops-table td,
.var-table td {
  padding: 9px 14px;
  border: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.spec-table td:first-child,
.ops-table td:first-child,
.var-table td:first-child {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text2);
  background: var(--panel);
  width: 38%;
  white-space: normal;
}

.spec-table tr:nth-child(even) td:not(:first-child),
.ops-table tr:nth-child(even) td:not(:first-child) {
  background: var(--bg3);
}

.spec-table tr:nth-child(odd) td:not(:first-child),
.ops-table tr:nth-child(odd) td:not(:first-child) {
  background: var(--bg2);
}

.spec-table tr:hover td,
.ops-table tr:hover td {
  filter: brightness(1.12);
}

ul {
  list-style: none;
  margin: 12px 0 16px 0;
  padding: 0;
}

ul li {
  position: relative;
  padding: 5px 0 5px 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.futuristic-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
  border: 1px solid var(--accent2);
  border-radius: 6px;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--glow);
  position: relative;
  overflow: hidden;
}

.futuristic-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.futuristic-button:hover {
  background: linear-gradient(135deg, var(--accent3) 0%, var(--accent) 100%);
  box-shadow: 0 0 20px var(--glow), 0 0 30px var(--accent);
  transform: translateY(-2px);
}

.futuristic-button:hover::before {
  left: 100%;
}

.futuristic-button:active {
  transform: translateY(0);
  box-shadow: 0 0 10px var(--glow);
}

footer {
  margin-top: 60px;
  padding: 24px 60px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}

@media (max-width: 920px) {
  .hero-visual,
  .weapon-gallery,
  .selection-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #sidebar {
    display: none;
  }
  #main {
    margin-left: 0;
  }
  #hero,
  .content,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-stats {
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .page-frame {
    padding: 28px 16px 42px;
  }
  .selection-body {
    padding: 18px 18px 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.section {
  animation: fadeIn 0.4s ease both;
}

/* Harmonisation visuelle avec le site principal sans changer la mise en page */
.header-title,
.selection-title,
.sidebar-title,
.hero-name,
.section-title,
.sub-title,
.mini-title,
.weapon-title,
.hero-brand {
  font-family: 'Syne', Arial, sans-serif;
}

.header-subtitle,
.selection-text,
.hero-sub,
.weapon-description,
p,
ul li,
nav a,
.hero-stat-label,
footer,
.sidebar-logo,
.sidebar-badge,
.nav-section,
.hero-label,
.section-num,
.back-top a,
.selection-link,
.futuristic-button {
  font-family: 'DM Sans', Arial, sans-serif;
}

.hero-sub {
  font-style: normal;
}
