/* ═══════════════════════════════════════════════════════
   SWORD CAPITAL — Design System v2
   sword.css — Feuille de style partagée (toutes pages)
   ═══════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────── */
:root {
  /* Fonds */
  --bg-0:   #0C0D09;
  --bg-1:   #111309;
  --bg-2:   #181A10;
  --bg-3:   #1F2215;
  --bg-4:   #272B1B;

  /* Séparateurs */
  --line:   #2C3019;
  --line-2: #3A3F26;

  /* Kaki */
  --kaki-dim:    #3D4427;
  --kaki-mid:    #5C6435;
  --kaki-core:   #7A8645;
  --kaki-bright: #9BAA5A;
  --kaki-pale:   #BEC794;

  /* Or platine */
  --gold-dim:   #5A5030;
  --gold-core:  #A8925A;
  --gold-light: #C4AA72;
  --gold-pale:  #DDD0A8;

  /* Texte */
  --text-bright: #EDE8DA;
  --text-base:   #C8C3B0;
  --text-muted:  #8A8575;
  --text-faint:  #565048;

  /* Typographie */
  --font-serif:     'Instrument Serif', Georgia, serif;
  --font-condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* Misc */
  --transition: 200ms ease;
  --max-w: 1080px;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-1);
  color: var(--text-base);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Grille fine de fond ─────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .28;
  pointer-events: none;
}

/* ── Navigation ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,19,9,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  text-align: center;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-sword {
  font-family: var(--font-condensed);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-bright);
  line-height: .92;
  display: block;
}
.nav-logo-capital {
  font-family: var(--font-condensed);
  font-size: .38rem;
  font-weight: 300;
  letter-spacing: .48em;
  text-transform: uppercase;
  color: var(--kaki-bright);
  display: block;
  margin-top: .32em;
  padding-left: .48em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-family: var(--font-condensed);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-bright); }
.nav-cta {
  display: inline-flex;
  padding: .4rem 1.1rem;
  font-family: var(--font-condensed);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-bright);
  border: 1px solid var(--kaki-core);
  background: transparent;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--kaki-core); }

/* ── Hero de page intérieure ─────────────────────────── */
.page-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 5rem 0 4rem;
  overflow: hidden;
  z-index: 1;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 100% 50%,
    rgba(90,80,48,.1) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Labels & titres ─────────────────────────────────── */
.label {
  font-family: var(--font-condensed);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--kaki-core);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--kaki-mid);
  flex-shrink: 0;
}
.page-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.05;
  margin-bottom: .5rem;
}
.page-h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.page-sub {
  font-family: var(--font-condensed);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
}
.hero-rule {
  width: 48px; height: 1px;
  background: var(--gold-core);
  margin-top: 2rem;
}

/* ── Container ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative; z-index: 1;
}
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}
.section:last-child { border-bottom: none; }

/* ── Boutons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  font-family: var(--font-condensed);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--kaki-core);
  color: var(--text-bright);
  border-color: var(--kaki-core);
}
.btn-primary:hover {
  background: var(--kaki-bright);
  border-color: var(--kaki-bright);
}
.btn-outline {
  background: transparent;
  color: var(--text-bright);
  border-color: var(--line-2);
}
.btn-outline:hover {
  border-color: var(--kaki-mid);
  color: var(--kaki-pale);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--text-bright); }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  font-family: var(--font-condensed);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge-kaki {
  background: rgba(90,100,53,.18);
  border-color: var(--kaki-mid);
  color: var(--kaki-pale);
}
.badge-gold {
  background: rgba(168,146,90,.1);
  border-color: var(--gold-dim);
  color: var(--gold-light);
}
.badge-muted {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text-muted);
}

/* ── Inputs formulaire ───────────────────────────────── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.input-label {
  font-family: var(--font-condensed);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--kaki-bright);
}
.input-field,
.select-field,
.textarea-field {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .65rem .9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
}
.input-field::placeholder,
.textarea-field::placeholder { color: var(--text-faint); }
.input-field:focus,
.select-field:focus,
.textarea-field:focus {
  border-color: var(--kaki-mid);
  box-shadow: 0 0 0 2px rgba(90,100,53,.2);
}
.textarea-field { resize: vertical; min-height: 120px; }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1.75rem;
}
.card-kaki { border-top: 2px solid var(--kaki-core); }
.card-gold  { border-top: 2px solid var(--gold-core); }
.card-eyebrow {
  font-family: var(--font-condensed);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--kaki-bright);
  margin-bottom: .5rem;
}
.card-title {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: .6rem;
}
.card-body {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── KPI strip ───────────────────────────────────────── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.kpi-item {
  background: var(--bg-2);
  padding: 1.4rem 1.5rem;
}
.kpi-val {
  font-family: var(--font-condensed);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: .25rem;
}
.kpi-lbl {
  font-family: var(--font-condensed);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--kaki-bright);
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal {
  font-family: var(--font-condensed);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.9;
}
.footer-legal a {
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--text-muted); }
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .9rem;
  color: var(--gold-core);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { padding: .35rem .8rem; font-size: .65rem; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 3.5rem 0 2.5rem; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .kpi-strip { grid-template-columns: 1fr; }
}
