/* =============================================
   MENU BURGER V3
   ============================================= */

#header-content {
    z-index: 101 !important;
}

#side-menu ul {
    list-style: none;
    margin-top: 5px !important;
}

#side-menu li {
    margin: 0.5rem 0;
}

#side-menu li strong, .submenu li strong {
    display: block;
    margin-top: 1rem;
    font-size: 1.1rem !important;
    color: #333;
}

/* OVERLAY */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

#menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* SIDE MENU */
#side-menu {
    position: fixed;
    padding: 1rem;
    top: 0;
    left: -1200px;
    width: 420px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: left 0.3s ease;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

#side-menu.open {
    display: flex;
    left: 0;
    z-index: 1000;
}

@media (max-width: 991px) {
    #side-menu {
        width: 100%;
    }
}

/* EN-TÊTE DU SIDE-MENU (bouton fermer) */
.side-menu-header {
    display: flex;
    justify-content: flex-start;
    /*padding: 0.75rem 1rem 0;*/
    flex-shrink: 0;
}

#side-menu button#close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

#side-menu button#close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#side-menu button#close-btn img {
    width: 28px;
    height: auto;
}


#side-menu li a .menu-icon,
.submenu-list li a .menu-icon,
.submenu-list li span.linkObfusquer .menu-icon
{
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-right: 1rem !important;
}

#side-menu li a .menu-text,
.submenu-list li a .menu-text,
.submenu-list li span.linkObfusquer .menu-text
{
    flex: 1;
    font-size:16px;
}

#side-menu li a .arrow,
.submenu-list li a .arrow,
.submenu-list li span.linkObfusquer .arrow,
.collapse-content li a .arrow,
.collapse-content li span.linkObfusquer .arrow
{
    width: 18px;
    height: auto;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* =============================================
   BARRE D'ONGLETS
   ============================================= */
#menu-tabs {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    flex-shrink: 0;
    border-bottom: none;
    scrollbar-width: none;
}

#menu-tabs::-webkit-scrollbar {
    display: none;
}

#menu-tabs li {
    flex-shrink: 0;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
    min-width: 60px;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #222;
    border-bottom-color: #222;
    font-weight: 700;
}

.tab-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tab-label {
    display: block;
    line-height: 1.2;
}

/* =============================================
   PANNEAUX DE CONTENU
   ============================================= */
.tab-panel {
    display: none;
    overflow-y: auto;
    flex: 1;
    padding: 0 0 1.5rem 0;
}

.tab-panel.active {
    display: block;
}

/* =============================================
   CONTENU DE L'ONGLET
   ============================================= */
.tab-content-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-content-list > li {
    margin: 0.4rem 0;
}

.tab-content-list li strong {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #000;
    font-weight:700;
}

.rayons-gamme-label {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85rem;
    color: #bbb;
}

.rayons-header {
    margin-left: 0.4rem !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.rayons-header strong {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.btn-gamme {
    font-size: 0.75rem;
    font-weight: 400;
    color: #333;
    text-underline-offset: 3px;
    white-space: nowrap;
    margin-left: 0.75rem;
    background: none !important;
    text-decoration: underline !important;
}

.btn-gamme-on-img{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
}

/* Liens dans le contenu de l'onglet */
.tab-content-list li a,
.tab-content-list li span.linkObfusquer,
.tab-content-list li.has-collapse .collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.48rem 1rem;
    background: #f9f9f9;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
    min-height: 35px;
    cursor: pointer;
    font-size: 15px;
}

.tab-content-list li a:hover,
.tab-content-list li span.linkObfusquer:hover,
.tab-content-list li.has-collapse .collapse-toggle:hover {
    background: #e6e6e6;
}

.tab-content-list li a .menu-icon,
.tab-content-list li span.linkObfusquer .menu-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.tab-content-list li a .menu-text,
.tab-content-list li span.linkObfusquer .menu-text {
    flex: 1;
}

.tab-content-list li a .arrow,
.tab-content-list li span.linkObfusquer .arrow {
    width: 16px;
    height: auto;
    margin-left: 0.75rem;
    flex-shrink: 0;
}


/* =============================================
   COLLAPSE
   ============================================= */
.collapse-arrow {
    width: 18px !important;
    height: auto;
    margin-left: 0.75rem;
    flex-shrink: 0;
    transform: none !important;
}



.collapse-content {
    list-style: none;
    margin: 0.4rem 0 0;
    padding-left: 1rem;
}

.collapse-content li a,
.collapse-content li span.linkObfusquer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1rem;
    text-decoration: none;
    color: #333;
    min-height: 34px;
    background: white;
    font-size: 14px;
}

.collapse-content li a:hover,
.collapse-content li span.linkObfusquer:hover {
    background: #f0f0f0;
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 1rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.top-links ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-links li {
    display: flex;
    align-items: center;
}

.top-links a {
    text-decoration: none;
    color: #222;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
}

.top-links a:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
}

/* =============================================
   SOUS-PANNEAUX (level 2 et 3)
   ============================================= */
.submenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10;
    overflow: hidden;
    /* display:none posé inline, JS passe à flex avant d'ajouter .open */
}

.submenu.open {
    transform: translateX(0);
}

.submenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    flex-shrink: 0;
    border-bottom: 1px solid #eee;
}

.submenu-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.submenu-header button img {
    width: 20px;
    height: auto;
}

.submenu-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    text-align: center;
    color: #222;
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.submenu-list > li {
    margin: 0.4rem 0;
}

.submenu-list li strong {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.submenu-list li a,
.submenu-list li span.linkObfusquer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.48rem 1rem;
    background: #f9f9f9;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
    min-height: 46px;
    cursor: pointer;
    font-size: 15px;
}

.submenu-list li a:hover,
.submenu-list li span.linkObfusquer:hover {
    background: #e6e6e6;
}

.submenu-list li a .menu-icon,
.submenu-list li span.linkObfusquer .menu-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.submenu-list li a .menu-text,
.submenu-list li span.linkObfusquer .menu-text {
    flex: 1;
}

.submenu-list li a .arrow,
.submenu-list li span.linkObfusquer .arrow {
    width: 16px;
    height: auto;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

/* Level 3 : décalé légèrement pour indiquer la profondeur */
.submenu-level3 {
    z-index: 20;
}

/* =============================================
   BANNIÈRE DU SOUS-PANNEAU RAYON
   ============================================= */
.submenu-banniere {
    position: relative;
    flex-shrink: 0;
    margin: 0 1rem 0.75rem;
}

.submenu-banniere img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.submenu-banniere .btn-gamme {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* =============================================
   BURGER BUTTON
   ============================================= */
.burger-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
}

.burger-icon {
    position: relative;
    width: 20px;
    height: 2px;
    background-color: #000;
}

.burger-icon::before,
.burger-icon::after {
    content: "";
    width: 20px;
    height: 2px;
    background-color: #000;
    position: absolute;
    left: 0;
}

.burger-icon::before { top: -6px; }
.burger-icon::after  { top: 6px; }

.burger-label {
    font-size: 0.9rem;
}
