/*
 * FLOWAYZ TYPOGRAPHY SYSTEM
 * Système typographique cohérent et responsive
 */

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11' 1, 'ss01' 1;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tighter);
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-tight);
}

h4 {
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
}

h5 {
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-tight);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--flowayz-teal);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent, var(--flowayz-coral));
}

/* Underline slide-in for content links */
.prose a, a.link-underline {
  position: relative;
}
.prose a::after, a.link-underline::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.prose a:hover::after, a.link-underline:hover::after {
  width: 100%;
}

strong, b {
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

blockquote {
  border-left: 4px solid var(--flowayz-teal);
  padding-left: var(--space-4);
  margin: var(--space-5) 0;
  font-style: italic;
  color: var(--text-secondary);
}

code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: var(--text-sm);
  background: var(--bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--flowayz-teal);
}

pre {
  background: var(--bg-tertiary);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-5) 0;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

hr {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: var(--space-6) 0;
}

/* Responsive typography */
@media (max-width: 640px) {
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }
  
  .container-flowayz {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}
