/*
|--------------------------------------------------------------------------
| HERITAGE — Premium Design System
|--------------------------------------------------------------------------
*/

:root {
    --heritage-black: #0c0c0c;
    --heritage-black-soft: #151515;
    --heritage-ivory: #f5f2ec;
    --heritage-paper: #faf9f6;
    --heritage-white: #ffffff;
    --heritage-line: rgba(12, 12, 12, .14);
    --heritage-line-dark: rgba(255, 255, 255, .16);
    --heritage-muted: #77736c;
    --heritage-gold: #b39a68;
    --heritage-serif: "Cormorant Garamond", Georgia, serif;
    --heritage-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Base */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    background: var(--heritage-paper);
    color: var(--heritage-black);
    font-family: var(--heritage-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: var(--heritage-black);
    color: var(--heritage-white);
}

a {
    color: inherit;
}

/* Header */

header,
.site-header,
.heritage-header {
    position: relative;
    z-index: 100;
}

.heritage-header,
header {
    box-shadow: none !important;
}

.heritage-header a,
header a {
    text-decoration: none;
}

/* Hide accidental desktop rendering of mobile account area */

.mobile-account-section {
    display: none !important;
}

.account-mobile,
.mobile-account,
.mobile-account-links {
    display: none;
}

/* Account desktop */

.public-account-actions {
    position: relative;
}

.public-account-actions .account-dropdown,
.account-actions .account-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 235px;
    padding: 12px;
    background: rgba(12, 12, 12, .98);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease;
}

.public-account-actions:hover .account-dropdown,
.public-account-actions:focus-within .account-dropdown,
.account-actions:hover .account-dropdown,
.account-actions:focus-within .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Remove ugly default form/button look */

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* Contact */

.heritage-contact {
    background: var(--heritage-paper);
}

.heritage-contact-hero {
    max-width: 1380px;
    margin: 0 auto;
    padding: clamp(80px, 10vw, 150px) 5vw clamp(70px, 9vw, 125px);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: clamp(60px, 9vw, 150px);
    align-items: start;
}

.heritage-contact-kicker {
    margin: 0 0 22px;
    font-size: 10px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--heritage-muted);
}

.heritage-contact-title {
    margin: 0;
    max-width: 650px;
    font-family: var(--heritage-serif);
    font-size: clamp(54px, 6vw, 94px);
    line-height: .91;
    font-weight: 400;
    letter-spacing: -.035em;
}

.heritage-contact-intro {
    max-width: 520px;
    margin: 36px 0 0;
    color: #5f5b55;
    font-size: 15px;
    line-height: 1.9;
}

.heritage-contact-details {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid var(--heritage-line);
}

.heritage-contact-detail-label {
    display: block;
    margin-bottom: 9px;
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--heritage-muted);
}

.heritage-contact-email {
    font-family: var(--heritage-serif);
    font-size: 25px;
    text-decoration: none;
}

.heritage-contact-form {
    padding: clamp(35px, 5vw, 60px);
    background: #fff;
    border: 1px solid rgba(12,12,12,.08);
}

.heritage-contact-form-title {
    margin: 0 0 38px;
    font-family: var(--heritage-serif);
    font-size: 35px;
    font-weight: 400;
}

.heritage-field {
    position: relative;
    margin-bottom: 34px;
}

.heritage-field label {
    display: block;
    margin-bottom: 11px;
    font-size: 9px;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: #77736c;
}

.heritage-field input,
.heritage-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #cfcac1;
    border-radius: 0;
    outline: none;
    color: #111;
    transition: border-color .2s ease;
}

.heritage-field input:focus,
.heritage-field textarea:focus {
    border-bottom-color: #111;
}

.heritage-field textarea {
    min-height: 125px;
    resize: vertical;
}

.heritage-submit {
    width: 100%;
    min-height: 58px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-size: 10px;
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.heritage-submit:hover {
    background: transparent;
    color: #111;
    transform: translateY(-1px);
}

.heritage-contact-note {
    margin-top: 18px;
    font-size: 10px;
    line-height: 1.7;
    color: #858078;
}

/* Newsletter */

.heritage-newsletter {
    margin: 0 !important;
    padding: clamp(65px, 7vw, 105px) 5vw !important;
    background: #101010 !important;
    color: #fff !important;
    border: 0 !important;
}

.heritage-newsletter-inner {
    max-width: 1380px;
    margin: 0 auto;
}

.heritage-newsletter h2 {
    font-family: var(--heritage-serif) !important;
    font-size: clamp(40px, 4vw, 62px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: -.025em !important;
}

.heritage-newsletter p {
    max-width: 620px;
    color: rgba(255,255,255,.68);
    line-height: 1.75;
}

/* Footer */

footer {
    margin: 0 !important;
}

.heritage-footer {
    margin: 0 !important;
    padding: 75px 5vw 35px !important;
    background: #111 !important;
    color: #fff !important;
}

.heritage-footer-inner {
    max-width: 1380px;
    margin: 0 auto;
}

.heritage-footer a {
    text-decoration: none;
}

.heritage-footer-bottom {
    margin-top: 65px !important;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.12);
}

/* Eliminate generic spacing responsible for blank band */

main {
    margin-bottom: 0 !important;
}

main + * {
    margin-top: 0 !important;
}

section {
    box-sizing: border-box;
}

/* Alerts */

.heritage-alert {
    max-width: 1380px;
    margin: 25px auto;
    padding: 15px 20px;
    border: 1px solid rgba(12,12,12,.12);
    background: #fff;
    font-size: 13px;
}

/* Private member identity */

.heritage-private-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--heritage-muted);
}

.heritage-private-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--heritage-gold);
}

/* Mobile */

