:root {
  /* Palette néon/sombre premium */
  --main-bg: #0a0a12;
  --panel-bg: #161622;
  --accent: #6e44ff;
  --accent-hover: #8d6aff;
  --text-main: #f0f0ff;
  --text-secondary: #b0b0cc;
  --border: #2a2a3a;
  --success: #44ffaa;
  --warning: #ffbd44;
  --danger: #ff4477;
  
  /* Effets spéciaux */
  --glow: 0 0 15px rgba(110, 68, 255, 0.5);
  --soft-glow: 0 0 30px rgba(110, 68, 255, 0.2);
  --bg-blur: 8px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body {
  background: var(--main-bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(110, 68, 255, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255, 68, 119, 0.1) 0%, transparent 30%);
}
.language-badge {
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
  }
/* Ajouter à styles4.css */
#languageToggle { 
    margin-left: auto;
    transition: transform 0.3s;
}

.translation-note {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-top: 15px;
}
/* Ajouter à la fin du fichier */
#languageToggle {
    margin-right: 15px;
    font-size: 0.9rem;
}

.tool-button.active {
    color: var(--accent);
    transform: scale(1.1);
}
/* Layout Structure */
.app-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: 60px 1fr;
  height: 100vh;
}

/* Header Styles */
.app-header {
  grid-column: 1 / -1;
  background: rgba(10, 10, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), #ff44aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}
.input-color{border: none;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    padding: 3px;
    background: #6e44ff;}
.version-badge {
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  margin-left: 10px;
  color: white;
}

.tool-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-button:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* Sidebar Styles */
.sidebar {
  background: rgba(22, 22, 34, 0.8);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--panel-bg);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 3px;
}

.section-title {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 25px 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Controls */
.input-control {
  width: 100%;
  padding: 10px 15px;
  background: rgba(30, 30, 45, 0.6);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.input-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.input-group {
  
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.ref-input-group {
  display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  gap: 8px;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  transition: all 0.6s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn:hover::after {
  left: 100%;
}

.btn-icon {
  padding: 8px 12px;
}

.btn-icon i {
  margin-right: 5px;
}

.btn.active {
  background: var(--accent-hover);
  box-shadow: var(--glow);
  animation: pulse 1.5s infinite;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Content Area */
.content-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.status-indicator {
  font-size: 0.8rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Results Panel */
.results-panel, .detail-panel {
  background: rgba(22, 22, 34, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.results-panel:hover, .detail-panel:hover {
  box-shadow: var(--soft-glow);
}

.verse-results {
  height: calc(100vh - 230px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel-bg);
}

.verse-results::-webkit-scrollbar {
  width: 6px;
}

.verse-results::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 3px;
}

/* Verse Items */
.verse-result {
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(30, 30, 45, 0.5);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.verse-result:hover {
  background: rgba(110, 68, 255, 0.15);
  border-left-color: var(--accent);
  transform: translateX(5px);
}

.verse-result.active {
  background: rgba(110, 68, 255, 0.25);
  border-left-color: var(--success);
}

.verse-ref {
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.verse-text {
  color: var(--text-main);
  line-height: 1.5;
}

.chapter-header {
  color: var(--accent);
  margin: 15px 0 10px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.no-results {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Verse Detail Panel */
.verse-detail {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verse-detail-content {
  position: relative;
  padding: 30px;
  background: rgba(20, 20, 30, 0.7);
  border-radius: 10px;
  border: 1px solid var(--border);
  z-index: 1;
}

.verse-detail-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--danger));
}

#verseRef {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

#verseRef::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

#verseText {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-main);
    max-height: 15rem;
    overflow: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel-bg);
}

#verseText::-webkit-scrollbar {
  width: 6px;
}

#verseText::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 3px;
}
/* Background Styles */
.verse-detail::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(var(--bg-blur));
  z-index: 0;
  opacity: 0.8;
}

.background-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.background-thumb {
  width: 100%;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.background-thumb:hover {
  transform: scale(1.05);
  box-shadow: var(--glow);
}

.background-thumb.selected {
  border-color: var(--accent);
  box-shadow: var(--glow);
}

/* Style Controls */
.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.blur-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blur-control input {
  flex-grow: 1;
}

/* Light Mode */
.app-container.light-mode {
  --main-bg: #f5f7ff;
  --panel-bg: #ffffff;
  --text-main: #1a1a2e;
  --text-secondary: #4a4a6e;
  --border: #d6deff;
  background-image: 
    radial-gradient(circle at 20% 30%, #f0ebff 0%, #fafafa 30%);
}

.light-mode .sidebar{background:transparent;}
.light-mode .input-control{background:transparent;}

.light-mode .results-panel {
  background: rgba(255, 255, 255, 0.9);
    color:rgb(0 0 0 / 85%);
    }
.light-mode .app-header {
  background: rgba(255, 255, 255, 0.9);
    }
.light-mode .tool-button {
    color:#8264ee;
    }
.light-mode .status-indicator{color:#3872e0;}
.light-mode #verseRef{color:#3872e0;}
.light-mode .results-count{color:#3872e0;}
.light-mode .verse-result{background:#f5f5f5;}
.light-mode .detail-panel {
  background: rgba(255, 255, 255, 0.9);
    color:rgb(0 0 0 / 85%);
}.light-mode .verse-detail-content {
  background: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes highlight {
  0% { background-color: rgba(110, 68, 255, 0.3); }
  100% { background-color: transparent; }
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Interactive States */
#voiceBtn.listening {
  animation: pulse 1.5s infinite;
  background: var(--danger) !important;
}

.highlight-verse {
  animation: highlight 1.5s ease;
  border-left: 3px solid var(--accent) !important;
}

.scroll-sentinel {
  height: 20px;
  width: 100%;
}

/* Loader Styles */
#loader.light-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255); /* Fond clair semi-transparent */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s;color:#483d8b;
}

#loader .loader-spinner .light-mode {
  border: 5px solid rgba(110, 68, 255, 0.3);
  border-radius: 50%;
  border-top: 5px solid var(--accent);
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
/* Loader Styles */
#loader.dark-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a12; /* Fond clair semi-transparent */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  transition: opacity 0.5s;color:#483d8b;
}

#loader .loader-spinner .dark-mode {
  border: 5px solid #4f5966;
  border-radius: 50%;
  border-top: 5px solid #6e44ff;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
/* Projection Fallback */
.projection-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-area {
    grid-template-columns: 1fr;
  }
  
  .app-container {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .sidebar {
    order: 2;
    border-right: none;
    border-top: 1px solid var(--border);
  }
  
  .button-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .style-grid {
    grid-template-columns: 1fr;
  }
  
  .verse-detail-content {
    padding: 20px;
  }
  
  #verseRef {
    font-size: 1.5rem;
  }
  
  #verseText {
    font-size: 1rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

[aria-busy="true"] {
  cursor: progress;
}

[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Highlight for search results */
.highlight {
  background-color: rgba(255, 255, 0, 0.3);
  padding: 0 2px;
  border-radius: 2px;
}
:root {
    --voice-active: transparent;
}

body::after {
    content: '';
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--voice-active);
    transition: all 0.3s;
    z-index: 1000;
}

.listening {
    animation: pulse 1.5s infinite;
}
body::after {
    transition: opacity 0.5s ease-out; /* Ajoutez ceci */
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
/* Feedback visuel */
.btn-icon.listening {
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
    animation: pulse 1.5s infinite;
}

.success-feedback {
    background-color: #4CAF50 !important;
    transition: background-color 0.3s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.results-count {
    font-size: 0.8rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
}
.verse-navigation {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    z-index:3;
    justify-content:center;
}

.nav-button {
    padding: 8px 15px;
    /*background-color: var(--primary-color);*/
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.nav-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
/* Style pour le bouton de langue */
#languageToggle {
    margin-left: 10px;
    font-weight: bold;
}

/* Style pour la note de traduction */
.translation-note {
    font-style: italic;
    font-size: 0.8em;
    margin-top: 10px;
    opacity: 0.7;
    border-top: 1px dashed #ccc;
    padding-top: 5px;
}
/* Style pour l'indicateur de langue dans la projection */
.projection-lang-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
}



/* Texte du préloader */
.loader-text {
    color: #333; /* Couleur de texte sombre pour contraste */
    font-size: 1.2em;
    margin-top: 15px;
}

/* Version sombre - s'active quand darkMode=true */
.dark-mode .loader {
    background-color: rgba(0, 0, 0, 0.9); /* Fond sombre en mode nuit */
}

.dark-mode .loader-text { 
    color: #fff; /* Texte blanc en mode nuit */
}

:root {
       --loader-bg-light: rgba(255, 255, 255, 0.9);
       --loader-text-light: #333;
       --loader-spinner-color: #3498db;
       
       --loader-bg-dark: rgba(0, 0, 0, 0.9);
       --loader-text-dark: #fff;
   }
/* Style de base pour tous les inputs range */
input[type="range"] {
  -webkit-appearance: none; /* Désapparence par défaut */
  width: 100%;
  height: 8px;
  background: #8d6aff;
  border-radius: 10px;
  outline: none;
  margin: 10px 0;
}

/* Style pour le track (la barre de fond) */
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #8d6aff;
  border-radius: 10px;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #8d6aff;
  border-radius: 10px;
}

/* Style pour le thumb (le curseur) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #8d6aff;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #8d6aff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

/* Style pour le thumb au survol/actif */
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: #8d6aff;
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
  background: #8d6aff;
}

input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.15);
}

/* Style pour la partie remplie (à gauche du thumb) */
input[type="range"] {
  --range-fill: #8d6aff;
  --range-fill-dark: #8d6aff;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--range-fill) 0%, var(--range-fill) var(--fill-percent, 50%), #8d6aff var(--fill-percent, 50%), #8d6aff 100%);
}

/* Version pour le mode sombre */
.dark-mode input[type="range"] {
  background: #8d6aff;
}

.dark-mode input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--range-fill-dark) 0%, var(--range-fill-dark) var(--fill-percent, 50%), #8d6aff var(--fill-percent, 50%), #8d6aff 100%);
}

.dark-mode input[type="range"]::-moz-range-track {
  background: #8d6aff;
}

/* Style spécifique pour le contrôle du flou */
#bgBlurControl {
  margin-top: 15px;
}

/* Style pour la valeur affichée du range */
.range-value {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  margin-left: 10px;
  color: #333;
  font-size: 0.9em;
}

.dark-mode .range-value {
  color: #fff;
}

:root {
  --range-fill: #8d6aff;       /* Couleur remplissage (mode clair) */
  --range-fill-dark: #8d6aff;  /* Couleur remplissage (mode sombre) */
  --range-thumb-size: 20px;    /* Taille du curseur */
  --range-track-height: 8px;   /* Hauteur de la barre */
}
.translation-warning {
    font-size: 0.8em;
    color: #ff9800;
    font-style: italic;
    margin-top: 10px;
}
/* Style pour la recherche */
#bookSearch {
    margin-bottom: 10px;
    width: 100%;
}

/* Style pour les options filtrées */
#bookSelect option[style*="none"] {
    display: none !important;
}

/* Style pour la sélection automatique */
#bookSelect option:not([style*="none"]):hover {
    background-color: var(--primary-color);
    color: white;
}
#bookSearch {
    width: 98%;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.search-reset {
    position: absolute;
    right: 10px;
    top: 100px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.search-reset:hover {
    color: #333;
}
/* Ajoutez ces styles */
#drawingCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: none;
}

