/* ==========================================================================
   Chœur Polycantus — 01-base.css

   Réinitialisation, éléments HTML, typographie et utilitaires.
   
   Rien de spécifique à un composant ici : uniquement ce qui s'applique aux
   balises nues et les quelques classes transverses (.prose, .muted, .rule).
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--white);
  color: var(--grey);
  font-family: var(--font-body);
  font-size: 1.125rem;   /* 18 px, interligne 28 px : mesurés sur l'original */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--teal);
  line-height: 1.25;
  margin: 0 0 0.65em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin: 0 0 1.15em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint-dark);
  display: block;
  margin: 0 0 0.8rem;
}

/* Filet fin au-dessus des titres de section, comme sur l'original. */
.rule {
  width: 100%;
  max-width: 32rem;
  height: 2px;
  background: var(--rule);
  border: 0;
  margin: 0 0 2rem;
}

.rule--light {
  background: rgba(255, 255, 255, 0.45);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.prose > :last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .masthead,
  .site-footer,
  .btn,
  .filters,
  .calendar-nav {
    display: none;
  }
}
