@charset "UTF-8";
/* CSS Document */

/* === RESPONSIVE.CSS - Mobile uniquement === */
/* === CSS MOBILE VERSION DÉDIÉE === */

/* Par défaut, masquer la version mobile */
.mobile-version { 
  display: none !important; 
}

/* Sur mobile, masquer desktop et afficher mobile */
@media (max-width: 768px) {
  .desktop-version { display: none !important; }
  .mobile-version { display: block !important; }
}

.mobile-version {
  font-family: 'Grotesque MT Std', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.mobile-version header {
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.mobile-version header img {
  max-width: 80%;
  height: auto;
}

.mobile-version main {
  padding: 1rem;
}

/* === LISTE DES PHILOSOPHES MOBILE === */
.mobile-philosophers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-philosopher {
  width: 100%;
}

.mobile-philosopher-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  background: #f9f9f9;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-philosopher-trigger:hover {
  background: #f0f0f0;
}

.mobile-philosopher-trigger img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mobile-philosopher-trigger span {
  font-weight: bold;
  color: #333;
}

/* === CONVERSATION MOBILE === */
.mobile-conversation {
  animation: slideIn 0.3s ease;
}

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

/* Philosophe actif en grand */
.mobile-active-philosopher {
  text-align: center;
  padding: 2rem 1rem;
  background: none;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.mobile-active-philosopher img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: rotate(180deg);
}

#maieuthon-instruction-mobile {
  border: none;
  background-color: #000;
  color: #fff;
}

.mobile-active-philosopher h2 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: #333;
  font-weight: bold;
}

.mobile-greeting {
  font-style: italic;
  color: #666;
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}

/* === HISTORIQUE Q/A MOBILE === */
.mobile-qa-history {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.mobile-qa-pair {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-qa-pair:last-child {
  margin-bottom: 0;
}

.mobile-question {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.mobile-answer {
  color: #555;
  font-style: italic;
  line-height: 1.5;
}

.mobile-answer.loading {
  opacity: 0.7;
  color: #888;
}

/* === FORMULAIRE MOBILE === */
.mobile-qa-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-qa-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px; /* Évite zoom iOS */
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
}

.mobile-qa-form textarea:focus {
  outline: none;
  border-color: #0066cc;
}

.mobile-qa-form button {
  padding: 1rem 2rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-qa-form button:hover {
  background: #555;
}

/* === BOUTON RETOUR === */
.mobile-back-button {
  width: 100%;
  padding: 1rem;
  background: transparent;
  color: #666;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-back-button:hover {
  background: #f9f9f9;
  color: #333;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 400px) {
  .mobile-version main {
    padding: 0.5rem;
  }
  
  .mobile-active-philosopher {
    padding: 1.5rem 0.5rem;
  }
  
  .mobile-active-philosopher h2 {
    font-size: 1.7rem;
  }
  
  .mobile-active-philosopher {
    padding: 0.4em;
  }
  
  .mobile-active-philosopher img {
    width: 100px;
    height: 100px;
  }
}

/* Modal responsive */
@media (max-width: 768px) {
  #maieuthon-result-modal {
    padding: 10px;
  }
  
  #maieuthon-result-modal div {
    padding: 20px;
  }
  
  #maieuthon-result-modal div h2 {
    font-size: 24px;
  }
  
  #maieuthon-result-modal div > div:first-of-type {
    font-size: 48px;
  }
  
  #maieuthon-details {
    flex-direction: column;
  }
  
  #maieuthon-details > div {
    width: 100%;
  }
  
  #maieuthon-replay-btn {
    width: 100%;
  }
}

/* === ANIMATIONS DÉSACTIVÉES SI DEMANDÉ === */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}