/* ==========================================================
   FICHIER /assets/css/shortcode/chaton-dispo.css
   ========================================================== */

.ge-chatons-dispo__card{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ge-chatons-dispo__card > *{
  width: 100%;
  max-width: 1100px;
}

.ge-chatons-dispo__header{
  margin-bottom: 14px;
  text-align: center;
}

.ge-chatons-dispo__title{
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
  color: #111;
}

/* Grille */
.ge-chatons-dispo__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-content: center;
}

/* Bloc */
.ge-chatons-dispo__bloc{
  border: 1px solid #d0d4dc;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Parents */
.ge-chatons-dispo__parents{
  display: grid;
  grid-template-columns: 45% 10% 45%;
  align-items: start;
  justify-items: center;
  text-align: center;
  gap: 0;
}

.ge-chatons-dispo__parents > *{
  min-width: 0;
}

.ge-chatons-dispo__parent{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.ge-chatons-dispo__role{
  font-size: 12px;
  color: #6c757d;
  font-weight: 800;
  margin-bottom: 4px;
  width: 100%;
}

.ge-chatons-dispo__name{
  width: 100%;
  max-width: 100%;
  font-weight: 900;
  color: #111;
  line-height: 1.15;
  font-size: clamp(20px, 3vw, 36px);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.ge-chatons-dispo__x{
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  color: #111;
  line-height: 1;
}

/* Statut */
.ge-chatons-dispo__when{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.ge-chatons-dispo__when-main{
  font-weight: 900;
  color: #111;
  font-size: 16px;
}

.ge-chatons-dispo__when-sub{
  margin-top: 4px;
  color: #6c757d;
  font-size: 13px;
}

/* Photos */
.ge-chatons-dispo__photos{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 49% 49%;
  justify-content: space-between;
}

.ge-chatons-dispo__photo{
  border: 1px solid #d0d4dc;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f6f7f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}

.ge-chatons-dispo__photo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ge-chatons-dispo__photo-ph{
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1f3f5, #e9ecef);
}

/* Présentation */
.ge-chatons-dispo__presentation{
  border: 1px solid #d0d4dc;
  border-radius: 14px;
  color: #000;
  font-size: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  line-height: 1.5;
}

/* Galerie */
.ge-chatons-dispo__gallery{
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.ge-chatons-dispo__gallery *{
  max-width: 100%;
  box-sizing: border-box;
}

.ge-chatons-dispo__gallery img{
  max-width: 100%;
  height: auto;
  display: block;
}
.ge-chatons-dispo__bloc{
  overflow: hidden;
}

.ge-chatons-dispo__gallery{
  width: 100%;
  max-width: 100%;
}

.ge-chatons-dispo__gallery > *{
  width: 100% !important;
  max-width: 100% !important;
}

/* Desktop */
@media (min-width: 980px){
  .ge-chatons-dispo__grid{
    grid-template-columns: 1fr 1fr;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile */
@media (max-width: 760px){
  .ge-chatons-dispo__parents{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ge-chatons-dispo__x{
    display: none;
  }

  .ge-chatons-dispo__photos{
    gap: 10px;
  }
}