/* ============================================
     CONTENEUR PRINCIPAL
     ============================================ */
li.card__item {
  list-style: none;
  margin: 0;
  width: 100%;
  max-width: 350px;
  box-shadow: none !important;
  padding: 0px !important;
  border: 1px solid lightgray;
  border-radius: var(--sp-radius-card);
  display: flex;
  height: 100%;
}

@media screen and (min-width: 1000px) {
  li.card__item {
    max-width: 900px;
  }
}

.card__container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 400px;
  height: 100%;
  background: transparent;
}

/* Layout vertical - conteneur */
.card__layout-vertical.card__item {
  max-width: 350px;
  margin: 0 auto;
}

.card__layout-vertical .card__container {
  flex-direction: column;
  align-items: center;
}

/* ============================================
     SECTION MEDIA (Images)
     ============================================ */
/* Section media - général */
.card__section-media {
  flex: 30%;
  max-width: 350px;
  min-height: 350px;
  display: flex;
  overflow: hidden;
}

.card__section-media a {
  display: block;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.card__section-media img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  max-height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

/* Section media - layout vertical */
.card__layout-vertical .card__section-media {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: var(--sp-color-bg);
  padding: 0;
  min-height: 350px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.card__layout-vertical .card__section-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.card__layout-vertical .card__section-media img {
  width: 100% !important;
  height: 100%;
  min-height: 350px;
  max-height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

/* ============================================
     SECTION INFOS
     ============================================ */
/* Section infos - général */
.card__section-infos {
  background: white;

  border-radius: 0;
  /* border-bottom-right-radius: var(--sp-radius-card);
  border-top-right-radius: var(--sp-radius-card); */
  width: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
  box-shadow: 2px 4px 15px rgba(20, 40, 90, 0.12);
  flex: 1;
  min-height: 0;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Section infos - layout vertical */
.card__layout-vertical .card__section-infos {
  height: auto;
  min-height: auto;
  width: 100%;
  align-items: center;
  padding: 1.5rem;
  gap: 1rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-content: flex-start;
}

/* Section infos - Top (Titre) */
.card__section-infos-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 2.5rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.card__layout-vertical .card__section-infos-top {
  justify-content: center;
  width: 100%;
}

.card__section-infos-top-title {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--global-palette3);
  gap: 0.5rem;
}

.card__section-infos-top-title-title {
  text-align: left;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--global-palette3);
  letter-spacing: 0.05rem;
}

.card__section-infos-top-title-separator {
  display: block;
  font-size: 1.2rem;
}

.card__section-infos-top-title-type {
  position: relative;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--global-palette2);
  letter-spacing: 0.06rem;
}

/* Layout vertical - titre en colonne */
.card__layout-vertical .card__section-infos-top-title {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  text-align: center;
}

.card__layout-vertical .card__section-infos-top-title-title {
  text-align: center;
}

/* Section infos - Middle (Contenu) */
.card__section-infos-middle {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--global-palette3);
  min-height: 0;
  margin: 0;
  padding: 0;
  margin-top: auto;
  margin-bottom: auto;
}

.card__layout-vertical .card__section-infos-middle {
  gap: 1rem;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  flex: 1;
  margin-top: auto;
  margin-bottom: auto;
}

/* Services */
.card__section-infos-middle-services {
  border-left: 2px solid var(--global-palette7, lightgray);
  font-size: 0.95rem;
  color: var(--global-palette3);
  line-height: 1.5;
  list-style: none;
  padding-left: 0.5rem;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 0 1 auto;
  align-self: flex-start;
  height: fit-content;
  min-height: fit-content;
}

.card__section-infos-middle-services ul {
  margin: 0 !important;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.card__section-infos-middle-services p {
  margin: 0 !important;
}

.card__section-infos-middle-services li {
  font-size: 0.95rem;
}

.card__section-infos-middle-services i {
  font-size: 1.2rem;
  margin: 0 0.5rem;
}

.card__layout-vertical .card__section-infos-middle-services {
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.card__section-infos-middle-services-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card__section-infos-middle-services-item i {
  flex-shrink: 0;
}

/* WP Social Reviews  retirer les effets visuels des badges */
.wpsr-reviews-badge-wrapper .wpsr-reviews-badge-btn,
.wpsr-reviews-badge-wrapper .wpsr-reviews-badge-html {
  box-shadow: none !important;
}
.wpsr-reviews-badge-btn.wpsr-default {
  box-shadow: none !important;
  margin: 0 !important;
}

/* Icône par défaut : petit carré avec bords arrondis */
/* .card__section-infos-middle-services-item .acf-icon-default {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--global-palette3, #666);
  border-radius: 3px;
  font-style: normal;
} */

/* Avis WP Social Reviews */
.card__section-infos-middle-rating {
  display: none;
  text-align: left !important;
}

.card__infos-bottom-rating {
  display: none;
}

.card__layout-vertical .card__infos-bottom-rating {
  display: none;
  text-align: center !important;
  width: 100%;
}

.card__layout-vertical .card__section-infos-middle-rating {
  display: block;
  text-align: center !important;
  width: 100%;
  display: flex;
  justify-content: center;
}

.wpsr-business-info-logo {
  display: none !important;
}

/* Section infos - Bottom (Prix et Actions) */
.card__infos-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-shrink: 0;
}

.card__layout-vertical .card__infos-bottom {
  width: 100%;
  gap: 1.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card__infos-bottom-wrapper {
  width: 100%;
  display: flex;
  margin-top: 0;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
}

.card__layout-vertical .card__infos-bottom-wrapper {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================
     PRIX
     ============================================ */
/* Prix personnalisé */
.price__custom {
  color: var(--global-palette3);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: left;
}

.card__layout-vertical .price__custom {
  width: 100%;
  align-items: flex-end;
  text-align: center;
}

.price__custom-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.price__custom-price {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.05rem;
}

.price__custom-duration {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--global-palette3);
  letter-spacing: 0.05rem;
}

.price__custom-unit-price {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--global-palette3);
  letter-spacing: 0.05rem;
}

.price__custom-contact {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--global-palette3);
  text-align: center;
  text-transform: Uppercase;
}