@media (max-width: 900px) {
    .heritage-contact-hero {
        grid-template-columns: 1fr;
        padding-top: 70px;
        gap: 60px;
    }

    .heritage-contact-title {
        font-size: clamp(54px, 15vw, 78px);
    }

    .heritage-contact-form {
        padding: 30px 24px;
    }
}

@media (max-width: 700px) {
    .heritage-newsletter {
        padding: 55px 22px !important;
    }

    .heritage-footer {
        padding: 55px 22px 28px !important;
    }

    .heritage-contact-hero {
        padding-left: 22px;
        padding-right: 22px;
    }

    .heritage-contact-title {
        font-size: 56px;
    }
}

/* =========================================================
   HERITAGE PRIVE — BANDEAU MARQUES DEFILEMENT
   ========================================================= */

.heritage-brand-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: #f5f3ef;
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.heritage-brand-marquee-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    animation: heritageBrandMarquee 32s linear infinite;
}

.heritage-brand-marquee-group {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.heritage-brand-marquee span {
    display: inline-block;
    padding: 22px 28px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 500;
}

.heritage-brand-marquee span::after {
    content: "·";
    margin-left: 28px;
    opacity: .45;
}

@keyframes heritageBrandMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.heritage-brand-marquee:hover .heritage-brand-marquee-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .heritage-brand-marquee-track {
        animation: none;
    }
}

@media (max-width: 768px) {
    .heritage-brand-marquee span {
        padding: 18px 20px;
        font-size: 9px;
        letter-spacing: .18em;
    }

    .heritage-brand-marquee span::after {
        margin-left: 20px;
    }
}

/* =========================================================
   HERITAGE PRIVE — BANDEAU MAISONS DE LUXE BLANC
   ========================================================= */

section.heritage-luxury-brands-white {
    width: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #111111 !important;
    border-top: 1px solid #e8e6e2 !important;
    border-bottom: 1px solid #e8e6e2 !important;
}

section.heritage-luxury-brands-white
.heritage-luxury-brands-track {
    display: flex !important;
    align-items: center !important;
    width: max-content !important;
    background: #ffffff !important;
    animation: heritageBrandsWhite 42s linear infinite !important;
}

section.heritage-luxury-brands-white
.heritage-luxury-brand {
    flex: 0 0 auto !important;
    padding: 25px 42px !important;
    background: transparent !important;
    color: #151515 !important;
    -webkit-text-fill-color: #151515 !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    letter-spacing: .12em !important;
    white-space: nowrap !important;
}

@keyframes heritageBrandsWhite {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================================================
   HERITAGE PRIVE — NEWSLETTER PREMIUM
   ========================================================= */

section.heritage-newsletter {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 42px 24px !important;
    margin-top: 0 !important;
}

section.heritage-newsletter .heritage-newsletter-inner {
    max-width: 1180px !important;
}

section.heritage-newsletter h2 {
    max-width: 600px !important;
    font-size: 36px !important;
    line-height: 1.05 !important;
    font-weight: 400 !important;
    letter-spacing: -.02em !important;
}

section.heritage-newsletter .heritage-newsletter-copy p {
    max-width: 560px !important;
    margin: 12px 0 22px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: rgba(255,255,255,.62) !important;
}

/* RECTANGLES BLANCS BIEN VISIBLES */
section.heritage-newsletter
.heritage-newsletter-fields input {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 0 !important;
    color: #111111 !important;
    font-size: 13px !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

section.heritage-newsletter
.heritage-newsletter-fields input::placeholder {
    color: #555555 !important;
    opacity: 1 !important;
}

section.heritage-newsletter
.heritage-newsletter-fields button {
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 24px !important;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 0 !important;
    color: #111111 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .12em !important;
}

section.heritage-newsletter .heritage-newsletter-consent {
    margin-top: 10px !important;
    font-size: 9px !important;
    color: rgba(255,255,255,.45) !important;
}

@media (max-width: 760px) {
    section.heritage-luxury-brands-white
    .heritage-luxury-brand {
        padding: 20px 28px !important;
        font-size: 14px !important;
    }

    section.heritage-newsletter {
        padding: 34px 20px !important;
    }

    section.heritage-newsletter h2 {
        font-size: 30px !important;
    }
}


/* =========================================================
   HERITAGE PRIVE — NEWSLETTER / DIRECTION ARTISTIQUE LUXE
   ========================================================= */

section.heritage-newsletter {
    background: #111111 !important;
    padding: 34px 24px !important;
    margin: 0 !important;
}

section.heritage-newsletter .heritage-newsletter-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important;
    gap: 70px !important;
    align-items: center !important;
}

/* ---------------------------------------------------------
   TEXTE
   --------------------------------------------------------- */

section.heritage-newsletter .heritage-newsletter-copy {
    max-width: 500px !important;
}

section.heritage-newsletter .heritage-newsletter-eyebrow {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 8px !important;
    line-height: 1 !important;
    letter-spacing: .2em !important;
    color: rgba(255,255,255,.48) !important;
}

section.heritage-newsletter h2 {
    max-width: 500px !important;
    margin: 0 !important;

    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 30px !important;
    line-height: 1.02 !important;
    font-weight: 400 !important;
    letter-spacing: -.015em !important;
    color: #ffffff !important;
}

section.heritage-newsletter .heritage-newsletter-copy p {
    max-width: 440px !important;
    margin: 10px 0 0 !important;

    font-size: 11px !important;
    line-height: 1.5 !important;
    color: rgba(255,255,255,.52) !important;
}

/* ---------------------------------------------------------
   FORMULAIRE
   --------------------------------------------------------- */

section.heritage-newsletter .heritage-newsletter-form {
    width: 100% !important;
}

section.heritage-newsletter .heritage-newsletter-fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 145px !important;
    gap: 7px !important;
    width: 100% !important;
    align-items: stretch !important;
}

