/* =========================
  Presentation carde produit woocommerce
========================= */

/* Grille produits */
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Carte produit */
.woocommerce ul.products li.product {
    background: rgba(17, 22, 28, 0.88);
    border-radius: 10px;
    padding: 18px;
    text-align: left;
    list-style: none;
    width: calc(33.333% - 20px);
    margin: 0 !important;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
}

/* Image */
.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 14px;
}

/* Titre */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 10px;
}

/* Prix */
.woocommerce ul.products li.product .price {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

/* Bouton */
.woocommerce ul.products li.product .button {
    display: inline-block;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 6px;
    padding: 10px 16px;
    text-decoration: none;
}

/* Bouton hover */
.woocommerce ul.products li.product .button:hover {
    background: #E5484D;
    border-color: #E5484D;
    color: #ffffff;
}

/* Mobile */
@media (max-width: 767px) {
    .woocommerce ul.products li.product {
        width: 100%;
    }
}
.post-type-archive-product .woocommerce-breadcrumb {
    display: none !important;
}

/* Bouton Ajouter au panier (fiche produit) */
.woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: #E5484D !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px;
}

/* Hover */
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: #c73b3f !important;
    color: #ffffff !important;
}


/* =========================
   ONGLETS PRODUIT WOOCOMMERCE
========================= */


/* Zone globale */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 40px;
}

/* Liste onglets */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0 0 24px;
    border: none !important;
}

/* Supprime effets WooCommerce */
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

/* Onglet */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Lien onglet */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 14px 20px;
    background: rgba(17, 22, 28, 0.6);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.2s ease;
}

/* Hover */
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    background: rgba(24, 30, 38, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Onglet actif (SOMBRE, PAS ROUGE) */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background: rgba(24, 30, 38, 1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

/* Contenu */
.woocommerce div.product .woocommerce-tabs .panel {
    background: rgba(17, 22, 28, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
    margin: 0;
}

/* Texte */
.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h3,
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel li,
.woocommerce div.product .woocommerce-tabs .panel span,
.woocommerce div.product .woocommerce-tabs .panel strong {
    color: #ffffff !important;
}

@media (max-width: 767px) {

    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-direction: column;
        gap: 8px;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        width: 100%;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
    }

    .woocommerce div.product .woocommerce-tabs .panel {
        padding: 20px;
    }
}



/* =========================
  Footer en bas de page sur pages woocommerce
========================= */

/* Page entière sur toute la hauteur */
html, body {
    height: 100%;
}

/* Structure globale */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* La zone de contenu prend l'espace restant */
.site,
body > div,
.elementor-location-header + * {
    flex: 1 0 auto;
}

/* Footer en bas */
footer,
.site-footer,
.elementor-location-footer {
    margin-top: auto;
}


/* =========================
 liste déroulante catalogue woocommerce propre
========================= */

/* Conteneur */
.woocommerce .woocommerce-ordering {
    margin-bottom: 30px;
}

/* Select */
.woocommerce .woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: rgba(17, 22, 28, 0.88);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;

    padding: 10px 40px 10px 14px;
    font-size: 14px;

    cursor: pointer;
    outline: none;

    transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Hover / focus */
.woocommerce .woocommerce-ordering select:hover,
.woocommerce .woocommerce-ordering select:focus {
    border-color: #E5484D;
    box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.4);
}

/* Flèche custom */
.woocommerce .woocommerce-ordering {
    position: relative;
}

.woocommerce .woocommerce-ordering::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    pointer-events: none;
}



/* =========================
   MESSAGES d'erreur WOOCOMMERCE
========================= */

/* Base commune */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background: rgba(17, 22, 28, 0.95);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #E5484D;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

/* Texte */
.woocommerce-message *,
.woocommerce-error *,
.woocommerce-info * {
    color: #ffffff !important;
}

/* Icône WooCommerce */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    color: #E5484D;
}

/* Bouton dans les messages (ex: "Voir le panier") */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
    background: #E5484D;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 14px;
    margin-left: 10px;
    border: none;
}

/* Hover bouton */
.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .button:hover {
    background: #c73b3f;
}

/* Supprime l'icône WooCommerce */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    display: none !important;
}


