/*
Theme Name: Ruki - Child Theme
Theme URI: http://www.3forty.media/ruki
Author: 3FortyMedia
Author URI: http://www.3forty.media
Description: Ruki Child theme
Version: 1.1
Text Domain: ruki
Template: ruki
*/

/* ============================================================
   LQDD Charte Graphique — Global Styles
   Theme enfant ruki-child | v1.1 | 2026-03-19
   ============================================================ */

/* ----------------------------------------------------------
   1. OVERRIDE COULEURS THEME RUKI
   Remplace violet/rose/creme -> bleu marine/or/blanc
   ---------------------------------------------------------- */
:root {
    /* Theme palette override */
    --theme-color-1: #1a365d !important;
    --theme-color-2: #dbb14f !important;
    --theme-color-3: #2d4a7a !important;
    --theme-color-4: #25D366 !important;
    --theme-color-5: #1a365d !important;
    --link-color: #1a365d !important;
    --link-hover-color: #2d4a7a !important;
    --body-background: #ffffff !important;
    --button-color: #1a365d !important;
    --very-dark-grey: #2e2f33;
    --dark-grey: #45464b;
    /* Customizer-specific variables (header, widgets) */
    --custom-header-background: #1a365d !important;
    --sticky-header-background: #1a365d !important;
    --widget-background: #1a365d !important;
    --widget-title-color: #ffffff !important;
    --widget-font-color: #e2e8f0 !important;
    --widget-link-color: #ffffff !important;
    --widget-meta-color: #b8c9e8 !important;
    --widget-line-color: rgba(255, 255, 255, 0.2) !important;
    --widget-first-count-color: #e2e8f0 !important;
}

body {
    background-color: #ffffff !important;
}

/* ----------------------------------------------------------
   2. BLOCKQUOTES — Fix theme Ruki (36px/900/lavande -> normal)
   ---------------------------------------------------------- */
blockquote {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #2d3748 !important;
    background: transparent;
    border-left: none;
    padding: 0;
    margin: 20px 0;
}

/* ----------------------------------------------------------
   3. LAW BOX — Citation de loi
   Usage: <blockquote class="lqdd-law">
   ---------------------------------------------------------- */
.lqdd-law {
    background: #f0f4f8 !important;
    border-left: 4px solid #1a365d !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    border-radius: 0 8px 8px 0 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #2d3748 !important;
}

.lqdd-law strong {
    font-size: 17px;
    color: #1a365d;
}

.lqdd-law em {
    color: #4a5568;
    font-size: 15px;
}

/* ----------------------------------------------------------
   4. WARNING BOX — Attention / Avertissement
   Usage: <div class="lqdd-warning">
   ---------------------------------------------------------- */
.lqdd-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.6;
}

.lqdd-warning strong {
    color: #856404;
}

/* ----------------------------------------------------------
   5. SUCCESS BOX — Conseil pratique
   Usage: <div class="lqdd-success">
   ---------------------------------------------------------- */
.lqdd-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.6;
}

.lqdd-success strong {
    color: #2e7d32;
}

/* ----------------------------------------------------------
   6. INFO BOX — Bon a savoir
   Usage: <div class="lqdd-info">
   ---------------------------------------------------------- */
.lqdd-info {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    color: #1565c0;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.6;
}

.lqdd-info strong {
    color: #1565c0;
}

/* ----------------------------------------------------------
   7. MID-ARTICLE CTA
   Usage: <div class="lqdd-mid-cta">
   ---------------------------------------------------------- */
.lqdd-mid-cta {
    background: #f7fafc;
    border: 2px solid #1a365d;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

.lqdd-mid-cta p {
    margin: 0 0 10px;
}

.lqdd-mid-cta .lqdd-mid-cta-title {
    font-weight: bold;
    font-size: 1.1em;
    color: #1a365d;
}

.lqdd-mid-cta a {
    font-weight: bold;
    text-decoration: none;
}

.lqdd-mid-cta a.lqdd-link-whatsapp {
    color: #25D366;
}

.lqdd-mid-cta a.lqdd-link-form {
    color: #1a365d;
}

/* ----------------------------------------------------------
   8. FAQ SECTION
   Usage: <div class="lqdd-faq" itemscope ...>
   ---------------------------------------------------------- */
.lqdd-faq h3 {
    font-size: 22px !important;
    color: #1a365d !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
}

.lqdd-faq p {
    font-size: 16px;
    line-height: 1.7;
    color: #45464b;
}

/* ----------------------------------------------------------
   9. SOURCES SECTION
   Usage: <div class="lqdd-sources">
   ---------------------------------------------------------- */
.lqdd-sources h2 {
    margin-top: 40px;
}

.lqdd-sources ul {
    font-size: 15px;
    line-height: 1.8;
}

.lqdd-sources a {
    color: #1a365d;
}

.lqdd-sources a:hover {
    color: #2d4a7a;
}

/* ----------------------------------------------------------
   10. CARDS LAYOUT (flex)
   Usage: <div class="lqdd-cards"><div class="lqdd-card">...
   ---------------------------------------------------------- */
.lqdd-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 30px 0;
}

