/* ==========================================================================
   ROMANZ — Le Livre Interactif des 13 Siècles
   Système de Design Éditorial & Palette Fauve Matisse
   ========================================================================== */

:root {
  /* Palette Fauve Henri Matisse */
  --matisse-black: #121316;
  --matisse-red: #d9383a;
  --matisse-orange: #ea580c;
  --matisse-yellow: #f59e0b;
  --matisse-gold: #d97706;
  --matisse-green: #0d9488;
  --matisse-blue: #2563eb;
  --matisse-purple: #7c3aed;
  --matisse-pink: #db2777;
  --matisse-terracotta: #c2410c;
  --matisse-turquoise: #0891b2;
  --matisse-parchment: #fcf9f2;
  --matisse-cream: #f7f3e8;

  /* Thème Matisse (Clair / Parchemin Royal) */
  --bg-app: #f5f0e4;
  --bg-sidebar: #eae3d2;
  --bg-card: #ffffff;
  --bg-card-subtle: #faf7ef;
  --bg-card-hover: #fdfbf7;
  --text-primary: #1e1e24;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --border-color: #e2d9c5;
  --border-strong: #c8beaa;
  
  --accent-gold: #b45309;
  --accent-red: #dc2626;
  --accent-blue: #1d4ed8;
  --accent-emerald: #047857;
  
  --shadow-sm: 0 1px 3px rgba(40, 30, 20, 0.08);
  --shadow-md: 0 4px 12px rgba(40, 30, 20, 0.10);
  --shadow-lg: 0 12px 28px rgba(40, 30, 20, 0.14);
  --shadow-card: 0 2px 8px rgba(40, 30, 20, 0.06);

  --font-title: 'Cinzel', serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-prose: 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --sidebar-width: 320px;
  --header-height: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   THÈME NUIT VELOURS & OR (Dark Mode)
   ========================================================================== */
[data-theme="nuit"] {
  --bg-app: #0d0f14;
  --bg-sidebar: #131720;
  --bg-card: #181d28;
  --bg-card-subtle: #1e2433;
  --bg-card-hover: #232b3d;
  --text-primary: #f3f4f6;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #2a3449;
  --border-strong: #3b4863;

  --accent-gold: #fbbf24;
  --accent-red: #f87171;
  --accent-blue: #60a5fa;
  --accent-emerald: #34d399;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   RESET & STRUCTURE DE BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.book-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--matisse-red), var(--matisse-orange));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 3px 8px rgba(217, 56, 58, 0.35);
  transition: var(--transition);
}

.book-badge:hover {
  transform: rotate(-4deg) scale(1.05);
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-red);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Barre de recherche instantanée */
.header-search-container {
  flex: 1;
  max-width: 580px;
  margin: 0 1.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.95rem;
  opacity: 0.7;
  pointer-events: none;
}

#global-search-input {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: var(--transition);
}

#global-search-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  display: none;
  padding: 4px;
}

.btn-clear-search.visible {
  display: block;
}

/* Boutons de contrôle */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-ctrl {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-ctrl:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-pill-prolific {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.16));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-pill-prolific.active {
  background: linear-gradient(135deg, var(--matisse-yellow), var(--matisse-orange));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}

.btn-pill-exegese {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.18));
  border-color: #6366f1;
  color: #4f46e5;
  font-weight: 600;
}

[data-theme="nuit"] .btn-pill-exegese {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.28));
  border-color: #a78bfa;
  color: #ddd6fe;
}

.btn-pill-exegese:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.btn-pill-foucault {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(16, 185, 129, 0.18));
  border-color: #0d9488;
  color: #0f766e;
  font-weight: 600;
}

[data-theme="nuit"] .btn-pill-foucault {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(16, 185, 129, 0.28));
  border-color: #2dd4bf;
  color: #5eead4;
}

