* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  background-color: #d56161;
  color: #0d2058;
  line-height: 1.6;
}

header {
  background: #c70000;
  color: rgb(237, 203, 203);
  padding: 20px;
}

header h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

nav a {
  color: rgb(255, 106, 0);
  text-decoration: none;
  margin-right: 15px;
  font-size: 0.95rem;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 60px;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
}

p {
  margin-bottom: 15px;
}

img {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border: 1px solid #ccc;
}

/* Respect du ratio 43x51 */
.image-ratio {
  aspect-ratio: 43 / 51;
  object-fit: cover;
}

.caption {
  font-size: 0.85rem;
  color: #3f0000;
}

footer {
  text-align: center;
  padding: 30px;
  font-size: 0.8rem;
  color: #8d0000;
}
body.dark {
  background-color: #000;
  color: #f5f5f5;
}

body.dark header {
  background-color: #550707;
  border-bottom: 1px solid #444;
}

body.dark nav a {
  color: #f5f5f5;
}

body.dark nav a:hover {
  color: #aaa;
}

body.dark footer {
  color: #aaa;
}
.small-text {
  font-size: 0.75rem; /* Taille plus petite */
  line-height: 1.4;    /* Espacement serré */
  color: #555;         /* Couleur un peu plus discrète */
  font-style: italic;  /* Optionnel : pour le différencier du reste */
  margin-top: -10px;   /* Pour le rapprocher du titre ou de l'image */
  margin-bottom: 20px;
}

/* Si tu es sur la page interpretation (mode sombre), 
   on change la couleur pour qu'il reste lisible */
body.dark .small-text {
  color: #bbb;
}

.image-ratio {
  aspect-ratio: 43 / 51;
  object-fit: cover;
  width: 100%; /* Ajoute ceci pour être sûr que l'image prend toute la largeur disponible */
  display: block; /* Aide à éviter les espaces vides indésirables */
  margin: 20px 0;
}