/*
Theme Name:   My Émeraude Spa
Theme URI:    https://emeraude-spa.fr/
Description:  Thème enfant de Divi : charte « Jardin » (vert #24401F, boutons bronze #6E5733, Syne et Atkinson Hyperlegible hébergées sur le site) et allègement des scripts.
Author:       SolAppli
Author URI:   https://solappli.com/
Template:     Divi
Version:      1.0.2
Text Domain:  divi-emeraude
*/

/* Polices hébergées sur le site, sans appel à Google Fonts. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2"); }
/* « Syne Bold » et « Syne Regular » sont les noms déjà employés par les modules Divi. */
@font-face { font-family: "Syne Bold"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/syne-700.woff2") format("woff2"); }
@font-face { font-family: "Syne Regular"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/syne-400.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/syne-400.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/syne-600.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/syne-700.woff2") format("woff2"); }

:root {
	--em-vert: #24401f;
	--em-encre: #18211a;
	--em-encre-douce: #2f3a30;
	--em-gris-vert: #52604f;
	--em-ligne: #d8e0d2;
	--em-creme: #f1f4ee;
	--em-bronze: #6e5733;
	--em-bronze-fonce: #574426;
	--em-bronze-clair: #efe9df;
	--em-or: #8f774d;
	--em-titres: "Syne Bold", "Syne", "Arial Black", sans-serif;
	--em-texte: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
}

/* Texte courant */
body,
input, select, textarea, button {
	font-family: var(--em-texte);
}
body { color: var(--em-encre-douce); }

/* Polices hors charte restées dans des textes mis en forme à la main : rendu aux polices de la charte, sans toucher au texte. */
[style*="Poppins"], [style*="poppins"] { font-family: var(--em-texte) !important; }
[style*="Dancing Script"], [style*="Rozha One"] { font-family: var(--em-titres) !important; font-style: normal !important; }

/* Liens et focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .et_pb_button:focus-visible {
	outline: 3px solid var(--em-bronze);
	outline-offset: 2px;
}
::selection { background: var(--em-bronze-clair); color: var(--em-encre); }

/* Boutons : angles droits, sans ombre */
.et_pb_button,
.et_pb_button:hover,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button,
.wc-block-components-button, .wp-block-button__link {
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Boutons WooCommerce : bronze, texte blanc (6,6:1) */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce-page a.button, .woocommerce-page button.button, .woocommerce-page input.button,
.wc-block-components-button:not(.is-link) {
	background-color: var(--em-bronze) !important;
	border-color: var(--em-bronze) !important;
	color: #fff !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce-page a.button:hover, .woocommerce-page button.button:hover, .woocommerce-page input.button:hover,
.wc-block-components-button:not(.is-link):hover {
	background-color: var(--em-bronze-fonce) !important;
	border-color: var(--em-bronze-fonce) !important;
	color: #fff !important;
}
.woocommerce a.button:after, .woocommerce button.button:after { color: #fff; }

/* Boutons WooCommerce dans les modules Divi : leurs réglages associaient un texte vert à l'ancien fond doré.
   Sur le bronze, seul le blanc est lisible. L'identifiant doublé passe devant les styles générés par Divi. */
#page-container#page-container .et_pb_module a.button,
#page-container#page-container .et_pb_module button.button,
#page-container#page-container .et_pb_module input.button,
#page-container#page-container .et_pb_module #place_order {
	background-color: var(--em-bronze) !important;
	border-color: var(--em-bronze) !important;
	color: #fff !important;
}
#page-container#page-container .et_pb_module a.button:hover,
#page-container#page-container .et_pb_module button.button:hover,
#page-container#page-container .et_pb_module input.button:hover,
#page-container#page-container .et_pb_module #place_order:hover {
	background-color: var(--em-bronze-fonce) !important;
	border-color: var(--em-bronze-fonce) !important;
	color: #fff !important;
}
/* Bouton « Commander » : Divi le cible avec trois identifiants. */
#page-container#page-container .et_pb_section .et_pb_module #payment #place_order {
	background-color: var(--em-bronze) !important;
	border-color: var(--em-bronze) !important;
	color: #fff !important;
}
#page-container#page-container .et_pb_section .et_pb_module #payment #place_order:hover {
	background-color: var(--em-bronze-fonce) !important;
	border-color: var(--em-bronze-fonce) !important;
}
#page-container#page-container .et_pb_module button.button:disabled,
#page-container#page-container .et_pb_module button.button.disabled {
	opacity: 0.55;
}