.lqdd-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    flex: 1;
    min-width: 130px;
}

.lqdd-card .lqdd-card-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a365d;
}

.lqdd-card .lqdd-card-label {
    display: block;
    font-size: 13px;
    color: #546171;
}

/* ----------------------------------------------------------
   11. HERO BLOCK
   Usage: <div class="lqdd-hero">
   ---------------------------------------------------------- */
.lqdd-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7a 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.lqdd-hero h2 {
    color: #fff !important;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.lqdd-hero .lqdd-hero-subtitle {
    display: block;
    font-size: 17px;
    color: #e2e8f0;
}

/* ----------------------------------------------------------
   12. CTA BOX (vert — fin d'article / pages statiques)
   Usage: <div class="lqdd-cta-green">
   ---------------------------------------------------------- */
.lqdd-cta-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
    text-align: center;
}

.lqdd-cta-green .lqdd-cta-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 8px 0;
}

.lqdd-cta-green .lqdd-cta-subtitle {
    display: block;
    font-size: 15px;
    color: #333;
    margin: 0 0 15px 0;
}

/* ----------------------------------------------------------
   13. BUTTONS
   ---------------------------------------------------------- */
.lqdd-btn-primary {
    display: inline-block;
    background: #1a365d;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s ease;
}

.lqdd-btn-primary:hover {
    background: #2d4a7a;
    color: #fff !important;
}

.lqdd-btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: #003c14 !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s ease;
}

.lqdd-btn-whatsapp:hover {
    background: #1da851;
    color: #003c14 !important;
}

.lqdd-btn-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid #1a365d;
    color: #1a365d !important;
    padding: 10px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
}

.lqdd-btn-secondary:hover {
    background: #1a365d;
    color: #fff !important;
}

/* ----------------------------------------------------------
   14. TABLES (articles)
   Usage: <table class="lqdd-table">
   ---------------------------------------------------------- */
.lqdd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 15px 0;
}

.lqdd-table th {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 10px;
    text-align: left;
    font-weight: 700;
    color: #1a365d;
}

.lqdd-table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
}

.lqdd-table tr:hover td {
    background: #f7fafc;
}

/* ----------------------------------------------------------
   15. PROFILE / BIO CARD
   Usage: <div class="lqdd-bio-card">
   ---------------------------------------------------------- */
.lqdd-bio-card {
    background: #f7fafc;
    border-left: 4px solid #1a365d;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
}

.lqdd-bio-card .lqdd-bio-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 8px 0;
}

.lqdd-bio-card .lqdd-bio-text {
    display: block;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   16. ENGAGEMENT CARDS (Source / Vulgarise / Confidentiel)
   ---------------------------------------------------------- */
.lqdd-engage-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 30px 0;
}

.lqdd-engage-card {
    flex: 1;
    min-width: 200px;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
}

.lqdd-engage-card--source {
    background: #e8f5e9;
}

.lqdd-engage-card--source .lqdd-engage-title {
    color: #2e7d32;
}

.lqdd-engage-card--vulgarise {
    background: #e3f2fd;
}

.lqdd-engage-card--vulgarise .lqdd-engage-title {
    color: #1565c0;
}

.lqdd-engage-card--confidentiel {
    background: #fff3e0;
}

.lqdd-engage-card--confidentiel .lqdd-engage-title {
    color: #e65100;
}

.lqdd-engage-icon {
    display: block;
    font-size: 22px;
    margin: 0 0 5px 0;
}

.lqdd-engage-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.lqdd-engage-desc {
    display: block;
    font-size: 13px;
    color: #333;
    margin-top: 4px;
}

/* ----------------------------------------------------------
   17. DATE / META LINE
   Usage: <span class="lqdd-date">Derniere mise a jour : ...</span>
   ---------------------------------------------------------- */
.lqdd-date {
    display: block;
    font-size: 13px;
    color: #546171;
    margin-bottom: 20px;
}

/* ----------------------------------------------------------
   18. IMAGES (articles)
   ---------------------------------------------------------- */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ----------------------------------------------------------
   19. FLOATING WHATSAPP BUTTON (style from child theme)
   ---------------------------------------------------------- */
