/* Page de toutes les marques */
.all-brands-page {
  min-height: 100vh;
  background-color: var(--soft-cream, #FAF6F0);
}

.brands-hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark-charcoal, #1B1611) 0%, #2a2119 100%);
  color: #faf6f0;
  padding: 110px 0 70px;
  text-align: center;
  overflow: hidden;
}

.brands-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg stroke='%23C9A227' stroke-width='0.4' fill='none'%3E%3Cpath d='M50 2 L61 39 L98 39 L68 61 L79 98 L50 75 L21 98 L32 61 L2 39 L39 39 Z'/%3E%3Ccircle cx='50' cy='50' r='46'/%3E%3Ccircle cx='50' cy='50' r='32'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 520px;
}

.brands-title {
  position: relative;
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 500;
  color: #faf6f0;
  margin-bottom: 1rem;
}

.brands-subtitle {
  position: relative;
  font-size: 1.05rem;
  color: #c3b8a9;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.brands-content {
  padding: 70px 0 90px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
  margin-bottom: 2rem;
}

.brand-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.14);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27, 22, 17, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(27, 22, 17, 0.12);
  border-color: rgba(201, 162, 39, 0.4);
}

.brand-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Cadre de logo à dimension fixe : tous les logos (wordmark large,
   emblème carré, sceau rond...) sont centrés en object-fit: contain
   sur un fond blanc uniforme, jamais rognés, toujours la même taille
   visuelle d'une carte à l'autre. */
.brand-image-container {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 30px;
  background: #ffffff;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.brand-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-card:hover .brand-image {
  transform: scale(1.05);
}

.brand-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-placeholder svg {
  width: 48px;
  height: 48px;
  color: rgba(201, 162, 39, 0.35);
}

.brand-info {
  padding: 20px 22px 24px;
  text-align: center;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color, #2A241E);
  margin-bottom: 0.4rem;
}

.brand-description {
  color: var(--text-color-light, #6B6256);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.brand-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.parfums-count {
  display: inline-flex;
  align-items: center;
  background: rgba(201, 162, 39, 0.1);
  color: var(--dark-gold, #8A6D1F);
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Léger lien "Voir les parfums" qui apparaît au survol, en remplacement
   de l'ancien aplat doré plein écran sur la carte. */
.brand-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--dark-gold, #8A6D1F);
  font-family: "Lato", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.brand-card:hover .brand-overlay {
  opacity: 1;
  transform: translateY(0);
}

.view-brand-text {
  font-family: "Lato", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.brand-overlay svg {
  width: 14px;
  height: 14px;
}

/* État vide */
.no-brands {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-color-light, #6B6256);
}

.no-brands-icon {
  margin-bottom: 20px;
}

.no-brands-icon svg {
  width: 80px;
  height: 80px;
  color: rgba(201, 162, 39, 0.35);
}

.no-brands h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--text-color, #2A241E);
  margin-bottom: 10px;
}

.no-brands p {
  font-size: 1.1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .brands-title {
    font-size: 2.4rem;
  }

  .brands-subtitle {
    font-size: 1rem;
  }

  .brands-hero {
    padding: 90px 24px 60px;
  }

  .brands-content {
    padding: 40px 0 60px;
  }

  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
  }

  .brand-image-container {
    height: 130px;
    padding: 20px 22px;
  }

  .brand-info {
    padding: 16px 18px 20px;
  }

  .brand-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .brands-title {
    font-size: 2rem;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .brand-image-container {
    height: 110px;
    padding: 16px 18px;
  }

  .brand-info {
    padding: 14px 14px 18px;
  }

  .brand-description {
    display: none;
  }
}
