/*
 * Webpratique - Page d'accueil
 * Bootscore Child
 */

.wp-home {
  min-width: 0;
}

.wp-home-atlas,
.wp-home-selection,
.wp-home-content {
  min-width: 0;
}

.wp-home-heading {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--bs-border-color);
}

.wp-home-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background: var(--bs-body-bg);
}

.wp-home-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.wp-home-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-home-card-body {
  padding: 14px;
}

.wp-home-card-title {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.4;
  margin: 0 0 .5rem;
}

.wp-home-card-title a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.wp-home-card-title a:hover {
  color: var(--bs-primary);
}

.wp-home-date {
  display: block;
  font-size: .8rem;
  color: var(--bs-secondary-color);
  margin-bottom: .6rem;
}

.wp-home-excerpt {
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
}

.wp-home-widget {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wp-home-widget-title {
  margin-bottom: .75rem;
}

.wp-home-sidebar {
  min-width: 0;
}

@media (max-width: 767.98px) {
  .wp-home-card-body {
    padding: 12px;
  }

  .wp-home-card-title {
    font-size: 1rem;
  }

  .wp-home-heading {
    font-size: 1.2rem;
  }
}



/* Sélection d'articles */

.wp-selection {
  min-width: 0;
}

.wp-selection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.wp-selection-item {
  min-width: 0;
}

.wp-selection-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bs-tertiary-bg, #eee);
}

.wp-selection-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-selection-title {
  margin: 8px 0 0;
  font-size: .9rem;
  line-height: 1.4;
  font-weight: 600;
}

.wp-selection-title a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.wp-selection-title a:hover {
  color: var(--bs-primary);
}

@media (max-width: 991.98px) {
  .wp-selection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .wp-selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .wp-selection-title {
    font-size: .85rem;
  }
}


/* Accueil : trois colonnes */
.wp-home-columns > * {
  min-width: 0;
}

.wp-home-left,
.wp-home-sidebar,
.wp-home-news {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wp-home-left .wp-home-widget,
.wp-home-sidebar .wp-home-widget {
  margin-bottom: 18px;
}

.wp-home-left img,
.wp-home-sidebar img,
.wp-home-news img,
.wp-home-left iframe,
.wp-home-sidebar iframe {
  max-width: 100%;
}

.wp-home-left img,
.wp-home-sidebar img {
  height: auto;
}

.wp-home-news .row > * {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .wp-home-column-main { order: 1; }
  .wp-home-column-left { order: 2; }
  .wp-home-column-right { order: 3; }
}
