/* ===========================================================================
   ARCHIVES TAGS & CATÉGORIES — header pleine largeur + hero banner
   Extrait de functions.php (echos <style> inline) vers un fichier externe.
   =========================================================================== */

    /* ── Évasion du conteneur pour le header ── */
    body.tag .bb-show-mobile-header,
    body.tag header.bb-header,
    body.tax-post_tag .bb-show-mobile-header,
    body.tax-post_tag header.bb-header {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        left: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* ── Recadrage du contenu intérieur (le menu lui-même) ── */
    body.tag .bb-show-mobile-header .container,
    body.tax-post_tag .bb-show-mobile-header .container,
    body.tag .bb-header-inner,
    body.tag .bb-nav-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }


    /* ── Supprime le banner natif Boombox sur ces pages ── */
    body.has-tag-banner .bb-archive-banner,
    body.has-tag-banner .archive-banner,
    body.has-tag-banner .tag-banner,
    body.has-tag-banner [class*="archive-header"],
    body.has-tag-banner [class*="page-header"] {
        display: none !important;
    }

    /* ── Neutralise padding/margin sur TOUS les conteneurs parents ── */
    body.tag #content,
    body.tag .bb-page-content,
    body.tag .page-wrapper,
    body.tag #main,
    body.tag #primary,
    body.category #content,
    body.category .bb-page-content,
    body.category .page-wrapper,
    body.category #main,
    body.category #primary {
        padding-top: 0 !important;
        margin-top: 0 !important;
        overflow: visible !important;
    }

    /* ── Neutralise overflow sur les wrappers parents ── */
    body.tag  #page-wrapper,
    body.tag  .page-wrapper,
    body.category #page-wrapper,
    body.category .page-wrapper {
        overflow: visible !important;
    }

    /* ── Hero banner ── */
    .iact-hero-banner {
        /* Technique pleine largeur robuste */
        display: block;
        position: relative;
        left: 50%;
        width: 100vw;
        transform: translateX(-50%);
        
        /* ⬇️ FORÇAGE VERS LE HAUT ⬇️ */
        margin-top: -45px !important; 

        background-image: url('https://www.iactualite.info/wp-content/uploads/2026/01/iactualite-header-1920x400-1.png');
        background-size: cover;
        background-position: center;
        background-color: #000;
        padding: 60px 30px;
        box-sizing: border-box;
        margin-bottom: 40px;
        border-bottom: 1px solid rgba(0, 242, 255, 0.2);
        overflow: hidden; /* contient le ::before/::after */
    }

    /* Voile sombre */
    .iact-hero-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 10, 20, 0.72);
        z-index: 0;
    }

    /* Barre néon top */
    .iact-hero-banner::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, #00f2ff, transparent);
        z-index: 2;
    }

    .iact-hero-inner {
        position: relative;
        z-index: 1;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .iact-hero-breadcrumb {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: rgba(255,255,255,0.4);
        margin-bottom: 18px;
    }
    .iact-hero-breadcrumb a {
        color: #00f2ff;
        text-decoration: none;
    }
    .iact-hero-breadcrumb a:hover { opacity: 0.7; }
    .iact-hero-breadcrumb span { margin: 0 8px; }

    .iact-hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem) !important;
        font-weight: 900 !important;
        color: #ffffff !important;
        text-transform: uppercase;
        letter-spacing: -1px;
        margin: 0 0 15px !important;
        text-shadow: 0 0 40px rgba(0, 242, 255, 0.5);
        line-height: 1.1 !important;
    }

    .iact-hero-desc {
        color: rgba(255,255,255,0.6);
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
    }
    .iact-hero-desc strong { color: #00f2ff; font-weight: 700; }

