/* =============================================================================
   1) VARIABLES CSS (Palette, tailles, ratios, inputs)
   ========================================================================== */
:root {
    /* Palette globale */
    --global-jaune-delta: #ffcc00;
    --global-main-color: #e30613;
    --global-main-color-light: #e5525a;
    --global-main-color-light-light: #e59196;
    --global-main-color-dark: #a2030d;
    --global-main-color-dark-dark: #700309;
    --global-black-color: #000000;

    /* Alias / compléments */
    --brand-red: #e30613;

    /* Ratios / tailles de référence */
    --product-thumb-ratio: 4/5;
    --ref-fz-small: clamp(20px, .70vw, 26px);
    --ref-fz: clamp(28px, .92vw, 34px);

    /* Inputs */
    --input-border: rgba(0,0,0,.12);
    --input-placeholder: #6c757d;
}

/* =============================================================================
   2) POLICES & BASE TYPO
   ========================================================================== */
@font-face { font-family: 'geo-light';   src: url('../../fonts/geom/Geom-Graphic-W03-Light.woff') format('OpenType'); }
@font-face { font-family: 'geo-regular'; src: url('../../fonts/geom/Geom-Graphic-W03-Regular.woff') format('OpenType'); }
@font-face { font-family: 'geo-bold';    src: url('../../fonts/geom/Geom-Graphic-W03-Bold.woff') format('OpenType'); }

.font-geo-light   { font-family: 'geo-light',   sans-serif !important; }
.font-geo-regular { font-family: 'geo-regular', sans-serif !important; }
.font-geo-bold    { font-family: 'geo-bold',    sans-serif !important; }

body { font-family: 'geo-light', sans-serif !important; font-size: 16px; }

/* =============================================================================
   3) LAYOUT (Header / Footer / Décors)
   ========================================================================== */
