/* ==========================================================================
   OPEX SOUND MOD — design system
   Direction : "dossier de campagne" — patch militaire, kaki/sable, French
   tricolore en accents discrets, données techniques en mono, signature :
   balayage radar (clin d'œil au système RWR du mod).
   ========================================================================== */

@font-face {
  font-family: 'Love of Thunder';
  src: url('../fonts/A_Love_of_Thunder.woff2') format('woff2'),
       url('../fonts/A_Love_of_Thunder.woff') format('woff');
  font-display: swap;
}

:root {
  /* --- Couleurs --- */
  --ink:        #14160f;   /* fond profond, quasi noir olive */
  --ink-soft:   #1c2016;
  --olive:      #4b5a3a;   /* vert kaki — couleur de marque */
  --olive-deep: #333d27;
  --olive-line: #6a7a52;
  --sand:       #cfc09a;   /* sable / kaki clair */
  --sand-soft:  #e7dec2;
  --paper:      #f3eedd;   /* fond clair "papier" */
  --paper-line: #ddd2af;
  --ash:        #8a8470;   /* gris-kaki texte secondaire sur paper */
  --red-ops:    #9c3b30;   /* rouge tricolore désaturé — accent rare */
  --blue-ops:   #3a5470;   /* bleu tricolore désaturé — accent tech */
  --cream:      #f3eedd;

  /* --- Typo --- */
  --f-display: 'Love of Thunder', 'Oswald', sans-serif;
  --f-head: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  /* --- Échelle --- */
  --container: 1180px;
  --radius: 3px;
  --shadow-deep: 0 18px 40px rgba(0,0,0,.35);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 .75rem;
  line-height: 1.15;
  font-weight: 600;
}

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive-line);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--red-ops);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--sand); }
.section--dark .eyebrow::before { background: var(--sand); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skiplink_link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: .75rem 1.25rem;
  z-index: 2000;
}
.skiplink_link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--red-ops);
  outline-offset: 3px;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-head);
  font-size: .92rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .75rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--sand);
  color: var(--ink);
  border-color: var(--sand);
}
.btn-primary:hover { background: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(243,238,221,.4);
}
.btn-ghost:hover { border-color: var(--cream); }
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: .55rem 1rem; font-size: .82rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20,22,15,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(207,192,154,.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: .65rem;
  padding-bottom: .65rem;
}
.header-socials {
  display: flex;
  align-items: center;
  gap: .85rem;
  list-style: none;
  margin: 0;
  padding: 0 1.1rem 0 0;
  border-right: 1px solid rgba(207,192,154,.25);
}
.header-socials img {
  height: 26px;
  width: auto;
  display: block;
  transition: transform .15s ease;
}
.header-socials a:hover img { transform: scale(1.15); }
@media (max-width: 640px) {
  .header-socials { gap: .6rem; padding-right: .75rem; }
  .header-socials img { height: 22px; width: auto; }
}
@media (max-width: 420px) {
  .header-socials li:nth-child(n+3) { display: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-name {
  font-family: var(--f-head);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--sand);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(243,238,221,.4);
  color: var(--cream);
  border-radius: var(--radius);
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.main-nav { display: flex; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--sand-soft);
  font-family: var(--f-head);
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--cream); border-color: var(--red-ops); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(207,192,154,.18);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.5rem 1.25rem; }
  .main-nav a { display: block; padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 78% 18%, var(--olive-deep), var(--ink) 60%);
  color: var(--cream);
  overflow: hidden;
  padding: 5.5rem 0 4rem;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

/* signature : balayage radar — clin d'oeil au système RWR du mod */
.radar {
  position: absolute;
  top: 50%; right: -120px;
  width: 480px; height: 480px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(207,192,154,.18);
  pointer-events: none;
}
.radar::before, .radar::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(207,192,154,.14);
}
.radar::before { inset: 80px; }
.radar::after { inset: 160px; }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(156,59,48,.55), transparent 28%);
  animation: sweep 5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .radar-sweep { animation: none; }
}
@keyframes sweep { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .radar { display: none; }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-patch img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: var(--shadow-deep);
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 9vw, 6rem);
  text-transform: uppercase;
  color: var(--sand);
  line-height: .92;
  margin: 0 0 .9rem;
  letter-spacing: .01em;
}
.hero-tagline {
  font-family: var(--f-head);
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--cream);
  margin-bottom: 1rem;
}
.hero-desc {
  max-width: 46ch;
  color: var(--sand-soft);
  font-size: 1.02rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-voices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1.25rem;
}
.hero-voices span {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sand-soft);
  margin-right: .15rem;
}
.hero-voices a {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(207,192,154,.35);
  border-radius: var(--radius);
  padding: .3rem .65rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.hero-voices a:hover {
  border-color: var(--red-ops);
  background: rgba(156,59,48,.15);
}

@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-patch img { width: 120px; height: 120px; }
}

/* ==========================================================================
   SECTIONS GÉNÉRALES
   ========================================================================== */
