/* Structure identique au shell Yapuka: aucune barre noire au-dessus du
   contenu. La marque appartient au menu lateral et le profil flotte sur le
   canvas, sous le liseré global de 5 px. */

@media (min-width: 769px) {
    .pf-v5-c-masthead {
        position: relative;
        z-index: 100;
        min-height: 5px;
        height: 5px;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .pf-v5-c-masthead::before {
        position: fixed;
        z-index: 110;
        height: 5px;
    }

    .pf-v5-c-masthead__toggle {
        position: fixed;
        top: 5px;
        left: 0;
        z-index: 105;
        display: flex;
        width: 58px;
        height: 73px;
        align-items: center;
        justify-content: center;
        background: #0d0d0d;
    }

    .pf-v5-c-masthead__brand {
        position: fixed;
        top: 5px;
        left: 58px;
        z-index: 105;
        display: flex;
        width: 194px;
        height: 73px;
        align-items: center;
        background: #0d0d0d;
    }

    .pf-v5-c-masthead__content {
        position: fixed;
        top: 17px;
        right: 20px;
        z-index: 105;
        width: auto;
        background: transparent;
        box-shadow: none;
    }

    .pf-v5-c-masthead .pf-v5-c-toolbar,
    .pf-v5-c-masthead .pf-v5-c-toolbar__content,
    .pf-v5-c-masthead .pf-v5-c-toolbar__content-section {
        min-height: 0;
        padding: 0;
        background: transparent;
    }

    .pf-v5-c-page__sidebar,
    .pf-v5-c-page__sidebar-body {
        padding-top: 39px;
    }

    .pf-v5-c-page__main-section {
        padding-top: 48px;
    }
}

.pf-v5-c-page__main {
    border-top: 0;
}

/* Le premier titre de page reprend le composant .page-heading du Core:
   catégorie en capitales, pictogramme d'accent, puis titre compact. */
.pf-v5-c-page__main h1:first-of-type {
    position: relative;
    min-height: 56px;
    margin: 0 0 10px;
    padding: 23px 0 0 62px;
    color: var(--yapuka-hub-ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.pf-v5-c-page__main h1:first-of-type::before {
    content: "YAPUKA HUB · COMPTE";
    position: absolute;
    top: 2px;
    left: 62px;
    color: var(--yapuka-hub-accent);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1;
}

.pf-v5-c-page__main h1:first-of-type::after {
    content: "◇";
    position: absolute;
    top: 1px;
    left: 0;
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--yapuka-hub-accent-soft), var(--yapuka-hub-accent));
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(var(--yapuka-hub-accent-rgb), .22);
}

.pf-v5-c-page__main h1:not(:first-of-type),
.pf-v5-c-page__main h2,
.pf-v5-c-page__main h3,
.pf-v5-c-page__main .pf-v5-c-title {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 650;
    letter-spacing: -.025em;
}

@media (max-width: 768px) {
    .pf-v5-c-masthead { background: #0d0d0d; }
    .pf-v5-c-page__main h1:first-of-type {
        padding-left: 54px;
        font-size: 28px;
    }
    .pf-v5-c-page__main h1:first-of-type::before { left: 54px; }
    .pf-v5-c-page__main h1:first-of-type::after { width: 40px; height: 40px; }
}
