/*
Theme Name: Mon Agent IA
Theme URI: https://mon-agent-ia.fr
Author: Mon Agent IA
Author URI: https://mon-agent-ia.fr
Description: Thème personnalisé pour Mon Agent IA
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mon-agent-ia
*/

/* --- Espacement global des sections --- */
.blog-content > * {
    margin-bottom: 2rem;
}

/* --- Amélioration des titres --- */

/* H2 - Très visible avec une bordure sous le texte */
.blog-content h2 {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1f2937;
    border-bottom: 4px solid #4f46e5;
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* H3 - Bordure latérale pour un effet visuel fort */
.blog-content h3 {
    font-size: 1.9rem;
    font-weight: bold;
    color: #374151;
    border-left: 5px solid #4f46e5;
    padding-left: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* H4 - Texte souligné */
.blog-content h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #4b5563;
    text-decoration: underline;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- Paragraphes et lisibilité --- */
.blog-content p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* --- Images --- */
.blog-content img {
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    width: 100%;
    object-fit: cover;
}

/* --- Liens --- */
.blog-content a {
    color: #4f46e5;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.blog-content a:hover {
    color: #4338ca;
}

/* --- Liens externes avec icône --- */
.blog-content a[href^="http"]:not([href*="mon-agent-ia.fr"])::after {
    content: " 🔗";
    font-size: 0.9em;
    color: #4f46e5;
}

/* --- Listes --- */
.blog-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Citations --- */
.blog-content blockquote {
    border-left: 4px solid #4f46e5;
    padding-left: 1rem;
    font-style: italic;
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* --- Code --- */
.blog-content code {
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #d63384;
}

.blog-content pre {
    background-color: #1e1e1e;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* --- Tableaux --- */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d1d5db;
    margin-bottom: 1.5rem;
}

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

.blog-content th {
    background-color: #e5e7eb;
    font-weight: bold;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.page-numbers:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.current {
    background-color: #4f46e5;
    color: white;
    border: 1px solid #4f46e5;
}