.btn-pill-foucault:hover {
  background: linear-gradient(135deg, #0d9488, #059669);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.theme-icon-sun { display: inline; }
.theme-icon-moon { display: none; }
[data-theme="nuit"] .theme-icon-sun { display: none; }
[data-theme="nuit"] .theme-icon-moon { display: inline; }

.font-size-ctrls {
  display: flex;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.btn-mini {
  padding: 0 8px;
  height: 36px;
  border: none;
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-mini:hover {
  background: var(--bg-card-hover);
}

.btn-mini:first-child {
  border-right: 1px solid var(--border-color);
}

/* ==========================================================================
   DISPOSITION PRINCIPALE DU LIVRE (SIDEBAR + MAIN)
   ========================================================================= */
.book-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - var(--header-height));
}

/* Volet Chronologique Latéral */
.century-timeline-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  user-select: none;
}

.sidebar-header {
  padding: 1.25rem 1rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.65rem;
}

.century-era-filter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--bg-card);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.era-tab {
  background: none;
  border: none;
  padding: 4px 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.era-tab.active {
  background: var(--matisse-red);
  color: #ffffff;
}

/* Liste des Siècles dans la Sidebar */
.century-nav-list {
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.century-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  background: var(--bg-card);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.century-nav-item:hover {
  border-color: var(--accent-red);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.century-nav-item.active {
  background: linear-gradient(135deg, var(--matisse-red), var(--matisse-orange));
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(217, 56, 58, 0.35);
}

.century-nav-item.active .century-item-roman,
.century-nav-item.active .century-item-subtitle,
.century-nav-item.active .century-item-badge {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4);
}

.century-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
}

.century-item-roman {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.05rem;
  min-width: 44px;
  color: var(--accent-red);
}

.century-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.century-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.century-item-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.century-item-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SCÈNE CENTRALE DE LECTURE (READING STAGE)
   ========================================================================== */
.reading-stage {
  flex: 1;
  padding: 2rem 3rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* En-tête de la page ouverte */
.century-banner {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 2px solid var(--border-color);
}

.century-tag-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.century-roman-badge {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--matisse-red), var(--matisse-orange));
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 8px rgba(217, 56, 58, 0.25);
}

.century-period-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.century-author-count {
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.century-main-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

/* Image Héroïque Enluminure / Estampe */
.century-hero-visual {
  margin-top: 1.25rem;
}

.hero-image-frame {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image-frame img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.hero-caption {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* ==========================================================================
   NAVIGATION PAR ONGLETS (LES 5 PILIERS)
   ========================================================================== */
.century-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.century-tabs-bar::-webkit-scrollbar {
  display: none;
}

.century-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.century-tab-btn:hover {
  border-color: var(--accent-red);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.century-tab-btn.active {
  background: var(--matisse-red);
  color: #ffffff;
  border-color: var(--matisse-red);
  box-shadow: 0 4px 14px rgba(217, 56, 58, 0.3);
}

.century-tab-btn.btn-tab-highlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.2));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.century-tab-btn.btn-tab-highlight.active {
  background: linear-gradient(135deg, var(--matisse-yellow), var(--matisse-orange));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

/* Panneaux d'onglets */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pillar-header {
  margin-bottom: 1.75rem;
}

.pillar-header h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.pillar-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.flex-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.bilingual-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  user-select: none;
}

/* ==========================================================================
   CONTENUS ÉDITORIAUX & TYPOGRAPHIE
   ========================================================================== */
.rich-prose {
  font-family: var(--font-prose);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.rich-prose p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.rich-prose p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--accent-red);
  font-weight: 800;
}

/* ==========================================================================
   GRILLE SANTÉ & CLASSES SOCIALES
   ========================================================================== */
.social-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.class-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.class-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.class-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--border-color);
}

.class-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.class-noblesse .class-icon-badge {
  background: rgba(220, 38, 38, 0.12);
  color: var(--matisse-red);
}
.class-bourgeoisie .class-icon-badge {
  background: rgba(37, 99, 235, 0.12);
  color: var(--matisse-blue);
}
.class-paysans .class-icon-badge {
  background: rgba(13, 148, 136, 0.12);
  color: var(--matisse-green);
}
.class-serfs .class-icon-badge {
  background: rgba(180, 83, 9, 0.12);
  color: var(--matisse-gold);
}

.class-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.class-card-body {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
}

.class-card-body strong {
  color: var(--accent-red);
}

/* ==========================================================================
   MODES DE PENSÉE & MENTALITÉS
   ========================================================================== */
.pensee-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pensee-block {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.pensee-block-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pensee-classes-accordion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pensee-subcard {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.pensee-subcard h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   BIBLIOTHÈQUE DES AUTEURS & EXTRAITS BILINGUES
   ========================================================================== */
.authors-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.author-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.author-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg);
}

.author-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-red);
}

.author-meta-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.author-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.author-pill.pill-lm {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(79, 70, 229, 0.18));
  border-color: #3b82f6;
  color: #1d4ed8;
  font-weight: 700;
}

[data-theme="nuit"] .author-pill.pill-lm {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(79, 70, 229, 0.3));
  border-color: #60a5fa;
  color: #93c5fd;
}

