:root {
    --kreabel-blue: #0b6df6; 
    --kreabel-yellow: #fff32b; 
    --kreabel-black: #000000;
    --kreabel-text: #1a1a1a;
    --kreabel-bg: #FFFFFF;
    --kreabel-border: #E5E5E5;
    --kreabel-grey-bg: #e6e6e6; 
}

/* Base et Overlay */
.kreabel-overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 99998;
}

.kreabel-menu {
    position: fixed; 
    top: 0; left: -100%; 
    width: 100%; max-width: 563px; height: 100vh;
    background: var(--kreabel-bg); 
    z-index: 999999999;
    transition: left 0.3s ease-out; 
    overflow: hidden;
    display: flex; 
    flex-direction: column;
    font-family: 'Raleway', sans-serif;
}
.kreabel-menu.open { left: 0; }

/* HEADER */
.kreabel-menu-header {
    display: grid; 
    grid-template-columns: 60px 1fr 60px; 
    align-items: center;
    height: 90px;
    padding: 0 10px; 
    background: #fff; 
    z-index: 10; 
    position: relative;
}
.menu-logo { margin: 0 auto; display: block; max-width: 160px; height: auto; }
.header-left, .header-right { display: flex; align-items: center; justify-content: center; }

.header-action-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* PANELS */
/* PANELS */
.kreabel-panel {
    position: absolute; 
    top: 90px; left: 100%; 
    width: 100%; 
    height: calc(100vh - 90px);
    background: var(--kreabel-bg); 
    transition: left 0.3s ease-out; 
    overflow-y: auto; 
    overflow-x: hidden;
    padding: 20px 40px 60px 40px;
    /* On passe en display: block au lieu de flex pour libérer le scroll naturel */
    display: block; 
}

.kreabel-panel.active { 
    left: 0; 
    z-index: 5; 
    /* On a supprimé padding-top: 0 et padding-bottom: 0 ici 
       pour conserver l'espace de confort quand on scrolle tout en bas */
}

/* Empêche uniquement le panel principal (accueil) de scroller et lui redonne sa structure d'origine */
#panel-main {
    display: flex; 
    flex-direction: column;
    overflow-y: hidden; 
}

.kreabel-panel.prev { left: -30%; opacity: 0; z-index: 1; pointer-events: none; }

/* MAQUETTE 1 : PILLS */
.menu-pill-container {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    margin-bottom: 25px;
}
.menu-pill {
    display: flex;
    align-items: center;
    padding: 0 30px;
    width: 100%;
    height: 66px;
    border-radius: 100px;
    border: none; 
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 18px;
}
.pill-icon { height: 38px; width: auto; margin-right: 30px; }
.pill-black { background: var(--kreabel-black); color: white; }
.pill-blue { background: var(--kreabel-blue); color: white; }
.pill-yellow { background: var(--kreabel-yellow); color: var(--kreabel-black); }

/* LIENS STATIQUES */
.menu-static-links { list-style: none; padding: 0; margin: 0; }
.menu-static-links li { border-bottom: 1px solid var(--kreabel-border); }
.menu-static-links a,
.menu-static-links label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 12px 0;
    color: var(--kreabel-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    background: transparent;
    border: 0;
}
.menu-static-links .chevron-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* SOUS-MENUS */
.panel-header { margin-bottom: 25px; }
.panel-title-text { 
    color: var(--kreabel-blue); 
    font-size: 18px; 
    font-weight: 700; 
    text-decoration: underline; 
    text-underline-offset: 6px; 
    text-decoration-thickness: 2px; 
    margin: 0 0 15px 0; 
}
.voir-tout { 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--kreabel-black); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
}

/* LISTES DYNAMIQUES */
.dynamic-cat-list { list-style: none; padding: 0; margin: 0; }
.dynamic-cat-list > li { border-bottom: 1px solid var(--kreabel-border); }

.accordion-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 0; 
    cursor: pointer; 
    text-decoration: none; 
    color: var(--kreabel-text); 
    font-size: 16px; 
    font-weight: 500;
    width: 100%; 
    background: none; 
    border: none;
}
.list-item-content { display: flex; align-items: center; }
.list-item-content img { width: 40px; height: 40px; object-fit: contain; margin-right: 20px; }

/* MAQUETTE 4 : ACCORDÉON OUVERT */
.accordion-item.open > .accordion-header { 
    background-color: var(--kreabel-grey-bg); 
    padding: 20px; 
    margin: 10px -20px 0 -20px;
    border-radius: 8px;
    font-weight: 600;
}