.section { padding: 4.5rem 0; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--sand { background: var(--sand-soft); }
.section-head {
  max-width: 60ch;
  margin-bottom: 2.75rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section--dark .section-head h2 { color: var(--cream); }
.section-head p { color: var(--ash); }
.section--dark .section-head p { color: var(--sand-soft); }

/* --- Cartes de couverture --- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.cov-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.cov-card .cov-icon {
  width: 38px; height: 38px;
  color: var(--olive);
}
.cov-card h3 {
  font-size: 1.05rem;
  margin: 0;
}
.cov-count {
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--red-ops);
  letter-spacing: .04em;
}
.cov-sample {
  color: var(--ash);
  font-size: .9rem;
  margin: 0;
}
.cov-card a {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: .8rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--olive-line);
  padding-bottom: 2px;
}
.cov-card a:hover { color: var(--red-ops); border-color: var(--red-ops); }

/* --- Vidéos (facade lazy-load) --- */
.video-feature {
  display: block;
  width: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 16/9;
  background: #000;
  border: none;
  padding: 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.video-card {
  display: block;
  width: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
  border: none;
  padding: 0;
}
.video-card img, .video-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .2s ease, transform .3s ease;
}
.video-card:hover img, .video-feature:hover img { opacity: 1; transform: scale(1.03); }
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(156,59,48,.92);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.video-feature .play-badge { width: 70px; height: 70px; }
.play-badge svg { width: 22px; height: 22px; fill: var(--cream); margin-left: 3px; }
.video-card iframe, .video-feature iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- Voix d'équipage --- */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
}
.voice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--olive);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.voice-card:hover { border-left-color: var(--red-ops); transform: translateX(3px); }
.voice-lang { font-family: var(--f-head); letter-spacing: .04em; }
.voice-lang small {
  display: block;
  font-family: var(--f-mono);
  color: var(--ash);
  font-size: .72rem;
  letter-spacing: .08em;
}
.voice-card svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--olive); }

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: var(--sand-soft);
  padding: 3rem 0 2rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(207,192,154,.18);
  margin-bottom: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand strong { font-family: var(--f-head); color: var(--cream); letter-spacing: .04em; }
.footer-credit { font-family: var(--f-mono); font-size: .78rem; color: var(--ash); max-width: 40ch; }
.socials {
  display: flex;
  align-items: center;
  gap: .9rem;
  list-style: none;
  margin: 0; padding: 0;
}
.socials img { height: 34px; width: auto; object-fit: contain; transition: transform .15s ease; }
.socials a:hover img { transform: scale(1.15); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .82rem;
  color: var(--ash);
  font-family: var(--f-mono);
}
.footer-bottom a { color: var(--sand-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ==========================================================================
   PAGE CHANGELOG
   ========================================================================== */
.changelog-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(207,192,154,.18);
}
.changelog-hero h1 { color: var(--sand); font-size: clamp(2rem, 4vw, 2.8rem); }
.changelog-hero p { color: var(--sand-soft); max-width: 60ch; }

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.jump-nav a {
  font-family: var(--f-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  color: var(--sand);
  border: 1px solid rgba(207,192,154,.3);
  border-radius: var(--radius);
  padding: .4rem .75rem;
}
.jump-nav a:hover { border-color: var(--sand); background: rgba(207,192,154,.08); }

.dossier {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 1.1rem;
  scroll-margin-top: 90px;
}
.dossier > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.dossier > summary::-webkit-details-marker { display: none; }
.dossier > summary .count {
  font-family: var(--f-mono);
  text-transform: none;
  letter-spacing: 0;
  color: var(--red-ops);
  font-size: .85rem;
  margin-left: auto;
  margin-right: .75rem;
}
.dossier > summary .chev {
  width: 16px; height: 16px;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.dossier[open] > summary .chev { transform: rotate(180deg); }
.dossier-body {
  padding: 0 1.4rem 1.4rem;
}
.dossier-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  font-family: var(--f-mono);
  font-size: .86rem;
  color: var(--ink);
  border-top: 1px solid var(--paper-line);
  padding-top: 1rem;
}
.dossier-body li {
  padding: .25rem 0;
  border-bottom: 1px dashed var(--paper-line);
}
.dossier-body li strong { color: var(--olive-deep); }

/* --- Tableau RWR --- */
.rwr-note {
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--ash);
  margin: 0 0 1rem;
  border-top: 1px solid var(--paper-line);
  padding-top: 1rem;
}
.rwr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
table.rwr-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1200px;
  font-family: var(--f-mono);
  font-size: .78rem;
}
table.rwr-table th,
table.rwr-table td {
  border: 1px solid var(--paper-line);
  padding: .55rem .65rem;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}
table.rwr-table thead th {
  background: var(--olive-deep);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .72rem;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.rwr-table tbody th {
  background: var(--sand-soft);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: .72rem;
  white-space: nowrap;
  position: sticky;
  left: 0;
}
table.rwr-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--olive-deep);
}
table.rwr-table td.ck {
  text-align: center;
  color: var(--red-ops);
  font-weight: 600;
}
table.rwr-table tbody tr:nth-child(odd) td { background: var(--paper); }
table.rwr-table tbody tr:nth-child(even) td { background: #efe7cf; }

/* utilitaires */
.skip-link-wrap { position: relative; }
