/* Inspirations : titre et photo, questions et sigle, puis les paragraphes.
   Les mots restent dans les modules Divi. */

html body.ah-page-insp .et-l--post .et_pb_section.ah-insp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: clamp(36px, 4.5vw, 80px);
  row-gap: clamp(28px, 4vh, 48px);
  width: 100% !important;
  max-width: none !important;
  --ah-insp-pad-x: clamp(32px, 5vw, 88px);
  --ah-insp-pad-t: clamp(148px, 16vh, 188px);
  margin: 0 !important;
  padding: var(--ah-insp-pad-t) var(--ah-insp-pad-x) clamp(72px, 9vh, 120px) !important;
  background: #f7f0ea !important;
  overflow: hidden;
}

html body.ah-page-insp .ah-insp-vide {
  display: none !important;
}

html body.ah-page-insp .ah-insp-hero,
html body.ah-page-insp .ah-insp-liste {
  display: contents;
}

html body.ah-page-insp .ah-insp-mots { grid-column: 1; grid-row: 1; }
html body.ah-page-insp .ah-insp-visuel { grid-column: 2; grid-row: 1; align-self: center; }
html body.ah-page-insp .ah-insp-questions { grid-column: 1; grid-row: 2; }
html body.ah-page-insp .ah-insp-logo {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: center;
  justify-self: center;
}
html body.ah-page-insp .ah-insp-fin { grid-column: 1; grid-row: 3; }

html body.ah-page-insp .ah-insp .et_pb_text,
html body.ah-page-insp .ah-insp .et_pb_text_inner {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.ah-page-insp .ah-insp-mots h1 {
  margin: 0 0 22px !important;
  color: #3e2716 !important;
  -webkit-text-fill-color: #3e2716 !important;
  font-size: clamp(34px, 3.5vw, 52px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
}

html body.ah-page-insp .ah-insp-ligne {
  display: block;
}

html body.ah-page-insp .ah-insp-ligne--2 {
  margin-top: 2px;
  color: #a87d43 !important;
  -webkit-text-fill-color: #a87d43 !important;
}

html body.ah-page-insp .ah-insp-mots h1::before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  margin: 0 0 18px;
  border-radius: 50%;
  background: #b07030;
}

html body.ah-page-insp .ah-insp-mots p {
  max-width: 34em;
  margin: 0 !important;
  color: #2d1d12 !important;
  -webkit-text-fill-color: #2d1d12 !important;
  font-size: clamp(16px, 1.12vw, 18px) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

html body.ah-page-insp .ah-insp-visuel {
  position: relative;
  min-height: clamp(280px, 38vh, 460px);
}

@media (min-width: 981px) {
  html body.ah-page-insp .et-l--post .et_pb_section.ah-insp {
    padding-top: 0 !important;
  }

  html body.ah-page-insp .ah-insp-mots {
    padding-top: var(--ah-insp-pad-t);
  }

  html body.ah-page-insp .ah-insp-visuel {
    align-self: stretch;
    justify-self: end;
    width: calc(100% + var(--ah-insp-pad-x)) !important;
    margin: 0 calc(var(--ah-insp-pad-x) * -1) 0 0 !important;
    min-height: 0;
    height: 100%;
  }
}

html body.ah-page-insp .ah-insp-visuel .et_pb_image,
html body.ah-page-insp .ah-insp-visuel .et_pb_image_wrap,
html body.ah-page-insp .ah-insp-visuel img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
}

html body.ah-page-insp .ah-insp-visuel .et_pb_image,
html body.ah-page-insp .ah-insp-visuel .et_pb_image_wrap {
  position: absolute !important;
  inset: 0 !important;
}

html body.ah-page-insp .ah-insp-visuel img {
  object-fit: cover !important;
  object-position: center center !important;
}

html body.ah-page-insp .ah-insp-questions {
  padding-top: clamp(28px, 4vh, 48px);
}

html body.ah-page-insp .ah-insp-questions p {
  position: relative;
  margin: 0 !important;
  padding: 18px 0 16px;
  color: #3e2716 !important;
  -webkit-text-fill-color: #3e2716 !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

html body.ah-page-insp .ah-insp-questions p::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background-color: transparent;
  background-image: url("../img/separateur-logo-ocre-isotype.svg");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: auto 4px;
}

html body.ah-page-insp .ah-insp-logo .et_pb_image {
  position: relative;
  display: block !important;
  width: calc(500 / 901 * clamp(380px, 52vh, 520px)) !important;
  height: clamp(380px, 52vh, 520px) !important;
  margin: 0 !important;
  overflow: hidden;
  -webkit-mask-image: url("../img/isotype-mesure-blanc.svg");
          mask-image: url("../img/isotype-mesure-blanc.svg");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}

html body.ah-page-insp .ah-insp-logo .et_pb_image_wrap,
html body.ah-page-insp .ah-insp-logo img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

html body.ah-page-insp .ah-insp-questions p.ah-actif {
  color: #b07030 !important;
  -webkit-text-fill-color: #b07030 !important;
  font-weight: 600 !important;
}

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

html body.ah-page-insp .ah-insp-mots p .ah-vague-mot,
html body.ah-page-insp .ah-insp-fin p .ah-vague-mot {
  display: inline-block;
  opacity: 0.5;
  transition: opacity 1.15s ease;
}

html body.ah-page-insp .ah-vague-mot.ah-vague-on,
html body.ah-page-insp .ah-vague-mot.ah-vague-lu {
  opacity: 1;
}

html body.ah-page-insp .ah-vague-mot.ah-vague-on {
  animation: ah-lecture-vague 0.7s ease both;
}

html body.ah-page-insp .ah-insp-logo img {
  opacity: 0;
  transition: opacity 0.7s ease;
}

html body.ah-page-insp .ah-insp-logo img.ah-actif {
  opacity: 1;
}

html body.ah-page-insp .ah-insp-fin .et_pb_text_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
  padding-top: clamp(28px, 4vh, 48px);
}