/* Fiche signalétique / DL */
.author-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  background: var(--bg-card-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.author-dl dt {
  font-weight: 700;
  color: var(--accent-gold);
}

.author-dl dd {
  color: var(--text-primary);
}

/* Zone Extraits Bilingues */
.bilingual-extract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.bilingual-single {
  grid-template-columns: 1fr;
}

.extract-column {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.extract-column-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.original-box {
  border-left: 4px solid var(--matisse-red);
  font-family: var(--font-prose);
  font-size: 1.15rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text-primary);
  font-style: italic;
}

.translation-box {
  border-left: 4px solid var(--matisse-green);
  font-family: var(--font-prose);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Analyse critique */
.author-analysis-box {
  background: rgba(37, 99, 235, 0.05);
  border-left: 4px solid var(--accent-blue);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.author-analysis-box h5 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   LE TRI DES GÉANTS PROLIFIQUES (LES 3 CERCLES)
   ========================================================================== */
.prolific-triad-grid {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.prolific-master-card {
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.prolific-header-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.prolific-volume-note {
  font-size: 0.95rem;
  color: var(--accent-gold);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.triad-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.triad-item-card {
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.triad-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.triad-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  display: inline-block;
  align-self: flex-start;
}

.badge-monument {
  background: rgba(217, 119, 6, 0.15);
  color: var(--matisse-gold);
  border: 1px solid var(--matisse-gold);
}

.badge-sismographe {
  background: rgba(13, 148, 136, 0.15);
  color: var(--matisse-green);
  border: 1px solid var(--matisse-green);
}

.badge-inattendu {
  background: rgba(124, 58, 237, 0.15);
  color: var(--matisse-purple);
  border: 1px solid var(--matisse-purple);
}

.triad-item-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.triad-item-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.triad-item-quote {
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary);
}

/* ==========================================================================
   NAVIGATION INFÉRIEURE DU LIVRE (PAGER)
   ========================================================================== */
.century-pager-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.btn-pager {
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.btn-pager:hover {
  background: var(--matisse-red);
  color: #ffffff;
  border-color: var(--matisse-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-pager:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pager-center-indicator {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   RÉSULTATS DE RECHERCHE
   ========================================================================== */
.search-results-section {
  margin-bottom: 2.5rem;
}

.search-results-section.hidden {
  display: none;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--border-color);
}

.search-results-header h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.search-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-red);
  color: #ffffff;
}

.search-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.search-result-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-result-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.search-card-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 0.4rem;
}

.search-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.search-card-snippet {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.search-highlight {
  background-color: rgba(245, 158, 11, 0.35);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* ==========================================================================
   PIED DE PAGE (FOOTER)
   ========================================================================== */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  border-top: 2px solid var(--border-color);
  background: var(--bg-card);
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-credit {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-meta a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 600;
}

.footer-meta a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.btn-link-action {
  background: none;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
}

.btn-link-action:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MODALE DE LECTURE PLEIN ÉCRAN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-red);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
}

.btn-close-modal {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: var(--matisse-red);
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ==========================================================================
   RESPONSIVE DESIGN (iPad & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
  }
  .reading-stage {
    padding: 1.5rem 2rem 3rem;
  }
  .triad-columns-grid {
    grid-template-columns: 1fr;
  }
  .bilingual-extract-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .book-container {
    flex-direction: column;
  }
  .century-timeline-sidebar {
    width: 100%;
    height: auto;
    max-height: 220px;
    position: relative;
    top: 0;
  }
  .century-nav-list {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
  }
  .century-nav-item {
    min-width: 160px;
  }
  .reading-stage {
    padding: 1.25rem 1rem 3rem;
  }
  .header-search-container {
    display: none;
  }
  .century-main-title {
    font-size: 1.65rem;
  }
  .century-tab-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   MODULE SPÉCIAL : EXÉGÈSE PROUST ESSAYISTE (ANTOINE COMPAGNON - COLLÈGE DE FRANCE)
   ========================================================================== */
.modal-card.modal-card-large {
  max-width: 1050px;
  width: 95vw;
  max-height: 90vh;
}

.modal-body {
  overflow-y: auto;
  padding: 1.5rem;
}

/* Bannière héroïque dans la modale d'exégèse */
.exegese-modal-hero {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.16));
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

[data-theme="nuit"] .exegese-modal-hero {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7), rgba(49, 46, 129, 0.6));
  border-color: rgba(167, 139, 250, 0.4);
}

.exegese-institution-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

[data-theme="nuit"] .exegese-institution-badge {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
}

.exegese-hero-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.exegese-hero-author {
  font-size: 0.95rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.exegese-hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Onglets internes à la modale */
.exegese-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.exegese-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.exegese-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-subtle);
}

.exegese-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.exegese-tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.exegese-tab-pane.active {
  display: block;
}

/* Grille des 12 conférences */
.cours-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.cours-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.cours-card:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  box-shadow: var(--shadow-md);
}

.cours-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.cours-num-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

[data-theme="nuit"] .cours-num-badge {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
}

.cours-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cours-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.cours-card-resume {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
}

/* Cartes des confrontations théoriques */
.confrontations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.confrontation-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.confrontation-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.confrontation-adversaire {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-red);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confrontation-lecon {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-left: 3px solid #6366f1;
  padding-left: 0.75rem;
  font-style: italic;
}

/* Fichiers & Liens multimédias */
.sources-links-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.external-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-media-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-cdf {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
}

.btn-cdf:hover {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-yt {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  color: #ffffff;
}

.btn-yt:hover {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.local-sources-list {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.local-sources-list h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
}

.local-source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.88rem;
}

.local-source-item:last-child {
  border-bottom: none;
}

/* Appel d'exégèse dans la fiche Proust du 20ème siècle */
.proust-exegese-callout {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.15));
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.proust-exegese-text h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #4f46e5;
  margin-bottom: 0.25rem;
}

