/* ============================================
   PROSE - Styles
   ============================================ */

.prose {
    color: #374151;
    max-width: 65ch;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.prose-lg {
    font-size: 1rem;
    line-height: 1.7777778;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* ============================================
   PARAGRAPHES
   ============================================ */

.prose p {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.prose-lg p {
    margin-top: 0.875rem;
    margin-bottom: 0.875rem;
}

/* ============================================
   TITRES
   ============================================ */

.prose h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #111827;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.prose-lg h2 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.prose-lg h3 {
    font-size: 1.375rem;
    margin-top: 1.375rem;
    margin-bottom: 0.625rem;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.prose h5 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.prose h6 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 0.875rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* ============================================
   FORMATAGE TEXTE
   ============================================ */

.prose strong,
.prose b {
    font-weight: 600;
    color: #111827;
}

.prose em,
.prose i {
    font-style: italic;
}

.prose u {
    text-decoration: underline;
}

.prose s,
.prose del,
.prose strike {
    text-decoration: line-through;
    opacity: 0.7;
}

.prose mark {
    background-color: #fef08a;
    padding: 0.125rem 0.25rem;
    border-radius: 0.125rem;
}

.prose small {
    font-size: 0.875rem;
}

.prose sup {
    /*vertical-align: super;*/
    font-size: 0.75rem;
}

.prose sub {
    /*vertical-align: sub;*/
    font-size: 0.75rem;
}

/* ============================================
   ALIGNEMENT TEXTE
   ============================================ */

.prose .text-left {
    text-align: left;
}

.prose .text-center {
    text-align: center;
}

.prose .text-right {
    text-align: right;
}

.prose .text-justify {
    text-align: justify;
}

/* ============================================
   COULEURS DE TEXTE
   ============================================ */

.prose .text-red-600 {
    color: #dc2626;
}

.prose .text-blue-600 {
    color: rgb(23, 37, 84);
}

.prose .text-green-600 {
    color: #16a34a;
}

.prose .text-yellow-600 {
    color: #ca8a04;
}

.prose .text-purple-600 {
    color: #9333ea;
}

.prose .text-gray-600 {
    color: #4b5563;
}

/* ============================================
   LISTES
   ============================================ */

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.prose li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.prose li p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose ul ul,
.prose ul ol,
.prose ol ul,
.prose ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   LIENS
   ============================================ */

.prose a {
    color: rgb(23, 37, 84);
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: #1e3a8a;
}

/* ============================================
   BLOCKQUOTE
   ============================================ */

.prose blockquote {
    font-weight: 400;
    /*font-style: italic;*/
    color: #111827;
    border-left: 0.25rem solid #e5e7eb;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

/*.prose blockquote p:first-of-type::before {
    content: open-quote;
}

.prose blockquote p:last-of-type::after {
    content: close-quote;
}*/

/* ============================================
   LIGNE HORIZONTALE
   ============================================ */

.prose hr {
    border-color: #e5e7eb;
    border-top-width: 1px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ============================================
   CODE
   ============================================ */

.prose code {
    color: #111827;
    font-weight: 600;
    font-size: 0.875rem;
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Courier, monospace;
}

.prose code::before,
.prose code::after {
    content: "`";
}

.prose pre {
    color: #e5e7eb;
    background-color: #1f2937;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.7142857;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    padding: 1rem;
}

.prose pre code {
    background-color: transparent;
    border-width: 0;
    border-radius: 0;
    padding: 0;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.prose pre code::before,
.prose pre code::after {
    content: none;
}

/* ============================================
   TABLES
   ============================================ */

.prose table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.7142857;
    border-collapse: collapse;
}

.prose thead {
    border-bottom: 1px solid #d1d5db;
}

.prose thead th {
    color: #111827;
    font-weight: 600;
    vertical-align: bottom;
    padding: 0.5rem;
}

.prose tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.prose tbody tr:last-child {
    border-bottom-width: 0;
}

.prose tbody td {
    vertical-align: baseline;
    padding: 0.5rem;
}

/* ============================================
   IMAGES
   ============================================ */

.prose img {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    max-width: 100%;
    height: auto;
}

.prose figure {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose figcaption {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4285714;
    margin-top: 0.5rem;
    text-align: center;
}

/* ============================================
   VIDÉOS
   ============================================ */

.prose video {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    max-width: 100%;
}

.prose iframe {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
}

/* ============================================
   MAX-WIDTH OVERRIDE
   ============================================ */

.prose.max-w-none {
    max-width: none;
}


/* Vidéos YouTube */
.prose div[data-youtube-video] {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.prose div[data-youtube-video] iframe {
    margin: 0;
    border: 0;
    border-radius: 0.5rem;
    display: block;
}

/* Responsive container pour tous les iframes */
.prose .responsive {
    position: relative;
    width: 100%;
}

.prose .responsive iframe {
    display: block;
    width: 100%;
    height: auto;
}