/*-------------------------------------------------------------------------------------
Theme Name:    DigiCommunaute (Kiante Child)
Theme URI:     https://digicommunaute.com
Description:   DigiCommunaute child theme on Kiante parent. French SMM/marketing magazine — royal blue + corail brand overrides.
Author:        DigiCommunaute Editorial
Author URI:    https://digicommunaute.com
Template:      kiante
Version:       1.0
Text Domain:   digicommunaute
License:       GNU General Public License v2 or later
-------------------------------------------------------------------------------------*/

/* ==========================================================================
   BRAND OVERRIDES — DigiCommunaute palette on Kiante magazine layout
   Royal blue #2563EB, indigo #1E40AF, corail #F97316, slate #0F172A.
   Kiante ships strong red/orange accents — we override them all to brand.
   ========================================================================== */

:root {
    --dc-blue: #2563EB;
    --dc-ind:  #1E40AF;
    --dc-cor:  #F97316;
    --dc-slt:  #0F172A;
    --dc-bg:   #FFFFFF;
    --dc-fg:   #0F172A;
    --dc-mute: #64748B;
}

a { color: var(--dc-blue); transition: color 0.2s ease; }
a:hover, a:focus { color: var(--dc-cor); }

.site-title a, .logo-title, .header-logo a {
    color: var(--dc-slt) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Top "Breaking News" bar */
.trending-news-area, .breaking-news, .trending-bar, .breaking-bar {
    background: var(--dc-slt) !important;
    color: #fff !important;
    border-bottom: 3px solid var(--dc-cor);
}
.trending-news-area .trending-title, .breaking-news .news-title,
.trending-bar .label, .breaking-bar .label,
.breaking-title, .breaking-text {
    background: var(--dc-cor) !important;
    color: #fff !important;
    padding: 6px 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

/* Primary navigation */
.main-menu li a, .navbar-nav li a, .mainmenu li a {
    color: var(--dc-slt) !important;
    font-weight: 600;
}
.main-menu li a:hover, .main-menu .current-menu-item > a,
.navbar-nav li a:hover, .navbar-nav .current-menu-item > a,
.mainmenu li a:hover, .mainmenu .current-menu-item > a {
    color: var(--dc-blue) !important;
}

/* Category badges */
.category-name a, .post-category a, .cat-btn, .cat-link,
.entry-category a, .post-tag, .blog-category,
.category-list a, .cat-meta a, .meta-categories a {
    background: var(--dc-cor) !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}
.category-name a:hover, .post-category a:hover, .cat-btn:hover,
.entry-category a:hover, .post-tag:hover, .blog-category:hover {
    background: var(--dc-blue) !important;
    color: #fff !important;
}

/* Buttons */
.btn, .button, .read-more, .more-link, button, input[type="submit"],
.wp-block-button__link, .submit-btn, .subscribe-btn {
    background: var(--dc-blue) !important;
    color: #fff !important;
    border-color: var(--dc-blue) !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}
.btn:hover, .button:hover, .read-more:hover, .more-link:hover,
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover,
.submit-btn:hover, .subscribe-btn:hover {
    background: var(--dc-cor) !important;
    border-color: var(--dc-cor) !important;
    color: #fff !important;
}

/* Article titles */
.entry-title a, .post-title a, .blog-title a, .title a,
h1.entry-title, h1.post-title, h2.entry-title, h2.post-title {
    color: var(--dc-slt) !important;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
}
.entry-title a:hover, .post-title a:hover, .blog-title a:hover, .title a:hover {
    color: var(--dc-blue) !important;
}

/* Post meta */
.entry-meta, .post-meta, .blog-meta, .author-name, .post-date,
.byline, .posted-on, .meta-author, .meta-date {
    color: var(--dc-mute) !important;
    font-size: 13px;
}
.entry-meta a, .post-meta a, .blog-meta a, .author-name a {
    color: var(--dc-mute) !important;
}
.entry-meta a:hover, .post-meta a:hover, .blog-meta a:hover {
    color: var(--dc-blue) !important;
}

/* Body typography */
body, .entry-content, .post-content, .blog-content {
    color: var(--dc-fg);
    line-height: 1.7;
}

.single .entry-content h2, .single .post-content h2,
.single-post .entry-content h2, .single-post .post-content h2 {
    color: var(--dc-slt);
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 0.6em;
    letter-spacing: -0.01em;
}
.single .entry-content h3, .single .post-content h3,
.single-post .entry-content h3, .single-post .post-content h3 {
    color: var(--dc-ind);
    font-weight: 700;
    margin-top: 1.6em;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--dc-cor);
    padding-left: 1.2em;
    margin-left: 0;
    color: var(--dc-slt);
    font-style: italic;
    background: #F8FAFC;
    padding: 1em 1.2em;
    border-radius: 0 4px 4px 0;
}

/* Pagination */
.pagination a, .page-numbers, .nav-links a, .blog-pagination a {
    color: var(--dc-blue);
    font-weight: 600;
    border-color: var(--dc-blue);
}
.pagination .current, .page-numbers.current, .blog-pagination .current {
    background: var(--dc-blue) !important;
    color: #fff !important;
    border-radius: 3px;
    padding: 6px 12px;
}

/* Widget titles */
.widget-title, .widget h3, .widget h2, .sidebar-widget-title,
.section-title h2, .section-title h3 {
    color: var(--dc-slt) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.08em;
    border-bottom: 3px solid var(--dc-cor);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

/* Tag cloud */
.tag-cloud-link, .widget_tag_cloud a {
    background: #F1F5F9 !important;
    color: var(--dc-slt) !important;
    border: 1px solid #E2E8F0 !important;
    padding: 5px 11px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    margin: 3px 2px !important;
    display: inline-block !important;
}
.tag-cloud-link:hover, .widget_tag_cloud a:hover {
    background: var(--dc-blue) !important;
    color: #fff !important;
    border-color: var(--dc-blue) !important;
}

/* Footer */
.footer-area, .site-footer, footer.site-footer, .footer-section,
.footer-top, .footer-middle, .footer-bottom {
    background: var(--dc-slt) !important;
    color: #cbd5e1 !important;
}
.footer-area a, .site-footer a, footer.site-footer a {
    color: #93C5FD !important;
}
.footer-area a:hover, .site-footer a:hover {
    color: var(--dc-cor) !important;
}
.copyright-text, .copyright-area {
    color: #94A3B8 !important;
    border-top: 1px solid #1E293B;
}

/* Top header bar */
.top-header, .header-top, .header-top-area {
    background: var(--dc-slt) !important;
    color: #cbd5e1 !important;
    border-bottom: 1px solid #1E293B;
}
.top-header a, .header-top a, .header-top-area a {
    color: #cbd5e1 !important;
}
.top-header a:hover, .header-top a:hover, .header-top-area a:hover {
    color: var(--dc-cor) !important;
}

/* Search form */
.search-form input[type="search"], .header-search-form input,
.widget_search input[type="search"] {
    border: 1px solid #E2E8F0 !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
}
.search-form input[type="search"]:focus,
.header-search-form input:focus {
    border-color: var(--dc-blue) !important;
    outline: none;
}

/* Table */
table th { background: var(--dc-ind) !important; color: #fff !important; }

/* Article body width on single posts */
.single-post .entry-content,
.single-post .post-content { max-width: 760px; margin: 0 auto; }

/* Image hover lift on cards */
.post-thumbnail img, .featured-image img, .blog-thumb img {
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.post-thumbnail:hover img, .featured-image:hover img, .blog-thumb:hover img {
    transform: scale(1.03);
}

/* Override hardcoded red/orange Kiante brand colors (#FF3524, #FF3A3A) */
[style*="#FF3524"], [style*="#ff3524"],
[style*="#FF3A3A"], [style*="#ff3a3a"],
[style*="#dc3545"], [style*="#e74c3c"], [style*="#ff6b35"], [style*="#f04438"] {
    color: var(--dc-cor) !important;
}
[style*="background:#FF3524"], [style*="background-color:#FF3524"],
[style*="background:#ff3524"], [style*="background-color:#ff3524"],
[style*="background:#FF3A3A"], [style*="background-color:#FF3A3A"],
[style*="background:#ff3a3a"], [style*="background-color:#ff3a3a"],
[style*="background:#dc3545"], [style*="background-color:#dc3545"],
[style*="background:#e74c3c"], [style*="background-color:#e74c3c"],
[style*="background:#ff6b35"], [style*="background-color:#ff6b35"] {
    background: var(--dc-cor) !important;
    background-color: var(--dc-cor) !important;
}

/* Catch-all for any remaining hardcoded red main.css rules */
.theme-color, .text-theme-color { color: var(--dc-blue) !important; }
.bg-theme-color { background: var(--dc-blue) !important; }
.btn-theme { background: var(--dc-blue) !important; color: #fff !important; border-color: var(--dc-blue) !important; }

/* Hide breadcrumb area on all pages (kept theme option but Kiante hardcodes
   breadcrumb in search/archive/page/category templates). */
.theme-breadcrumb__Wrapper.theme-breacrumb-area,
.theme-breadcrumb__Wrapper,
.theme-breacrumb-area { display: none !important; }

/* Logo size — Kiante main.css caps to 150px (too small); we go to 260 */
.logo img, .logo.theme-logo img, .header-logo img, a.logo img {
    max-width: 260px !important;
    width: auto !important;
    height: auto !important;
}
@media (max-width: 991px) {
    .logo img, .logo.theme-logo img, .header-logo img, a.logo img {
        max-width: 200px !important;
    }
}

/* Push primary menu to the RIGHT edge of its column, next to the search box.
   Logo stays left, menu hugs right, search sits immediately after. */
.nav-design-one .container.nav-wrapp-one,
.nav-design-one .nav-wrapp-one {
    max-width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}
.nav-menu-wrapper .mainmenu {
    text-align: right !important;
    padding-right: 0 !important;
}
.nav-menu-wrapper .mainmenu > ul,
.nav-menu-wrapper .mainmenu > .menu,
.nav-menu-wrapper .mainmenu ul#primary-menu {
    display: flex !important;
    justify-content: flex-end !important;
    -webkit-box-pack: end !important;
    -ms-flex-pack: end !important;
    flex-wrap: wrap;
    padding-right: 0 !important;
    margin-right: 0 !important;
}
.nav-menu-wrapper .mainmenu ul li:last-child a {
    padding-right: 0 !important;
}
