/* ============================================================
   BARRE PROMO
   ============================================================ */

.lf-promo-bar {
    position: fixed !important;
    top: 72px !important; /* Sous le header (72px) */
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lf-promo-bar a,
.lf-promo-bar span {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    line-height: 1;
}

.lf-promo-bar a:hover {
    text-decoration: underline;
}

/* Le header reste en haut, pas de décalage */
#lf-header.lf-has-promo {
    top: 0 !important;
}

/* Le mega panel couvre la barre promo quand il s'ouvre */
body.lf-promo-active .lf-mega-panel {
    top: 72px !important;
    z-index: 1000000 !important;
}

@media (max-width: 900px) {
    .lf-promo-bar {
        top: 60px !important; /* Sous le header mobile (60px) */
    }
}

/* ============================================================
   TYPOGRAPHIE — Police Inter (Google Fonts)
   ============================================================ */

#lf-header,
#lf-header *,
.lf-mega-panel,
.lf-mega-panel * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ============================================================
   LIFT FOILS MEGA MENU v4 — CSS FRONTEND
   Basé sur le test offline TEST-HEADER-OFFLINE/mega-menu.css
   Position: fixed + z-index: 999999 pour s'imposer sur Swift/Atelier
   ============================================================ */

/* ============================================================
   HEADER PRINCIPAL
   ============================================================ */

#lf-header,
.lf-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e5e5;
    width: 100% !important;
    box-sizing: border-box !important;
}

.lf-header.lf-mega-active {
    border-bottom-color: transparent;
}

.lf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

/* ============================================================
   LOGO
   ============================================================ */

.lf-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.lf-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.lf-logo-text {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #1a1a1a;
    text-transform: uppercase;
    text-decoration: none;
}

/* ============================================================
   NAVIGATION DESKTOP
   ============================================================ */

.lf-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.lf-nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lf-nav-item {
    position: static; /* Critique : permet au panel de s'étendre pleine largeur */
}

.lf-nav-link {
    display: block;
    padding: 26px 22px;
    font-size: 17px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.lf-nav-link:hover,
.lf-nav-item.lf-active .lf-nav-link {
    color: #000;
}

/* Indicateur souligné sous l'item actif / survolé */
.lf-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 6px;
    background: var(--lf-accent, #36b7b2);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.lf-nav-link:hover::after,
.lf-nav-item.lf-active .lf-nav-link::after {
    transform: scaleX(1);
}

/* ============================================================
   ACTIONS DROITE (recherche + panier + hamburger)
   ============================================================ */

.lf-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lf-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    color: #1a1a1a;
    border-radius: 50%;
    transition: background 0.2s;
    position: relative;
    padding: 0;
}

.lf-cart-btn:hover {
    background: #f5f5f5;
}

.lf-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #36b7b2;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============================================================
   PANELS MEGA MENU — PLEINE LARGEUR
   ============================================================ */

.lf-mega-panel {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 999998 !important;
    /* Pont invisible : étend la zone de détection vers le haut pour combler
       le gap entre le lien nav et le bord du panel */
    padding-top: 0;
}

/* Pont invisible au-dessus du panel pour éviter le gap de déclenchement */
.lf-mega-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.lf-mega-panel.lf-panel-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lf-mega-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;
}

/* Bouton fermer le mega panel */
.lf-panel-close {
    position: absolute;
    top: 12px;
    right: 40px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

.lf-panel-close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.lf-mega-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 360px;
    padding: 20px 0;
}

/* ============================================================
   HERO — CÔTÉ GAUCHE DU PANEL
   ============================================================ */

.lf-mega-hero {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 24px 0 0;
}

.lf-mega-hero > a {
    flex: 1;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.lf-mega-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.lf-mega-hero > a:hover img {
    transform: scale(1.03);
}

/* Overlay texte en haut de l'image hero */
.lf-mega-hero-img-wrap {
    flex: 1;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    text-decoration: none;
}

.lf-mega-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.lf-mega-hero-img-wrap:hover img {
    transform: scale(1.03);
}

.lf-mega-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 22px 24px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}

.lf-hero-overlay-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.2;
}

.lf-hero-overlay-desc {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.88);
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.1px;
}

/* Overlay sur le placeholder (sans image) */
.lf-mega-hero-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 22px;
    background: #1a1a1a;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
}