[data-theme="nuit"] .proust-exegese-text h4 {
  color: #a78bfa;
}

.proust-exegese-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-open-exegese-direct {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-open-exegese-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Appel d'exégèse dans la fiche Simenon du 20ème siècle */
.simenon-exegese-callout {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(180, 83, 9, 0.18));
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.simenon-exegese-text h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #b45309;
  margin-bottom: 0.25rem;
}

[data-theme="nuit"] .simenon-exegese-text h4 {
  color: #fbbf24;
}

.simenon-exegese-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-open-simenon-direct {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-open-simenon-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
}

/* =========================================================================
   DOSSIER D'EXÉGÈSE MICHEL FOUCAULT & COLLÈGE DE FRANCE
   ========================================================================= */

.foucault-exegese-callout {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(16, 185, 129, 0.18));
  border: 1.5px solid rgba(13, 148, 136, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foucault-exegese-text h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #0f766e;
  margin-bottom: 0.25rem;
}

[data-theme="nuit"] .foucault-exegese-text h4 {
  color: #2dd4bf;
}

.foucault-exegese-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-open-foucault-direct {
  background: linear-gradient(135deg, #0d9488, #059669);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-open-foucault-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45);
}

/* Modal Hero Foucault */
.foucault-modal-hero {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14), rgba(5, 150, 105, 0.22));
  border: 1.5px solid rgba(13, 148, 136, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.foucault-hero-badge {
  display: inline-block;
  background: #0d9488;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Cartes des Épistémès */
.episteme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.episteme-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}

.episteme-card:hover {
  border-color: #0d9488;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.15);
  transform: translateY(-2px);
}

.episteme-epoch {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d9488;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

[data-theme="nuit"] .episteme-epoch {
  color: #2dd4bf;
}

.episteme-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.episteme-mecanismes {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Panopticon Callout */
.panopticon-box {
  background: var(--bg-card-subtle);
  border-left: 4px solid #0d9488;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

/* Conférenciers Cards */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.speaker-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.speaker-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.speaker-role {
  font-size: 0.8rem;
  color: #0d9488;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

[data-theme="nuit"] .speaker-role {
  color: #2dd4bf;
}

.speaker-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Timeline des Milestones de la Conférence */
.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.milestone-item:hover {
  background: var(--bg-card-hover);
  border-color: #0d9488;
}

.milestone-time-btn {
  background: #0d9488;
  color: #fff;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.milestone-time-btn:hover {
  background: #0f766e;
  transform: scale(1.05);
}

.milestone-info {
  flex: 1;
}

.milestone-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.milestone-speaker {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Transcription Interactive */
.transcript-viewer-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.transcript-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
}

.transcript-search-input {
  flex: 1;
  min-width: 220px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.transcript-speaker-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.speaker-pill-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.speaker-pill-btn.active, .speaker-pill-btn:hover {
  background: #0d9488;
  color: #fff;
  border-color: #0d9488;
}

.transcript-feed {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.transcript-segment {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.transcript-segment:hover {
  background: var(--bg-card-hover);
}

.segment-time-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d9488;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(13, 148, 136, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.segment-time-link:hover {
  background: #0d9488;
  color: #fff;
}

.segment-speaker-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #64748b;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  align-self: flex-start;
}

.speaker-fassin { background: #3b82f6; }
.speaker-surprenant { background: #8b5cf6; }
.speaker-irrera { background: #0d9488; }
.speaker-debat { background: #d97706; }

.segment-text {
  flex: 1;
  color: var(--text-primary);
}

.highlight-match {
  background: #fde047;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}


