/**
 * Dolikomdon Home Blocks Styles
 * @author Romain Dolikom
 */

/* Container */
.dkhb-container {
  width: 100%;
  max-width: 1140px;
  margin: 3rem auto;
  padding: 0 15px;
}

@media (min-width: 1400px) {
  .dkhb-container {
    max-width: 1320px;
  }
}

/* Blocks Wrapper */
.dkhb-blocks-wrapper {
  width: 100%;
  overflow: hidden;
}

.dkhb-blocks {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease-in-out;
}

/* Individual Block */
.dkhb-block {
  flex: 1 0 100%;
  min-width: 100%;
  text-align: center;
  padding: 2rem 1rem;
  transition: opacity 0.4s ease-in-out;
}

/* Desktop Layout - 3 columns */
@media (min-width: 768px) {
  .dkhb-block {
    flex: 1 0 calc(33.333% - 1.333rem);
    min-width: calc(33.333% - 1.333rem);
  }
}

/* Title */
.dkhb-block__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #42403D;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Text */
.dkhb-block__text {
  font-size: 1rem;
  font-weight: 300;
  color: #42403D;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Link with animation */
.dkhb-block__link {
  position: relative;
  display: inline-block;
  font-family: 'bryant-web', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #42403D;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding-bottom: 0.5rem;
  transition: color 0.3s ease-in-out;
}

.dkhb-block__link::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transition: background-color 0.3s ease-in-out;
}

/* Retour Mélissandre 30/03 : couleur foncée au survol */
.dkhb-block__link:hover {
  color: #000000;
}

/* Navigation Dots */
.dkhb-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Desktop - Hide dots */
@media (min-width: 768px) {
  .dkhb-dots {
    display: none;
  }
}

/* Dot Button */
.dkhb-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background-color: #B1ADA6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.2s ease;
}

.dkhb-dot:hover {
  transform: scale(1.1);
}

.dkhb-dot--active {
  background-color: #42403D;
}

/* Mobile Slider Behavior */
@media (max-width: 767px) {
  .dkhb-blocks {
    flex-wrap: nowrap;
    gap: 0;
  }

  .dkhb-block {
    opacity: 0.5;
    transition: opacity 0.4s ease-in-out;
  }

  .dkhb-block--active {
    opacity: 1;
  }
}