section.heritage-newsletter
.heritage-newsletter-fields input {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 0 !important;

    padding: 0 13px !important;

    color: #111111 !important;
    font-family: Manrope, Arial, sans-serif !important;
    font-size: 11px !important;
}

section.heritage-newsletter
.heritage-newsletter-fields input::placeholder {
    color: #777777 !important;
    opacity: 1 !important;
}

section.heritage-newsletter
.heritage-newsletter-fields button {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 0 !important;

    padding: 0 10px !important;

    color: #111111 !important;
    font-family: Manrope, Arial, sans-serif !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    letter-spacing: .12em !important;
    white-space: nowrap !important;
}

/* Petit effet luxe au survol */
section.heritage-newsletter
.heritage-newsletter-fields button:hover {
    background: #e9e7e2 !important;
}

/* ---------------------------------------------------------
   CONSENTEMENT
   --------------------------------------------------------- */

section.heritage-newsletter .heritage-newsletter-consent {
    margin-top: 8px !important;
    padding: 0 !important;

    font-size: 8px !important;
    line-height: 1.35 !important;

    color: rgba(255,255,255,.38) !important;
}

section.heritage-newsletter .heritage-newsletter-consent input {
    width: 11px !important;
    height: 11px !important;
    margin-top: 1px !important;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 850px) {

    section.heritage-newsletter .heritage-newsletter-inner {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    section.heritage-newsletter .heritage-newsletter-copy {
        max-width: 600px !important;
    }

    section.heritage-newsletter h2 {
        font-size: 29px !important;
    }
}

@media (max-width: 600px) {

    section.heritage-newsletter {
        padding: 30px 18px !important;
    }

    section.heritage-newsletter .heritage-newsletter-fields {
        grid-template-columns: 1fr !important;
    }

    section.heritage-newsletter
    .heritage-newsletter-fields button {
        width: 100% !important;
    }
}


/* =========================================================
   HERITAGE PRIVE — ESPACE PRIVÉ — POSITION HEADER
   ========================================================= */

/* Le compte reste dans la zone droite du header */
.heritage-public-account {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    z-index: 9999 !important;
}

/* Le menu s'ouvre sous le bouton, vers la droite */
.heritage-account-dropdown {
    position: relative !important;
}

.heritage-account-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    width: 270px !important;
    max-width: calc(100vw - 30px) !important;
    z-index: 10000 !important;
}

/* Évite qu'un conteneur du header coupe le menu */
header,
header > *,
.heritage-header {
    overflow: visible !important;
}

/* Le bouton compte reste compact et élégant */
.heritage-account-trigger {
    white-space: nowrap !important;
}

/* Sur mobile : menu toujours visible à l'écran */
@media (max-width: 767px) {

    .heritage-public-account {
        margin-left: auto !important;
    }

    .heritage-account-menu {
        position: fixed !important;
        top: 72px !important;
        right: 12px !important;
        left: auto !important;
        width: min(300px, calc(100vw - 24px)) !important;
        max-width: none !important;
    }
}


/* =========================================================
   HERITAGE PRIVE — ESPACE PRIVÉ — LIGNE DÉDIÉE
   ========================================================= */

/* On libère complètement la navigation principale */
header .heritage-public-account {
    position: absolute !important;

    top: 76px !important;
    right: 24px !important;

    transform: none !important;

    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 99999 !important;
}

/* Petit espace dédié sous la navigation */
header {
    position: relative !important;
    overflow: visible !important;
    padding-bottom: 42px !important;
}

/* Le bouton devient une vraie petite zone privée */
header .heritage-account-trigger {
    padding: 6px 10px !important;
    border-radius: 0 !important;
    background: #f5f3ef !important;
    border: 1px solid rgba(0,0,0,.08) !important;
}

/* Menu sous ESPACE PRIVÉ */
header .heritage-account-menu {
    position: absolute !important;

    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;

    width: 270px !important;
    max-width: calc(100vw - 30px) !important;

    z-index: 100000 !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    header {
        padding-bottom: 0 !important;
    }

    header .heritage-public-account {
        position: absolute !important;
        top: 50% !important;
        right: 58px !important;
        transform: translateY(-50%) !important;
    }

    header .heritage-account-trigger {
        background: transparent !important;
        border: 0 !important;
        padding: 4px !important;
    }

    header .heritage-account-menu {
        position: fixed !important;
        top: 70px !important;
        right: 12px !important;
        left: auto !important;
        width: min(300px, calc(100vw - 24px)) !important;
    }
}


/* =========================================================
   HERITAGE PRIVE — ESPACE PRIVÉ SOUS LE LOGO
   ========================================================= */

@media (min-width: 768px) {

    /* Header suffisamment haut pour accueillir la signature */
    header {
        position: relative !important;
        overflow: visible !important;
        padding-bottom: 28px !important;
    }

    /* ESPACE PRIVÉ centré sous HERITAGE */
    header .heritage-public-account {
        position: absolute !important;

        top: 55px !important;
        left: 50% !important;
        right: auto !important;

        transform: translateX(-50%) !important;

        display: flex !important;
        align-items: center !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 99999 !important;
    }

    /* Signature discrète */
    header .heritage-account-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 3px 8px !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;

        color: #171614 !important;

        white-space: nowrap !important;
    }

    header .heritage-account-trigger-text {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    header .heritage-account-trigger-text small {
        font-size: 8px !important;
        letter-spacing: .18em !important;
        font-weight: 500 !important;
    }

    header .heritage-account-trigger-text strong {
        display: none !important;
    }

    header .heritage-account-icon {
        font-size: 12px !important;
        opacity: .65 !important;
    }

    header .heritage-account-chevron {
        margin-left: 3px !important;
        font-size: 10px !important;
        opacity: .6 !important;
    }

    /* Menu centré sous ESPACE PRIVÉ */
    header .heritage-account-menu {
        position: absolute !important;

        top: calc(100% + 7px) !important;
        left: 50% !important;
        right: auto !important;

        transform: translateX(-50%) !important;

        width: 270px !important;
        max-width: calc(100vw - 30px) !important;

        z-index: 100000 !important;
    }
}

