/* Styles pour le contenu TinyMCE */

.tinymce-content {
  color: var(--font-color);
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.tinymce-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1rem 0;
}

.tinymce-content img.img-responsive {
  width: 100%;
  max-width: 100%;
}

.tinymce-content img.img-float-left {
  float: left;
  margin: 0 1rem 1rem 0;
  max-width: 40%;
}

.tinymce-content img.img-float-right {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: 40%;
}

.tinymce-content img.img-center {
  display: block;
  margin: 1rem auto;
}

.tinymce-content h1,
.tinymce-content h2,
.tinymce-content h3,
.tinymce-content h4,
.tinymce-content h5,
.tinymce-content h6 {
  color: var(--font-color);
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.tinymce-content h1 { font-size: 2rem; }
.tinymce-content h2 { font-size: 1.75rem; }
.tinymce-content h3 { font-size: 1.5rem; }
.tinymce-content h4 { font-size: 1.25rem; }
.tinymce-content h5 { font-size: 1.1rem; }
.tinymce-content h6 { font-size: 1rem; }

.tinymce-content p {
  margin: 1rem 0;
}

.tinymce-content ul,
.tinymce-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.tinymce-content li {
  margin: 0.5rem 0;
}

.tinymce-content blockquote {
  border-left: 4px solid var(--primary-color, #007bff);
  margin: 1rem 0;
  padding: 1rem;
  background-color: rgba(0, 123, 255, 0.05);
  border-radius: 4px;
  font-style: italic;
}

.tinymce-content code {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  padding: 0.2rem 0.4rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
}

.tinymce-content pre {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.tinymce-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  border: 1px solid #ddd;
}

.tinymce-content th,
.tinymce-content td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

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

.tinymce-content a {
  color: var(--primary-color, #007bff);
  text-decoration: none;
}

.tinymce-content a:hover {
  text-decoration: underline;
}

.tinymce-content .text-left { text-align: left; }
.tinymce-content .text-center { text-align: center; }
.tinymce-content .text-right { text-align: right; }
.tinymce-content .text-justify { text-align: justify; }

/* Responsive */
@media (max-width: 768px) {
  .tinymce-content img.img-float-left,
  .tinymce-content img.img-float-right {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 100%;
  }

  .tinymce-content table {
    font-size: 0.9rem;
  }

  .tinymce-content th,
  .tinymce-content td {
    padding: 0.5rem;
  }
}
