.ades-projet-single {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;

  padding-block: clamp(30px, 4vw, 50px);
}

/* =========================================================
   EN-TÊTE
========================================================= */

.ades-projet-single__header {
  margin-bottom: clamp(30px, 4vw, 50px);
}

.ades-projet-single__cover {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 20px;

  margin-bottom: 28px;

  background: var(--color-primaire);
}

.ades-projet-single__cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ades-projet-single__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 16px;

  color: var(--color-primaire);

  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.ades-projet-single__back:hover {
  color: var(--color-primaire-clair);
}

.ades-projet-single__title {
  margin: 0 0 18px;

  color: var(--color-primaire);

  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
}

.ades-projet-single__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.ades-projet-single__badge {
  padding: 7px 16px;

  background: var(--color-primaire-tres-clair, #e4efe8);
  border-radius: 999px;

  color: var(--color-primaire);

  font-size: 0.85rem;
  font-weight: 700;
}

.ades-projet-single__badge--statut {
  background: var(--color-primaire);
  color: var(--color-blanc);
}

/* =========================================================
   CORPS
========================================================= */

.ades-projet-single__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.ades-projet-single__main {
  min-width: 0;
}

.ades-projet-single__lead {
  margin: 0 0 24px;

  color: var(--color-primaire);

  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.ades-projet-single__content {
  color: var(--color-noir);

  font-size: 1rem;
  line-height: 1.7;
}

.ades-projet-single__content p {
  margin: 0 0 18px;
}

.ades-projet-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Galerie */

.ades-projet-single__gallery {
  margin-top: 32px;
}

.ades-projet-single__slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;

  background: var(--color-primaire);
}

.ades-projet-single__slider .splide__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ades-projet-single__slider .splide__arrow {
  position: static !important;
  transform: none !important;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: var(--color-blanc);
  opacity: 1;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.ades-projet-single__slider .splide__arrows {
  position: absolute;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 12px;
}

.ades-projet-single__slider .splide__arrow svg {
  width: 14px;
  height: 14px;
  fill: var(--color-primaire);
}

/* Splide dessine le même chevron pour les deux flèches ; il faut
   retourner celle de "précédent" nous-mêmes (comme Hero/Partners). */
.ades-projet-single__slider .splide__arrow--prev svg {
  transform: scaleX(-1);
}

.ades-projet-single__slider .splide__pagination {
  position: absolute;
  inset-block-end: 28px;
  inset-inline-start: 20px;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 8px;

  width: auto;
  padding: 0;
}

.ades-projet-single__slider .splide__pagination li {
  margin: 0;
  line-height: 0;
}

.ades-projet-single__slider .splide__pagination__page {
  width: 18px;
  height: 3px;

  border: 0;
  border-radius: 50px;

  background: rgba(255, 255, 255, 0.75);
  opacity: 1;

  transform: none !important;
}

.ades-projet-single__slider .splide__pagination__page.is-active {
  width: 28px;
  background: var(--color-secondaire);
  transform: none !important;
}

/* =========================================================
   SIDEBAR INFOS
========================================================= */

.ades-projet-single__sidebar {
  min-width: 0;

  position: sticky;
  top: 24px;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ades-projet-single__infos {
  padding: 26px;

  background: var(--color-fond-clair, #f1f4fc);
  border-radius: 16px;
}

.ades-projet-single__infos h2 {
  margin: 0 0 18px;

  color: var(--color-primaire);

  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.ades-projet-single__infos ul {
  margin: 0;
  padding: 0;

  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ades-projet-single__infos li {
  display: flex;
  flex-direction: column;
  gap: 3px;

  padding-block-start: 14px;
  border-block-start: 1px solid #dbe2dd;
}

.ades-projet-single__infos li:first-child {
  padding-block-start: 0;
  border-block-start: 0;
}

.ades-projet-single__infos li strong {
  color: var(--color-noir);

  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ades-projet-single__infos li span {
  color: var(--color-primaire);

  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.ades-projet-single__cta {
  justify-content: center;
}
/* =========================================================
   VIDÉO DU PROJET — aperçu natif de la vidéo (sidebar)
========================================================= */

.ades-projet-single__video-trigger {
  display: block;

  width: 100%;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 16px;
  overflow: hidden;

  background: transparent;

  cursor: pointer;
}

.ades-projet-single__video-trigger:focus-visible {
  outline: 3px solid var(--color-secondaire);
  outline-offset: 3px;
}

.ades-projet-single__video-trigger-image {
  position: relative;

  width: 100%;
  aspect-ratio: 3 / 4;

  background: #000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.ades-projet-single__video-trigger-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ades-projet-single__video-trigger-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  border: 0;
  border-radius: 50%;

  background: var(--color-secondaire);
  color: var(--color-primaire);

  font-size: 1.4rem;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.ades-projet-single__video-trigger:hover
  .ades-projet-single__video-trigger-play,
.ades-projet-single__video-trigger:focus-visible
  .ades-projet-single__video-trigger-play {
  transform: translate(-50%, -50%) scale(1.08);
}

/* =========================================================
   POPUP VIDÉO — LE BLOC CRUCIAL, VÉRIFIE QU'IL EST BIEN PRÉSENT
========================================================= */

body.ades-projet-video-open {
  overflow: hidden;
}

.ades-projet-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ades-projet-video-modal[hidden] {
  display: none;
}

.ades-projet-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.ades-projet-video-modal__dialog {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 960px;

  border-radius: 16px;
  overflow: hidden;

  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.ades-projet-video-modal__player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ades-projet-video-modal__close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 0;
  border-radius: 50%;

  background: #ffffff;
  color: var(--color-primaire);

  cursor: pointer;
  transition: background-color 0.2s ease;
}
button.ades-projet-single__video-trigger,
button.ades-projet-single__video-trigger:hover {
  border: none !important;
  padding: 0 !important;
}
button.ades-projet-video-modal__close {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
}
.ades-projet-video-modal__close:hover,
.ades-projet-video-modal__close:focus-visible {
  background: var(--color-secondaire);
}

.ades-projet-video-modal__fallback {
  padding: 40px 24px;
  text-align: center;
  color: #ffffff;
}

.ades-projet-video-modal__fallback p {
  margin: 0 0 20px;
  font-size: 1rem;
}
/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .ades-projet-single__body {
    grid-template-columns: 1fr;
  }

  .ades-projet-single__sidebar {
    position: static;
  }
}
