/* =========================
   BASE (mobile-first)
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   HEADINGS (mobile)
========================= */

h1,
h2 {
  font-family: var(--font-serif);
  margin: 0 0 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}

h1 {
  font-size: 20px;
  line-height: 1.2;
}

h2 {
  font-size: 25px;
  line-height: 1.25;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
}

/* =========================
   TEXT
========================= */

p {
  margin: 0 0 14px;
  color: var(--text);
}

.text-muted {
  color: var(--text-muted);
}

/* =========================
   LINKS
========================= */

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--link-hover-muted);
}




/* Galaxy S8+ / petits 360px et hauteur ~740 */

@media (max-width: 375px) and (max-height: 890px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 19px;
    line-height: 1.2;
  }
}

@media (max-width: 360px) and (max-height: 890px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 18px;
    line-height: 1.2;
  }
}

@media (max-width: 345px) and (max-height: 890px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 17px;
    line-height: 1.2;
  }
}

/* =========================
   TYPO DESKTOP & TABLETTES
========================= */

@media (min-width: 768px) {
  body {
    font-size: 24px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.15;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 26px;
  }
}

@media (min-width: 820px) {
  body {
    font-size: 28px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 45px;
  }

  h3 {
    font-size: 30px;
  }
}

@media (min-width: 992px) {
  body {
    font-size: 30px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.15;
  }

  h2 {
    font-size: 50px;
  }

  h3 {
    font-size: 35px;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 50px;
    line-height: 1.15;
  }

  h2 {
    font-size: 35px;
  }

  h3 {
    font-size: 22px;
  }
}

/* =========================
   REVEAL ON SCROLL (CSS)
   -> à mettre dans components.css (ou base.css)
========================= */

.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Variantes */
.reveal--soft{ transform: translateY(12px); }
.reveal--zoom{ transform: scale(.985); }
.reveal--zoom.is-visible{ transform: scale(1); }

/* Petit “stagger” (cascade) : on joue sur le delay */
.reveal--stagger{ transition-delay: var(--reveal-delay, 0ms); }

/* Accessibilité */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}
