/*
Theme Name: LUXIVO Child
Theme URI: https://luxivo.tv
Author: LUXIVO Team
Author URI: https://luxivo.tv
Template: luxivo
Description: Thème enfant pour LUXIVO - Thème WordPress premium streaming / IPTV.
Version: 1.0.0
Text Domain: luxivo-child
*/

/* ===== Boutique WooCommerce : lisibilité, marges, formulaires (revue UX) ===== */
body.single-product main.site-main,
body.post-type-archive-product main.site-main,
body.tax-product_cat main.site-main,
body.woocommerce-cart main.site-main,
body.woocommerce-checkout main.site-main,
body.woocommerce-account main.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 64px;
    box-sizing: border-box;
}
.woocommerce-breadcrumb { margin-bottom: 20px; font-size: 14px; opacity: .75; }
.woocommerce-breadcrumb a { color: inherit; }

/* Champs et listes déroulantes : texte visible sur fond sombre */
.woocommerce select,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce-page select,
.wc-block-components-text-input input,
.wc-block-components-combobox input,
.wc-block-components-select select {
    background: #0b1730;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    padding: 11px 14px;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 16px;
}
.woocommerce select option { background: #0b1730; color: #fff; }
.woocommerce table.variations { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.woocommerce table.variations th, .woocommerce table.variations td { display: block; text-align: left; padding: 0; }
.woocommerce table.variations select { width: 100%; max-width: 420px; }
.woocommerce div.product form.cart .variations label { font-weight: 700; margin-bottom: 6px; display: block; }
.woocommerce .reset_variations { display: inline-block; margin-top: 6px; font-size: 14px; }

/* Prix et boutons */
.woocommerce .price,
.woocommerce .price .amount,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: #fff; font-weight: 700; }
.woocommerce div.product p.price { font-size: 26px; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button {
    background: linear-gradient(90deg, #7c1fff, #1a6dff) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 26px !important;
    font-weight: 700;
    text-align: center;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .wc-block-components-button:not(.is-link):hover { filter: brightness(1.12); }
.woocommerce div.product form.cart .quantity input.qty { width: 80px; background: #0b1730; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; min-height: 44px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .single_variation_wrap { flex: 0 0 100%; }
.woocommerce .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Onglets */
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: #0b1730; border-color: rgba(255,255,255,.18); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #cfd8ea; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #162a52; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }

/* Mon compte : menu en onglets au lieu d'une liste à puces */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 18px; border-radius: 999px; background: #0b1730; border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: linear-gradient(90deg, #7c1fff, #1a6dff); border-color: transparent; }

/* Boutique : tri */
.woocommerce .woocommerce-ordering select { width: auto; min-width: 200px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: #fff; }

/* Messages WooCommerce lisibles */
.woocommerce-message, .woocommerce-info, .woocommerce-error { margin-bottom: 20px; }
@media (max-width: 600px) {
    body.single-product main.site-main, body.woocommerce-cart main.site-main, body.woocommerce-checkout main.site-main,
    body.woocommerce-account main.site-main, body.post-type-archive-product main.site-main { padding: 16px 16px 48px; }
    .woocommerce ul.products[class*="columns-"] li.product { width: 48%; }
}

/* Paiement / panier (blocs WooCommerce) : champs sombres, libellés lisibles */
.wc-block-components-text-input input,
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-textarea,
.wc-block-components-country-input select,
.wc-block-components-state-input select,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input {
    background: #0b1730 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 10px !important;
}
.wc-block-components-text-input label,
.wc-block-components-combobox .components-form-token-field__label,
.wc-blocks-components-select__label {
    color: rgba(255, 255, 255, .7) !important;
}
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { background: #0b1730; border-color: rgba(255,255,255,.4); }

/* Boutique anglaise : grille de produits */
.lx-shop-grid { max-width: 1200px; margin: 0 auto; padding: 24px 20px 64px; box-sizing: border-box; }
.lx-shop-grid ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.lx-shop-grid ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; }
.lx-shop-grid ul.products li.product img { width: 100%; height: auto; }
@media (max-width: 900px) { .lx-shop-grid ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 520px) { .lx-shop-grid { padding: 16px 16px 48px; } }
.lx-shop-grid ul.products::before, .lx-shop-grid ul.products::after { display: none !important; content: none !important; }

/* Boutons flottants sur mobile : plus petits et collés au bord pour masquer moins de contenu */
@media (max-width: 600px) {
    .lux-floating-buttons-wrapper { right: 6px !important; gap: 8px; }
    .lux-floating-btn { width: 40px !important; height: 40px !important; font-size: 18px !important; opacity: .92; }
    /* Bulle du chat IA : même taille (40px) et même colonne que WhatsApp, juste en dessous (écart 8px).
       « html body #… » : plus spécifique que la règle mobile de luxivo-main.css, chargée après ce fichier. */
    html body #floating-chatbot-button-default.floating-chatbot-button { width: 40px !important; height: 40px !important; right: 6px !important; bottom: 18px !important; font-size: 18px !important; transform: none; }
    .lux-floating-buttons-wrapper.lux-pos-bottom_right.lux-has-ai-chat { bottom: 66px !important; } /* 18px + bulle 40px + écart 8px */
    body { padding-bottom: 8px; }
}

/* Page « Catalogue des formations » : sur mobile, la bannière passe au-dessus du texte au lieu de passer dessous */
@media (max-width: 767px) {
    .elementor-element-2a97180, .elementor-element-113e3d4 {
        background-position: center 10px !important;
        background-size: min(92%, 360px) auto !important;
        padding-top: 230px !important;
    }
    .elementor-element-17f93aa, .elementor-element-8cb9519, .elementor-element-48b2374,
    .elementor-element-b74dc0d, .elementor-element-1c935a7 { width: 100% !important; max-width: 100% !important; }
    .elementor-element-48b2374 .elementor-icon-list-items { flex-wrap: wrap; }
}
@media (max-width: 767px) {
    .elementor-element-17f93aa, .elementor-element-8cb9519, .elementor-element-48b2374,
    .elementor-element-b74dc0d, .elementor-element-1c935a7 { margin-left: 0 !important; margin-right: 0 !important; padding-left: 12px !important; padding-right: 12px !important; box-sizing: border-box; }
}
@media (max-width: 767px) {
    /* bannière verticale « Apprenez dans tous les domaines » : masquée sur mobile (le texte dit la même chose) */
    body .elementor .elementor-element.elementor-element-113e3d4 { background-image: none !important; padding-top: 30px !important; }
}
.elementor-element-48b2374 .elementor-icon-list-items { flex-wrap: wrap; }
@media (max-width: 1024px) { .elementor-element-17f93aa, .elementor-element-48b2374 { max-width: 100% !important; } }
@media (max-width: 1024px) {
    .elementor-element-17f93aa, .elementor-element-8cb9519, .elementor-element-48b2374 { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; box-sizing: border-box; }
}
