/* ============================================================
   AMBIZ — Typography
   Chargement local des polices (Inter + Playfair Display)
   et règles typographiques de base.
   ============================================================ */

/* ===== Inter (corps) — 4 poids ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}

/* ===== Playfair Display (titres) — 2 poids ===== */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/playfair-900.woff2') format('woff2');
}

/* ===== Typographie de base ===== */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--ambiz-text);
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--ambiz-navy);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

/* Adaptations mobiles des titres */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-lg); }
}

/* Paragraphes */
p {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ambiz-text);
}

/* Liens dans le contenu */
a:not(.btn):not([class*='ambiz-']) {
  color: var(--ambiz-red);
  transition: color var(--duration-fast) var(--ease-out);
}

a:not(.btn):not([class*='ambiz-']):hover {
  color: var(--ambiz-red-dark);
}

/* Texte mis en valeur */
strong, b {
  font-weight: var(--font-semibold);
}

em, i {
  font-style: italic;
}

/* Petit texte */
small {
  font-size: var(--text-sm);
  color: var(--ambiz-text-muted);
}

/* Citations */
blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--ambiz-text);
  border-left: 4px solid var(--ambiz-red);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
}
