/* ============================================================
   Slider Rayons — Layout Spécifique
   Dépend de : bio-design-tokens.css (flèches unifiées)
   Contient UNIQUEMENT les styles de la carte rayon et le layout.
   ============================================================ */

/* ── WRAPPER ─────────────────────────────────────────────────── */
.bio-rayons-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    min-height: 200px;
    contain: layout style;
}

/* ── PRÉ-INITIALISATION ─────────────────────────────────────── */
.bio-rayons-wrapper .splide:not(.is-initialized) .splide__list {
    display: flex; gap: 15px; overflow: hidden;
}
.bio-rayons-wrapper .splide:not(.is-initialized) .splide__slide {
    flex: 0 0 calc(12.5% - 14px); min-width: 0;
}
@media(max-width:900px) {
    .bio-rayons-wrapper .splide:not(.is-initialized) .splide__slide { flex: 0 0 calc(20% - 12px); }
}
@media(max-width:500px) {
    .bio-rayons-wrapper .splide:not(.is-initialized) .splide__slide { flex: 0 0 40%; }
}

/* ── SPLIDE OVERRIDES ────────────────────────────────────────── */
.bio-rayons-wrapper .splide__pagination { display: none !important; }
.bio-rayons-wrapper .splide__track {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
    overflow: hidden !important;
}

/* ── CARTE RAYON ─────────────────────────────────────────────── */
.bio-rayons-wrapper .br-card {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--bio-cream, #f9f7f2);
    border-radius: var(--bio-card-radius, 20px);
    text-decoration: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s var(--bio-ease, cubic-bezier(0.25, 0.8, 0.25, 1)),
                box-shadow 0.3s ease;
    overflow: hidden;
    will-change: transform;
}
.bio-rayons-wrapper .br-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(93, 64, 55, 0.15);
    border-color: transparent;
    background-color: #fff;
}

/* ── IMAGE RAYON ─────────────────────────────────────────────── */
.bio-rayons-wrapper .br-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bio-rayons-wrapper .br-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
    -webkit-backface-visibility: hidden;
    margin: 0 !important;
}
.bio-rayons-wrapper .br-card:hover .br-img img { transform: scale(1.08); }

/* ── TITRE RAYON ─────────────────────────────────────────────── */
.bio-rayons-wrapper .br-title {
    padding: 12px 5px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--bio-brown, #5D4037);
    text-transform: uppercase;
    line-height: 1.2;
    background: inherit;
    font-family: inherit;
    margin: 0 !important;
}
.bio-rayons-wrapper .br-card:hover .br-title {
    color: var(--bio-green, #8CB93F);
}

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bio-rayons-wrapper .splide__arrow { display: none !important; }
    .bio-rayons-wrapper .br-title { font-size: 11px; padding: 8px 2px; }
}
