/* ==========================================================================
   Arkancia United People ASBL — Design System
   Site sobre, professionnel, accessible
   Palette : noir + or + crème + gris
   Typo : Georgia (titres) + Inter (corps)
   ========================================================================== */

/* ---------- Animations discrètes ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

:root {
  /* Palette */
  --noir:        #0A0A0A;
  --noir-doux:   #1A1A1A;
  --gris-90:     #2A2A2A;
  --gris-70:     #4A4A4A;
  --gris-50:     #737373;
  --gris-30:     #A0A0A0;
  --gris-10:     #E5E5E5;
  --gris-5:      #F0F0F0;
  --or:          #C9A961;
  --or-fonce:    #A88B4A;
  --or-clair:    #E0C896;
  --creme:       #FAF8F2;
  --creme-fonce: #EAE3D2;
  --ivoire:      #FFFEF9;
  --blanc:       #FFFFFF;

  /* Typo */
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Calibri, sans-serif;

  /* Espacement */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Rayons */
  --radius:     4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  /* Ombres */
  --shadow-sm:  0 1px 2px rgba(10,10,10,0.04);
  --shadow:     0 2px 8px rgba(10,10,10,0.06);
  --shadow-md:  0 8px 24px rgba(10,10,10,0.08);
  --shadow-lg:  0 16px 48px rgba(10,10,10,0.12);

  /* Transitions */
  --t-fast: 150ms ease-out;
  --t-base: 250ms ease-out;

  /* Typo scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.25rem;
  --fs-4xl:  3rem;
  --fs-5xl:  3.75rem;

  /* Layout */
  --container:    1140px;
  --container-md: 880px;
  --container-sm: 640px;
  --gutter:       var(--space-5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--noir);
  background-color: var(--creme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Typo ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--noir);
}
h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { line-height: 1.7; }
strong { font-weight: 600; }
em { font-style: italic; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--or-fonce);
  display: inline-block;
  margin-bottom: var(--space-3);
}
.muted { color: var(--gris-50); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-md { max-width: var(--container-md); margin: 0 auto; padding: 0 var(--gutter); }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--space-9) 0; }
.section-sm { padding: var(--space-7) 0; }
.section-lg { padding: var(--space-10) 0; }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; gap: var(--space-4); }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.divider {
  width: 40px;
  height: 2px;
  background: var(--or);
  margin: var(--space-4) 0 var(--space-5);
  border: none;
}

/* ---------- Backgrounds ---------- */
.bg-creme   { background: var(--creme); }
.bg-creme-fonce { background: var(--creme-fonce); }
.bg-noir    { background: var(--noir); color: var(--creme); }
.bg-noir-doux { background: var(--noir-doux); color: var(--creme); }
.bg-ivoire  { background: var(--ivoire); }
.text-creme { color: var(--creme); }
.text-noir  { color: var(--noir); }
.text-or    { color: var(--or); }
.text-gris  { color: var(--gris-50); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gris-10);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark { width: 32px; height: 32px; border-radius: 6px; }
.nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gris-70);
  transition: color var(--t-fast);
  padding: var(--space-2) 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  transition: opacity var(--t-fast);
}
.nav-link:hover { color: var(--noir); }
.nav-link:hover svg { opacity: 1; }
.nav-link.is-active {
  color: var(--noir);
  font-weight: 600;
}
.nav-link.is-active svg { opacity: 1; stroke: var(--or-fonce); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn svg[fill="currentColor"],
.btn svg path[fill]:not([fill="none"]) {
  fill: currentColor;
  stroke: none;
}
.btn-primary {
  background: var(--noir);
  color: var(--creme);
  border-color: var(--noir);
}
.btn-primary:hover {
  background: var(--noir-doux);
}
.btn-secondary {
  background: transparent;
  color: var(--noir);
  border-color: var(--gris-30);
}
.btn-secondary:hover {
  background: var(--noir);
  color: var(--creme);
  border-color: var(--noir);
}
.btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--fs-base); }
.btn-sm { padding: var(--space-2) var(--space-3); font-size: var(--fs-xs); }
.btn .arrow { transition: transform var(--t-fast); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--blanc);
  border: 1px solid var(--gris-10);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: all var(--t-base);
}
.card:hover {
  border-color: var(--gris-30);
  box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--creme-fonce);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--or-fonce);
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  background: var(--creme-fonce);
  color: var(--noir);
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: 100px;
}
.pill-outline {
  background: transparent;
  border: 1px solid var(--gris-30);
  color: var(--gris-70);
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--space-4); }
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--noir);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  background: var(--blanc);
  border: 1px solid var(--gris-30);
  border-radius: var(--radius);
  color: var(--noir);
  transition: border-color var(--t-fast);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--or);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ---------- Quote ---------- */
.quote {
  position: relative;
  padding: var(--space-6);
  background: var(--creme-fonce);
  border-left: 3px solid var(--or);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-style: italic;
  line-height: 1.5;
  color: var(--noir);
}
.quote-author {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 600;
  color: var(--or-fonce);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--noir);
  color: var(--creme);
  padding: var(--space-9) 0 var(--space-5);
}
.site-footer a { color: var(--creme); transition: color var(--t-fast); }
.site-footer a:hover { color: var(--or); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}
.footer-col h6 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--or);
  margin-bottom: var(--space-4);
}
.footer-col ul li { margin-bottom: var(--space-2); font-size: var(--fs-sm); }
.footer-brand {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--gris-30);
  max-width: 36ch;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--gris-90);
  font-size: var(--fs-xs);
  color: var(--gris-30);
}
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gris-90);
  border-radius: 50%;
  transition: all var(--t-base);
}
.footer-social a:hover {
  background: var(--or);
  border-color: var(--or);
  color: var(--noir);
}

/* ---------- Animations sobre ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--noir);
  color: var(--creme);
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
}
.skip-link:focus { top: 0; }
