/*
Theme Name: Hello elementor enfant
Theme URI: https://horepa.shop
Description: Thème enfant pour le thème parent
Author: Quiquemelle Hugo
Author URI: https://horepa.shop
Template: hello-elementor
Version: 1.0
Text Domain: hello-elementor-enfant
*/

/*
 * OPTIMISATION DU CSS
 * 1. Regroupement des sélecteurs similaires
 * 2. Simplification des règles redondantes
 * 3. Organisation par composants
 */

/***************************************************
 * VARIABLES CSS
 ***************************************************/
:root {
  --primary-color: #D02E26;
  --text-color: #FFFFFF;
  --border-radius-small: 10px;
  --border-radius-medium: 15px;
  --border-radius-large: 20px;
  --font-family-main: 'Lato', sans-serif;
  --font-size-normal: 14px;
  --padding-button: 6px 16px;
  --secondary-color: #54595F;
  --secondary-hover: #404448;
  --input-color: #69727d;
  --border-color: #D3D3D3;
}

/***************************************************
 * 1. NOTIFICATIONS WOOCOMMERCE
 ***************************************************/
/* Base des notifications */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
  background-color: #00336629;
  border: none;
  color: #003366;
  border-radius: var(--border-radius-medium);
  font-size: var(--font-size-normal);
  font-family: var(--font-family-main);
  width: 100% !important;
	padding: 10px 20px;
}

@media (max-width: 1024px) {
    .woocommerce-error,
	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-notices-wrapper .woocommerce-error,
	.woocommerce-notices-wrapper .woocommerce-message,
	.woocommerce-notices-wrapper .woocommerce-info {
  		display: flex;
		flex-direction: column;
	}
}

/* Items de liste dans les notifications */
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li,
.woocommerce-notices-wrapper .woocommerce-error li,
.woocommerce-notices-wrapper .woocommerce-message li,
.woocommerce-notices-wrapper .woocommerce-info li {
  background-color: transparent;
  border: none;
  color: #003366;
  margin-bottom: 0 !important;
  border-radius: var(--border-radius-medium);
  font-size: var(--font-size-normal);
  font-family: var(--font-family-main);
	width: 100% !important;
}

/* Marge supérieure pour les messages de succès */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
  margin-top: 20px !important;
}

/* Suppression des icônes par défaut */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error li::before,
.woocommerce-message li::before,
.woocommerce-info li::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error li::before,
.woocommerce-notices-wrapper .woocommerce-message li::before,
.woocommerce-notices-wrapper .woocommerce-info li::before {
  content: none !important;
  background: none !important;
  display: none !important;
}

/***************************************************
 * 2. NOTIFICATIONS SUR PAGE PRODUIT
 ***************************************************/
.single-product .woocommerce-notices-wrapper,
.single-product .woocommerce-error,
.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error li,
.single-product .woocommerce-message li,
.single-product .woocommerce-info li {
  width: 80%; 
  margin: auto auto 20px auto;
}

@media (max-width: 1536px) {
    .single-product .woocommerce-notices-wrapper,
	.single-product .woocommerce-error,
	.single-product .woocommerce-message,
	.single-product .woocommerce-info,
	.single-product .woocommerce-error li,
	.single-product .woocommerce-message li,
	.single-product .woocommerce-info li {
  		width: 96%;
	}
}

@media (max-width: 1024px) {
    .woocommerce-error li,
	.woocommerce-message li,
	.woocommerce-info li,
	.woocommerce-notices-wrapper .woocommerce-error li,
	.woocommerce-notices-wrapper .woocommerce-message li,
	.woocommerce-notices-wrapper .woocommerce-info li {
  		display: flex;
		flex-direction: column;
	}
}

/***************************************************
 * 3. BOUTONS DANS LES NOTIFICATIONS
 ***************************************************/
/* Boutons "wc-backward" */
.woocommerce-error .button.wc-backward,
.woocommerce-message .button.wc-backward,
.woocommerce-info .button.wc-backward,
.woocommerce-notices-wrapper .woocommerce-error .button.wc-backward,
.woocommerce-notices-wrapper .woocommerce-message .button.wc-backward,
.woocommerce-notices-wrapper .woocommerce-info .button.wc-backward {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-color) !important;
  border-radius: var(--border-radius-small);
  font-size: var(--font-size-normal);
  font-family: var(--font-family-main);
  padding: var(--padding-button);
}

