/* =====================================================
   BIOMONDE MENU RAYONS — Premium + Bulletproof
   Compatibility: Chrome 60+, Safari 12+, Firefox 60+,
   Samsung Internet 10+, iOS Safari 12+, Edge 79+
   ===================================================== */

/* === RESET & BASE === */
.bio-main-container { width: 100%; position: relative; font-family: 'Quicksand', sans-serif; }
.bio-main-container *, .bio-main-container *::before, .bio-main-container *::after { 
    -webkit-box-sizing: border-box; box-sizing: border-box; 
}
ul.bio-list-reset { list-style: none !important; margin: 0 !important; padding: 0 !important; }

/* === BOUTON PRINCIPAL === */
.bio-mega-btn {
    display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between;
    padding: 0 20px; border: none; cursor: pointer; width: 100%;
    font-weight: 700; font-size: 14px; text-transform: uppercase;
    border-radius: 50px; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; /* supprime le flash bleu sur mobile */
}
.bio-btn-content { 
    display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
    gap: 10px; 
}
/* Fallback pour gap dans flexbox (vieux Safari) */
@supports not (gap: 10px) {
    .bio-btn-content > * + * { margin-left: 10px; }
}

/* === SCROLLBAR CUSTOM (Webkit only, progressive) === */
.bio-custom-scroll::-webkit-scrollbar { width: 5px; }
.bio-custom-scroll::-webkit-scrollbar-track { background: transparent; }
.bio-custom-scroll::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 10px; }
.bio-custom-scroll::-webkit-scrollbar-thumb:hover { background: #aaa; }


/* =====================================================
   MOBILE — Premium (max-width: 900px)
   ===================================================== */
@media (max-width: 900px) {
    .bio-desktop-view { display: none !important; }
    .bio-mobile-view { display: block; }
    .bio-mega-btn { 
        -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; 
        padding: 0; 
    }
    
    /* --- OVERLAY PLEIN ÉCRAN --- */
    .bio-mega-dropdown {
        position: fixed; top: 0; left: 0; width: 100vw; 
        /* iOS 100vh fix : utilise 100% en fallback, puis dvh si supporté */
        height: 100%;
        height: 100vh;
        height: -webkit-fill-available;
        background: #fff; z-index: 999999;
        display: none; /* Caché par défaut — empêche le flash au chargement */
        -webkit-box-orient: vertical; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column;
        -webkit-transform: translateX(-100%); -ms-transform: translateX(-100%); transform: translateX(-100%); 
        will-change: transform;
    }
    @supports (height: 100dvh) {
        .bio-mega-dropdown { height: 100dvh; }
    }
    .bio-mobile-view.is-open .bio-mega-dropdown { 
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0); 
    }

    /* --- HEADER CLEAN --- */
    .bio-mobile-header {
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between;
        padding: 0 16px;
        padding-top: env(safe-area-inset-top, 0px);
        background: #fff;
        border-bottom: 1px solid #f0ede8;
        color: #3e302b; height: 56px; min-height: 56px;
        -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0;
        position: relative; z-index: 10;
    }

    .bio-nav-title { 
        font-weight: 800; font-size: 15px; text-transform: uppercase; 
        letter-spacing: 1px; color: #3e302b;
        -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1;
        text-align: center;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        padding: 0 8px;
    }

    .bio-nav-close { 
        background: #f5f2ed; border: none; color: #5D4037; 
        font-size: 18px; line-height: 1;
        width: 40px; height: 40px; min-width: 40px; min-height: 40px; border-radius: 12px;
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center;
        -webkit-transition: background 0.2s; transition: background 0.2s;
        -webkit-tap-highlight-color: transparent;
        font-weight: 400;
    }
    .bio-nav-close:active { background: #ebe6df; }

    .bio-nav-back { 
        background: #f5f2ed; border: none; color: #5D4037; 
        font-size: 12px; font-weight: 700;
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        gap: 2px; 
        opacity: 0; pointer-events: none; 
        -webkit-transition: opacity 0.25s; transition: opacity 0.25s;
        padding: 7px 12px 7px 6px; border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
        white-space: nowrap; min-width: 0; max-width: 90px;
    }
    .bio-nav-back.visible { opacity: 1; pointer-events: auto; }
    .bio-nav-back:active { background: #ebe6df; }
    .bio-nav-back svg { width: 18px; height: 18px; -webkit-flex-shrink: 0; flex-shrink: 0; fill: #5D4037; }

    /* --- BOUTONS ACCUEIL / MON MAGASIN --- */
    .bio-mobile-actions { 
        padding: 12px 16px; 
        background: #fff; 
        border-bottom: 1px solid #f0ede8;
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        gap: 10px; 
        -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0;
    }
    @supports not (gap: 10px) {
        .bio-mobile-actions > * + * { margin-left: 10px; }
    }
    .bio-pill-btn { 
        -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1;
        text-align: center; padding: 10px 12px; 
        border-radius: 12px; font-size: 13px; font-weight: 700; 
        text-decoration: none; 
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center;
        gap: 8px;
        -webkit-transition: all 0.2s ease; transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .bio-btn-outline { 
        background: #f9f7f4; color: #5D4037; border: 1.5px solid #e8e3dc;
    }
    .bio-btn-outline:active { background: #f0ede8; }
    .bio-btn-filled { 
        background: #8CB93F;
        color: #fff; border: 1.5px solid transparent;
    }
    .bio-btn-filled:active { opacity: 0.85; }

    /* --- PANELS CONTAINER --- */
    .bio-panels-wrapper { 
        -webkit-box-flex: 1; -webkit-flex-grow: 1; -ms-flex-positive: 1; flex-grow: 1;
        position: relative; width: 100%; height: 100%; 
        overflow: hidden; background: #faf8f5;
        -webkit-overflow-scrolling: touch;
    }

    .bio-panel, .bio-sub-panel, .bio-sub-panel-lvl3 {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: #faf8f5; overflow-y: auto; 
        -webkit-overflow-scrolling: touch;
        -webkit-transform: translateX(100%); -ms-transform: translateX(100%); transform: translateX(100%); 
        -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.3s;
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.3s;
        will-change: auto;
        visibility: hidden; padding-bottom: 30px;
        overscroll-behavior: contain; /* empêche le scroll de passer à la page derrière */
        -ms-scroll-chaining: none; /* IE/Edge fallback */
    }
    .bio-panel.active, .mobile-active { 
        -webkit-transform: translateX(0) !important; -ms-transform: translateX(0) !important; transform: translateX(0) !important; 
        visibility: visible !important; z-index: 50; 
        will-change: transform;
        -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
    }
    .mobile-pushed { 
        -webkit-transform: translateX(-30%) !important; -ms-transform: translateX(-30%) !important; transform: translateX(-30%) !important; 
        opacity: 0.3; visibility: hidden !important; 
    }

    /* ============================================
       GRILLE DE CARTES — Root Panel
       Design organique & naturel
       ============================================ */

    .bio-panel-root .bio-list-reset {
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap;
        padding: 16px !important;
        margin: 0 -5px !important;
    }
    .bio-panel-root .bio-item {
        width: 50%;
        width: calc(50% - 10px);
        margin: 5px;
    }

    @supports (display: grid) {
        .bio-panel-root .bio-list-reset {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            padding: 16px !important;
            margin: 0 !important;
        }
        .bio-panel-root .bio-item {
            width: auto;
            margin: 0;
        }
    }

    .bio-panel-root .bio-item {
        border-bottom: none !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        height: 0;
        padding-bottom: 75% !important;
        background-color: #eae5dc;
        background-size: cover;
        background-position: center;
        -webkit-box-shadow: 0 2px 8px rgba(93,64,55,0.08);
        box-shadow: 0 2px 8px rgba(93,64,55,0.08);
        -webkit-transition: box-shadow 0.2s;
        transition: box-shadow 0.2s;
    }
    .bio-panel-root .bio-item:active {
        opacity: 0.85;
    }

    /* Palette organique douce — tons naturels harmonieux */
    .bio-panel-root .bio-item:nth-child(1)  { background: linear-gradient(155deg, #a8c686 0%, #7ba05b 100%); }
    .bio-panel-root .bio-item:nth-child(2)  { background: linear-gradient(155deg, #c9a96e 0%, #a8834a 100%); }
    .bio-panel-root .bio-item:nth-child(3)  { background: linear-gradient(155deg, #d4a0a0 0%, #b87878 100%); }
    .bio-panel-root .bio-item:nth-child(4)  { background: linear-gradient(155deg, #88b88a 0%, #5d9460 100%); }
    .bio-panel-root .bio-item:nth-child(5)  { background: linear-gradient(155deg, #b0a0c4 0%, #8a78a0 100%); }
    .bio-panel-root .bio-item:nth-child(6)  { background: linear-gradient(155deg, #8ab4c4 0%, #5d8ea0 100%); }
    .bio-panel-root .bio-item:nth-child(7)  { background: linear-gradient(155deg, #b09880 0%, #8a7260 100%); }
    .bio-panel-root .bio-item:nth-child(8)  { background: linear-gradient(155deg, #c48a7a 0%, #a06858 100%); }
    .bio-panel-root .bio-item:nth-child(9)  { background: linear-gradient(155deg, #d4c48a 0%, #b8a468 100%); }
    .bio-panel-root .bio-item:nth-child(10) { background: linear-gradient(155deg, #80b4a8 0%, #5d9488 100%); }
    .bio-panel-root .bio-item:nth-child(11) { background: linear-gradient(155deg, #a8a8a0 0%, #888880 100%); }
    .bio-panel-root .bio-item:nth-child(12) { background: linear-gradient(155deg, #b4c88c 0%, #90a868 100%); }
    .bio-panel-root .bio-item:nth-child(13) { background: linear-gradient(155deg, #c4a878 0%, #a88c58 100%); }

    .bio-panel-root .bio-link-wrapper {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-orient: vertical; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column;
        -webkit-box-pack: end; -webkit-justify-content: flex-end; -ms-flex-pack: end; justify-content: flex-end;
        padding: 0;
        background: linear-gradient(to top, rgba(40,32,24,0.72) 0%, rgba(40,32,24,0.08) 55%, transparent 100%);
    }

    .bio-panel-root .bio-left-content {
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between;
        gap: 0; padding: 10px 14px; width: 100%;
    }
    .bio-panel-root .bio-thumb { display: none; }
    .bio-panel-root .bio-text { 
        font-size: 13px; font-weight: 800; color: #fff !important; 
        letter-spacing: 0.3px;
        text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    }
    .bio-panel-root .bio-arrow { 
        fill: rgba(255,255,255,0.8) !important; 
        -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0;
        width: 16px; height: 16px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        padding: 2px;
    }
    .bio-panel-root .bio-mobile-full-link { z-index: 5; }

    @-webkit-keyframes bioCardIn {
        from { opacity: 0; -webkit-transform: translateY(12px); transform: translateY(12px); }
        to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
    }
    @keyframes bioCardIn {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .bio-panel-root.active .bio-item,
    .bio-panel-root.mobile-active .bio-item {
        -webkit-animation: bioCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
        animation: bioCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }
    .bio-panel-root .bio-item:nth-child(1) { animation-delay: 0.02s; }
    .bio-panel-root .bio-item:nth-child(2) { animation-delay: 0.05s; }
    .bio-panel-root .bio-item:nth-child(3) { animation-delay: 0.08s; }
    .bio-panel-root .bio-item:nth-child(4) { animation-delay: 0.11s; }
    .bio-panel-root .bio-item:nth-child(5) { animation-delay: 0.14s; }
    .bio-panel-root .bio-item:nth-child(6) { animation-delay: 0.17s; }
    .bio-panel-root .bio-item:nth-child(7) { animation-delay: 0.20s; }
    .bio-panel-root .bio-item:nth-child(8) { animation-delay: 0.23s; }
    .bio-panel-root .bio-item:nth-child(9) { animation-delay: 0.26s; }
    .bio-panel-root .bio-item:nth-child(10) { animation-delay: 0.29s; }
    .bio-panel-root .bio-item:nth-child(11) { animation-delay: 0.32s; }
    .bio-panel-root .bio-item:nth-child(12) { animation-delay: 0.35s; }

    /* ============================================
       SOUS-PANELS — Liste premium
       ============================================ */
    .bio-mobile-see-all { 
        padding: 14px 16px; 
        background: #fff; 
        text-align: center; 
        border-bottom: none;
        margin: 0 16px 6px 16px;
        border-radius: 12px;
        -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.04); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .bio-mobile-see-all a { 
        color: #fff !important; font-weight: 700; text-decoration: none;
        display: block;
        background: #8CB93F; /* fallback */
        background: -webkit-linear-gradient(315deg, #8CB93F, #7aa832);
        background: linear-gradient(135deg, #8CB93F, #7aa832);
        padding: 12px 24px;
        border-radius: 50px;
        font-size: 14px;
        -webkit-box-shadow: 0 4px 12px rgba(140,185,63,0.3); box-shadow: 0 4px 12px rgba(140,185,63,0.3);
        -webkit-transition: -webkit-transform 0.15s, box-shadow 0.15s;
        transition: transform 0.15s, box-shadow 0.15s;
        -webkit-tap-highlight-color: transparent;
    }
    .bio-mobile-see-all a:active { 
        opacity: 0.85;
        -webkit-box-shadow: 0 2px 8px rgba(140,185,63,0.2); box-shadow: 0 2px 8px rgba(140,185,63,0.2);
    }

    .bio-sub-panel .bio-list-reset,
    .bio-sub-panel-lvl3 .bio-list-reset {
        margin: 0 16px !important;
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.04); box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }

    .bio-sub-panel .bio-item,
    .bio-sub-panel-lvl3 .bio-item {
        padding: 14px 16px; 
        min-height: 48px;
        border-bottom: 1px solid #f5f2ed; 
        display: block; position: relative;
    }
    .bio-sub-panel .bio-item:last-child,
    .bio-sub-panel-lvl3 .bio-item:last-child { border-bottom: none; }

    .bio-link-wrapper { 
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        width: 100%; 
    }
    .bio-left-content { 
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        gap: 12px; 
    }
    .bio-thumb { width: 30px; height: 30px; -o-object-fit: contain; object-fit: contain; }

    .bio-sub-panel .bio-text,
    .bio-sub-panel-lvl3 .bio-text { 
        font-size: 14px; font-weight: 600; color: #3e302b;
    }
    .bio-sub-panel .bio-arrow,
    .bio-sub-panel-lvl3 .bio-arrow { 
        fill: #8CB93F !important; width: 18px; height: 18px;
    }
    .bio-mobile-full-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .bio-link-direct { text-decoration: none; color: inherit; display: block; width: 100%; }

    /* Stagger pour sub-panels */
    @-webkit-keyframes bioItemIn {
        from { opacity: 0; -webkit-transform: translateX(12px); transform: translateX(12px); }
        to { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); }
    }
    @keyframes bioItemIn {
        from { opacity: 0; -webkit-transform: translateX(12px); transform: translateX(12px); }
        to { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); }
    }
    .mobile-active .bio-list-reset .bio-item {
        -webkit-animation: bioItemIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
        animation: bioItemIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }
    .mobile-active .bio-list-reset .bio-item:nth-child(1) { -webkit-animation-delay: 0.02s; animation-delay: 0.02s; }
    .mobile-active .bio-list-reset .bio-item:nth-child(2) { -webkit-animation-delay: 0.05s; animation-delay: 0.05s; }
    .mobile-active .bio-list-reset .bio-item:nth-child(3) { -webkit-animation-delay: 0.08s; animation-delay: 0.08s; }
    .mobile-active .bio-list-reset .bio-item:nth-child(4) { -webkit-animation-delay: 0.11s; animation-delay: 0.11s; }
    .mobile-active .bio-list-reset .bio-item:nth-child(5) { -webkit-animation-delay: 0.14s; animation-delay: 0.14s; }
    .mobile-active .bio-list-reset .bio-item:nth-child(6) { -webkit-animation-delay: 0.17s; animation-delay: 0.17s; }
    .mobile-active .bio-list-reset .bio-item:nth-child(7) { -webkit-animation-delay: 0.20s; animation-delay: 0.20s; }
    .mobile-active .bio-list-reset .bio-item:nth-child(8) { -webkit-animation-delay: 0.23s; animation-delay: 0.23s; }
    .mobile-active .bio-list-reset .bio-item:nth-child(9) { -webkit-animation-delay: 0.26s; animation-delay: 0.26s; }
    .mobile-active .bio-list-reset .bio-item:nth-child(10) { -webkit-animation-delay: 0.29s; animation-delay: 0.29s; }
}


/* =====================================================
   DESKTOP — Premium (min-width: 901px)
   ===================================================== */
@media (min-width: 901px) {
    .bio-mobile-view { display: none !important; }
    
    .bio-desktop-view { display: block !important; position: relative; z-index: 9999; }
    
    .bio-desktop-dropdown {
        position: absolute; top: 100%; left: 0;
        z-index: 99999 !important;
        width: -webkit-max-content !important; width: -moz-max-content !important; width: max-content !important; 
        max-width: 100vw;
        
        opacity: 0; visibility: hidden; 
        -webkit-transform: translateY(8px); -ms-transform: translateY(8px); transform: translateY(8px); 
        pointer-events: none;
        -webkit-transition: opacity 0.22s ease, visibility 0.22s ease, -webkit-transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
        -webkit-transition-delay: 0.3s; transition-delay: 0.3s;
        margin-top: 0; height: 500px;
    }
    
    .bio-desktop-dropdown::before {
        content: ''; position: absolute; top: -15px; left: 0; width: 100%; height: 15px; background: transparent;
    }

    .bio-desktop-view:hover .bio-desktop-dropdown {
        opacity: 1 !important; 
        visibility: visible !important; 
        -webkit-transform: translateY(0) !important; -ms-transform: translateY(0) !important; transform: translateY(0) !important;
        pointer-events: auto !important;
        -webkit-transition-delay: 0s !important; transition-delay: 0s !important; 
    }

    .bio-3cols-container { 
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        height: 100%; 
        
        /* Fallback pour navigateurs sans clamp() */
        --bio-col-w: 260px;
        
        width: var(--bio-col-w); 
        -webkit-transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        
        background: #fff; 
        -webkit-box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
        box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
        border: 1px solid #eae6e0;
        border-top: 4px solid #8CB93F; 
        border-radius: 0 0 16px 16px;
        overflow: hidden;
    }
    /* clamp() upgrade si supporté */
    @supports (width: clamp(1px, 2vw, 3px)) {
        .bio-3cols-container { --bio-col-w: clamp(230px, 21vw, 300px); }
    }
    
    .bio-3cols-container.show-2-cols { width: calc(var(--bio-col-w) * 2); }
    .bio-3cols-container.show-3-cols { width: calc(var(--bio-col-w) * 3); }

    .bio-col { 
        -webkit-box-flex: 0; -webkit-flex: 0 0 var(--bio-col-w); -ms-flex: 0 0 var(--bio-col-w); flex: 0 0 var(--bio-col-w);
        width: var(--bio-col-w);
        border-right: 1px solid #f0ede8; 
        background: #fff;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .bio-col:last-child { border-right: none; }
    
    .bio-col-2, .bio-col-3 { display: none; }
    .bio-col-2.is-visible, .bio-col-3.is-visible { display: block; }

    /* Col1 Items — Catégories racines */
    .bio-col-item { 
        -webkit-transition: all 0.18s ease; transition: all 0.18s ease;
        position: relative;
    }
    .bio-col1-item::before {
        content: '';
        position: absolute; left: 0; top: 0;
        width: 0; height: 100%;
        background: #8CB93F;
        -webkit-transition: width 0.18s ease; transition: width 0.18s ease;
    }
    .bio-col-item:hover, .bio-col-item.active { background-color: #f8f6f2 !important; }
    .bio-col1-item:hover::before, .bio-col1-item.active::before { width: 3px; }
    
    .bio-col-link {
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between;
        padding: 11px 18px; 
        text-decoration: none; 
        color: #5D4037; 
        font-size: 15px;
        -webkit-transition: color 0.15s; transition: color 0.15s;
    }
    
    .bio-col1-item .bio-col-link {
        font-size: 15px; 
        font-weight: 600;
        padding: 10px 18px;
    }
    
    .bio-col-item:hover .bio-col-link, .bio-col-item.active .bio-col-link { color: #6B8E23; }
    .bio-col-link svg { fill: #8CB93F !important; -webkit-transition: -webkit-transform 0.15s; transition: transform 0.15s; }
    .bio-col-item:hover .bio-col-link svg { -webkit-transform: translateX(2px); -ms-transform: translateX(2px); transform: translateX(2px); }

    /* Thumbnails dans cercles pastels */
    .bio-col-label { 
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        gap: 12px; 
    }
    .bio-d-thumb { 
        width: 28px; height: 28px; -o-object-fit: contain; object-fit: contain;
        background: #f4f9eb;
        border-radius: 50%;
        padding: 4px;
    }

    .bio-col-panel { display: none; }
    .bio-col-panel.active { display: block; -webkit-animation: bioFadeSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1); animation: bioFadeSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1); }

    /* Panel Headers */
    .bio-panel-header {
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        padding: 14px 18px; 
        border-bottom: 1px solid #f0ede8;
        background: #f9f7f2; /* fallback */
        background: -webkit-linear-gradient(315deg, #f9f7f2, #fff);
        background: linear-gradient(135deg, #f9f7f2, #fff);
    }
    .bio-panel-header-title { 
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        gap: 10px; 
        color: #6B8E23; font-weight: 700; font-size: 15px; 
    }
    .bio-tout-voir { 
        display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
        -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center;
        gap: 4px; 
        color: #8CB93F; font-size: 13px; font-weight: 700; 
        text-decoration: none;
        padding: 5px 12px;
        border-radius: 50px;
        background: #f4f9eb;
        -webkit-transition: all 0.15s; transition: all 0.15s;
    } 
    .bio-tout-voir:hover { background: #e8f3d6; color: #6B8E23; }

    /* Col2/Col3 items — pilules au hover */
    .bio-col2-item .bio-col-link,
    .bio-col3-item .bio-col-link {
        margin: 1px 8px;
        border-radius: 10px;
        padding: 10px 14px;
        font-size: 14px;
    }
    .bio-col2-item:hover,
    .bio-col3-item:hover { background: transparent !important; }
    .bio-col2-item:hover .bio-col-link,
    .bio-col3-item:hover .bio-col-link { background: #f8f6f2; }
    .bio-col2-item.active .bio-col-link { background: #f4f9eb; color: #6B8E23; }

    .bio-col3-item .bio-col-link { padding-top: 9px; padding-bottom: 9px; font-size: 14px; } 
}

/* === ANIMATIONS DESKTOP === */
@-webkit-keyframes bioFadeSlide { 
    from { opacity: 0; -webkit-transform: translateX(8px); transform: translateX(8px); } 
    to { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); } 
}
@keyframes bioFadeSlide { 
    from { opacity: 0; -webkit-transform: translateX(8px); transform: translateX(8px); } 
    to { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); } 
}