.lf-hero-overlay-placeholder .lf-hero-overlay-title {
    color: #fff;
}

.lf-hero-overlay-placeholder .lf-hero-overlay-desc {
    color: rgba(255,255,255,0.75);
}


.lf-mega-hero-caption {
    padding: 20px 30px;
    background: #fff;
}

.lf-mega-hero-caption p {
    font-size: 13px;
    font-weight: 300;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.5;
    margin-bottom: 12px;
}

.lf-mega-hero-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================
   LIENS — CÔTÉ DROIT DU PANEL
   ============================================================ */

.lf-mega-links {
    flex: 1;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lf-mega-links > ul,
.lf-mega-links > .lf-mega-shopall {
    width: 520px;
    max-width: 100%;
}

.lf-mega-list {
    flex: 1;
    border-left: 1px solid #e5e5e5;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lf-mega-list li {
    border-bottom: 5px solid #f0f0f0;
}

.lf-mega-list li:last-child {
    border-bottom: none;
}

.lf-mega-list li a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 20px 10px 12px;
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.15s ease, padding-left 0.15s ease;
    border-radius: 4px;
}

.lf-mega-list li a:hover {
    background: #fafafa;
    padding-left: 8px;
}

/* Miniature produit */
.lf-mega-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    display: block;
}

/* Icône emoji */
.lf-mega-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
}

/* Espace vide (ni image ni emoji) */
.lf-mega-icon-empty {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

/* Label produit */
.lf-mega-label {
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Lien "Shop All" */
.lf-mega-shopall {
    padding: 16px 0 10px;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
    width: 520px;
    max-width: 100%;
}

.lf-mega-shopall a {
    display: inline-block;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.lf-mega-shopall a:hover {
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   BOUTONS HERO
   ============================================================ */

.lf-btn-outline {
    display: inline-block;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.lf-btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
}

.lf-btn-solid {
    display: inline-block;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.lf-btn-solid:hover {
    background: #333;
    border-color: #333;
    text-decoration: none;
}

/* ============================================================
   OVERLAY DE FOND (desktop)
   ============================================================ */

.lf-mega-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.lf-mega-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

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

.lf-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 11;
}

.lf-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.lf-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.lf-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.lf-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   MENU MOBILE (panneau latéral)
   ============================================================ */

.lf-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 1000000 !important;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lf-mobile-menu.active {
    right: 0;
}

.lf-mobile-menu-inner {
    padding: 30px 24px;
}

.lf-mobile-close {
    position: absolute;
    top: 16px;
    left: 16px;
    right: auto;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    width: 44px;
    height: 44px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: background 0.2s;
    padding: 0;
}

.lf-mobile-close:hover {
    background: #f5f5f5;
    color: #333;
}

.lf-mobile-list {
    margin-top: 50px;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.lf-mobile-item {
    border-bottom: 1px solid #eee;
}

.lf-mobile-item > a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
}

.lf-mobile-has-sub {
    position: relative;
}

.lf-mobile-toggle {
    position: absolute;
    top: 12px;
    right: 0;
    background: none;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.lf-mobile-toggle:hover {
    background: #f5f5f5;
}

.lf-mobile-toggle.active {
    transform: rotate(45deg);
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.lf-mobile-sub {
    display: none;
    padding: 0 0 15px 0;
    list-style: none;
    margin: 0;
}

.lf-mobile-sub.active {
    display: block;
}

.lf-mobile-sub li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.lf-mobile-sub li a:hover {
    color: #1a1a1a;
}

.lf-mobile-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

.lf-mobile-shopall {
    font-weight: 500 !important;
    color: #999 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    margin-top: 6px;
    padding-top: 12px !important;
    border-top: 1px solid #f0f0f0;
}

.lf-mobile-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.lf-mobile-cta {
    display: block;
    text-align: center;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 50px;
}

/* Overlay fond mobile */
.lf-mobile-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lf-mobile-overlay-bg.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .lf-nav-link {
        padding: 26px 16px;
        font-size: 15px;
    }

    .lf-mega-hero {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 900px) {
    .lf-nav {
        display: none !important;
    }

    .lf-header-actions {
        gap: 8px;
    }

    .lf-hamburger {
        display: flex;
    }

    .lf-header-inner {
        padding: 0 20px;
        height: 60px;
    }

    .lf-mega-panel {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .lf-mobile-menu {
        max-width: 100%;
    }
}
