/* ---------------------------------------------------------
   BASE
--------------------------------------------------------- */

html, body {
  margin: 0;
  padding: 0;
  font-family: "Georgia", serif;
  background: #111;
  color: #eee;
}

body.lecture {
  font-size: 1.2rem;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.minimal {
  backdrop-filter: none;
  background: rgba(0,0,0,0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.site-header .brand {
  font-size: 1.4rem;
  font-weight: bold;
  color: #f2f2f2;
  text-decoration: none;
}

.nav a {
  margin-left: 20px;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 1rem;
}

.nav a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 160px 20px 60px;
  background: linear-gradient(to bottom, #000 0%, #111 100%);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero .tagline {
  font-size: 1.3rem;
  color: #bbb;
}

/* ---------------------------------------------------------
   CONTENT
--------------------------------------------------------- */

.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.content h2 {
  margin-top: 40px;
  font-size: 1.8rem;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

/* ---------------------------------------------------------
   CARDS (Index)
--------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #222;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  /* Alignement parfait des boutons */
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.card h3 {
  margin-top: 10px;
  font-size: 1.4rem;
}

.card p {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Couleurs de cadre par volume */
.card.v1 {
  border: 1px solid #5a2a2a;
  background: rgba(90, 42, 42, 0.08); /* rouge sombre très léger */
}

.card.v2 {
  border: 1px solid #2a5a2a;
  background: rgba(42, 90, 42, 0.08); /* vert sombre très léger */
}

.card.v3 {
  border: 1px solid #2a2a5a;
  background: rgba(42, 42, 90, 0.08); /* bleu sombre très léger */
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.btn, .cta.primary {
  display: inline-block;
  padding: 10px 20px;
  background: #444;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
  margin-top: auto; /* Aligne les boutons en bas des cartes */
}

.btn:hover, .cta.primary:hover {
  background: #666;
}

/* ---------------------------------------------------------
   CHAPTER LIST
--------------------------------------------------------- */

.chapter-list {
  list-style: none;
  padding: 0;
}

.chapter-list li {
  margin: 8px 0;
}

.chapter-list a {
  color: #ddd;
  text-decoration: none;
}

.chapter-list a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: #777;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   COVER IMAGES
--------------------------------------------------------- */

.cover-small {
  width: 55%;
  max-width: 150px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 8px;
}

.cover-large {
  width: 100%;
  max-width: 160px;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* ---------------------------------------------------------
   COLOR THEMES PER VOLUME
--------------------------------------------------------- */

body.v1 .hero { background: linear-gradient(to bottom, #1a1a1a, #111); }
body.v2 .hero { background: linear-gradient(to bottom, #1a1414, #110000); }
body.v3 .hero { background: linear-gradient(to bottom, #14141a, #0d0d11); }

/* ---------------------------------------------------------
   PICTURE PORTRAIT
--------------------------------------------------------- */

.portrait {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background-color: #eee;
  border-radius: 50%;
  margin: 15px auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

