/* The blog (docs/blog.md): static pages beside the shop, in its design system's colours and
   type (src/styles/tokens.css: Ink words on White, the one blue for links and the action,
   Brume fills, Satoshi). Light only. Every pair is one tests/contraste.mjs already checks. */
@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  color-scheme: light;
  --c-ink: #101B29;
  --c-blue: #2B5CE6;
  --c-blue-hover: #2350CF;
  --c-slate: #636B78;
  --c-white: #FFFFFF;
  --c-brume: #F0F2F5;
  --c-line: rgba(16, 27, 41, 0.08);
  --mesure: 42rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font: 400 1.0625rem/1.65 'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--c-blue); text-underline-offset: 0.18em; }
a:hover { color: var(--c-blue-hover); }
a:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 4px; }

/* Header: the wordmark, the shop, the blog, the other language. */
.entete {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 72rem; margin: 0 auto; padding: 1rem 1rem;
  border-bottom: 1px solid var(--c-line);
}
.marque { color: var(--c-ink); font-weight: 900; font-size: 1.375rem; letter-spacing: -0.02em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.entete nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.entete nav a { color: var(--c-ink); font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.entete nav a:hover { color: var(--c-blue); }

main { max-width: 72rem; margin: 0 auto; padding: 0 1rem 3rem; }

/* An article: one readable column. */
.article, .index { max-width: var(--mesure); margin: 0 auto; }
.fil { margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--c-slate); }
.fil a { color: var(--c-slate); }
.type { display: inline-block; margin: 1.25rem 0 0; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--c-brume); color: var(--c-ink); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
h1 { font-weight: 900; font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0.75rem 0 0.5rem; }
.article > h1:first-child { margin-top: 2rem; }
.meta { color: var(--c-slate); font-size: 0.9375rem; margin: 0 0 1.5rem; }
.chapeau { font-size: 1.1875rem; color: var(--c-slate); margin: 0 0 2rem; }
.texte h2 { font-weight: 700; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em; margin: 2.5rem 0 0.75rem; scroll-margin-top: 1rem; }
.texte h3 { font-weight: 700; font-size: 1.1875rem; margin: 1.75rem 0 0.5rem; }
.texte p, .texte ul, .texte ol { margin: 0 0 1.1rem; }
.texte li { margin: 0.3rem 0; }
.texte strong { font-weight: 700; }

.sommaire { background: var(--c-brume); border-radius: 16px; padding: 1rem 1.25rem; margin: 0 0 2rem; }
.sommaire p { margin: 0 0 0.25rem; font-weight: 700; }
.sommaire ol { margin: 0; padding-left: 1.25rem; }
.sommaire li { margin: 0.2rem 0; }

.encadre { background: var(--c-brume); border-radius: 16px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.encadre p { margin: 0; }

.tableau { overflow-x: auto; margin: 1.5rem 0; border-radius: 16px; border: 1px solid var(--c-line); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9375rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--c-line); }
thead th { background: var(--c-brume); font-weight: 700; }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* The call to action: the shop. */
.appel { margin: 2.5rem 0 0; padding: 1.5rem; border-radius: 20px; background: var(--c-ink); color: var(--c-white); }
.appel p { margin: 0 0 1rem; font-size: 1.0625rem; }
.bouton { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; background: var(--c-blue); color: var(--c-white); font-weight: 700; text-decoration: none; }
.bouton:hover { background: var(--c-blue-hover); color: var(--c-white); }
.appel .bouton:focus-visible { outline-color: var(--c-white); }

/* Cards: the index and « Read next ». */
.cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.carte a { display: block; height: 100%; padding: 1.25rem; border-radius: 20px; background: var(--c-brume); color: var(--c-ink); text-decoration: none; }
.carte a:hover .titre { color: var(--c-blue); }
.carte .type { margin: 0 0 0.6rem; background: var(--c-white); }
.carte .titre { display: block; font-weight: 700; font-size: 1.1875rem; line-height: 1.3; margin: 0 0 0.4rem; }
.carte .resume { display: block; color: var(--c-slate); font-size: 0.9375rem; }
.voisins { max-width: var(--mesure); margin: 3rem auto 0; }
.voisins h2 { font-size: 1.375rem; margin: 0 0 1rem; }
@media (min-width: 48rem) {
  .index .cartes { grid-template-columns: 1fr 1fr; }
}

.pied { max-width: 72rem; margin: 3rem auto 0; padding: 2rem 1rem 2rem; border-top: 1px solid var(--c-line); color: var(--c-slate); font-size: 0.9375rem; }
.colonnes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.colonnes p { margin: 0 0 0.25rem; color: var(--c-ink); font-weight: 700; }
.colonnes ul { list-style: none; margin: 0; padding: 0; }
.pied a { color: var(--c-slate); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; line-height: 1.35; }
.pied a:hover { color: var(--c-blue); text-decoration: underline; }
.copyright { margin: 1.5rem 0 0; font-size: 0.875rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