/* Top bar */
.top-div { height: 1.5rem; background-color: #e22b31; }
@media (min-width: 576px) { .top-div { height: 15px; } }
@media (min-width: 992px) { .top-div { height: 1.5rem; } }


/* Logo bloc */
.logo-div { z-index: 9999; padding: 1rem 0; }
.logo_uride { max-width: 15rem; width: 30rem; }
@media (max-width: 991.98px) {
    .logo-div { padding: 0; }
    .logo_uride { max-width: 11rem; }
}

/* Bande décor sous menu */
.menu-div {
    --decor-h-menu: clamp(60px, 70px, 80px);
    --decor-top-menu: clamp(1rem, 0.9rem, 0.5rem);
    padding-top: 0;
    height: 0.8rem;
}

@media (min-width: 992px) {
    .menu-div::after {
        content: "";
        position: absolute;
        left: 50%;
        top: var(--decor-top-menu);
        transform: translateX(-50%);
        height: var(--decor-h-menu);
        pointer-events: none;
        width: 100vw;
        background: url("../../images/layout/undermenu-bg.svg") top center / 100% auto no-repeat;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .menu-div::after {
        width: 100vw !important;
        height: 39px;
        background: url("../../images/layout/undermenu-bg-lg.svg") top center / 100% 100% no-repeat;
    }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .menu-div::after {
        width: 100vw !important;
        height: 39px;
        background: url("../../images/layout/undermenu-bg-xl.svg") top center / 100% 100% no-repeat;
    }
}
@media (min-width: 1400px) and (max-width: 1919.98px) {
    .menu-div::after {
        width: 100vw !important;
        height: 50px;
        background: url("../../images/layout/undermenu-bg-xxl.svg") top center / 100% 100% no-repeat;
    }
}
@media (min-width: 1920px) {
    .menu-div::after {
        width: 100vw !important;
        height: 50px;
        background: url("../../images/layout/undermenu-bg-xxl.svg") top center / 100% 100% no-repeat;
    }
}



/* Bandes de pied de page (anciennes) */
.bottom-up-div   { height: 40px; background-color: #d31920; }
.bottom-down-div { height: 80px; background-color: #e12a31; }

/* Footer (contexte et bandes) */
.site-footer { position: relative; overflow: visible; }
.site-footer .footer-top  { height: 26px; background:#c9151c; position: relative; z-index: 1; }
.site-footer .footer-main { height:150px; background:#e22b31; overflow: visible; }

/* Logo footer + chevauchement */
.footer-logo { width: 16rem; }
.footer-logo{
    --overlap: 42px;
    position: relative;
    z-index: 2; /* au-dessus du liseré (z=1) */
    margin-top: calc(-1 * var(--overlap));
    line-height: 0;
    transform: translateZ(0);
}

/* Liens footer */
.footer-copyright { color:#6e0a0e; padding:0 1rem 0 0; }
.footer-links .nav-link { color:#fff; padding:0 1rem 0 0; }
.footer-links .nav-link:hover,
.footer-links .nav-link:focus { color:#ffffffcc; text-decoration: underline; }

/* =============================================================================
   4) THÈME / OVERRIDES GÉNÉRAUX
   ========================================================================== */
.pusher > #menu::after { background: var(--global-main-color); }
.pre-footer { background: var(--global-main-color); }
.footer { background: var(--global-black-color) !important; }
a:hover { color: var(--global-main-color) !important; }

header .ui.three.column.stackable.grid > .column:nth-child(3) .button .icon { color: var(--global-main-color); }
.ui.breadcrumb a { color: var(--global-main-color); }
.promotion_label { background-color: var(--global-main-color) !important; }
.primary.button { background: var(--global-main-color) !important; }
.ui.star.rating .active.icon { color: var(--global-main-color-light) !important; }
[data-route="sylius_shop_product_show"] .ui.top.attached.large.tabular.menu .item.active { border-color: var(--global-main-color); }
[data-route="sylius_shop_homepage"] .homepage-banner .homepage-banner__content .button { color: var(--global-main-color) !important; }
[data-route="sylius_shop_homepage"] .ui.huge.header::after,
.ui.horizontal.section.divider.header::after { color: var(--global-main-color); }
[data-route="sylius_shop_login"] .ui.segment > .relaxed.grid .column:first-child button.button { background: var(--global-main-color); }
[data-route="sylius_shop_login"] .ui.segment > .relaxed.grid .column:last-child .button { background: var(--global-main-color); }
[data-route="sylius_shop_login"] .ui.segment > .relaxed.grid .column:last-child .button:hover { border: 1px solid var(--global-main-color); }
[data-route^="sylius_shop_checkout_"] .steps .active .title,
[data-route^="sylius_shop_checkout_"] .steps .step.completed i::before { color: var(--global-main-color) !important; }
input:focus { border-color: var(--global-main-color) !important; }

.ui.button.primary,
.ui.basic.button.primary,
.ui.labeled.button.primary,
.ui.labeled.icon.button.primary,
.buttons .ui.labeled.icon.button.primary,
.ui.button.green,
.ui.basic.button.green,
.ui.labeled.button.green,
.ui.labeled.icon.button.green,
.buttons .ui.labeled.icon.button.green,
.ui.button.submit,
.ui.basic.button.submit,
.ui.labeled.button.submit,
.ui.labeled.icon.button.submit,
.buttons .ui.labeled.icon.button.submit {
    background: var(--global-main-color) !important;
    border-color: var(--global-main-color) !important;
}
.ui.button:hover,
.ui.basic.button:hover,
.ui.labeled.button:hover,
.ui.labeled.icon.button:hover,
.buttons .ui.labeled.icon.button:hover {
    background: var(--global-main-color) !important;
    color: var(--global-main-color-light-light) !important;
    border-color: var(--global-main-color) !important;
}
.ui.toggle.checkbox input:checked~.box:before,
.ui.toggle.checkbox input:checked~label:before,
.ui.toggle.checkbox input:focus:checked~.box:before,
.ui.toggle.checkbox input:focus:checked~label:before {
    background-color: var(--global-main-color) !important;
}
.text-teal { color: var(--global-main-color); }
.address-card-content.default { border-color: var(--global-main-color); }
.address-label { background: var(--global-main-color); }
.shadowed { text-shadow: 2px 2px 2px #000000 !important; }

/* =============================================================================
   5) BANNIÈRE ACCUEIL
   ========================================================================== */
[data-route=sylius_shop_homepage] .homepage-banner .homepage-banner__content {
    top: 40px !important; right: 20px !important; bottom: auto; left: auto;
    max-width: 100%; font-size: 35px; text-transform: uppercase;
}
[data-route=sylius_shop_homepage] .homepage-banner .homepage-banner__content .button {
    font-size: 16px !important; text-transform: uppercase; text-decoration: none; color: #ffffff !important;
}
[data-route=sylius_shop_homepage] .homepage-banner .homepage-banner__content .button:hover {
    color: var(--global-main-color) !important;
}

/* =============================================================================
   6) NAVIGATION & TITRAGE
   ========================================================================== */
.menu .item, .text { font-family: 'geo-light', sans-serif !important; text-transform: uppercase !important; }
.ui.menu .item { border-radius: 0 !important; }
.ui.menu .item:hover { border-bottom: 1px var(--global-main-color) solid !important; border-top: 1px var(--global-main-color) solid !important; background-color: #fff !important; }

.breadcrumb .section { font-family: 'geo-light', sans-serif !important; }
h1 { font-family: 'geo-bold', sans-serif !important; }
*:not(i), .ui, .ui.header { font-family: 'geo-light', sans-serif !important; }

.nav-link { color: #fff !important; font-size: 14px; }
.dropdown-menu .nav-link { color: #000000 !important; }
.dropdown-menu .nav-link:hover { color: var(--global-main-color) !important; }

.navbar-nav { padding-top: 0.22rem !important; margin-top: 0 !important; }
.navbar-nav .nav-link { --bs-nav-link-padding-y: 0 !important; padding-top: 0.22rem !important; padding-bottom: 0 !important; }

/* =============================================================================
   7) CARTES PRODUITS & GRILLES
   ========================================================================== */
/* Grille responsive */

/* La card occupe 100% de sa cellule */
.products-grid > div { display: flex; }
.products-grid > div > [data-test-product] { display:flex; flex-direction:column; width:100%; }
.products-grid > div > [data-test-product] > a.link-reset {
    display:flex; flex-direction:column; flex:1 1 auto; min-height:100%;
}

/* Image produit (ratio fixe + cover) */
.product-card__image{
    position: relative;
    aspect-ratio: var(--product-thumb-ratio);
    padding: 12px;
    overflow: hidden !important;
    background: #ececec;
}
.product-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: auto;
    transform: scale(0.9); /* entre 0.85 et 0.95 selon ton goût */
    transform-origin: center;
}


/* Zébrure top */
.product-card__image.zebra-top::after{
    content: "";
    position: absolute; left: 0; top: 0;
    width: 100%;
    height: clamp(8px, 2.2vw, 18px);
    background-image: url("../../images/layout/zebra-top.svg");
    background-repeat: no-repeat;
    background-size: auto 100%;
    opacity: .95;
    pointer-events: none;
}

/* Badge référence */
.ref-badge{
    position: absolute; left: 0rem; bottom: .75rem;
    display: inline-flex; gap: .35rem; align-items: baseline;
    padding: 0 20px 0 15px; margin: 0;
    background-color: #2d2d2d; border-radius: 0 5px 5px 0;
}
.ref-badge__label{ color:#fff;     font-style: italic; font-weight:800; font-size: var(--ref-fz-small); }
.ref-badge__code { color:#d61c1c;  font-style: italic; font-weight:800; font-size: var(--ref-fz); }

/* Barres meta & prix */
.product-card__meta   { min-height: 32px; display:flex; align-items:center; background-color:#cecdce; }
.product-card__prices { min-height: 32px; display:flex; align-items:center; background-color:#000; color:#fff; }

/* Coller le dernier bloc en bas */
.products-grid > div > [data-test-product] > a.link-reset > div:last-child { margin-top: auto; }

/* Décor bas de page */
.page-bottom-art{
    width: 100%;
    height: clamp(120px, 28vw, 420px);
    background: url("../../images/layout/page-bottom-bg.svg") bottom center / 100% auto no-repeat;
    margin: 0 0 -50px 0;
}
.new-products-title { width: clamp(100px, 24vw, 400px); }

/* =============================================================================
   8) RECHERCHE (barre type 24mx)
   ========================================================================== */
.header-search { max-width: 860px; z-index: 500; }

.searchbox { position: relative; }

.search-input{
    display: block; width: 100%; height: 60px;
    border-radius: 9999px; background: #f0f1f2; border: 0;
    padding-left: 48px; padding-right: 44px;
    font-size: .95rem; color: #111;
    -webkit-appearance: none; /* WebKit: neutralise décos natives */
    background: linear-gradient(
        90deg,
        #efefef 0%,
        #d2d2d2 100%
    );
}

.search-input::placeholder { color: var(--input-placeholder); }
.search-input:focus { outline: none; }

/* icône loupe à gauche */
.icon-left{
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    pointer-events: none; font-size: 15px; color: #6c757d;
}

/* bouton clear (X) à droite, visible si texte saisi */
.btn-clear{
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: 0; background: transparent;
    color: #000000; border-radius:16px;
    display:inline-flex; align-items:center; justify-content:center;
    opacity: 0; pointer-events: none; transition: opacity .15s ease, background-color .15s ease;
}
.search-input:not(:placeholder-shown) ~ .btn-clear { opacity: .65; pointer-events: auto; }
.btn-clear:hover { opacity: .9; background: rgba(0,0,0,.07); }

/* Désactive éléments natifs des champs search (WebKit/Blink/Edge legacy) */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-input::-ms-clear { display: none; width: 0; height: 0; }

/* Variante icône conteneur (si utilisée) */
.search-icon{
    position: absolute; left: 8px; top: 0; bottom: 0; width: 32px;
    display:flex; align-items:center; justify-content:center; pointer-events:none; color:#6c757d;
}

/* Responsive barre de recherche */
@media (max-width: 991.98px){
    .header-search{ padding: 8px 0; }
    .search-input{ height: 44px; }
}

/* =============================================================================
   9) UTILITAIRES
   ========================================================================== */
.search-dealer-icon { color:#e1081b; }
.text-gray { color:#A9A9A9; }



/* =============================================================================
   10) IMAGE WRAPPER TYPE "BORD À BORD" (STYLE E-COMMERCE)
   ========================================================================== */


.pc-card {
    border-radius: 0;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
}



.pc-image-inner {
    width: 100%;
    height: 100%;
    padding: 6px;
    box-sizing: border-box;
}

.pc-title {
    font-size: 0.95rem;
    padding: 10px;
    text-align: left;
    color: #222;
}

/* Prix / actions */
.pc-price {
    padding: 10px;
    text-align: center;
    background: #000;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}


.pc-image-wrapper {
    position: relative;
}

.pc-badge {
    position: absolute;
    bottom: 15px;
    left: 0;
    background: #e30613;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 700;
    border-radius: 0;
    z-index: 5;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* === Zébrure décorative === */
.pc-image-wrapper::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 2;
    background-image: url("../../images/layout/zebra-top.svg");
    background-position: left top;
    background-repeat: no-repeat;
    opacity: 0.95;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* === Responsive : version compacte mobile === */
@media (max-width: 576px) {
    .pc-title {
        font-size: 0.85rem;
        padding: 0.75rem 0.75rem 0.5rem;
    }

    .pc-price {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem 0.75rem;
    }

    .pc-image-wrapper::before {
        height: 8px;
    }
}


/* ==========================================================================
   ✅ Bannière d’accueil ( chevauchement léger sous la navbar)
   ========================================================================== */

/* S’assure que la navbar et ses décorations SVG restent au-dessus de la bannière */
.navbar {
    position: relative;
    z-index: 3;
    margin-bottom: 0 !important; /* évite tout espace entre navbar et bannière */
}

/* Si les SVG sont dans un ::after ou un élément décoratif du menu,
   ce z-index les place au-dessus de la bannière */
.navbar::after,
.menu-div::after,
.hatched-bottom::after {
    position: absolute;
    bottom: -1px;
    z-index: 4;
}

/* Bannière plein écran, 25% de la hauteur du viewport */
.fullwidth-banner {
    position: relative;
    z-index: 1; /* en dessous des éléments du menu */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    height: 35vh;
    top: -30px; /* léger chevauchement sous la navbar pour effet fluide */
}

/* Image responsive et recadrée proprement */
.fullwidth-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* centre l’image en haut */
    display: block;
}

/* Variante responsive — un peu plus haute sur mobile */
@media (max-width: 768px) {
    .fullwidth-banner {
        height: 35vh;
        top: 0;
    }
}

.gradient-vertical {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,    /* haut - blanc pur */
        #fafafa 25%,   /* transition très légère */
        #f6f6f6 50%,   /* gris très clair */
        #f3f3f3 75%,   /* un peu plus marqué */
        #f1f1f1 100%   /* bas - gris clair */
    );
}

.gradient-vertical .container img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pc-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.1s ease-in-out;
    overflow: hidden;
    transform: translateY(0);
}

.pc-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 1.0);
    transform: translateY(-3px);
}


.breadcrumb-item + .breadcrumb-item::before {
    float: left;
    content: var(--bs-breadcrumb-divider, "|") /* rtl: var(--bs-breadcrumb-divider, "/") */;
}

.site-footer .footer-main {
    height: 13vw;
    min-height: 200px;
}

/* =============================================================================
   ✅ 11) RECHERCHE LIVE (correction z-index + style des suggestions)
   ========================================================================== */

/* Place la zone de recherche au-dessus de la navbar (z-index > 15000) */
.header-search {
    position: relative;
    z-index: 16000; /* supérieur à .navbar-expand-lg (15000) */
}

/* Bloc des résultats live (Ajax) */
#live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7)!important;
    z-index: 16001; /* juste au-dessus de .header-search */
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

/* Style des lignes de suggestion */
#live-search-results a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #111;
    transition: background-color 0.15s ease;
}

#live-search-results a img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 4px;
    background: #f7f7f7;
}

#live-search-results a:hover {
    background-color: #e6e6e6;
}


.search-section-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #e1081b;
    padding: 6px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #f9f9f9;
}

.search-section-title:first-child {
    border-top: none;
    border-radius: 8px 8px 0 0;
}

.search-suggestion {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #111;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.search-suggestion:hover {
    background-color: #f8f9fa;
}

.search-empty-msg {
    padding: 10px 14px;
    color: #777;
    font-style: italic;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome {
    background-color: #ffffff;
    background-image: url('../../images/homepage/rider.jpg');
    background-repeat: no-repeat;
    padding: 6rem 0;
    width: 100%;
    min-height:500px ;
    background-position: right center; /* alignée à droite */
    background-size: auto; /* l’image garde sa taille d’origine */
}


.black-block {
    background-color: #000000!important;
    color: #ffffff!important;
    padding: 0.3rem 1rem!important;
}

.red-block {
    background-color: #e22b31!important;
    color: #ffffff!important;
    padding: 0.3rem 1rem!important;
}

.text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.95);
}

.alert-info {
    --bs-alert-color: #ffffff;
    --bs-alert-bg:#e22b31;
    --bs-alert-border-color:#e22b31;
}


.taxonomy-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.taxonomy-slider::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
}

.taxonomy-slide-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 10px 16px;
    border-radius: 18px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #333;
    transition: 0.25s;
}

.taxonomy-slide-item:hover {
    background: #333;
    color: #fff;
}

.taxonomy-slide-item.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.taxonomy-slide-item.back {
    background: #e5e5e5;
}


/* Mobile-first */
.products-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(1, 1fr); /* 1 colonnes sur mobile */
}

/* Tablette : ≥ 768px */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    }
}

/* Desktop : ≥ 992px */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    }
}

/* Grand écran : ≥ 1400px */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 colonnes */
    }
}



/* Slider horizontal mobile-first */
.taxonomy-slider-premium {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 6px 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.taxonomy-slider-premium::-webkit-scrollbar {
    display: none;
}

.taxonomy-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;
    border-radius: 20px;

    background: #fff;
    border: 1px solid #e4e4e4;

    font-size: 0.92rem;
    color: #333;
    white-space: nowrap;

    box-shadow: 0 2px 6px rgba(0,0,0,0.06);

    transition: all .25s ease;
}
.pill-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: .8;
}
.taxonomy-pill:hover {
    background: #f7f7f7;
    border-color: #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.taxonomy-pill.active {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.20);
}

