/* ==========================================================================
   PATCH CLS — Anti Layout Shift (fonts + logo)
   DOIT ÊTRE TOUT EN HAUT DU CSS
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-display: swap;
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* ==========================================================================
   1. RESET RADICAL : PLUS AUCUN DÉBORDEMENT POSSIBLE
   ========================================================================== */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    position: relative;
    background-color: #050505;
}

/* ==========================================================================
   2. RECENTRAGE CHIRURGICAL DU CONTENU
   ========================================================================== */
#page, #content, #primary, #main, .site-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
}

.entry-content p,
.entry-content li,
.entry-content blockquote {
    max-width: 780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media screen and (max-width: 768px) {
    .entry-content, .hb-article {
        padding-left: 15px !important;
        padding-right: 15px !important;
        display: block !important;
    }
}

/* ==========================================================================
   3. DESIGN VENUM : TITRES
   ========================================================================== */
h1, h2, h3, .hb-title, .entry-title, .wp-block-heading {
    color: #E1A82B !important;
    font-family: "Anton", sans-serif !important;
    text-transform: uppercase !important;
}

/* ==========================================================================
   4. TABLEAUX : TRANSFORMATION EN CARTES
   ========================================================================== */
.wp-block-table, table {
    display: block !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block !important;
        width: 100% !important;
    }

    thead { display: none !important; }

    tr {
        margin-bottom: 25px !important;
        background: #111 !important;
        border: 1px solid #333 !important;
        border-left: 4px solid #E1A82B !important;
        padding: 10px !important;
    }

    td {
        border: none !important;
        border-bottom: 1px solid #222 !important;
        padding: 10px 5px !important;
        color: #eee !important;
        text-align: left !important;
    }

    td:first-child {
        color: #fff !important;
        font-family: "Anton", sans-serif;
        font-size: 1.1rem;
        border-bottom: 2px solid #E1A82B !important;
    }
}

/* ==========================================================================
   5. NETTOYAGE DU HEADER
   ========================================================================== */
.site-header, .nav-container, .hb-header {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
}

.site-logo img,
img.entered.litespeed-loaded[alt*="Logo"] {
    width: 165px !important;
    height: 60px !important;
    aspect-ratio: 165 / 60 !important;
    display: block !important;
    content-visibility: auto;
    contain-intrinsic-size: 165px 60px;
}

/* ==========================================================================
   FIX RESPONSIVE : IMAGES
   ========================================================================== */
