/* Mes favoris (3 nov. 2026) - inc/favoris.php, assets/favoris.js. Le cœur : un contour bleu nuit, rempli du rose de Léa
   (#FFABB3) quand l'objet est en favori, avec un petit rebond. Palette de Léa seulement. */
.fl-coeur { width: 22px; height: 22px; display: block; fill: transparent; stroke: #2D2F52; stroke-width: 1.7; stroke-linejoin: round; transition: fill .25s ease, stroke .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1.4); }

/* le bouton sur une carte : un rond blanc posé en haut à droite de la photo */
.fl-favori { -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit; color: inherit; }
.fl-favori--carte { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 18px -10px rgba(45, 47, 82, .45); transition: transform .25s ease, box-shadow .25s ease; }
.fl-favori--carte .fl-coeur { width: 20px; height: 20px; }
@media (hover: hover) { .fl-favori--carte:hover { transform: scale(1.08); box-shadow: 0 10px 22px -10px rgba(45, 47, 82, .55); } }
.fl-favori[aria-pressed="true"] .fl-coeur { fill: #FFABB3; stroke: #2D2F52; }
.fl-favori:focus-visible { outline: 2px solid #7B8CF6; outline-offset: 2px; }
.fl-favori.is-pop .fl-coeur { animation: fl-coeur-pop .5s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes fl-coeur-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 65% { transform: scale(.92); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fl-favori.is-pop .fl-coeur, .fl-favoris-entete__lien.is-pop .fl-coeur { animation: none; } }

/* les cartes : la carte porte le cœur, son lien (intérieur) garde toute la carte cliquable */
.fl-carr__item.fl-at-carte { position: relative; }
.fl-carr__lien { display: contents; color: inherit; text-decoration: none; }
.fl-carr__item:has(.fl-carr__lien:focus-visible) { outline: 2px solid #7B8CF6; outline-offset: 4px; border-radius: 18px; }
.woocommerce ul.products li.product { position: relative; }

/* sur la fiche produit : un bouton en toutes lettres sous « Ajouter au panier » */
/* 3 nov. 2026 (Vianney : « le stock et favoris sont mal alignés ») : sur sa propre ligne, plus collé à côté de « En rupture de stock ». */
.fl-favori--fiche { display: flex; width: fit-content; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 10px 18px 10px 14px; border: 0; border-radius: 999px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(45, 47, 82, .2); font-weight: 700; font-size: .95rem; color: #2D2F52; transition: box-shadow .25s ease; }
form.cart + .fl-favori--fiche { margin-top: 33px; } /* sous « Ajouter au panier » : le même écart qu'avant */
/* 13 nov. 2026 : sur téléphone, le cœur passe à droite du compteur (inc/favoris.php), avec un espace ; compteur un peu réduit. */
.fl-favori--dans-panier { display: none; }
@media (max-width: 600px) {
	.single-product div.product form.cart .fl-favori--dans-panier { display: flex; align-self: center; height: 52px; margin: 0 0 0 14px; padding: 0 16px 0 13px; gap: 8px; font-size: .9rem; white-space: nowrap; }
	.single-product div.product form.cart:has(.fl-favori--dans-panier) + .fl-favori--fiche { display: none; }
	.single-product div.product form.cart:has(.fl-favori--dans-panier) .fl-qty__btn { width: 40px; flex-basis: 40px; padding: 0 !important; }
	.single-product div.product form.cart:has(.fl-favori--dans-panier) .fl-qty input.qty { width: 2.2rem !important; }
}
@media (hover: hover) { .fl-favori--fiche:hover { box-shadow: inset 0 0 0 1.5px #2D2F52; } }
.fl-favori--fiche[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px #FFABB3; background: color-mix(in srgb, #FFABB3 14%, #FFFFFF); }

/* le cœur de l'en-tête, entre le compte et le panier */
.fl-favoris-entete { display: flex; align-items: center; }
.fl-favoris-entete__lien { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: #2D2F52; text-decoration: none; }
.fl-favoris-entete__lien .fl-coeur { width: 22px; height: 22px; }
.fl-favoris-entete__lien.a-favoris .fl-coeur { fill: #FFABB3; }
.fl-favoris-entete__lien.is-pop .fl-coeur { animation: fl-coeur-pop .5s cubic-bezier(.2, .8, .2, 1.4); }
.fl-favoris-entete__nb { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #2D2F52; color: #FFFFFF; font: 700 .68rem/18px system-ui, sans-serif; text-align: center; }
.fl-favoris-entete__nb[hidden] { display: none; }

/* la page « Mes favoris » */
.fl-favoris__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: 32px 20px; margin: 10px 0 40px; }
.fl-favoris__carte { display: flex; flex-direction: column; gap: 10px; transition: opacity .3s ease, transform .3s ease; }
.fl-favoris__carte.is-retire { opacity: 0; transform: scale(.94); }
.fl-favoris__carte .fl-carr__item { flex: 1; }
.fl-favoris__carte .fl-carr__visuel { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #F4EEEE; }
.fl-favoris__carte .fl-carr__visuel img { width: 100%; height: 100%; object-fit: cover; }
.fl-favoris__carte .fl-at-carte__survol { display: none; }
.fl-favoris__carte .fl-carr__nom { display: block; margin-top: 10px; font-weight: 700; }
.fl-favoris__carte .fl-carr__coloris, .fl-favoris__carte .fl-carr__prix { display: block; font-size: .92rem; }
.fl-favoris__carte .fl-carr__taille { display: block; font-size: .92rem; font-weight: 600; color: #2D2F52; } /* 14 nov. : taille de la bague */
.fl-favoris .button.fl-favoris__panier { align-self: flex-start; }
.fl-favoris.is-charge .fl-favoris__grille { min-height: 240px; background: linear-gradient(90deg, transparent, color-mix(in srgb, #D7C5F3 25%, transparent), transparent) 0 0 / 200% 100%; animation: fl-favoris-charge 1.2s linear infinite; border-radius: 18px; }
@keyframes fl-favoris-charge { to { background-position: -200% 0; } }
.fl-favoris__vide { display: grid; justify-items: center; gap: 12px; padding: 48px 16px; text-align: center; color: #2D2F52; }
.fl-favoris__vide[hidden] { display: none; }
.fl-favoris__vide .fl-coeur { width: 46px; height: 46px; stroke-width: 1.3; }
.fl-favoris__vide p { margin: 0; font-size: 1.05rem; line-height: 1.5; }

/* l'accueil : quand la carte s'incline en 3D (accueil-v3.css), sa photo avance de 22 px vers l'écran ; en 3D c'est la
   profondeur qui décide ce qui est devant, pas le z-index : le cœur avance donc plus loin que la photo, sinon elle le
   couvre et le clic ouvre la fiche (Vianney, 3 nov. 2026 : « impossible de liker depuis l'accueil à cause de l'effet 3D ») */
.fl-v3 .fl-v3-formes .fl-carr__item .fl-favori--carte { transform: translateZ(0); }
.fl-v3 .fl-v3-formes .fl-carr__item.is-incline .fl-favori--carte { transform: translateZ(44px); }
@media (hover: hover) { .fl-v3 .fl-v3-formes .fl-carr__item.is-incline .fl-favori--carte:hover { transform: translateZ(44px) scale(1.08); } }

/* 14 nov. 2026 : sur ordinateur, le cœur sur la ligne du prix (inc/favoris.php) ; celui du dessous du panier est caché */
.fl-favori--prix { display: none; }
@media (min-width: 601px) {
	.single-product div.product .fl-prix-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 1.1rem; }
	.single-product div.product .fl-prix-ligne:has(+ .fl-price-note) { margin-bottom: .25rem; }
	/* 14 nov. 2026 (Vianney : « le bouton favoris n'est pas aligné au prix ») : flowly.css pose 1.1rem !important SOUS le
	   prix ; dans cette ligne centrée, cette marge remontait le prix de 9 px au-dessus du cœur. L'espace passe sous la ligne. */
	.single-product div.product .summary .fl-prix-ligne > p.price { margin-bottom: 0 !important; }
	.single-product div.product .fl-favori--prix { display: flex; margin: 0; padding: 8px 16px 8px 12px; font-size: .9rem; }
	.single-product div.product .fl-favori--fiche:not(.fl-favori--prix):not(.fl-favori--dans-panier) { display: none; }
}