#lqdd-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    #lqdd-whatsapp-float {
        bottom: 15px !important;
        right: 15px !important;
        width: 55px !important;
        height: 55px !important;
    }
}

/* ----------------------------------------------------------
   20. POST-ARTICLE CTA BOX (mu-plugin)
   ---------------------------------------------------------- */
.lqdd-cta-box a:hover {
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
   21. RESPONSIVE ADJUSTMENTS
   ---------------------------------------------------------- */
@media (max-width: 600px) {
    .lqdd-hero {
        padding: 25px 20px;
    }

    .lqdd-hero h2 {
        font-size: 22px;
    }

    .lqdd-cards,
    .lqdd-engage-cards {
        flex-direction: column;
    }

    .lqdd-card,
    .lqdd-engage-card {
        min-width: auto;
    }

    .lqdd-cta-green {
        padding: 20px;
    }

    .lqdd-btn-primary,
    .lqdd-btn-whatsapp {
        display: block;
        text-align: center;
        margin-bottom: 8px;
    }
}

/* ----------------------------------------------------------
   22. FOOTER OVERRIDE
   Override Ruki Customizer footer colors (has-custom-background-color)
   ---------------------------------------------------------- */
.site-footer,
footer.site-footer,
#colophon,
#colophon .footer-widget-area,
#colophon .footer-widget-area.has-custom-background-color,
#colophon .footer-widget-area.footer-bottom,
#colophon .footer-bottom-data,
.site-footer .footer-widget-area,
.site-footer .footer-bottom-data {
    background-color: #1a365d !important;
    background: #1a365d !important;
    color: #e2e8f0 !important;
}

/* Footer links — gold on navy */
.site-footer a,
footer.site-footer a,
#colophon a,
#colophon .footer-bottom-data a,
#colophon .footer-widget-area a {
    color: #ffffff !important;
}

.site-footer a:hover,
footer.site-footer a:hover,
#colophon a:hover,
#colophon .footer-bottom-data a:hover {
    color: #dbb14f !important;
}

/* Footer widget titles */
.site-footer .widget-title,
#colophon .widget-title {
    color: #ffffff !important;
}

/* Footer text */
#colophon .footer-bottom-data,
#colophon .footer-bottom-data p,
#colophon .footer-bottom-data span {
    color: #e2e8f0 !important;
}

/* ----------------------------------------------------------
   23. LINK STYLES — Ensure consistency
   ---------------------------------------------------------- */
.entry-content a {
    color: #1a365d;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #2d4a7a;
}

/* ----------------------------------------------------------
   24. SCROLL-TO-TOP (if theme has one)
   ---------------------------------------------------------- */
.scroll-to-top,
#scroll-to-top {
    background-color: #1a365d !important;
}

.scroll-to-top:hover,
#scroll-to-top:hover {
    background-color: #2d4a7a !important;
}

/* ----------------------------------------------------------
   25. ACCESSIBILITY FIXES (PageSpeed Lighthouse)
   ---------------------------------------------------------- */

/* A11y: Footer links touch target size (min 48px) */
#colophon .footer-bottom-data a {
    display: inline-block;
    padding: 10px 12px;
    min-height: 48px;
    line-height: 28px;
}

/* A11y: Social icon links - add aria-label via CSS content (backup) */
/* Note: aria-label must be added in HTML/PHP; CSS cannot fix this */
/* Social icon touch targets (min 48x48) */
#colophon .social-icons a {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* A11y: Pagination touch targets */
.page-numbers {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* A11y: Article card overlays — ensure text contrast with text-shadow */
.blog-style-cover .entry-title-link,
.blog-style-cover .entry-meta,
.blog-style-cover .entry-meta a,
.blog-style-cover time {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

/* A11y: Widget time/date contrast on navy */
.ruki_posts_widget time,
.ruki_posts_widget .entry-date {
    color: #b8c9e8 !important;
}

/* A11y: Widget numbers contrast */
.ruki_posts_widget .list-number {
    color: #e2e8f0 !important;
}

/* ----------------------------------------------------------
   26. MASQUER LE NUAGE DE TAGS (Phase 0 — confiance)
   Tags inappropriés (agression, nues, photos-nues...) détruisent la crédibilité.
   Recommandation unanime : Kofi (Marketing), Afi (Produit), Ama (Branding).
   ---------------------------------------------------------- */
.site-search .widget_tag_cloud {
    display: none !important;
}

/* ----------------------------------------------------------
   27. CORRIGER DOUBLE H1 HOMEPAGE
   Le thème Ruki génère 2 H1 sur la homepage. Le titre du site
   dans .site-search doit être rétrogradé visuellement.
   ---------------------------------------------------------- */
.home .site-search .site-title {
    font-size: 1.2rem;
    font-weight: 400;
}

/* ----------------------------------------------------------
   28. WHATSAPP FLOAT — Eviter chevauchement avec back-to-top
   Le bouton WhatsApp et le back-to-top se superposent en bas
   a droite. On decale le WhatsApp plus haut.
   ---------------------------------------------------------- */
#lqdd-whatsapp-float {
    bottom: 90px !important;
}

.scroll-to-top,
#scroll-to-top,
.back-to-top,
a.back-to-top {
    bottom: 20px !important;
    right: 20px !important;
    z-index: 998 !important;
}

@media (max-width: 768px) {
    #lqdd-whatsapp-float {
        bottom: 80px !important;
    }
}

