/*
 * Bocolis — Mes favoris ([BOC-007] TC Agency, 09/11/2026).
 * Couleurs du site : vert #108501 / #0e4806, texte #17301a ; cœur actif rouge #e0303b.
 */

/* ---------- Le cœur sur les cartes produits : sous le bouton panier ---------- */
.bocolis-fav {
	--bocolis-fav-taille: 40px;
	position: absolute;
	z-index: 3;
	top: calc(15px + 46px + 8px); /* sous le bouton panier des cartes (15 px du bord, 46 px) */
	right: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--bocolis-fav-taille);
	height: var(--bocolis-fav-taille);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	color: #0e4806;
	line-height: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bocolis-fav svg {
	width: 20px;
	height: 20px;
	transition: fill 0.15s ease, transform 0.15s ease;
}

.bocolis-fav:hover svg {
	transform: scale(1.08);
}

.bocolis-fav:hover {
	--bocolis-fav-couleur: #e0303b;
}

/* Survol d'un cœur vide : il se remplit légèrement, pour montrer ce que fait le clic. */
.bocolis-fav:hover:not(.is-actif) svg {
	fill: rgba(224, 48, 59, 0.22);
}

.bocolis-fav:focus-visible {
	outline: 3px solid #108501;
	outline-offset: 2px;
}

.bocolis-fav.is-actif {
	--bocolis-fav-couleur: #e0303b;
}

.bocolis-fav.is-actif svg {
	fill: currentColor;
}

.bocolis-fav.is-anime svg {
	animation: bocolis-fav-pop 0.35s ease;
}

@keyframes bocolis-fav-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

@media (max-width: 767px) {
	.bocolis-fav {
		--bocolis-fav-taille: 34px;
		top: calc(10px + 38px + 6px); /* bouton panier de 38 px à 10 px du bord sur téléphone */
		right: 12px;
	}

	.bocolis-fav svg {
		width: 18px;
		height: 18px;
	}
}

/* ---------- Fiche produit : sur la photo, sous la loupe ---------- */
.woocommerce-product-gallery {
	position: relative;
}

.bocolis-fav--fiche {
	--bocolis-fav-taille: 44px;
	top: 68px; /* sous la loupe ; à sa place quand le réglage la masque */
	right: 16px;
}

.bocolis-fav--fiche svg {
	width: 21px;
	height: 21px;
}

/* ---------- En-tête : lien « Favoris » avant « Mon compte » (tablette et ordinateur) ---------- */
.bocolis-favlien {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 6px;
	color: #17301a;
	font-family: "Afacad", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
}

.bocolis-favlien:hover,
.bocolis-favlien:focus-visible {
	color: #108501;
}