.scroll-controls {
    
    display: flex;
    gap: 8px;
    margin: 10px 0;
    position: absolute;
    top: 0;
    left: 30vmin;
    z-index: 2000;
}

.scroll-controls .btn {
    padding: 8px 12px;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
}


/*********/

/* ===== MODALS D'ÉTUDE ===== */
.study-modal .modal-content {
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

.study-section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(30, 30, 45, 0.3);
    border-radius: 8px;
}

.study-section h4 {
    color: var(--accent);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

/* Plan de lecture */
.reading-plan-day {
    padding: 10px;
    margin: 5px 0;
    border-left: 3px solid var(--accent);
    cursor: pointer;
    transition: all 0.2s;
}

.reading-plan-day:hover {
    background: rgba(110, 68, 255, 0.1);
    transform: translateX(5px);
}

.reading-plan-day.completed {
    border-left-color: var(--success);
    opacity: 0.8;
}

/* Index doctrinal */
.doctrine-topic {
    padding: 12px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.doctrine-verses {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Cartes */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.map-thumbnail {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.map-thumbnail:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.map-viewer .modal-content {
    width: 95vw;
    height: 95vh;
    padding: 0;
    background: #000;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#currentMapImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

/* Timeline */
.timeline-container {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    gap: 20px;
}

.timeline-event {
    min-width: 150px;
    padding: 10px;
    background: rgba(110, 68, 255, 0.1);
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
}

/* ===== OUTILS D'ÉTUDE ===== */
.plans-grid, .doctrine-topics, .theology-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.study-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.study-item:hover {
    background: rgba(110, 68, 255, 0.1);
    border-left-color: var(--accent);
    transform: translateX(5px);
}

.study-item h4 {
    margin: 0 0 5px 0;
    color: var(--text-main);
}

.study-item p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--accent);
}

.today-reading ul {
    margin: 10px 0 0 20px;
}

.today-reading li {
    margin-bottom: 5px;
    color: var(--text-main);
}

.daily-reading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reading-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reading-item:hover {
    background: rgba(110, 68, 255, 0.15);
}

.reading-item i {
    color: var(--accent);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.doctrine-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 5px 0;
}

.doctrine-verses-list, .category-verses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.verse-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.verse-item:hover {
    background: rgba(110, 68, 255, 0.15);
}

.theology-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(110, 68, 255, 0.1);
    border: 1px solid rgba(110, 68, 255, 0.3);
}

.theology-category:hover {
    background: rgba(110, 68, 255, 0.2);
}

.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Mode clair */
.light-mode .study-item {
    background: rgba(110, 68, 255, 0.05);
}

.light-mode .reading-item,
.light-mode .verse-item,
.light-mode .subcategory-item {
    background: rgba(110, 68, 255, 0.05);
}

.light-mode .reading-item:hover,
.light-mode .verse-item:hover {
    background: rgba(110, 68, 255, 0.15);
}