/* ===== CATEGORY LANDING — ÉPURÉ ===== */
body { opacity: 0; animation: fadeInPage 0.3s ease forwards 0.05s; background: #fff; color: #111; }
@keyframes fadeInPage { to { opacity: 1; } }

.header { background: #fff !important; backdrop-filter: none !important; border-bottom: 1px solid #e8e8e8 !important; }
.header__logo { color: #111 !important; }
.header__nav-link { color: #555 !important; }
.header__nav-link:hover, .header__nav-link--active { color: #111 !important; }
.header__icon-link { color: #111 !important; }
.header__burger-line { background: #111 !important; }
.footer { background: #111 !important; color: #fff !important; border-top: none !important; }
.footer__heading { color: rgba(255,255,255,0.5) !important; }
.footer__links a { color: rgba(255,255,255,0.4) !important; }
.footer__links a:hover { color: #fff !important; }
.footer__bottom { color: rgba(255,255,255,0.3) !important; border-top-color: rgba(255,255,255,0.08) !important; }
.footer__bottom-links a { color: rgba(255,255,255,0.3) !important; }
.footer__newsletter-input { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.12) !important; color: #fff !important; }
.footer__newsletter-btn { color: rgba(255,255,255,0.4) !important; border-left-color: rgba(255,255,255,0.12) !important; }
.footer .header__logo { color: #fff !important; }

/* ── Page root — compense le header fixe ── */
#cat-page { padding-top: var(--header-h); }

/* ── Layout wrapper ── */
.cpage { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ── Hero ── */
.cpage-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.cpage-hero__left {}

.cpage-hero__crumb {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
}
.cpage-hero__crumb a { color: inherit; text-decoration: none; }
.cpage-hero__crumb a:hover { color: #111; }
.cpage-hero__crumb span { margin: 0 5px; }

.cpage-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #111;
  line-height: 1;
  margin: 0;
}

.cpage-hero__right {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 6px;
  flex-shrink: 0;
}

.cpage-hero__desc {
  font-size: 13px;
  color: #888;
  max-width: 280px;
  line-height: 1.55;
  text-align: right;
}

.cpage-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid #111;
  padding: 10px 18px;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
.cpage-hero__cta:hover { background: #111; color: #fff; }

/* ── Brands strip ── */
.cpage-brands {
  padding: 28px 0;
  border-bottom: 1px solid #e8e8e8;
}

.cpage-brands__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ccc;
  margin-bottom: 16px;
}

.cpage-brands__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.cpage-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 56px;
  background: #111;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
  flex-shrink: 0;
}
.cpage-brand:hover { opacity: 0.8; transform: translateY(-1px); }

.cpage-brand img {
  height: 22px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
}

.cpage-brand__txt {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Subcats grid ── */
.cpage-subcats {
  padding: 60px 0 100px;
}

.cpage-subcats__head {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ccc;
  margin-bottom: 30px;
}

.cpage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Card */
.cpage-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.cpage-card__img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 5px;
  margin-bottom: 12px;
}

.cpage-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.cpage-card:hover .cpage-card__img { transform: scale(1.04); }

.cpage-card__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 4px;
}

.cpage-card__link {
  font-size: 11px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, gap 0.15s;
}
.cpage-card:hover .cpage-card__link { color: #111; gap: 7px; }

/* ── Sous-catégories : rangée de pilules (cotes thelaststep) ──
   40px de haut · padding 10/20 · radius 30px · bordure 1px · gap 8px.
   Scroll horizontal → s'adapte parfaitement sur mobile. */
.cpage-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;              /* Firefox */
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.cpage-pills::-webkit-scrollbar { display: none; }   /* Chrome/Safari */

.cpage-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 10px 20px;
  box-sizing: border-box;
  border: 1px solid #111;
  border-radius: 30px;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.cpage-pill:hover { background: #111; color: #fff; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .cpage { padding: 0 20px; }
  .cpage-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cpage-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 0 24px; }
  .cpage-hero__desc { text-align: left; max-width: 100%; }
  .cpage-hero__right { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* Pilules : scroll horizontal bord à bord (les 20px de marge du conteneur sont
     annulés puis réappliqués en padding → 1ʳᵉ/dernière pilule bien insérées) */
  .cpage-pills { margin: 0 -20px; padding: 0 20px 2px; }
}
