/*
 * BailleurSuite Design System — v1
 * Source de vérité : index.html
 * ─────────────────────────────────────────────────────────────────
 * Ce fichier est importé par toutes les pages du site.
 * Il centralise : tokens, reset, base, typography, nav, footer,
 * utilitaires. Les CSS page-spécifiques restent dans les <style>
 * inline de chaque page.
 */

/* ══════════════════════════════════
   1. TOKENS
   ══════════════════════════════════ */
:root {
  /* Palette principale */
  --bg:          #F5F0E8;   /* ivoire — fond page */
  --cream:       #FDFCF8;   /* ivoire clair — fond cartes */
  --ink:         #1C1C1E;   /* graphite foncé — titres */
  --ink-mid:     #4A4A44;   /* graphite — texte body */
  --ink-light:   #6A6A64;   /* graphite clair — labels WCAG AA ✓ (4.8:1 sur --bg) */

  /* Émeraude — gestion, actions primaires */
  --mint:        #2D6A4F;
  --mint-dark:   #1A4A35;
  --mint-pale:   #E8F2ED;

  /* Or — accent fiscal, prestige */
  --gold:        #C9A84C;
  --gold-light:  #E2C47A;
  --gold-pale:   #F9F3E3;

  /* Structure */
  --border:      #E0D9CC;
  --serif:       'Instrument Serif', Georgia, serif;
  --sans:        'DM Sans', system-ui, -apple-system, sans-serif;
  --radius:      20px;
  --radius-sm:   12px;

  /* Élévation cartes — grammaire unique */
  --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 8px 32px rgba(0,0,0,.07);
  --shadow-card-hover: 0 4px 8px rgba(0,0,0,.06), 0 20px 48px rgba(0,0,0,.11);
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #1C1C1E;
    --cream:     #2C2C2E;
    --ink:       #F5F0E8;
    --ink-mid:   #AEADA8;
    --ink-light: #6A6A66;
    --border:    #3A3A3C;
    --mint:      #3D8B68;
    --mint-dark: #3D8B68;
    --mint-pale: #0D2E20;
    --gold:      #E2C47A;
    --gold-pale: #2A2415;
  }
}

/* ══════════════════════════════════
   2. RESET
   ══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

/* ══════════════════════════════════
   3. BASE
   ══════════════════════════════════ */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-mid);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ══════════════════════════════════
   4. DISPLAY TYPOGRAPHY
   Instrument Serif n'existe qu'en Regular (400).
   font-synthesis: none interdit le faux-gras synthétique du navigateur
   qui produit des contours hachés aux grandes tailles sur desktop.
   Le contraste visuel vient du tracking et de la taille, pas du gras.
   ══════════════════════════════════ */
h1, h2, h3 {
  font-weight: 400;
  font-synthesis: none;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════
   5. UTILITAIRES
   ══════════════════════════════════ */
.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;
}

.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  z-index: 9999; transition: width .1s linear;
}

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   6. ANIMATIONS
   ══════════════════════════════════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* ══════════════════════════════════
   7. NAV PARTAGÉ
   Full-width, fixed, backdrop-blur — référence index.html
   ══════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box; overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .site-nav {
    background: rgba(28,28,30,.92);
    border-bottom-color: #3A3A3C;
  }
}
.nav-logo {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink);
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px; height: 32px; background: var(--mint);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.nav-logo-suite { color: var(--mint); }
.nav-cta {
  background: var(--mint); color: white;
  padding: 10px 20px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500; text-decoration: none;
  letter-spacing: 0.01em; transition: background .2s, transform .15s;
  flex-shrink: 1; min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 60%;
}
.nav-cta:hover { background: var(--mint-dark); transform: translateY(-1px); }
@media (max-width: 700px) { .nav-cta { display: none; } }

/* ══════════════════════════════════
   8. FOOTER PARTAGÉ
   ══════════════════════════════════ */
.site-footer {
  background: var(--ink);
  padding: 44px 24px 32px;
}
.site-footer-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.site-footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin-bottom: 24px;
}
.site-footer-nav a {
  color: rgba(255,255,255,.5); font-size: 0.8rem;
  text-decoration: none; padding: 8px 12px;
  transition: color .2s; font-family: var(--sans);
}
.site-footer-nav a:hover { color: var(--mint); }
.site-footer-sep {
  color: rgba(255,255,255,.18); font-size: 0.8rem;
  line-height: 2.2; user-select: none;
}
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  font-size: 0.72rem; color: rgba(255,255,255,.3);
  font-family: var(--sans);
}
.site-footer-bottom a {
  color: rgba(255,255,255,.35); text-decoration: none; margin: 0 8px;
}
.site-footer-bottom a:hover { color: rgba(255,255,255,.75); }

/* ══════════════════════════════════
   9. EYEBROW / BADGE — couleur or
   ══════════════════════════════════ */
.eyebrow {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); font-weight: 600;
}
