/* site.css — poétique, légèrement texturé, lisible */
:root{
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 780px;

  --text: #1f2328;
  --muted: rgba(31,35,40,.70);
  --border: rgba(31,35,40,.14);

  --card: rgba(255,255,255,.72);
  --shadow: 0 10px 28px rgba(0,0,0,.10);

  /* valeurs par défaut (surchargées par les thèmes) */
  --bg0: #fbfaf7;
  --bg1: #f1efe9;
  --accent: #5F8F9E;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  /* Fond légèrement texturé (sans image externe) */
  background:
    radial-gradient(1200px 900px at 18% 10%, rgba(255,255,255,.70) 0%, transparent 60%),
    radial-gradient(1100px 820px at 86% 14%, rgba(255,255,255,.45) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

main, header, article{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

header{
  padding-top: 44px;
  padding-bottom: 16px;
  position: relative;
}
header h1{
  margin: 0 0 8px 0;
  letter-spacing: .2px;
  font-weight: 650;
}
.meta{ opacity:.75; font-size:.95rem; }

/* Petite ligne “poétique” sous le header, teintée par thème */
.theme-carillons header::after,
.theme-pyramides header::after{
  content:"";
  display:block;
  height: 2px;
  width: min(520px, 80%);
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .55;
  border-radius: 999px;
}

article{
  margin-top: 18px;
  margin-bottom: 54px;
  line-height: 1.7;
}
article > * + *{ margin-top: 1.1em; }

/* Encarts doux si tu en ajoutes (optionnel) */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

/* Images “pause contemplative” */
article img{
  display:block;
  margin: 26px auto;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Titres de section */
h2{
  margin-top: 48px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Liste d’index (pages 03 et 05) */
ul.list{ padding-left: 18px; }
ul.list li{ margin: .35rem 0; }

/* Pills buttons */
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:999px;
  text-decoration:none;
  background: rgba(255,255,255,.55);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.pill:hover{ text-decoration: underline; }
.pill.disabled{
  opacity:.55;
  border-style:dashed;
  box-shadow:none;
  pointer-events:none;
}

/* Bloc navigation bas d’article */
.nextnav{
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid var(--border);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.nextnav .label{ opacity:.75; margin-right:2px; }

/* Lueur poétique sur le bouton du thème (option) */
.pill.theme-link{
  position: relative;
  overflow: hidden;
}
.pill.theme-link::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity:.18;
  animation: slowPulse 9s ease-in-out infinite;
}
@keyframes slowPulse{
  0%,100%{ transform: scale(0.9); opacity:.14; }
  50%{ transform: scale(1.05); opacity:.22; }
}

/* Thème Carillons : air / vibration */
.theme-carillons{
  --bg0: #FBFAF6;
  --bg1: #EEF4F6;
  --accent: #5F8F9E;
  --card: rgba(255,255,255,.75);
}

/* Thème Pyramides : terre / relief */
.theme-pyramides{
  --bg0: #F6F1EA;
  --bg1: #EFE7DD;
  --accent: #B98A5A;
  --card: rgba(255,255,255,.70);
}
