/*
Theme Name:  Life Child
Theme URI:   https://themeforest.net/user/pixelwars/portfolio
Description: Make your modifications to [Life Theme] in this child theme.
Author:      Pixelwars
Author URI:  https://themeforest.net/user/pixelwars
Version:     1.2.0
Template:    life
Tags:        portfolio
Text Domain: life-child
*/


/* =Theme customization starts here
-------------------------------------------------------------- */

/* Le conteneur de navigation sert de référence */
.site-header .site-navigation {
	position: relative !important;
}

/* Icône "Mon compte" – toujours à droite du panier, tous écrans */
.site-header .site-navigation .account-icon {
	display: block !important;
	position: absolute !important;
	top: 50% !important;
	right: 0 !important;              /* collée au bord droit */
	transform: translateY(-50%);      /* centrée verticalement */

	width: 32px !important;
	height: 32px !important;
	line-height: 32px !important;
	text-align: center !important;

	color: rgba(0, 0, 0, 0.5) !important;
	z-index: 20;
}

.site-header .site-navigation .account-icon:hover {
	color: #000 !important;
}

/* Icône Fontello */
.site-header .site-navigation .account-icon:before {
	font-family: fontello !important;
	font-style: normal !important;
	font-weight: 400 !important;
	speak: none !important;
	display: inline-block !important;
	text-decoration: inherit !important;
	text-align: center !important;
	font-variant: normal !important;
	text-transform: none !important;
	content: '\e808' !important; /* icône utilisateur */
	font-size: 18px;
}

/* 📱 Évite le chevauchement panier / compte en mobile */
@media (max-width: 991px) {
	.site-header .site-navigation .shopping-cart {
		right: 8px !important;  /* éloigne le panier du bord droit */
	}
}

@media (min-width: 992px) {
	.site-header .site-navigation .shopping-cart {
		top: 0.18em !important;
	}
}

@media (max-width: 991px) {
	.site-header .site-navigation .shopping-cart {
		top: 0.1em !important;
	}
}




/* Styles pour menu sombre */
.is-menu-dark .account-icon,
.is-header-dark:not(.is-menu-bar) .account-icon {
	color: rgba(255, 255, 255, 0.5);
}
.is-menu-dark .account-icon:hover,
.is-header-dark:not(.is-menu-bar) .account-icon:hover {
	color: #fff;
}

/* Bouton "Acheter ce tirage" dans les légendes Lightbox */
#lightbox .lb-data .lb-caption .rdl-buy-link,
.mfp-title .rdl-buy-link,
.pp_description .rdl-buy-link,
.ppt .rdl-buy-link,
.sl-wrapper .sl-caption .rdl-buy-link,
.lg-outer .lg-sub-html .rdl-buy-link,
.fancybox__caption .rdl-buy-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 0px;
  background-color: #389aa8; /* couleur normale */
  color: #ffffff; /* texte blanc */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Icône panier (SVG inline, sans dépendance) */
#lightbox .lb-data .lb-caption .rdl-buy-link::before,
.mfp-title .rdl-buy-link::before,
.pp_description .rdl-buy-link::before,
.ppt .rdl-buy-link::before,
.sl-wrapper .sl-caption .rdl-buy-link::before,
.lg-outer .lg-sub-html .rdl-buy-link::before,
.fancybox__caption .rdl-buy-link::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M0 24C0 10.7 10.7 0 24 0H69.5c22.1 0 41.5 15.2 46.7 36.7L121 64H552c13.3 0 24 10.7 24 24c0 3.3-.7 6.5-1.9 9.4l-68.5 160c-7.6 17.7-25 29.1-44.1 29.1H198.6l7.2 32H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-11 0-20.5-7.5-23.1-18.2L96.4 54.5c-.4-1.7-2-2.9-3.8-2.9H24C10.7 51.6 0 40.9 0 27.6V24zM176 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm240 0a48 48 0 1 1 96 0 48 48 0 1 1 -96 0z"/></svg>') no-repeat 50% 50% / contain);
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M0 24C0 10.7 10.7 0 24 0H69.5c22.1 0 41.5 15.2 46.7 36.7L121 64H552c13.3 0 24 10.7 24 24c0 3.3-.7 6.5-1.9 9.4l-68.5 160c-7.6 17.7-25 29.1-44.1 29.1H198.6l7.2 32H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-11 0-20.5-7.5-23.1-18.2L96.4 54.5c-.4-1.7-2-2.9-3.8-2.9H24C10.7 51.6 0 40.9 0 27.6V24zM176 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm240 0a48 48 0 1 1 96 0 48 48 0 1 1 -96 0z"/></svg>') no-repeat 50% 50% / contain;
}

/* Survol : fond foncé, texte blanc et souligné */
#lightbox .lb-data .lb-caption .rdl-buy-link:hover,
.mfp-title .rdl-buy-link:hover,
.pp_description .rdl-buy-link:hover,
.ppt .rdl-buy-link:hover,
.sl-wrapper .sl-caption .rdl-buy-link:hover,
.lg-outer .lg-sub-html .rdl-buy-link:hover,
.fancybox__caption .rdl-buy-link:hover {
  background-color: #004456; /* couleur au survol */
  color: #ffffff;
  text-decoration: underline;
}
