/* --- Header --- */
/* Habillage "doré-rosé" repris du logo : dégradé cuivré sur toute la barre,
   wordmark en dégradé métallique plus clair (effet "brossé") pour qu'il se
   détache nettement, liens/icônes en crème pour rester lisibles sur ce fond
   plus soutenu. */
.mb-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, #C89873 0%, #A9714E 55%, #8B5A3C 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}
.mb-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 16px;
}
.mb-header__logo {
  font-family: var(--mb-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(180deg, #FCF1E4 0%, #F0D8BC 45%, #D9AE81 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #F0D8BC; /* repli si background-clip:text non supporté */
  -webkit-text-fill-color: transparent;
}
.mb-header__nav { display: none; gap: 12px; }
.mb-header__nav a {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.mb-header__nav a:hover { transform: translateY(-1px); }

/* Collections : bouton clair, invite à parcourir le catalogue. */
.mb-header__nav a[href="/collections"] {
  background: #FBF3EA;
  color: #7A4B2D;
}
.mb-header__nav a[href="/collections"]:hover { color: #7A4B2D; filter: brightness(1.04); }

/* Devenir vendeur : couleur distincte (vert déjà défini comme --mb-success),
   pour marquer visuellement qu'il s'agit d'un objectif différent (rejoindre
   la marketplace, pas seulement l'explorer). */
.mb-header__nav a[href="/type-compte"] {
  background: #2F7A4D;
  color: #FBF3EA;
}
.mb-header__nav a[href="/type-compte"]:hover { color: #FBF3EA; filter: brightness(1.08); }

.mb-header__actions { display: flex; gap: 16px; color: #FBF3EA; }

/* --- Menu déroulant Catégories --- */
.mb-category-menu { position: relative; }
.mb-category-menu__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #FBF3EA;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 4px;
}
.mb-category-menu__trigger:hover { color: #FFFFFF; }
.mb-category-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--mb-surface);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  padding: 8px;
  z-index: 30;
}
.mb-category-menu__panel a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--mb-radius-sm);
  color: var(--mb-text);
  font-size: 0.88rem;
}
.mb-category-menu__panel a:hover { background: var(--mb-surface-alt); color: var(--mb-accent); }
.mb-header__icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: #FBF3EA;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mb-header__icon-link:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
.mb-header__cart-icon { position: relative; }
.mb-header__cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #FBF3EA;
  color: #7A4B2D;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
  .mb-header__nav { display: flex; }
}

/* --- Hero --- */
.mb-hero {
  background: var(--mb-surface-alt);
  padding: 56px 0;
}
.mb-hero__inner { max-width: 560px; }
.mb-hero__inner h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 12px;
}
.mb-hero__inner p {
  color: var(--mb-text-muted);
  margin-bottom: 20px;
}

/* --- Sections génériques --- */
.mb-section { padding: 40px 0; }
.mb-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* --- Carousel (contenu administrable depuis Briguanté) --- */
.mb-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 0;
  scrollbar-width: none;
}
.mb-carousel::-webkit-scrollbar { display: none; }
.mb-carousel__slide {
  flex: 0 0 85%;
  scroll-snap-align: start;
  border-radius: var(--mb-radius-lg);
  overflow: hidden;
  background: var(--mb-surface-alt);
  aspect-ratio: 16 / 9;
  position: relative;
  color: #fff; /* toujours sur une photo avec surimpression sombre juste en dessous — jamais sur le fond du thème */
  text-decoration: none;
  display: block;
}
@media (min-width: 768px) {
  .mb-carousel__slide { flex-basis: 60%; }
}
.mb-carousel__slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mb-carousel__slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
}
.mb-carousel__slide__title { font-size: 1.3rem; font-weight: 700; margin: 0; color: #fff; }
.mb-carousel__slide__subtitle { font-size: 0.9rem; margin: 4px 0 0; color: #F0E6D8; }

.mb-carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.mb-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--mb-border); cursor: pointer;
}
.mb-carousel-dots button.active { background: var(--mb-accent); width: 20px; border-radius: 4px; }

/* --- Catégories --- */
.mb-categories-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
}
.mb-category-pill {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--mb-border);
  background: var(--mb-surface);
  color: var(--mb-text);
  white-space: nowrap;
}
.mb-category-pill:hover { border-color: var(--mb-accent); color: var(--mb-accent); }

/* --- Vendeurs mis en avant --- */
.mb-sellers-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0;
}
.mb-seller-card {
  flex: 0 0 220px;
  padding: 16px;
  text-align: center;
}

/* --- Modal Support (section 21) --- */
.mb-support-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
}
.mb-support-modal--open { display: flex; }
.mb-support-modal__panel {
  width: 100%;
  max-width: 480px;
  background: var(--mb-surface);
  border-radius: var(--mb-radius-lg) var(--mb-radius-lg) 0 0;
  padding: 24px;
}
@media (min-width: 768px) {
  .mb-support-modal { align-items: center; }
  .mb-support-modal__panel { border-radius: var(--mb-radius-lg); }
}