/* Icônes animées (barre de navigation mobile) : Divi ajoute « et-animated » sans charger la règle qui les affiche. */
.et-waypoint.et-animated { opacity: 1; }

/* Champs de formulaire */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.et_pb_contact_form .input,
.select2-container--default .select2-selection--single {
	border: 1px solid var(--em-gris-vert);
	border-radius: 0;
	background-color: #fff;
	color: var(--em-encre);
}

/* WooCommerce : prix, promotions, messages */
.woocommerce span.onsale, .woocommerce-page span.onsale {
	background-color: var(--em-vert) !important;
	color: #fff !important;
	border-radius: 0 !important;
}
.woocommerce div.product p.price, .woocommerce div.product span.price,
.woocommerce ul.products li.product .price { color: var(--em-vert); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--em-vert); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--em-vert); }
.woocommerce .star-rating span::before { color: var(--em-or); }
.yith-wcbm-badge, .yith-wcbm-badge * { font-family: var(--em-texte) !important; }

/* Encadré « Offrir cette prestation » (YITH cartes cadeaux) : bordure turquoise d'origine remplacée */
#gift-this-product.gift-this-product-main-container {
	border-color: var(--em-ligne) !important;
	border-radius: 0 !important;
	background-color: var(--em-creme);
}
#gift-this-product .give-as-present,
.ywgc-gift-this-product-shop-container .button {
	border-radius: 0 !important;
}
#gift-this-product .give-as-present {
	border: 1px solid var(--em-vert) !important;
	color: var(--em-vert) !important;
	background-color: #fff !important;
}

/* Bandeau de consentement (Complianz) aux couleurs de la charte */
.cmplz-cookiebanner {
	--cmplz_banner_border_radius: 0;
	--cmplz_button_border_radius: 0;
	--cmplz_text_color: #18211a;
	--cmplz_hyperlink_color: #6e5733;
	--cmplz_button_accept_background_color: #6e5733;
	--cmplz_button_accept_border_color: #6e5733;
	--cmplz_button_accept_text_color: #ffffff;
	--cmplz_button_deny_background_color: #ffffff;
	--cmplz_button_deny_border_color: #24401f;
	--cmplz_button_deny_text_color: #24401f;
	--cmplz_button_settings_background_color: #ffffff;
	--cmplz_button_settings_border_color: #24401f;
	--cmplz_button_settings_text_color: #24401f;
	--cmplz_slider_active_color: #24401f;
	font-family: var(--em-texte);
}
.cmplz-cookiebanner .cmplz-title { font-family: var(--em-titres); }

/* Listes des variations sur les fiches soin (reprises des anciens modules de code du gabarit produit) */
.woocommerce div.product form.cart .variations td select {
	font-size: 18px;
	color: var(--em-encre) !important;
	font-weight: 700 !important;
}
.et_pb_wc_add_to_cart form.cart .variations td.value span:after { border: none; }

/* Boutons d'envoi des formulaires Divi (Contact, Réclamation) */
.et_pb_contact_form_container .et_pb_contact_submit,
.et_pb_contact_form_container .et_pb_contact_submit:hover {
	background-color: var(--em-bronze) !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-family: var(--em-texte);
	font-weight: 700;
	font-size: 17px;
	padding: 14px 26px !important;
}
.et_pb_contact_form_container .et_pb_contact_submit:hover { background-color: var(--em-bronze-fonce) !important; }
.et_pb_contact_form_container .et_pb_contact_submit:after { display: none; }

/* Fiche soin : la section de description longue disparaît quand le soin n'en a pas */
.jardin-description-longue:not(:has(.et_pb_wc_description :is(p, ul, ol, h2, h3, h4, img, table))) { display: none; }
