/**
 * Web-Créativité Theme - Main Stylesheet
 *
 * Table of Contents:
 * 1. CSS Variables
 * 2. Reset & Base Styles
 * 3. Layout & Container
 * 4. Header & Navigation
 * 5. Hero Section
 * 6. Services Section
 * 7. About Section
 * 8. Portfolio Section
 * 9. Testimonials Section
 * 10. Footer
 * 11. Animations & Effects
 * 12. Responsive Design
 */

/* ===================================
   1. CSS VARIABLES
   =================================== */
:root {
    --primary-color: #2980b9;
    --secondary-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white-color: #ffffff;
    --success-color: #2ecc71;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===================================
   2. RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   3. LAYOUT & CONTAINER
   =================================== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    overflow: hidden;
}

section {
    padding: 5rem 0;
}

#services h2,
#about h2,
#portfolio h2,
#testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* ===================================
   4. HEADER & NAVIGATION
   =================================== */
#main-header {
    background: var(--white-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

#main-header.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

#main-header .container {
    padding: 0 2rem;
}

#main-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

#main-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#main-header .logo i {
    color: var(--primary-color);
}

#main-header .site-logo img {
    max-height: 60px;
    width: auto;
}

#main-header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
}

#main-header nav ul li {
    margin: 0;
}

#main-header nav ul li a {
    padding: 1rem;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
}

#main-header nav ul li a:hover {
    color: var(--primary-color);
}

#main-header nav ul li .btn {
    margin-left: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===================================
   5. HERO SECTION
   =================================== */
#hero {
    color: var(--white-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#hero .hero-content {
    max-width: 800px;
    padding: 2rem;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===================================
   6. BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===================================
   7. SERVICES SECTION
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* ===================================
   8. ABOUT SECTION
   =================================== */
#about {
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-content img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
    justify-self: center;
}

.about-content .about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-content .about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.about-content .about-text .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.about-content .about-text .btn {
    margin-top: 1rem;
}

/* ===================================
   9. PORTFOLIO SECTION
   =================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--light-color);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    background: #f8f9fa;
    padding: 1rem;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 128, 185, 0.85);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 1rem;
}

/* ===================================
   10. TESTIMONIALS SECTION
   =================================== */
#testimonials {
    background: var(--primary-color);
    color: var(--white-color);
}

#testimonials h2 {
    color: var(--white-color);
}

.testimonial-card {
    background: rgba(255,255,255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    border: none;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-card cite {
    font-weight: 600;
    font-style: normal;
    display: block;
    margin-top: 1rem;
}

/* ===================================
   11. FOOTER
   =================================== */
#main-footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 3rem 0;
}

#main-footer .footer-cta {
    margin-bottom: 2rem;
}

#main-footer .footer-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

#main-footer .footer-cta p {
    margin-bottom: 1.5rem;
}

#main-footer .social-links {
    margin: 2rem 0;
}

#main-footer .social-links a {
    color: var(--white-color);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    display: inline-block;
}

#main-footer .social-links a:hover {
    color: var(--primary-color);
}

#main-footer .footer-copyright {
    margin-top: 2rem;
}

#main-footer .footer-copyright p {
    font-size: 0.9rem;
    color: var(--light-color);
}

/* ===================================
   12. ANIMATIONS & EFFECTS
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   13. RESPONSIVE DESIGN
   =================================== */

