/*
Theme Name: Divi Child Theme
Description: Theme enfant de Divi par AutarTICa
Author: Michaël - AutarTICa
Author URI: https://www.autartica.be
Template: Divi
Version: 1.1
*/


/* 
** CENTRER DU CONTENU VERTICALEMENT 
** Voir tuto : https://www.divi-community.fr/snippets-divi/centrer-du-contenu-verticalement
*/

.dc-centrer-verticalement {
	display: flex;
	flex-direction: column;
	justify-content: center;
  	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -ms-flexbox;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	 -moz-box-orient: vertical;
	 -moz-box-direction: normal;
	  -ms-flex-direction: column;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
}


/*
** INVERSER LE SENS DES COLONNES SUR MOBILE
** Voir tuto : https://www.divi-community.fr/snippets-divi/inverser-ordre-des-colonnes-sur-mobile
*/

@media only screen and (max-width : 980px) {
	.dc-inverser-colonnes--section .dc-inverser-colonnes--ligne {
		display: -webkit-flex;
		display: -ms-flex;
		display: flex;
		-webkit-flex-direction: column-reverse;
		-ms-flex-direction: column-reverse;
		flex-direction: column-reverse;
	}
}


/*
** MENU MOBILE : en pleine largeur et le hamburger devient une croix pour fermer
*/

.et_mobile_menu {
	margin-left: -30px;
	padding: 5%;
	width: calc( 100% + 60px);
}

.mobile_nav.opened .mobile_menu_bar:before {
	content: "\4d";
}


/* 
** AUGMENTER LA LARGEUR CHAMP RÉSULTAT CAPTCHA 
** Parfois, suivant la taille du texte, certains chiffres du résultat sont masqués
*/
.et_pb_contact_right p input {
	max-width: 50px;
}


/*
** METTRE EXPOSANTS ET INDICES À LA BONNE TAILLE
** Généralement, ils sont bien trop gros…
*/
sup, sub {
    font-size: 70%;
}

/* Styles pour les vignettes translucides sur la page principale */
.stock-badge {
    display: block;
    padding: 10px;
    color: #fff; /* Texte blanc pour les vignettes sur la page principale */
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-radius: 5px;
    margin-top: 10px;
    opacity: 0.85; /* Translucidité */
}
.custom-preorder {
    background-color: rgba(173, 216, 230, 0.85); /* Bleu clair pour RÉSERVES TA PÉPITE 💙 */
    color: #add8e6; /* Texte bleu clair sur fond blanc pour page produit */
    font-weight: bold;
}
.custom-arrival {
    background-color: rgba(128, 0, 128, 0.85); /* Violet translucide pour EN APPROCHE ⌛ */
    color: #800080; /* Texte violet sur fond blanc pour page produit */
    font-weight: bold;
}
.custom-on-order {
    background-color: rgba(255, 193, 7, 0.85); /* Jaune translucide pour COMMANDE LE DÉS MAINTENANT 🎁 */
    color: #ffc107; /* Texte jaune sur fond blanc pour page produit */
    font-weight: bold;
}
.custom-in-stock {
    background-color: rgba(40, 167, 69, 0.85); /* Vert translucide pour PRÊT À BONDIR DANS TON PANIER 🛒 */
    color: #28a745; /* Texte vert sur fond blanc pour page produit */
    font-weight: bold;
}
.custom-out-of-stock {
    background-color: rgba(220, 53, 69, 0.85); /* Rouge translucide pour PARTI COMME DES PETITS PAINS 🔥 */
    color: #dc3545; /* Texte rouge sur fond blanc pour page produit */
    font-weight: bold;
}

/* Styles spécifiques pour la page produit */
.product .custom-preorder,
.product .custom-arrival,
.product .custom-on-order,
.product .custom-in-stock,
.product .custom-out-of-stock {
    background-color: #fff; /* Fond blanc pour les statuts sur la page produit */
    padding: 0; /* Suppression du padding pour le texte simple */
}


