:root {
    --ovn-navy: #072b63;
    --ovn-navy-deep: #041b43;
    --ovn-orange: #ff6600;
    --ovn-text: #0b2447;
    --ovn-line: #e4e9f1;
}

.ovn-header,
.ovn-header * { box-sizing: border-box; }

.ovn-shell {
    width: min(100% - 40px, 1500px);
    margin-inline: auto;
}

.ovn-header {
    position: relative;
    z-index: 3000;
    width: 100%;
    font-family: inherit;
    background: #fff;
    box-shadow: 0 1px 0 rgba(8, 30, 66, .08);
}

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

.ovn-header__top {
    background: linear-gradient(180deg, #082f6b 0%, #052555 100%);
    color: #fff;
}

.ovn-header__top-inner {
    min-height: 70px;
    display: grid;
    grid-template-columns: 205px minmax(360px, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.ovn-header__logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ovn-header__logo img {
    display: block;
    width: 172px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
}

.ovn-search {
    min-width: 0;
    height: 50px;
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr) 56px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 11px;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(3, 25, 60, .05),
        0 7px 20px rgba(3, 25, 60, .10);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.ovn-search:focus-within {
    border-color: #ff8b45;
    box-shadow:
        0 0 0 3px rgba(255, 102, 0, .14),
        0 9px 24px rgba(3, 25, 60, .14);
}
.ovn-search__category {
    grid-column: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 0 12px 0 14px;
    border-right: 1px solid #e5eaf1;
    background: #f8fafc;
    color: #173b70;
}
.ovn-search__category svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ovn-search__category select {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 24px 0 0;
    border: 0;
    outline: 0;
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, #66778f 50%) calc(100% - 10px) 22px / 5px 5px no-repeat,
        linear-gradient(135deg, #66778f 50%, transparent 50%) calc(100% - 5px) 22px / 5px 5px no-repeat,
        transparent;
    color: #17324f;
    font-size: 11.5px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}
.ovn-search__field {
    grid-column: 2;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #fff;
}
.ovn-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 18px;
    border: 0;
    outline: 0;
    appearance: none;
    color: #102847;
    background: transparent;
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.005em;
}
.ovn-search input::placeholder {
    color: #8795a8;
    font-weight: 400;
}
.ovn-search input::-webkit-search-decoration,
.ovn-search input::-webkit-search-cancel-button,
.ovn-search input::-webkit-search-results-button,
.ovn-search input::-webkit-search-results-decoration {
    display: none;
}
.ovn-search button {
    grid-column: 3;
    border: 0;
    border-left: 1px solid #f15f00;
    background: var(--ovn-orange);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .16s ease, box-shadow .16s ease;
}
.ovn-search button:hover {
    background: #e95e00;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
.ovn-search button:focus-visible {
    outline: 3px solid rgba(255,255,255,.85);
    outline-offset: -5px;
}

.ovn-search button svg,
.ovn-header__action svg,
.ovn-header__location svg,
.ovn-all-categories svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ovn-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    white-space: nowrap;
}

.ovn-header__location,
.ovn-header__action {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.ovn-header__location svg { color: #fff; }
.ovn-header__action:hover { color: #ffd4bc; }

.ovn-header__cart { position: relative; }
.ovn-header__cart b {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--ovn-orange);
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

.ovn-header__nav-row {
    border-bottom: 1px solid var(--ovn-line);
    background: #fff;
}

.ovn-header__nav-inner {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.ovn-all-categories {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ovn-text);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ovn-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.7vw, 28px);
    overflow-x: auto;
    scrollbar-width: none;
}
.ovn-primary-nav::-webkit-scrollbar { display: none; }

.ovn-primary-nav a {
    flex: 0 0 auto;
    color: #263b59;
    font-size: 12px;
    font-weight: 600;
    transition: color .16s ease;
}

.ovn-primary-nav a:hover,
.ovn-primary-nav a.is-promo { color: var(--ovn-orange); }

.ovn-sell-button {
    min-height: 38px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--ovn-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.ovn-sell-button:hover { background: #ed5f00; color: #fff; }

@media (max-width: 1180px) {
    .ovn-header__top-inner {
        grid-template-columns: 170px minmax(300px, 1fr) auto;
        gap: 16px;
    }
    .ovn-search { grid-template-columns: 158px minmax(0,1fr) 52px; height: 48px; }
    .ovn-search__category { padding-left: 9px; }
    .ovn-header__logo img { width: 152px; }
    .ovn-header__location { display: none; }
    .ovn-header__actions { gap: 12px; }
    .ovn-primary-nav { justify-content: flex-start; }
}

@media (max-width: 860px) {
    .ovn-shell { width: min(100% - 24px, 1500px); }
    .ovn-header__top-inner {
        padding-block: 10px;
        grid-template-columns: 150px 1fr;
    }
    .ovn-search { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 158px minmax(0,1fr) 52px; height: 48px; }
    .ovn-header__actions {
        justify-content: flex-end;
        gap: 10px;
    }
    .ovn-header__action span { display: none; }
    .ovn-header__nav-inner {
        grid-template-columns: auto 1fr auto;
        gap: 14px;
    }
    .ovn-primary-nav { gap: 18px; }
}

@media (max-width: 620px) {
    .ovn-header__top-inner { grid-template-columns: 132px 1fr; }
    .ovn-search { grid-template-columns: minmax(0,1fr) 50px; height: 46px; border-radius: 9px; }
    .ovn-search__category { display: none; }
    .ovn-search__field { grid-column: 1; }
    .ovn-search button { grid-column: 2; }
    .ovn-header__logo img { width: 128px; height: 45px; }
    .ovn-header__nav-inner { display: flex; overflow-x: auto; padding-block: 9px; }
    .ovn-all-categories { flex: 0 0 auto; }
    .ovn-primary-nav { display: none; }
    .ovn-sell-button { margin-left: auto; flex: 0 0 auto; }
}

/* Zone marque, téléphone et compte client */
@media (min-width: 1181px) {
    .ovn-header__top-inner { grid-template-columns: 310px minmax(330px, 1fr) auto; gap: 18px; }
}
.ovn-header__brand-zone { min-width: 0; display: flex; align-items: center; gap: 14px; }
.ovn-header__phone { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #fff; white-space: nowrap; }
.ovn-header__phone::after { content: ""; position: absolute; inset: -6px -8px; border: 1px solid rgba(255,102,0,.62); border-radius: 10px; opacity: 0; animation: ovnPhonePulse 2.4s ease-out infinite; pointer-events: none; }
.ovn-header__phone-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(255,102,0,.16); color: #ff7a21; animation: ovnPhoneRing 3.5s ease-in-out infinite; }
.ovn-header__phone svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ovn-header__phone small, .ovn-header__phone strong { display: block; }
.ovn-header__phone small { margin-bottom: 2px; color: #c6d2e3; font-size: 9px; font-weight: 600; }
.ovn-header__phone strong { color: #fff; font-size: 11px; letter-spacing: .02em; }
@keyframes ovnPhonePulse { 0%,55% { opacity: 0; transform: scale(.96); } 70% { opacity: .55; } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes ovnPhoneRing { 0%,82%,100% { transform: rotate(0); } 86% { transform: rotate(10deg); } 90% { transform: rotate(-10deg); } 94% { transform: rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { .ovn-header__phone::after, .ovn-header__phone-icon { animation: none; } }

.ovn-account { position: relative; }
.ovn-account__trigger { min-height: 38px; padding: 4px 7px 4px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-family: inherit; cursor: pointer; text-align: left; transition: background .18s ease, border-color .18s ease; }
.ovn-account__trigger:hover, .ovn-account.is-open .ovn-account__trigger { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); }
.ovn-account__label { display: grid; line-height: 1.05; }
.ovn-account__label small { color: #cbd7e8; font-size: 8px; font-weight: 500; }
.ovn-account__label strong { max-width: 100px; overflow: hidden; color: #fff; font-size: 10px; text-overflow: ellipsis; }
.ovn-account__chevron { width: 13px !important; height: 13px !important; transition: transform .18s ease; }
.ovn-account.is-open .ovn-account__chevron { transform: rotate(180deg); }
.ovn-account__panel { position: absolute; z-index: 50; top: calc(100% + 13px); right: -34px; width: 292px; padding: 18px; border: 1px solid #e1e7f0; border-radius: 11px; background: #fff; color: var(--ovn-text); box-shadow: 0 18px 42px rgba(2,20,50,.20); opacity: 0; visibility: hidden; transform: translateY(-7px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.ovn-account__panel::before { content: ""; position: absolute; top: -6px; right: 65px; width: 11px; height: 11px; border-left: 1px solid #e1e7f0; border-top: 1px solid #e1e7f0; background: #fff; transform: rotate(45deg); }
.ovn-account.is-open .ovn-account__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.ovn-account__panel h3 { margin: 0 0 7px; color: #082b61; font-size: 17px; line-height: 1.2; }
.ovn-account__panel p { margin: 0 0 14px; color: #5b6b81; font-size: 11px; line-height: 1.5; white-space: normal; }
.ovn-account__welcome-icon { width: 45px; height: 45px; margin-bottom: 13px; display: grid; place-items: center; border-radius: 12px; background: #eef5ff; color: #0a63d8; }
.ovn-account__welcome-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ovn-account__primary { position: relative; min-height: 39px; padding: 0 34px 0 13px; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--ovn-orange); color: #fff !important; font-size: 11px; font-weight: 800; text-align: center; }
.ovn-account__primary > span { position: absolute; right: 13px; }
.ovn-account__primary--login { width: 170px; margin-inline: auto; }
.ovn-account__primary:hover { background: #ea5e00; }
.ovn-account__register { margin-top: 13px; text-align: center; color: #66758a; font-size: 10px; }
.ovn-account__register a { color: #075fd0; font-weight: 800; }
.ovn-account__heading { margin-bottom: 12px; display: flex; align-items: center; gap: 11px; }
.ovn-account__heading h3 { margin: 2px 0 0; }
.ovn-account__heading small { color: #68778d; font-size: 10px; }
.ovn-account__avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #082f6b; color: #fff; font-size: 16px; font-weight: 900; }
.ovn-account__links { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e5eaf1; border-radius: 9px; overflow: hidden; }
.ovn-account__links a { min-height: 42px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; color: #17365f; font-size: 10px; font-weight: 700; white-space: normal; }
.ovn-account__links a:nth-child(odd) { border-right: 1px solid #e5eaf1; }
.ovn-account__links a:nth-child(n+3) { border-top: 1px solid #e5eaf1; }
.ovn-account__links a:hover { background: #f7faff; color: var(--ovn-orange); }
.ovn-account__utilities { margin-top: 13px; padding-top: 11px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 13px; border-top: 1px solid #e6ebf2; }
.ovn-account__utilities a { position: relative; color: #4e617b; font-size: 9px; font-weight: 700; }
.ovn-account__utilities a:not(:last-child)::after { content: ""; position: absolute; top: 2px; right: -7px; width: 1px; height: 9px; background: #d4dce7; }
.ovn-account__utilities a:hover { color: var(--ovn-orange); }
.ovn-account__utilities--guest { margin-top: 13px; }
.ovn-account__logout { margin: 10px 0 0; text-align: center; }
.ovn-account__logout button { padding: 0; border: 0; background: none; color: #c33d2e; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.ovn-account__logout button:hover { text-decoration: underline; }

.ovn-header__cart { min-width: 42px; min-height: 42px; justify-content: center; }
.ovn-header__cart > svg { width: 28px !important; height: 28px !important; stroke-width: 1.65; }
.ovn-header__cart b { position: absolute; top: -2px; right: -5px; min-width: 20px; height: 20px; border: 2px solid #06295f; transition: transform .18s ease; }
.ovn-header__cart b[data-count]:not([data-count="0"]) { transform: scale(1.05); }

@media (max-width: 1180px) { .ovn-header__phone { display: none; } }
@media (max-width: 860px) {
    .ovn-account__label, .ovn-account__chevron { display: none !important; }
    .ovn-account__panel { right: -95px; width: min(292px, calc(100vw - 28px)); }
}
