@charset "UTF-8";
/* =====================================================================
   En-tête — gabarit 2026 (SeiWeb.Master et SitePortoFni.Master)
   Barre utilitaire sombre (coordonnées, heures), barre principale blanche
   collante : logo, navigation orientée tâches, compte et boutique.
   Indépendant du JavaScript d'en-tête Porto (#header n'est plus utilisé).
   ===================================================================== */
.site-header {
    --sh-accent: var(--primary, #0088cc);
    --sh-ink: #111827;
    --sh-text: #374151;
    --sh-muted: #6b7280;
    --sh-line: #e5e7eb;
    --sh-dark: #0f1216;
    --sh-dark-text: #c9ced6;
    position: sticky;
    top: 0;
    z-index: 1030;
    font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

        .site-header a:focus-visible,
        .site-header button:focus-visible {
            outline: 2px solid var(--sh-accent);
            outline-offset: 2px;
            border-radius: 4px;
        }

/* Largeur propre à l'en-tête : le conteneur Porto (1 140 px) est trop étroit. */
.sh-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Barre utilitaire ----- */
.sh-top {
    background: var(--sh-dark);
    color: var(--sh-dark-text);
    font-size: .8rem;
    line-height: 1;
}

.sh-top-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 38px;
}

.sh-top-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
}

    .sh-top-item i {
        color: var(--sh-accent);
    }

.site-header .sh-top a {
    color: var(--sh-dark-text);
}

    .site-header .sh-top a:hover {
        color: #fff;
    }

.sh-top-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ----- Barre principale ----- */
.sh-main {
    background: #fff;
    border-bottom: 1px solid var(--sh-line);
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled .sh-main {
    box-shadow: 0 6px 20px rgba(17,24,39,.08);
}

.sh-main-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 76px;
}

.sh-logo {
    flex: 0 0 auto;
    display: block;
}

    .sh-logo img {
        height: 54px;
        width: auto;
        display: block;
    }

/* Navigation */
.sh-nav {
    flex: 1 1 auto;
}

.sh-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-item {
    position: relative;
}

.sh-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .6rem .8rem;
    border: 0;
    background: none;
    font: inherit;
    font-size: .93rem;
    font-weight: 600;
    color: var(--sh-ink);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

    .site-header .sh-link,
    .site-header .sh-link:visited {
        color: var(--sh-ink);
    }

        .site-header .sh-link:hover,
        .site-header .sh-item.is-open > .sh-link,
        .site-header .sh-link[aria-current="page"] {
            color: var(--sh-accent);
        }

    .sh-link::after {
        content: "";
        position: absolute;
        left: .8rem;
        right: .8rem;
        bottom: .25rem;
        height: 2px;
        background: var(--sh-accent);
        transform: scaleX(0);
        transition: transform .2s ease;
    }

    .sh-link:hover::after,
    .sh-item.is-open > .sh-link::after,
    .sh-link[aria-current="page"]::after {
        transform: scaleX(1);
    }

.sh-caret {
    font-size: .7rem;
    transition: transform .2s ease;
}

.sh-item.is-open > .sh-link .sh-caret {
    transform: rotate(180deg);
}

/* Sous-menus */
.sh-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--sh-line);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(17,24,39,.14);
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.sh-item.is-open > .sh-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.sh-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .sh-panel a {
    display: block;
    padding: .5rem .75rem;
    border-radius: 6px;
    color: var(--sh-text);
    font-size: .9rem;
    font-weight: 500;
}

    .site-header .sh-panel a:hover {
        background: #f3f4f6;
        color: var(--sh-ink);
    }

.sh-panel-desc {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    color: var(--sh-muted);
    margin-top: .1rem;
}

/* Méga-menu Inventaire : pleine largeur du conteneur */
.sh-item-mega {
    position: static;
}

.sh-mega {
    left: 50%;
    width: min(1100px, calc(100vw - 2rem));
    transform: translate(-50%, 6px);
    padding: 1.5rem;
}

.sh-item.is-open > .sh-mega {
    transform: translate(-50%, 0);
}

.sh-mega-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
    gap: 1.5rem;
}

.sh-mega-title {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sh-muted);
    margin: 0 0 .5rem .75rem;
}

.sh-mega-title-spaced {
    margin-top: 1.25rem;
}