.bocolis-favlien svg {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	transition: fill 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

/* Survol : le cœur de l'en-tête se remplit, comme sur les cartes. */
.bocolis-favlien:hover svg,
.bocolis-favlien:focus-visible svg {
	color: #e0303b;
	fill: #e0303b;
	transform: scale(1.06);
}

/* Compteur posé sur le haut du cœur, sans toucher le mot « Favoris ». */
.bocolis-favlien__nb {
	position: absolute;
	top: -2px;
	left: 18px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 10px;
	background: #e0303b;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 13px;
	text-align: center;
	box-sizing: border-box;
}

.bocolis-favlien:has(.bocolis-favlien__nb:not([hidden])) .bocolis-favlien__texte {
	margin-left: 6px; /* place pour un compteur à deux chiffres */
}

@media (max-width: 1024px) {
	.bocolis-favlien__texte {
		display: none;
	}
}

/* Barre du bas : compteur des favoris en rouge pour le distinguer de celui du panier. */
.bocolis-bm__tab[data-bm="favoris"] .bocolis-bm__badge {
	background: #e0303b;
}

/* ---------- Message en bas d'écran ---------- */
.bocolis-fav-message {
	position: fixed;
	z-index: 100000;
	left: 50%;
	bottom: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 12px;
	background: #17301a;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	color: #fff;
	font-family: "Afacad", sans-serif;
	font-size: 16px;
	line-height: 1.3;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.bocolis-fav-message.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.bocolis-fav-message__action {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	color: #a8e69a !important;
	font: inherit;
	font-weight: 700;
	text-decoration: underline !important;
	cursor: pointer;
}

@media (max-width: 767px) {
	.bocolis-fav-message {
		bottom: calc(64px + 12px + env(safe-area-inset-bottom, 0px)); /* au-dessus de la barre du bas */
		font-size: 15px;
	}
}

/* ---------- Page Mes favoris ---------- */
.bocolis-favpage {
	width: 100%;
	font-family: "Afacad", sans-serif;
	color: #17301a;
}

/* Barre : pastilles de filtre sur une ligne qui défile, tri à droite. */
.bfp-barre {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 4px;
}

.bfp-filtres {
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
	padding: 4px 2px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.bfp-filtres::-webkit-scrollbar {
	display: none;
}

.bfp-chip {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: 1.5px solid #108501;
	border-radius: 999px;
	background: #fff;
	color: #0e4806;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bfp-chip__nb {
	font-weight: 500;
	opacity: 0.7;
}

.bfp-chip:hover {
	background: #eef6eb;
}

.bfp-chip[aria-pressed="true"] {
	background: #108501;
	color: #fff;
}

/* Pastille active : une croix pour montrer qu'on peut la retirer. */
.bfp-chip[aria-pressed="true"]::after {
	content: "";
	width: 10px;
	height: 10px;
	background: linear-gradient(45deg, transparent 43%, currentColor 43%, currentColor 57%, transparent 57%),
		linear-gradient(-45deg, transparent 43%, currentColor 43%, currentColor 57%, transparent 57%);
}

.bfp-bouton:focus-visible,
.bfp-chip:focus-visible,
.bfp-tri select:focus-visible,
.bfp-tout:focus-visible,
.bfp-effacer:focus-visible {
	outline: 3px solid #108501;
	outline-offset: 2px;
}

.bfp-tri {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	margin: 0;
	color: #0e4806;
}

.bfp-tri svg {
	position: absolute;
	left: 12px;
	pointer-events: none;
}

.bfp-tri select {
	height: 36px;
	padding: 0 34px 0 38px;
	border: 1.5px solid #cfe0c8;
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4806' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
	color: #0e4806;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

/*
 * Menu de tri ouvert (ordinateur et tablette) : aux couleurs du site, survol vert clair, choix en
 * cours vert. Navigateurs qui ne savent pas styler un menu déroulant (Safari aujourd'hui) : menu
 * normal. Téléphone : sélecteur natif du téléphone.
 */
@media (min-width: 768px) {
	@supports (appearance: base-select) {
		.bfp-tri select,
		.bfp-tri select::picker(select) {
			appearance: base-select;
		}

		.bfp-tri select {
			display: flex;
			align-items: center;
		}

		.bfp-tri select::picker-icon {
			display: none;
		}

		.bfp-tri select::picker(select) {
			margin-top: 6px;
			padding: 6px;
			border: 1.5px solid #cfe0c8;
			border-radius: 16px;
			background: #fff;
			box-shadow: 0 10px 30px rgba(14, 72, 6, 0.14);
		}

		.bfp-tri option {
			padding: 9px 14px;
			border-radius: 10px;
			color: #17301a;
			font-size: 15px;
			font-weight: 500;
			cursor: pointer;
		}

		.bfp-tri option::checkmark {
			display: none;
		}

		.bfp-tri option:hover,
		.bfp-tri option:focus-visible {
			background: #eef7ec;
			color: #0e4806;
			outline: none;
		}

		.bfp-tri option:checked {
			background: #108501;
			color: #fff;
			font-weight: 700;
		}
	}
}

.bfp-resume {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 6px 0 22px;
}

.bfp-total {
	margin: 0;
	color: #4d5a4c;
	font-size: 16px;
}

.bfp-total strong {
	color: #17301a;
}

/* Le thème donne display: inline-block à tous les boutons, ce qui annule l'attribut hidden. */
[data-bocolis-favpage] [hidden],
.bocolis-fav-message [hidden] {
	display: none !important;
}

.bfp-effacer {
	margin-left: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: #108501;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.bfp-tout {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: #108501;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.bfp-tout:hover {
	background: #0b6a01;
}

.bfp-tout[disabled] {
	opacity: 0.45;
	cursor: default;
}

.bfp-tout.is-chargement {
	opacity: 0.7;
	cursor: progress;
}

/* Groupes par rayon */
.bfp-groupe + .bfp-groupe,
.bfp-habituels {
	margin-top: 34px;
}

.bfp-groupe__titre {
	margin: 0 0 14px;
	color: var(--e-global-color-primary, #0e4806);
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
}

.bfp-groupe__titre span {
	color: #6b7a69;
	font-size: 0.7em;
	font-weight: 600;
}

/* Grille : la carte des rayons ; ombre au survol non rognée, pas de pseudo-éléments WooCommerce. */
.bocolis-favpage .bocolis-products-zone {
	overflow: visible !important;
}

.bocolis-favpage ul.products::before,
.bocolis-favpage ul.products::after {
	content: none !important;
	display: none !important;
}

.bfp-plus {
	margin: 26px 0 0;
	text-align: center;
}

.bfp-aucun {
	margin: 24px 0;
	color: #4d5a4c;
	font-size: 17px;
	text-align: center;
}

.bfp-habituels {
	padding-top: 28px;
	border-top: 1px solid #dfe9db;
}

/* Liste vide : titre, illustration, boutons, puis « Comment ça marche ? » */
.bfp-vide {
	max-width: 560px;
	margin: 14px auto 0;
	text-align: center;
}

.bfp-vide__titre {
	margin: 0 0 6px;
	color: var(--e-global-color-primary, #0e4806);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
}

.bfp-vide__texte {
	margin: 0 auto 6px;
	color: #4d5a4c;
	font-size: 17px;
	line-height: 1.4;
}

.bfp-vide__illustration,
.bfp-vide__image {
	display: block;
	width: 200px;
	max-width: 60%;
	height: auto;
	margin: 6px auto 10px;
}

.bfp-vide__boutons {
	display: flex;
	margin-top: 4px;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.bfp-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 24px;
	border: 2px solid #108501;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bfp-bouton--plein {
	background: #108501;
	color: #fff !important;
}

.bfp-bouton--plein:hover {
	border-color: #0b6a01;
	background: #0b6a01;
}

.bfp-bouton--contour {
	background: #fff;
	color: #0e4806 !important;
}

.bfp-bouton--contour:hover {
	background: #eef6eb;
}

.bfp-vide__note {
	margin: 12px 0 0;
	color: #6b7a69;
	font-size: 14px;
}

.bfp-vide__rayons-titre {
	margin: 26px 0 10px;
	color: #17301a;
	font-size: 16px;
	font-weight: 700;
}

.bfp-vide__rayons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.bfp-vide__rayons .bfp-chip {
	text-decoration: none !important;
}

.bfp-comment {
	max-width: 1040px;
	margin: 36px auto 0;
	padding: 28px 24px;
	border-radius: 22px;
	background: #f1f7ee;
}

.bfp-comment__titre {
	margin: 0 0 16px;
	color: var(--e-global-color-primary, #0e4806);
	font-size: 22px;
	font-weight: 700;
	text-align: center;
}

.bfp-comment__etapes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	counter-reset: bfp-etape;
}

.bfp-comment__etapes li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 16px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(14, 72, 6, 0.06);
	color: #17301a;
	font-size: 16px;
	line-height: 1.35;
}

.bfp-comment__picto {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #e9f3e6;
	color: #108501;
}

.bfp-cadie {
	display: block;
	width: 26px;
	height: 26px;
	background: currentColor;
	-webkit-mask: var(--bfp-cadie) center / contain no-repeat;
	mask: var(--bfp-cadie) center / contain no-repeat;
}

.bfp-comment__picto--coeur {
	color: #e0303b;
}

/* Visiteur : invitation à se connecter, une simple ligne sous le titre (sans encadré) */
.bfp-invite {
	margin: -6px 0 22px;
	color: #4d5a4c;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
}

.bfp-invite a {
	color: #108501;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.bfp-invite a:hover {
	color: #0b6a01;
}

/* Chargement (visiteur) : emplacement des cartes */
.bfp-attente {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 60px 0 80px;
}

.bfp-attente span {
	aspect-ratio: 1;
	border-radius: 22px;
	background: linear-gradient(90deg, #eef4eb 25%, #f6faf4 50%, #eef4eb 75%) 0 0 / 200% 100%;
	animation: bocolis-fav-attente 1.2s linear infinite;
}

@keyframes bocolis-fav-attente {
	to { background-position: -200% 0; }
}

/* Tablette */
@media (max-width: 1024px) {
	.bfp-groupe__titre {
		font-size: 23px;
	}

	.bfp-attente {
		grid-template-columns: repeat(3, 1fr);
	}

	.bfp-comment__etapes li {
		flex-direction: column;
		text-align: center;
	}
}

/* Téléphone : barre sur une ligne (pastilles qui défilent + tri réduit à son icône) */
@media (max-width: 767px) {
	.bfp-barre {
		gap: 8px;
		margin-top: 0;
	}

	.bfp-chip {
		height: 34px;
		padding: 0 12px;
		font-size: 14px;
	}

	.bfp-tri select {
		width: 40px;
		height: 34px;
		padding: 0;
		background-image: none;
		color: transparent;
	}

	.bfp-tri select option {
		color: #17301a;
	}

	.bfp-tri svg {
		left: 11px;
	}

	.bfp-resume {
		margin-bottom: 16px;
	}

	.bfp-total {
		font-size: 15px;
	}

	.bfp-tout {
		height: 36px;
		padding: 0 14px;
		font-size: 14px;
	}

	.bfp-tout__suite {
		display: none;
	}

	.bfp-groupe__titre {
		font-size: 21px;
	}

	.bfp-groupe + .bfp-groupe,
	.bfp-habituels {
		margin-top: 26px;
	}

	.bfp-vide__titre {
		font-size: 24px;
	}

	.bfp-vide__texte {
		font-size: 16px;
	}

	.bfp-bouton {
		flex: 1 1 100%;
		height: 44px;
	}

	.bfp-comment {
		margin: 28px 0 0;
		padding: 22px 14px;
	}

	.bfp-comment__etapes {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.bfp-comment__etapes li {
		flex-direction: row;
		padding: 12px 14px;
		font-size: 15px;
		text-align: left;
	}

	.bfp-comment__picto {
		width: 42px;
		height: 42px;
	}

	.bfp-attente {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		margin-top: 30px;
	}
}

/* ---------- États des boutons ----------
 * Le thème (Hello Elementor) donne à tout <button> une bordure, un rembourrage et un fond rose (#c36)
 * au survol et au clic : chaque état est donc fixé ici, avec la priorité nécessaire. */
.bocolis-fav,
.bocolis-fav:hover,
.bocolis-fav:focus,
.bocolis-fav:active {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--bocolis-fav-couleur, #0e4806) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
	width: var(--bocolis-fav-taille) !important;
	height: var(--bocolis-fav-taille) !important;
	min-height: 0 !important;
	text-decoration: none !important;
}

.bfp-chip,
.bfp-chip:hover,
.bfp-chip:focus,
.bfp-chip:active {
	padding: 0 14px !important;
	border: 1.5px solid #108501 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #0e4806 !important;
}

.bfp-chip:hover {
	background: #eef6eb !important;
}

.bfp-chip[aria-pressed="true"],
.bfp-chip[aria-pressed="true"]:focus,
.bfp-chip[aria-pressed="true"]:active {
	background: #108501 !important;
	color: #fff !important;
}

.bfp-chip[aria-pressed="true"]:hover {
	border-color: #0b6a01 !important;
	background: #0b6a01 !important;
	color: #fff !important;
}

.bfp-effacer,
.bfp-effacer:hover,
.bfp-effacer:focus,
.bfp-effacer:active,
.bocolis-fav-message__action,
.bocolis-fav-message__action:hover,
.bocolis-fav-message__action:focus {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.bfp-effacer,
.bfp-effacer:focus,
.bfp-effacer:active {
	color: #108501 !important;
}

.bfp-effacer:hover {
	color: #0b6a01 !important;
}

.bocolis-fav-message__action,
.bocolis-fav-message__action:hover,
.bocolis-fav-message__action:focus {
	color: #a8e69a !important;
}

.bfp-tout,
.bfp-tout:focus,
.bfp-tout:active,
.bfp-plus__bouton,
.bfp-plus__bouton:focus,
.bfp-plus__bouton:active {
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #108501 !important;
	color: #fff !important;
	box-shadow: none !important;
}

.bfp-tout:hover,
.bfp-plus__bouton:hover {
	background: #0b6a01 !important;
	color: #fff !important;
}

.bfp-tout[disabled],
.bfp-tout[disabled]:hover {
	background: #108501 !important;
}

.bfp-plus__bouton,
.bfp-plus__bouton:focus,
.bfp-plus__bouton:active {
	height: 44px;
	padding: 0 24px !important;
	border: 2px solid #108501 !important;
	background: #fff !important;
	color: #0e4806 !important;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.bfp-plus__bouton:hover {
	border-color: #108501 !important;
	background: #eef6eb !important;
	color: #0e4806 !important;
}

/* Clavier : contour visible ; souris et doigt : pas de contour laissé après le clic. */
.bocolis-fav:focus:not(:focus-visible),
.bfp-chip:focus:not(:focus-visible),
.bfp-tout:focus:not(:focus-visible),
.bfp-effacer:focus:not(:focus-visible),
.bfp-plus__bouton:focus:not(:focus-visible) {
	outline: none !important;
}

@media (max-width: 767px) {
	.bfp-chip,
	.bfp-chip:hover,
	.bfp-chip:focus,
	.bfp-chip:active {
		padding: 0 12px !important;
	}

	.bfp-tout,
	.bfp-tout:focus,
	.bfp-tout:active {
		padding: 0 14px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bocolis-fav svg,
	.bocolis-fav-message,
	.bfp-chip,
	.bfp-tout {
		transition: none;
	}

	.bocolis-fav.is-anime svg,
	.bfp-attente span {
		animation: none;
	}
}
