/**
 * CSS Articles SEO - Construires Theme
 * Optimisé pour articles générés par multi-agents
 */

/* ============================================================================
   CONTAINER & LAYOUT
   ============================================================================ */

.site-main--article {
    background: #fff;
}

.site-main--article .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */

.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================================================
   HEADER ARTICLE
   ============================================================================ */

.entry-header--seo {
    margin-bottom: 2.5rem;
    text-align: center;
}

.entry-header--seo .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.entry-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.entry-date,
.entry-updated,
.reading-time {
    display: inline-block;
}

/* ============================================================================
   IMAGE À LA UNE
   ============================================================================ */

.post-thumbnail--featured {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================================
   CONTENU ARTICLE
   ============================================================================ */

.entry-content--seo {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

/* Titres */
.entry-content--seo h1 {
    font-size: 2.25rem;
    margin: 2.5rem 0 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.entry-content--seo h2 {
    font-size: 1.875rem;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
    font-weight: 700;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 0.5rem;
}

.entry-content--seo h3 {
    font-size: 1.5rem;
    margin: 1.75rem 0 1rem;
    color: #2a2a2a;
    font-weight: 600;
}

.entry-content--seo h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: #2a2a2a;
    font-weight: 600;
}

/* Paragraphes */
.entry-content--seo p {
    margin-bottom: 1.5rem;
}

/* Liens */
.entry-content--seo a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.entry-content--seo a:hover {
    color: #004499;
}

/* Listes */
.entry-content--seo ul,
.entry-content--seo ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content--seo li {
    margin-bottom: 0.75rem;
}

.entry-content--seo ul li {
    list-style-type: disc;
}

.entry-content--seo ol li {
    list-style-type: decimal;
}

/* Strong / Bold */
.entry-content--seo strong {
    font-weight: 700;
    color: #1a1a1a;
}

/* Italique */
.entry-content--seo em {
    font-style: italic;
}

/* Citations */
.entry-content--seo blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    font-style: italic;
    color: #555;
}

/* Tableaux */
.entry-content--seo table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 1rem;
}

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

.entry-content--seo th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
}

.entry-content--seo tr:nth-child(even) {
    background: #fafafa;
}

/* Code */
.entry-content--seo code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content--seo pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content--seo pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Images dans le contenu */
.entry-content--seo img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   MAILLAGE INTERNE
   ============================================================================ */

.internal-links-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    border-left: 4px solid #0066cc;
}

.internal-links-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

.internal-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.internal-links-list li {
    margin-bottom: 0.75rem;
}

.internal-links-list a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s;
}

.internal-links-list a:hover {
    color: #004499;
    transform: translateX(5px);
}

.internal-links-list a::before {
    content: "→ ";
    color: #0066cc;
}

/* ============================================================================
   FOOTER ARTICLE
   ============================================================================ */

.entry-footer {
    margin-top: 3rem;
    padding: 2rem;
    border-top: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
}

.entry-categories {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
}

.entry-tags {
    margin-bottom: 2rem;
}

.entry-tags a {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.entry-tags a:hover {
    background: #0066cc;
    color: #fff;
}

/* ============================================================================
   CTA DEVIS
   ============================================================================ */

.article-cta {
    margin: 3rem 0;
}

.cta-box {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.cta-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-box p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-box .btn {
    display: inline-block;
    background: #fff;
    color: #0066cc;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   NAVIGATION ARTICLES
   ============================================================================ */

.post-navigation {
    margin: 4rem auto;
    max-width: 900px;
    padding: 2rem 0;
    border-top: 2px solid #e0e0e0;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.post-navigation a {
    display: block;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.post-navigation a:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-size: 1.125rem;
    color: #1a1a1a;
    font-weight: 600;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .site-main--article .container {
        padding: 1.5rem 1rem;
    }

    .entry-header--seo .entry-title {
        font-size: 1.875rem;
    }

    .entry-content--seo {
        font-size: 1rem;
    }

    .entry-content--seo h2 {
        font-size: 1.5rem;
    }

    .entry-content--seo h3 {
        font-size: 1.25rem;
    }

    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }
}

/* ============================================================================
   PAGINATION PAGES
   ============================================================================ */

.page-links {
    margin: 2rem 0;
    text-align: center;
}

.page-links span {
    display: inline-block;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 4px;
}

.page-links a span {
    background: #0066cc;
    color: #fff;
}

.page-links a span:hover {
    background: #004499;
}