.taxonomy-scroll-indicator {
    position: relative;
    height: 4px;
    background: #e7e7e7;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.indicator-bar {
    height: 100%;
    width: 0%;
    background: #ff0000;
    border-radius: 2px;
    transition: width .15s linear;
}

/* ===========================================
   PREMIUM SEARCH EXPERIENCE (24MX-style)
   =========================================== */

/* Animation apparition */
#live-search-results {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .15s ease, transform .15s ease;
}
#live-search-results.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight du texte */
mark.search-highlight {
    background: #e1081b33;
    color: #e1081b;
    padding: 0 2px;
    border-radius: 3px;
}

/* Sections */
.search-section-title {
    font-weight: 700;
    font-size: .85rem;
    color: #e1081b;
    padding: 8px 12px;
    background: #f6f6f6;
    border-bottom: 1px solid #ddd;
}

.search-section {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}

/* Suggestions */
.search-suggestion {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    color: #111;
    text-decoration: none;
    font-size: .95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Hover premium */
.premium-hover:hover {
    background: #f1f1f1;
    border-left: 3px solid #e1081b;
    padding-left: 11px;
}

/* Images */
.result-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #f4f4f4;
    border-radius: 4px;
    padding: 4px;
}

/* Icones taxons */
.tree-icon {
    color: #e1081b;
    margin-right: 8px;
}

/* Spinner */
.search-loading {
    padding: 20px;
    text-align: center;
    color: #777;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-style: italic;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e1081b33;
    border-top-color: #e1081b;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badge "plus de résultats" */
.search-more-results {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 4px;
    background: #ffffff;
    color: #e1081b;
    font-weight: 600;
    border-top: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease;
}

.search-more-results:hover {
    background: #f1f1f1;
}