/* =========================================================
   MOBILE — retour à un compte compact dans le header
   ========================================================= */

@media (max-width: 767px) {

    header {
        padding-bottom: 0 !important;
    }

    header .heritage-public-account {
        position: absolute !important;

        top: 50% !important;
        right: 58px !important;
        left: auto !important;

        transform: translateY(-50%) !important;
    }

    header .heritage-account-trigger {
        background: transparent !important;
        border: 0 !important;
        padding: 4px !important;
    }

    header .heritage-account-menu {
        position: fixed !important;

        top: 70px !important;
        right: 12px !important;
        left: auto !important;

        transform: none !important;

        width: min(300px, calc(100vw - 24px)) !important;
    }
}


/* =========================================================
   HERITAGE PRIVE — ESPACE PRIVÉ — AJUSTEMENT FINAL
   SOUS LE LOGO, PARFAITEMENT CENTRÉ
   ========================================================= */

@media (min-width: 768px) {

    header .heritage-public-account {
        position: absolute !important;

        /* centre exact de la fenêtre */
        left: 50% !important;
        right: auto !important;

        /* descend sous le logo */
        top: 72px !important;

        /* centrage réel du bloc lui-même */
        transform: translateX(-50%) !important;

        width: max-content !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        z-index: 99999 !important;
    }

    header .heritage-account-trigger {
        width: max-content !important;
        min-width: 0 !important;

        height: 22px !important;
        padding: 2px 6px !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: transparent !important;
        border: 0 !important;

        white-space: nowrap !important;
    }

    header .heritage-account-trigger-text {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
    }

    header .heritage-account-trigger-text small {
        display: block !important;

        font-size: 7px !important;
        line-height: 1 !important;
        letter-spacing: .17em !important;
        font-weight: 500 !important;

        color: #77716a !important;
    }

    header .heritage-account-icon {
        display: block !important;

        font-size: 10px !important;
        line-height: 1 !important;

        color: #77716a !important;
        opacity: .7 !important;
    }

    header .heritage-account-chevron {
        display: block !important;

        margin-left: 1px !important;

        font-size: 8px !important;
        line-height: 1 !important;

        color: #77716a !important;
    }

    /* menu centré exactement sous la signature */
    header .heritage-account-menu {
        position: absolute !important;

        top: calc(100% + 8px) !important;

        left: 50% !important;
        right: auto !important;

        transform: translateX(-50%) !important;

        width: 270px !important;
        max-width: calc(100vw - 30px) !important;

        z-index: 100000 !important;
    }
}


/* =========================================================
   HERITAGE PRIVE — COMPTE CLIENT
   POSITIONNEMENT PREMIUM SOUS LE LOGO
   ========================================================= */

