/**
 * Styles Template Article Blog - single.php
 * Optimisé pour articles avec catégories et SEO
 */

/* ============================================
   CATÉGORIES BADGES
   ============================================ */

.entry-categories {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Catégorie : Autorisations d'Urbanisme */
.category-badge--autorisations-urbanisme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.category-badge--autorisations-urbanisme:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Catégorie : Procédures */
.category-badge--procedures {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.category-badge--procedures:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* Catégorie : Techniques */
.category-badge--techniques {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.category-badge--techniques:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

/* Catégorie : Réglementaires */
.category-badge--reglementaires {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.category-badge--reglementaires:hover {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.4);
}

/* Catégorie : Général */
.category-badge--general {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.category-badge--general:hover {
    background: linear-gradient(135deg, #fed6e3 0%, #a8edea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 237, 234, 0.4);
}

/* ============================================
   EN-TÊTE ARTICLE
   ============================================ */

.entry-header--seo {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 800;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 1.875rem;
    }
}

.entry-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.entry-date,
.entry-updated,
.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.post-thumbnail--featured img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail--featured:hover img {
    transform: scale(1.02);
}

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

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

.entry-content--seo h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
}

.entry-content--seo h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

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

.entry-content--seo ul,
.entry-content--seo ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.entry-content--seo a {
    color: #4299e1;
    text-decoration: underline;
    transition: color 0.2s ease;
}

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

.entry-content--seo blockquote {
    border-left: 4px solid #4299e1;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a5568;
}

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

.internal-links-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    color: white;
}

.internal-links-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.internal-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.internal-links-list li {
    margin: 0;
}

.internal-links-list a {
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.internal-links-list a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
    transform: translateX(5px);
}

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

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

.entry-categories {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.entry-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.entry-tags strong {
    color: #2d3748;
}

.entry-tags a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #edf2f7;
    color: #4a5568;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.entry-tags a:hover {
    background: #cbd5e0;
    color: #2d3748;
}

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

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

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.cta-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    color: white;
}

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

.cta-box .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

/* ============================================
   NAVIGATION ARTICLE
   ============================================ */

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

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

@media (max-width: 768px) {
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
}

.post-navigation a {
    display: block;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    text-align: center;
}

.post-navigation a:hover {
    background: #edf2f7;
    border-left-color: #4299e1;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

@media (max-width: 768px) {
    .entry-content--seo {
        font-size: 1rem;
    }

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

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

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