/* ---------- STRUCTURE & SYSTÈME VISUEL ---------- */
.filtrage-section {
  background: linear-gradient(145deg, rgba(244, 246, 250, 0.9), rgba(232, 236, 244, 0.85));
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.site-main {
  padding-top: clamp(1.25rem, 2vw, 2.25rem);
}

.filtrage-layout{
  max-width: 1220px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  color:#333;
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-sm, 0 20px 45px rgba(31, 41, 55, 0.08));
  display:flex;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  position:relative;
  overflow:visible;
  padding-right: clamp(1rem, 6vw, 3rem);
}

.scent-search-container{
  display:flex;
  flex-direction:column;
  gap: clamp(1.25rem, 3vw, 2.2rem);
  flex:1 1 0;
  min-width:0;
}
.page-header {
  text-align: left;
  display: grid;
  gap: 0.35rem;
}

.page-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0;
}

.page-title {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #1f2937;
}

.page-subtitle {
  margin: 0;
  color: #4b5563;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  max-width: 52ch;
}

.parfum-toolbar-row{
  position:sticky;
  top:calc(var(--site-header-height, 72px) + 0.5rem);
  z-index:6;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:0.85rem 1rem;
  align-items:end;
  width:min(100%, 900px);
}

.parfum-toolbar{
  background:rgba(255,255,255,0.92);
  padding:1rem clamp(1rem, 3vw, 1.5rem);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:0.85rem 1rem;
  align-items:end;
  border-radius:18px;
  box-shadow:0 14px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

.parfum-toolbar__fields{
  display:grid;
  grid-template-columns:1fr;
  gap:0.5rem;
}

.parfum-toolbar__name{
  min-width:260px;
  width:100%;
}

.parfum-toolbar__name .form-input{
  width:100%;
}

.parfum-toolbar__sort{
  min-width:200px;
  display:grid;
  gap:0.35rem;
}

.parfum-toolbar__sort .form-select{
  width:100%;
}

@media (max-width: 900px){
  .parfum-toolbar-row{
    grid-template-columns:1fr;
    width:100%;
  }
  .parfum-toolbar{
    grid-template-columns:1fr;
  }
  .parfum-toolbar__sort{
    width:100%;
  }
}

.toolbar-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.results-count {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}

.toolbar-actions{
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
  align-items:flex-end;
}

.section-heading{
  font-weight:600;
  color:#263048;
  margin:0 0 0.5rem;
}

  .filter-insights{
    margin:12px 0 8px;
  padding:12px 16px;
  border-radius:999px;
  background:rgba(41,96,172,0.08);
  color:#1b2a4b;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.filter-insights__pill{
  background:#fff;
  border-radius:999px;
  padding:6px 14px;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.filter-insights__divider{
  color:#6b7791;
}

.filters-meta {
  display: grid;
  gap: 0.65rem;
}

.filters-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: #1d4ed8;
  font-size: 0.95rem;
  padding: 0.4rem 0.9rem;
  border-radius: 14px;
  background: rgba(191, 219, 254, 0.6);
  border: 1px solid rgba(96, 165, 250, 0.6);
}

.saved-search-controls__action{
  background:#2960ac;
  color:#fff;
  border:none;
  border-radius:8px;
  padding:10px 16px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  gap:0.35rem;
}

.saved-search-controls__action:hover{
  background:#1f4d8a;
}

.parfum-toolbar__share-status{
  margin:0;
}

.parfum-toolbar__share-status[data-tone="success"]{
  color:#166534;
}

.parfum-toolbar__share-status[data-tone="error"]{
  color:#b91c1c;
}

.quick-filters{
  margin-top:12px;
  display:grid;
  gap:8px;
}

@media(min-width:720px){
  .quick-filters{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
}

.quick-filter-card{
  background:#fff;
  border:1px solid #e4e8f3;
  border-radius:8px;
  padding:4px;
  box-shadow:none;
  width:100%;
  max-width:100%;
  margin:0;
}

.quick-filter-card__header{margin-bottom:6px;}
.quick-filter-card__hint{margin:0;font-size:0.9rem;color:#5d6473;}

.filter-chip-group{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.filter-chip{
  border:1px solid #d3dbea;
  border-radius:999px;
  padding:5px 6px;
  background:#fff;
  color:#1b2a4b;
  font-size:0.8rem;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  transition:background .2s,border-color .2s,transform .2s,color .2s;
  max-width:100%;
  box-sizing:border-box;
}

.filter-chip-group[data-chip-group="filter-gender"],
.filter-chip-group[data-chip-group="filter-season"]{
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  width:100%;
}
.filter-chip-group[data-chip-group="filter-gender"] .filter-chip,
.filter-chip-group[data-chip-group="filter-season"] .filter-chip{
  width:100%;
  max-width:100%;
  align-self:stretch;
  justify-content:flex-start;
  text-align:left;
  border-radius:12px;
  box-sizing:border-box;
  margin:0;
}
.range-slider{
  margin:6px 0 0;
  width:100%;
  max-width:100%;
  padding-right:0;
  box-sizing:border-box;
  margin-left:0;
}

.filter-chip:hover{transform:translateY(-1px);border-color:#a4b4d3;}
.filter-chip--active{background:#2960ac;color:#fff;border-color:#2960ac;box-shadow:0 6px 16px rgba(41,96,172,0.25);}

.form-field--inline{
  flex:1 1 260px;
  margin:0;
}

#filter-parfum{max-width:100%;}

.reset-btn{padding:10px 18px;font-size:15px;font-weight:600;color:#fff;background:#6c757d;border:none;border-radius:12px;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,0.08);}
.reset-btn:hover{background:#565e64;}
.filters-btn{padding:12px 18px;font-size:15px;font-weight:700;color:#fff;background:#2960ac;border:none;border-radius:12px;cursor:pointer;box-shadow:0 12px 24px rgba(41,96,172,0.2);} 
.filters-btn:hover{background:#1f4d8a;}
.filters-btn--ghost{background:transparent;color:#e2e8f0;border:1px solid rgba(226,232,240,0.45);box-shadow:none;}
.filters-btn--ghost:hover{background:rgba(226,232,240,0.12);} 
.filters-drawer {
  --drawer-tab-width: 72px;
  flex: 0 0 280px;
  max-width: 300px;
  min-width: 220px;
  background: radial-gradient(140% 120% at 20% 20%, rgba(41, 96, 172, 0.16), rgba(15, 23, 42, 0.95));
  color: #e5e7eb;
  border-radius: 18px;
  overflow: visible;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.28);
  position: fixed;
  right: 0;
  max-height: calc(100vh - var(--site-header-height, 72px) - 24px);
  margin-left: auto;
  transition: width 0.3s ease, max-width 0.3s ease, box-shadow 0.25s ease, transform 0.35s ease, border-color 0.25s ease, top 0.35s ease;
  will-change: transform, top;
  z-index: 60;
  backdrop-filter: blur(6px);
}

.filters-drawer:not(.filters-drawer--collapsed) {
  top: calc(var(--site-header-height, 72px) + 12px);
  transform: translateX(var(--drawer-shift, 0px));
}

.filters-drawer--dragging {
  transition: none;
}

.filters-drawer--collapsed {
  --drawer-shift: calc(100% - var(--drawer-tab-width));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  border-color: transparent;
  top: 50%;
  transform: translateY(-50%) translateX(var(--drawer-shift, 0px));
}

.filters-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.filters-drawer__titles {
  display: grid;
  gap: 0.15rem;
}

.filters-drawer__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.7);
}

.filters-drawer:not(.filters-drawer--collapsed) .filters-drawer__eyebrow{
  display:none;
}

.filters-drawer__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2e8f0;
  min-height: 1em;
}

.filters-handle {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 82px;
  border: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 240, 0.85));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
  border-radius: 14px 0 0 14px;
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  padding: 0;
}

.filters-handle::after {
  content: '';
  display: block;
  width: 3px;
  height: 34px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.45);
}

.filters-handle:active {
  cursor: grabbing;
}

.filters-panel {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease, background 0.35s ease, transform 0.35s ease;
  padding: 0;
  background: #fff;
  border-radius: 0 0 20px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.filters-panel--open,
.filters-panel.open {
  max-height: calc(90vh - 120px);
  overflow: hidden;
  opacity: 1;
  padding: 0.45rem 0.55rem 0.75rem;
}

.filters-drawer--collapsed .filters-panel{
  pointer-events:none;
}

.filters-drawer--collapsed .filters-drawer__header {
  padding: 0.75rem 0.95rem 0.75rem 1.15rem;
}

.filters-drawer--collapsed .filters-drawer__titles {
  gap: 0.1rem;
}

.filters-drawer--collapsed .filters-drawer__title {
  font-size: 0.95rem;
}

.filters-panel__body {
  padding: 0.25rem 0.4rem 0.45rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(90vh - 160px);
  display: grid;
  gap: 0.3rem;
  background: #fff;
  border-radius: 0 0 20px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  border: none;
  scrollbar-gutter: stable;
}
.filters-panel__body *{
  box-sizing:border-box;
}

@media (max-width: 1024px) {
  .filtrage-layout {
    flex-direction: column;
    padding-right: clamp(1rem, 4vw, 2rem);
  }
}
.filter-group{margin-top:16px;display:grid;gap:12px;}
.selection-panel{margin-top:32px;}
.selection-panel--standalone{
  background:#f8f9fd;
  border:1px solid #dfe5f4;
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 24px rgba(27,42,75,0.08);
}
.selection-panel__header{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.selection-panel__hint{
  margin:0;
  color:#4b5563;
  font-size:0.95rem;
}
.selection-panel__dropzone{width:100%;}
.scent-search-inline{
  display:grid;
  gap:0.75rem;
  margin-top:0;
  margin-bottom:0;
}
.scent-panel{
  background:#fff;
  border:1px solid #e4e8f3;
  border-radius:16px;
  padding:14px;
  box-shadow:0 8px 20px rgba(27,42,75,0.06);
  margin-bottom:16px;
  position:relative;
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease,background .2s ease;
}
.scent-panel__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.scent-panel__title{
  position:relative;
  display:flex;
  align-items:center;
  gap:0.6rem;
  flex-wrap:wrap;
}
.scent-panel__eyebrow{
  margin:0;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:0.8rem;
  color:#6b7280;
}
.scent-panel__toggle{
  border:1px solid #d1d5db;
  background:#f8fafc;
  color:#1f2937;
  border-radius:10px;
  padding:8px 12px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.scent-panel__toggle:hover{
  background:#eef2ff;
  border-color:#c7d2fe;
  box-shadow:0 6px 14px rgba(59,130,246,0.14);
}
.scent-panel__content{
  overflow:hidden;
  transition:max-height .45s cubic-bezier(0.25,0.8,0.4,1),opacity .35s ease,transform .35s ease;
  max-height:none;
  opacity:1;
  transform:translateY(0);
  transform-origin:top;
}
.scent-panel__content.is-animating{
  will-change:max-height,opacity,transform;
}
.scent-panel.is-collapsed .scent-panel__content{
  max-height:0;
  opacity:0;
  padding-top:0;
  pointer-events:none;
  transform:translateY(-8px);
}
.scent-panel__collapsed{
  display:none;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  padding:6px 4px 10px;
}
.scent-panel.is-collapsed .scent-panel__collapsed{
  display:flex;
}
.scent-panel__collapsed-icon{
  width:36px;
  height:36px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.scent-panel__collapsed-icon,
.scent-panel__collapsed-count{
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease,color .2s ease;
}
.scent-panel__collapsed-icon img{
  width:28px;
  height:28px;
  object-fit:cover;
}
.scent-panel__collapsed-count{
  padding:6px 10px;
  border-radius:12px;
  background:#eef2ff;
  color:#1f2937;
  font-weight:600;
  border:1px solid #c7d2fe;
}
.scent-panel__footer{
  display:flex;
  justify-content:center;
  margin-top:10px;
}
.scent-panel__collapse{
  border:none;
  background:#f1f5f9;
  color:#111827;
  padding:8px 12px;
  border-radius:12px;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(15,23,42,0.12);
  transition:transform .2s ease,box-shadow .2s ease;
}
.scent-panel__collapse-icon{
  font-size:1.35rem;
  line-height:1;
  display:inline-block;
  transform:translateY(-1px);
}
.scent-panel__collapse:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(59,130,246,0.14);
}
.scent-panel.is-collapsed{
  cursor:pointer;
  box-shadow:0 8px 20px rgba(59,130,246,0.12);
  border-color:#dbeafe;
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
  overflow:hidden;
}
.scent-panel.is-collapsed::after{
  content:"+";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2.6rem;
  font-weight:800;
  color:#1f4d8a;
  opacity:0;
  transform:scale(0.9);
  transition:opacity .2s ease,transform .2s ease;
  pointer-events:none;
}
.scent-panel.is-collapsed:hover{
  box-shadow:0 12px 26px rgba(59,130,246,0.18);
  background:linear-gradient(180deg,#e9f1ff 0%,#ffffff 100%);
  border-color:#2960ac;
  transform:translateY(-1px);
}
.scent-panel.is-collapsed:hover::after{
  opacity:1;
  transform:scale(1);
}
.scent-panel.is-collapsed .section-heading{
  transition:color .2s ease;
}
.scent-panel.is-collapsed:hover .section-heading{
  color:#1f4d8a;
}
.scent-panel.is-collapsed:hover .scent-panel__collapsed-icon{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(41,96,172,0.12);
  border-color:#c7d2fe;
}
.scent-panel.is-collapsed:hover .scent-panel__collapsed-count{
  background:#dbeafe;
  border-color:#c7d2fe;
  color:#1f2937;
}
.results-panel{margin-top:32px;}
.perfume-card__compare{display:flex;justify-content:flex-end;margin-bottom:8px;}
.perfume-card__compare-label{display:inline-flex;align-items:center;gap:6px;font-size:0.85rem;font-weight:600;color:#1b2a4b;cursor:pointer;}
.perfume-card__compare-input{width:16px;height:16px;cursor:pointer;}
.filters-grid{display:flex;gap:20px;flex-wrap:wrap;}
.filter-field{min-width:100%;width:100%;position:relative;}
.filter-field--brand{min-width:100%;}
.filter-field--range{min-width:100%;}
.filter-badge{display:inline-block;padding:8px 20px;background:#e3ecfa;border-radius:32px;font-size:14px;font-weight:600;color:#2960ac;cursor:pointer;border:1.5px solid #bdd2f6;transition:background .2s,color .2s,border .2s;user-select:none;}
.filter-badge.active{background:#2960ac;color:#fff;border-color:#2960ac;}
#active-filters{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0;}
#active-filters .filter-badge::after{content:'\2715';margin-left:6px;font-weight:600;}
.scent-grid{display:flex;flex-wrap:wrap;gap:15px;}
.scent-results__empty-note{margin:4px 0 0;font-size:13px;color:#5d6473;}
.scent-results__more-note{flex-basis:100%;margin:6px 0 0;font-size:13px;color:#5d6473;}
.scent-item{width:110px;height:120px;padding:10px;text-align:center;background:#fff;border:1px solid #e0e0e0;border-radius:12px;cursor:grab;opacity:0;transform:translateY(10px);transition:transform .3s,box-shadow .3s,opacity .3s;display:flex;flex-direction:column;justify-content:center;align-items:center;}
.scent-item__link{display:flex;flex-direction:column;align-items:center;gap:6px;color:inherit;text-decoration:none;}
.scent-item.show{opacity:1;transform:translateY(0);}
.scent-item:hover{transform:translateY(-5px);box-shadow:0 4px 15px rgba(0,0,0,.1);}
.scent-item img{width:64px;height:64px;object-fit:contain;margin-bottom:7px;}
.compare-selection{border:1px solid #dfe5f4;border-radius:18px;padding:16px;background:#fff;box-shadow:0 12px 32px rgba(27,42,75,0.08);margin-bottom:24px;}
.compare-selection__header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.compare-selection__help{margin:0;font-size:0.95rem;color:#4b5573;}
.compare-selection__reset{background:transparent;border:none;color:#2960ac;font-weight:600;cursor:pointer;padding:4px 8px;border-radius:8px;}
.compare-selection__reset:hover{background:rgba(41,96,172,0.08);}
.compare-selection__list{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 8px;}
.compare-selection__chip{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;background:#f1f5ff;border-radius:999px;font-weight:600;color:#1b2a4b;}
.compare-selection__chip button{background:transparent;border:none;color:#6b7791;cursor:pointer;font-size:0.85rem;line-height:1;}
.compare-selection__chip button:hover{color:#b42318;}
.compare-selection__message{margin:0;font-size:0.9rem;color:#6b7791;min-height:1.2em;}
.compare-selection__message[data-tone="warning"]{color:#b45309;}
.compare-selection__action{margin-top:12px;background:#2960ac;color:#fff;border:none;border-radius:12px;padding:10px 20px;font-weight:600;cursor:pointer;transition:background .2s ease;}
.compare-selection__action:hover:not([disabled]){background:#1f4d8a;}
.compare-selection__action[disabled]{opacity:0.5;cursor:not-allowed;}
.compare-results{margin-top:24px;padding-top:16px;border-top:1px solid #e4e8f3;display:none;}
.compare-results--visible{display:block;}
.compare-results__title{margin:0 0 16px;font-size:1.1rem;color:#1b2a4b;font-weight:600;}
.compare-grid{display:grid;gap:16px;}
@media(min-width:640px){.compare-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}}
.compare-card{background:#fff;border:1px solid #e4e8f3;border-radius:18px;padding:16px;box-shadow:0 10px 24px rgba(27,42,75,0.08);display:flex;flex-direction:column;gap:12px;}
.compare-card__header{display:flex;align-items:center;gap:12px;}
.compare-card__image{width:48px;height:48px;object-fit:contain;border-radius:12px;background:#f6f7fb;padding:4px;}
.compare-card__name{margin:0;font-weight:600;color:#1b2a4b;}
.compare-card__brand{margin:0;font-size:0.9rem;color:#6b7791;}
.compare-card__metrics{display:flex;gap:12px;flex-wrap:wrap;font-weight:600;color:#1b2a4b;}
.compare-card__metric{flex:1 1 120px;background:#f7f8fc;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:4px;}
.compare-card__metric-label{font-size:0.75rem;font-weight:600;color:#6b7791;text-transform:uppercase;letter-spacing:0.08em;}
.compare-card__metric-value{font-size:1rem;}
.compare-card__accords{display:flex;flex-wrap:wrap;gap:6px;}
.compare-card__accord{display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:12px;background:#f1f5ff;font-size:0.85rem;color:#1b2a4b;}
.compare-card__accord-dot{width:10px;height:10px;border-radius:999px;display:inline-block;}
.scent-item span{font-size:14px;font-weight:600;text-align:center;line-height:1.2;}
#scent-bac{margin-top:12px;padding:20px;background:rgba(255,255,255,.85);border:2px dashed #ccc;border-radius:24px 24px 12px 12px;box-shadow:inset 0 4px 6px rgba(0,0,0,.05),0 6px 20px rgba(0,0,0,.06);min-height:100px;display:flex;flex-wrap:wrap;gap:16px;justify-content:center;position:relative;transition:background .6s,box-shadow .6s,border-color .6s;}
#scent-bac.highlighted{background:linear-gradient(to bottom right,#e0f7fa,#fff);box-shadow:0 0 12px rgba(0,123,255,.4);border-color:#4fc3f7;}
#scent-bac.reset{background:rgba(255,255,255,.88);box-shadow:none;border-color:#ccc;}
#scent-bac.dynamic-color{background:linear-gradient(135deg,var(--main-rgba),#fff);box-shadow:0 0 50px 20px var(--main-rgba);border-color:var(--main-rgb);transition:background .6s,box-shadow .6s,border-color .6s;}
.bac-item{width:64px;height:64px;position:relative;border-radius:50%;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.1);}
.bac-item img{width:100%;height:100%;object-fit:cover;}
.bac-item::after{content:'✕';position:absolute;top:-6px;right:-6px;background:#e74c3c;color:#fff;font-size:12px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 0 4px rgba(0,0,0,.3);cursor:pointer;}
.filters-grid{margin:0;}
.filters-grid select,
.filters-grid input{
  padding:5px 7px;
  font-size:12px;
  min-width:0;
  width:100%;
  border:1px solid #ccc;
  border-radius:5px;
  flex:1;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.range-slider{margin-top:6px;}
#year-min-label,#year-max-label{font-weight:500;color:#2960ac;}
.noUi-target{
  background:#e6e9f2;
  border-radius:999px;
  border:none;
  box-shadow:inset 0 1px 2px rgba(0,0,0,0.06);
  height:6px;
}
.noUi-connect{
  background:linear-gradient(90deg,#3a5fd4,#2847a3);
  box-shadow:inset 0 1px 1px rgba(255,255,255,0.3);
}
.noUi-handle{
  border:1.25px solid #2847a3;
  background:#fff;
  border-radius:50%;
  width:11px;
  height:11px;
  box-shadow:0 2px 6px rgba(0,0,0,0.16),0 0 0 2px rgba(40,71,163,0.16);
}
.noUi-horizontal .noUi-handle{top:-3px;}
#filtered-parfums{margin-top:20px;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.parfum-card--listing{max-width:280px;margin:auto;opacity:0;transform:translateY(10px);transition:transform .3s ease,opacity .3s ease;padding:clamp(0.85rem,2vw,1.1rem);}
.parfum-card--listing.show{opacity:1;transform:translateY(0);animation:float-in .4s ease-out;}
.parfum-card--listing .perfume-card__logo{top:14px;right:14px;width:40px;height:40px;}
.parfum-card--listing .perfume-card__notes-slot,.parfum-card--listing .perfume-card__notes-slot--flip{min-height:68px;}
.parfum-card--listing .perfume-card__notes{gap:0.55rem;}
.parfum-card--listing .perfume-card__note-link{width:2.2rem;height:2.2rem;}
.parfum-card--listing .perfume-card__note-icon{width:1.6rem;height:1.6rem;}
.fade-out{opacity:0!important;transform:translateY(10px);transition:opacity .3s,transform .3s;}
@media(max-width:600px){.parfum-card--listing{min-width:140px;max-width:94vw;padding:.8rem 10px;min-height:270px}.parfum-card--listing .perfume-card__image{width:95px;height:115px}.parfum-card--listing .perfume-card__logo{width:28px;height:28px;top:10px;right:8px}.parfum-card--listing .perfume-card__notes-slot,.parfum-card--listing .perfume-card__notes-slot--flip{min-height:56px}.parfum-card--listing .perfume-card__note-link{width:2.05rem;height:2.05rem}.parfum-card--listing .perfume-card__note-icon{width:1.45rem;height:1.45rem}.scent-item{width:80px}.bac-item{width:48px;height:48px}#scent-bac{gap:8px}}
@keyframes float-in{0%{opacity:0;transform:translateY(20px) scale(.96)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pulse{0%{transform:scale(.95);opacity:.5}70%{transform:scale(1.05);opacity:1}100%{transform:scale(1)}}
@keyframes highlight{0%{box-shadow:0 0 0 0 rgba(0,123,255,.2)}100%{box-shadow:0 0 12px 6px rgba(0,123,255,0)}}
#scent-bac.highlighted{animation:highlight .6s ease-out}
.loading-spinner{display:none;width:40px;height:40px;border:4px solid #ccc;border-top-color:#2960ac;border-radius:50%;margin:20px auto;animation:spin .8s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}

/* --- Suggestions marque (dropdown) --- */
#brand-suggestions{
  position:absolute;
  left:auto;
  right:calc(100% + 12px);
  top:0;
  width:220px;
  z-index:4000;
  display:none;
  transform:none;
  opacity:1;
}

#brand-suggestions.is-open{
  display:block;
  opacity:1;
  transform:none;
}

.brand-suggestions__list{
  margin:0;
  padding:4px 0;
  list-style:none;
  background:#fff;
  border:1px solid #e6e9f2;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(20,40,80,.12);
  max-height:280px;
  overflow:auto;
}

.brand-suggestions__item{
  padding:10px 16px;
  font-size:15px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  color:#1b2a4b;
}

.brand-suggestions__item:hover,
.brand-suggestions__item--active{
  background:rgba(41,96,172,.08);
  color:#1b2a4b;
}

.brand-suggestions__empty{
  margin:0;
  padding:12px 16px;
  font-size:14px;
  color:#5d6473;
  background:#fff;
  border:1px solid #e6e9f2;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(20,40,80,.08);
}

#filter-brand{
  color:#0f172a;
  background:#fff;
}
#filter-brand::placeholder{
  color:#6b7280;
}

@media (max-width: 1024px){
  #brand-suggestions{
    left:0;
    right:0;
    top:calc(100% + 4px);
    width:auto;
    transform:none;
  }
}
