/* Réalisations.
   Le titre à gauche, les paragraphes à droite, la photo du module
   en dessous, sur toute la largeur. Puis la galerie, en trois colonnes. */

html body.ah-page-projet {
  background: #f7f0ea;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-hero {
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(56px, 8vh, 96px) clamp(28px, 4.6vw, 72px) clamp(36px, 5vh, 56px) !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_column,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_column_0,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_column_1 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_text,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_text_inner {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_text_inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro h1 {
  grid-column: 1;
  margin: 0 !important;
  color: #3e2716 !important;
  -webkit-text-fill-color: #3e2716 !important;
  font-size: clamp(34px, 3.4vw, 52px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
  text-align: left !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro h1::before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  margin: 0 0 18px;
  border-radius: 50%;
  background: #b07030;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-ligne {
  display: block;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-ligne--2 {
  margin-top: 2px;
  color: #a87d43 !important;
  -webkit-text-fill-color: #a87d43 !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-texte {
  grid-column: 2;
  padding-top: 39px;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro p {
  margin: 0 0 0.85em !important;
  color: #3e2716 !important;
  -webkit-text-fill-color: #3e2716 !important;
  font-size: clamp(15px, 1.05vw, 17px) !important;
  line-height: 1.6 !important;
  text-align: left !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro p:last-child {
  margin-bottom: 0 !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro p .ah-vague-mot {
  display: inline-block;
  opacity: 0.5;
  transition: opacity 1.15s ease;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro p .ah-vague-mot.ah-vague-on,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro p .ah-vague-mot.ah-vague-lu {
  opacity: 1;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro p .ah-vague-mot.ah-vague-on {
  animation: ah-real-lecture 0.7s ease both;
}

@keyframes ah-real-lecture {
  0% { transform: translateY(0); }
  35% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_image {
  margin: clamp(32px, 5vh, 56px) 0 0 !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_image_wrap,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_image img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets {
  --ah-real-fondu: 0.7s cubic-bezier(.22, 1, .36, 1);
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(48px, 7vh, 88px) clamp(22px, 3vw, 48px) clamp(64px, 8vh, 104px) !important;
  background: #f7f0ea;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_column,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 16px;
  width: 100% !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item {
  position: relative !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_image,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item a {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  transition: transform 1.4s cubic-bezier(.22, 1, .36, 1);
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_image,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item a {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item a::before,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item a::after {
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets__degrade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: 72px;
  z-index: 1;
  margin: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  opacity: 1;
  transform: none;
  transition: opacity var(--ah-real-fondu);
  pointer-events: none;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets__voile {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(76, 37, 10, 0.4);
  opacity: 0;
  transition: opacity var(--ah-real-fondu);
  pointer-events: none;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_overlay,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_title,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_caption {
  display: none !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets__nom {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  bottom: auto;
  z-index: 2;
  margin: 0;
  box-sizing: border-box;
  padding: 28px 14px 12px;
  background: none !important;
  background-color: transparent !important;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(45, 29, 18, 0.28);
  transform: translateY(-100%);
  transition:
    top var(--ah-real-fondu),
    transform var(--ah-real-fondu),
    font-size var(--ah-real-fondu),
    padding var(--ah-real-fondu),
    letter-spacing var(--ah-real-fondu);
}

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item:hover img,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte:hover img {
    transform: scale(1.03);
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item:hover .ah-real-projets__degrade,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte:hover .ah-real-projets__degrade {
    opacity: 0;
    transform: none;
    bottom: 0;
    top: auto;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item:hover .ah-real-projets__voile,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte:hover .ah-real-projets__voile {
    opacity: 1;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item:hover .ah-real-projets__nom,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte:hover .ah-real-projets__nom {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    transform: translateY(-50%);
    padding: 0 16px;
    text-align: center;
    font-size: clamp(18px, 1.6vw, 26px);
    letter-spacing: 0.06em;
  }
}

@media (max-width: 980px) {
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro {
    padding: 36px 22px 28px !important;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_text_inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 22px;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro h1,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-texte {
    grid-column: 1;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro h1 {
    font-size: clamp(28px, 8vw, 34px) !important;
    text-align: center !important;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro h1::before {
    margin-left: auto;
    margin-right: auto;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-texte {
    padding-top: 0;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro p {
    text-align: left !important;
    font-size: 16px !important;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets {
    padding: 36px 16px 56px !important;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_items,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets > .et_pb_row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets__nom {
    padding: 22px 18px 14px;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-align: center;
    transform-origin: center center;
    transition:
      top 1.05s cubic-bezier(0.4, 0, 0.2, 1),
      transform 1.05s cubic-bezier(0.4, 0, 0.2, 1),
      padding 1.05s cubic-bezier(0.4, 0, 0.2, 1),
      letter-spacing 1.05s cubic-bezier(0.4, 0, 0.2, 1);
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item.est-actif img,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte.est-actif img {
    transform: scale(1.03);
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item.est-actif .ah-real-projets__degrade,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte.est-actif .ah-real-projets__degrade {
    opacity: 0;
    transform: none;
    bottom: 0;
    top: auto;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item.est-actif .ah-real-projets__voile,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte.est-actif .ah-real-projets__voile {
    opacity: 1;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets .et_pb_gallery_item.est-actif .ah-real-projets__nom,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte.est-actif .ah-real-projets__nom {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    transform: translateY(-50%) scale(clamp(1.43, calc(5.6vw / 14px), 1.71));
    padding: 0 20px;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.04em;
    line-height: 1.25;
  }
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-intro .et_pb_column_empty {
  display: none !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) div.ah-real-projets:not(.et_pb_row) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets > .et_pb_row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets > .et_pb_row::before,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets > .et_pb_row::after {
  content: none !important;
  display: none !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte .et_pb_image {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte .et_pb_image_wrap {
  display: block;
  position: relative;
  overflow: hidden;
  line-height: 0;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte .ah-real-carte__lien {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte img {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  transition: transform 1.4s cubic-bezier(.22, 1, .36, 1);
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte .ah-real-projets__nom {
  position: absolute !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte .ah-real-projets__nom,
html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte .ah-real-projets__nom .et_pb_text_inner {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-carte .et_overlay {
  display: none !important;
}

@media (max-width: 980px) {
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets > .et_pb_row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Air sous la frise du menu. La frise elle-même est le ::after du header. */
html body.ah-page-projet {
  --ah-real-frise: clamp(16px, 1.25vw, 20px);
}

html body.ah-page-projet .et-l--header,
html body.ah-page-projet .et-l--header .et_pb_section_0_tb_header,
html body.ah-page-projet .et_pb_section_0_tb_header {
  margin-bottom: 0 !important;
}

html body.ah-page-projet .ah-real-intro {
  padding-top: calc(var(--ah-real-frise) + 24px) !important;
}

@media (max-width: 980px) {
  html body.ah-page-projet {
    --ah-real-frise: clamp(12px, 3.2vw, 14px);
  }

  html body.ah-page-projet .ah-real-intro {
    padding-top: calc(var(--ah-real-frise) + 16px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-vague-mot {
    opacity: 1;
    animation: none;
  }

  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets__degrade,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets__voile,
  html body:is(.ah-page-projet, .ah-page-mesure) .ah-real-projets__nom {
    transition: none;
  }
}

