/* Castra Time V2 — catalogue « Nos montres » (référence : design R2 approuvé).
   S'appuie sur home.css (jetons de couleur, en-tête, pied de page, navigation mobile) sans le modifier.
   Mobile d'abord ; tablette ≥ 768px (panneaux mobiles, 3 colonnes) ; ordinateur ≥ 1024px (barre d'outils, 5 colonnes). */

body.ctv2-catalogue { --cat-sticky: 68px; --muted-2: #6B7480; --line-2: #D9DCE0; --ivory-2: #FBF8F3; }

/* En-tête du catalogue */
.ctv2c-band { background: var(--ivory-2); border-bottom: 1px solid var(--line); }
.ctv2c-band__inner { padding-top: 18px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.ctv2c-crumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ctv2c-crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin: -13px 0; }
.ctv2c-crumbs a:hover { color: var(--gold-ink); }
.ctv2c-crumbs [aria-current] { color: var(--ink); }
.ctv2c-crumbs .ctv2-ico { color: #8A939D; }
.ctv2c-title { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--ink); margin: 0; }
.ctv2c-sub { font-size: 14px; color: var(--muted); margin: -4px 0 0 !important; }
.ctv2c-msearch label, .ctv2c-search label { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 24px; background: #fff; color: var(--muted); }
.ctv2c-msearch label:focus-within, .ctv2c-search label:focus-within { border-color: var(--gold); }
.ctv2c-msearch input, .ctv2c-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 16px var(--sans); color: var(--ink); padding: 0; -webkit-appearance: none; }
.ctv2c-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 2px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 0; }
.ctv2c-tabs::-webkit-scrollbar { display: none; }
.ctv2c-tabs a { flex-shrink: 0; min-height: 44px; padding: 0 18px; display: flex; align-items: center; border-radius: 22px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); }
.ctv2c-tabs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

/* Barre d'outils ordinateur (masquée sur mobile et tablette) */
.ctv2c-toolbar { display: none; }

/* Barre mobile Filtres / Trier */
.ctv2c-mbar { position: sticky; top: var(--cat-sticky); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ctv2c-mbtn { min-height: 48px; border: 1px solid var(--line-2) !important; border-radius: 8px; background: #fff !important; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--sans) !important; color: var(--ink) !important; }
.ctv2c-mbtn.is-active { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }
.ctv2c-mbtn.is-active .ctv2-ico { color: var(--gold); }

/* Pastilles, badges, boutons */
.ctv2c-badge { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.ctv2c-badge--gold { background: var(--gold); color: var(--ink); font-size: 12px; }
.ctv2c-gold { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--gold) !important; color: var(--ink) !important; font: 600 14px var(--sans); cursor: pointer; }
.ctv2c-gold:hover { background: var(--gold-hi) !important; }
.ctv2c-gold--lg { min-height: 52px; font-size: 16px; border-radius: 8px; }
.ctv2c-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 30px; border: 1.5px solid var(--ink); border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--ink) !important; background: #fff; }
.ctv2c-outline:hover { background: var(--ivory-2); }
.ctv2c-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--gold); border-radius: 6px; color: #fff !important; font-size: 15px; font-weight: 600; }
.ctv2c-linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 500; color: var(--muted) !important; text-decoration: underline !important; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.ctv2c-linkbtn:hover { color: var(--ink) !important; }

