/* ====== Base ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* fond entier */
html {
  background-color: #f4f9db;
}

body {
  font-family: "Roboto Flex", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  background-color: #f4f9db;
  color: #000; /* texte noir lisible */
}

/* Liens */
a { color: #745fc6; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Conteneur */
.container {
  max-width: 72ch;
  padding: 1.5rem 1rem;
  margin: 0 auto;
}

/* ====== En-tête ====== */
.site-header {
  background-color: #f4f9db;
  text-align: left;
}
.kicker {
  margin: 0;
  font-weight: 700;
  font-size: 1.75rem;
  color: #745fc6;
}
.headline {
  margin: 0.25rem 0 0.5rem;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  color: #745fc6;
}
.strapline { margin: 0; opacity: .9; }

/* ====== Navigation ====== */
.nav-cats {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .5rem 1rem;
  margin: 0 auto 1rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
  max-width: 72ch;
}
.nav-cats a { font-weight: 600; }

/* ====== Intro ====== */
.intro { margin: 1rem 0 1.25rem; }
.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.bylines .toc-item { margin: .35rem 0; }

/* ====== Titres de section ====== */
.section-title {
  margin: 2rem 0 0.75rem;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  color: #745fc6;
}

/* ====== Liste façon “journal” ====== */
.entry-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

/* colonnes responsives */
.newspaper {
  column-count: 1;
  column-gap: 2rem;
}
@media (min-width: 720px) {
  .newspaper { column-count: 2; }
}
@media (min-width: 1100px) {
  .newspaper { column-count: 3; }
}

/* style des entrées */
.entry {
  break-inside: avoid-column;
  padding: .6rem 0 .8rem;
  border-top: 1px solid rgba(0,0,0,.08);
}
.entry:first-child { border-top: 0; }
.entry > a { font-weight: 700; display: inline-block; }
.entry .author {
  display: block;
  font-size: .95rem;
  opacity: .8;
  margin-top: .2rem;
}

/* ====== Pied ====== */
.tail .toc-item { margin: .4rem 0; }

/* ====== Texte long (si besoin) ====== */
.text p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 1rem 0;
  max-width: 65ch;
}

/* ========================================================= */
/* ====== Animation : cercles concentriques 🌀 ====== */
/* ========================================================= */

.bg-waves {
  position: fixed;
  inset: 0;
  z-index: -1;               /* derrière tout le contenu */
  display: grid;
  place-items: center;
  pointer-events: none;      /* clics ignorés */
  overflow: hidden;
  background: #f4f9db;       /* même couleur que le fond */
}

/* chaque “ring” = un cercle */
.bg-waves .ring {
  position: absolute;
  width: 30vmin;
  height: 30vmin;
  border-radius: 50%;
  border: 2px solid rgba(116, 95, 198, 0.4); /* violet transparent */
  animation: ripple 6s ease-in-out infinite;
  transform-origin: center;
  filter: blur(0.2px);
}

/* tailles différentes pour l’effet de profondeur */
.bg-waves .ring:nth-child(1) { animation-delay: 0s; }
.bg-waves .ring:nth-child(2) { animation-delay: 0.8s; width: 40vmin; height: 40vmin; }
.bg-waves .ring:nth-child(3) { animation-delay: 1.6s; width: 52vmin; height: 52vmin; }
.bg-waves .ring:nth-child(4) { animation-delay: 2.4s; width: 66vmin; height: 66vmin; }
.bg-waves .ring:nth-child(5) { animation-delay: 3.2s; width: 82vmin; height: 82vmin; }

/* animation des cercles */
@keyframes ripple {
  0%   { transform: scale(0.92); opacity: 0.55; }
  50%  { transform: scale(1.04); opacity: 0.30; }
  100% { transform: scale(0.92); opacity: 0.55; }
}

/* accessibilité : moins d’animation si préférences activées */
@media (prefers-reduced-motion: reduce) {
  .bg-waves .ring { animation: none; opacity: 0.25; }
}
