/* Styles pour le contenu Markdown dans les messages */
.markdown-content {
  line-height: 1.6;
  color: inherit;
}

.markdown-content p {
  margin-bottom: 0.75rem;
}

.markdown-content p:last-child {
  margin-bottom: 0;
}

/* Titres */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.markdown-content h1 { font-size: 1.5rem; }
.markdown-content h2 { font-size: 1.25rem; }
.markdown-content h3 { font-size: 1.1rem; }
.markdown-content h4 { font-size: 1rem; }

/* Listes */
.markdown-content ul,
.markdown-content ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content li {
  margin-bottom: 0.25rem;
}

/* Liens */
.markdown-content a {
  text-decoration: underline;
  opacity: 0.9;
}

.markdown-content a:hover {
  opacity: 1;
}

/* Code inline */
.markdown-content code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

/* Messages utilisateur - code sur fond sombre */
.bg-indigo-600 .markdown-content code {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Blocs de code */
.markdown-content pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.bg-indigo-600 .markdown-content pre {
  background-color: rgba(255, 255, 255, 0.15);
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.875rem;
}

/* Citations */
.markdown-content blockquote {
  border-left: 3px solid currentColor;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 0.75rem;
  opacity: 0.8;
  font-style: italic;
}

/* Emphase */
.markdown-content strong,
.markdown-content b {
  font-weight: 600;
}

.markdown-content em,
.markdown-content i {
  font-style: italic;
}

/* Tableaux */
.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  text-align: left;
}

.bg-indigo-600 .markdown-content th,
.bg-indigo-600 .markdown-content td {
  border-color: rgba(255, 255, 255, 0.2);
}

.markdown-content th {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.03);
}

.bg-indigo-600 .markdown-content th {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Ligne horizontale */
.markdown-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

.bg-indigo-600 .markdown-content hr {
  border-top-color: rgba(255, 255, 255, 0.2);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Flash message animations */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out-right {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out;
}

.animate-slide-out-right {
  animation: slide-out-right 0.3s ease-in;
}
