/* HOP Recherche — couleurs de Hop la Pub : marine #1C245B, vert #0B7A62. */
:root {
	--hoprc-ink: #1c245b;
	--hoprc-acc: #0b7a62;
	--hoprc-line: #e2e5ee;
	--hoprc-soft: #f4f6fa;
	--hoprc-txt: #3b4163;
}

/* ------------------------------------------------ Mise en page des listes */

.hoprc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.hoprc-main { min-width: 0; }
.hoprc-main ul[data-products] { --shop-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1300px) { .hoprc-main ul[data-products] { --shop-columns: repeat(4, minmax(0, 1fr)); } }
.hoprc-js.hoprc-ready .hoprc-main .woo-listing-top { display: none; }
.hoprc-taken .hoprc-main .ct-pagination,
.hoprc-taken .hoprc-main .woocommerce-pagination { display: none; }
.hoprc-pending .hoprc-main ul.products { opacity: 0; }
.hoprc-main ul.products { transition: opacity .15s; }
.hoprc-main ul.products.hoprc-none { display: none; }
.hoprc-js:not(.hoprc-taken) .hoprc-empty-server { display: none; }

/* Barre d'outils et choix actifs */
.hoprc-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 42px; margin-bottom: 10px; }
.hoprc-total { color: var(--hoprc-txt); font-size: 15px; }
.hoprc-total strong { color: var(--hoprc-ink); }
.hoprc-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hoprc-txt); }
.hoprc-sort select { min-height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--hoprc-line); border-radius: 8px; background-color: #fff; font-size: 14px; }
.hoprc-open { display: none; }
.hoprc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hoprc-chips:empty { display: none; }
.hoprc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--hoprc-ink); border-radius: 99px; background: #fff; color: var(--hoprc-ink); font-size: 13px; line-height: 1.3; cursor: pointer; }
.hoprc-chip:hover { background: var(--hoprc-ink); color: #fff; }
.hoprc-chip.hoprc-clear { border-color: transparent; text-decoration: underline; padding-left: 4px; }
.hoprc-chip.hoprc-clear:hover { background: none; color: var(--hoprc-acc); }

/* Colonne des filtres */
.hoprc-side { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; overscroll-behavior: contain; padding-right: 4px; font-size: 14px; color: var(--hoprc-txt); }
.hoprc-side-head, .hoprc-side-foot { display: none; }
.hoprc-loading { color: #8a90a6; font-size: 14px; }
.hoprc-facet { border-bottom: 1px solid var(--hoprc-line); padding: 12px 0; }
.hoprc-facet:first-child { padding-top: 0; }
.hoprc-facet summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; color: var(--hoprc-ink); padding: 2px 0; }
.hoprc-facet summary::-webkit-details-marker { display: none; }
.hoprc-facet summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.hoprc-facet[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.hoprc-nsel { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--hoprc-acc); color: #fff; font-size: 12px; font-weight: 700; }
.hoprc-body { padding-top: 10px; }
.hoprc-val { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; line-height: 1.3; }
.hoprc-val input { width: 17px; height: 17px; margin: 0; accent-color: var(--hoprc-acc); flex: none; }
.hoprc-val-name { flex: 1; min-width: 0; }
.hoprc-val:hover .hoprc-val-name { color: var(--hoprc-ink); text-decoration: underline; }
.hoprc-count { color: #8a90a6; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hoprc-sub { padding-left: 24px; }
.hoprc-more { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--hoprc-acc); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.hoprc-find { width: 100%; min-height: 36px; margin-bottom: 8px; padding: 0 10px; border: 1px solid var(--hoprc-line); border-radius: 8px; font-size: 14px; }

/* Couleurs en pastilles */
.hoprc-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.hoprc-sw { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; text-align: center; font-size: 11.5px; line-height: 1.2; }
.hoprc-sw input { position: absolute; opacity: 0; pointer-events: none; }
.hoprc-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 2px #fff; }
.hoprc-sw.is-on .hoprc-dot, .hoprc-sw input:focus-visible + .hoprc-dot { outline: 2px solid var(--hoprc-acc); outline-offset: 2px; }
.hoprc-sw .hoprc-count { font-size: 11px; }
.hoprc-sw-name { color: var(--hoprc-txt); }

/* Prix */
.hoprc-range-track { position: relative; height: 26px; }
.hoprc-range-track input[type=range] { position: absolute; left: 0; right: 0; top: 4px; width: 100%; margin: 0; pointer-events: none; -webkit-appearance: none; appearance: none; background: none; height: 18px; }
.hoprc-range-track::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 3px; border-radius: 3px; background: var(--hoprc-line); }
.hoprc-range-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--hoprc-acc); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--hoprc-acc); cursor: pointer; position: relative; z-index: 2; }
.hoprc-range-track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--hoprc-acc); border: 2px solid #fff; cursor: pointer; }
.hoprc-range-num { display: flex; gap: 10px; margin-top: 8px; }
.hoprc-range-num label { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.hoprc-range-num input { width: 70px; min-height: 34px; padding: 0 6px; border: 1px solid var(--hoprc-line); border-radius: 6px; font-size: 14px; }

/* Cartes rendues par le navigateur */
.hoprc-main .hoprc-from { font-size: .85em; font-weight: 400; }
.hoprc-main figure { position: relative; }

/* Pagination */
.hoprc-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 34px 0 10px; }
.hoprc-pages:empty { display: none; }
.hoprc-pages .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--hoprc-line); border-radius: 8px; background: #fff; color: var(--hoprc-ink); font-size: 14px; cursor: pointer; }
.hoprc-pages .page-numbers.current { background: var(--hoprc-ink); border-color: var(--hoprc-ink); color: #fff; }
.hoprc-pages .dots { border: 0; background: none; cursor: default; display: inline-grid; place-items: center; }

/* ------------------------------------------------ Telephone et tablette : tiroir */

@media (max-width: 999px) {
	.hoprc-layout { display: block; }
	.hoprc-open { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--hoprc-ink); border-radius: 8px; background: #fff; color: var(--hoprc-ink); font-weight: 600; font-size: 14px; cursor: pointer; }
	.hoprc-open::before { content: ''; width: 16px; height: 12px; background: linear-gradient(currentColor, currentColor) 0 0/100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 5px/70% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 10px/40% 2px no-repeat; }
	.hoprc-total { order: 3; width: 100%; font-size: 14px; }
	.hoprc-sort span { display: none; }
	.hoprc-side { position: fixed; z-index: 100000; top: 0; bottom: 0; left: 0; width: min(380px, 92vw); max-height: none; padding: 0; background: #fff; box-shadow: 0 0 40px rgba(0, 0, 0, .25); transform: translateX(-105%); transition: transform .2s; display: flex; flex-direction: column; }
	.hoprc-drawer .hoprc-side { transform: none; }
	.hoprc-drawer body { overflow: hidden; }
	.hoprc-drawer body::after { content: ''; position: fixed; inset: 0; z-index: 99999; background: rgba(28, 36, 91, .35); }
	.hoprc-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--hoprc-line); font-size: 17px; color: var(--hoprc-ink); }
	.hoprc-close { width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--hoprc-ink); cursor: pointer; }
	.hoprc-facets { flex: 1; overflow: auto; padding: 8px 18px; }
	.hoprc-side-foot { display: block; padding: 12px 18px; border-top: 1px solid var(--hoprc-line); }
	.hoprc-apply { width: 100%; min-height: 46px; border: 0; border-radius: 8px; background: var(--hoprc-acc); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
	.hoprc-main ul[data-products] { --shop-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 689px) { .hoprc-main ul[data-products] { --shop-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------ Suggestions de la recherche */

.ct-search-form { position: relative; }
/* Suggestions de Blocksy remplacees par celles de HOP Recherche. */
.ct-search-form .ct-search-results, .ct-search-form [id^="ct-search-results"] { display: none !important; }
.hoprc-drop { position: absolute; z-index: 99999; left: 0; right: 0; top: calc(100% + 6px); max-height: min(70vh, 620px); overflow: auto; padding: 6px; border: 1px solid var(--hoprc-line); border-radius: 12px; background: #fff; box-shadow: 0 14px 40px rgba(28, 36, 91, .18); text-align: left; font-size: 14px; color: var(--hoprc-txt); }
.hoprc-drop a { color: inherit; text-decoration: none; }
.hoprc-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; }
.hoprc-opt:hover, .hoprc-opt.is-active { background: var(--hoprc-soft); }
.hoprc-drop-terms { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--hoprc-line); }
.hoprc-term strong { color: var(--hoprc-ink); }
.hoprc-tag { flex: none; padding: 2px 7px; border-radius: 4px; background: var(--hoprc-soft); color: var(--hoprc-acc); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.hoprc-term:hover .hoprc-tag, .hoprc-term.is-active .hoprc-tag { background: #fff; }
.hoprc-prod img, .hoprc-noimg { flex: none; width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--hoprc-soft); }
.hoprc-prod-txt { display: flex; flex-direction: column; min-width: 0; }
.hoprc-prod-name { color: var(--hoprc-ink); font-weight: 600; line-height: 1.3; }
.hoprc-prod-name mark { background: none; color: var(--hoprc-acc); padding: 0; }
.hoprc-prod-price { font-size: 13px; color: #6b7189; }
.hoprc-all { justify-content: center; margin-top: 4px; font-weight: 700; color: var(--hoprc-acc) !important; }
.hoprc-drop-none, .hoprc-drop-fix { margin: 0; padding: 10px; color: #6b7189; }
.hoprc-drop-fix { padding-bottom: 4px; font-size: 13px; }

/* ------------------------------------------------ Cartes epurees (li.hopcard ; en-tete et grille des listes : body.hopcard-on ; maquette de Cedric du 27/10/2026) */

li.hopcard { --hopcard-bg: #f3f4f6; --hopcard-ink: #1d1f24; --hopcard-mute: #6e7380; --hopcard-line: #e1e3e8; }
.hopcard-on .hero-section { display: none; }

/* En-tete compact */
.hopcard-head { margin: 4px 0 26px; }
.hopcard-crumbs { font-size: 13px; color: #6b7189; margin-bottom: 8px; }
.hopcard-crumbs a { color: inherit; text-decoration: none; }
.hopcard-crumbs a:hover { color: var(--hoprc-acc); text-decoration: underline; }
.hopcard-h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: var(--hoprc-ink); }
.hopcard-desc { max-width: 760px; margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--hoprc-txt); }
.hopcard-desc p { margin: 0 0 .6em; }
.hopcard-on .hoprc-bar { padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--hoprc-line); }

/* Grille : 4 / 3 / 2 / 2 colonnes, 1 sur les tres petits ecrans */
.hopcard-on ul.products { --shop-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .hopcard-on ul.products { gap: 20px; } }
@media (min-width: 992px) { .hopcard-on ul.products { --shop-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1200px) { .hopcard-on ul.products { --shop-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 359px) { .hopcard-on ul.products { --shop-columns: minmax(0, 1fr); } }

/* Carte : fond gris clair, photo dans un cadre blanc, bouton pleine largeur ; dans toute grille (listes, accueil, produits lies) */
ul.products:has(> li.hopcard) { gap: 12px; }
@media (min-width: 600px) { ul.products:has(> li.hopcard) { gap: 20px; } }
@media (min-width: 992px) { ul.products:has(> li.hopcard) { gap: 22px; } }
.products li.hopcard { display: flex; flex-direction: column; position: relative; cursor: pointer; margin: 0; padding: 14px; border-radius: 18px; background: var(--hopcard-bg); color: var(--hopcard-ink); text-align: left; transition: box-shadow .2s; }
.products li.hopcard:hover { box-shadow: 0 8px 24px rgba(20, 24, 40, .08); }
.hopcard-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: #fff; }
.hopcard-media .hopcard-img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 7%; box-sizing: border-box; transition: transform .3s; }
.products li.hopcard:hover .hopcard-img { transform: scale(1.03); }
.hopcard-badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; background: var(--hopcard-bg); color: var(--hopcard-mute); font-size: 12px; font-weight: 600; line-height: 1.4; }
.hopcard-body { display: flex; flex: 1; flex-direction: column; padding-top: 14px; }
.hopcard-kicker { margin: 0 0 8px; overflow: hidden; color: var(--hopcard-mute); font-size: 12.5px; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
li.hopcard .hopcard-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: calc(2 * 1.35em); margin: 0 0 10px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.hopcard-title a { color: var(--hopcard-ink); text-decoration: none; }
.hopcard-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; } /* Toute la carte est cliquable (lien du nom etire). */
.products li.hopcard:hover .hopcard-title a { color: var(--hoprc-acc); }
li.hopcard .hopcard-price { display: flex; flex-direction: column; margin: 0 0 10px; color: var(--hopcard-ink); }
.hopcard-from { color: var(--hopcard-mute); font-size: 12.5px; }
.hopcard-ht { font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.hopcard-ht abbr { margin-left: 3px; color: var(--hopcard-mute); font-size: 13px; font-weight: 500; letter-spacing: .02em; text-decoration: none; }
.hopcard-swatches { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.hopcard-swatches li { margin: 0; padding: 0; line-height: 1; }
.hopcard-dot { display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.hopcard-dot.is-clear { background: repeating-linear-gradient(45deg, #fff 0 3px, #d9dce3 3px 6px); }
.hopcard-dot.is-multi { background: conic-gradient(#d32222, #f4d000, #2e9a4b, #1f5fbf, #7b3fa0, #d32222); }
.hopcard-more { color: var(--hopcard-mute); font-size: 12.5px; font-weight: 600; }
.hopcard-cta { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: auto; padding: 0 12px; border: 1px solid var(--hopcard-line); border-radius: 12px; background: transparent; color: var(--hopcard-ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; }
.hopcard-cta::after { content: '↗'; font-size: 13px; }
.products li.hopcard:hover .hopcard-cta { border-color: var(--hopcard-ink); }
.hopcard-title a:focus-visible { outline: none; }
.products li.hopcard:has(.hopcard-title a:focus-visible) { outline: 2px solid var(--hoprc-acc); outline-offset: 2px; }

@media (max-width: 599px) {
	.hopcard-head { margin-bottom: 18px; }
	.hopcard-desc { font-size: 14px; }
	.products li.hopcard { padding: 8px; border-radius: 14px; }
	.hopcard-media { border-radius: 10px; }
	.hopcard-body { padding-top: 10px; }
	.hopcard-kicker { margin-bottom: 4px; font-size: 11px; }
	li.hopcard .hopcard-title { font-size: 14px; margin-bottom: 6px; }
	.hopcard-ht { font-size: 20px; }
	.hopcard-ht abbr { font-size: 11.5px; }
	.hopcard-from, .hopcard-more { font-size: 11.5px; }
	.hopcard-dot { width: 13px; height: 13px; }
	.hopcard-swatches { gap: 6px; margin-bottom: 10px; }
	.hopcard-cta { min-height: 40px; border-radius: 10px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .hopcard-media .hopcard-img, .products li.hopcard { transition: none; } }
