/* Deep Beauty — Boutique : recherche, tri et filtres. */
/* ---------- Boutique : recherche, tri et filtres ---------- */
.bq-univers { max-width: 1280px; margin: 0 auto 44px; }
.bq-univers-titre { margin: 0 0 22px; font: 500 28px/1.3 var(--police-titre); color: var(--encre); text-align: center; }
.bq-tuiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.bq-tuiles > .bq-tuile { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; }
.bq-tuile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; font: inherit; padding: 14px 14px 20px; border: 2px solid transparent; border-radius: var(--rayon-carte); background: #fff; box-shadow: 0 0 0 1px var(--bordure-carte); text-align: center; cursor: pointer; transition: transform 0.4s var(--ease-sortie), box-shadow 0.4s var(--ease-sortie), border-color 0.25s; }
.bq-tuile.bq-option { gap: 6px; padding: 14px 14px 20px; border-radius: var(--rayon-carte); font: inherit; }
a.bq-tuile { color: inherit; text-decoration: none; }
.bq-tuile.bq-option:hover { background: #fff; }
.bq-tuile input { position: absolute; opacity: 0; pointer-events: none; }
@media (hover: hover) { .bq-tuile:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--bordure-carte), 0 18px 40px rgba(20, 20, 40, 0.14); } }
.bq-tuile-image { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--rayon-carte) - 6px); background: #f7f7f9; }
.bq-tuile-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; transition: transform 0.7s var(--ease-sortie); }
@media (hover: hover) { .bq-tuile:hover .bq-tuile-image img { transform: scale(1.06); } }
.bq-tuile-image .icone { width: 54px; height: 54px; color: #b9bac4; }
.bq-tuile-nom { margin-top: 8px; font: 600 18px/1.3 var(--police-titre); color: var(--encre); }
.bq-tuile-nb { font: 300 14px/1.5 var(--police-titre); color: var(--texte); }
.bq-tuile-nb em { font-style: normal; font-weight: 600; }
.bq-tuile-bouton { margin-top: 10px; padding: 9px 20px; border: 1.5px solid var(--encre); border-radius: 999px; font: 600 13px var(--police-titre); color: var(--encre); transition: background 0.25s, color 0.25s; }
.bq-tuile:hover .bq-tuile-bouton, .bq-tuile:has(input:checked) .bq-tuile-bouton, .bq-tuile.est-actif .bq-tuile-bouton { background: var(--encre); color: #fff; }
.bq-tuile:has(input:checked), .bq-tuile.est-actif { border-color: var(--encre); }
.bq-tuile:has(input:checked)::after, .bq-tuile.est-actif::after { content: ""; position: absolute; top: 22px; right: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--encre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.bq-tuile.est-vide { opacity: 0.45; }
.bq-tuile:focus-within { outline: 3px solid rgba(var(--accent-halo), 0.5); outline-offset: 2px; }
.bq { padding-top: calc(36px + var(--recouvrement)); background: #f5f5f7; }
.bq-barre, .bq-corps { max-width: 1280px; margin: 0 auto; }
.bq-barre { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.bq-recherche { position: relative; flex: 1 1 320px; }
.bq-recherche .icone { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--texte-discret); pointer-events: none; }
.bq-recherche input { width: 100%; height: 48px; padding: 0 18px 0 46px; border: 1px solid var(--bordure-carte); border-radius: 999px; background: #fff; font: 400 15px var(--police-titre); color: var(--encre); transition: border-color 0.25s, box-shadow 0.25s; }
.bq-recherche input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-halo), 0.2); }
.bq-tri select { height: 48px; padding: 0 40px 0 18px; border: 1px solid var(--bordure-carte); border-radius: 999px; background: #fff; font: 500 14px var(--police-titre); color: var(--encre); cursor: pointer; }
.bq-ouvrir { display: none; position: relative; height: 48px; padding: 0 22px; line-height: 44px; }
.bq-nb { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 11px; background: var(--encre); font: 600 12px/1 var(--police-titre); color: #fff; }
.bq-corps { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.bq-filtres { position: sticky; top: 110px; max-height: calc(100svh - 130px); overflow-y: auto; padding: 8px 22px 22px; border: 1px solid var(--bordure-carte); border-radius: var(--rayon-carte); background: #fff; }
.bq-filtres-tete { display: none; }
.bq-groupe { padding: 16px 0; border-bottom: 1px solid #ececf0; }
.bq-groupe summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font: 600 15px var(--police-titre); color: var(--encre); }
.bq-groupe summary::-webkit-details-marker { display: none; }
.bq-groupe summary .icone { width: 20px; height: 20px; transition: transform 0.3s var(--ease-sortie); }
.bq-groupe[open] summary .icone { transform: rotate(180deg); }
.bq-groupe ul { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.bq-groupe-simple { border-bottom: 0; }
.bq-option { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; font: 400 14px/1.35 var(--police-titre); color: var(--texte); cursor: pointer; transition: background 0.2s; }
.bq-option:hover { background: #f3f4f8; }
.bq-option input { position: absolute; opacity: 0; pointer-events: none; }
.bq-case { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid #b9bac4; border-radius: 6px; background: #fff; transition: background 0.2s, border-color 0.2s; }
.bq-case::after { content: ""; width: 10px; height: 6px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform 0.2s var(--ease-sortie); }
.bq-option input:checked + .bq-case { border-color: var(--encre); background: var(--encre); }
.bq-option input:checked + .bq-case::after { transform: rotate(-45deg) scale(1); }
.bq-option input:focus-visible + .bq-case { box-shadow: 0 0 0 3px rgba(var(--accent-halo), 0.4); }
.bq-libelle { flex: 1; }
.bq-option em { font: 400 12px var(--police-titre); font-style: normal; color: var(--texte-discret); }
.bq-option.est-vide { opacity: 0.4; }
.bq-raz { margin-top: 12px; padding: 0; font: 500 13px var(--police-titre); color: #5a5a66; text-decoration: underline; cursor: pointer; }
.bq-voir { display: none; }
.bq-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; min-height: 36px; margin-bottom: 18px; }
.bq-resultat { margin: 0; font: 500 14px var(--police-titre); color: var(--texte); }
.bq-actifs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bq-actifs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--encre); border-radius: 999px; background: #fff; font: 500 13px var(--police-titre); color: var(--encre); cursor: pointer; transition: background 0.2s, color 0.2s; }
.bq-actifs button:hover { background: var(--encre); color: #fff; }
.bq-actifs button::after { content: "×"; font-size: 16px; line-height: 1; }
.bq-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.bq-carte { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bordure-carte); border-radius: var(--rayon-carte); background: #fff; transition: transform 0.4s var(--ease-sortie), box-shadow 0.4s var(--ease-sortie); animation: bq-entree 0.5s var(--ease-sortie) both; }
.bq-carte[hidden] { display: none; }
@keyframes bq-entree { from { opacity: 0; transform: translateY(14px); } }
@media (hover: hover) { .bq-carte:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 20, 40, 0.12); } }
.bq-image { display: grid; place-items: center; aspect-ratio: 1; background: #f7f7f9; }
.bq-image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; transition: transform 0.6s var(--ease-sortie); }
@media (hover: hover) { .bq-carte:hover .bq-image img { transform: scale(1.05); } }
.bq-sans-image .icone { width: 44px; height: 44px; color: #c4c5ce; }
.bq-contenu { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.bq-type { margin: 0; font: 600 11px var(--police-titre); letter-spacing: 1px; text-transform: uppercase; color: var(--texte-discret); }
.bq-nom { margin: 0; font: 600 16px/1.35 var(--police-titre); color: var(--encre); }
.bq-nom a { color: inherit; text-decoration: none; }
.bq-gammes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.bq-gammes span { padding: 3px 10px; border-radius: 999px; background: #eef1fb; font: 500 12px var(--police-titre); color: #3a4a8a; }
.bq-tarif { margin: auto 0 0; padding-top: 6px; font: 600 20px var(--police-titre); color: var(--encre); }
.bq-tarif small { font: 400 12px var(--police-titre); color: var(--texte-discret); }
.bq-achat { display: flex; gap: 8px; margin-top: 10px; }
.bq-qte { flex: none; width: 64px; padding: 10px 8px; border: 1px solid #cfd0d9; border-radius: 999px; background: #fff; text-align: center; font: 500 14px var(--police-titre); color: var(--encre); }
.bq-ajouter { flex: 1; padding: 11px 14px; border: 2px solid var(--encre); border-radius: 999px; background: var(--encre); font: 600 13px/1 var(--police-titre); color: #fff; cursor: pointer; transition: background 0.25s, color 0.25s; }
.bq-ajouter:hover { background: #fff; color: var(--encre); }
.bq-ajouter:disabled { opacity: 0.55; cursor: progress; }
.bq-ajouter.est-ajoute { border-color: #1f9d6a; background: #1f9d6a; color: #fff; }
.bq-toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; background: var(--encre); box-shadow: 0 18px 50px rgba(8, 8, 20, 0.4); font: 500 14px var(--police-titre); color: #fff; transform: translateX(-50%); animation: bq-toast 0.35s var(--ease-sortie); }
.bq-toast[hidden] { display: none; }
.bq-toast a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@keyframes bq-toast { from { opacity: 0; transform: translate(-50%, 14px); } }
.bq-prix { margin-top: auto; padding-top: 6px; font: 500 13px var(--police-titre); color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.bq-vide { margin: 40px 0; padding: 40px 20px; border: 1px dashed #c9cad3; border-radius: var(--rayon-carte); text-align: center; font: 400 16px var(--police-titre); color: var(--texte); }
.bq-vide button { margin-left: 6px; font: 600 15px var(--police-titre); color: var(--encre); text-decoration: underline; cursor: pointer; }
.bq-suite { display: grid; place-items: center; margin-top: 34px; }
@media (max-width: 900px) {
	.bq-tuiles { gap: 12px; }
	.bq-tuiles > .bq-tuile { flex-basis: calc((100% - 12px) / 2); }
	.bq-tuile-nom { font-size: 16px; }
	.bq-univers-titre { font-size: 22px; }
	.bq-ouvrir { display: inline-block; }
	.bq-corps { grid-template-columns: 1fr; }
	.bq-filtres { position: fixed; inset: 0 0 0 auto; z-index: 70; width: min(380px, 92vw); max-height: none; padding: 0 22px 24px; border: 0; border-radius: 0; box-shadow: -14px 0 50px rgba(0, 0, 0, 0.3); transform: translateX(105%); visibility: hidden; transition: transform 0.4s var(--ease-sortie), visibility 0s 0.4s; }
	.bq-ouvert .bq-filtres { transform: none; visibility: visible; transition: transform 0.4s var(--ease-sortie); }
	.bq-filtres-tete { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 20px 0 14px; background: #fff; font: 600 18px var(--police-titre); color: var(--encre); }
	.bq-fermer { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #c9cad3; border-radius: 50%; color: var(--encre); }
	.bq-fermer .icone { width: 18px; height: 18px; }
	.bq-voir { display: block; width: 100%; margin-top: 18px; text-align: center; }
	.bq-grille { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
	.bq-achat { flex-direction: column; }
	.bq-qte { width: 100%; }
	.bq-contenu { padding: 12px 14px 14px; }
	.bq-nom { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .bq-carte { animation: none; } }
