/* Feuille unique pour les trois pages. Un reviewer TikTok ouvre le site
   sur mobile aussi souvent que sur ordinateur: tout est en une colonne
   fluide, aucune media query n'est necessaire. */

:root {
  --encre: #16181d;
  --encre-douce: #565c66;
  --trait: #e3e6ea;
  --fond: #ffffff;
  --fond-doux: #f7f8fa;
  --accent: #1f6feb;
  --largeur: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --encre: #e9ecf1;
    --encre-douce: #a0a7b4;
    --trait: #2a2f38;
    --fond: #14161a;
    --fond-doux: #1b1e24;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
        Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.enveloppe {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.bandeau {
  border-bottom: 1px solid var(--trait);
  background: var(--fond-doux);
}

header.bandeau .enveloppe {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: baseline;
}

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

nav.bandeau-liens {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
}

nav.bandeau-liens a { color: var(--encre-douce); text-decoration: none; }
nav.bandeau-liens a:hover { color: var(--accent); }

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--trait);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; }

p, li { color: var(--encre); }

.chapo {
  font-size: 1.08rem;
  color: var(--encre-douce);
  margin-bottom: 2rem;
}

.maj {
  font-size: 0.85rem;
  color: var(--encre-douce);
  margin: 0 0 2.2rem;
}

ul, ol { padding-left: 1.2rem; }
li { margin: 0.35rem 0; }

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

code {
  background: var(--fond-doux);
  border: 1px solid var(--trait);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.encadre {
  background: var(--fond-doux);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}

.encadre p:last-child { margin-bottom: 0; }
.encadre p:first-child { margin-top: 0; }

.etapes { counter-reset: etape; list-style: none; padding-left: 0; }

.etapes li {
  counter-increment: etape;
  position: relative;
  padding-left: 2.4rem;
  margin: 0.8rem 0;
}

.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

footer.pied {
  border-top: 1px solid var(--trait);
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--encre-douce);
}

footer.pied a { color: var(--encre-douce); }
