/* =============================================
   Burger Menu Mobile - Widget Elementor
   ============================================= */

/* ── Trigger (bouton hamburger) ── */
.burger-menu__trigger {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    color: inherit;
}

.burger-menu__trigger-icon {
    width: 20px;
    height: 20px;
    color: #333;
}

.burger-menu__trigger-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #333;
    font-family: 'Lato', sans-serif;
}

/* ── Overlay ── */
.burger-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.burger-menu__overlay--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Sidebar ── */
.burger-menu__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 92vw;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    z-index: 10002;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border-radius: 0 4px 4px 0;
}

.burger-menu__sidebar--open {
    transform: translateX(0);
}

/* ── Body scroll lock ── */
body.burger-menu--no-scroll {
    overflow: hidden !important;
    touch-action: none;
}

/* ── Header (logo + compte + close) ── */
.burger-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    flex-shrink: 0;
    gap: 10px;
    position: relative;
}

.burger-menu__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #eee;
}

.burger-menu__logo {
    flex-shrink: 0;
}

.burger-menu__logo-img {
    display: block;
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.burger-menu__header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ── Compte utilisateur (dans le header) ── */
.burger-menu__account-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.burger-menu__account-link:hover {
    opacity: 0.8;
}

.burger-menu__account-link svg {
    flex-shrink: 0;
}

.burger-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.burger-menu__close:hover {
    background-color: #f0f0f0;
}

/* ── Recherche ── */
.burger-menu__search-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 14px 16px 0px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    height: auto;
    padding: 0;
    box-shadow: none;
    width: auto;
}

.burger-menu__search-input {
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 9px 12px !important;
    border: none !important;
    outline: none !important;
    font-size: 14px !important;
    color: #333 !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    -webkit-appearance: none;
    appearance: none;
}

.burger-menu__search-input::placeholder {
    color: #999;
}

.burger-menu__search-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 30px;
    border: none !important;
    cursor: pointer;
    color: #313131 !important;
    background-color: #dedede !important;
    border-radius: 4px;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 4px 4px 4px 0;
}

.burger-menu__search-btn:hover {
    opacity: 0.85;
}

/* ── Contenu principal (scrollable) ── */
.burger-menu__content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px 0 20px;
}

/* Masqué quand catalogue ouvert */
.burger-menu__sidebar--catalogue-open .burger-menu__content {
    display: none;
}

/* ── Blocs d'action ── */
.burger-menu__actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 8px;
}

.burger-menu__action {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .burger-menu__action:hover {
        opacity: 0.92;
    }
}

.burger-menu__action--dealer {
    background: linear-gradient(135deg, #345d96 0%, #2B4C7E 100%);
}

.burger-menu__action--callback {
    background: linear-gradient(135deg, #f0102a 0%, #c80016 100%);
    text-align: left;
    font-family: inherit;
    border: none;
    cursor: pointer;
}

.burger-menu__action-icon {
    font-family: 'xstore-icons';
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
}

.burger-menu__action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.burger-menu__action-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.burger-menu__action-desc {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.2;
}

/* ── Bloc catalogue produit (bouton d'entrée) ── */
.burger-menu__catalogue-entry {
    padding: 0 16px 14px;
}

.burger-menu__catalogue-block {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    color: #333;
    background-color: #ededed;
    text-align: left;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.burger-menu__catalogue-block:hover {
    background-color: #efefef;
}

.burger-menu__catalogue-block .burger-menu__action-title {
    color: #111;
    font-size: 16px;
    font-weight: 700;
}

.burger-menu__catalogue-block .burger-menu__action-desc {
    color: #777;
    opacity: 1;
    font-size: 12px;
}

.burger-menu__catalogue-chevron {
    margin-left: auto;
    flex-shrink: 0;
    color: #999;
}

/* ── Vue catalogue (plein écran dans sidebar) ── */
.burger-menu__catalogue-view {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.burger-menu__sidebar--catalogue-open .burger-menu__catalogue-view {
    display: flex;
}

/* Header catalogue : Retour + Voir tous les produits */
.burger-menu__catalogue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
}

.burger-menu__catalogue-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #eee;
}

.burger-menu__catalogue-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: left;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.burger-menu__catalogue-back:hover {
    background-color: #f7f8fa;
}

.burger-menu__catalogue-see-all {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.burger-menu__catalogue-see-all:hover {
    text-decoration: underline;
}

/* Zone scrollable du catalogue */
.burger-menu__catalogue-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
}

/* ── Panels (drill-down) ── */
.burger-menu__panels {
    position: relative;
}

.burger-menu__panel {
    display: none;
    width: 100%;
}

.burger-menu__panel--active {
    display: block;
}

.burger-menu__panel--enter-from-right {
    animation: burgerPanelSlideIn 0.3s ease forwards;
}

.burger-menu__panel--enter-from-left {
    animation: burgerPanelSlideInFromLeft 0.3s ease forwards;
}

.burger-menu__panel--exit-left {
    display: block;
    animation: burgerPanelSlideOutLeft 0.3s ease forwards;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes burgerPanelSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes burgerPanelSlideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes burgerPanelSlideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ── Bouton retour panel (sous-catégorie) ── */
.burger-menu__panel-back {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.burger-menu__panel-back::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #eee;
}

.burger-menu__panel-back:hover {
    background-color: #f7f8fa;
}

.burger-menu__panel-title {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #2B4C7E;
}

.burger-menu__cat-see-all {
    display: block;
    padding: 6px 16px 10px;
    font-size: 13px;
    color: #E3001A;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.burger-menu__cat-see-all::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #eee;
}

.burger-menu__cat-see-all:hover {
    text-decoration: underline;
}

.burger-menu__cat-see-all--bottom {
    padding: 14px 16px;
    margin-top: 4px;
    text-align: center;
}

.burger-menu__cat-see-all--bottom::after {
    display: none;
}

.burger-menu__cat-see-all--bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #eee;
}

/* ── Item catégorie ── */
.burger-menu__cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.burger-menu__cat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #f5f5f5;
}

.burger-menu__cat-item:last-of-type::after {
    display: none;
}

.burger-menu__cat-item:hover {
    background-color: #f7f8fa;
}

.burger-menu__cat-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: transparent;
    padding: 4px;
    box-sizing: border-box;
}