.accordion-content { display: none; padding-top: 10px; }
.accordion-item.open > .accordion-content { display: block; }
.accordion-list { list-style: none; padding: 0; margin: 0 0 20px 0; }
.accordion-list li a {
    display: flex; 
    align-items: center; 
    padding: 12px 0; 
    color: var(--kreabel-text); 
    text-decoration: none; 
    font-size: 15px;
}
/* Flèche ">" personnalisée pour les sous-items */
.accordion-list li a::before {
    content: ">"; 
    font-family: monospace; 
    font-weight: bold; 
    margin-right: 12px; 
    font-size: 14px;
}

/* MAQUETTE 3 : BANDEAU PROMO */
.promo-banner-bottom {
    background-color: var(--kreabel-blue); 
    color: white; 
    border-radius: 12px;
    padding: 30px 24px; 
    margin-top: 30px; 
    position: relative; 
    overflow: hidden;
    min-height: 220px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end;
    background-image: url('../img/promo-lamp.png'); /* À adapter selon votre chemin */
    background-repeat: no-repeat; 
    background-position: right bottom; 
    background-size: 45%;
}
.promo-banner-bottom .btn-yellow {
    background: var(--kreabel-yellow); 
    color: var(--kreabel-black); 
    border: none; 
    border-radius: 50px;
    padding: 12px 24px; 
    font-weight: 700; 
    font-size: 14px; 
    margin-bottom: 20px; 
    align-self: flex-start;
    cursor: default;
}
.promo-text { font-size: 15px; line-height: 1.4; z-index: 2; width: 70%; font-weight: 500; }

/* FOOTER INFO */
.menu-footer-info { 
    color: var(--kreabel-black); 
    font-weight: 500; 
    font-size: 14px; 
    line-height: 1.5; 
    margin-top: 40px;
}

@media screen and (max-width: 50em){
.menu-pill {
    border-radius: 20px;
}
.menu-pill-container {
    
    gap: 4px;
}
}


/* SEO-safe / server-rendered version */
.kreabel-overlay.open {
    display: block;
}

.kreabel-menu-is-open {
    overflow: hidden;
}


a.menu-pill {
    text-decoration: none;
}

.voir-tout-icon {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.header-action-btn[hidden] {
    display: none !important;
}

/* Fallback fiable sans JavaScript : navigation par radio/label, sans :target et sans hash URL. */
.kreabel-panel-close-state,
.kreabel-panel-toggle {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

html:not(.kreabel-js) #kreabel-menu-container:has(.kreabel-panel-toggle:checked) {
    left: 0;
}

html:not(.kreabel-js) #kreabel-menu-container:has(.kreabel-panel-toggle:checked) + #kreabel-menu-overlay {
    display: block;
}

html:not(.kreabel-js) #kreabel-menu-container:has(.kreabel-panel-toggle:checked) .kreabel-panel {
    left: 100%;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

html:not(.kreabel-js) #kreabel-menu-container .kreabel-panel-toggle:checked + .kreabel-panel {
    left: 0;
    z-index: 20; /* panel actif sans JS */
    opacity: 1;
    pointer-events: auto;
}

html:not(.kreabel-js) #kb-panel-main:checked + #panel-main {
    left: 0;
    z-index: 8;
    opacity: 1;
    pointer-events: auto;
}

html:not(.kreabel-js) #kreabel-back-btn {
    display: none !important;
}

.kreabel-css-panel-back {
    display: none !important;
    position: fixed;
    top: 13px;
    left: 10px;
    z-index: 1000000001;
    text-decoration: none;
    width: 56px;
    height: 64px;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

html:not(.kreabel-js) #kreabel-menu-container .kreabel-panel-toggle:checked + .kreabel-panel > .kreabel-css-panel-back {
    display: flex !important;
}

html:not(.kreabel-js) #kb-panel-main:checked + #panel-main > .kreabel-css-panel-back,
html.kreabel-js .kreabel-css-panel-back {
    display: none !important;
}

#kreabel-close-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000;
    text-decoration: none;
}

label.menu-pill,
label.accordion-header,
label.header-action-btn,
label.menu-static-trigger {
    user-select: none;
}

label.menu-pill,
a.menu-pill {
    text-decoration: none;
}

/* Accordéons natifs pour le mode sans JS, compatible aussi avec JS. */
.accordion-details > summary {
    list-style: none;
}

.accordion-details > summary::-webkit-details-marker {
    display: none;
}

.accordion-details[open] > .accordion-content {
    display: block;
}

.accordion-item:has(.accordion-details[open]) .accordion-details > .accordion-header {
    background-color: var(--kreabel-grey-bg);
    padding: 20px;
    margin: 10px -20px 0 -20px;
    border-radius: 8px;
    font-weight: 600;
}