@media (min-width: 768px) {

    /* Le header sert de repère */
    header {
        position: relative !important;
        overflow: visible !important;
    }

    /* Bloc compte : centre géométrique EXACT de la page */
    header .heritage-public-account {
        position: absolute !important;

        left: 50% !important;
        right: auto !important;

        /*
         * Le header commence en haut de la page.
         * Le logo est au centre de la première ligne.
         * Le compte vient juste en dessous.
         */
        top: 69px !important;

        width: 150px !important;
        height: 28px !important;

        margin-left: -75px !important;
        margin-right: 0 !important;

        padding: 0 !important;

        transform: none !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        z-index: 99999 !important;
    }

    /* Le details ne doit pas déplacer le bloc */
    header .heritage-public-account .heritage-account-dropdown {
        position: relative !important;

        width: 150px !important;
        height: 28px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    /*
     * Bouton compte :
     * on conserve le petit symbole circulaire.
     */
    header .heritage-public-account .heritage-account-trigger {
        position: relative !important;

        width: 150px !important;
        height: 28px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 5px !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;

        color: #171614 !important;

        cursor: pointer !important;
        white-space: nowrap !important;
    }

    /* Petit symbole du compte : RESTAURÉ */
    header .heritage-public-account .heritage-account-icon {
        display: inline-flex !important;

        width: 25px !important;
        height: 25px !important;

        flex: 0 0 25px !important;

        align-items: center !important;
        justify-content: center !important;

        border: 1px solid rgba(23,22,20,.20) !important;
        border-radius: 50% !important;

        font-size: 12px !important;
        line-height: 1 !important;

        color: #55514b !important;
        background: transparent !important;
    }

    /* Texte ESPACE PRIVÉ */
    header .heritage-public-account .heritage-account-trigger-text {
        display: flex !important;

        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;

        width: auto !important;
        height: auto !important;

        line-height: 1 !important;
    }

    header .heritage-public-account
    .heritage-account-trigger-text small {
        display: block !important;

        margin: 0 !important;

        font-family: Manrope, Arial, sans-serif !important;
        font-size: 7px !important;
        line-height: 1 !important;

        letter-spacing: .14em !important;
        font-weight: 500 !important;

        color: #77716a !important;

        white-space: nowrap !important;
    }

    /*
     * On ne montre pas "Mon compte" :
     * seule la signature ESPACE PRIVÉ reste visible.
     */
    header .heritage-public-account
    .heritage-account-trigger-text strong {
        display: none !important;
    }

    /* Petite flèche */
    header .heritage-public-account
    .heritage-account-chevron {
        display: inline-block !important;

        margin: 0 0 0 1px !important;

        font-size: 8px !important;
        line-height: 1 !important;

        color: #77716a !important;
    }

    /* Menu : exactement centré sous le bouton */
    header .heritage-public-account
    .heritage-account-menu {
        position: absolute !important;

        top: calc(100% + 8px) !important;

        left: 50% !important;
        right: auto !important;

        width: 270px !important;
        max-width: calc(100vw - 30px) !important;

        transform: translateX(-50%) !important;

        z-index: 100000 !important;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    header .heritage-public-account {
        position: absolute !important;

        top: 50% !important;
        left: auto !important;
        right: 55px !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;

        transform: translateY(-50%) !important;
    }

    header .heritage-public-account .heritage-account-trigger {
        width: auto !important;
        height: auto !important;
        padding: 4px !important;
    }

    header .heritage-public-account
    .heritage-account-trigger-text {
        display: none !important;
    }

    header .heritage-public-account
    .heritage-account-chevron {
        display: none !important;
    }

    header .heritage-public-account
    .heritage-account-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }

    header .heritage-public-account
    .heritage-account-menu {
        position: fixed !important;

        top: 70px !important;
        right: 12px !important;
        left: auto !important;

        width: min(300px, calc(100vw - 24px)) !important;

        transform: none !important;
    }
}


/* =========================================================
   HERITAGE PRIVE — ESPACE COMPTE
   CENTRAGE PARFAIT SOUS LE LOGO
   ========================================================= */

@media (min-width: 768px) {

    /* Zone compte : centrée sur le logo, indépendante du reste du header */
    header .heritage-public-account {
        position: absolute !important;

        top: 58px !important;
        left: 50% !important;
        right: auto !important;

        width: 190px !important;
        height: 52px !important;

        margin: 0 0 0 -95px !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        transform: none !important;

        z-index: 99999 !important;
    }

    /* =====================================================
       CLIENT CONNECTÉ
       ===================================================== */

    header .heritage-public-account
    .heritage-account-dropdown {
        position: relative !important;

        width: 190px !important;
        height: 52px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    header .heritage-public-account
    .heritage-account-trigger {
        width: 190px !important;
        height: 52px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 7px !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;

        white-space: nowrap !important;
    }

    /* PETIT SYMBOLE DU COMPTE — CONSERVÉ */
    header .heritage-public-account
    .heritage-account-icon {
        display: inline-flex !important;

        width: 27px !important;
        height: 27px !important;

        min-width: 27px !important;
        min-height: 27px !important;

        flex: 0 0 27px !important;

        align-items: center !important;
        justify-content: center !important;

        border: 1px solid rgba(0,0,0,.20) !important;
        border-radius: 50% !important;

        font-size: 12px !important;
        line-height: 1 !important;

        color: #55514b !important;
        background: #fff !important;
    }

    header .heritage-public-account
    .heritage-account-trigger-text {
        display: flex !important;

        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;

        line-height: 1 !important;
    }

    header .heritage-public-account
    .heritage-account-trigger-text small {
        display: block !important;

        margin: 0 !important;
        padding: 0 !important;

        font-family: Manrope, Arial, sans-serif !important;

        font-size: 8px !important;
        line-height: 1.1 !important;

        letter-spacing: .14em !important;
        font-weight: 500 !important;

        color: #77716a !important;
    }

    header .heritage-public-account
    .heritage-account-trigger-text strong {
        display: none !important;
    }

    header .heritage-public-account
    .heritage-account-chevron {
        display: inline-block !important;

        margin: 0 0 0 1px !important;
        padding: 0 !important;

        font-size: 8px !important;
        line-height: 1 !important;

        color: #77716a !important;
    }


    /* =====================================================
       VISITEUR — CONNEXION / CRÉATION DE COMPTE
       ===================================================== */

    header .heritage-public-account
    .heritage-guest-account {
        width: 190px !important;
        min-height: 52px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: center !important;
        justify-content: center !important;

        gap: 4px !important;
    }

    header .heritage-public-account
    .heritage-login-link {
        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        gap: 6px !important;

        margin: 0 !important;
        padding: 0 !important;

        height: 25px !important;

        text-decoration: none !important;

        color: #55514b !important;

        font-size: 8px !important;
        line-height: 1 !important;

        letter-spacing: .08em !important;
        text-transform: uppercase !important;
    }

    header .heritage-public-account
    .heritage-login-link .heritage-account-icon {
        width: 25px !important;
        height: 25px !important;

        min-width: 25px !important;
        min-height: 25px !important;

        font-size: 11px !important;
    }

    header .heritage-public-account
    .heritage-register-link {
        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;

        height: 18px !important;

        background: transparent !important;
        border: 0 !important;

        color: #77716a !important;

        text-decoration: none !important;

        font-size: 7px !important;
        line-height: 1 !important;

        letter-spacing: .12em !important;
        text-transform: uppercase !important;
    }


    /* =====================================================
       MENU CLIENT — TOUJOURS SOUS LE BLOC COMPTE
       ===================================================== */

    header .heritage-public-account
    .heritage-account-menu {
        position: absolute !important;

        top: calc(100% + 8px) !important;

        left: 50% !important;
        right: auto !important;

        width: 270px !important;
        max-width: calc(100vw - 30px) !important;

        transform: translateX(-50%) !important;

        z-index: 100000 !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    header .heritage-public-account {
        position: absolute !important;

        top: 50% !important;
        left: auto !important;
        right: 55px !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;

        transform: translateY(-50%) !important;
    }

    header .heritage-public-account
    .heritage-account-trigger {
        width: auto !important;
        height: auto !important;

        padding: 4px !important;
    }

    header .heritage-public-account
    .heritage-account-trigger-text {
        display: none !important;
    }

    header .heritage-public-account
    .heritage-account-chevron {
        display: none !important;
    }

    header .heritage-public-account
    .heritage-account-icon {
        width: 30px !important;
        height: 30px !important;
    }

    header .heritage-public-account
    .heritage-account-menu {
        position: fixed !important;

        top: 70px !important;
        right: 12px !important;
        left: auto !important;

        width: min(300px, calc(100vw - 24px)) !important;

        transform: none !important;
    }
}


/* =========================================================
   HERITAGE PRIVE — POSITION EXACTE ESPACE PRIVÉ
   -25px horizontal
   +38px vertical
   ========================================================= */

@media (min-width: 768px) {

    header .heritage-public-account {
        left: 50% !important;
        top: 96px !important;

        width: 190px !important;
        margin-left: -120px !important;
        margin-right: 0 !important;

        transform: none !important;
    }

    header .heritage-public-account
    .heritage-account-dropdown {
        width: 190px !important;
    }

    header .heritage-public-account
    .heritage-account-trigger {
        width: 190px !important;
    }

    header .heritage-public-account
    .heritage-guest-account {
        width: 190px !important;
    }

    header .heritage-public-account
    .heritage-account-menu {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}


/* POSITION COMPTE — DEPLACEMENT FORCE */
@media (min-width: 768px) {

    header .heritage-public-account {
        position: absolute !important;

        /* centre du logo - déplacement important vers la gauche */
        left: 50% !important;
        top: 116px !important;

        width: 190px !important;
        height: 52px !important;

        /* -95px = centrage du bloc + -100px = déplacement gauche */
        margin-left: -195px !important;
        margin-right: 0 !important;

        padding: 0 !important;
        transform: none !important;

        z-index: 999999 !important;
    }

    header .heritage-public-account .heritage-guest-account {
        width: 190px !important;
        height: 52px !important;
        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    header .heritage-public-account .heritage-account-dropdown {
        width: 190px !important;
        height: 52px !important;
        margin: 0 !important;
    }

    header .heritage-public-account .heritage-account-trigger {
        width: 190px !important;
        height: 52px !important;
    }

    header .heritage-public-account .heritage-account-menu {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* mobile inchangé */
@media (max-width: 767px) {
    header .heritage-public-account {
        position: static !important;
        margin: 0 !important;
    }
}


/* =========================================================
   COMPTE CLIENT — ALIGNÉ AVANT RECHERCHE
   ========================================================= */

@media (min-width: 768px) {

    header .heritage-account-nav-slot {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: auto !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header .heritage-account-nav-slot .heritage-public-account {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;
        z-index: auto !important;
    }

    /* Visiteur */
    header .heritage-account-nav-slot .heritage-guest-account {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        height: 36px !important;
        min-height: 36px !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: 9px !important;
        white-space: nowrap !important;
    }

    header .heritage-account-nav-slot .heritage-login-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
        border: 0 !important;

        color: #55514b !important;
        text-decoration: none !important;

        font-size: 9px !important;
        line-height: 1 !important;
        letter-spacing: .12em !important;
        white-space: nowrap !important;
    }

    header .heritage-account-nav-slot .heritage-login-link .heritage-account-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;

        margin: 0 !important;

        border: 1px solid rgba(0,0,0,.20) !important;
        border-radius: 50% !important;

        font-size: 11px !important;
        line-height: 1 !important;
        background: #fff !important;
    }

    header .heritage-account-nav-slot .heritage-register-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
        border: 0 !important;

        color: #77716a !important;
        text-decoration: none !important;

        font-size: 8px !important;
        line-height: 1 !important;
        letter-spacing: .10em !important;
        white-space: nowrap !important;
    }

    /* Client connecté */
    header .heritage-account-nav-slot .heritage-account-dropdown {
        position: relative !important;
        width: auto !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header .heritage-account-nav-slot .heritage-account-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        height: 36px !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: 7px !important;

        background: transparent !important;
        border: 0 !important;

        white-space: nowrap !important;
    }

    header .heritage-account-nav-slot .heritage-account-menu {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        left: 50% !important;
        right: auto !important;

        width: 270px !important;
        max-width: calc(100vw - 30px) !important;

        transform: translateX(-50%) !important;

        z-index: 100000 !important;
    }
}

/* Mobile : on laisse le menu mobile fonctionner normalement */
@media (max-width: 767px) {
    header .heritage-account-nav-slot {
        display: none !important;
    }
}


/* =========================================================
   COMPTE CLIENT — MOBILE
   Affiché dans le menu hamburger
   ========================================================= */

@media (max-width: 767px) {

    /* Le slot desktop reste caché */
    header .heritage-account-nav-slot {
        display: none !important;
    }

    /* Bloc compte dans le menu mobile */
    header .heritage-mobile-account {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 18px 0 6px !important;

        border-top: 1px solid rgba(0,0,0,.10) !important;
    }

    header .heritage-mobile-account-title {
        display: block !important;
        margin: 0 0 10px !important;
        padding: 0 !important;

        font-size: 9px !important;
        line-height: 1.2 !important;
        letter-spacing: .16em !important;
        text-transform: uppercase !important;

        color: #77716a !important;
    }

    header .heritage-mobile-account a,
    header .heritage-mobile-account button {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        min-height: 42px !important;

        margin: 0 !important;
        padding: 0 !important;

        text-decoration: none !important;
    }

    header .heritage-mobile-account .mobile-account-highlight {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;

        width: 100% !important;
        padding: 10px 0 !important;

        color: #171614 !important;
        background: transparent !important;
    }

    header .heritage-mobile-account .heritage-account-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;

        border: 1px solid rgba(0,0,0,.20) !important;
        border-radius: 50% !important;

        font-size: 12px !important;
        line-height: 1 !important;
    }
}


/* =========================================================
   MENU MOBILE — ESPACE PRIVÉ EN PREMIÈRE POSITION
   ========================================================= */

@media (max-width: 767px) {

    header .heritage-mobile-account-top {
        display: block !important;

        width: 100% !important;

        margin: 0 0 14px !important;
        padding: 0 0 14px !important;

        border-bottom: 1px solid rgba(0,0,0,.12) !important;
    }

    header .heritage-mobile-account-top-link {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        min-height: 52px !important;

        margin: 0 !important;
        padding: 0 !important;

        text-decoration: none !important;

        color: #171614 !important;
        background: transparent !important;
    }

    header .heritage-mobile-account-top-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;

        margin-right: 12px !important;

        border: 1px solid rgba(0,0,0,.22) !important;
        border-radius: 50% !important;

        font-size: 14px !important;
        line-height: 1 !important;

        background: #fff !important;
    }

    header .heritage-mobile-account-top-text {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;

        flex: 1 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    header .heritage-mobile-account-top-text small {
        display: block !important;

        margin: 0 0 4px !important;
        padding: 0 !important;

        font-family: Manrope, Arial, sans-serif !important;

        font-size: 8px !important;
        line-height: 1 !important;

        letter-spacing: .16em !important;
        text-transform: uppercase !important;

        color: #77716a !important;
    }

    header .heritage-mobile-account-top-text strong {
        display: block !important;

        margin: 0 !important;
        padding: 0 !important;

        font-family: Georgia, serif !important;

        font-size: 17px !important;
        line-height: 1.15 !important;

        font-weight: 400 !important;

        color: #171614 !important;
    }

    header .heritage-mobile-account-top-arrow {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin-left: 12px !important;

        font-size: 18px !important;
        color: #77716a !important;
    }

    header .heritage-mobile-account-top-register {
        display: block !important;

        margin: 4px 0 0 46px !important;
        padding: 0 !important;

        font-family: Manrope, Arial, sans-serif !important;

        font-size: 8px !important;
        line-height: 1.2 !important;

        letter-spacing: .13em !important;
        text-transform: uppercase !important;

        color: #77716a !important;
        text-decoration: none !important;
    }
}

/* Desktop : ce bloc mobile n'existe pas visuellement */
@media (min-width: 768px) {
    header .heritage-mobile-account-top {
        display: none !important;
    }
}


/* =========================================================
   ESPACE PRIVÉ — TOUT EN HAUT DU MENU MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .heritage-mobile-account-top {
        display: block !important;
        width: 100% !important;

        margin: 0 0 20px !important;
        padding: 0 0 18px !important;

        border-bottom: 1px solid rgba(0,0,0,.12) !important;
    }

    .heritage-mobile-account-top-link {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        min-height: 52px !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #171614 !important;
        text-decoration: none !important;
    }

    .heritage-mobile-account-top-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;

        margin-right: 12px !important;

        border: 1px solid rgba(0,0,0,.25) !important;
        border-radius: 50% !important;

        background: #fff !important;

        font-size: 14px !important;
        line-height: 1 !important;
    }

    .heritage-mobile-account-top-text {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }

    .heritage-mobile-account-top-text small {
        display: block !important;

        margin: 0 0 4px !important;

        font-family: Arial, sans-serif !important;
        font-size: 8px !important;
        line-height: 1 !important;
        letter-spacing: .16em !important;

        color: #77716a !important;
    }

    .heritage-mobile-account-top-text strong {
        display: block !important;

        font-family: Georgia, serif !important;
        font-size: 17px !important;
        line-height: 1.15 !important;
        font-weight: 400 !important;

        color: #171614 !important;
    }

    .heritage-mobile-account-top-arrow {
        font-size: 18px !important;
        color: #77716a !important;
    }

    .heritage-mobile-account-top-register {
        display: block !important;

        margin: 2px 0 0 46px !important;

        font-family: Arial, sans-serif !important;
        font-size: 8px !important;
        line-height: 1.2 !important;
        letter-spacing: .12em !important;
        text-transform: uppercase !important;

        color: #77716a !important;
        text-decoration: none !important;
    }
}

@media (min-width: 768px) {
    .heritage-mobile-account-top {
        display: none !important;
    }
}


/* =========================================================
   ESPACE PRIVÉ — CONTRASTE DU MENU COMPTE
   Tout doit être parfaitement lisible sur fond noir
   ========================================================= */

header .heritage-account-menu {
    background: #080808 !important;
    color: #ffffff !important;
}

/* Nom du client */
header .heritage-account-menu .heritage-account-menu-user {
    background: #f8f5ef !important;
    color: #171614 !important;
}

header .heritage-account-menu .heritage-account-menu-user strong {
    color: #171614 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

header .heritage-account-menu .heritage-account-menu-user span {
    color: #5f5a53 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Tous les liens du menu */
header .heritage-account-menu > a,
header .heritage-account-menu > form button {
    color: #ffffff !important;

    opacity: 1 !important;
    visibility: visible !important;

    background: transparent !important;
}

/* Texte contenu dans les liens */
header .heritage-account-menu > a *,
header .heritage-account-menu > form button * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Texte principal */
header .heritage-account-menu > a span:not(:first-child),
header .heritage-account-menu > form button span:not(:first-child) {
    color: #ffffff !important;
}

/* Icônes */
header .heritage-account-menu > a span:first-child,
header .heritage-account-menu > form button span:first-child {
    color: #d4bc87 !important;
}

/* Survol */
header .heritage-account-menu > a:hover,
header .heritage-account-menu > form button:hover {
    background: rgba(255,255,255,.10) !important;
    color: #ffffff !important;
}

/* =========================================================
   ÉLÉMENT SÉLECTIONNÉ
   ========================================================= */

/* Fidélité / élément actif : fond clair + texte noir */
header .heritage-account-menu > a[aria-current="page"],
header .heritage-account-menu > a.active,
header .heritage-account-menu > a.selected,
header .heritage-account-menu > a.is-active,
header .heritage-account-menu > a.bg-white,
header .heritage-account-menu > a.bg-\[\#f8f5ef\] {
    background: #f8f5ef !important;
    color: #171614 !important;
}

/* Tout le contenu de l'élément actif */
header .heritage-account-menu > a[aria-current="page"] *,
header .heritage-account-menu > a.active *,
header .heritage-account-menu > a.selected *,
header .heritage-account-menu > a.is-active *,
header .heritage-account-menu > a.bg-white *,
header .heritage-account-menu > a.bg-\[\#f8f5ef\] * {
    color: #171614 !important;
    opacity: 1 !important;
}

/* Icône actif */
header .heritage-account-menu > a[aria-current="page"] span:first-child,
header .heritage-account-menu > a.active span:first-child,
header .heritage-account-menu > a.selected span:first-child,
header .heritage-account-menu > a.is-active span:first-child {
    color: #8c7040 !important;
}

/* =========================================================
   DÉCONNEXION
   ========================================================= */

header .heritage-account-menu form {
    margin: 0 !important;
}

header .heritage-account-menu form button {
    color: #ffffff !important;
}

header .heritage-account-menu form button span {
    color: #d4bc87 !important;
}

header .heritage-account-menu form button:hover {
    background: rgba(255,255,255,.10) !important;
    color: #ffffff !important;
}

/* =========================================================
   SÉCURITÉ CONTRASTE — textes directs
   ========================================================= */

header .heritage-account-menu strong,
header .heritage-account-menu a,
header .heritage-account-menu button {
    text-shadow: none !important;
}


/* =========================================================
   HERITAGE PRIVE — PHOTO DE PROFIL
   ========================================================= */

.heritage-account-menu-avatar-photo {
    overflow: hidden !important;
}

.heritage-account-menu-avatar-photo img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}


/* =========================================================
   HERITAGE PRIVE — HEADER DESKTOP PLUS COMPACT
   ========================================================= */

@media (min-width: 1024px) {

    header {
        min-height: 64px !important;
    }

    header > div {
        min-height: 64px !important;
    }

    header nav {
        min-height: 64px !important;
    }

    header .heritage-account-dropdown {
        align-self: center !important;
    }

}

/* =========================================================
   HERITAGE PRIVE
   MENU LUXE — VERSION FINALE
   ========================================================= */

@media (min-width: 1024px) {

    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    header {
        position: sticky !important;
        z-index: 1000 !important;
    }

    header > div {
        position: relative !important;
        height: 64px !important;
        min-height: 64px !important;
    }

    /* -----------------------------------------------------
       NAVIGATION GAUCHE
       ----------------------------------------------------- */

    .heritage-luxury-main-nav {
        position: relative !important;
        z-index: 1002 !important;

        display: flex !important;
        align-items: center !important;

        height: 64px !important;
        min-height: 64px !important;

        gap: 26px !important;

        flex-shrink: 0 !important;
    }

    .heritage-luxury-main-nav > a,
    .heritage-luxury-main-nav > .heritage-mega-trigger {
        flex-shrink: 0 !important;
    }

    .heritage-luxury-main-nav > a,
    .heritage-mega-button {
        white-space: nowrap !important;
    }

    /* -----------------------------------------------------
       LES TRIGGERS NE SONT PLUS DES CONTENEURS DU PANNEAU
       ----------------------------------------------------- */

    .heritage-mega-trigger {
        position: static !important;
        height: 64px !important;
        min-height: 64px !important;

        display: flex !important;
        align-items: center !important;
    }

    .heritage-mega-button {
        height: 64px !important;

        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;

        padding: 0 !important;
        margin: 0 !important;

        border: 0 !important;
        background: transparent !important;

        cursor: pointer !important;

        color: #171614 !important;
    }

    .heritage-mega-chevron {
        font-size: 11px !important;
        line-height: 1 !important;

        transition: transform .22s ease !important;
    }

    .heritage-mega-trigger.is-open .heritage-mega-chevron {
        transform: rotate(180deg) !important;
    }

    /* -----------------------------------------------------
       PANNEAUX
       IMPORTANT :
       positionnés par rapport à LA NAV DE GAUCHE
       et non plus par rapport à chaque bouton.
       ----------------------------------------------------- */

    .heritage-mega-menu,
    .heritage-mega-menu-brands,
    .heritage-mega-menu-bags {
        position: absolute !important;

        top: 64px !important;
        left: 0 !important;

        right: auto !important;
        bottom: auto !important;

        transform: translateY(8px) !important;

        margin: 0 !important;

        background: #f8f5ef !important;

        border: 1px solid rgba(23,22,20,.12) !important;
        border-top: 2px solid #171614 !important;

        box-shadow: 0 22px 50px rgba(0,0,0,.13) !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transition:
            opacity .20s ease,
            transform .20s ease,
            visibility .20s ease !important;

        z-index: 99999 !important;
    }

    /* -----------------------------------------------------
       LARGEUR MARQUES
       ----------------------------------------------------- */

    .heritage-mega-menu-brands {
        width: 650px !important;
    }

    /* -----------------------------------------------------
       LARGEUR SACS
       ----------------------------------------------------- */

    .heritage-mega-menu-bags {
        width: 560px !important;
    }

    /* -----------------------------------------------------
       IMPORTANT :
       PLUS DOUVERTURE