/* Author: MEMORA solutions, https://memora.solutions ; info@memora.ca */
/* ═══════════════════════════════════════════════════
   CHARTE GRAPHIQUE — LA VEILLE DE STEF
   Override CSS chargé APRÈS le thème Bloggar
   Version 2.0 — Mars 2026
   ═══════════════════════════════════════════════════ */

/* Alpine.js : masquer les éléments x-cloak avant initialisation (évite le flash) */
[x-cloak] { display: none !important; }

:root {
    --c-primary: #064E5A; /* #217 WCAG AAA 9.35:1 sur blanc (avant #0B7285 5.59:1 FAIL AAA) - S83 */
    --c-primary-hover: #032E36; /* #217 WCAG AAA darken cohérent (14.50:1 sur blanc) - S83 */
    --c-primary-light: #F0FAFB;
    --c-primary-badge: #DDF4F8;
    --c-accent: #9A2A06; /* #217 WCAG AAA 7.76:1 sur blanc (avant #C2410C 5.18:1 FAIL) */
    --c-accent-hover: #771E04; /* #217 WCAG AAA hover plus foncé cohérent (10.65:1) */
    --c-accent-light: #FDF5ED;
    --c-dark: #1A1D23;
    --c-text-secondary: #4a4f5c;
    --c-text-muted: #52586a;
    --f-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --f-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --c-danger: #DC2626;
    --c-danger-hover: #B91C1C;
    --c-surface: #F8FAFB;
    --r-base: 0.75rem;
    --r-btn: 0.5rem;
}

/* ── 0b. SECTION AUTHOR BYLINE (#82 S90 — mono-auteur listing pattern Korben/NN/g 2026) ── */
/* Remplace la byline avatar+nom répétée sur chaque carte. Affichée 1× au-dessus de la grille. */
.section-author-byline {
    display: flex;
    align-items: center;
    margin: 0 0 1.25rem 0;
    padding: 0.625rem 0.875rem;
    background: rgba(6, 78, 90, 0.04);
    border-left: 3px solid var(--c-primary);
    border-radius: 0.375rem;
}
.section-author-byline-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--c-dark);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.3;
    flex-wrap: wrap;
}
.section-author-byline-link:hover .section-author-byline-cta,
.section-author-byline-link:focus-visible .section-author-byline-cta {
    text-decoration: underline;
}
.section-author-byline-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.section-author-byline-text {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    flex-wrap: wrap;
}
.section-author-byline-prefix { color: var(--c-text-muted); font-weight: 400; }
.section-author-byline-name { font-weight: 600; color: var(--c-dark); }
.section-author-byline-cta { color: var(--c-primary); font-weight: 500; }

/* ── 0c. CARD META COMPACT (#82 S90 — remplace byline répétée sur cartes listing) ── */
.card-meta-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin: 0.5rem 0 0.75rem 0;
    line-height: 1.3;
}
.card-meta-compact-date { white-space: nowrap; }
.card-meta-compact-sep { color: var(--c-text-muted); opacity: 0.5; }
.card-meta-compact-readtime { white-space: nowrap; }

