/* HEADER PARTAGÉ : tous les sélecteurs sont limités à .pm-header. */

.pm-header {
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    height: 78px;
    width: 100%;
    margin: 0;
    padding: 0 30px;
    background: #ffffffed;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e3eaf3;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #0c1837;
}

.pm-header a {
    text-decoration: none;
}

.pm-header .pm-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0c1837;
    font-size: 29px;
    font-weight: 850;
    letter-spacing: -1.3px;
    white-space: nowrap;
}

.pm-header .pm-logo span span {
    color: #0964ff;
}

.pm-header .pm-logo svg {
    width: 39px;
    height: 32px;
    flex-shrink: 0;
}

.pm-header .pm-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-header .pm-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: 22px;
    font-size: 14px;
    font-weight: 650;
}

.pm-header .pm-links a {
    color: #0c1837;
}

.pm-header .pm-links a:hover {
    color: #0964ff;
}

.pm-header .pm-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 520px;
    margin: 0 0 0 auto;
    padding: 12px 16px;
    border-radius: 18px;
    background: #f0f4f9;
    color: #7c89a0;
}

.pm-header .pm-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0c1837;
    font: inherit;
    font-size: 13px;
}

.pm-header .pm-search .pm-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.pm-header .pm-icon-button {
    position: relative;
    display: grid;
    place-items: center;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0c1837;
    cursor: pointer;
}

.pm-header .pm-dot {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff7900;
    box-shadow: 0 0 0 3px white;
}

.pm-header .pm-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 22px;
    border-left: 1px solid #e3eaf3;
    color: #0c1837;
    font-size: 14px;
    font-weight: 700;
}

.pm-header .pm-avatar {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: linear-gradient(145deg, #087aff, #074198);
    color: white;
    font-size: 13px;
}

.pm-header .pm-menu-toggle {
    display: none;
}

.pm-header .pm-auth-link {
    margin-left: auto;
    color: #1861c8;
    font-size: 14px;
}

.pm-header a:focus-visible, .pm-header button:focus-visible, .pm-header input:focus-visible {
    outline: 3px solid #92bcff;
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .pm-header {
        gap: 20px;
        padding: 0 22px;
    }
    .pm-header .pm-links {
        gap: 20px;
        margin-left: 10px;
    }
    .pm-header .pm-search {
        display: none;
    }
    .pm-header .pm-account {
        margin-left: auto;
    }
}

@media (max-width: 740px) {
    .pm-header {
        height: 65px;
        gap: 14px;
        padding: 0 16px;
    }
    .pm-header .pm-logo {
        gap: 7px;
        font-size: 24px;
    }
    .pm-header .pm-logo svg {
        width: 31px;
        height: 28px;
    }
    .pm-header .pm-links, .pm-header .pm-account {
        display: none;
    }
    .pm-header .pm-notification {
        margin-left: auto;
    }
    .pm-header .pm-menu-toggle {
        display: grid;
    }
}

/* Couleurs explicites du logo partagé, indépendantes des liens de la page.
   Le premier span contient « pad », le span imbriqué contient « market ». */
html[data-pm-theme] body .pm-header a.pm-logo,
html[data-pm-theme] body .pm-header a.pm-logo > span {
    color:#0c1837 !important;
}
html[data-pm-theme] body .pm-header a.pm-logo > span > span {
    color:#0964ff !important;
}
html[data-pm-theme="dark"] body .pm-header a.pm-logo,
html[data-pm-theme="dark"] body .pm-header a.pm-logo > span {
    color:#edf3ff !important;
}
html[data-pm-theme="dark"] body .pm-header a.pm-logo > span > span {
    color:#80b0ff !important;
}
