/* V28 - bandeau blanc fondu uniquement sur la colonne gauche du PROJET.
   Ne change ni la grille du menu ni les espacements du contenu. */
.cms-project-modal .cms-project-nav {
  isolation: isolate !important;
  background: transparent !important;
}
.cms-project-modal .cms-project-nav::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50vw;
  height: 105px;
  background: linear-gradient(to bottom,
    #fff 0%,
    #fff 52%,
    rgba(255,255,255,.96) 68%,
    rgba(255,255,255,.72) 82%,
    rgba(255,255,255,0) 100%);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 700px) {
  .cms-project-modal .cms-project-nav::after {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 130px;
  }
}

/* Titre PROJET : taille inspirée de la référence WINDOW BODIES.
   Ne change pas le menu, le fondu ni le texte de description. */
.cms-project-modal .cms-project-title {
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 1.12 !important;
}
@media (max-width: 700px) {
  .cms-project-modal .cms-project-title {
    font-size: 28px !important;
  }
}

/* Rythme typographique inspiré de WINDOW BODIES :
   uniquement la colonne de texte des pages PROJET. */
.cms-project-modal .cms-project-title {
  margin: 0 0 14px !important;
  letter-spacing: 0 !important;
}
.cms-project-modal .cms-project-text {
  font-size: 16px !important;
  line-height: 1.16 !important;
  margin: 0 0 30px !important;
}
.cms-project-modal .cms-project-copy .cms-captions {
  margin-top: 28px !important;
  margin-bottom: 30px !important;
  column-gap: 14px !important;
  row-gap: 26px !important;
}
.cms-project-modal .cms-project-copy .cms-caption {
  font-size: 11px !important;
  line-height: 1.18 !important;
  gap: 5px !important;
}
@media (max-width: 700px) {
  .cms-project-modal .cms-project-title { margin-bottom: 12px !important; }
  .cms-project-modal .cms-project-text { line-height: 1.22 !important; margin-bottom: 25px !important; }
  .cms-project-modal .cms-project-copy .cms-captions { margin-top: 22px !important; row-gap: 20px !important; }
}

/* Bouton FERMER : même ligne de base visuelle que la première ligne du menu. */
.cms-project-modal .cms-project-close {
  top: 10px !important;
  /* Bord droit du bloc blanc (50 % de la fenetre), marge 10 px */
  left: calc(50% - 10px) !important;
  right: auto !important;
  transform: translateX(-100%) !important;
  margin: 0 !important;
  padding: 0 !important;
  font: 400 19.2px/1 "neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
}

/* FERMER uniquement : flou au survol, sans changer les autres éléments. */
.cms-project-modal .cms-project-close { transition: filter .25s ease !important; }
.cms-project-modal .cms-project-close:hover { filter: blur(2.5px) !important; }

/* Sur petit ecran, conserver la position mobile existante. */
@media (max-width: 700px) {
  .cms-project-modal .cms-project-close {
    left: auto !important;
    right: 10px !important;
    transform: none !important;
    top: 15px !important;
    font-size: 14px !important;
    line-height: 1.05 !important;
  }
}

/* FERMER doit rester au-dessus du bandeau degrade et du menu. */
.cms-project-modal .cms-project-close {
  z-index: 2147482005 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #000 !important;
}

/* Correctif strictement limite a FERMER : au-dessus du menu fixe. */
@media (min-width: 701px) {
  body .cms-project-modal > button.cms-project-close {
    position: fixed !important;
    top: 10px !important;
    left: auto !important;
    right: calc(50vw + 10px) !important;
    transform: none !important;
    z-index: 2147483647 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    filter: none;
    pointer-events: auto !important;
  }
  body .cms-project-modal > button.cms-project-close:hover {
    filter: blur(2.5px) !important;
  }
}

/* Ajustement exclusif du bouton FERMER : rendu plus discret et net. */
.cms-project-modal .cms-project-close,
body .cms-project-modal > button.cms-project-close {
  font-family: "neue-haas-grotesk-text", "neue-haas-grotesk-display", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: .03em !important;
  filter: none !important;
  -webkit-filter: none !important;
  text-shadow: none !important;
}
.cms-project-modal .cms-project-close:hover,
body .cms-project-modal > button.cms-project-close:hover {
  filter: blur(2.5px) !important;
  -webkit-filter: blur(2.5px) !important;
}

@media (max-width: 700px) {
  body .cms-project-modal > button.cms-project-close {
    font-size: 14px !important;
    top: 15px !important;
  }
}

/* Numéros sur les photographies : inversion par différence, sans ombre. */
.cms-project-modal .cms-project-photo figcaption {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  mix-blend-mode: difference !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}
