/* Site Moisson-Desroches, feuille de style commune */

:root {
  --bleu-nuit: #142b4d;
  --bleu-nuit-clair: #1f3f6e;
  --rouge: #e61d2d;
  --ambre: #c9762f;
  --fond: #fbfaf7;
  --fond-encadre: #f0ede5;
  --texte: #232323;
  --texte-clair: #5a5a5a;
  --bordure: #ddd8cb;
  --largeur-max: 800px;
}

@font-face {
  font-family: 'Archivo Narrow';
  src: url('fonts/archivo-narrow-latin.woff2') format('woff2');
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
}

header.entete {
  background: var(--bleu-nuit);
  color: #fff;
}

.entete-contenu {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0.9rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.marque {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.entete-contenu img.logo {
  height: 56px;
  width: auto;
}

.signature {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #9fb0c9;
  margin: 0;
  font-family: 'Archivo Narrow', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

nav.principale ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.92rem;
}

nav.principale a {
  color: #9fb0c9;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

nav.principale a:hover,
nav.principale a[aria-current="page"] {
  border-bottom-color: var(--rouge);
  color: #fff;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 3rem;
}

main > * {
  max-width: var(--largeur-max);
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: 1.7rem;
  color: var(--bleu-nuit-clair);
  margin-top: 0;
}

h2 {
  font-size: 1.35rem;
  color: var(--bleu-nuit-clair);
  margin: 2rem auto 0.8rem;
}

h3 {
  font-size: 1.1rem;
  color: var(--bleu-nuit-clair);
  margin: 1.4rem auto 0.6rem;
}

p {
  margin: 0 auto 1rem;
}

ul, ol {
  margin: 0 auto 1rem;
  padding-left: 1.4rem;
}

a {
  color: var(--bleu-nuit-clair);
}

a:hover {
  color: var(--rouge);
}

.alerte {
  background: var(--fond-encadre);
  border-left: 4px solid var(--ambre);
  padding: 0.9rem 1.1rem;
  margin: 0 auto 1.4rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
}

.alerte strong {
  color: var(--bleu-nuit);
}

.encadre {
  background: var(--fond-encadre);
  border: 1px solid var(--bordure);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1.2rem auto;
}

figure {
  margin: 1.5rem auto;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

figcaption {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--texte-clair);
  margin-top: 0.4rem;
}

.note {
  font-size: 0.85rem;
  color: var(--texte-clair);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

footer.pied {
  border-top: 1px solid var(--bordure);
  background: var(--fond-encadre);
  margin-top: 2rem;
}

.pied-contenu {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--texte-clair);
}

.pied-contenu img.texte-logo {
  height: 28px;
  width: auto;
}

.pied-marque {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pied-contenu a {
  color: var(--texte-clair);
}