/* ── 0a. BYLINE BENTO EEAT (#218 S83 — cards blog Option A 95/100 NN/g+EEAT 2026) ── */
/* GARDE pour page article single. Retiré des LISTINGS S90 #82 (Option D pp_search 2026). */
.entry-meta-eeat {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.entry-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.entry-author-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
.entry-author-name {
    font-weight: 600;
    color: var(--c-dark);
    font-size: 0.9rem;
    line-height: 1.25;
    font-family: var(--f-heading);
}
.entry-author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.entry-author-name a:hover,
.entry-author-name a:focus {
    color: var(--c-primary);
    text-decoration: underline;
}

/* ── 0a-bio. BYLINE BIO TOOLTIP (#218 S84 #3 — hover/click avatar blog cards EEAT 2026 NN/g) ── */
.byline-bio-wrap {
    position: relative;
    display: inline-block;
}
.byline-bio-wrap .entry-author-avatar {
    cursor: pointer;
}
.byline-bio-tooltip {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    padding: 14px 16px !important;
    min-width: 240px !important;
    max-width: 300px !important;
    width: max-content !important;
    font-size: 0.82rem !important;
    color: var(--c-text-secondary, #4a4f5c) !important;
    line-height: 1.5 !important;
    text-align: left !important;
    font-family: var(--f-body, sans-serif) !important;
    font-weight: 400 !important;
}
.byline-bio-tooltip strong {
    display: block !important;
    color: var(--c-dark, #1A1D23) !important;
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
    font-family: var(--f-heading, sans-serif) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.byline-bio-tooltip p {
    margin: 0 0 10px 0 !important;
    color: var(--c-text-secondary, #4a4f5c) !important;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}
.byline-bio-tooltip a {
    color: var(--c-primary, #064E5A) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.82rem !important;
    background: transparent !important;
}
.byline-bio-tooltip a:hover,
.byline-bio-tooltip a:focus {
    text-decoration: underline !important;
    color: var(--c-primary, #064E5A) !important;
}
.entry-author-role {
    font-size: 0.75rem;
    color: var(--c-primary);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.entry-author-meta {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    line-height: 1.35;
    margin-top: 2px;
}
.entry-author-meta time {
    color: inherit;
    font-variant-numeric: tabular-nums;
}

/* ── 0b. WCAG AAA OVERRIDE BOOTSTRAP TEXT-MUTED (#217 S83 Lot 7) ── */
/* Bootstrap default .text-muted = #6c757d (4.69:1 FAIL AAA). Override avec --c-text-muted #52586a (7.09:1 PASS AAA). */
.text-muted { color: var(--c-text-muted) !important; }

/* ── 0c. WCAG AAA OVERRIDE COOKIES BANNER CC-TEXT (#217 S83 Lot 8) ── */
/* .cc-text rendu effectif = #777 4.48:1 FAIL AAA (opacity 0.9 sur #1f2937 + override Bloggar). Force AAA via spécificité. */
#cc-host .cc-text,
#cc-host .cc-link { color: var(--c-text-muted, #52586a) !important; opacity: 1 !important; }

/* ── 0d. WCAG AAA OVERRIDE BLOGGAR P COLOR GLOBAL (#217 S84 Lot M3 — investigation S84-Volet D) ── */
/* Bloggar critical-css.blade.php inline déclare `p { color: rgb(119,119,119) }` = #777 4.48:1 FAIL AA+AAA.
   Cause racine documentée memory : règle directe sur sélecteur de type bat héritage parent (CSS inheritance lowest priority).
   Override par cascade order : charte.css charge APRÈS critical-css inline → spécificité égale (0,0,0,1), charte gagne.
   Pas de !important : préserve overrides inline `style="color:..."` et class plus spécifiques (.wpo-blog-hero-area p, etc.).
   #4a4f5c = 8.19:1 PASS AAA sur blanc, 7.86:1 PASS AAA sur #F9FAFF. */
p { color: var(--c-text-secondary, #4a4f5c); }

/* ── 0. ANTI-SCROLL HORIZONTAL GLOBAL (S80 #47) ── */
/* overflow-x: clip > overflow-x: hidden : ne casse pas position:sticky enfants. Support Chrome 90+, Safari 16+, Firefox 81+. */
html, body {
    overflow-x: clip;
    max-width: 100%;
}
img, video, iframe, svg, embed, object {
    max-width: 100%;
    height: auto;
}
.table-responsive { max-width: 100%; overflow-x: auto; }
.crossword-grid { max-width: 100%; overflow-x: auto; }

/* ── 0b. POPUP OVERLAY GLOBAL (S80 #46) ── */
/* Classe unique pour toute modale custom Alpine x-show. Display:grid + place-items:center robuste vs conflit Alpine display:none/block (vs flex). */
.popup-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    padding: 1rem;
}
.popup-overlay > .popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* ── 1. TYPOGRAPHIE GLOBALE ── */

body {
    font-family: var(--f-body);
    color: var(--c-text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    color: var(--c-dark);
    font-weight: 700;
}

a { transition: color 0.25s ease; }
a:hover { color: var(--c-primary); }

/* ── 2. BOUTONS ── */

.theme-btn, .theme-btn-s3, .theme-btn-s4, .view-cart-btn {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    font-family: var(--f-heading);
    font-weight: 700;
}

.theme-btn:hover, .theme-btn-s3:hover, .theme-btn-s4:hover {
    background-color: var(--c-primary-hover);
    border-color: var(--c-primary-hover);
}

/* ── 3. HEADER & TOPBAR ── */

.topbar,
.topbar .row {
    background-color: var(--c-primary);
    border-bottom: none;
}
.topbar {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.topbar .contact-intro ul {
    display: flex;
    align-items: center;
}

.topbar .contact-intro ul li {
    color: #fff;
    display: flex;
    align-items: center;
}

.topbar .contact-intro ul li.update span {
    background: var(--c-dark);
    color: #fff;
    font-family: var(--f-heading);
    font-weight: 700;
    border-radius: var(--r-btn);
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
}

.topbar .contact-info ul li a {
    color: rgba(255, 255, 255, 0.85);
}

.topbar .contact-info ul li a:hover {
    color: #fff;
}
/* Masquer la topbar sur mobile — prend trop de place */
@media (max-width: 575px) {
    .topbar { display: none !important; }
}

.wpo-site-header .navigation .navbar-nav > li > a {
    font-family: var(--f-heading);
    font-weight: 600;
}

.wpo-site-header .navigation .navbar-nav > li > a:hover,
.wpo-site-header .navigation .navbar-nav > li > a.active {
    color: var(--c-primary);
}

.wpo-site-header .navigation .navbar-nav > li .sub-menu {
    border-top: 3px solid var(--c-primary);
}

.wpo-site-header .navigation .navbar-nav > li .sub-menu li a {
    color: #d1d5db;
}
.wpo-site-header .navigation .navbar-nav > li .sub-menu li a:hover {
    color: var(--c-primary);
}

/* Réduire la hauteur du header navbar */
.wpo-site-header .navigation #navbar > ul > li > a {
    padding-top: 20px;
    padding-bottom: 20px;
}
@media (max-width: 1500px) {
    .wpo-site-header .navigation #navbar > ul > li > a {
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

/* ── 4. HERO GRID ── */

.wpo-blog-hero-area .wpo-blog-content .thumb {
    background: var(--c-accent);
    color: #fff;
    font-family: var(--f-heading);
    font-weight: 700;
}

.wpo-blog-hero-area .wpo-blog-content h2 a {
    font-family: var(--f-heading);
    font-weight: 800;
}

.wpo-blog-hero-area .wpo-blog-content h2 a:hover {
    color: var(--c-accent);
}

/* ── 5. BREAKING NEWS ── */

.wpo-breacking-news .b-title span {
    background: var(--c-accent);
    color: #fff;
    font-family: var(--f-heading);
    font-weight: 700;
}

.wpo-breacking-news .wpo-breacking-text h3 a:hover {
    color: var(--c-primary);
}

/* ── 6. HIGHLIGHTS & SECTIONS ── */

.wpo-section-title h2 {
    font-family: var(--f-heading);
    font-weight: 800;
    color: var(--c-dark);
}

.wpo-section-title h2::after {
    background-color: var(--c-primary);
}

.wpo-blog-highlights-section .wpo-blog-item .thumb,
.wpo-blog-sponsored-section .wpo-blog-item .thumb {
    background: var(--c-accent);
    color: #fff;
    font-family: var(--f-heading);
    font-weight: 700;
}

.wpo-blog-highlights-section .wpo-blog-content h2 a,
.wpo-blog-sponsored-section .wpo-blog-content h2 a {
    font-family: var(--f-heading);
    font-weight: 700;
    color: var(--c-dark);
}

.wpo-blog-highlights-section .wpo-blog-content h2 a:hover,
.wpo-blog-sponsored-section .wpo-blog-content h2 a:hover {
    color: var(--c-primary);
}

/* ── 7. SIDEBAR ── */

.blog-sidebar .widget h3 {
    font-family: var(--f-heading);
    font-weight: 700;
    color: var(--c-dark);
}

.blog-sidebar .category-widget ul li a:hover {
    color: var(--c-primary);
}

.blog-sidebar .recent-post-widget .post h4 a {
    font-family: var(--f-heading);
    color: var(--c-dark);
}

.blog-sidebar .recent-post-widget .post h4 a:hover {
    color: var(--c-primary);
}

.blog-sidebar .wpo-contact-widget {
    background: var(--c-primary);
}

.blog-sidebar .wpo-contact-widget a {
    background: var(--c-accent);
    color: #fff;
}

.blog-sidebar .wpo-contact-widget a:hover {
    background: var(--c-accent-hover);
}

.blog-sidebar .about-widget .social ul li a:hover {
    color: var(--c-primary);
}

.blog-sidebar .tag-widget ul li a:hover {
    background: var(--c-primary);
    color: #fff;
}

/* ── 8. BREADCRUMB ── */

.wpo-breadcumb-area {
    background: linear-gradient(135deg, var(--c-dark) 0%, #2D3039 50%, #3F4451 100%) !important;
}

.wpo-breadcumb-area .wpo-breadcumb-wrap h2 {
    font-family: var(--f-heading);
    font-weight: 800;
}

.wpo-breadcumb-area .wpo-breadcumb-wrap ul li a:hover {
    color: #FED7AA;
}

.wpo-breadcumb-area .wpo-breadcumb-wrap ul li:last-child span {
    color: #FED7AA;
}

/* ── 9. BLOG LISTING ── */

.wpo-blog-pg-section .entry-details h3 a,
.wpo-blog-section .entry-details h3 a {
    font-family: var(--f-heading);
    font-weight: 700;
    color: var(--c-dark);
}

.wpo-blog-pg-section .entry-details h3 a:hover,
.wpo-blog-section .entry-details h3 a:hover {
    color: var(--c-primary);
}

.wpo-blog-pg-section .entry-meta ul li,
.wpo-blog-pg-section .entry-meta ul li a {
    color: var(--c-text-muted);
}

.wpo-blog-pg-section .entry-meta ul li a:hover {
    color: var(--c-primary);
}

.wpo-blog-pg-section .entry-meta ul li i,
.wpo-blog-section .entry-meta ul li i {
    color: var(--c-accent);
}

.read-more {
    color: var(--c-primary);
    font-family: var(--f-heading);
    font-weight: 700;
    /* WCAG 2.5.8 #217 S84 — target size 24x24 min via inline-block + padding vertical (avant 129x18 FAIL critical) */
    display: inline-block;
    padding: 4px 0;
    min-height: 24px;
}

.read-more:hover {
    color: var(--c-accent);
}

/* ── 10. BLOG SINGLE ── */

.wpo-blog-single-section .entry-meta ul li a {
    color: var(--c-text-muted);
}

.wpo-blog-single-section .entry-meta ul li a:hover {
    color: var(--c-primary);
}

.wpo-blog-single-section .entry-details h2 {
    font-family: var(--f-heading);
    font-weight: 800;
}

.tag-share .tag ul li a {
    color: var(--c-primary);
}

.tag-share .tag ul li a:hover {
    background: var(--c-primary);
    color: #fff;
}

.author-box {
    background: var(--c-primary-light);
}

.author-box .author-content .author-name {
    color: var(--c-primary);
    font-family: var(--f-heading);
}

/* ── 11. NEWSLETTER ── */

.wpo-subscribe-section {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-hover) 100%);
    /* S89 fix asymétrie : Bloggar force padding-top:0 → on rétablit padding symétrique */
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}
@media (max-width: 767px) {
    .wpo-subscribe-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

.wpo-subscribe-section .subscribe-text h3 {
    font-family: var(--f-heading);
    font-weight: 800;
}

.wpo-subscribe-section .subscribe-form button {
    background: var(--c-accent);
}

.wpo-subscribe-section .subscribe-form button:hover {
    background: var(--c-accent-hover);
}

/* ── 12. FOOTER ── */

.wpo-site-footer {
    background-color: var(--c-dark);
}

.wpo-site-footer .widget-title h3 {
    font-family: var(--f-heading);
    font-weight: 700;
}

.wpo-site-footer a:hover {
    color: var(--c-accent);
}

.wpo-site-footer .tag-widget ul li a:hover {
    background: var(--c-accent);
    color: #fff;
}

/* ── 13. FORMS ── */

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 114, 133, 0.15);
}

/* ── 14. LAYOUT 2 COLONNES (article + sidebar) ── */

@media (min-width: 992px) {
    .wpo-blog-single-section > .container > .row,
    .wpo-blog-pg-section > .container > .row { flex-wrap: nowrap; }
    .wpo-blog-single-section .col.col-lg-8,
    .wpo-blog-pg-section .col.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; min-width: 0; overflow: hidden; }
    .wpo-blog-single-section .col.col-lg-4,
    .wpo-blog-pg-section .col.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* ── 15. BACK TO TOP ── */

.back-to-top {
    background: var(--c-primary);
}

.back-to-top:hover {
    background: var(--c-primary-hover);
}

/* ── 16. CONTACT PAGE ── */

.wpo-contact-pg-section .office-info-icon .icon {
    color: var(--c-primary);
}

.wpo-contact-pg-section .wpo-contact-title h2 {
    font-family: var(--f-heading);
    font-weight: 800;
}

/* ── 17. PAGINATION ── */

.pg-pagination li.active a,
.pg-pagination li a:hover {
    background: var(--c-primary);
    color: #fff;
}

/* ── 18. OVERRIDES COMPLETS - Toutes les occurrences #3756f7 restantes ── */

/* Sidebar */
.blog-sidebar .widget h3:before { background: var(--c-primary); }
.blog-sidebar .about-widget a:hover { color: var(--c-primary); }
.blog-sidebar .category-widget ul a:hover,
.blog-sidebar .category-widget ul li:hover:before { color: var(--c-primary); }

/* Blog listing */
.wpo-blog-pg-section .post h3 a:hover { color: var(--c-primary); }
.wpo-blog-pg-section .post a.read-more:hover { color: var(--c-primary); }
.wpo-blog-pg-section .entry-meta ul li a:hover { color: var(--c-primary); }
.wpo-blog-pg-section .format-video .video-holder:before { background: var(--c-primary); }
.wpo-blog-pg-section .format-gallery .owl-nav [class*=owl-]:hover { background: var(--c-primary); }

/* Social links */
.social-links li a:hover { background: var(--c-primary); }

/* Header side panel */
.wpo-site-header .header-right .header-right-menu-wrapper .header-right-menu-wrap .project-widget .post h4 a:hover { color: var(--c-primary); }
.wpo-site-header #navbar > ul li a:focus { color: var(--c-primary); }

/* Panneau lateral droit — contraste WCAG AA (liens blancs sur fond #292932) */
.header-right-menu-wrap { color: #FFFFFF !important; }
.header-right-menu-wrap a,
.header-right-menu-wrap ul li a,
.header-right-menu-wrap .widget-title h3 { color: #FFFFFF !important; }
.header-right-menu-wrap a:hover,
.header-right-menu-wrap ul li a:hover { color: #FFFFFF !important; opacity: 0.85; }

/* Footer */
.wpo-site-footer .link-widget ul li a:hover { color: var(--c-accent); }
.wpo-site-footer .social-widget ul li a:hover { background: var(--c-primary); color: #fff; }

/* Newsletter widget */
.wpo-newsletter-widget .form button { background: var(--c-primary); }
.wpo-newsletter-widget span a:hover { color: var(--c-primary); }

/* Contact form focus */
.wpo-contact-pg-section form select:focus,
.wpo-contact-pg-section form textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 0.2rem rgba(11, 114, 133, 0.15); }

/* Blog features */
.wpo-blog-features-section .wpo-blog-features-item .wpo-blog-features-text h2 a:hover { color: var(--c-primary); }
.wpo-blog-highlights-section .wpo-blog-highlights-wrap .wpo-blog-item .wpo-blog-content ul li a:hover { color: var(--c-primary); }

/* Sidebar articles récents - forcer les dimensions */
.blog-sidebar .recent-post-widget .post { display: flex; align-items: flex-start; gap: 12px; }
.blog-sidebar .recent-post-widget .post .img-holder { width: 70px; min-width: 70px; float: none; }
.blog-sidebar .recent-post-widget .post .img-holder img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }

/* ── 19. SECTION SOURCES ARTICLES ── */

.sources-section {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--c-primary-light);
    border-left: 4px solid var(--c-primary);
    border-radius: 0 var(--r-base) var(--r-base) 0;
}

.sources-section h2,
.sources-section h3,
.sources-section h4 {
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--c-dark);
    margin-bottom: 0.75rem;
}

.sources-section p {
    margin-bottom: 0.25rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.sources-section p:last-child { margin-bottom: 0; }
.sources-section p:empty { display: none; }

.sources-section p a,
.sources-section a {
    display: block;
    color: var(--c-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--c-primary);
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.sources-section p a:before,
.sources-section > a:before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--c-primary);
    font-weight: 700;
}

.sources-section a:hover {
    color: var(--c-primary-hover);
    border-bottom-style: solid;
}

/* Fonds bleu clair du thème → charte */
.wpo-blog-hero-area .wpo-blog-content .thumb,
.wpo-blog-highlights-section .wpo-blog-item .thumb,
.wpo-blog-sponsored-section .wpo-blog-item .thumb { background: var(--c-accent); color: #fff; }

/* ═══════════════════════════════════════════════════
   WCAG 2.2 AA — corrections d'accessibilité
   ═══════════════════════════════════════════════════ */

/* Target size minimum 24x24px (WCAG 2.5.8) */
.wpo-site-header .header-right .search-toggle-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Titres sections accueil - pas de capitalize americain (decision utilisateur) */
.wpo-section-title h2 { text-transform: none !important; }

/* Panneau lateral (drawer) - z-index au-dessus du cookie consent */
.wpo-site-header .header-right .header-right-menu-wrapper .header-right-menu-wrap {
    z-index: 10001 !important;
}
.cc-backdrop { z-index: 9998 !important; }
.cc-modal { z-index: 9999 !important; }

/* Contrastes footer panneau lateral (liens sur fond sombre) */
.header-right-menu-wrap .widget a {
    color: rgba(255, 255, 255, 0.85) !important;
}
.header-right-menu-wrap .widget a:hover {
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════
   UX/UI 2026 — améliorations globales
   ═══════════════════════════════════════════════════ */

/* Homepage cartes — border-radius modernisé */
.hp-card {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.hp-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    border-color: var(--c-primary) !important;
}

/* Homepage sections — espacement 48px pour respirer */
.hp-section { padding: 48px 0 !important; }
.hp-section-alt { padding: 48px 0 !important; }

/* Blog : hauteur images uniformes entre articles */
.wpo-blog-highlights-section .wpo-blog-item .wpo-blog-img img,
.wpo-blog-sponsored-section .wpo-blog-item .wpo-blog-img img {
    height: 220px !important;
    object-fit: cover !important;
}

/* Répertoire : cartes hover amélioré */
.rt-card { transition: transform 0.2s ease, box-shadow 0.2s ease !important; }
.rt-card:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important; }

/* Bouton vote : supprimer bordure/outline BS3 */
[aria-label*="vote" i], [aria-label*="Soutenir"], [aria-label*="Retirer"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* Glossaire : cartes hover uniforme avec homepage */
.gl-card { transition: transform 0.2s ease, box-shadow 0.2s ease !important; }
.gl-card:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important; }

/* ═══════════════════════════════════════════════════
   20. ESPACE UTILISATEUR (/dashboard, /user/*)
   Harmonisation panels BS3 avec la charte USNews
   ═══════════════════════════════════════════════════ */

/* Panels → cartes modernes */
.user-space .panel {
    background: #fff;
    border: 1px solid #E5E7EB !important;
    border-radius: var(--r-base) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border-top: none !important;
}
.user-space .panel-heading {
    background: transparent !important;
    border-bottom: 1px solid #F3F4F6 !important;
    padding: 16px 20px;
}
.user-space .panel-title {
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--c-dark);
}
.user-space .panel-body { padding: 20px; }
.user-space .panel-danger { border-left: 3px solid #DC2626 !important; }
.user-space .panel-primary { border: 2px solid var(--c-primary) !important; }
.user-space .panel-info { border: 1px solid #E5E7EB !important; }

/* Sidebar liens */
.user-space .list-group-item {
    border-radius: 0 !important;
    border-color: #F3F4F6 !important;
    padding: 12px 20px;
    font-size: 14px;
    font-family: var(--f-body);
    transition: background-color 0.15s ease;
}
.user-space .list-group-item.active {
    background: var(--c-primary) !important;
    border-color: var(--c-primary) !important;
    color: #fff !important;
}
.user-space .list-group-item:hover:not(.active) {
    background: var(--c-primary-light) !important;
    color: var(--c-primary);
}

/* Boutons — reset global pour TOUS les boutons dans l'espace utilisateur */
.user-space button,
.user-space .btn,
.user-space a[style*="border-radius"] {
    outline: none !important;
    box-shadow: none !important;
    font-family: var(--f-heading) !important;
    transition: background .2s, border-color .2s, transform .1s !important;
}
.user-space button:focus,
.user-space button:active,
.user-space button:focus-visible,
.user-space .btn:focus,
.user-space .btn:active {
    outline: none !important;
    box-shadow: none !important;
}
.user-space .btn {
    border-radius: var(--r-btn) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
    line-height: 1.4 !important;
}
.user-space .btn-primary {
    background: var(--c-primary) !important;
    border-color: var(--c-primary) !important;
    color: #fff !important;
}
.user-space .btn-primary:hover,
.user-space .btn-primary:focus {
    background: var(--c-primary-hover) !important;
    border-color: var(--c-primary-hover) !important;
}
.user-space .btn-default,
.user-space .btn-outline-secondary {
    background: #fff !important;
    border: 1px solid #D1D5DB !important;
    color: var(--c-dark) !important;
}
.user-space .btn-default:hover { background: #F9FAFB !important; border-color: #9CA3AF !important; }
.user-space .btn-danger {
    background: #DC2626 !important;
    border-color: #DC2626 !important;
    color: #fff !important;
}
.user-space .btn-danger:hover { background: #B91C1C !important; }
.user-space .btn-outline-danger {
    background: transparent !important;
    border: 1px solid #FECACA !important;
    color: #DC2626 !important;
}
.user-space .btn-outline-danger:hover { background: #FEF2F2 !important; }
.user-space .btn-sm {
    padding: 5px 12px !important;
    font-size: 12px !important;
}
.user-space .btn-xs {
    padding: 3px 8px !important;
    font-size: 11px !important;
}

/* Labels/badges */
.user-space .label {
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--r-btn);
}
.user-space .label-primary { background: var(--c-primary) !important; }
.user-space .label-success { background: #059669 !important; }
.user-space .label-warning { background: #D97706 !important; }
.user-space .label-danger  { background: #DC2626 !important; }
.user-space .label-info    { background: #0891B2 !important; }
.user-space .label-default { background: #6B7280 !important; color: #fff !important; }

/* Formulaires */
.user-space .form-control {
    border-radius: var(--r-btn);
    border-color: #E5E7EB;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.user-space .form-control:focus {
    border-color: var(--c-primary) !important;
    box-shadow: 0 0 0 3px rgba(11,114,133,0.1) !important;
}
.user-space .control-label {
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--c-text-muted);
}
.user-space .help-block { font-size: 12px; color: var(--c-text-muted); }

/* Alertes */
.user-space .alert { border-radius: var(--r-base); border: none !important; font-size: 14px; }
.user-space .alert-success { background: #ECFDF5 !important; color: #065F46 !important; }
.user-space .alert-danger  { background: #FEF2F2 !important; color: #991B1B !important; }
.user-space .alert-warning { background: #FFFBEB !important; color: #92400E !important; }
.user-space .alert-info    { background: var(--c-primary-light) !important; color: var(--c-primary-hover) !important; }

/* Onglets */
.user-space .nav-tabs > li > a {
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--c-text-muted);
    border-radius: var(--r-base) var(--r-base) 0 0;
}
.user-space .nav-tabs > li.active > a,
.user-space .nav-tabs > li.active > a:hover { color: var(--c-primary) !important; border-bottom-color: #fff; }
.user-space .nav-tabs > li > a:hover { color: var(--c-primary); background: var(--c-primary-light); }

/* Tableaux */
.user-space .table > thead > tr > th {
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 12px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #E5E7EB;
}
.user-space .table-striped > tbody > tr:nth-of-type(odd) { background: #FAFBFC; }

/* Cartes statistiques */
.user-space .user-stat-card {
    text-align: center;
    padding: 20px 15px;
    border-radius: var(--r-base);
    border: 1px solid #E5E7EB;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.user-space .user-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.user-space .user-stat-card h3 {
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: 28px;
    color: var(--c-dark);
    margin: 8px 0 4px;
}
.user-space .user-stat-card small { color: var(--c-text-muted); font-size: 13px; }

/* Responsive desktop/mobile (fiable, remplace visible-xs/hidden-xs BS3) */
.user-space-mobile-only { display: none !important; }
.user-space-desktop-only { display: block !important; }

@media (max-width: 991px) {
    .user-space-mobile-only { display: block !important; }
    .user-space-desktop-only { display: none !important; }
    .user-space .panel { box-shadow: none; }
    .user-space .panel-body { padding: 15px; }
    .user-space .user-stat-card h3 { font-size: 22px; }
}

/* ═══ SECTION 21 — Mega menus + drawer droite ═══ */
@media (min-width: 992px) {
    .has-mega-menu > .sub-menu {
        display: none !important;
    }
}
/* Fix global boutons user-space — thème USNews override les inline styles */
.user-space button {
    outline: none !important;
    box-shadow: none !important;
    border-width: 1px !important;
}
.user-space button:focus,
.user-space button:active,
.user-space button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ═══ SECTION 22 — Carrousel highlights répertoire ═══ */
.rt-highlights { width: 100%; overflow: hidden; }
.rt-hl-section { margin-bottom: 24px; }
.rt-hl-title { font-family: var(--f-heading); font-size: 20px; font-weight: 700; color: var(--c-dark); margin-bottom: 16px; }
.rt-hl-slider { position: relative; padding: 0 40px; }
.rt-hl-track { display: block; white-space: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; padding-bottom: 8px; }
.rt-hl-track::-webkit-scrollbar { display: none; }
.rt-hl-card { display: inline-block; width: 200px; margin-right: 14px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); scroll-snap-align: start; vertical-align: top; white-space: normal; text-decoration: none !important; color: inherit; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.rt-hl-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.rt-hl-img { height: 110px; overflow: hidden; position: relative; }
.rt-hl-img img { width: 100%; height: 100%; object-fit: cover; }
.rt-hl-img-text { display: flex !important; align-items: center !important; justify-content: center !important; height: 100%; font-family: var(--f-heading); font-size: 15px; font-weight: 700; color: #fff; text-align: center; padding: 10px; }
.rt-hl-body { padding: 12px; }
.rt-hl-name { font-family: var(--f-heading); font-size: 14px; font-weight: 700; color: var(--c-dark); margin-bottom: 6px; display: block; }
.rt-badge { display: inline-block; padding: 3px 8px; font-size: 11px; font-weight: 600; border-radius: 4px; }
.rt-badge.badge-free { background: #ECFDF5; color: #047857; }
.rt-badge.badge-freemium { background: #FFFBEB; color: #B45309; }

/* WCAG 2.4.1 Bypass Blocks — skip link caché jusqu'au focus clavier (pattern visually-hidden) */
.skip-link { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; color: #fff; background: #1a1a1a; }
.skip-link:focus { position: fixed; top: 0; left: 0; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; white-space: normal; padding: 14px 24px; font-weight: 700; text-decoration: none; border-radius: 0 0 8px 0; z-index: 100000; outline: 3px solid #064E5A; outline-offset: 2px; }
.rt-badge.badge-paid { background: #F3F4F6; color: #4B5563; }
.rt-badge.badge-open_source { background: #EFF6FF; color: #2563EB; }
.rt-hl-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.12); display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer; z-index: 10; border: none; padding: 0; color: var(--c-text-muted); font-size: 14px; }
.rt-hl-arrow.left { left: 0; }
.rt-hl-arrow.right { right: 0; }
.rt-hl-arrow:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
@media (max-width: 767px) {
    .rt-hl-card { width: 160px; margin-right: 10px; }
    .rt-hl-img { height: 90px; }
    .rt-hl-arrow { display: none !important; }
    .rt-hl-slider { padding: 0 10px; }
}

/* Drawer droite masqué — redondant avec mega menus (desktop) et menu mobile (hamburger gauche) */
.header-right-menu-wrapper {
    display: none !important;
}

/* === Typographie FR : line-height plus aéré pour titres multi-lignes === */
/* Les H2/H3 dans le contenu d'article avec accents FR ont besoin de plus d'espace */
.wpo-blog-single-section .post h2,
.wpo-blog-single-section .post h3,
.entry-details h2,
.entry-details h3,
article h2,
article h3 {
    line-height: 1.4 !important;
    padding-top: 0.2em;
}

/* ═══════════════════════════════════════════════════
   24. BOUTONS CHARTE — système ct-btn
   Classes réutilisables pour tous les boutons du site
   ═══════════════════════════════════════════════════ */

.ct-btn {
    padding: 10px 16px;
    border-radius: var(--r-btn);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-family: var(--f-heading);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    border: none;
    text-decoration: none;
    background-color: transparent;
    color: var(--c-dark);
}
.ct-btn:hover { text-decoration: none; }
.ct-btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.ct-btn-primary { background: var(--c-primary); color: #fff; }
.ct-btn-primary:hover { background: var(--c-primary-hover); color: #fff; }

.ct-btn-outline { background: transparent; border: 2px solid var(--c-primary); color: var(--c-primary); }
.ct-btn-outline:hover { background: var(--c-primary); color: #fff; }

/* S81 #70 : variante 'locked' pour boutons action principale en attente de prérequis (outline + cadenas, pas de hover-fill, cursor:not-allowed) */
.ct-btn-locked { background: transparent; border: 2px dashed #94A3B8; color: #64748B; }
.ct-btn-locked:hover { background: transparent; color: #64748B; }
.ct-btn-locked:focus-visible { outline: 3px solid #C2410C; outline-offset: 2px; }

.ct-btn-danger { background: var(--c-danger); color: #fff; }
.ct-btn-danger:hover { background: var(--c-danger-hover); color: #fff; }

.ct-btn-outline-danger { background: transparent; border: 2px solid var(--c-danger); color: var(--c-danger); }
.ct-btn-outline-danger:hover { background: var(--c-danger); color: #fff; }

.ct-btn-ghost { background: transparent; color: var(--c-text-muted); }
.ct-btn-ghost:hover { background: var(--c-surface); }

.ct-btn-accent { background: var(--c-accent); color: #fff; min-height: 44px; } /* #217 WCAG AAA target size 44x44 - S83 */
.ct-btn-accent:hover { background: var(--c-accent-hover); color: #fff; }

.ct-btn-sm { padding: 7px 14px; font-size: 13px; }
.ct-btn-xs { padding: 5px 10px; font-size: 12px; }
.ct-btn-lg { padding: 12px 20px; font-size: 16px; }
.ct-btn-full { width: 100%; justify-content: center; }
.ct-btn-icon { padding: 0; min-width: 36px; min-height: 36px; justify-content: center; }

/* ═══════════════════════════════════════════════════
   23. IMPRESSION (@media print)
   Masquer les éléments UI non pertinents à l'impression
   ═══════════════════════════════════════════════════ */

@media print {
    /* Cookie consent */
    #cc-host, .cc-backdrop, .cc-modal, .cc-fab { display: none !important; }
    /* Navigation et UI */
    .wpo-site-header, .share-float, .back-to-top, #site-preloader { display: none !important; }
    /* Footer et newsletter */
    .wpo-site-footer, .wpo-subscribe-section { display: none !important; }
    /* Sidebar blog */
    .blog-sidebar { display: none !important; }
    /* Breadcrumb hero */
    .wpo-breadcumb-area { display: none !important; }
    /* Social share bar flottante */
    .floating-share, [class*="share-float"] { display: none !important; }
    /* Contenu principal pleine largeur */
    .col-lg-8 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
    /* Pas de box-shadow ni border en print */
    .panel, .card, .rt-card, .sp-card { box-shadow: none !important; border: 1px solid #ddd !important; }
    /* Liens : afficher l'URL */
    a[href]:after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
    a[href^="#"]:after, a[href^="javascript"]:after, a.btn:after, .sp-btn-primary:after { content: "" !important; }
}

/* === SIDEBAR CATEGORIES === Fix superposition compteur/texte (thème bloggar) */
.blog-sidebar .category-widget ul a { padding-right: 50px !important; }
.blog-sidebar .category-widget ul li span { background: #fff; padding-left: 6px; z-index: 2; }

/* === WCAG 2.2 AA CONTRAST FIX === Override #777 (ratio 4.48:1) → #595959 (ratio 7:1) texte paragraphes blog */
.wpo-blog-single-section p,
.wpo-blog-single-section .entry-details p,
.wpo-blog-single-section .post p,
.wpo-blog-single-section .author-content p { color: #595959; }
/* Retrait de `body p` pour éviter d'écraser les couleurs héritées ou inline (ex: mini-cart) – L39-V3 */

.wpo-blog-single-section .entry-details strong,
.wpo-blog-single-section .post strong { color: #1a1a1a; }

/* Exception : conserver couleurs spécifiques blockquote callout + admin-bar */
.entry-details blockquote.callout p,
.rt-description blockquote.callout p,
.wpo-blog-single-section .post blockquote.callout p { color: #1e293b; }

/* === CALLOUTS BLOCKQUOTE === Override thème bloggar pour accessibilité + design 2026 (note sonar-pro 88/100 approche #1 enrichie) */
.entry-details blockquote.callout,
.rt-description blockquote.callout,
.wpo-blog-single-section .post blockquote.callout {
    border-left: 4px solid #064E5A !important;
    background-color: #EEF7FF !important;
    padding: 20px 24px !important;
    margin: 1.5rem 0 !important;
    text-decoration: none !important;
    text-align: left !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #1e293b !important;
    position: relative;
    border-radius: 0 6px 6px 0;
    transition: background-color 0.2s ease;
}

.entry-details blockquote.callout:hover,
.rt-description blockquote.callout:hover,
.wpo-blog-single-section .post blockquote.callout:hover {
    background-color: #e6f3ff !important;
}

.entry-details blockquote.callout p,
.rt-description blockquote.callout p,
.wpo-blog-single-section .post blockquote.callout p {
    margin: 0 !important;
    line-height: 1.6 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    text-align: left !important;
}

.entry-details blockquote.callout strong,
.rt-description blockquote.callout strong,
.wpo-blog-single-section .post blockquote.callout strong {
    color: #064E5A !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.entry-details blockquote.callout:before,
.rt-description blockquote.callout:before,
.wpo-blog-single-section .post blockquote.callout:before {
    content: "💡" !important;
    font-family: inherit !important;
    position: absolute !important;
    left: -14px !important;
    top: 16px !important;
    transform: none !important;
    font-size: 1.1rem !important;
    color: #064E5A !important;
    background: #ffffff !important;
    border: 1px solid #064E5A !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(11, 114, 133, 0.15) !important;
}

@media (max-width: 767px) {
    .entry-details blockquote.callout,
    .rt-description blockquote.callout,
    .wpo-blog-single-section .post blockquote.callout {
        padding: 16px 20px !important;
        margin-left: 14px !important;
    }
}

@media print {
    .entry-details blockquote.callout,
    .rt-description blockquote.callout,
    .wpo-blog-single-section .post blockquote.callout {
        page-break-inside: avoid;
        background: transparent !important;
        border-left: 2px solid #064E5A !important;
        box-shadow: none !important;
    }
    .entry-details blockquote.callout:before,
    .rt-description blockquote.callout:before,
    .wpo-blog-single-section .post blockquote.callout:before {
        display: none !important;
    }
}