/* Hover "wc-backward" */
.woocommerce-error .button.wc-backward:hover,
.woocommerce-message .button.wc-backward:hover,
.woocommerce-info .button.wc-backward:hover,
.woocommerce-notices-wrapper .woocommerce-error .button.wc-backward:hover,
.woocommerce-notices-wrapper .woocommerce-message .button.wc-backward:hover,
.woocommerce-notices-wrapper .woocommerce-info .button.wc-backward:hover {
  background-color: transparent !important;
  color: var(--text-color) !important;
}

/* Boutons "wc-forward" */
.woocommerce-error .button.wc-forward,
.woocommerce-message .button.wc-forward,
.woocommerce-info .button.wc-forward,
.woocommerce-error .woocommerce-Button.wc-forward.button,
.woocommerce-message .woocommerce-Button.wc-forward.button,
.woocommerce-info .woocommerce-Button.wc-forward.button,
.woocommerce-notices-wrapper .woocommerce-error .button.wc-forward,
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward,
.woocommerce-notices-wrapper .woocommerce-info .button.wc-forward,
.woocommerce-notices-wrapper .woocommerce-error .woocommerce-Button.wc-forward.button,
.woocommerce-notices-wrapper .woocommerce-message .woocommerce-Button.wc-forward.button,
.woocommerce-notices-wrapper .woocommerce-info .woocommerce-Button.wc-forward.button {
  background-color: transparent;
  color: #003366;
  border-left: 1px solid #003366;
  border-radius: 0;
  padding: 4px 0 4px 14px;
  font-size: var(--font-size-normal);
  font-family: var(--font-family-main);
}

@media (max-width: 1024px) {
    .woocommerce-error .button.wc-forward,
	.woocommerce-message .button.wc-forward,
	.woocommerce-info .button.wc-forward,
	.woocommerce-error .woocommerce-Button.wc-forward.button,
	.woocommerce-message .woocommerce-Button.wc-forward.button,
	.woocommerce-info .woocommerce-Button.wc-forward.button,
	.woocommerce-notices-wrapper .woocommerce-error .button.wc-forward,
	.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward,
	.woocommerce-notices-wrapper .woocommerce-info .button.wc-forward,
	.woocommerce-notices-wrapper .woocommerce-error .woocommerce-Button.wc-forward.button,
	.woocommerce-notices-wrapper .woocommerce-message .woocommerce-Button.wc-forward.button,
	.woocommerce-notices-wrapper .woocommerce-info .woocommerce-Button.wc-forward.button {
  		border-left: none;
		border-top: 1px solid #003366;
		justify-content: center;
		padding-top: 12px;
		margin-top: 10px;
	}
}

/***************************************************
 * 4. BOUTON PANIER VIDE (RETURN TO SHOP)
 ***************************************************/
.woocommerce-cart .button.wc-backward {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-color) !important;
  border-radius: var(--border-radius-small);
  font-size: var(--font-size-normal);
  font-family: var(--font-family-main);
  padding: var(--padding-button);
  text-decoration: none !important;
}

.woocommerce-cart .button.wc-backward:hover {
  background-color: var(--primary-color) !important;
  color: var(--text-color) !important;
}

/***************************************************
 * 5. BOUTONS DE CATÉGORIE PERSONNALISÉS
 ***************************************************/
.custom-cat-button {
  padding: 10px;
  background: var(--secondary-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: var(--border-radius-medium);
  font-size: 15px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.custom-cat-button:hover {
  background-color: var(--secondary-hover);
  color: var(--text-color);
}

/***************************************************
 * 6. STYLES DIVERS
 ***************************************************/
/* Style de titre */
.myHeadingStyle {
  margin-left: 4px;
  font-family: "Lato";
  font-size: 24px;
  font-weight: 600;
  width: 100%;
}

/* Conteneur copie */
.uael-copy-container {
  margin-left: 5px;
}

/***************************************************
 * 7. MON COMPTE WOOCOMMERCE
 ***************************************************/
/* Tableaux Mon Compte */
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce tbody > tr:nth-child(2n) > td,
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce tbody > tr:nth-child(2n) > th,
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce tbody > tr:nth-child(odd) > td,
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce tbody > tr:nth-child(odd) > th {
  padding-left: 10px !important;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce thead:first-child tr:first-child th {
  padding-left: 10px !important;
  padding-top: 10px !important;
}

/* Liens dans Mon compte */
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

/* Formulaire Mon compte */
.woocommerce-MyAccount-content-wrapper legend {
  font-size: 20px;
  font-weight: 500 !important;
}

/* Champs entreprise */
input#billing_siret,
input#billing_tva {
  border-radius: var(--border-radius-small);
  border-color: #D3D3D3;
  padding: 16px;
  font-size: var(--font-size-normal);
  color: var(--input-color);
}

/***************************************************
 * 8. FORMULAIRES WOOCOMMERCE
 ***************************************************/
/* Formulaires standard */
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  border: none;
  background: var(--text-color);
}

/* Bouton dans l'élément 197fd3b */
.elementor-8 .elementor-element.elementor-element-197fd3b .woocommerce-button {
  width: 100%;
  border-radius: var(--border-radius-medium);
}

/* Champs de formulaire */
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
  border-radius: var(--border-radius-medium);
  border-color: #999999;
}