/* =========================
  Suppression fil ariane woocommerce
========================= */
/* Supprime le fil d'Ariane WooCommerce */
.woocommerce-breadcrumb {
    display: none !important;
}


/* =========================
   MENU MOBILE JIDEHER
   Classe à mettre sur le widget menu :
   jideher-mobile-menu
========================= */

/* Desktop : on masque totalement le hamburger */
@media (min-width: 1025px) {
    .jideher-mobile-menu .elementor-menu-toggle {
        display: none !important;
    }

    .jideher-mobile-menu .elementor-nav-menu--dropdown,
    .jideher-mobile-menu .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        display: none !important;
    }
}

/* Mobile / tablette : styles du menu hamburger */
@media (max-width: 1024px) {

    /* Le widget sert de repère au menu déroulant */
    .jideher-mobile-menu {
        position: relative;
        z-index: 9999;
        margin-right: 16px;
    }

    /* Conteneur du widget */
    .jideher-mobile-menu .elementor-widget-container {
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Bouton hamburger */
    .jideher-mobile-menu .elementor-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
        min-height: 0 !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Icône hamburger */
    .jideher-mobile-menu .elementor-menu-toggle i,
    .jideher-mobile-menu .elementor-menu-toggle svg {
        color: #ffffff !important;
        fill: #ffffff !important;
    }

    /* Le menu déroulant devient une boîte flottante */
    .jideher-mobile-menu .elementor-nav-menu--dropdown,
    .jideher-mobile-menu .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        right: 0 !important;
        left: auto !important;
        width: 260px !important;
        max-width: 260px !important;
        background: rgba(11, 15, 20, 0.98) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
        padding: 10px 0 !important;
        margin-top: 0 !important;
        z-index: 9999 !important;
    }

    /* Le header ne se déplie plus à cause du menu */
    .jideher-mobile-menu .elementor-nav-menu,
    .jideher-mobile-menu .elementor-nav-menu__container {
        min-height: 0 !important;
        height: auto !important;
    }

    /* Liens du menu */
    .jideher-mobile-menu .elementor-nav-menu--dropdown a {
        display: block !important;
        padding: 12px 18px !important;
        line-height: 1.3 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        background: transparent !important;
    }

    /* Hover et état actif */
    .jideher-mobile-menu .elementor-nav-menu--dropdown a:hover,
    .jideher-mobile-menu .elementor-nav-menu--dropdown a:focus,
    .jideher-mobile-menu .elementor-nav-menu--dropdown .current-menu-item > a,
    .jideher-mobile-menu .elementor-nav-menu--dropdown .current-menu-parent > a {
        color: #E5484D !important;
        background: transparent !important;
    }

    /* Supprime les couleurs grises éventuelles héritées */
    .jideher-mobile-menu .elementor-item,
    .jideher-mobile-menu .sub-arrow,
    .jideher-mobile-menu .elementor-item-active {
        color: #ffffff !important;
    }
}

/* Très petits écrans */
@media (max-width: 767px) {
    .jideher-mobile-menu {
        margin-right: 18px;
    }
}


/* =========================
  Changement couleur arrière plan pages woocommerce
========================= */

/* =========================
   FOND GLOBAL
========================= */
.woocommerce-page,
.post-type-archive-product {
    background-color: #0b0b0b;
}

.woocommerce-page .site-main,
.post-type-archive-product .site-main {
    background-color: #0b0b0b;
}

/* =========================
   TEXTE GLOBAL (FIX COMPLET)
========================= */
.woocommerce-page,
.woocommerce-page * {
    color: #ffffff !important;
}

/* =========================
   LIENS
========================= */
.woocommerce-page a {
    color: #ffffff;
}

.woocommerce-page a:hover {
    color: #E5484D;
}

/* =========================
   CARTES PRODUITS
========================= */
.woocommerce ul.products li.product {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 12px;
}

/* =========================
   BOUTONS
========================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #E5484D;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #c73b3f;
}

/* =========================
   ONGLET PRODUIT (Woo Tabs)
========================= */

/* Fond des onglets */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: #1a1a1a !important;
    border: none !important;
}

/* Onglet actif */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #0b0b0b !important;
}

/* Texte des onglets */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #ffffff !important;
}

/* Contenu des tabs */
.woocommerce div.product .woocommerce-tabs .panel {
    background: #0b0b0b !important;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

