/* ═══════════════════════════════════════════════════
   rochén – Collections Widget  v2.1.0
   ═══════════════════════════════════════════════════ */

.rc-section-collection *,
.rc-section-collection *::before,
.rc-section-collection *::after {
  box-sizing: border-box;
}

/* ── Section ── */
.rc-section-collection {
  background: #EDE8DF;
  padding: 72px 24px 80px;
}

/* ── En-tête ── */
.rc-header {
  text-align: center;
  margin-bottom: 44px;
}

.rc-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6B3D1E;
  margin-bottom: 16px;
}

.rc-eyebrow::before,
.rc-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.rc-section-collection[data-eyebrow-lines="no"] .rc-eyebrow::before,
.rc-section-collection[data-eyebrow-lines="no"] .rc-eyebrow::after {
  display: none;
}

.rc-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: #1A1410;
  margin: 0 0 16px;
}

.rc-subtitle {
  max-width: 460px;
  margin: 0 auto;
  color: #8C7E70;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

/* ── Filtres ── */
.rc-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.rc-filter {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid #D9D0C4;
  background: transparent;
  color: #1A1410;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1;
}

.rc-filter.active,
.rc-filter:hover {
  background: #1A1410;
  color: #EDE8DF;
  border-color: #1A1410;
}

/* ── Grille ── */
.rc-grid-collection-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 4px;
}

.rc-grid-collection {
  display: grid;
  gap: 20px;
  transition: opacity .25s;
}

.rc-grid-collection.rc-fading {
  opacity: 0;
  pointer-events: none;
}

.rc-cols-1 { grid-template-columns: repeat(1, 1fr); }
.rc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rc-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Carte ── */
.rc-card-collection {
  background: #F5F1EB;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.rc-card-collection:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 20, 16, .12);
}

/* ══════════════════════════════════════════
   IMAGE — ratio uniforme garanti par CSS pur
   ══════════════════════════════════════════ */
.rc-card-collection-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  background: #E8E3DA;
  /* Ratio par défaut : 4/3 — écrasé par les classes de ratio ci-dessous */
  aspect-ratio: 4 / 3;
}

.rc-card-collection-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .35s;
}

.rc-card-collection:hover .rc-card-collection-img-wrap img {
  transform: scale(1.04);
}

/* Ratios — appliqués sur .rc-section-collection via JS (data-img-ratio) */
.rc-section-collection[data-img-ratio="1x1"]  .rc-card-collection-img-wrap { aspect-ratio: 1 / 1; }
.rc-section-collection[data-img-ratio="4x3"]  .rc-card-collection-img-wrap { aspect-ratio: 4 / 3; }
.rc-section-collection[data-img-ratio="3x2"]  .rc-card-collection-img-wrap { aspect-ratio: 3 / 2; }
.rc-section-collection[data-img-ratio="16x9"] .rc-card-collection-img-wrap { aspect-ratio: 16 / 9; }
.rc-section-collection[data-img-ratio="3x4"]  .rc-card-collection-img-wrap { aspect-ratio: 3 / 4; }
.rc-section-collection[data-img-ratio="2x3"]  .rc-card-collection-img-wrap { aspect-ratio: 2 / 3; }

/* Mode contain */
.rc-section-collection[data-img-fit="contain"] .rc-card-collection-img-wrap img {
  object-fit: contain;
  padding: 16px;
}

/* Placeholder si pas d'image */
.rc-card-no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D9D0C4;
}

.rc-card-no-img::after {
  content: '';
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #C5BAB0;
}

/* ── Badges ── */
.rc-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  z-index: 1;
}

.rc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.6;
}

.rc-badge-nouveau  { background: #1A1410; color: #EDE8DF; }
.rc-badge-vedette  { background: #C4882A; color: #fff; }
.rc-badge-indispo  { background: rgba(26,20,16,.55); color: #fff; }
.rc-badge-commande { background: rgba(107,61,30,.75); color: #fff; }

/* Bouton lien flottant */
.rc-card-collection-link {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  opacity: 0;
  transition: opacity .2s;
  text-decoration: none;
  color: #1A1410;
  z-index: 1;
}

.rc-card-collection:hover .rc-card-collection-link { opacity: 1; }

.rc-card-collection-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Corps ── */
.rc-card-collection-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rc-card-row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.rc-card-collection-name {
  font-size: 15px;
  font-weight: 600;
  color: #1A1410;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.rc-card-collection-price {
  font-size: 14px;
  font-weight: 600;
  color: #1A1410;
  white-space: nowrap;
  flex-shrink: 0;
}

.rc-card-collection-desc {
  font-size: 12.5px;
  color: #8C7E70;
  margin: 0 0 12px;
  line-height: 1.5;
}

.rc-card-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.rc-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EDE8DF;
  border: 1px solid #D9D0C4;
  font-size: 11.5px;
  color: #8C7E70;
  font-weight: 500;
}

/* ── Bouton CTA ── */
.rc-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: #4A2B10;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  text-align: center;
  text-decoration: none;
  flex-shrink: 0;
}

.rc-cta:hover { background: #3A1F08; color: #fff; }

.rc-card-collection[data-statut="indisponible"] .rc-cta {
  opacity: .45;
  pointer-events: none;
}

/* ── Pagination ── */
.rc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.rc-pag-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #D9D0C4;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  color: #1A1410;
}

.rc-pag-btn:hover:not(:disabled) {
  background: #1A1410;
  border-color: #1A1410;
  color: #EDE8DF;
}

.rc-pag-btn:disabled { opacity: .35; cursor: default; }

.rc-pag-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rc-pag-info {
  font-size: 14px;
  font-weight: 500;
  color: #8C7E70;
  min-width: 48px;
  text-align: center;
}

/* ── Message vide ── */
.rc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #8C7E70;
  font-size: 15px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .rc-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .rc-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .rc-cols-4,
  .rc-cols-3,
  .rc-cols-2 { grid-template-columns: 1fr; }
  .rc-section-collection { padding: 48px 16px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-section-collection *,
  .rc-section-collection *::before,
  .rc-section-collection *::after { transition: none !important; }
}
