:root {
  --sidebarWidth: 100%;
  --contentWidth: 100%;
  --layoutGap: 0;
}

@media (min-width: 992px) {
  :root {
    --sidebarWidth: 40%;
    --contentWidth: calc(100% - var(--sidebarWidth));
    --layoutGap: 30px;
  }
}

@media (min-width: 1200px) {
  :root {
    --sidebarWidth: 30%;
    --contentWidth: calc(100% - var(--sidebarWidth));
    --layoutGap: 60px;
  }
}

.h2, 
.h3,
.h4 {
  display: block;
  font-weight: bold;
}
.h2 {
    font-size: 1.5rem;
}
.h3 {
    font-size: 1.17rem;
}
.h4 {
    font-size: 1em;
} 

/* DETAIL */
/* Layout */
.single-apidae .apidae-row {
  gap: var(--layoutGap);
}

.single-apidae .apidae-row > .wp-block-column.group-main,
.single-apidae .apidae-row > .wp-block-column.group-sidebar {
  flex-basis: auto;
  flex-grow: unset;
  position: relative;
  z-index: 0;
}

.single-apidae .apidae-row > .wp-block-column.group-sidebar {
  min-width: var(--sidebarWidth);
  width: var(--sidebarWidth);
}

@media (min-width: 768px) {
  .single-apidae .apidae-row {
    flex-wrap: wrap !important;
  }
}

@media (min-width: 992px) {
  .single-apidae .apidae-row {
    flex-wrap: nowrap !important;
  }
}

/* DETAIL */
/* Collapsible groups */
.single-apidae details {
  margin: 15px 0;
}

.single-apidae summary {
  list-style-type: none;
}

.single-apidae summary::-webkit-details-marker {
  display: none;
}

.single-apidae summary > .h2 {
  font-size: 26px;
  margin-bottom: 15px;
}
  
.single-apidae details summary {
  border: 0 none;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 15px;
  cursor: pointer;
}

.single-apidae details summary .h2 {
  margin: 0;
  position: relative;
  border-bottom: solid 1px;
}

.single-apidae .group-contact-address {
  padding-left: 40px;
  position: relative;
}

.single-apidae .group-contact-address::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  background: var(--color-1);
  position: absolute;
  top: 0;
  left: 5px;
  mask-image: url('../icons/exemple/place.svg');
  mask-size: contain;
  mask-position: center center;
  mask-repeat: no-repeat;
}

.single-apidae details summary .h2::after {
  mask-image: url('../icons/exemple/chevron.svg');
  mask-size: contain;
  mask-position: center center;
  mask-repeat: no-repeat;
}

.single-apidae details summary .h2::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 9px;
  right: 0;
  background: currentColor;
  transform: rotateZ(-90deg);
}

.single-apidae details[open] summary .h2::after {
  transform: rotateZ(0);
}

.single-apidae .splide {
  padding-bottom: 60px;
}

.single-apidae .splide img {
  width: 100%;
}

