/* ============================================================
   QUI A TUÉ MON PÈRE — Édouard Louis
   Podcast Littéraire — borisehret.ch
   Palette inspirée de l'illustration aquarelle :
   - Bleu-gris ardoise profond : #2c3e50
   - Gris bleuté doux : #4a6274
   - Beige chaud (lumière aquarelle) : #e8dcc8
   - Brun-ocre (fauteuil) : #8b6f47
   - Blanc cassé : #f5f0e8
   - Accent rouge-brique : #8b3a3a
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:       #1e2a35;
  --mid:        #2c3e50;
  --slate:      #4a6274;
  --beige:      #e8dcc8;
  --warm-white: #f5f0e8;
  --ocre:       #8b6f47;
  --brick:      #8b3a3a;
  --text:       #1e2a35;
  --text-light: #f5f0e8;
  --accent:     #8b3a3a;
  --nav-h:      52px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--warm-white);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background-color: var(--dark);
  color: var(--text-light);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
}

.header-brand .site-name {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #aab8c2;
}

.header-brand .separator {
  color: #4a6274;
  font-weight: 300;
}

.header-brand .podcast-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #aab8c2;
  letter-spacing: 0.04em;
}

/* ---- Desktop Nav ---- */
nav.desktop-nav {
  display: flex;
  gap: 0.3rem;
}

nav.desktop-nav a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-light);
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}

nav.desktop-nav a:hover {
  background-color: var(--slate);
}

nav.desktop-nav a.active {
  background-color: var(--brick);
  color: #fff;
}

/* ---- Hamburger (mobile only) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- Mobile dropdown menu ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background-color: var(--dark);
  z-index: 999;
  flex-direction: column;
  padding: 0.5rem 0 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-light);
  padding: 0.85rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background-color: var(--slate);
}

.mobile-menu a.active {
  background-color: var(--brick);
  color: #fff;
}

/* ============================================================
   RESPONSIVE BREAKPOINT
   ============================================================ */
@media (max-width: 767px) {
  nav.desktop-nav { display: none; }
  .hamburger { display: flex; }
}

@media (min-width: 768px) {
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background-color: var(--dark);
  color: #aab8c2;
  text-align: center;
  padding: 1.2rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-top: 4rem;
}

footer a {
  color: #aab8c2;
  text-decoration: none;
}

footer a:hover {
  color: var(--beige);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 2.5rem 0;
}

/* ============================================================
   PAGE HERO (Podcast page)
   ============================================================ */
.hero {
  background-color: var(--mid);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.hero .author {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #aab8c2;
  margin-bottom: 0.6rem;
}

.hero .subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: #c8d4db;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   ILLUSTRATION
   ============================================================ */
.illustration-wrap {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark);
}

.illustration-wrap img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ============================================================
   AUDIO PLAYER
   ============================================================ */
.audio-section {
  background: linear-gradient(135deg, var(--mid) 0%, var(--dark) 100%);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  color: var(--text-light);
  margin: 2rem 0;
}

.audio-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.audio-section h2 .icon { font-size: 1.2rem; }

.audio-section .audio-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: #aab8c2;
  margin-bottom: 1.2rem;
  font-style: italic;
}

/* Custom audio player */
.custom-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
}

.custom-player button {
  background: var(--brick);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.1s;
}

.custom-player button:hover {
  background: #a04444;
  transform: scale(1.05);
}

.custom-player button svg {
  fill: white;
  width: 16px;
  height: 16px;
}

.player-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progress-bar-wrap {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  cursor: pointer;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brick);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.progress-bar-wrap input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  height: 20px;
  margin: 0;
}

.player-time {
  display: flex;
  justify-content: space-between;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  color: #aab8c2;
}

/* ============================================================
   CONTENT CARDS / SECTIONS
   ============================================================ */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 16px rgba(30,42,53,0.08);
  margin-bottom: 1.5rem;
}

.card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mid);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--beige);
}

.card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brick);
  margin: 1.2rem 0 0.5rem;
}

.card p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #3a4a55;
  margin-bottom: 0.7rem;
}

.card ul, .card ol {
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
}

.card li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #3a4a55;
  margin-bottom: 0.25rem;
}

/* ============================================================
   PAGE TITLE BANNER
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--mid) 0%, var(--slate) 100%);
  color: var(--text-light);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

.page-banner h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.page-banner .page-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: #c8d4db;
  font-weight: 300;
}

/* ============================================================
   TABLE (Fiche de lecture)
   ============================================================ */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 1rem 0;
}

