/**
 * typography.css - Styles de typographie pour Portal SSO
 * Définit les polices, tailles et styles de texte
 */

/* Ajoute les autres variantes si besoin */

 :root {
  /* Typographie */
  --font-primary: 'Montserrat', Arial, sans-serif;
  --font-secondary: 'Roboto', Arial, sans-serif;
  --font-size-base: 14px;
  --font-size-sm: 12px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-weight-normal: 400;
  --font-weight-semibold: 500;
  --font-weight-bold: 600;
  --line-height-base: 1.5;
  --line-height-heading: 1.2;
}

*, *::before, *::after {
  font-family: var(--font-secondary);
}

/* Styles de base */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  margin: 0 0 var(--spacing-md) 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
}

h1 {
  font-size: var(--font-size-xl);
}

h2 {
  font-size: var(--font-size-lg);
  position: relative;
}

/* Soulignement pour les titres h2 */
h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

h3 {
  font-size: var(--font-size-md);
  color: var(--primary);
}

h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

/* Paragraphes et textes */
p {
  margin-bottom: var(--spacing-md);
}

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

/* Liens */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--primary-light);
}

/* Listes */
ul, ol {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* Classes utilitaires de texte */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.font-weight-normal { font-weight: var(--font-weight-normal); }
.font-weight-semibold { font-weight: var(--font-weight-semibold); }
.font-weight-bold { font-weight: var(--font-weight-bold); }

.text-small { font-size: var(--font-size-sm); }
.text-large { font-size: var(--font-size-lg); }

/* Ellipsis pour texte tronqué */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}