html body.ah-page-insp .ah-insp-fin p:first-child {
  grid-column: 1 / -1;
}

html body.ah-page-insp .ah-insp-fin p {
  margin: 0 !important;
  color: #3e2716 !important;
  -webkit-text-fill-color: #3e2716 !important;
  font-size: clamp(15px, 1.05vw, 16px) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

@media (max-width: 980px) {
  html body.ah-page-insp .et-l--post .et_pb_section.ah-insp {
    grid-template-columns: 1fr;
    padding: 120px 24px 64px !important;
    row-gap: 28px;
  }

  html body.ah-page-insp .ah-insp-mots,
  html body.ah-page-insp .ah-insp-visuel,
  html body.ah-page-insp .ah-insp-questions,
  html body.ah-page-insp .ah-insp-fin,
  html body.ah-page-insp .ah-insp-logo {
    grid-column: 1;
  }

  html body.ah-page-insp .ah-insp-mots { grid-row: 1; }
  html body.ah-page-insp .ah-insp-visuel {
    grid-row: 2;
    width: 100% !important;
    height: auto;
    margin: 0 !important;
    min-height: clamp(220px, 56vw, 380px);
  }

  html body.ah-page-insp .ah-insp-mots {
    padding-top: 0;
  }
  html body.ah-page-insp .ah-insp-questions { grid-row: 3; }
  html body.ah-page-insp .ah-insp-fin { grid-row: 4; }
  html body.ah-page-insp .ah-insp-logo { grid-row: 5; }

  html body.ah-page-insp .ah-insp-mots h1 {
    font-size: clamp(28px, 8vw, 36px) !important;
  }

  html body.ah-page-insp .ah-insp-fin .et_pb_text_inner {
    grid-template-columns: 1fr;
  }

  html body.ah-page-insp .ah-insp-fin p:first-child {
    grid-column: 1;
  }
}
