/* 
 * newsletter-content-styles.css - Styles pour le formatage du contenu des newsletters
 * Emplacement: /assets/css/newsletter-content-styles.css
 * 
 * Ces styles s'appliquent au contenu HTML généré dans les newsletters
 */

/* Conteneur principal du contenu */
.newsletter-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Titres */
.newsletter-content h1 {
    color: #1a365d;
    font-size: 2rem;
    font-weight: 800;
    margin: 2rem 0 1.5rem;
    line-height: 1.2;
}

.newsletter-content h2 {
    color: #1a365d;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.newsletter-content h3 {
    color: #2c5282;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

/* Paragraphes */
.newsletter-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.newsletter-content p:last-child {
    margin-bottom: 0;
}

/* Listes */
.newsletter-content ul,
.newsletter-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

.newsletter-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.newsletter-content li:last-child {
    margin-bottom: 0;
}

/* Liens */
.newsletter-content a {
    color: #c53030;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.newsletter-content a:hover {
    border-bottom-color: #c53030;
}

/* Citations */
.newsletter-content blockquote {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-left: 4px solid #c53030;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.newsletter-content blockquote p {
    margin-bottom: 0.5rem;
}

.newsletter-content blockquote cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
}

/* Mise en évidence */
.newsletter-content strong {
    font-weight: 700;
    color: #1a365d;
}

.newsletter-content em {
    font-style: italic;
    color: #2c5282;
}

/* Blocs spéciaux */
.highlight-box {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    background: #f0f8ff;
    border: 2px solid #bee3f8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box {
    background: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* Statistiques en ligne */
.stat-inline {
    display: inline-block;
    background: #f6e05e;
    color: #1a365d;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
    margin: 0 0.25rem;
}

/* Tableau simple */
.newsletter-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-content th {
    background: #1a365d;
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
}

.newsletter-content td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.newsletter-content tr:last-child td {
    border-bottom: none;
}

.newsletter-content tr:hover {
    background: #f8f9fa;
}

/* Images */
.newsletter-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

/* Séparateurs */
.newsletter-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
    margin: 3rem 0;
}

/* Appel à l'action */
.cta-block {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%)!important;
    color: white!important;
    padding: 2rem!important;
    border-radius: 12px!important;
    text-align: center!important;
    margin: 3rem 0!important;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3)!important;
}

.cta-block h3 {
    color: white!important;
    font-size: 1.5rem!important;
    margin: 0 0 1rem!important;
}

.cta-block p {
    color: rgba(255, 255, 255, 0.9)!important;
    margin-bottom: 1.5rem!important;
}

.cta-block .btn {
    display: inline-block!important;
    background: #f6e05e!important;
    color: #1a365d!important;
    padding: 1rem 2rem!important;
    border-radius: 6px!important;
    text-decoration: none!important;
    font-weight: 700!important;
    transition: all 0.3s ease!important;
}

.cta-block .btn:hover {
    background: #fbbf24!important;
    transform: translateY(-2px)!important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2)!important;
}

/* Signatures */
.signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
    font-style: italic;
    color: #666;
}

.signature strong {
    color: #1a365d;
    font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-content h1 {
        font-size: 1.75rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.35rem;
    }
    
    .newsletter-content h3 {
        font-size: 1.15rem;
    }
    
    .newsletter-content blockquote {
        padding: 1rem 1.25rem;
        margin: 1.5rem -0.5rem;
    }
    
    .cta-block {
        padding: 1.5rem;
        margin: 2rem -0.5rem;
    }
    
    .newsletter-content table {
        font-size: 0.875rem;
    }
    
    .newsletter-content th,
    .newsletter-content td {
        padding: 0.75rem 0.5rem;
    }
}