/* Prix WooCommerce */
.card__infos-bottom-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--global-palette3);
  letter-spacing: 0.05rem;
}

.card__infos-bottom-price .amount {
  color: green;
}

.card__infos-bottom-price .price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
}

.card__layout-vertical .card__infos-bottom-price {
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

.card__layout-vertical .card__infos-bottom-price .price {
  justify-content: center;
}

/* ============================================
     ACTIONS (Boutons)
     ============================================ */
.card__infos-bottom-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.card__infos-bottom-actions .button,
.card__infos-bottom-actions-button {
  width: 100%;
  margin: 0 auto;
  background: var(--global-palette1) !important;
  color: #fff;
  border-radius: 6px;
  padding: 0.5rem;
  font-weight: 500;
  border: none;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.5s ease;
  box-shadow: 0 8px 20px rgba(30, 112, 186, 0.25);
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.03rem;
}

.card__infos-bottom-actions .button:hover,
.card__infos-bottom-actions-button:hover {
  background: var(--global-palette1) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.card__infos-bottom-actions .button:focus-visible {
  outline: 3px solid var(--global-palette1) !important;
  outline-offset: 2px;
}

/* ============================================
     RESPONSIVE
     ============================================ */
/* Mobile (max-width: 767px) - Toutes les cartes en style vertical */
@media screen and (max-width: 1000px) {
  /* Conteneur - toutes les cartes */
  .card__item {
    max-width: 100%;
  }

  .card__container {
    flex-direction: column;
    align-items: center;
  }

  /* Section media - toutes les cartes en style vertical */
  .card__section-media {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    background: var(--sp-color-bg);
    padding: 0;
    min-height: 300px;
    width: 100%;
    position: relative;
    z-index: 1;
    max-width: 100%;
  }

  .card__section-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .card__section-media img {
    min-width: 280px !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: none;
    min-height: 280px;
    height: auto;
    /* object-fit: contain; */
  }

  /* Section infos - toutes les cartes en style vertical */
  .card__section-infos {
    height: auto;
    min-height: auto;
    width: 100%;
    align-items: center;
    padding: 1.5rem;
    gap: 1rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    justify-content: flex-start;
    transform: none;
  }

  .card__section-infos-top {
    justify-content: center;
    width: 100%;
  }

  .card__section-infos-top-title {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    text-align: center;
  }

  .card__section-infos-top-title-title {
    text-align: center;
  }

  .card__section-infos-middle {
    gap: 1rem;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    flex: 1;
    margin-top: auto;
    margin-bottom: auto;
  }

  .card__section-infos-middle-services {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .card__section-infos-middle-rating {
    display: block;
    text-align: center !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .card__infos-bottom-rating {
    display: none;
  }

  .card__infos-bottom {
    width: 100%;
    gap: 1.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
  }

  .card__infos-bottom-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .price__custom {
    width: 100%;
    align-items: flex-end;
    text-align: center;
  }

  .card__infos-bottom-price {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .card__infos-bottom-price .price {
    justify-content: center;
  }
}

/* Desktop - Layout horizontal (min-width: 768px) */
@media screen and (min-width: 1001px) {
  .card__layout-horizontal .card__container {
    flex-direction: row;
    align-items: center;
    position: relative;
  }
  .card__layout-horizontal .card__infos-bottom {
    align-items: flex-end;
  }
  .card__layout-horizontal .card__infos-bottom-actions {
    width: 50%;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .card__layout-horizontal .card__section-media {
    align-self: stretch;
    flex: 0 0 40%;
    max-width: 450px;
  }

  .card__layout-horizontal .card__section-infos {
    flex: 0 0 60%;
    align-self: stretch;
    position: relative;
    z-index: 2;
  }

  .card__layout-horizontal .card__section-media img {
    height: 100% !important;
    width: 100% !important;
  }

  .card__layout-horizontal .card__section-infos-middle-rating {
    display: none;
  }

  .card__layout-horizontal .card__infos-bottom-rating {
    display: block;
  }
}