/* Tablet - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    #main-header .main-navigation {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }

    #main-header .main-navigation.active {
        left: 0;
    }

    #main-header nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    #main-header nav ul li {
        width: 100%;
    }

    #main-header nav ul li a {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--light-color);
    }

    #main-header nav ul li .btn {
        margin-left: 0;
        display: block;
        text-align: center;
    }

    /* Hero */
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-content img {
        margin-bottom: 2rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-item {
        aspect-ratio: 3 / 2;
    }

    /* General */
    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   14. GUTENBERG BLOCKS SUPPORT
   =================================== */

/* Block alignments */
.alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Block: Button */
.wp-block-button__link {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.wp-block-button__link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Block: Quote */
.wp-block-quote {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.wp-block-quote cite {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
    display: block;
    margin-top: 1rem;
}

.wp-block-pullquote {
    border-top: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
    padding: 2rem 0;
    text-align: center;
}

/* Block: Image */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.wp-block-image figcaption {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Block: Gallery */
.wp-block-gallery {
    margin: 2rem 0;
}

/* Block: Cover */
.wp-block-cover {
    min-height: 400px;
}

/* Block: Table */
.wp-block-table,
.table-responsive {
    width: 100%;
    margin: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wp-block-table table,
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 520px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.wp-block-table table thead,
.table-responsive table thead {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.wp-block-table table th,
.wp-block-table table td,
.table-responsive table th,
.table-responsive table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    text-align: left;
    font-size: 0.95rem;
}

.wp-block-table table tbody tr:nth-child(even),
.table-responsive table tbody tr:nth-child(even) {
    background-color: rgba(41, 128, 185, 0.05);
}

.wp-block-table table caption,
.table-responsive table caption {
    caption-side: bottom;
    text-align: left;
    padding: 0.75rem 1rem 0;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.wp-block-table::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.wp-block-table::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: #ecf0f1;
    border-radius: 3px;
}

.wp-block-table::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

@media (max-width: 640px) {
    .wp-block-table table,
    .table-responsive table {
        min-width: 420px;
    }

    .wp-block-table table th,
    .wp-block-table table td,
    .table-responsive table th,
    .table-responsive table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Block: Code */
.wp-block-code,
.wp-block-preformatted {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 1.5rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* Block: Separator */
.wp-block-separator {
    border: none;
    border-top: 2px solid var(--light-color);
    margin: 3rem 0;
}

.wp-block-separator.is-style-wide {
    border-top-width: 3px;
}

.wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
}

.wp-block-separator.is-style-dots::before {
    content: '···';
    color: var(--primary-color);
    font-size: 2rem;
    letter-spacing: 1rem;
}

/* Block: Group */
.wp-block-group {
    padding: 2rem;
    margin: 2rem 0;
}

.wp-block-group.has-background {
    padding: 2rem;
}

/* Block: Columns */
.wp-block-columns {
    margin: 2rem 0;
}

/* Block: Media & Text */
.wp-block-media-text {
    margin: 2rem 0;
}

/* Color palette classes */
.has-primary-color {
    color: var(--primary-color);
}

.has-primary-background-color {
    background-color: var(--primary-color);
}

.has-secondary-color {
    color: var(--secondary-color);
}

.has-secondary-background-color {
    background-color: var(--secondary-color);
}

.has-dark-color {
    color: var(--dark-color);
}

.has-dark-background-color {
    background-color: var(--dark-color);
}

.has-light-color {
    color: var(--dark-color);
}

.has-light-background-color {
    background-color: var(--light-color);
}

.has-white-color {
    color: var(--dark-color);
}

.has-white-background-color {
    background-color: var(--white-color);
}

.has-success-color {
    color: var(--success-color);
}

.has-success-background-color {
    background-color: var(--success-color);
}

/* ===================================
   15. PAGE BUILDERS COMPATIBILITY
   =================================== */

/* DIVI Builder */
.divi-builder-active #main-header {
    position: relative;
}

.divi-builder-active #main-content {
    padding-top: 0;
}

/* Elementor */
.elementor-active .container {
    max-width: 100%;
}

/* Ensure page builders have full width */
body.page-template-default.divi-builder-active #main-content,
body.page-template-default.elementor-active #main-content {
    padding: 0;
}

/* ===================================
   16. WOOCOMMERCE SUPPORT
   =================================== */

/* WooCommerce basic styling */
.woocommerce-content {
    background: var(--light-color);
}

.woocommerce ul.products li.product {
    background: var(--white-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
}

.woocommerce ul.products li.product .button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--secondary-color);
}

.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 2rem;
}

.woocommerce div.product .woocommerce-product-gallery {
    margin-bottom: 2rem;
}

.woocommerce div.product form.cart .button {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.woocommerce div.product form.cart .button:hover {
    background-color: var(--secondary-color);
}

/* ===================================
   17. CONTACT FORM 7
   =================================== */

.wcreativite-cf7-form input[type="text"],
.wcreativite-cf7-form input[type="email"],
.wcreativite-cf7-form input[type="tel"],
.wcreativite-cf7-form input[type="url"],
.wcreativite-cf7-form textarea,
.wcreativite-cf7-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

.wcreativite-cf7-form input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcreativite-cf7-form input[type="submit"]:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.9rem;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
    border: 2px solid #e74c3c;
    background-color: #ffe5e5;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.wpcf7-mail-sent-ok {
    border: 2px solid var(--success-color);
    background-color: #e8f8f5;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

/* ===================================
   18. BLOG STYLES
   =================================== */

/* Blog post cards */
.blog-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.blog-post .entry-title a:hover {
    color: var(--primary-color) !important;
}

.blog-post .entry-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post .entry-meta a:hover {
    color: var(--primary-color);
}

.blog-post .cat-links a {
    color: inherit;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    background-color: rgba(41, 128, 185, 0.1);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.blog-post .cat-links a:hover {
    background-color: rgba(41, 128, 185, 0.2);
    color: var(--primary-color);
}

.blog-post .tags-links a {
    display: inline-block;
    color: #7f8c8d;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    background-color: var(--light-color);
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.3rem 0.2rem;
    transition: all 0.3s ease;
}

.blog-post .tags-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

.pagination .page-numbers {
    display: inline-block;
    padding: 0.6rem 1rem;
    background-color: var(--white-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.pagination .page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background-color: var(--primary-color);
}

/* Comments link */
.comments-link a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comments-link a:hover {
    color: var(--primary-color);
}

/* Post navigation (prev/next) */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--light-color);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    transform: translateY(-3px);
}

.post-navigation a {
    color: var(--dark-color);
    text-decoration: none;
}

.post-navigation .nav-subtitle {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 600;
}

/* Responsive blog */
@media (max-width: 768px) {
    .blog-post {
        padding: 1.5rem !important;
    }

    .pagination {
        gap: 0.3rem;
    }

    .pagination .page-numbers {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }
}

/* ===================================
   19. COMMENTS SYSTEM
   =================================== */

/* Comments area */
.comments-area {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--light-color);
    border-radius: 8px;
}

.comments-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.comments-title span {
    color: var(--primary-color);
}

/* Comment list */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.comment-list .comment.bypostauthor {
    border-left: 4px solid var(--primary-color);
}

.comment-list .children {
    list-style: none;
    margin-left: 2rem;
    margin-top: 2rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid var(--light-color);
}

.comment-author .fn {
    font-weight: 700;
    font-style: normal;
    color: var(--dark-color);
    text-decoration: none;
}

.comment-author .fn:hover {
    color: var(--primary-color);
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

.comment-content {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-reply-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.comment-reply-link i {
    margin-right: 0.3rem;
}

/* Comment awaiting moderation */
.comment-awaiting-moderation {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f39c12;
    color: var(--white-color);
    border-radius: 3px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Comments navigation */
.comment-navigation,
.comments-navigation {
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
}

.comment-navigation .nav-previous,
.comment-navigation .nav-next,
.comments-navigation .nav-previous,
.comments-navigation .nav-next {
    flex: 1;
}

.comment-navigation a,
.comments-navigation a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.comment-navigation a:hover,
.comments-navigation a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* No comments */
.no-comments {
    padding: 1.5rem;
    background: var(--white-color);
    border-radius: 5px;
    text-align: center;
    color: #7f8c8d;
}

/* Comment form */
.comment-form-wcreativite {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--white-color);
    border-radius: 8px;
}

.comment-form-wcreativite label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.comment-form-wcreativite .required {
    color: #e74c3c;
}

.comment-form-wcreativite input[type="text"],
.comment-form-wcreativite input[type="email"],
.comment-form-wcreativite input[type="url"],
.comment-form-wcreativite textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.comment-form-wcreativite input[type="text"]:focus,
.comment-form-wcreativite input[type="email"]:focus,
.comment-form-wcreativite input[type="url"]:focus,
.comment-form-wcreativite textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form-wcreativite textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form-wcreativite .form-submit {
    margin-top: 1rem;
}

.comment-form-wcreativite .comment-reply-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.comment-form-wcreativite .comment-reply-title small {
    font-size: 0.9rem;
}

.comment-form-wcreativite .comment-reply-title small a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-form-wcreativite .comment-reply-title small a:hover {
    color: var(--secondary-color);
}

.comment-form-wcreativite .comment-notes {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.comment-form-wcreativite .logged-in-as {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.comment-form-wcreativite .logged-in-as a {
    color: var(--primary-color);
    text-decoration: none;
}

.comment-form-wcreativite .logged-in-as a:hover {
    text-decoration: underline;
}

/* Comment form fields */
.comment-form-wcreativite .comment-form-author,
.comment-form-wcreativite .comment-form-email,
.comment-form-wcreativite .comment-form-url,
.comment-form-wcreativite .comment-form-comment {
    margin-bottom: 1.5rem;
}

/* Responsive comments */
@media (max-width: 768px) {
    .comments-area {
        padding: 1.5rem;
    }

    .comment-list .children {
        margin-left: 1rem;
    }

    .comment-list .comment {
        padding: 1.5rem;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment-form-wcreativite {
        padding: 1.5rem;
    }
}

/* ===================================
   20. BLOG POST CONTENT STYLES
   =================================== */

/* Entry content - images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
    display: block;
}

/* WordPress image alignments */
.entry-content .alignleft {
    float: left;
    margin: 1rem 2rem 1rem 0;
}

.entry-content .alignright {
    float: right;
    margin: 1rem 0 1rem 2rem;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* WordPress image captions */
.entry-content .wp-caption {
    max-width: 100%;
}

.entry-content .wp-caption img {
    margin: 0;
}

.entry-content .wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
    padding: 0.5rem 0;
}

/* WordPress galleries */
.entry-content .wp-block-gallery,
.entry-content .blocks-gallery-grid {
    margin: 2rem 0;
}

/* Entry content - general typography */
.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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

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

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

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

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

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.entry-content code {
    background: var(--light-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* Author bio responsive */
@media (max-width: 768px) {
    .author-bio > div {
        flex-direction: column;
        text-align: center;
    }

    .author-bio .author-avatar {
        margin: 0 auto;
    }
}

/* ===================================
   21. ACCESSIBILITY
   =================================== */

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--dark-color);
    outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--light-color);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--dark-color);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===================================
   BLOG — liste des articles
   =================================== */

.blog-section {
    background: var(--light-color);
    padding: 6rem 0 4rem;
}

.blog-section .container {
    overflow: visible;
}

/* En-tête de page */
.blog-section .page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-section .page-header .page-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.blog-section .page-header .page-description {
    color: #7f8c8d;
    font-size: 1.05rem;
}

/* Liste (1 article par ligne) */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Carte article */
.blog-post {
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Image à gauche */
.blog-post .post-thumbnail {
    flex-shrink: 0;
    width: 300px;
    overflow: hidden;
}

.blog-post .post-thumbnail a {
    display: block;
    height: 100%;
}

.blog-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    transition: transform 0.4s ease;
}

.blog-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Contenu à droite */
.blog-post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.75rem 2rem;
    min-width: 0;
}

/* Badge catégorie */
.post-category {
    margin-bottom: 0.75rem;
}

.post-category a {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    background: rgba(41,128,185,0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.post-category a:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* Titre — reset complet de section h2 */
.blog-post .entry-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    color: var(--dark-color);
    margin: 0 0 0.6rem 0;
}

/* Lien du titre — tous états */
.blog-post .entry-title a,
.blog-post .entry-title a:link,
.blog-post .entry-title a:visited,
.blog-post .entry-title a:hover,
.blog-post .entry-title a:active {
    text-decoration: none;
    font-weight: 700;
}

.blog-post .entry-title a,
.blog-post .entry-title a:link,
.blog-post .entry-title a:visited {
    color: var(--dark-color);
}

.blog-post .entry-title a:hover,
.blog-post .entry-title a:active {
    color: var(--primary-color);
}

/* Méta */
.blog-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1rem;
    font-size: 0.82rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dde1e4;
}

.blog-post .entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-post .entry-meta i {
    color: var(--primary-color);
    font-size: 0.78rem;
}

.blog-post .entry-meta a,
.blog-post .entry-meta a:visited {
    color: #7f8c8d;
    text-decoration: none;
}

.blog-post .entry-meta a:hover {
    color: var(--primary-color);
}

/* Extrait */
.blog-post .entry-excerpt {
    flex: 1;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.blog-post .entry-excerpt p {
    margin: 0;
}

/* Bouton petit */
.btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
}

/* Aucun article */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
}

.no-posts i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #bdc3c7;
}

.no-posts h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 0.75rem;
}

/* Responsive blog */
@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
    }

    .blog-post .post-thumbnail {
        width: 100%;
        height: 200px;
    }

    .blog-post-body {
        padding: 1.25rem;
    }

    .blog-section .page-header .page-title {
        font-size: 1.8rem;
    }
}
