/*
 * Personnalisation NeoTropic - Hummingbird
 */

@media (min-width: 768px) {
    .header-bottom .navbar-brand .logo {
        max-width: 460px;
        max-height: 90px;
        width: auto;
        height: auto;
    }
}

/* Header NeoTropic - menu sur une ligne séparée */
@media (min-width: 768px) {
    .header-bottom__row {
        flex-wrap: wrap;
    }

    .ps-mainmenu--desktop {
        order: 10;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Header NeoTropic - fond bleu foncé */
.header-bottom {
    background-color: #1d3e66;
}

/* Menu principal sur fond sombre */
.header-bottom .ps-mainmenu--desktop a {
    color: #ffffff !important;
}

/* Sous-menus */
.header-bottom .submenu {
    background-color: #1d3e66 !important;
}

.header-bottom .submenu a {
    color: #ffffff !important;
}

/* Survol des éléments du sous-menu */
.header-bottom .submenu a:hover,
.header-bottom .submenu a:focus {
    background-color: #0c6da6 !important;
    color: #ffffff !important;
}

/* États actifs des sous-menus */
.header-bottom .submenu a:active,
.header-bottom .submenu .active,
.header-bottom .submenu .show,
.header-bottom .submenu [aria-expanded="true"] {
    background-color: #0c6da6 !important;
    color: #ffffff !important;
}

/* Barre supérieure du header */
.header-top {
    background-color: #1d3e66 !important;
    color: #ffffff !important;
}

.header-top a {
    color: #ffffff !important;
}

/* Suppression des bordures du header */
.header-bottom {
    border: none !important;
}

.header-top {
    border: none !important;
}

/* Suppression des traits dans les sous-menus */
.header-bottom .submenu,
.header-bottom .submenu *,
.header-bottom .submenu li,
.header-bottom .submenu a {
    border-color: transparent !important;
}

/* Champs du header - gris clair */
.header-top select,
.header-bottom input[type="search"],
.header-bottom input[type="text"] {
    background-color: #e3e5e6 !important;
}

/* Compteur panier - jaune NeoTropic */
.header-block__badge {
    background-color: #cbb025 !important;
    color: #1d3e66 !important;
}

/* Panier - icône et texte en blanc */
.header-top .header-block__icon,
.header-top .header-block__title,
.header-top .header-block a {
    color: #ffffff !important;
}

@media (max-width: 1199.98px) {
    #header .header-bottom {
        background: #1d3e66 !important;
    }
}

/* Icônes et menu mobile/tablette en blanc */
@media (max-width: 1199.98px) {
    #header .header-bottom .material-icons,
    #header .header-bottom .menu-toggle,
    #header .header-bottom .header-block__icon {
        color: #ffffff !important;
    }
}

/* HERO NEOTROPIC */
.neotropic-hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(7, 20, 25, 0.90) 38%, rgba(7, 20, 25, 0.15) 68%, rgba(7, 20, 25, 0.05) 100%),
    url('/img/cms/fond_hero_haplo_neotropic.png');
    background-size: cover;
    background-position: center;
    background-color: #071419;
    background-repeat: no-repeat;
}

.neotropic-hero-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 50px;
    color: #ffffff;
}

.neotropic-hero-kicker {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #cbb025;
}

.neotropic-hero h1 {
    margin: 0 0 25px;
    max-width: 650px;
    color: #ffffff;
    font-size: 52px;
    line-height: 1.08;
    font-weight: 500;
}

.neotropic-hero h1 span {
    color: #cbb025;
}

.neotropic-hero p {
    max-width: 620px;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.55;
}

.neotropic-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.neotropic-btn {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none !important;
}

.neotropic-btn-primary {
    background: #cbb025;
    color: #1d3e66 !important;
}

.neotropic-btn-secondary {
    border: 1px solid #ffffff;
    color: #ffffff !important;
    background: transparent;
}

.neotropic-btn-primary:hover {
    background: #ffffff;
}

.neotropic-btn-secondary:hover {
    background: #ffffff;
    color: #1d3e66 !important;
}

/* HERO MOBILE */
@media (max-width: 767.98px) {

    .neotropic-hero {
        min-height: 520px;

        background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(7, 20, 25, 0.88) 45%,
            rgba(7, 20, 25, 0.35) 72%,
            rgba(7, 20, 25, 0.05) 100%
        ),
        url('/img/cms/fond_hero_haplo_neotropic.png');

        background-position: 90% center;
        background-size: cover;
    }

    .neotropic-hero-content {
        padding: 45px 22px;
    }

    .neotropic-hero h1 {
        max-width: 82%;
        font-size: 34px;
        line-height: 1.08;
    }

    .neotropic-hero p {
        max-width: 78%;
        font-size: 15px;
        line-height: 1.5;
    }
}

