:root{
  --bg: rgb(249, 242, 235);
  --card: rgb(240, 229, 219);
  --hover: rgba(241, 230, 218, 0.40);
  --border: rgba(0,0,0,0.14);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --text: #000;
  --text-soft: rgba(0,0,0,0.78);
}

*{ box-sizing: border-box; }

html, body { height: 100%; }

body{
  background-color: var(--bg);
  margin: 2vh;
  font-family: "Amiri", serif;
  font-size: 1.02em;
  color: var(--text);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Header */
header{
  text-align: center;
  margin-bottom: 0.5rem;
}

header h1{
  margin: 0;
  font-size: 2.4em;
  font-weight: 400;
}

.meta{
  margin: 0.1rem 0;
  font-size: 0.98em;
  color: var(--text-soft);
}

/* Sommaire */
.sommaire{
  width: min(92vw, 720px);
  text-align: center;
  place-content: center;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 1.2rem;
  overflow: visible;
  display: grid;
  padding: 1.1rem 1rem;
  background: rgba(255,255,255,0.30);
  box-shadow: var(--shadow);
}

ul.index{
  font-size: 1.45em;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

ul.index a,
ul.index a:visited{
  text-decoration: none;
  color: black;
  padding: 0.05rem 0.25rem;
  border-radius: 0.4rem;
}

ul.index a:hover{
  background-color: var(--hover);
  font-weight: 700;
}

/* Sections (cartes) */
section{
  width: min(92vw, 900px);
  background-color: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
}

section + section{
  margin-top: 0.2rem;
}

/* Titres */
section h2{
  text-align: center;
  font-weight: 700;
  font-size: 1.55em;
  margin-top: 0;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

/* Texte */
section p{
  margin-top: 0.2rem;
  margin-bottom: 0.85rem;
  line-height: 1.75;
  font-size: 1.02em;
}

.lead{
  font-size: 1.08em;
}

.hint{
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.92em;
  color: rgba(0,0,0,0.60);
}

.small{
  font-size: 0.95em;
  color: rgba(0,0,0,0.66);
}

/* Listes */
section ul{
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
}

section li{
  margin-bottom: 0.25rem;
  line-height: 1.65;
}

/* Liens */
a{
  color: black;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

a:hover{
  background-color: var(--hover);
  font-weight: 700;
}

.plain-list{
  list-style: none;
  padding: 0;
  margin: 0.3rem 0;
  text-align: left;
}

.plain-list li{
  margin-bottom: 0.55rem;
}

/* Callout */
.callout{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.32);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.callout-row{
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.icon{
  width: 28px;
  height: 28px;
  opacity: 0.85;
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

/* Bibliographie */
ul.biblio{
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.biblio li{
  margin-bottom: 0.6rem;
  line-height: 1.65;
  padding: 0.55rem 0.65rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Crédits */
.credits{
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(0,0,0,0.08);
}

.credits-row{
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.credits p{
  margin: 0.2rem 0;
}

/* Footer */
footer{
  width: min(92vw, 900px);
  text-align: center;
  margin: 0.2rem 0 1.4rem;
  color: rgba(0,0,0,0.70);
}
