/**
 * EduSaas — Styles de base
 * Reset, typographie, utilitaires globaux
 */

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

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typographie ── */
h1, h2, h3, h4 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); }

p { margin-bottom: var(--space-sm); }

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

a:hover { color: var(--color-primary-dark); }

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

/* ── Layout principal ── */
#app {
  min-height: 100dvh;
}

/* ── Utilitaires texte ── */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-center { text-align: center; }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }

/* ── Utilitaires display ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* ── Logo ── */
.logo {
  font-family: var(--font-family-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  position: relative;
  overflow: visible;
  text-decoration: none;
  color: var(--text-primary);
}

.logo__accent {
  color: var(--color-primary);
}

/* ── Breakpoints desktop ── */
@media (min-width: 768px) {
  .page--center {
    padding-top: 0 !important;
  }
}
