/* Extracted from taxonomy-crj_theme_transversal.php in CRJ Refactor V4.8. */

/*
         * Identité propre à la thématique dans le HERO partagé.
         * L’icône est ajoutée sans modifier network-page-header.
         */
        .theme-transversal-single .crj-network-page-header__title {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        /*
         * Le span injecté EST le cadre de l’icône : cela garantit
         * un centrage horizontal et vertical parfait.
         */
        .theme-transversal-single .crj-theme-header-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 3.5rem;
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 10px 28px rgba(18, 43, 66, 0.08);
            color: #197a9b;
            font-size: 1.55rem;
            line-height: 1;
        }

        .theme-transversal-single .crj-theme-header-icon i {
            display: block;
            line-height: 1;
        }

        /*
         * 1) Fil d’Ariane : aucun soulignement/effet de survol propre
         * à cette taxonomie. On conserve le comportement visuel du header Réseau.
         */
        .theme-transversal-single .crj-network-page-header__breadcrumb a,
        .theme-transversal-single .crj-network-page-header__breadcrumb a:hover,
        .theme-transversal-single .crj-network-page-header__breadcrumb a:focus {
            text-decoration: none !important;
            border-bottom: 0 !important;
            box-shadow: none !important;
        }

        /*
         * 2) Le trait blanc appartient au rythme vertical du HERO :
         * breadcrumb -> trait -> titre. Comme l’icône est ajoutée au H1,
         * on repositionne explicitement le pseudo-élément du titre au-dessus.
         */
        .theme-transversal-single .crj-network-page-header__title {
            position: relative;
            padding-top: 1.8rem;
        }

        .theme-transversal-single .crj-network-page-header__title::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 2.75rem;
            height: 2px;
            background: #fff;
            border-radius: 999px;
        }


        /*
         * Les sections propres à cette taxonomie ne doivent pas masquer
         * la continuation colorée du logo immersif.
         */
        .theme-transversal-single .theme-overview,
        .theme-transversal-single .theme-section {
            position: relative;
            z-index: 1;
            background: transparent !important;
        }

        @media (max-width: 575.98px) {
            /*
             * Mobile : on conserve l’icône ET le titre dans le HERO.
             * Le titre est simplement réduit pour garder un ensemble équilibré.
             */
            .theme-transversal-single .crj-network-page-header__title {
                position: relative !important;
                display: flex !important;
                align-items: center;
                gap: .75rem;
                width: auto !important;
                height: auto !important;
                margin: 0 !important;
                padding-top: 1.6rem !important;
                overflow: visible !important;
                clip: auto !important;
                white-space: normal !important;
                border: 0 !important;
                font-size: clamp(1.55rem, 7vw, 2rem) !important;
                line-height: 1.12 !important;
            }

            .theme-transversal-single .crj-network-page-header__title::before {
                display: block;
            }

            .theme-transversal-single .crj-theme-header-icon {
                position: static;
                display: inline-flex !important;
                align-items: center;
                justify-content: center;
                flex: 0 0 3rem;
                width: 3rem;
                height: 3rem;
                margin: 0;
                overflow: visible;
                clip: auto;
                white-space: normal;
                font-size: 1.35rem !important;
                line-height: 1;
            }
        }

#theme-productions .related-section-title,
        #theme-personnes .related-section-title,
        #theme-actualites .related-section-title,
        #theme-projets .related-section-title{
            display: flex;
            align-items: center;
            gap: .55rem;

            margin: 0;
            font-size: 1.65rem;
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: -0.015em;
        }
        
       #theme-partenaires .related-section-title{
            font-size: 1.65rem;
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: -0.015em;
            
        }



#theme-partenaires .logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1rem 1.5rem;
}

#theme-partenaires .logo-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#theme-partenaires .logo-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 55%;
    max-height: 58px;
    object-fit: contain;
}

.theme-overview {
    padding: clamp(2rem, 4vw, 4rem) 0;
    background: #fff;
}

.theme-overview__panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(1.75rem, 3vw, 3rem);
    border: 1px solid rgba(18, 43, 66, 0.10);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f5fafc 100%);
    box-shadow: 0 14px 38px rgba(18, 43, 66, 0.06);
}

.theme-overview__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .65rem;
    color: #197a9b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-overview__eyebrow::before {
    display:none;
    content: "";
    width: 1.65rem;
    height: 2px;
    background: currentColor;
}

.theme-overview__title {
    margin: 0 0 .85rem;
    color: #17263c;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    line-height: 1.15;
    font-weight: 600;
}

.theme-overview__text {
    max-width: 56ch;
    color: #5b6b7c;
    font-size: .98rem;
    line-height: 1.7;
}

.theme-overview__text > *:last-child {
    margin-bottom: 0;
}

.theme-overview__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.theme-overview__link {
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    min-height: 4rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(18, 43, 66, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #17263c;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.theme-overview__link:hover,
.theme-overview__link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(25, 122, 155, 0.35);
    box-shadow: 0 9px 24px rgba(18, 43, 66, 0.08);
    color: #17263c;
}

.theme-overview__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 10px;
    background: #edf7fa;
    color: #197a9b;
    font-size: 1.1rem;
}

.theme-overview__link-label {
    font-weight: 700;
    line-height: 1.2;
}

.theme-overview__link-arrow {
    color: #197a9b;
    font-size: 1.25rem;
}

.theme-tax-section {
    scroll-margin-top: 7rem;
}

@media (max-width: 991.98px) {
    .theme-overview__panel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .theme-overview__nav {
        grid-template-columns: 1fr;
    }

    .theme-overview__panel {
        padding: 1.25rem;
        border-radius: 14px;
    }
}


/* V4.13.4 — état vide d’une thématique sans contenu associé. */
.theme-empty-state {
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.theme-empty-state__panel {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid #dbe7ec;
    border-radius: 18px;
    background: #f6fafb;
}
.theme-empty-state__icon {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #156c88;
    font-size: 1.35rem;
}
.theme-empty-state__panel h2 {
    margin: 0 0 .45rem;
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}
.theme-empty-state__panel p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}
@media (max-width: 575.98px) {
    .theme-empty-state__panel { gap: .9rem; }
}
