/* ============================================================
   HYPERSO — Navigation unifiée
   À inclure sur toutes les pages publiques.
   ============================================================ */

.hs-nav {
    position: sticky;
    top: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 16px 36px;
    background: rgba(26, 26, 27, 0.95); /* Noir Onyx #1A1A1B */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 226, 226, 0.1); /* Gris Brume #E2E2E2 opacity 10% */
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: #F9F9F9; /* Blanc Albâtre */
}

.hs-nav .hs-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity .2s;
}
.hs-nav .hs-logo:hover { opacity: 0.8; }
.hs-nav .hs-logo img {
    height: 24px; /* Ajusté pour être entre les deux (au lieu de 18px ou 35px) */
    object-fit: contain;
}

.hs-nav .hs-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}
.hs-nav .hs-menu a {
    position: relative;
    padding: 10px 22px;
    color: #dcdcdc;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    border-radius: 9px;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}
.hs-nav .hs-menu a::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #A6894A;
    box-shadow: 0 0 8px rgba(166,137,74,0.6);
    transition: width .3s ease;
}
.hs-nav .hs-menu a:hover {
    color: #fff;
    background: rgba(166,137,74,0.12);
    transform: translateY(-2px);
}
.hs-nav .hs-menu a:hover::after { width: 55%; }
.hs-nav .hs-menu a.active {
    color: #A6894A;
    background: rgba(166,137,74,0.06);
}
.hs-nav .hs-menu a.active::after { width: 55%; }
.hs-nav .hs-menu a .lock {
    font-size: 0.6rem;
    margin-left: 5px;
    opacity: 0.55;
}

.hs-nav .hs-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hs-nav .hs-account {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 14px;
    border-radius: 30px;
    transition: color .2s, background .2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.hs-nav .hs-account::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain; mask-size: contain;
}
.hs-nav .hs-account:hover { color: #A6894A; background: rgba(166,137,74,0.06); }

.hs-nav .hs-actions { position: relative; }
.hs-nav .hs-account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #0f0f0f;
    border: 1px solid rgba(166,137,74,0.3);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .2s ease;
    z-index: 9900;
}
.hs-nav .hs-account-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hs-nav .hs-account-dropdown a {
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background .2s, color .2s;
    font-weight: 500;
}
.hs-nav .hs-account-dropdown a:last-child { border-bottom: none; }
.hs-nav .hs-account-dropdown a:hover {
    background: rgba(166,137,74,0.1);
    color: #A6894A;
}

.hs-nav .hs-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(166, 137, 74, 0.4);
    border-radius: 30px;
    color: #A6894A;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    transition: all .25s;
}
.hs-nav .hs-cart:hover {
    background: rgba(166, 137, 74, 0.10);
    box-shadow: 0 0 18px rgba(166, 137, 74, 0.18);
}
.hs-nav .hs-cart::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #A6894A;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") no-repeat center;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain; mask-size: contain;
}
.hs-nav .hs-badge {
    background: #A6894A;
    color: #000;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 10px;
    padding: 1px 7px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

.hs-nav .hs-burger {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}
.hs-nav .hs-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #A6894A;
    transition: .25s;
}

@media (max-width: 920px) {
    /* Menu burger : logo + burger sur la 1re ligne, menu & actions dépliables en colonnes
       dessous (via flex-wrap + order ; aucun positionnement fixed → plus de superposition). */
    .hs-nav { flex-wrap: wrap; padding: 12px 18px; gap: 0 14px; }
    .hs-nav .hs-logo    { order: 1; flex: 1 1 auto; }
    .hs-nav .hs-burger  { order: 2; display: flex; }
    .hs-nav .hs-menu    { order: 3; }
    .hs-nav .hs-actions { order: 4; }

    .hs-nav .hs-menu,
    .hs-nav .hs-actions {
        flex-basis: 100%; width: 100%;
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 4px; max-height: 0; overflow: hidden;
        transition: max-height .38s ease, margin .3s ease, padding .3s ease;
    }
    .hs-nav.open .hs-menu    { max-height: 60vh; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); overflow-y: auto; }
    .hs-nav.open .hs-actions { max-height: 50vh; padding-bottom: 6px; }

    /* Liens : pleine largeur, cibles tactiles ≥ 44px */
    .hs-nav .hs-menu a,
    .hs-nav .nav-supports a,
    .hs-nav .nav-styles a,
    .hs-nav .nav-creations {
        display: block; width: 100%;
        font-size: 1rem; padding: 14px; text-align: left;
        border-radius: 10px; letter-spacing: 1px;
    }
    .hs-nav .nav-supports, .hs-nav .nav-styles { display: block !important; width: 100%; }
    .hs-nav .hs-menu a::after { display: none; }

    /* Actions : compte + panier pleine largeur */
    .hs-nav .hs-account,
    .hs-nav .hs-cart {
        width: 100%; justify-content: center;
        padding: 14px 16px; font-size: .9rem; border-radius: 10px;
    }
    .hs-nav .hs-cart { margin-top: 4px; }

    /* Dropdown compte : en flux dans la colonne (plus de superposition fixed) */
    .hs-nav .hs-account-dropdown {
        position: static; transform: none; opacity: 1; visibility: visible;
        margin-top: 6px; min-width: 0; width: 100%; box-shadow: none;
        background: rgba(255,255,255,.03); display: none;
    }
    .hs-nav .hs-account-dropdown.open { display: flex; }
}

