/*
 * Widget: Domaines Carte
 * Slug: domaines-carte
 */

/* Le wrapper Elementor doit prendre toute la hauteur */
.elementor-widget-ws-domaines-carte {
  height: 100%;
}

.elementor-widget-ws-domaines-carte .elementor-widget-container {
  height: 100%;
}

/* Carte */
.entity-card {
  background: #ffffff;
  text-decoration: none !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Image */
.entity-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.entity-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(15%);
}

.entity-card:hover .entity-img {
  transform: scale(1.04);
}

/* Body */
.entity-body {
  padding: 28px 28px 24px;
  border-top: 3px solid;
}

/* Logo */
.entity-logo {
  margin-bottom: 16px;
}

.entity-logo-name {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.entity-logo-rule {
  height: 2px;
  margin: 4px 0 3px;
}

.entity-logo-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Description */
.entity-desc {
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Tags */
.entity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 22px;
}

.entity-tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid #ebebeb;
}

/* Link */
.entity-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entity-arrow {
  width: 22px;
  height: 1px;
  background: #1c1c1e;
  position: relative;
  transition: transform 0.3s ease;
}

.entity-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #1c1c1e;
  border-top: 1.5px solid #1c1c1e;
  transform: rotate(45deg);
}

.entity-card:hover .entity-arrow {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
  .ws-entities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ws-entities-grid {
    grid-template-columns: 1fr;
  }
}
