/**
 * PPSOLAR — Bandeau de titre des pages (titre + fil d'Ariane)
 * Carte arrondie en dégradé bleu marine, décor "soleil" orange discret.
 * Remplace l'aplat OceanWP sur toutes les pages qui l'affichent.
 */

.page-header {
    background: transparent !important;
    background-image: none !important;
    padding: 24px 0 0 !important;
    margin: 0 !important;
    border: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* La carte */
.page-header .page-header-inner {
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 32px 40px !important;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--ppsolar-navy) 0%, var(--ppsolar-navy-2) 100%);
    box-shadow: 0 10px 30px rgba(15, 26, 43, 0.12);
    text-align: left !important;
    box-sizing: border-box;
}

/* Décor : arc de soleil orange, très discret */
.page-header .page-header-inner::before,
.page-header .page-header-inner::after {
    content: "";
    position: absolute;
    display: block !important;
    visibility: visible !important; /* OceanWP masque les ::after (.clr) */
    clear: none !important;
    border-radius: 50%;
    pointer-events: none;
}

.page-header .page-header-inner::after {
    width: 280px;
    height: 280px;
    right: -70px;
    top: -120px;
    border: 26px solid rgba(244, 166, 34, 0.16);
}

.page-header .page-header-inner::before {
    width: 90px;
    height: 90px;
    right: 120px;
    bottom: -45px;
    background: rgba(244, 166, 34, 0.12);
}

.page-header .page-header-inner > * {
    position: relative;
    z-index: 1;
}

/* Titre */
.page-header .page-header-title {
    order: 1;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-family: var(--ppsolar-font);
    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: left !important;
}

/* Sous-titre (description, nombre de produits) */
.page-header .page-subheading {
    order: 2;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 14px;
    line-height: 1.5;
    text-align: left !important;
}

.page-header .pp-ph-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(244, 166, 34, 0.16);
    color: var(--ppsolar-accent);
    font-size: 13px;
    font-weight: 600;
}

/* Fil d'Ariane : au-dessus du titre, en pastille */
.page-header .site-breadcrumbs,
.page-header .woocommerce-breadcrumb,
.page-header .rank-math-breadcrumb {
    order: 0;
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center;
    max-width: 100%;
    margin: 0 !important;
    padding: 6px 14px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-header .site-breadcrumbs ol,
.page-header .site-breadcrumbs ul,
.page-header .rank-math-breadcrumb p {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.page-header .site-breadcrumbs a,
.page-header .woocommerce-breadcrumb a,
.page-header .rank-math-breadcrumb a,
.page-header .site-breadcrumbs .breadcrumb-sep,
.page-header .site-breadcrumbs .trail-item,
.page-header .site-breadcrumbs span {
    color: rgba(255, 255, 255, 0.85) !important;
}

.page-header .site-breadcrumbs a:hover,
.page-header .woocommerce-breadcrumb a:hover,
.page-header .rank-math-breadcrumb a:hover {
    color: var(--ppsolar-accent) !important;
}

.page-header .site-breadcrumbs .trail-end,
.page-header .site-breadcrumbs .trail-end span {
    color: #ffffff !important;
    font-weight: 600;
}

.page-header .site-breadcrumbs svg,
.page-header .site-breadcrumbs i {
    fill: currentColor;
    color: inherit !important;
}

/* Calque image de fond OceanWP : inutile */
.page-header .background-image-page-header-overlay {
    display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    .page-header {
        padding: 14px 0 0 !important;
    }

    .page-header .page-header-inner {
        padding: 22px 20px !important;
        border-radius: 16px;
        gap: 8px;
    }

    .page-header .page-header-title {
        font-size: 24px !important;
    }

    .page-header .page-header-inner::after {
        width: 180px;
        height: 180px;
        right: -60px;
        top: -80px;
        border-width: 18px;
    }

    .page-header .page-header-inner::before {
        display: none !important;
    }
}
