/* =============================================================
   lapauseia — Design tokens
   Source de vérité des couleurs, typographies, radius, ombres.
   ============================================================= */

:root {
  /* Couleurs de fond */
  --color-bg:           #FAFAF7;  /* fond général ivoire chaud */
  --color-bg-alt:       #F0EDE4;  /* fond sections alternées */

  /* Couleurs de texte */
  --color-ink:          #2D2D2D;  /* texte courant */
  --color-ink-light:    #6B7280;  /* meta, dates, texte secondaire */
  --color-heading:      #1A1A2E;  /* H1–H3 bleu nuit */

  /* Couleurs accent (violet Eziom) */
  --color-accent:       #7C3AED;
  --color-accent-bg:    #F5F3FF;
  --color-accent-mid:   #DDD6FE;
  --color-accent-dark:  #5B21B6;

  /* Couleurs utilitaires */
  --color-border:       #E4E1D8;
  --color-success:      #166534;
  --color-info:         #1E40AF;
  --color-warning:      #B45309;
  --color-danger:       #B91C1C;
  --color-white:        #FFFFFF;

  /* Typographies */
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Tailles de police */
  --fs-xs:    0.75rem;   /* 12px */
  --fs-sm:    0.875rem;  /* 14px */
  --fs-base:  1rem;      /* 16px */
  --fs-lg:    1.125rem;  /* 18px */
  --fs-xl:    1.25rem;   /* 20px */
  --fs-2xl:   1.5rem;    /* 24px */
  --fs-3xl:   1.875rem;  /* 30px */
  --fs-4xl:   2.25rem;   /* 36px */
  --fs-5xl:   3rem;      /* 48px */
  --fs-article: 1.125rem; /* corps article 18px */

  /* Line-heights */
  --lh-tight: 1.2;
  --lh-snug:  1.4;
  --lh-base:  1.6;
  --lh-relaxed: 1.85;   /* corps article */

  /* Radius */
  --radius-card:  12px;
  --radius-btn:   8px;
  --radius-badge: 999px;
  --radius-sm:    4px;

  /* Ombres */
  --shadow-card:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg:    0 10px 25px rgba(0,0,0,0.10);

  /* Largeurs */
  --max-width:     1120px;
  --content-width: 720px;   /* max-width corps article */

  /* Espacements */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
}

/* =============================================================
   Reset léger + base
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover, a:focus { color: var(--color-accent-dark); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  color: var(--color-heading);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4);
  font-weight: 700;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--space-4); }

/* =============================================================
   Badges piliers
   ============================================================= */

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-badge);
  line-height: 1.4;
}

.badge--ia-metier      { background: #F5F3FF; color: #7C3AED; }
.badge--automatisation { background: #DBEAFE; color: #1E40AF; }
.badge--redaction      { background: #DCFCE7; color: #166534; }

/* =============================================================
   Container global — namespacé .l-shell pour éviter le conflit
   avec la classe .container de Tailwind (qui a max-width 1280px+)
   ============================================================= */

.l-shell {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .l-shell { padding-inline: var(--space-8); }
}

/* =============================================================
   Boutons
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-fast);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--primary:hover, .btn--primary:focus { background: var(--color-accent-dark); color: var(--color-white); }

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn--secondary:hover, .btn--secondary:focus { background: var(--color-bg-alt); color: var(--color-ink); }

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
}
.btn--ghost:hover { background: var(--color-accent-bg); }
