/*
 Theme Name:   Astrozann Child
 Theme URI:    https://astrozann.com
 Description:  Thème enfant pour Astrozann (basé sur Hello Elementor)
 Author:       Studio 63
 Author URI:   https://studio63.fr
 Template:     hello-elementor
 Version:      2.0.0
 Text Domain:  hello-elementor-child
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');



/* =================================================================
   YITH PRODUCT ADD-ONS — DARK THEME
   Écrasement des variables CSS YITH injectées en inline
   ================================================================= */

/* Écrasement des variables CSS YITH (injectées en inline par le plugin) */
.single-product .yith-wapo-block,
.single-product .yith-wapo-addon,
.single-product .yith-wapo-container {
    --yith-wapo-block-background-color: transparent !important;
    --yith-wapo-price-box-colors-background: transparent !important;
    --yith-wapo-form-border-color-color: rgba(248, 213, 139, 0.25) !important;
    --yith-wapo-label-font-size: 13px !important;
}

/* Conteneur global */
.single-product .yith-wapo-container {
    margin: 0 0 20px 0;
}

/* Blocs et addons : fond transparent, sans bordure
   Le sélecteur [style] est nécessaire pour écraser le style="background-color:#ffffff"
   injecté directement par YITH sur chaque élément */
.single-product .yith-wapo-block,
.single-product .yith-wapo-addon,
.single-product .yith-wapo-addon[style],
.single-product .yith-wapo-block[style] {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Chaque champ */
.single-product .yith-wapo-option {
    margin-bottom: 16px !important;
}

/* Alignement du titre + astérisque sur la même ligne */
.single-product .yith-wapo-addon .addon-header {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
    background: transparent !important;
}

/* Titre du champ */
.single-product .yith-wapo-addon .addon-header h3.wapo-addon-title {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline !important;
    line-height: 1.4 !important;
}

.single-product .yith-wapo-addon .addon-header h3.wapo-addon-title span {
    color: #ffffff !important;
    display: inline !important;
}

/* Astérisque requis — sur la même ligne que le titre */
.single-product .yith-wapo-addon .addon-header .required,
.single-product .yith-wapo-addon .addon-header span.required {
    color: rgba(248, 213, 139, 0.7) !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline !important;
    margin-left: 2px !important;
    vertical-align: middle !important;
}

/* Champs de saisie */
.single-product .yith-wapo-option input[type="text"],
.single-product .yith-wapo-option input[type="email"],
.single-product .yith-wapo-option input[type="number"],
.single-product .yith-wapo-option input[type="date"],
.single-product .yith-wapo-option textarea,
.single-product .yith-wapo-option select {
    width: 100% !important;
    background-color: rgba(1, 11, 61, 0.85) !important;
    border: 1px solid rgba(248, 213, 139, 0.25) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.single-product .yith-wapo-option input[type="text"]:focus,
.single-product .yith-wapo-option input[type="email"]:focus,
.single-product .yith-wapo-option textarea:focus {
    border-color: rgba(248, 213, 139, 0.7) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(248, 213, 139, 0.12) !important;
}

.single-product .yith-wapo-option input::placeholder,
.single-product .yith-wapo-option textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.single-product .yith-wapo-option textarea {
    min-height: 90px !important;
    resize: vertical !important;
}

/* Séparateur HTML (sous-titres "Personne A / Personne B") */
.single-product .yith-wapo-option-html {
    margin: 20px 0 10px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.single-product .yith-wapo-option-html p,
.single-product .yith-wapo-option-html span,
.single-product .yith-wapo-option-html div {
    color: #F8D58B !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 1px solid rgba(248, 213, 139, 0.25) !important;
    padding-bottom: 6px !important;
    margin: 0 !important;
    display: block !important;
}

/* Récapitulatif des prix YITH — caché, inutile sur cette page */
.single-product #wapo-total-price-table,
.single-product .yith-wapo-totals-table,
.single-product .yith-wapo-totals-wrapper,
.single-product #yith-wapo-totals-form {
    display: none !important;
    visibility: hidden !important;
}

/* Message d'erreur YITH */
.single-product .yith-wapo-required-notice {
    color: #ff6b6b !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}



/* =================================================================
   BOUTON AJOUTER AU PANIER
   Sélecteurs renforcés pour surcharger Elementor Pro
   ================================================================= */
.single-product .woocommerce-variation-add-to-cart,
.single-product form.cart {
    display: block !important;
    margin-top: 20px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Masquer le sélecteur de quantité (pas pertinent pour des services) */
.single-product form.cart .quantity {
    display: none !important;
}

/* Bouton principal */
html body.single-product .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button,
html body.single-product .elementor-widget-woocommerce-product-add-to-cart button.button,
html body.single-product form.cart button.single_add_to_cart_button,
html body.single-product .single_add_to_cart_button.button {
    background-color: #F8D58B !important;
    color: #03082a !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 2px solid #F8D58B !important;
    border-radius: 12px !important;
    padding: 14px 36px !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease, transform 0.15s ease !important;
    display: inline-block !important;
    width: auto !important;
    box-shadow: none !important;
}

html body.single-product .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button:hover,
html body.single-product form.cart button.single_add_to_cart_button:hover {
    background-color: #d4ac5d !important;
    border-color: #d4ac5d !important;
    color: #03082a !important;
    transform: translateY(-1px) !important;
}


/* =================================================================
   PAGE PANIER & CHECKOUT — Affichage des options YITH dans le récap
   ================================================================= */
.woocommerce-checkout .woocommerce-checkout-review-order-table dl.variation dt,
.woocommerce-cart .woocommerce-cart-form dl.variation dt,
.woocommerce-checkout .product-name dl.variation dt,
.woocommerce-cart .product-name dl.variation dt {
    color: #F8D58B !important;
    font-weight: 700 !important;
    float: none !important;
    display: block !important;
    margin-top: 8px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table dl.variation dd,
.woocommerce-cart .woocommerce-cart-form dl.variation dd,
.woocommerce-checkout .product-name dl.variation dd,
.woocommerce-cart .product-name dl.variation dd,
.woocommerce-checkout .product-name dl.variation dd p,
.woocommerce-cart .product-name dl.variation dd p {
    color: #ffffff !important;
    font-weight: 400 !important;
    float: none !important;
    display: block !important;
    margin-bottom: 5px !important;
    opacity: 0.9 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.woocommerce-checkout .product-name dl.variation,
.woocommerce-cart .product-name dl.variation {
    display: block !important;
    margin-top: 10px !important;
    border-left: 2px solid rgba(248, 213, 139, 0.3) !important;
    padding-left: 10px !important;
}