/*
Theme Name:     Helixia Boutique
Theme URI:      https://shop.helixia.ch
Author:         Association Helixia
Author URI:     https://helixia.ch
Description:    Thème enfant de Raft aux couleurs d'Helixia pour la boutique WooCommerce. Parcours simplifié : lien direct vers le paiement, sans passer par la boutique ni le panier.
Template:       raft
Version:        1.0.3
Requires at least: 6.4
Requires PHP:   7.4
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    helixia-shop
*/

/* ==========================================================
   Réglages généraux (les couleurs et la police sont dans theme.json)
   ========================================================== */
:root{
  --hx-green:#4f7942;
  --hx-green-deep:#3f6135;
  --hx-green-light:#5f914f;
  --hx-amber:#f6ae2d;
  --hx-red:#a9151a;
  --hx-brown:#2c1e13;
  --hx-sand:#b2a88d;
  --hx-line:#e2ddd0;
}

/* En-tête */
/* Taille du logo : changer --hx-logo (hauteur) */
.hx-header{--hx-logo:32px}
.hx-header .wp-block-site-logo img{height:var(--hx-logo) !important;max-height:var(--hx-logo) !important;width:auto !important}
@media (max-width:600px){.hx-header{--hx-logo:28px}}
.hx-header .wp-block-site-title a{text-decoration:none}
.hx-secure{opacity:.9;white-space:nowrap}

/* ==========================================================
   Checkout (blocs WooCommerce)
   ========================================================== */
.wp-block-woocommerce-checkout{margin-top:0}

/* Champs */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input{
  border-radius:10px !important;
  border-color:var(--hx-line) !important;
  background:#fff !important;
}
.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus{
  border-color:var(--hx-green) !important;
  box-shadow:0 0 0 2px rgba(79,121,66,.25) !important;
  outline:none !important;
}

/* Titres des étapes */
.wc-block-components-checkout-step__title{font-weight:700;letter-spacing:-.01em}
.wc-block-components-checkout-step__heading{margin-bottom:12px}

/* Boutons */
.wc-block-components-button:not(.is-link){
  border-radius:999px !important;
  font-weight:600;
}
.wc-block-components-checkout-place-order-button{
  background:var(--hx-amber) !important;
  color:var(--hx-brown) !important;
  min-height:56px;
  font-size:1.05rem !important;
  font-weight:700 !important;
  width:100%;
}
.wc-block-components-checkout-place-order-button:hover{background:#ffc04f !important}

/* Récapitulatif de commande */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block{
  background:#fff;
  border:1px solid var(--hx-line) !important;
  border-radius:18px;
  overflow:hidden;
}
.wc-block-components-order-summary-item__image img{border-radius:4px 6px 6px 4px;box-shadow:0 4px 10px -4px rgba(44,30,19,.35)}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label{
  font-weight:800;
  color:var(--hx-green-deep);
}
.wc-block-components-order-summary-item__quantity{background:var(--hx-green) !important;color:#fff !important;border:none !important}

/* Moyens de paiement */
.wc-block-components-radio-control__option--checked,
.wc-block-components-radio-control-accordion-option--checked-option-highlighted{
  box-shadow:inset 0 0 0 2px var(--hx-green) !important;
  border-radius:10px;
}
.wc-block-components-radio-control__input:checked{border-color:var(--hx-green) !important}
.wc-block-components-radio-control__input:checked::before{background:var(--hx-green) !important}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{background:var(--hx-green);border-color:var(--hx-green)}
.wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:#fff}

/* Notices */
.wc-block-components-notice-banner.is-error{border-color:var(--hx-red)}
.wc-block-components-notice-banner.is-success{border-color:var(--hx-green)}

/* Page de confirmation */
.wc-block-order-confirmation-status h1,
.wp-block-woocommerce-order-confirmation-status{color:var(--hx-green-deep)}

/* ==========================================================
   Pages produit / compte (WooCommerce classique)
   ========================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .single_add_to_cart_button{
  background:var(--hx-green) !important;
  color:#fff !important;
  border-radius:999px !important;
  font-weight:600;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover{background:var(--hx-green-deep) !important}
.woocommerce span.onsale,
.wc-block-components-product-sale-badge{
  background:var(--hx-red) !important;
  color:#fff !important;
  border:none !important;
  border-radius:999px !important;
}
.woocommerce .price ins,
.wc-block-components-product-price ins{text-decoration:none;color:var(--hx-red);font-weight:700}
