/**
 * EHUKA - Section Nos Marques
 * Design moderne et cohérent avec la charte graphique
 */

/* Section Marques */
.ehuka-brands-section {
  padding: 60px 0;
  background: white;
  margin: 0;
  position: relative;
}

.ehuka-brands-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titre de section */
.ehuka-brands-section .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.ehuka-brands-section .section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: #5d576b;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.ehuka-brands-section .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--ehuka-accent) 0%, var(--ehuka-hover) 100%);
  border-radius: 2px;
}

.ehuka-brands-section .section-title p {
  font-size: 16px;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Grille des marques */
.ehuka-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
}

/* Carte de marque */
.ehuka-brand-item {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(93, 87, 107, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
}

/* Effet de fond au survol */
.ehuka-brand-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(112, 215, 116, 0.03) 0%, rgba(75, 157, 169, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.ehuka-brand-item:hover::before {
  opacity: 1;
}

.ehuka-brand-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(112, 215, 116, 0.3);
}

/* Wrapper du logo */
.brand-logo-wrapper {
  width: 100%;
  max-width: 220px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.ehuka-brand-item:hover .brand-logo-wrapper {
  transform: scale(1.05);
}

.brand-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0);
  transition: all 0.3s ease;
}

.ehuka-brand-item:hover .brand-logo-wrapper img {
  filter: grayscale(0) brightness(1.05);
}

/* Description de la marque */
.brand-description {
  text-align: center;
  position: relative;
  z-index: 1;
}

.brand-description h3 {
  font-size: 24px;
  font-weight: 700;
  color: #5d576b;
  margin: 0 0 10px 0;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.ehuka-brand-item:hover .brand-description h3 {
  color: var(--ehuka-hover);
}

.brand-description p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Effet de bordure animée */
.ehuka-brand-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ehuka-accent) 0%, var(--ehuka-hover) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ehuka-brand-item:hover::after {
  transform: scaleX(1);
}

/* Responsive - TABLETTE */
@media (max-width: 1200px) {
  .ehuka-brands-section {
    padding: 50px 0;
  }

  .ehuka-brands-grid {
    gap: 30px;
  }

  .ehuka-brand-item {
    padding: 35px 25px;
    gap: 20px;
  }

  .brand-logo-wrapper {
    max-width: 200px;
    height: 130px;
  }

  .brand-description h3 {
    font-size: 22px;
  }

  .brand-description p {
    font-size: 13px;
  }
}

/* Responsive - TABLETTE PORTRAIT */
@media (max-width: 992px) {
  .ehuka-brands-section {
    padding: 40px 0;
  }

  .ehuka-brands-section .section-title h2 {
    font-size: 30px;
  }

  .ehuka-brands-section .section-title p {
    font-size: 15px;
  }

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

  .ehuka-brand-item {
    padding: 30px 20px;
  }

  .brand-logo-wrapper {
    max-width: 180px;
    height: 120px;
  }
}

/* Responsive - MOBILE */
@media (max-width: 768px) {
  .ehuka-brands-section {
    padding: 35px 0;
  }

  .ehuka-brands-section .container {
    padding: 0 15px;
  }

  .ehuka-brands-section .section-title {
    margin-bottom: 35px;
  }

  .ehuka-brands-section .section-title h2 {
    font-size: 26px;
  }

  .ehuka-brands-section .section-title p {
    font-size: 14px;
  }

  .ehuka-brands-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ehuka-brand-item {
    padding: 25px 20px;
    gap: 15px;
  }

  .brand-logo-wrapper {
    max-width: 200px;
    height: 110px;
    padding: 15px;
  }

  .brand-description h3 {
    font-size: 20px;
  }

  .brand-description p {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* Très petit mobile */
@media (max-width: 576px) {
  .ehuka-brands-section {
    padding: 30px 0;
  }

  .ehuka-brands-section .section-title h2 {
    font-size: 22px;
  }

  .ehuka-brands-section .section-title p {
    font-size: 13px;
  }

  .ehuka-brand-item {
    padding: 20px 15px;
  }

  .brand-logo-wrapper {
    max-width: 180px;
    height: 100px;
    padding: 12px;
  }

  .brand-description h3 {
    font-size: 18px;
  }

  .brand-description p {
    font-size: 12px;
  }
}

/* Animation d'apparition au scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ehuka-brand-item {
  animation: fadeInUp 0.6s ease forwards;
  /* Opacité initiale 1 car injecté par JS */
  opacity: 1;
}

.ehuka-brand-item:nth-child(1) {
  animation-delay: 0.1s;
}

.ehuka-brand-item:nth-child(2) {
  animation-delay: 0.2s;
}

.ehuka-brand-item:nth-child(3) {
  animation-delay: 0.3s;
}