.entry-content img,
.wp-block-image img,
.hb-article img,
figure img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-image,
figure {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media screen and (max-width: 768px) {
    .entry-content img,
    .wp-block-image img {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   FIX EMOJIS
   ========================================================================== */
img.emoji,
img.wp-smiley {
    width: 1em !important;
    height: 1em !important;
    max-width: none !important;
    display: inline !important;
    margin: 0 0.2em !important;
    vertical-align: -0.1em !important;
    box-shadow: none !important;
    background: none !important;
}

/* ==========================================================================
   BOUTONS — STYLE GLOBAL (hors carrousel V6C)
   ========================================================================== */
.wp-block-button__link,
.hb-table-btn,
.cta-gold,
.hb-btn {
    background: linear-gradient(135deg, #E8C15A 0%, #c9a43a 100%) !important;
    color: #000000 !important;
    font-family: "Anton", sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 13px 24px !important;
    border-radius: 50px !important;
    border: none !important;
    display: inline-block !important;
    line-height: 1 !important;
    box-shadow: 0 4px 14px rgba(232,193,90,.35), inset 0 1px 0 rgba(255,255,255,.2) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.wp-block-button__link:hover,
.hb-table-btn:hover,
.cta-gold:hover,
.hb-btn:hover {
    color: #000000 !important;
    background: linear-gradient(135deg, #f0cc6a 0%, #ddb84a 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(232,193,90,.50), inset 0 1px 0 rgba(255,255,255,.25) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   BOUTONS AMAZON — PILLS OR
   ========================================================================== */
.entry-content a[href*="amzn.to"],
.v6c-btn-amz {
    background: #FF9900 !important;
    color: #000000 !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 8px 14px !important;
    border-radius: 50px !important;
    border: none !important;
    display: inline-block !important;
    line-height: 1 !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: background .2s, transform .15s !important;
    position: relative !important;
    overflow: hidden !important;
}

.entry-content a[href*="amzn.to"]:hover,
.v6c-btn-amz:hover {
    background: #e88b00 !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   BOUTONS DECATHLON — PILLS BLEU
   ========================================================================== */
.entry-content a[href*="decathlon"],
.entry-content a[href*="linksynergy"],
.v6c-btn-dec {
    background: #0067b0 !important;
    color: #ffffff !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 8px 14px !important;
    border-radius: 50px !important;
    border: none !important;
    display: inline-block !important;
    line-height: 1 !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: background .2s, transform .15s !important;
    position: relative !important;
    overflow: hidden !important;
}

.entry-content a[href*="decathlon"]:hover,
.entry-content a[href*="linksynergy"]:hover,
.v6c-btn-dec:hover {
    background: #005a9a !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

/* Mobile : boutons pleine largeur sauf dans les carrousels */
@media screen and (max-width: 768px) {
    .entry-content a[href*="amzn.to"],
    .entry-content a[href*="decathlon"],
    .entry-content a[href*="linksynergy"] {
        display: block !important;
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        padding: 13px 14px !important;
        min-height: 44px !important;
    }

    /* Exception carrousel — spécificité forcée (0,3,0) > (0,2,1) */
    .entry-content .v6c-track .v6c-btn-amz,
    .entry-content .v6c-track .v6c-btn-dec {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        min-height: 44px !important;
        flex: 1 !important;
    }

    /* Exception sticky bar — bouton compact aligné sur Decathlon */
    .entry-content .hb-sticky-cta .hb-sticky-btn {
        display: flex !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        min-height: 36px !important;
        font-size: 0.68rem !important;
        text-align: center !important;
        border-radius: 50px !important;
    }
}
/* ==========================================================================
   FIX MOBILE — PAGE D'ACCUEIL HISTOIREBOXE
   ========================================================================== */
@media screen and (max-width: 768px) {

    .container { padding: 0 16px !important; }
    .section { padding: 40px 0 !important; }

    /* BENTO MATÉRIEL */
.bento { grid-template-columns: 1fr 1fr !important; grid-template-rows: auto !important; gap: 4px !important; }
    .bc-hero { grid-column: 1 / -1 !important; grid-row: auto !important; height: 220px !important; }
    .bc-wide { grid-column: 1 / -1 !important; height: 160px !important; }
    .bc-normal { grid-column: span 1 !important; height: 130px !important; }
    .bento-name { font-size: 15px !important; line-height: 1.1 !important; }
    .bento-tag-sm { display: none !important; }
    .bento-info { padding: 10px 12px !important; }

    /* PODIUM */
    .podium { grid-template-columns: 1fr !important; gap: 8px !important; margin-top: 16px !important; }
    .podium-card { flex-direction: row !important; align-items: center !important; gap: 16px !important; padding: 16px !important; padding-top: 16px !important; }
    .podium-card.star { padding-top: 40px !important; flex-direction: column !important; align-items: center !important; }
    .podium-card.star::before { font-size: 8px !important; letter-spacing: 1.5px !important; padding: 4px 8px !important; }
    .podium-card.star { order: -1 !important; }
    .podium-img, .podium-img-ph { width: 60px !important; height: 60px !important; flex-shrink: 0 !important; }
    .podium-card:not(.star) { flex-direction: row !important; padding-top: 16px !important; text-align: left !important; gap: 14px !important; }
    .podium-card:not(.star) .podium-name { text-align: left !important; font-size: 16px !important; }
    .podium-card:not(.star) .podium-price { text-align: left !important; }
    .podium-cta { width: 100% !important; margin-top: 12px !important; font-size: 9px !important; padding: 10px !important; }

    /* ACTUALITÉ COMBAT */
    .fights-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
    .fight-card { width: 100% !important; overflow: visible !important; }
    .fight-img { aspect-ratio: 16 / 7 !important; min-height: 160px !important; overflow: hidden !important; }
    .fight-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .fight-body { padding: 16px !important; }
    .fight-title { font-size: 20px !important; line-height: 1.1 !important; margin-bottom: 6px !important; }
    .fight-desc { font-size: 12px !important; margin-bottom: 12px !important; }

    /* HALL OF FAME */
    .legends-grid { grid-template-columns: 1fr 1fr !important; gap: 4px !important; }
    .legend-info { padding: 10px 12px 14px !important; }
    .legend-name { font-size: 18px !important; }
    .legend-excerpt { display: none !important; }

    /* GUIDES ESSENTIELS */
    .guides-layout { grid-template-columns: 1fr !important; gap: 8px !important; }
    .guide-sidebar { display: none !important; }
    .guide-main-img { aspect-ratio: 16 / 8 !important; min-height: 180px !important; overflow: hidden !important; }
    .guide-main-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .guide-main-body { padding: 16px 16px 20px !important; }
    .guide-title { font-size: 19px !important; line-height: 1.3 !important; margin-bottom: 8px !important; }
    .guide-excerpt { font-size: 12px !important; margin-bottom: 14px !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }

    /* EXPERT */
    .expert-section { grid-template-columns: 1fr !important; }
    .expert-left { padding: 28px 20px !important; }
    .expert-stats { grid-template-columns: repeat(3, 1fr) !important; margin-bottom: 24px !important; }
    .expert-stat-n { font-size: 32px !important; }
    .expert-right { height: 280px !important; }

    /* INTRO H1 */
    section:first-of-type { padding: 40px 20px 36px !important; }
    section:first-of-type div[aria-hidden="true"] { display: none !important; }
}

@media screen and (max-width: 390px) {
    .bento-name { font-size: 13px !important; }
    .bc-hero { height: 190px !important; }
    .bc-wide { height: 140px !important; }
    .bc-normal { height: 115px !important; }
    .podium-card.star { padding-top: 36px !important; }
}

/* ==========================================================================
   FIX HOMEPAGE — OVERRIDE MAX-WIDTH
   ========================================================================== */
.entry-content .section,
.entry-content .bento,
.entry-content .podium,
.entry-content .fights-grid,
.entry-content .legends-grid,
.entry-content .guides-layout,
.entry-content .expert-section,
.entry-content .ticker,
.entry-content .container {
    max-width: none !important;
    width: 100% !important;
}

.bento, .bento > *,
.podium, .podium > *,
.fights-grid, .fights-grid > *,
.legends-grid, .legends-grid > *,
.guides-layout, .guides-layout > *,
.expert-section, .expert-section > * {
    max-width: 100% !important;
}
.page-id-8120 .wp-block-columns {
  display: block !important;
  padding: 0 !important;
}
.page-id-8120 .wp-block-column:first-child {
  display: none !important;
}
.page-id-8120 .wp-block-column:last-child {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}