/* Présentation du domaine. */
.ppf-domain  {
  margin-top: clamp(88px, 10vw, 160px);
  padding-bottom: 24px;
  scroll-margin-top: 24px;
}

.ppf-domain__heading  {
  display: grid;
  grid-template-columns: 60% minmax(0, 1fr);
  gap: 2%;
  align-items: center;
  margin-bottom: clamp(28px, 2.65vw, 42px);
}

.ppf-domain__heading h2  {
  margin: 0;
  font-size: clamp(38px, 5.125vw, 82px);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.ppf-domain__heading > p  {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.157vw, 18.5px);
  line-height: 1.72;
}

.ppf-domain__layout  {
  display: grid;
  grid-template-columns: minmax(0, 690fr) minmax(0, 407fr);
  gap: 1.26%;
  align-items: start;
}

.ppf-domain__figure  {
  margin: 0;
  min-width: 0;
}

.ppf-domain__image-link  {
  position: relative;
  display: block;
  aspect-ratio: 690 / 581;
  border-radius: clamp(20px, 1.98vw, 32px);
  cursor: zoom-in;
}

.ppf-domain__image-link > img  {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* Repères sur la vue du domaine. */
.ppf-domain__figure figcaption  {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ppf-domain__figure figcaption a  {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ppf-domain__cards  {
  display: grid;
  gap: 1.26cqw;
  min-height: 52.3cqw;
  grid-template-rows: 181fr 181fr 191fr;
}

.ppf-domain__card  {
  min-width: 0;
  padding: 2.35cqw 1.8cqw;
  border: 1px solid #2a3830;
  border-radius: clamp(20px, 1.82vw, 29px);
  background: #0d1b16;
}

.ppf-domain__label  {
  margin: 0 0 1.6cqw;
  color: #c7ff48;
  font-size: clamp(11px, .9cqw, 14px);
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
}

.ppf-domain__card h3  {
  margin: 0 0 1.1cqw;
  font-size: clamp(19px, 1.89cqw, 28px);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.ppf-domain__description  {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.26cqw, 19px);
  line-height: 1.5;
}

.ppf-domain-dialog  {
  width: min(1200px, 94vw);
  max-width: 94vw;
  max-height: 94dvh;
  padding: 16px;
  border: 1px solid #2a3830;
  border-radius: 20px;
  background: #0d1b16;
  color: var(--text);
}

.ppf-domain-dialog::backdrop  {
  background: rgb(0 0 0 / 85%);
}

.ppf-domain-dialog form  {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.ppf-domain-dialog__close  {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #2a3830;
  border-radius: 24px;
  background: #06110d;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.ppf-domain-dialog__close span  {
  font-size: 24px;
}

.ppf-domain-dialog > img  {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75dvh;
  object-fit: contain;
}

@media (max-width: 900px)  {
  .ppf-domain__layout  {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ppf-domain__cards  {
    min-height: 0;
    grid-template-rows: none;
  }

  .ppf-domain__heading  {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ppf-domain__heading > p  {
    max-width: 560px;
    font-size: 16px;
  }

  .ppf-domain__card  {
    padding: 22px 18px;
  }

  .ppf-domain__cards  {
    gap: 14px;
  }

  .ppf-domain__label  {
    margin-bottom: 18px;
  }

  .ppf-domain__card h3  {
    margin-bottom: 12px;
  }

}

@media (max-width: 700px)  {
  .ppf-domain  {
    margin-top: 80px;
  }

  .ppf-domain__heading  {
    margin-bottom: 28px;
  }

  .ppf-domain__heading h2  {
    font-size: clamp(28px, 7.8vw, 54px);
  }

  .ppf-domain__layout  {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ppf-domain__cards  {
    min-height: 0;
    grid-template-rows: none;
  }

  .ppf-domain__card  {
    padding: 26px 22px;
  }

  .ppf-domain__card h3  {
    font-size: 23px;
  }

  .ppf-domain__description  {
    font-size: 16px;
  }

}

/* Accès visible aux fiches détaillées depuis le domaine. */
.ppf-domain__pond-link  {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:22px;
  padding:14px 20px;
  min-height:48px;
  border-radius:28px;
  background:#c7ff48;
  color:#06110d;
  font-size:14px;
  line-height:1.35;
  font-weight:700;
  text-decoration:none;
}

.ppf-domain__pond-link:hover  {
  background:#d5ff7a;
}

@media(max-width:700px) { .ppf-domain { margin-top:64px; } }
