/*
Theme Name: Citoyenne Blog
Theme URI: https://citoyenne.fr
Author: Citoyenne
Author URI: https://citoyenne.fr
Description: Thème WordPress pour le site vitrine Citoyenne - Préparation à l'examen civique français 2026
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: citoyenne-blog
Tags: blog, education, french, bootstrap, responsive
*/

/* Theme-specific styles */

body {
    color: #0A2540;
}

.bg-light,
.bg-light * {
    color: #0A2540;
}

/* ========================================
   PAGINATION STYLES
   Bootstrap pagination with gradient active state
   ======================================== */

.pagination .page-link {
    color: #0A2540;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .pagination .page-link:hover {
        background: var(--gradient);
        border-color: transparent;
        color: #FFFFFF;
    }
}

.pagination .page-item.active .page-link {
    background: var(--gradient);
    border-color: transparent;
    color: #FFFFFF;
}

.pagination .page-item.disabled .page-link {
    color: #B0B8C1;
    background-color: #F6F9FC;
    border-color: #E5E7EB;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer-link {
    color: #B0B8C1;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .footer-link:hover {
        background: var(--gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
}

@media (hover: hover) {
    .social-icon:hover {
        background: var(--gradient);
        color: #FFFFFF;
    }

    .social-icon:hover i {
        color: #FFFFFF !important;
    }
}

/* ========================================
   OFFCANVAS NAVIGATION
   ======================================== */

.offcanvas-nav-link {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: none !important;
    transition: none !important;
}

.offcanvas-nav-link:active,
.offcanvas-nav-link:focus,
.offcanvas-nav-link.active {
    background: var(--gradient) !important;
    color: #FFFFFF !important;
}

@media (hover: hover) {
    .offcanvas-nav-link:hover {
        background: var(--gradient) !important;
        color: #FFFFFF !important;
    }
}

#navigationOffcanvas .pricing-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#navigationOffcanvas .pricing-slider::-webkit-scrollbar {
    display: none;
}

#navigationOffcanvas .row.d-none.d-lg-flex {
    display: none !important;
}

#navigationOffcanvas .d-lg-none {
    display: block !important;
}

/* ========================================
   POST CARD STYLES
   ======================================== */

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background 0.3s ease;
}

.post-card-link .card-title,
.post-card-link .card-excerpt,
.post-card-link .card-cta,
.post-card-link .badge {
    transition: color 0.3s ease, background-color 0.3s ease;
}

@media (hover: hover) {
    .post-card-link:hover {
        background: linear-gradient(135deg, #0660BD 0%, #7C3AED 100%);
    }

    .post-card-link:hover .card-title,
    .post-card-link:hover .card-excerpt,
    .post-card-link:hover .card-cta {
        color: #FFFFFF !important;
    }

    .post-card-link:hover .badge {
        background-color: rgba(255, 255, 255, 0.2) !important;
    }

    .post-card-link:hover .badge-text,
    .post-card-link:hover .card-cta.gradient-text {
        background: none !important;
        -webkit-text-fill-color: #FFFFFF !important;
        color: #FFFFFF !important;
    }
}

.post-card-link:active {
    background: linear-gradient(135deg, #0660BD 0%, #7C3AED 100%);
}

.post-card-link:active .card-title,
.post-card-link:active .card-excerpt,
.post-card-link:active .card-cta {
    color: #FFFFFF !important;
}

.post-card-link:active .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.post-card-link:active .badge-text,
.post-card-link:active .card-cta.gradient-text {
    background: none !important;
    -webkit-text-fill-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

.card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5em;
    line-height: 1.5;
}

/* ========================================
   SLIDER STYLES
   ======================================== */

.blog-slider,
.pricing-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.blog-slider::-webkit-scrollbar,
.pricing-slider::-webkit-scrollbar {
    display: none;
}

.blog-slider.dragging,
.pricing-slider.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}


/* ========================================
   SINGLE POST FEATURED IMAGE
   ======================================== */

.post-featured-image img {
    width: 100%;
    object-fit: cover;
    object-position: top;
    max-height: 200px;
}

@media (min-width: 768px) {
    .post-featured-image img {
        max-height: 400px;
    }
}