.single-apidae .splide .splide__arrows {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 115px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.single-apidae .splide .splide__arrows .splide__arrow {
  display: inline-flex;
  vertical-align: top;
  position: static;
  transform: none;
  height: auto;
  width: auto;
  padding: 17px;
  background: var(--color-1);
  pointer-events: all;
}

.single-apidae .splide .splide__arrows .splide__arrow svg {
  fill: #FFFFFF;
}

.single-apidae .splide .splide__arrows .splide__arrow.btn-prev {
  transform: rotateZ(180deg);
}

.single-apidae .splide .splide__slide .wrapper {
  position: relative;
}

.single-apidae .splide .splide__slide .wrapper .copyright {
  display: none;
}

/* DETAILS */
/* Groups */
.single-apidae .group-contact-address {
  margin-bottom: 15px;
}

.single-apidae .group-contact-address .address-1 {
  font-weight: 700;
}

.single-apidae .group-contact-links {
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.single-apidae .group-descriptifcourt div {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: bold;
}

.single-apidae .group-contact-links .btn {
  width: 100%;
  text-decoration: none;
}

/* DETAIL */
/* Fields */
.single-apidae .main-image img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  display: block;
}

.taxonomy-list {
  margin-bottom: 15px;
}

.details-wrapper > ul,
.details-wrapper > ul li {
  list-style-type: none;
  padding: 0; 
}

.taxonomy-list ul {
  margin: 0;
}

.details-wrapper > ul li {
  width: 100%;
  padding-right: 15px;
  margin: 0;
  position: relative;
  margin-bottom: 0;
  break-inside: avoid-column;
  page-break-inside: avoid;
  padding-top: 6px;
  padding-bottom: 6px;
  min-height: 20px;
}

.taxonomy-list .details-wrapper > ul {
  column-count: 2;
  margin: 0;
  margin-top: 5px;
}

@media (min-width: 768px) {
  .taxonomy-list .details-wrapper > ul {
    column-count: 3;
  }
}

@media (min-width: 1200px) {
  .taxonomy-list .details-wrapper > ul {
    column-count: 4;
  }
}

/* Field paiement */
.group-apidae-langues_parlees .details-wrapper > ul,
.group-apidae-modes_paiement .details-wrapper > ul {
  column-count: unset;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.group-apidae-langues_parlees .taxonomy-apidae-langues_parlees,
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement {
  font-size: 0;
  width: 55px;
  height: 45px;
  padding: 0;
  position: relative;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.group-apidae-langues_parlees .taxonomy-apidae-langues_parlees {
  width: 40px;
  height: 28px;
  background-size: cover;
  border-radius: 6px;
  background-image: url('../icons/flags/default.svg');
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement {
  background-image: url('../icons/payment/default.svg');
}

.group-apidae-langues_parlees .taxonomy-apidae-langues_parlees::after,
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement::after {
  content: attr(data-title);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  min-width: 120px;
  max-width: 220px;
  padding: 6px 9px;
  background: #000000;
  color: #FFFFFF;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 0.25s;
  line-height: 1.2;
  font-size: 14px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.group-apidae-langues_parlees .taxonomy-apidae-langues_parlees:hover::after,
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement:hover::after {
  opacity: 1;
}
/* Langues */ 
.group-apidae-langues_parlees .taxonomy-apidae-langues_parlees.apidae-id-1192 {
  background-image: url('../icons/flags/en.svg');
}

.group-apidae-langues_parlees .taxonomy-apidae-langues_parlees.apidae-id-1197 {
  background-image: url('../icons/flags/fr.svg');
}

.group-apidae-langues_parlees .taxonomy-apidae-langues_parlees.apidae-id-1200 {
  background-image: url('../icons/flags/it.svg');
}

.group-apidae-langues_parlees .taxonomy-apidae-langues_parlees.apidae-id-1194 {
  background-image: url('../icons/flags/es.svg');
}

.group-apidae-langues_parlees .taxonomy-apidae-langues_parlees.apidae-id-1189 {
  background-image: url('../icons/flags/de.svg');
}
.group-apidae-langues_parlees p {
  background-image: url('../icons/translation.svg');
  background-repeat: no-repeat;
  background-size: 25px;
  padding-left: 30px;
}


/* Paiement */
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement {
  filter: grayscale(100%);
  transition: filter 0.25s;
  &:hover {
    filter: grayscale(0%);
  }
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-1268 {
  background-image: url('../icons/payment/cb.svg');
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-1271 {
  background-image: url('../icons/payment/cheques.svg');
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-1277 {
  background-image: url('../icons/payment/cash.svg');
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-6284 {
  background-image: url('../icons/payment/applepay.svg');
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-1274 {
  background-image: url('../icons/payment/ancv-vacances.svg');
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-1265 {
  background-image: url('../icons/payment/card-american-express.svg');
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-6283 {
  background-image: url('../icons/payment/contactless.svg');
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-5558 {
  background-image: url('../icons/payment/online-payment.svg');
}
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-4098 {
  background-image: url('../icons/payment/carte-ticket-restaurant.svg');
}
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-6181 {
  background-image: url('../icons/payment/cheque-vacances-connect.svg');
}
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-6367 {
  background-image: url('../icons/payment/coupon-sport-ancv.png');
}
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-1287 {
  background-image: url('../icons/payment/paypal.svg');
}
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-1285 {
  background-image: url('../icons/payment/titre-restaurant.svg');
}
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-1281 {
  background-image: url('../icons/payment/virement.svg');
}
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-6852 {
  background-image: url('../icons/payment/wero.svg');
}

/*
.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-1266 {
  background-image: url('../icons/payment/bons-caf.svg');
}

.group-apidae-modes_paiement .taxonomy-apidae-modes_paiement.apidae-id-6762 {
  background-image: url('../icons/payment/cinecheque.svg');
}*/


.apidae-dateModification {
    font-size: var(--wp--preset--font-size--small);
    font-style: italic;
    text-align: right;
}


.ws-apidae-group-map-address {
    background-color: #EEE;
    border-radius: 0.5rem;
}