/* ----------------------------------------------------------
   29. SIDEBAR NAV — Ruki sidebar menu
   Actual DOM: <aside class="mobile-navigation slide-menu sidebar">
   Children: span.close-menu, div.logo-wrapper, nav.primary-nav-sidebar-wrapper,
             section.widget#block-10
   Override all colors for navy/gold/white coherence.
   ---------------------------------------------------------- */

/* Sidebar background */
aside.mobile-navigation.slide-menu.sidebar,
.mobile-navigation.slide-menu.sidebar {
    background-color: #1a365d !important;
}

/* Logo wrapper — site title link */
.mobile-navigation.sidebar .logo-wrapper a,
aside.sidebar .logo-wrapper a,
.slide-menu .logo-wrapper a {
    color: #ffffff !important;
}

/* Close button (X) */
.mobile-navigation.sidebar .close-menu,
aside.sidebar .close-menu,
.slide-menu .close-menu {
    color: #ffffff !important;
}
.mobile-navigation.sidebar .close-menu:hover {
    color: #dbb14f !important;
}

/* All menu links — white by default */
.mobile-navigation.sidebar a,
.mobile-navigation.sidebar .menu-item a,
.mobile-navigation.sidebar .primary-nav-sidebar-wrapper a,
aside.sidebar .menu-item a,
.slide-menu.sidebar .menu-item a {
    color: #ffffff !important;
    transition: color 0.2s ease;
}

/* Menu links — gold on hover */
.mobile-navigation.sidebar a:hover,
.mobile-navigation.sidebar .menu-item a:hover,
.mobile-navigation.sidebar .primary-nav-sidebar-wrapper a:hover,
aside.sidebar .menu-item a:hover,
.slide-menu.sidebar .menu-item a:hover {
    color: #dbb14f !important;
}

/* Current/active menu item — gold */
.mobile-navigation.sidebar .current-menu-item > a,
.mobile-navigation.sidebar .current_page_item > a,
.mobile-navigation.sidebar .current-menu-ancestor > a,
aside.sidebar .current-menu-item > a,
aside.sidebar .current_page_item > a {
    color: #dbb14f !important;
    font-weight: 700;
}

/* Sub-menu links — slightly lighter white */
.mobile-navigation.sidebar .sub-menu a,
.mobile-navigation.sidebar .sub-menu .menu-item a,
aside.sidebar .sub-menu a {
    color: #e2e8f0 !important;
}
.mobile-navigation.sidebar .sub-menu a:hover,
aside.sidebar .sub-menu a:hover {
    color: #dbb14f !important;
}

/* Sidebar arrows (expand/collapse sub-menus) */
.mobile-navigation.sidebar .ruki-arrow,
.mobile-navigation.sidebar .menu-toggle-arrow,
.mobile-navigation.sidebar .sub-menu-toggle,
aside.sidebar .ruki-arrow {
    color: #dbb14f !important;
}

/* Widget block at bottom (#block-10 "La Question De Droit") */
.mobile-navigation.sidebar .widget,
.mobile-navigation.sidebar #block-10,
aside.sidebar .widget,
aside.sidebar #block-10 {
    color: #ffffff !important;
}
.mobile-navigation.sidebar .widget a,
.mobile-navigation.sidebar #block-10 a,
aside.sidebar .widget a {
    color: #dbb14f !important;
}
.mobile-navigation.sidebar .widget a:hover,
aside.sidebar .widget a:hover {
    color: #ffffff !important;
}

/* Widget headings */
.mobile-navigation.sidebar .widget-title,
.mobile-navigation.sidebar .wp-block-heading,
aside.sidebar .widget-title,
aside.sidebar .wp-block-heading {
    color: #ffffff !important;
}

/* All text inside sidebar — ensure white */
.mobile-navigation.sidebar p,
.mobile-navigation.sidebar span,
.mobile-navigation.sidebar li,
aside.sidebar p,
aside.sidebar span {
    color: #ffffff !important;
}
