.nfg-section {
  width: 100%;
  padding: 0;
  background: transparent;
  margin-top: 20px;
  margin-bottom: 20px;

}

.nfg-wrap {
  --nfg-max: var(--widmer-max, 1140px);
  --nfg-bg: var(--widmer-gray-bg, #efefef);
  --nfg-text: var(--widmer-text, #2d2d2d);
  --nfg-muted: #7b7b7b;
  --nfg-accent: var(--widmer-orange, #e9a23d);
  --nfg-anthracite: var(--widmer-gray-dark, #4b4b4b);
  --nfg-gap: 24px;
  --nfg-thumb-gap: 12px;

  max-width: var(--nfg-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--nfg-gap);
  align-items: stretch;
}

.nfg-wrap--right .nfg-main {
  order: 2;
}

.nfg-wrap--right .nfg-panel {
  order: 1;
}

.nfg-main,
.nfg-panel {
  min-width: 0;
}

/* IMAGE PRINCIPALE CARREE */
.nfg-main__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ddd;
}

.nfg-main__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PANNEAU DROIT */
.nfg-panel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--nfg-bg);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.nfg-panel__inner {
  min-width: 0;
  max-width: 100%;
  padding: 48px 42px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nfg-panel__head,
.nfg-description,
.nfg-actions {
  max-width: 100%;
}

.nfg-title {
  margin: 0 0 18px;
  color: var(--nfg-text);
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  word-break: break-word;
}

.nfg-date {
  margin-bottom: 18px;
  color: var(--nfg-accent);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nfg-description {
  color: var(--nfg-muted);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0 auto;
}

.nfg-description p:last-child {
  margin-bottom: 0;
}

.nfg-actions {
  margin-top: 28px;
}

.nfg-button {
  display: inline-block;
  padding: 14px 26px;
  background: var(--nfg-anthracite);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: .25s ease;
}

.nfg-button:hover {
  background: var(--nfg-accent);
  color: #fff;
}

/* MINIATURES */
.nfg-thumbs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0 18px 18px;
}

.nfg-thumbs .owl-stage-outer {
  overflow: hidden;
}

.nfg-thumbs .owl-stage {
  display: flex;
  align-items: stretch;
}

.nfg-thumbs .owl-item {
  display: block;
}

/* IMPORTANT : le carré est défini ici */
.nfg-thumb {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  height: auto !important;
  min-height: 0;
}

/* Fallback vieux navigateurs */
.nfg-thumb::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.nfg-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.nfg-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  transition: .2s ease;
  pointer-events: none;
  z-index: 2;
}

.nfg-thumb.is-active::after,
.nfg-thumb:hover::after {
  border-color: var(--nfg-accent);
}

.nfg-thumbs .owl-item,
.nfg-thumbs .item,
.nfg-thumbs .owl-item > * {
  height: auto !important;
}

/* NAV OWL */
.nfg-thumbs .owl-nav {
  margin-top: 0;
}

.nfg-thumbs .owl-nav button.owl-prev,
.nfg-thumbs .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--nfg-accent) !important;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 1 !important;
  border-radius: 0;
}

.nfg-thumbs .owl-nav button.owl-prev {
  left: 0;
}

.nfg-thumbs .owl-nav button.owl-next {
  right: 0;
}

.nfg-thumbs .owl-nav button.disabled {
  opacity: .5;
}

/* DESKTOP */
@media (min-width: 992px) {
  .nfg-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .nfg-panel {
    height: 100%;
  }
}

/* TABLET / MOBILE */
@media (max-width: 991.98px) {
  .nfg-wrap {
    grid-template-columns: 1fr;
  }

  .nfg-wrap--right .nfg-main,
  .nfg-wrap--right .nfg-panel {
    order: initial;
  }

  .nfg-panel {
    grid-template-rows: auto auto;
  }

  .nfg-panel__inner {
    padding: 36px 24px 20px;
  }

  .nfg-thumbs {
    padding: 0 16px 16px;
  }
}

@media (max-width: 575.98px) {
  .nfg-title {
    font-size: 1.75rem;
  }

  .nfg-panel__inner {
    padding: 28px 18px 18px;
  }
}