/* ═══════════════════════════════════════════════════════════════
   KAIREZ — DESIGN SYSTEM OFFICIEL (Bleu Lapis & Art Gold)
   Styles globaux, composants UI, Hub Légal & Landing Page
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Typographie */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
  --font-brand: 'Jost', sans-serif;

  /* Nuances neutres */
  --ink: #111827;
  --slate: #4B5563;
  --slate-dark: #374151;
  --slate-light: #6B7280;
  --mist: #F3F4F6;
  --cloud: #F9FAFB;
  --cloud-subtle: #F8F9FA;
  --line: #E5E7EB;
  --line-l: #F3F4F6;
  --white: #FFFFFF;

  /* Couleurs de marque Kairez */
  --blue: #2F4A7A;          /* Bleu Lapis */
  --blue-hover: #24395E;
  --blue-active: #1A2A47;
  --blue-10: rgba(47, 74, 122, 0.10);
  --blue-l: #EDF2F9;

  --gold: #C79A3E;          /* Art Gold (formes, accents, icônes) */
  --gold-hover: #B88B32;
  --gold-text: #B98A2E;     /* Grand texte >= 18px */
  --gold-dark: #8A6420;     /* Texte normal < 18px (WCAG AA > 4.5:1) */
  --gold-12: rgba(199, 154, 62, 0.12);
  --gold-l: #FDF8ED;

  /* Alertes et statuts */
  --jade: #10B981;
  --jade-dark: #059669;
  --jade-l: #ECFDF5;
  --crimson: #EF4444;
  --crimson-l: #FEF2F2;
  --amber: #F59E0B;
  --amber-l: #FFFBEB;

  /* Espacements & Rayons */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(47, 74, 122, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Accessibilité */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 8px 16px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* Layout Global */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.96);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.brand-version-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dark);
  background: var(--gold-l);
  border: 1px solid rgba(199, 154, 62, 0.35);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--slate);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(47, 74, 122, 0.2);
}

.header-cta:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47, 74, 122, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* Sections génériques */
.section-wrap {
  padding: 88px 32px;
  border-top: 1px solid var(--line);
}
.section-wrap.alt {
  background: var(--cloud);
}
.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
  display: inline-block;
  background: var(--blue-10);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.section-header h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
  color: var(--ink);
  line-height: 1.15;
}
.section-header p {
  color: var(--slate);
  font-size: 17px;
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--cloud);
  border-top: 1px solid var(--line);
  padding: 64px 48px 32px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--slate);
  font-size: 14px;
  max-width: 340px;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--slate);
  font-size: 14px;
  margin-bottom: 11px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--slate-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 860px) {
  .site-header {
    padding: 14px 20px;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    gap: 16px;
    align-items: flex-start;
  }
  .site-nav.is-open {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
