/* Règles propres au CMS, en plus du CSS du thème (screen.css, copié tel quel). */

/* --------------------------------------------------------------------------
   0. Structure & Conteneurs généraux
   -------------------------------------------------------------------------- */
.wrap,
.cl-wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-gap);
}

.cl-wrap--full {
  max-width: 100%;
  padding: 0;
}

/* Tableaux HTML des articles : défilement horizontal sur petit écran. */
.cl-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}
.cl-table-scroll > table {
  margin: 0;
}

/* Enveloppe neutre de la carte HTML (porte les commentaires de carte de Ghost). */
.cl-html-card {
  min-width: 0;
}
.cl-html-card > .cl-table-scroll {
  margin: 0;
}

/* --------------------------------------------------------------------------
   1. Blocs produit dans les articles du blog (tokens.css)
   -------------------------------------------------------------------------- */
.cl-prod {
  display: flex;
  gap: 1.25em;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2em 1.4em;
  margin: 2em 0;
  background: var(--paper);
  color: var(--body);
  box-shadow: 0 4px 16px -8px rgba(27, 34, 54, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cl-prod:hover {
  border-color: var(--accent-night);
  box-shadow: 0 12px 28px -16px rgba(27, 34, 54, 0.25);
}
.cl-prod-img {
  flex: 0 0 auto;
  width: 120px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--tint);
  padding: 6px;
}
.cl-prod-body {
  flex: 1 1 auto;
  min-width: 0;
}
.cl-prod-body p {
  margin: 0;
}
.cl-prod-brand {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.cl-prod-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 2px !important;
}
.cl-prod-price {
  margin-top: 0.35em !important;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--marine);
}
.cl-prod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em 1.2em;
  align-items: center;
  margin-top: 0.85em !important;
}
.cl-prod-more {
  color: var(--link);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 480px) {
  .cl-prod {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cl-prod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}
.cl-prod-table th,
.cl-prod-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}
.cl-prod-table thead th {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.cl-prod-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   2. Pied de page & Affiliation
   -------------------------------------------------------------------------- */
.cl-ft-affiliate {
  padding-block: 20px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.cl-ft-affiliate p {
  margin: 0;
  max-width: 80ch;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. Sponsorisé
   -------------------------------------------------------------------------- */
.cl-sponsored {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  margin-block: 24px;
  box-shadow: 0 4px 16px -8px rgba(27, 34, 54, 0.05);
}
.cl-sponsored-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marine);
  background: var(--tint);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
}
.cl-sponsored-by {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   4. En-têtes de page (Catalogue & Fiche Produit)
   -------------------------------------------------------------------------- */
.cl-prod-hd {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 34px;
  margin-bottom: 36px;
}
.cl-prod-hd h1,
.cl-archive-hd h1 {
  font-family: var(--font-serif);
  margin: 10px 0 12px;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cl-prod-brand-tag,
.cl-prod-cat {
  font: 600 13px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.cl-prod-brand-tag a,
.cl-prod-cat a {
  color: var(--link);
  text-decoration: none;
}
.cl-prod-brand-tag a:hover,
.cl-prod-cat a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cl-prod-hd .lede,
.cl-prod-hd .cl-art-lead {
  max-width: 65ch;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.5vw, 22px);
  line-height: 1.5;
  color: var(--body);
  margin: 0 0 16px;
}

/* Badges / Chips barre de caractéristiques */
.cl-prod-badges,
.cl-prod-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 18px;
}
.cl-chip {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--body);
  font: 500 15px/1 var(--font-serif);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cl-chip:hover {
  border-color: var(--accent-night);
}
.cl-chip--rating,
.cl-prod-hd .rating {
  background: var(--tint);
  color: var(--marine);
  border-color: transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   5. Fiche Produit : Layout principal & Photo
   -------------------------------------------------------------------------- */
.product-page {
  padding-bottom: 64px;
}
.cl-prod-content,
.cl-prod-main-wrap {
  margin-top: 8px;
}
.product {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 860px) {
  .product {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
  }
}

.product .photo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  box-shadow: 0 4px 20px -10px rgba(27, 34, 54, 0.08);
}
@media (min-width: 860px) {
  .product .photo {
    position: sticky;
    top: 32px;
  }
}
.product .photo img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.product .photo:hover img {
  transform: scale(1.02);
}
.nophoto-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  padding: 40px 16px;
  text-align: center;
}
.nophoto-svg {
  width: 52px;
  height: 52px;
  stroke: var(--muted);
  opacity: 0.5;
}
.note.nophoto {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Fiche Produit : Bloc d'offres marchandes
   -------------------------------------------------------------------------- */
.product-offers {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -10px rgba(27, 34, 54, 0.08);
}
.offers-hd,
.offers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.offers-title {
  font: 600 13px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.offers-badge {
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #166534;
  background: #DCFCE7;
  padding: 4px 10px;
  border-radius: 999px;
}
.offers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offer-item,
.offer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.offer-item:hover,
.offer-row:hover {
  border-color: var(--marine);
  background: var(--paper);
}
.offer-merchant-info,
.offer-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.merchant-name,
.offer-merchant {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.offer-merchant-info .note,
.offer-info .note {
  font-size: 13px;
  color: var(--muted);
}
.offer-action-group,
.offer-pricing {
  display: flex;
  align-items: center;
  gap: 16px;
}
.price,
.offer-price {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--marine);
  letter-spacing: -0.01em;
}
.offer-btn-p,
.offer-cta-wrap {
  margin: 0;
}
.offer-btn,
.product-offers .btn,
.btn.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 16px/1 var(--font-serif);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.offer-btn:hover,
.product-offers .btn:hover,
.btn.cl-btn:hover {
  background: var(--btn-bg-hover);
}
.offer-btn:active,
.product-offers .btn:active,
.btn.cl-btn:active {
  transform: scale(0.97);
}
.affiliate-disclaimer,
.affiliate-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   7. Fiche Produit : Tableau des Caractéristiques (Facts)
   -------------------------------------------------------------------------- */
.product-specs-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px -8px rgba(27, 34, 54, 0.05);
}
.specs-heading,
.specs-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 22px 14px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 16px;
}
.facts tr:nth-child(even) th {
  background: var(--soft);
}
.facts tr:nth-child(even) td {
  background: var(--soft);
}
.facts tr:hover th,
.facts tr:hover td {
  background: var(--tint);
}
.facts th {
  width: 42%;
  text-align: left;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.facts td {
  text-align: left;
  padding: 12px 20px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.facts tr:last-child th,
.facts tr:last-child td {
  border-bottom: none;
}
.facts .plain,
.fits .plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts .plain li + li,
.fits .plain li + li {
  margin-top: 6px;
}
.facts td a,
.fits .plain a {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.facts td a:hover,
.fits .plain a:hover {
  color: var(--marine);
}
.facts .note {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
}
.fits h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 18px 0 8px;
}

/* --------------------------------------------------------------------------
   8. Fiche Produit : Sections & Typographie éditoriale
   -------------------------------------------------------------------------- */
.product-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.product-section h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 24px;
}
.product-prose p {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.75;
  color: var(--body);
  max-width: 740px;
  margin: 0 0 1.3em;
}

/* Tests et notes */
.tests-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.test {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 16px -8px rgba(27, 34, 54, 0.05);
  transition: border-color 0.15s ease;
}
.test:hover {
  border-color: var(--accent-night);
}
.test-top,
.test-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.test h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.test-year,
.test h3 .note {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.test-verdict-tag,
.verdict-tag {
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--marine);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.test .overall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  background: var(--soft);
  border-radius: 6px;
}
.test .score {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--marine);
}
.test .verdict {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.test meter {
  width: 110px;
  height: 12px;
  border-radius: 999px;
  vertical-align: middle;
}
.test-report-link a,
.test a {
  color: var(--link);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.test-note-text,
.test .note {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* Dans nos articles */
.cited-in-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.cited-in-grid li {
  list-style: none;
}
.cited-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px -8px rgba(27, 34, 54, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.cited-card:hover {
  border-color: var(--accent-night);
  box-shadow: 0 12px 30px -15px rgba(27, 34, 54, 0.25);
  transform: translateY(-2px);
}
.cited-card-icon,
.cited-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tint);
  color: var(--marine);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cited-card-icon svg,
.cited-icon svg {
  width: 18px;
  height: auto;
}
.cited-card-body,
.cited-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cited-card-tag,
.cited-tag {
  font: 600 11.5px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cited-card-title,
.cited-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.cited-card-arrow,
.cited-arrow {
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}
.cited-card:hover .cited-card-arrow,
.cited-card:hover .cited-arrow {
  transform: translateX(4px);
  color: var(--marine);
}

/* --------------------------------------------------------------------------
   9. Catalogue : Grille de Produits & Cartes (alignées sur le blog)
   -------------------------------------------------------------------------- */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.catalogue-list .cl-archive-meta {
  margin: 0 0 24px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--accent-night);
  box-shadow: 0 18px 40px -26px rgba(27, 34, 54, 0.35);
  transform: translateY(-2px);
}
.card a.cover {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  width: 100%;
  padding: 16px;
  color: var(--marine);
}
.card .thumb-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.card .body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.card .brand-name {
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.card .summary {
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: var(--body);
  margin: 2px 0 6px;
  line-height: 1.45;
}
.card .price {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--marine);
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-block: 4px;
}
.badge {
  font: 600 12px/1.2 var(--font-sans);
  background: var(--tint);
  color: var(--marine);
  border-radius: 999px;
  padding: 3px 10px;
}

.empty {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 24px 0;
}
.empty a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pager {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 44px;
}
.pager a,
.pager span {
  font: 500 16px var(--font-serif);
  color: var(--ink);
  text-decoration: none;
}
.pager a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   10. Filtres & Formulaires du Catalogue
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-block: 24px 28px;
  box-shadow: 0 12px 32px -20px rgba(27, 34, 54, 0.25);
}
.fl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Barre de recherche : champ large + bouton intégré */
.fl-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fl-search:focus-within {
  border-color: var(--marine);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--marine) 18%, transparent);
}
.fl-icon {
  flex: none;
  color: var(--muted);
}
.filters .fl-search input[type="search"] {
  flex: 1;
  min-width: 0;
  width: auto;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 10px 4px;
  font: 500 16px var(--font-sans);
  color: var(--ink);
}
.filters .fl-search input[type="search"]:focus-visible {
  outline: none;
}
.filters .fl-search input::placeholder {
  color: var(--muted);
}

/* Pastilles : catégories (radios) et options (cases) sans JS */
.fl-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.fl-pill {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.fl-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.fl-pill > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font: 500 14px var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fl-pill:hover > span {
  border-color: var(--marine);
}
.fl-pill input:checked + span {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}
.fl-pill--check input:checked + span::before {
  content: "✓";
  margin-right: 6px;
  font-weight: 700;
}
.fl-pill input:focus-visible + span {
  outline: 2px solid var(--marine);
  outline-offset: 2px;
}

/* Champs */
.fl-row,
.fl-grid,
.filters-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}
.field > span:first-child {
  font: 600 12px var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters input[type="number"],
.filters select {
  width: 100%;
  min-height: 44px;
  font: 500 15px var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.filters input[type="number"]:hover,
.filters select:hover {
  border-color: var(--marine);
}
.filters input:focus-visible,
.filters select:focus-visible {
  outline: 2px solid var(--marine);
  outline-offset: 1px;
}
.fl-suffix {
  position: relative;
  display: block;
}
.fl-suffix input {
  padding-right: 52px;
}
.fl-suffix::after {
  content: attr(data-suffix);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font: 500 13px var(--font-sans);
  color: var(--muted);
  pointer-events: none;
}

/* Panneau « Plus de filtres » */
.fl-more {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.fl-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font: 600 14px var(--font-sans);
  color: var(--ink);
}
.fl-more > summary::-webkit-details-marker {
  display: none;
}
.fl-more > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.fl-more[open] > summary::after {
  transform: rotate(-135deg);
}
.fl-more > summary:focus-visible {
  outline: 2px solid var(--marine);
  outline-offset: 2px;
  border-radius: 6px;
}
.fl-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 12px/1.4 var(--font-sans);
  text-align: center;
}
.fl-more-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 10px;
}
.fl-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fl-toggles--full {
  grid-column: 1 / -1;
}
.filters-group {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.filters-group legend {
  font: 600 12px var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-inline: 6px;
  color: var(--ink);
}

/* Actions */
.fl-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.filters button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  border-radius: 999px;
  font: 600 15px/1 var(--font-sans);
  transition: background 0.15s ease, transform 0.12s ease;
}
.filters .fl-search button[type="submit"] {
  flex: none;
}
.filters button[type="submit"]:hover {
  background: var(--btn-bg-hover);
}
.filters button[type="submit"]:active {
  transform: scale(0.97);
}
.filters button:focus-visible {
  outline: 2px solid var(--marine);
  outline-offset: 2px;
}
.fl-reset {
  font: 500 14px var(--font-sans);
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 560px) {
  .filters {
    padding: 14px;
    border-radius: 14px;
  }
  .fl-search {
    padding-left: 14px;
  }
  .filters .fl-search button[type="submit"] {
    padding: 0 16px;
  }
  .fl-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -14px;
    padding-inline: 14px;
  }
  .fl-pill {
    flex: none;
  }
  .fl-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .filters *,
  .filters *::before,
  .filters *::after {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   11. Mode Sombre : Ajustements spécifiques
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  .product .photo img,
  .card .thumb img,
  .cl-prod-img {
    filter: brightness(0.92);
  }
  .offers-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #86EFAC;
  }
}