/* Fond anthracite uniquement autour du Hero */
body#index .ps-customtext {
    background-color: #000000 !important;
}

/* Le reste de la page d'accueil reste blanc */
body#index #content,
body#index #center-column,
body#index .page-content--home {
    background-color: #ffffff !important;
}

/* ACCÈS HERO NEOTROPIC */
.neotropic-hero-access {
    display: flex;
    align-items: stretch;
    margin-top: 35px;
    max-width: 650px;
}

.neotropic-hero-access-item {
    flex: 1;
    min-width: 0;
    padding: 5px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff !important;
    text-decoration: none !important;
    border-right: 1px solid rgba(255,255,255,0.35);
    transition: 0.2s ease;
}

.neotropic-hero-access-item:first-child {
    padding-left: 0;
}

.neotropic-hero-access-item:last-child {
    border-right: none;
}

.neotropic-hero-access-item svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #cbb025;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.neotropic-hero-access-item span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

a.neotropic-hero-access-item:hover {
    transform: translateY(-3px);
}

a.neotropic-hero-access-item:hover span {
    color: #cbb025;
}

.neotropic-hero-access-disabled {
    cursor: default;
}

/* Accès Hero sur mobile */
@media (max-width: 767.98px) {
    .neotropic-hero-access {
        width: 100%;
        margin-top: 25px;
    }

    .neotropic-hero-access-item {
        padding: 5px 8px;
        gap: 7px;
    }

    .neotropic-hero-access-item svg {
        width: 30px;
        height: 30px;
    }

    .neotropic-hero-access-item span {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
}

/* PICTOGRAMMES HERO */
.neotropic-hero-access-item::before {
    display: block;
    font-family: "Material Icons";
    font-size: 38px;
    line-height: 1;
    font-weight: normal;
    color: #cbb025;
    margin-bottom: 4px;
}

/* Notre élevage */
.neotropic-hero-access-item:nth-child(1)::before {
    content: "warehouse";
}

/* Notre magasin */
.neotropic-hero-access-item:nth-child(2)::before {
    content: "storefront";
}

/* Nos poissons */
.neotropic-hero-access-item:nth-child(3)::before {
    content: "set_meal";
}

/* PAGE NOS ANIMAUX - CARTES */
.neotropic-animals {
    width: 100%;
    margin: 30px 0;
}

.neotropic-animal-card {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 4px;

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.60) 42%,
            rgba(0, 0, 0, 0.10) 75%,
            rgba(0, 0, 0, 0.02) 100%
        ),
        url('/img/cms/cichlides-neotropic.webp');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.neotropic-animal-card-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.neotropic-animal-kicker {
    margin-bottom: 8px;
    color: #cbb025;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.neotropic-animal-title {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 600;
}

