/* Ce que toutes les pages partagent : texte, titres, liens, focus, en-tête et pied de page. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: var(--t-texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--encre);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--t-h1);
  line-height: 1.05;
  margin: 0 0 var(--e2);
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  margin: 0 0 var(--e3);
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: var(--accent);
}

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

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

.aller-au-contenu {
  position: absolute;
  left: var(--e2);
  top: calc(-1 * var(--e6));
  padding: var(--e1) var(--e2);
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-petit);
}

.aller-au-contenu:focus {
  top: var(--e2);
}

.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e2);
  max-width: var(--largeur);
  min-height: 80px;
  margin: 0 auto;
  padding: 0 var(--e3);
}

.logo {
  color: var(--encre);
  font-size: var(--t-h3);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

/* L'en-tête du PDF à son logo d'une agence : son logo à sa largeur, son nom tel qu'elle l'écrit. */
.logo-agence {
  display: flex;
  align-items: center;
  gap: var(--e2);
}

.logo-agence img {
  width: auto;
  max-width: 240px;
  height: 40px;
  object-fit: contain;
}

.nom-agence {
  font-size: var(--t-h3);
  font-weight: 800;
}

.menu {
  display: flex;
  align-items: center;
  gap: var(--e4);
  font-size: var(--t-petit);
  font-weight: 500;
}

.menu a {
  color: var(--encre);
  text-decoration: none;
}

.menu a:hover,
.menu a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu .cadre {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--e2);
  border: 2px solid var(--encre);
  border-radius: 999px;
  font-weight: 600;
}

.menu .cadre:hover {
  background: var(--encre);
  color: var(--fond);
  text-decoration: none;
}

.page {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: var(--e3) var(--e3) var(--e8);
}

.pied {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: var(--e4) var(--e3) var(--e6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--e1) var(--e3);
  border-top: 1px solid var(--trait);
  font-size: var(--t-petit);
}

.pied a {
  color: var(--doux);
}

@media (width <= 900px) {
  /* Sur téléphone, seuls le logo et « Mon espace » restent dans l'en-tête ; le reste est au pied. */
  .menu a:not(.cadre) {
    display: none;
  }
}