/* Spacer si la nav est sticky et que la page commence avec un héro fixé */
body.hs-nav-fixed { padding-top: 0; }

/* ========== Journey tracker INTÉGRÉ dans le header ==========
   Quand la nav contient un .hs-journey, elle passe en 2 lignes :
   Ligne 1 : logo / menu / actions
   Ligne 2 : journey tracker centré
================================================================ */
.hs-nav.has-journey {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0;
}
.hs-nav.has-journey .hs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
}
.hs-nav.has-journey .hs-journey {
    display: flex;
    justify-content: center;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 12px;
}
@media (max-width: 920px) {
    .hs-nav.has-journey .hs-journey { display: none; }
}

/* AUTH MODAL UNIFIÉE */
.hs-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.hs-modal-overlay.open { display: flex; animation: hsFadeIn .3s ease; }
@keyframes hsFadeIn { from { opacity:0; } to { opacity:1; } }

.hs-modal {
    background: #0f0f0f; border: 1px solid rgba(166,137,74,0.3); border-radius: 12px;
    width: 100%; max-width: 400px; position: relative; padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: translateY(0); transition: transform .3s ease;
}
.hs-modal-close {
    position: absolute; top: 15px; right: 15px; background: transparent; border: none;
    color: #888; font-size: 1.5rem; cursor: pointer; transition: color .2s;
}
.hs-modal-close:hover { color: #A6894A; }

.hs-modal h2 { font-family: 'Playfair Display', serif; color: #A6894A; font-size: 1.8rem; margin-bottom: 5px; text-align: center; }
.hs-modal p.hs-subtitle { color: #888; font-size: 0.85rem; text-align: center; margin-bottom: 30px; }

.hs-auth-form { display: flex; flex-direction: column; gap: 14px; }
.hs-auth-form input {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 12px 16px; border-radius: 6px; font-family: inherit; font-size: 0.9rem;
}
.hs-auth-form input:focus { border-color: #A6894A; outline: none; background: rgba(166,137,74,0.04); }
.hs-auth-form button {
    background: #A6894A; color: #000; border: none; padding: 14px; border-radius: 6px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    transition: all .2s; margin-top: 10px;
}
.hs-auth-form button:hover { background: #D4C4A8; transform: translateY(-1px); }

.hs-auth-switch {
    text-align: center; margin-top: 20px; font-size: 0.8rem; color: #666; cursor: pointer; transition: color .2s;
}
.hs-auth-switch:hover { color: #A6894A; }
.hs-auth-error {
    background: rgba(255,50,50,0.1); border: 1px solid rgba(255,50,50,0.2);
    color: #ff6b6b; padding: 10px; border-radius: 4px; font-size: 0.8rem; margin-top: 15px; text-align: center;
}


/* JOURNEY CSS */
        .journey-container { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-top: -5px; }
        .journey-title-container { display: flex; align-items: center; gap: 10px; opacity: 0.8; }
        .journey-title { font-family: var(--font-sans); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 500; }
        
        .flowing-arrow { display: flex; align-items: center; gap: 1px; margin-top: 1px; }
        .flowing-arrow span { display: block; width: 4px; height: 4px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); opacity: 0; animation: arrowFlow 1.5s infinite; }
        .flowing-arrow span:nth-child(1) { animation-delay: 0s; }
        .flowing-arrow span:nth-child(2) { animation-delay: 0.15s; }
        .flowing-arrow span:nth-child(3) { animation-delay: 0.3s; }
        @keyframes arrowFlow { 0% { opacity:0; transform:translateX(-3px) rotate(45deg); } 40% { opacity:1; transform:translateX(0) rotate(45deg); box-shadow:1px -1px 3px var(--gold); } 100% { opacity:0; transform:translateX(3px) rotate(45deg); } }
        
        .journey-tracker { display: flex; align-items: center; gap: 8px; transition: 0.5s; }
        .j-step { position: relative; width: 60px; height: 35px; border-radius: 4px; border: 1px dashed rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: rgba(255, 255, 255, 0.5); transition: 0.4s; background: rgba(10, 10, 10, 0.5); cursor: pointer; background-size: cover; background-position: center; }
        .j-step::after { content: attr(data-tooltip); position: absolute; top: 120%; left: 50%; transform: translateX(-50%) translateY(10px); background: rgba(5, 5, 5, 0.95); padding: 10px 15px; font-size: 0.9rem; border-radius: 6px; opacity: 0; transition: 0.3s; pointer-events: none; border: 1px solid var(--gold); font-family: var(--font-sans); white-space: nowrap; z-index: 100; color: #fff; visibility: hidden; }
        .j-step:hover { border-color: var(--gold); }
        .j-step:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); visibility: visible; }
        .j-line { width: 15px; height: 1px; background: rgba(255, 255, 255, 0.2); }
        
        #j-edition, #j-commande { border: 1px dashed rgba(255, 255, 255, 0.3); background-image: url('uploads/vignettes/edition.png'); color: transparent; opacity: 0.5; }
        #j-commande { background-image: url('uploads/vignettes/commande.png'); }