.neotropic-animal-text {
    margin-bottom: 22px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

.neotropic-animal-link {
    display: inline-block;
    color: #cbb025 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-decoration: none !important;
}

.neotropic-animal-link:hover {
    color: #ffffff !important;
}

/* PAGE NOS ANIMAUX - MOBILE */
@media (max-width: 767.98px) {

    .neotropic-animal-card {
        min-height: 330px;
        background-position: 60% center;
    }

    .neotropic-animal-card-content {
        padding: 30px 22px;
    }

    .neotropic-animal-title {
        font-size: 34px;
    }

    .neotropic-animal-text {
        font-size: 14px;
    }
}

/* PAGE NOS ANIMAUX - GRILLE 4 UNIVERS */
.neotropic-animals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Format des cartes dans la grille */
.neotropic-animals .neotropic-animal-card {
    min-height: 360px;
}

/* Cichlidés */
.neotropic-animal-cichlides {
    background-image:
        linear-gradient(90deg,
            rgba(0,0,0,0.88) 0%,
            rgba(0,0,0,0.58) 45%,
            rgba(0,0,0,0.08) 100%
        ),
        url('/img/cms/cichlides-neotropic.webp');
}

.neotropic-animal-cichlides {
    background-size: 100% 100%, auto 90%;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
    background-color: #000;
}


/* Poissons tropicaux */
.neotropic-animal-tropicaux {
    background-image:
        linear-gradient(90deg,
            rgba(0,0,0,0.88) 0%,
            rgba(0,0,0,0.55) 45%,
            rgba(0,0,0,0.08) 100%
        ),
        url('/img/cms/poissons-tropicaux-neotropic.jpeg');
}

/* Invertébrés */
.neotropic-animal-invertebres {
    background-image:
        linear-gradient(90deg,
            rgba(0,0,0,0.88) 0%,
            rgba(0,0,0,0.55) 45%,
            rgba(0,0,0,0.08) 100%
        ),
        url('/img/cms/invertebres-neotropic.webp');
}

/* Eau froide */
.neotropic-animal-eau-froide {
    background-image:
        linear-gradient(90deg,
            rgba(0,0,0,0.88) 0%,
            rgba(0,0,0,0.55) 45%,
            rgba(0,0,0,0.08) 100%
        ),
        url('/img/cms/eau-froide-neotropic.webp');
}

/* Mobile : une carte par ligne */
@media (max-width: 767.98px) {

    .neotropic-animals {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .neotropic-animals .neotropic-animal-card {
        min-height: 330px;
    }
}

/* PAGE NOS ANIMAUX - CARTE ENTIÈREMENT CLIQUABLE */
.neotropic-animal-card {
    position: relative;
}

.neotropic-animal-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

.neotropic-animal-card-content {
    position: relative;
    z-index: 2;
}

/* BANDEAU INFORMATIONS NEOTROPIC */
.neotropic-topbar {
    width: 100%;
    background-color: #cbb025;
    color: #1d3e66;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.neotropic-topbar-content {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.neotropic-topbar-separator {
    opacity: 0.55;
}

/* BANDEAU INFORMATIONS - MOBILE */
@media (max-width: 767.98px) {

    .neotropic-topbar {
        font-size: 10px;
        font-weight: 600;
    }

    .neotropic-topbar-content {
        min-height: 0;
        padding: 4px 8px;
        gap: 2px 6px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        line-height: 1.25;
    }

    .neotropic-topbar-content span {
        white-space: nowrap;
    }

    .neotropic-topbar-separator {
        display: inline;
    }

    .neotropic-topbar-content span:last-child {
        flex-basis: 100%;
        text-align: center;
    }

    .neotropic-topbar-content span:nth-last-child(2) {
        display: none;
    }
}

/* MENU PRINCIPAL - SOULIGNEMENT JAUNE AU SURVOL */
.header-bottom .ps-mainmenu--desktop .ps-mainmenu__tree-link {
    position: relative;
}

.header-bottom .ps-mainmenu--desktop .ps-mainmenu__tree-link::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0.7rem;
    height: 2px;
    background-color: #cbb025;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.header-bottom .ps-mainmenu--desktop .ps-mainmenu__tree-link:hover::after {
    transform: scaleX(1);
}

/* HEADER - SÉPARATION DISCRÈTE AVANT LE MENU */
@media (min-width: 768px) {
    .header-bottom .ps-mainmenu--desktop {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 8px;
        padding-top: 4px;
    }
}

/* HEADER - PARTIE SUPÉRIEURE LÉGÈREMENT PLUS SOMBRE */
@media (min-width: 768px) {
    .header-top {
        background-color: #173451 !important;
    }
}

/* SOUS-CATÉGORIES - STYLE NEOTROPIC */
.subcategory__link {
    background-color: #1d3e66 !important;
    color: #ffffff !important;
    border: 1px solid #cbb025 !important;
    transition: all 0.2s ease;
}

.subcategory__link:hover {
    background-color: #cbb025 !important;
    color: #1d3e66 !important;
    border-color: #cbb025 !important;
}

/* CARTES PRODUITS - NOM DU PRODUIT */
.product-miniature__title {
    color: #1d3e66 !important;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.product-miniature__title:hover {
    color: #0c6da6 !important;
}

/* CARTES PRODUITS - BOUTON AJOUT AU PANIER */
.product-miniature__add {
    background-color: #1d3e66 !important;
    border-color: #1d3e66 !important;
    color: #cbb025 !important;
    transition: all 0.2s ease;
}

.product-miniature__add .material-icons {
    color: #cbb025 !important;
}

.product-miniature__add:hover {
    background-color: #cbb025 !important;
    border-color: #cbb025 !important;
    color: #1d3e66 !important;
}

.product-miniature__add:hover .material-icons {
    color: #1d3e66 !important;
}

/* QUANTITÉ - CARTES PRODUITS */
.product-miniature .quantity-button__group {
    border-radius: 4px;
}

.product-miniature .quantity-button button {
    background: #ffffff !important;
    border-color: #cfd3d6 !important;
    color: #1d3e66 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.product-miniature .quantity-button input {
    border-color: #cfd3d6 !important;
    color: #1d3e66 !important;
    background: #ffffff !important;
    text-align: center;
}

.product-miniature .quantity-button button:hover {
    background: #f1f2f2 !important;
    color: #1d3e66 !important;
}

/* CARTES PRODUITS - BOUTON VOIR DÉTAILS */
.product-miniature .product-miniature__details {
    background-color: #ffffff !important;
    border-color: #1d3e66 !important;
    color: #1d3e66 !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-miniature .product-miniature__details:hover {
    background-color: #1d3e66 !important;
    border-color: #1d3e66 !important;
    color: #cbb025 !important;
}

/* BADGE PROMO - COULEURS NEOTROPIC */
.product-miniature .product-flags .badge.on-sale {
    background: #cbb025 !important;
    background-color: #cbb025 !important;
    border: 1px solid #cbb025 !important;
    color: #1d3e66 !important;
    font-weight: 700 !important;
}

/* PROMO - jaune NeoTropic */
body#product .product-flags .badge.on-sale,
body#category .product-miniature .product-flags .badge.on-sale {
    background: #cbb025 !important;
    background-color: #cbb025 !important;
    border: 1px solid #cbb025 !important;
    color: #1d3e66 !important;
    font-weight: 700 !important;
    --bs-primary-rgb: 203, 176, 37 !important;
    --bs-bg-opacity: 1 !important;
    --bs-badge-color: #1d3e66 !important;
}