/* Résultats : nombre et filtres actifs */
.ctv2c-results { padding-top: 14px; }
.ctv2c-status { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ctv2c-count { font-size: 13px; color: var(--muted); margin: 0; }
.ctv2c-count strong { color: var(--ink); font-weight: 700; }
.ctv2c-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ctv2c-chip { min-height: 40px; padding: 0 6px 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; background: #FBF5EC; font-size: 14px; font-weight: 500; color: var(--ink) !important; }
.ctv2c-chip .ctv2-ico { width: 28px; height: 28px; padding: 7px; box-sizing: border-box; flex-shrink: 0; }
.ctv2c-chip:hover { background: #F5E9D6; }
.ctv2c-results.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s; }

/* Grille : 2 / 2 / 5 colonnes ; sous-grille pour aligner image, nom, prix et bouton */
.ctv2c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 28px; }
.ctv2c-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 8px; min-width: 0; }
@supports not (grid-template-rows: subgrid) { .ctv2c-card { display: flex; flex-direction: column; gap: 8px; } .ctv2c-btn-view { margin-top: auto; } }
.ctv2c-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--tile); border-radius: 8px; overflow: hidden; }
.ctv2c-card__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; padding: 8%; transition: transform .35s ease; }
.ctv2c-card__img--norm { padding: 3%; }
.ctv2c-card:hover .ctv2c-card__img { transform: scale(1.04); }
.ctv2c-card__title { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); align-self: start; }
.ctv2c-card__title a { display: block; min-height: 44px; color: var(--ink); }
.ctv2c-card__title a:hover { color: var(--gold-ink); }
.ctv2c-card__name { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ctv2c-card__meta { display: flex; flex-direction: column; gap: 4px; align-self: start; }
.ctv2c-card__rating { font-size: 12px; color: var(--muted); }
.ctv2c-card__stock { font-size: 12px; font-weight: 600; color: var(--muted); }
/* Prix mobile (R2) : prix actuel dominant, ancien prix plus petit en dessous */
.ctv2c-card__price { margin: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ctv2c-card__price .ctv2-price__now { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.ctv2c-card__price .ctv2-price__was { font-size: 12px; font-weight: 400; color: var(--muted-2); white-space: nowrap; text-decoration-thickness: 1px; }
.ctv2c-card__price .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctv2c-btn-view { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--red); border-radius: 6px; background: #fff; color: var(--red-ink) !important; font-size: 14px; font-weight: 600; padding: 0 10px; transition: background .15s, gap .15s; }
.ctv2c-btn-view:hover { background: #FDF0F0; gap: 10px; }
.ctv2c-btn-view > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Panneau d'aide (filtres actifs, dernière page) */
.ctv2c-help { grid-column: 1 / -1; grid-row: span 4; align-self: stretch; border-radius: 10px; background: var(--navy); color: #fff; padding: 22px 18px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ctv2c-help__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.ctv2c-help__title { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin: 0; }
.ctv2c-help__actions { display: flex; flex-direction: column; gap: 10px; }

/* Aucun résultat */
.ctv2c-empty { padding: 18px 8px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.ctv2c-empty__icon { width: 56px; height: 56px; border-radius: 50%; background: #FBF5EC; color: var(--gold-ico); display: flex; align-items: center; justify-content: center; }
.ctv2c-empty__title { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 0; color: var(--ink); }
.ctv2c-empty__text { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 460px; }
.ctv2c-empty__text strong { color: var(--ink); font-weight: 600; }
.ctv2c-empty__total { margin: 0; padding: 8px 14px; border-radius: 20px; background: var(--tile); font-size: 13px; color: var(--ink-2); }
.ctv2c-empty__actions { align-self: stretch; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ctv2c-help-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--gold-ink) !important; }

/* Chargement progressif */
.ctv2c-more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 0 32px; }
.ctv2c-more__text { margin: 0; font-size: 13px; color: var(--muted); }
.ctv2c-more__bar { width: 200px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ctv2c-more__bar span { display: block; height: 100%; background: var(--gold); transition: width .3s ease; }
.ctv2c-more__btn { align-self: stretch; position: relative; }
.ctv2c-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: ctv2c-spin .8s linear infinite; }
.ctv2c-more__btn[aria-busy="true"] .ctv2c-spinner { display: inline-block; }
.ctv2c-more__btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
@keyframes ctv2c-spin { to { transform: rotate(360deg); } }
.ctv2c-card.is-new { animation: ctv2c-in .35s ease both; }
@keyframes ctv2c-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Comment commander */
.ctv2c-service { background: var(--ivory-2); border-top: 1px solid var(--line); margin-top: 8px; }
.ctv2c-service__grid { padding-top: 22px; padding-bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.ctv2c-service__grid li, .ctv2c-service__grid li > a { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ctv2c-service__grid li > a { min-height: 44px; color: var(--ink); }
.ctv2c-service__grid li span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ctv2c-service__grid strong { font-size: 14px; font-weight: 600; }
.ctv2c-service__grid li span:last-child > span { font-size: 13px; color: var(--muted); }
.ctv2c-service__d { display: none !important; }
.ctv2c-roundico { background: #fff !important; }

/* Panneaux (mobile et tablette) */
.ctv2c-sheet { position: fixed; inset: 0; z-index: 210; }
.ctv2c-sheet[hidden] { display: none; }
.ctv2c-sheet__backdrop { position: absolute; inset: 0; background: rgba(6, 16, 24, .55); }
.ctv2c-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 32px rgba(6,16,24,.2); animation: ctv2c-up .22s ease-out; padding-bottom: env(safe-area-inset-bottom, 0px); }
.ctv2c-sheet__panel--short { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
@keyframes ctv2c-up { from { transform: translateY(100%); } to { transform: none; } }
.ctv2c-sheet__grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin-top: 8px; }
.ctv2c-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 4px 20px; border-bottom: 1px solid var(--line); }
.ctv2c-sheet__head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.ctv2c-sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 12px; }
.ctv2c-sheet__foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: #fff; }
.ctv2c-sheet__foot .ctv2c-gold { flex: 1; }
.ctv2c-fs { border: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ctv2c-fs legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--ink); float: left; width: 100%; }
.ctv2c-fs legend + * { clear: both; }
.ctv2c-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.ctv2c-opt { position: relative; }
.ctv2c-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctv2c-opt span { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 22px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.ctv2c-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.ctv2c-opt input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.ctv2c-soon { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--tile); font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.ctv2c-soonnote { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ctv2c-switches { padding-top: 6px; }
.ctv2c-switchrow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.ctv2c-switchrow + .ctv2c-switchrow { border-top: 1px solid var(--line); }
.ctv2c-switchrow input, .ctv2c-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctv2c-switch { position: relative; flex-shrink: 0; width: 46px; height: 28px; border-radius: 14px; background: var(--line-2); transition: background .15s; }
.ctv2c-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s, background .15s; }
input:checked + .ctv2c-switch { background: var(--navy); }
input:checked + .ctv2c-switch::after { transform: translateX(18px); background: var(--gold); }
input:focus-visible + .ctv2c-switch { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.ctv2c-radiolist { padding: 8px 12px 0; }
.ctv2c-radiolist a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 12px; border-radius: 10px; font-size: 16px; color: var(--ink); }
.ctv2c-radiolist a[aria-current] { background: #FBF5EC; font-weight: 600; }
.ctv2c-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #AEB4BB; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.ctv2c-radiolist a[aria-current] .ctv2c-radio { border-color: var(--ink); }
.ctv2c-radiolist a[aria-current] .ctv2c-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* Prix : curseur double + champs */
.ctv2c-price { display: flex; flex-direction: column; gap: 14px; }
.ctv2c-range { position: relative; height: 28px; margin: 0 4px; }
.ctv2c-range__track, .ctv2c-range__fill { position: absolute; top: 12px; height: 4px; border-radius: 2px; }
.ctv2c-range__track { left: 0; right: 0; background: var(--line); }
.ctv2c-range__fill { left: 0; right: 0; background: var(--gold); }
.ctv2c-range input[type=range] { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ctv2c-range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); cursor: grab; }
.ctv2c-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); cursor: grab; }
.ctv2c-range input[type=range]::-webkit-slider-runnable-track { background: none; }
.ctv2c-price__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ctv2c-price__inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ctv2c-price__field { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; color: var(--muted); background: #fff; }
.ctv2c-price__field:focus-within { border-color: var(--gold); }
.ctv2c-price__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 16px var(--sans); color: var(--ink); padding: 0; -moz-appearance: textfield; }
.ctv2c-price__field input::-webkit-outer-spin-button, .ctv2c-price__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ——— Tablette ≥ 768px ——— */
@media (min-width: 768px) {
  body.ctv2-catalogue { --cat-sticky: 76px; }
  .ctv2c-band__inner { padding-top: 24px; padding-bottom: 18px; gap: 12px; }
  .ctv2c-title { font-size: 40px; }
  .ctv2c-sub { font-size: 15px; }
  .ctv2c-msearch { max-width: 420px; }
  .ctv2c-mbar { grid-template-columns: repeat(2, minmax(0, 220px)); }
  .ctv2c-results { padding-top: 18px; }
  .ctv2c-count { font-size: 14px; }
  /* Tablette : 2 colonnes, rangées complètes avec 10 montres par page (5 × 2) */
  .ctv2c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 36px; }
  .ctv2c-card { row-gap: 10px; }
  .ctv2c-card__title { font-size: 15px; font-weight: 500; line-height: 1.38; }
  .ctv2c-card__price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .ctv2c-card__price .ctv2-price__now { font-size: 18px; font-weight: 600; }
  .ctv2c-card__price .ctv2-price__was { font-size: 13px; color: var(--muted); }
  .ctv2c-help { grid-column: span var(--span-t, 2); padding: 30px 32px; }
  .ctv2c-help__title { font-size: 26px; }
  .ctv2c-help__actions { flex-direction: row; flex-wrap: wrap; }
  .ctv2c-empty { padding-top: 32px; }
  .ctv2c-empty__actions { align-self: center; flex-direction: row; }
  .ctv2c-more { padding: 48px 0 56px; }
  .ctv2c-more__btn { align-self: center; }
  .ctv2c-service__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding-top: 30px; padding-bottom: 30px; }
  .ctv2c-service__d { display: flex !important; }
  .ctv2c-service__grid strong { font-size: 15px; }
  .ctv2c-sheet__panel { left: 50%; right: auto; width: min(560px, 100%); transform: translateX(-50%); animation: none; }
}

/* ——— Ordinateur ≥ 1024px : barre d'outils R2, 5 colonnes ——— */
@media (min-width: 1024px) {
  body.ctv2-catalogue { --cat-sticky: 84px; }
  .ctv2c-band__inner { padding-top: 28px; padding-bottom: 0; gap: 14px; }
  .ctv2c-crumbs { font-size: 13px; }
  .ctv2c-title { font-size: 48px; line-height: 1.08; }
  .ctv2c-sub { font-size: 16px; margin-top: -6px !important; }
  .ctv2c-msearch { display: none; }
  .ctv2c-tabs { gap: 32px; margin: 8px 0 0; padding: 0; overflow: visible; }
  .ctv2c-tabs a { min-height: 48px; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font-size: 15px; font-weight: 500; color: var(--muted); }
  .ctv2c-tabs a[aria-current] { background: none; color: var(--ink); font-weight: 600; border-bottom-color: var(--gold); }
  .ctv2c-band:not(:has(.ctv2c-tabs)) .ctv2c-band__inner { padding-bottom: 28px; }

  .ctv2c-mbar { display: none; }
  .ctv2c-sheet { display: none !important; }
  .ctv2c-toolbar { display: block; position: sticky; top: var(--cat-sticky); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
  .ctv2c-toolbar__inner { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .ctv2c-search { flex: 0 1 300px; min-width: 200px; }
  .ctv2c-search label { height: 44px; border-radius: 22px; padding: 0 14px; }
  .ctv2c-search input { font-size: 14px; }
  .ctv2c-filters { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .ctv2c-pill { height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 22px; background: #fff; display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; list-style: none; white-space: nowrap; user-select: none; }
  .ctv2c-pill::-webkit-details-marker { display: none; }
  .ctv2c-pill:hover { border-color: var(--ink); }
  .ctv2c-dd.is-active > .ctv2c-pill, .ctv2c-dd[open] > .ctv2c-pill { border: 1.5px solid var(--ink); font-weight: 600; }
  .ctv2c-dd[open] > .ctv2c-pill [data-ctv2c-caret] { transform: rotate(180deg); }
  .ctv2c-pill.is-disabled { cursor: not-allowed; color: #6B7480; background: #FAFAFA; border-style: dashed; }
  .ctv2c-pill.is-disabled:hover { border-color: var(--line-2); }
  .ctv2c-pill--sort { color: var(--muted); font-weight: 400; }
  .ctv2c-pill--sort strong { color: var(--ink); font-weight: 600; }
  .ctv2c-toggle { padding-left: 10px; }
  .ctv2c-toggle .ctv2c-switch { width: 36px; height: 22px; border-radius: 11px; }
  .ctv2c-toggle .ctv2c-switch::after { width: 16px; height: 16px; }
  .ctv2c-toggle input:checked + .ctv2c-switch::after { transform: translateX(14px); }
  .ctv2c-toggle:has(input:checked) { border: 1.5px solid var(--ink); font-weight: 600; }
  .ctv2c-dd { position: relative; }
  .ctv2c-dd__panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 50; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(6,16,24,.16); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
  .ctv2c-dd__panel--price { width: 340px; padding: 16px; gap: 12px; }
  .ctv2c-dd--sort { flex-shrink: 0; }
  .ctv2c-dd__panel--sort { left: auto; right: 0; width: 260px; padding: 8px; }
  .ctv2c-dd__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
  .ctv2c-dd__actions .ctv2c-gold { margin-left: auto; }
  .ctv2c-check { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; border-radius: 8px; font-size: 15px; color: var(--ink); cursor: pointer; }
  .ctv2c-check:hover { background: #FBF5EC; }
  .ctv2c-check input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }
  .ctv2c-sortlist a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 12px; border-radius: 8px; font-size: 15px; color: var(--ink); }
  .ctv2c-sortlist a:hover { background: #FAFAFA; }
  .ctv2c-sortlist a[aria-current] { background: #FBF5EC; font-weight: 600; }
  .ctv2c-sortlist .ctv2-ico { color: var(--gold-ink); }

  .ctv2c-results { padding-top: 22px; }
  .ctv2c-status { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
  .ctv2c-chips { display: contents; }
  .ctv2c-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 20px; row-gap: 40px; }
  .ctv2c-help { grid-column: span var(--span-d, 5); padding: 34px 36px; }
  .ctv2c-help__title { font-size: 28px; line-height: 1.2; }
  .ctv2c-more { padding: 56px 0 64px; gap: 14px; }
  .ctv2c-more__text { font-size: 14px; }
  .ctv2c-more__bar { width: 240px; }
  .ctv2c-service { margin-top: 0; }
  .ctv2c-service__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 34px; padding-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .ctv2c-card.is-new, .ctv2c-sheet__panel, .ctv2c-spinner { animation: none !important; }
}

/* ——— 0.5.0 : pages de catégorie, onglets des catégories réelles, titres limités à 3 lignes ——— */
.ctv2c-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 680px; }
.ctv2c-tabs a { gap: 6px; white-space: nowrap; }
.ctv2c-tabs__n { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctv2c-tabs a[aria-current] .ctv2c-tabs__n { color: #C9D0D8; }
/* Mobile : 3 lignes maximum pour le nom ; la sous-grille garde prix et bouton alignés sur la rangée */
.ctv2c-card__name { -webkit-line-clamp: 3; }
@media (max-width: 374px) {
  .ctv2c-grid { column-gap: 10px; }
  .ctv2c-card__title { font-size: 13.5px; }
  .ctv2c-card__price .ctv2-price__now { font-size: 17px; }
  .ctv2c-btn-view { font-size: 13px; gap: 4px; padding: 0 6px; }
}
@media (min-width: 1024px) {
  .ctv2c-tabs--cats { gap: 28px; overflow-x: auto; scrollbar-width: none; }
  .ctv2c-tabs--cats::-webkit-scrollbar { display: none; }
  .ctv2c-tabs a[aria-current] .ctv2c-tabs__n { color: var(--muted); }
  .ctv2c-desc { font-size: 15px; }
}

/* ——— 0.5.5 : Couleur du cadran, pastilles de couleur (plusieurs choix possibles) ——— */
.ctv2c-swatch { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background: var(--sw, transparent); box-shadow: inset 0 0 0 1px rgba(10,22,34,.25); }
.ctv2c-swatch--none { background: repeating-linear-gradient(45deg, #D9DCE0 0 3px, #FFFFFF 3px 6px); }
.ctv2c-opt--swatch span { gap: 8px; padding-left: 12px; }
.ctv2c-opt--swatch input:checked + span .ctv2c-swatch { box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px rgba(10,22,34,.25); }
.ctv2c-check--swatch .ctv2c-swatch { width: 20px; height: 20px; }
.ctv2c-fs__hint { font-weight: 400; font-size: 13px; color: var(--muted); }
/* La règle « .ctv2c-opt span » (puce) ne doit pas s'appliquer à la pastille elle-même */
.ctv2c-opt .ctv2c-swatch, .ctv2c-opt input:checked + span .ctv2c-swatch { display: inline-block; width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--sw, transparent); }
.ctv2c-opt .ctv2c-swatch--none, .ctv2c-opt input:checked + span .ctv2c-swatch--none { background: repeating-linear-gradient(45deg, #D9DCE0 0 3px, #FFFFFF 3px 6px); }
