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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--fond);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--texte);
  font: 1.0625rem/1.45 var(--police-texte);
  -webkit-tap-highlight-color: transparent;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

h1,
h2 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: normal;
  text-transform: uppercase;
  line-height: 0.92;
  /* L'Incised Nordique occupe ~1 em par lettre : un mot très long (prénom composé) passe à la ligne. */
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.9rem, 8vw, 3.5rem);
}

/* Titre d'un seul mot très long (« RÉCOMPENSES ») : l'Incised Nordique occupe ~1,1 em par lettre. */
h1.titre-long {
  font-size: clamp(1.7rem, 7vw, 3rem);
}

/* Interlignage plus ouvert : les accents des majuscules (É, À) ne doivent pas être masqués. */
h2 {
  font-size: 1.6rem;
  line-height: 1.05;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

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

#app:focus {
  outline: none;
}

/* Colonne mobile, respectant les zones sûres de l'iPhone (encoche, barre d'accueil). */
.page {
  display: flex;
  flex-direction: column;
  gap: var(--e5);
  max-width: var(--largeur);
  min-height: 100dvh;
  margin-inline: auto;
  padding:
    max(var(--e5), env(safe-area-inset-top))
    max(var(--e5), env(safe-area-inset-right))
    max(var(--e5), env(safe-area-inset-bottom))
    max(var(--e5), env(safe-area-inset-left));
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.chargement {
  padding: var(--e6);
  font-family: var(--police-main);
  font-size: 1.4rem;
}

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