body#product li.badge.on-sale,
body#category li.badge.on-sale {
    color: #1d3e66 !important;
    -webkit-text-fill-color: #1d3e66 !important;
}

/* RUPTURE DE STOCK - style NeoTropic */
.product-flags .badge.out_of_stock {
    background: #1d3e66 !important;
    background-color: #1d3e66 !important;
    border: 1px solid #1d3e66 !important;
    color: #ffffff !important;
    font-weight: 700 !important;

    --bs-badge-color: #ffffff !important;
    --bs-bg-opacity: 1 !important;
    --bs-primary-rgb: 29, 62, 102 !important;
}

/* BOUTON - Tous les produits phares */
.ps-featuredproducts .module-products__buttons .btn-outline-primary {
    background-color: #1d3e66 !important;
    border-color: #1d3e66 !important;
    color: #cbb025 !important;
    font-weight: 700;
}

.ps-featuredproducts .module-products__buttons .btn-outline-primary:hover {
    background-color: #cbb025 !important;
    border-color: #cbb025 !important;
    color: #1d3e66 !important;
}

/* BOUTON - Toutes les meilleures ventes */
.ps-bestsellers .module-products__buttons .btn-outline-primary {
    background-color: #1d3e66 !important;
    border-color: #1d3e66 !important;
    color: #cbb025 !important;
    font-weight: 700;
}

.ps-bestsellers .module-products__buttons .btn-outline-primary:hover {
    background-color: #cbb025 !important;
    border-color: #cbb025 !important;
    color: #1d3e66 !important;
}

/* PROMO - JAUNE NEOTROPIC PARTOUT */
.badge.on-sale {
    background: #cbb025 !important;
    background-color: #cbb025 !important;
    border-color: #cbb025 !important;
    color: #1d3e66 !important;
    font-weight: 700 !important;

    --bs-badge-color: #1d3e66 !important;
    --bs-bg-opacity: 1 !important;
    --bs-primary-rgb: 203, 176, 37 !important;
}

/* ACCUEIL - SECTION MEILLEURES VENTES PLUS DOUCE */
body#index .ps-bestsellers {
    background-color: #f6f7f7;
    padding-top: 35px;
    padding-bottom: 35px;
}

/* COULEUR PRIMARY GLOBALE - NEOTROPIC */
:root {
    --bs-primary: #1d3e66;
    --bs-primary-rgb: 29, 62, 102;
}

/* BOUTONS PRIMARY - NEOTROPIC */
.btn-primary {
    --bs-btn-bg: #1d3e66 !important;
    --bs-btn-border-color: #1d3e66 !important;
    --bs-btn-color: #cbb025 !important;
}

/* BOUTONS PRIMARY - NEOTROPIC */
.btn-primary {
    --bs-btn-color: #cbb025 !important;
    --bs-btn-bg: #1d3e66 !important;
    --bs-btn-border-color: #1d3e66 !important;

    --bs-btn-hover-color: #1d3e66 !important;
    --bs-btn-hover-bg: #cbb025 !important;
    --bs-btn-hover-border-color: #cbb025 !important;

    --bs-btn-active-color: #1d3e66 !important;
    --bs-btn-active-bg: #cbb025 !important;
    --bs-btn-active-border-color: #cbb025 !important;

    --bs-btn-disabled-color: #ffffff !important;
    --bs-btn-disabled-bg: #6c757d !important;
    --bs-btn-disabled-border-color: #6c757d !important;
}

/* AJUSTEMENTS RECHERCHE MOBILE */
@media (max-width: 767.98px) {

    /* Masque la loupe isolée placée devant la nouvelle barre */
    .neotropic-mobile-search-icon {
        display: none !important;
    }

    /* Barre un peu plus compacte */
    .neotropic-mobile-search-input {
        height: 34px !important;
        padding-left: 12px !important;
    }

    /* Rapproche légèrement la barre du menu hamburger */
    .neotropic-mobile-search {
        padding-left: 2px !important;
    }
}