.site-header p.sh-mobile-hours {
    color: var(--sh-muted) !important;
}

.sh-mega-2col {
    columns: 2;
    column-gap: .25rem;
}

.site-header .sh-mega a {
    padding: .4rem .75rem;
}

.site-header .sh-panel a.sh-mega-all {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    padding: .55rem 1rem;
    border-radius: 8px;
    background: var(--sh-accent);
    color: #fff;
    font-weight: 600;
}

    .site-header .sh-panel a.sh-mega-all:hover {
        background: var(--sh-accent);
        color: #fff;
        filter: brightness(1.08);
    }

/* Actions à droite */
.sh-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.site-header .sh-account {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--sh-ink);
    padding: .5rem .25rem;
}

    .site-header .sh-account:hover {
        color: var(--sh-accent);
    }

.site-header .sh-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.15rem;
    border-radius: 8px;
    background: var(--sh-ink);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease;
}

    .site-header .sh-btn:hover {
        background: var(--sh-accent);
        color: #fff;
    }

/* Boutons mobiles (appel, menu) */
.sh-icon-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--sh-line);
    background: #fff;
    color: var(--sh-ink);
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.site-header a.sh-icon-btn {
    color: var(--sh-ink);
}

.sh-icon-btn.sh-call {
    background: var(--sh-accent);
    border-color: var(--sh-accent);
}

.site-header a.sh-icon-btn.sh-call {
    color: #fff;
}

/* ----- Écrans moyens : on resserre ----- */
@media (max-width: 1299.98px) {
    .sh-link {
        padding: .6rem .6rem;
        font-size: .9rem;
    }

    .sh-link::after {
        left: .6rem;
        right: .6rem;
    }

    .sh-account-label {
        display: none;
    }

    .sh-top-address {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .sh-main-inner {
        gap: 1rem;
    }

    /* La boutique reste accessible dans « Service et pièces ». */
    .sh-actions .sh-btn {
        display: none;
    }
}

/* ----- Mobile et tablette : menu repliable ----- */
@media (max-width: 991.98px) {
    .sh-top {
        display: none;
    }

    .sh-main-inner {
        min-height: 64px;
        gap: .75rem;
    }

    .sh-logo img {
        height: 44px;
    }

    .sh-icon-btn {
        display: inline-flex;
    }

    .sh-actions {
        margin-left: auto;
    }

        .sh-actions .sh-account,
        .sh-actions .sh-btn {
            display: none;
        }

    .sh-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--sh-line);
        box-shadow: 0 18px 30px rgba(17,24,39,.12);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        display: none;
        padding: .5rem 1rem 1.25rem;
    }

    .site-header.menu-open .sh-nav {
        display: block;
    }

    .sh-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .sh-item {
        border-bottom: 1px solid var(--sh-line);
    }

    .sh-link {
        width: 100%;
        justify-content: space-between;
        padding: .9rem .25rem;
        font-size: 1rem;
    }

        .sh-link::after {
            display: none;
        }

    .sh-panel,
    .sh-mega {
        position: static;
        width: auto;
        min-width: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        padding: 0 0 .75rem;
        display: none;
    }

    .sh-item.is-open > .sh-panel,
    .sh-item.is-open > .sh-mega {
        display: block;
        transform: none;
    }

    .sh-mega-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .sh-mega-2col {
        columns: 1;
    }

    .sh-mobile-extra {
        display: grid;
        gap: .6rem;
        margin-top: 1rem;
    }

        .sh-mobile-extra .sh-btn {
            justify-content: center;
        }

    .site-header .sh-mobile-extra .sh-account {
        justify-content: center;
        border: 1px solid var(--sh-line);
        border-radius: 8px;
        padding: .65rem;
    }

    .sh-mobile-hours {
        font-size: .82rem;
        color: var(--sh-muted);
        text-align: center;
        margin: .25rem 0 0;
    }
}

@media (min-width: 992px) {
    .sh-mobile-extra {
        display: none;
    }
}

@media (max-width: 479.98px) {
    .sh-mega-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header *,
    .site-header *::after {
        transition: none !important;
    }
}

/* =====================================================================
   Bandeau d'accueil (MotosportsMBF.aspx) — le thème impose
   « p { color: black !important } » : on rétablit le texte clair.
   ===================================================================== */
.home-intro p.home-intro-text {
    color: #d1d5db !important;
}
