/* 
    Created on : 15 déc. 2025, 11:24:53
    Author     : Morgan Vivier - https://github.com/rsquatre
*/


/* public/css/news-preview.css */
/* 
 * Fichier CSS personnalisable pour l'affichage des actualités
 * Modifiez ces styles pour adapter le rendu visuel à votre charte graphique
 */

/* === TITRES === */
.news-content h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0.67em 0;
    color: #1a1a1a;
    line-height: 1.2;
    border-bottom: 3px solid #2196f3;
    padding-bottom: 0.3em;
}

.news-content h2 {
    font-size: 2em;
    font-weight: 600;
    margin: 0.75em 0;
    color: #2a2a2a;
    line-height: 1.3;
}

.news-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0.83em 0;
    color: #3a3a3a;
    line-height: 1.4;
}

/* === PARAGRAPHES === */
.news-content p {
    margin: 1em 0;
    line-height: 1.7;
    font-size: 1em;
}

/* === TEXTE FORMATÉ === */
.news-content strong {
    font-weight: 600;
    color: inherit;
}

.news-content em {
    font-style: italic;
}

.news-content u {
    text-decoration: underline;
}

.news-content s {
    text-decoration: line-through;
    opacity: 0.7;
}

.news-content mark,
.news-content .ql-bg-yellow {
    background-color: #fff59d;
    padding: 2px 4px;
    border-radius: 2px;
}

/* === CODE === */
.news-content code {
    background-color: #f5f5f5;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
    color: var(--bs-secondary);
    border: 1px solid #e0e0e0;
}

.news-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5em 0;
    border-left: 4px solid #2196f3;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.news-content pre code {
    background: none;
    padding: 0;
    color: #333;
    border: none;
    font-size: 0.95em;
    line-height: 1.5;
}

/* === CITATIONS === */
.news-content blockquote {
    border-left: 5px solid #2196f3;
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
    padding: 20px 20px 20px 25px;
    border-radius: 0 5px 5px 0;
    position: relative;
}

.news-content blockquote::before {
    content: '"';
    font-size: 3em;
    color: #2196f3;
    opacity: 0.3;
    position: absolute;
    left: 10px;
    top: 0px;
    font-family: Georgia, serif;
}

/* === IMAGES === */
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: block;
}

/* === VIDÉOS === */
.news-content iframe,
.news-content .ql-video {
    max-width: 100%;
    width: 100%;
    min-height: 360px;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: none;
}

/* === LIENS === */
.news-content a {
    color: #2196f3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.news-content a:hover {
    border-bottom-color: #2196f3;
    color: #1976d2;
}

/* === LISTES === */
.news-content ul,
.news-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

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

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

.news-content li {
    margin: 0.5em 0;
    line-height: 1.6;
}

.news-content li > ul,
.news-content li > ol {
    margin: 0.5em 0;
}

/* === EXPOSANT / INDICE === */
.news-content sup {
    font-size: 0.75em;
    vertical-align: super;
}

.news-content sub {
    font-size: 0.75em;
    vertical-align: sub;
}

/* === TAILLES DE TEXTE === */
.news-content .ql-size-small {
    font-size: 0.75em;
}

.news-content .ql-size-large {
    font-size: 1.5em;
}

.news-content .ql-size-huge {
    font-size: 2em;
}

/* === COULEURS DE TEXTE (Quill.js) === */
.news-content .ql-color-red {
    color: #e53935;
}

.news-content .ql-color-orange {
    color: #fb8c00;
}

.news-content .ql-color-yellow {
    color: #fdd835;
}

.news-content .ql-color-green {
    color: #43a047;
}

.news-content .ql-color-blue {
    color: #1e88e5;
}

.news-content .ql-color-purple {
    color: #8e24aa;
}

/* === ALIGNEMENT === */
.news-content .ql-align-center {
    text-align: center;
}

.news-content .ql-align-right {
    text-align: right;
}

.news-content .ql-align-justify {
    text-align: justify;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .news-content h1 {
        font-size: 2em;
    }
    
    .news-content h2 {
        font-size: 1.5em;
    }
    
    .news-content h3 {
        font-size: 1.25em;
    }
    
    .news-content pre {
        padding: 10px;
        font-size: 0.85em;
    }
    
    .news-content blockquote {
        padding: 15px 15px 15px 20px;
    }
}