/* Feuille de style unique du site Ritimo.
 *
 * Aucun outil de construction, aucune dependance, aucune police distante :
 * le site se depose tel quel par FTP. Une chaine de build pour trois pages
 * statiques coute plus qu'elle ne rapporte, et un fichier qui se lit
 * entierement se corrige depuis n'importe quel poste.
 *
 * Les couleurs viennent du doc 01. Aucune police n'est chargee depuis un
 * serveur tiers : cela ferait fuiter l'adresse IP des visiteurs de la page
 * de confidentialite vers un tiers, ce qui serait cocasse. */

:root {
  --vert-700: #496354;
  --vert-600: #607d6b;
  --vert-100: #dde7e0;
  --fond: #faf9f6;
  --surface: #ffffff;
  --texte: #202124;
  --texte-doux: #676767;
  --bordure: #ece8e1;
  --rayon: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #171d19;
    --surface: #1f2621;
    --texte: #e8ece9;
    --texte-doux: #a8b0aa;
    --bordure: #303a33;
    --vert-700: #a8c8b4;
    --vert-600: #8fb39d;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.enveloppe {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header.principal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bordure);
  margin-bottom: 2.5rem;
}

.marque {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--vert-700);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav a {
  color: var(--texte-doux);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus-visible {
  color: var(--vert-700);
  text-decoration: underline;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

.accroche {
  font-size: 1.15rem;
  color: var(--texte-doux);
  margin: 0 0 2rem;
}

.maj {
  font-size: 0.9rem;
  color: var(--texte-doux);
  margin-top: -0.5rem;
}

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.carte h3 {
  margin-top: 0;
}

.carte p:last-child {
  margin-bottom: 0;
}

.encadre {
  background: var(--vert-100);
  border-radius: var(--rayon);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

@media (prefers-color-scheme: dark) {
  .encadre {
    background: #24302a;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--bordure);
  vertical-align: top;
}

th {
  color: var(--vert-700);
  font-weight: 600;
}

a {
  color: var(--vert-700);
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

.courriel {
  font-size: 1.05rem;
  font-weight: 600;
}

.bouton {
  display: inline-block;
  background: var(--vert-700);
  color: var(--fond);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.bouton:hover,
.bouton:focus-visible {
  background: var(--vert-600);
}

@media (prefers-color-scheme: dark) {
  .bouton {
    color: #171d19;
  }
}

.badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bordure);
  color: var(--texte-doux);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--texte-doux);
}