.styled-table th {
  background-color: var(--mid);
  color: var(--text-light);
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}

.styled-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e0d8cc;
  vertical-align: top;
  line-height: 1.6;
}

.styled-table tr:nth-child(even) td {
  background-color: #f7f3ed;
}

/* ============================================================
   DOWNLOAD BUTTONS
   ============================================================ */
.download-section {
  background: var(--beige);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

.download-section h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--mid);
  margin-bottom: 1rem;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--mid);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-download:hover {
  background-color: var(--brick);
  transform: translateY(-1px);
}

.btn-download svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   VIDEO PAGE
   ============================================================ */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.infographic-wrap {
  margin-top: 2rem;
  text-align: center;
}

.infographic-wrap img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

/* ============================================================
   DISCUSSION PAGE
   ============================================================ */
.activity-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 16px rgba(30,42,53,0.08);
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--brick);
}

.activity-card.activity-green { border-left-color: #3a7a5a; }
.activity-card.activity-blue  { border-left-color: #2c5f8b; }
.activity-card.activity-ocre  { border-left-color: var(--ocre); }

.activity-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.activity-badge {
  background: var(--brick);
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.activity-card.activity-green .activity-badge { background: #3a7a5a; }
.activity-card.activity-blue  .activity-badge { background: #2c5f8b; }
.activity-card.activity-ocre  .activity-badge { background: var(--ocre); }

.activity-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mid);
}

.activity-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1rem 0 0.5rem;
}

.activity-card p, .activity-card li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #3a4a55;
}

.activity-card ul, .activity-card ol {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.activity-card li { margin-bottom: 0.3rem; }

.big-question {
  background: linear-gradient(135deg, var(--mid) 0%, var(--dark) 100%);
  color: var(--text-light);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  text-align: center;
}

.big-question .icon { font-size: 2rem; margin-bottom: 0.5rem; }

.big-question p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--beige);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.glossary-item {
  background: var(--beige);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.glossary-item strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  color: var(--brick);
  margin-bottom: 0.2rem;
}

.glossary-item span {
  font-size: 0.88rem;
  color: #4a5a65;
}

/* ============================================================
   AUTHOR PAGE
   ============================================================ */
.author-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.author-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.author-photo-wrap img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  display: block;
}

.author-name-tag {
  background: var(--mid);
  color: var(--text-light);
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 0 0 10px 10px;
  margin-top: -4px;
}

.author-name-tag h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.author-name-tag p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  color: #aab8c2;
  margin-top: 0.2rem;
}

.keywords-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.keyword-tag {
  background: var(--beige);
  color: var(--mid);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #d4c8b4;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--beige);
}

.timeline li {
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.65;
  color: #3a4a55;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--brick);
  border-radius: 50%;
  border: 2px solid var(--warm-white);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.book-card {
  background: var(--beige);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--brick);
}

.book-card .book-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 0.2rem;
}

.book-card .book-year {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  color: var(--brick);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.book-card p {
  font-size: 0.88rem;
  color: #4a5a65;
  line-height: 1.55;
}

/* ============================================================
   INTRO TEXT (Podcast page)
   ============================================================ */
.intro-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a4a55;
  max-width: 750px;
  margin: 0 auto;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.theme-card {
  background: var(--beige);
  border-radius: 10px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  border-top: 4px solid var(--brick);
}

.theme-card .theme-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.theme-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

.theme-card p {
  font-size: 0.88rem;
  color: #4a5a65;
  line-height: 1.55;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .author-layout {
    grid-template-columns: 1fr;
  }
  .author-photo-wrap {
    position: static;
    max-width: 260px;
    margin: 0 auto;
  }
  .card, .activity-card {
    padding: 1.5rem 1.2rem;
  }
  .audio-section {
    padding: 1.5rem 1.2rem;
  }
  .download-buttons {
    flex-direction: column;
  }
  .btn-download {
    width: 100%;
    justify-content: center;
  }
  .big-question {
    padding: 1.5rem 1.2rem;
  }
  .big-question p {
    font-size: 1.1rem;
  }
  .hero { padding: 2rem 1rem 1.5rem; }
  .page-banner { padding: 1.8rem 1rem 1.5rem; }
}
