/* ════════════════════════════════════════════════════════════
   PAGE COLLECTIONS DE DESIGN
   Hero plein-écran + sections par catégorie (rhinoshield style)
   ════════════════════════════════════════════════════════════ */

.bdc-page {
  background: var(--gray);
  padding-bottom: 80px;
}

/* ─── HERO PLEIN-ÉCRAN ───────────────────────────────────────── */
.bdc-hero-full {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 58vh;
  min-height: 360px;
  max-height: 560px;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

/* Track — les slides sont empilées, on montre l'active */
.bdc-hf-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide */
.bdc-hf-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}

.bdc-hf-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Image de fond */
.bdc-hf-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.bdc-hf-bg--placeholder {
  background: linear-gradient(135deg, #1a1f1b 0%, #2d4a35 50%, #1a1a1a 100%);
}

/* Overlay sombre dégradé */
.bdc-hf-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.05) 100%),
    linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

/* Contenu texte — centré verticalement, contenu dans le hero */
.bdc-hf-content {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40px; /* laisse place aux dots */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 8% 0;
  max-width: 640px;
  box-sizing: border-box;
}

.bdc-hf-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.bdc-hf-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.bdc-hf-sub {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Flèches gauche / droite ─────────────────────────────────── */
.bdc-hf-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bdc-hf-arrow:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.bdc-hf-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.bdc-hf-arrow--prev { left: 28px; }
.bdc-hf-arrow--next { right: 28px; }
.bdc-hf-arrow { display: none; }

/* Miniatures supprimées — remplacées par des points simples */
.bdc-hf-thumbs { display: none; }

/* Points indicateurs discrets */
.bdc-hf-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 7px;
}

.bdc-hf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bdc-hf-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 3px;
}

/* ─── SECTIONS PAR CATÉGORIE ─────────────────────────────────── */
.bdc-sections {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.bdc-section {
  padding: 56px 0 0;
  border-bottom: 1px solid var(--border);
}

.bdc-section:last-child {
  border-bottom: none;
}

/* Header — barre or + titre SEULEMENT (flèches sur les côtés de la rangée) */
.bdc-section__head {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 20px;
}

.bdc-section__title {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: var(--weight-bold);
  color: var(--black);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.02em;
}

/* Barre dorée — identique rhinoshield */
.bdc-section__bar {
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Masquer les boutons du header (flèches déplacées sur les côtés) */
.bdc-section__arrows { display: none; }

/* ── Boutons de navigation dans le header (propre, toujours visibles) ── */
.bdc-section__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bdc-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--black);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}

.bdc-nav-btn:hover {
  background: var(--g);
  border-color: var(--g);
  color: var(--white);
}

.bdc-nav-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Conteneur rangée avec fondu droit ── */
.bdc-row-wrap {
  position: relative;
}

/* Dégradé fondu indiquant du contenu supplémentaire */
.bdc-row-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72px;
  background: linear-gradient(to right, transparent, var(--gray));
  pointer-events: none;
  z-index: 5;
}

.bdc-row-btn[data-dir="-1"] { left: 12px; }
.bdc-row-btn[data-dir="1"]  { right: 12px; }

/* Rangée scrollable */
.bdc-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 48px;
}

.bdc-row::-webkit-scrollbar { display: none; }

/* ── Carte — image + nom en bas dans la carte (style rhinoshield) ── */
.bdc-card {
  flex: 0 0 calc(100% / 5);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  scroll-snap-align: start;
  border-right: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.bdc-card:last-child { border-right: none; }

/* Image carrée qui prend toute la carte */
.bdc-card__img {
  flex: 1;
  min-height: 240px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.bdc-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  display: block;
}

.bdc-card:hover .bdc-card__img img {
  transform: scale(1.06);
}

.bdc-card__img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8ea, #d5d5d8);
}

/* Nom dans la carte — barre blanche en bas de l'image */
.bdc-card__name {
  position: relative;
  padding: 12px 16px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: var(--weight-medium);
  color: var(--black);
  background: var(--white);
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Message vide */
.bdc-empty {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
}

/* ─── Lien "Voir tout" dans le header de section ─────────────── */
.bdc-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bdc-section__see-all {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
  color: var(--g);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.bdc-section__see-all:hover { color: var(--gold); }

/* ─── Héros statiques (Best-Sellers & Nos Collections) ───────── */
.bdc-static-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 46vh;
  min-height: 280px;
  max-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Best-Sellers — fond or/sombre */
.bdc-static-hero--bestsellers {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(232,160,32,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(45,74,53,0.3) 0%, transparent 50%),
    linear-gradient(135deg, #1a1a1f 0%, #1e2d1e 50%, #2a2000 100%);
}

.bdc-static-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 8%;
  max-width: 640px;
}

.bdc-static-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: 1.08;
  margin: 10px 0 14px;
  letter-spacing: -0.02em;
}

.bdc-static-hero__desc {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.7;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .bdc-card { flex: 0 0 calc(100% / 4); min-width: 180px; }
  .bdc-sections { padding: 0 32px; }
}

@media (max-width: 900px) {
  .bdc-hero-full { height: 50vh; min-height: 300px; max-height: 420px; }
  .bdc-hf-content { padding: 24px 6% 0; }
  .bdc-card { flex: 0 0 calc(100% / 3); min-width: 160px; }
  .bdc-sections { padding: 0 24px; }
  .bdc-section { padding-top: 36px; }
  .bdc-section__title { font-size: 1.25rem; }
  .bdc-card__img { min-height: 180px; }
}

@media (max-width: 640px) {
  .bdc-hero-full { height: 48vh; min-height: 260px; }
  .bdc-hf-content { padding: 20px 5% 0; }
  .bdc-card { flex: 0 0 calc(100% / 2.2); min-width: 140px; }
  .bdc-sections { padding: 0 16px; }
  .bdc-section { padding-top: 28px; }
  .bdc-card__name { font-size: 0.78rem; padding: 10px 12px 12px; }
  .bdc-card__img { min-height: 150px; }
  .bdc-row { padding-bottom: 32px; }
  .bdc-row-btn { width: 36px; height: 36px; }
}

@media (max-width: 420px) {
  .bdc-hero-full { height: 45vh; min-height: 240px; }
  .bdc-card { flex: 0 0 calc(100% / 1.6); min-width: 130px; }
}