.burger-menu__cat-img-placeholder {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.burger-menu__cat-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.burger-menu__cat-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #ccc;
    transition: color 0.2s ease;
}

.burger-menu__cat-item:hover .burger-menu__cat-arrow {
    color: #999;
}

/* ── Menu WordPress ── */
.burger-menu__wp-nav {
    padding: 6px 0;
    margin-top: 6px;
    position: relative;
}

.burger-menu__wp-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #eee;
}

.burger-menu__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.burger-menu__nav-list li {
    margin: 0;
}

/* Masquer le premier élément du menu */
.burger-menu__nav-list>li:first-child {
    display: none;
}

/* Items avec enfants : positionnement relatif pour le toggle */
.burger-menu__nav-list>li.menu-item-has-children {
    position: relative;
}

/* Item parent */
.burger-menu__nav-list>li>a {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Padding droit supplémentaire pour laisser la place au chevron */
.burger-menu__nav-list>li.menu-item-has-children>a {
    padding-right: 48px;
}

.burger-menu__nav-list>li>a:hover {
    background-color: #f7f8fa;
}

/* Chevron cliquable pour items avec sous-menu */
.burger-menu__nav-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
}

.burger-menu__nav-toggle::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.burger-menu__nav-open>.burger-menu__nav-toggle::after {
    transform: rotate(45deg);
}

/* Sous-menu caché par défaut */
.burger-menu__nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.burger-menu__nav-list>li.burger-menu__nav-open>.sub-menu {
    max-height: 2000px;
}

.burger-menu__nav-list .sub-menu li a {
    display: block;
    padding: 10px 16px 10px 32px;
    text-decoration: none;
    font-weight: 400;
    color: #555;
    font-size: 14px;
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.burger-menu__nav-list .sub-menu li a:hover {
    background-color: #f7f8fa;
}

/* Sous-sous-menu (niveau 3) */
.burger-menu__nav-list .sub-menu .sub-menu li a {
    padding-left: 48px;
    color: #777;
    font-size: 13px;
}

/* ── Réseaux sociaux ── */
.burger-menu__socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 8px;
}

.burger-menu__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .burger-menu__social-link:hover {
        color: #222;
        background-color: #f0f0f0;
    }
}

.burger-menu__social-link svg {
    flex-shrink: 0;
}

/* ── Vue formulaire de rappel ── */
.burger-menu__callback-view {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.burger-menu__sidebar--callback-open .burger-menu__callback-view {
    display: flex;
}

.burger-menu__sidebar--callback-open .burger-menu__content {
    display: none;
}

.burger-menu__sidebar--callback-open .burger-menu__search-form {
    display: none !important;
}

/* Header callback */
.burger-menu__callback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
}

.burger-menu__callback-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background-color: #eee;
}

.burger-menu__callback-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: left;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.burger-menu__callback-back:hover {
    background-color: #f7f8fa;
}

/* Zone scrollable */
.burger-menu__callback-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
}

.burger-menu__callback-body {
    padding: 20px 16px 24px;
}

/* Titre + sous-titre */
.burger-menu__callback-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.3;
}

.burger-menu__callback-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.45;
}

/* Formulaire */
.burger-menu__callback-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.burger-menu__callback-row {
    display: flex;
    gap: 12px;
}

.burger-menu__callback-row .burger-menu__callback-field {
    flex: 1;
}

.burger-menu__callback-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.burger-menu__callback-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.burger-menu__callback-required {
    color: #E3001A;
}

.burger-menu__callback-input {
    width: 100% !important;
    padding: 10px 12px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #F5F5F5 !important;
    outline: none !important;
    transition: background-color 0.2s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.burger-menu__callback-input:focus {
    background-color: #ECECEC !important;
}

.burger-menu__callback-input::placeholder {
    color: #bbb;
}

.burger-menu__callback-textarea {
    resize: vertical;
    min-height: 70px;
}

/* Checkbox RGPD */
.burger-menu__callback-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.burger-menu__callback-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.burger-menu__callback-checkbox label {
    cursor: pointer;
}

/* Bouton submit */
.burger-menu__callback-submit {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #f0102a 0%, #c80016 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.burger-menu__callback-submit:hover {
    opacity: 0.92;
}

.burger-menu__callback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mentions */
.burger-menu__callback-mentions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 4px;
}

.burger-menu__callback-mention {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.burger-menu__callback-mention::first-letter {
    color: #2ecc71;
}

/* Message succès */
.burger-menu__callback-success {
    text-align: center;
    padding: 40px 16px;
}

.burger-menu__callback-success svg {
    margin-bottom: 16px;
}

.burger-menu__callback-success-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.burger-menu__callback-success p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Erreur */
.burger-menu__callback-error {
    background: #fdf0f0;
    color: #c0392b;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 4px;
}