/* Base styles */
.ckc-card-category-small {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  --ckc-card-shift: 0px;
  --ckc-card-lift: 0px;
  --ckc-card-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ckc-card-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ckc-card-bg,
.ckc-card-bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ckc-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  padding: 0;
  padding-right: 20px;
}

.elementor-widget-ckc-card-category-small .ckc-card-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(218, 180, 157, 0) 0%, #dab49d 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.elementor-widget-ckc-card-category-small
  .ckc-card-category-small:hover
  .ckc-card-overlay::before {
  opacity: 1;
}

.ckc-card-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  gap: 15px;
  margin-left: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 0.45s var(--ckc-card-ease);
  will-change: transform;
  max-width: 800px;
}

.ckc-card-category-small:hover .ckc-card-content {
  transform: translate3d(var(--ckc-card-shift), calc(-1 * var(--ckc-card-lift)), 0);
}

.ckc-card-icon {
  flex-shrink: 0;
  background: #dab49d;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d3f60;
}

.ckc-card-icon i,
.ckc-card-icon svg {
  color: #0d3f60;
  fill: #0d3f60;
}

.ckc-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ckc-card-title {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #0d3f60;
}

.ckc-card-description {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #0d3f60;
  font-size: 15px;
  line-height: 110%;
}

/* SMALL SIZE */
.ckc-card-size-small {
  min-height: 113px;
  --ckc-card-shift: 10px;
}

.ckc-card-size-small .ckc-card-overlay {
  align-items: center;
}

.ckc-card-size-small .ckc-card-content {
  min-height: 57px;
  padding: 10px 40px 10px 10px;
  border-radius: 100px;
  margin-left: 30px;
  max-width: 330px;
}

.ckc-card-size-small .ckc-card-icon {
  width: 37px;
  height: 37px;
  font-size: 14px;
}

.ckc-card-size-small .ckc-card-icon svg {
  width: 12px;
  height: 14px;
}

.ckc-card-size-small .ckc-card-title {
  font-size: 20px;
  line-height: 110%;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* MEDIUM SIZE */
.ckc-card-size-medium {
  min-height: 315px;
  --ckc-card-lift: 20px;
}

.ckc-card-size-medium .ckc-card-overlay {
  align-items: flex-end;
}

.ckc-card-size-medium .ckc-card-content {
  height: auto;
  padding: 16px 20px;
  border-radius: 100px;
  margin-left: 30px;
  margin-bottom: 50px;
}

.ckc-card-size-medium .ckc-card-icon {
  width: 45px;
  height: 45px;
  font-size: 20px;
}

.ckc-card-size-medium .ckc-card-icon svg {
  width: 18px;
  height: 20px;
}

.ckc-card-size-medium .ckc-card-title {
  font-size: 22px;
  line-height: 110%;
}
.ckc-custom-home-card .ckc-card-size-medium .ckc-card-title {
  font-size: 30px;
}

/* LARGE SIZE */
.ckc-card-size-large {
  min-height: 315px;
  max-height: 650px;
  --ckc-card-lift: 40px;
}

.ckc-card-size-large .ckc-card-overlay {
  align-items: flex-end;
}

.ckc-card-size-large .ckc-card-content {
  height: auto;
  padding: 20px 24px;
  border-radius: 100px;
  margin-left: 30px;
  margin-bottom: 50px;
  max-width: 530px;
}

.ckc-card-size-large .ckc-card-icon {
  width: 50px;
  height: 50px;
  font-size: 24px;
}

.ckc-card-size-large .ckc-card-icon svg {
  width: 20px;
  height: 22px;
}

.ckc-card-size-large .ckc-card-title {
  font-size: 26px;
  line-height: 110%;
}

.ckc-card-size-large .ckc-card-description {
  font-size: 14px;
}

/* Vertical center - when enabled, centers content for medium/large */
.ckc-card-content-vertical-center.ckc-card-size-medium .ckc-card-overlay,
.ckc-card-content-vertical-center.ckc-card-size-large .ckc-card-overlay {
  align-items: center;
}

.ckc-card-content-vertical-center.ckc-card-size-medium .ckc-card-content,
.ckc-card-content-vertical-center.ckc-card-size-large .ckc-card-content {
  margin-bottom: 0;
}

.ckc-card-content-vertical-center.ckc-card-size-medium,
.ckc-card-content-vertical-center.ckc-card-size-large {
  --ckc-card-lift: 0px;
}

/* Responsive */
@media (max-width: 1680px) {
  .ckc-card-size-medium .ckc-card-content,
  .ckc-card-size-large .ckc-card-content {
    margin-left: 1rem;
  }
}

@media (max-width: 768px) {
  .ckc-card-size-small {
    min-height: 100px;
  }

  .ckc-card-size-small .ckc-card-content {
    height: 50px;
    padding: 5px 15px;
    margin-left: 0.4rem;
    gap: 12px;
  }

  .ckc-card-size-small {
    --ckc-card-shift: 0.6rem;
  }

  .ckc-card-size-small .ckc-card-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .ckc-card-size-small .ckc-card-icon svg {
    width: 10px;
    height: 12px;
  }

  .ckc-card-size-small .ckc-card-title {
    font-size: 16px;
    line-height: 110%;
  }

  .ckc-card-size-medium {
    min-height: 200px;
  }

  .ckc-card-size-medium .ckc-card-title {
    font-size: 18px;
  }

  .ckc-card-size-large {
    min-height: 200px;
    max-height: 300px;
  }

  .ckc-card-size-large .ckc-card-title {
    font-size: 22px;
  }
}

/* Full height option - appliqué sur ckc-card-outer pour fonctionner en mode édition */
.elementor-widget-ckc-card-category-small:has(.ckc-card-full-height-enabled) {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.elementor-widget-ckc-card-category-small:has(.ckc-card-full-height-enabled)
  .elementor-widget-container,
.elementor-widget-ckc-card-category-small
  .ckc-card-outer.ckc-card-full-height-enabled {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.elementor-widget-ckc-card-category-small
  .ckc-card-outer.ckc-card-full-height-enabled
  .ckc-card-category-small {
  height: 100%;
  flex: 1;
  min-height: 0;
  max-height: none;
}