/* Formulaire de connexion */
form.woocommerce-form.woocommerce-form-login.login {
  border-radius: var(--border-radius-large);
}

/* Liens au checkout */
.elementor-widget-woocommerce-checkout-page a:hover {
  color: var(--primary-color) !important;
  text-decoration: underline;
}

._widgetButton_11p0j_1._clickable_11p0j_91.alma-payment-plans-container {
	width: auto;
	border-radius: 15px;
}

._widgetButton_11p0j_1._unClickable_11p0j_95.alma-payment-plans-container {
    border-radius: 15px;
}

/* Conteneur du compteur de panier */
.cart-counter-container {
    position: relative;
    display: inline-block;
    /* Assurer que le conteneur a une taille définie */
    min-width: 24px;
    min-height: 24px;
}

/* Lien du panier */
.cart-counter-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 5px;
	margin-right: 8px;
}

.cart-counter-link:hover {
    color: #D02E26; /* Couleur au survol - ajustez selon votre thème */
    text-decoration: none;
}

/* Icône du panier */
.cart-counter-link i {
    font-size: 20px;
    margin: 0; /* Supprimer la marge pour un meilleur positionnement */
    position: relative;
    z-index: 1;
}

/* Texte du panier (optionnel) */
.cart-text {
    margin-right: 5px;
    font-weight: 500;
}

/* Bulle du compteur - superposée en haut à droite */
.cart-counter-bubble {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #D02E26; /* Rouge - ajustez selon votre charte */
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    z-index: 999;
}

/* Masquer la bulle si le panier est vide */
.cart-counter-bubble:empty,
.cart-counter-bubble[data-count="0"] {
    display: none !important;
}

/* Animation de rebond */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.bounce-animation {
    animation: bounce 0.6s ease-in-out;
}

/* Variante pour les nombres à 2 chiffres et plus */
.cart-counter-bubble {
    min-width: 22px;
    padding: 0 2px;
    /* La bulle s'adapte automatiquement à la largeur du contenu */
    width: auto;
    border-radius: 10px; /* Ajusté pour garder la forme arrondie */
}

/* Pour les nombres à 3 chiffres (99+) */
.cart-counter-bubble:has-text("99+"),
.cart-counter-bubble[data-count*="9"][data-count*="9"] {
    font-size: 10px;
    min-width: 24px;
    border-radius: 12px;
}

/* Style responsive */
@media (max-width: 768px) {
    .cart-counter-link i {
        font-size: 22px;
    }
    
    .cart-counter-bubble {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: -4px;
        right: -4px;
        border-radius: 10px;
    }
    
    .cart-text {
        display: none; /* Masquer le texte sur mobile */
    }
}

/* Styles pour Elementor */
.elementor-widget-container .cart-counter-container {
    width: 100%;
    text-align: center;
}

/* Si vous utilisez un widget HTML d'Elementor */
.elementor-html-widget .cart-counter-container {
    display: inline-block;
}


td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
	display: flex;
	gap: 4px;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce strong {
	color: #003366 !important;
}

.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table {
	display: flex;
	padding: 0;
}

tbody {
	width: 100%;
}

.woocommerce-orders-table__row {
    border-bottom: 1px solid #ccc !important;
    padding: 0 0 10px 0;
}

.woocommerce-orders-table__row:last-child {
    border-bottom: none !important;
    padding: 0;
}