/* ============================================================
   DESIGN SYSTEM — Cabinet Yahia Muallem
   Tokens, variables, reset & base typographie
   ============================================================ */

/* ---- Polices ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/* ---- Variables CSS ---- */
:root {
  /* Couleurs */
  --color-primary:       #1F2937;
  --color-accent:        #C9A66B;
  --color-bg:            #F8FAFC;
  --color-text:          #0A0F1A;
  --color-text-muted:    #475569;
  --color-border:        #CBD5E1;
  --color-border-light:  rgba(31, 41, 55, 0.08);
  --color-white:         #FFFFFF;
  --color-black:         #0A0F1A;

  /* Ombres */
  --shadow-sm:   0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-md:   0 12px 40px rgba(15, 23, 42, 0.05);
  --shadow-lg:   0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-btn:  0 4px 20px rgba(201, 166, 107, 0.25);

  /* Typographie */
  --ff-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-serif: 'Playfair Display', Georgia, serif;

  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */

  --leading-tight:   1.15;
  --leading-snug:    1.35;
  --leading-relaxed: 1.65;
  --leading-loose:   1.8;

  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;

  /* Espacement */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 1100px;
  --header-height: 80px;
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* Transitions */
  --transition-fast:   200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--ff-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Focus visible (accessibilité) ---- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---- Sélection ---- */
::selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ---- Typographie de base ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-primary);
}

p {
  color: var(--color-text-muted);
  max-width: 70ch;
}

/* ---- 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-width: 0;
}
