/* =========================================================
   Domaine des Évis - Template article de blog
   ========================================================= */

body.single-post.dde-site {
  background: var(--dde-ivory, #F8F4EA);
}

.dde-single-post-page {
  background: var(--dde-ivory, #F8F4EA);
  color: var(--dde-green-deep, #1f2d1e);
  overflow-x: hidden;
}

.dde-single-post-shell {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
}

.dde-single-post-hero {
  position: relative;
  min-height: clamp(480px, 72vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: clamp(168px, 17vw, 230px) 0 clamp(70px, 9vw, 116px);
  background:
    radial-gradient(circle at 18% 18%, rgba(200, 193, 212, .22), transparent 34%),
    linear-gradient(135deg, #1f2d1e 0%, #35402f 56%, #8A7564 145%);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.dde-single-post-hero__media,
.dde-single-post-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dde-single-post-hero__media {
  z-index: 0;
  margin: 0;
}

.dde-single-post-hero__image {
  display: block;
  object-fit: cover;
  filter: saturate(.94) contrast(.96);
}

.dde-single-post-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18,25,17,.42) 0%, rgba(18,25,17,.18) 40%, rgba(18,25,17,.74) 100%),
    radial-gradient(circle at 72% 34%, rgba(255,255,255,.05), rgba(0,0,0,.28) 66%);
}

.dde-single-post-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.dde-single-post-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 22px;
  color: rgba(255,255,255,.82);
  font-family: var(--dde-body, Manrope, Arial, sans-serif);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .23em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dde-single-post-eyebrow::before,
.dde-single-post-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255,255,255,.48);
}

.dde-single-post-title {
  max-width: 1040px;
  margin: 0;
  color: #fff;
  font-family: var(--dde-title, Marcellus, Georgia, serif);
  font-size: clamp(3rem, 6vw, 6.35rem);
  font-weight: 400;
  line-height: .97;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.dde-single-post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .48rem;
  margin-top: 26px;
  color: rgba(255,255,255,.78);
  font-family: var(--dde-body, Manrope, Arial, sans-serif);
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dde-single-post-body {
  position: relative;
  padding: clamp(72px, 8vw, 118px) 0 clamp(86px, 9vw, 138px);
}

.dde-single-post-layout {
  width: min(880px, calc(100% - 48px));
}

.dde-single-post-content {
  color: var(--dde-text, #22301f);
  font-family: var(--dde-body, Manrope, Arial, sans-serif);
  font-size: clamp(1.03rem, 1.12vw, 1.14rem);
  line-height: 1.82;
}

.dde-single-post-content > *:first-child {
  margin-top: 0 !important;
}

.dde-single-post-content > *:last-child {
  margin-bottom: 0 !important;
}

.dde-single-post-content p,
.dde-single-post-content ul,
.dde-single-post-content ol {
  margin-top: 0;
  margin-bottom: 1.45em;
}

.dde-single-post-content h2,
.dde-single-post-content h3,
.dde-single-post-content h4,
.dde-single-post-content h5,
.dde-single-post-content h6 {
  color: var(--dde-green-deep, #1f2d1e);
  font-family: var(--dde-title, Marcellus, Georgia, serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.dde-single-post-content h2 {
  margin: clamp(3.1rem, 5vw, 4.8rem) 0 .75em;
  font-size: clamp(2.35rem, 4.4vw, 4.7rem);
}

.dde-single-post-content h3 {
  margin: 2.6em 0 .75em;
  font-size: clamp(1.8rem, 2.7vw, 2.85rem);
}

.dde-single-post-content h4 {
  margin: 2.1em 0 .7em;
  font-family: var(--dde-body, Manrope, Arial, sans-serif);
  font-size: clamp(1.16rem, 1.35vw, 1.32rem);
  font-weight: 850;
  letter-spacing: -.02em;
}

.dde-single-post-content a {
  color: var(--dde-brun, #8A7564);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

.dde-single-post-content a:hover {
  color: var(--dde-green-deep, #1f2d1e);
}

.dde-single-post-content ul,
.dde-single-post-content ol {
  padding-left: 1.35rem;
}

.dde-single-post-content li {
  margin-bottom: .55rem;
}

.dde-single-post-content blockquote,
.dde-single-post-content .wp-block-quote {
  margin: clamp(2.4rem, 4vw, 3.4rem) 0;
  padding: clamp(1.65rem, 3.2vw, 2.55rem);
  border-left: 4px solid var(--dde-brun, #8A7564);
  background: rgba(255,255,255,.58);
  color: var(--dde-green-deep, #1f2d1e);
  font-family: var(--dde-title, Marcellus, Georgia, serif);
  font-size: clamp(1.4rem, 2.05vw, 2.1rem);
  line-height: 1.36;
}

.dde-single-post-content figure,
.dde-single-post-content .wp-block-image {
  margin: clamp(2.2rem, 4vw, 3.8rem) 0;
}

.dde-single-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.dde-single-post-content .wp-block-image img,
.dde-single-post-content figure img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
}

.dde-single-post-content figcaption,
.dde-single-post-content .wp-element-caption {
  margin-top: .82rem;
  color: var(--dde-muted, #6f675e);
  font-size: .9rem;
  line-height: 1.55;
  text-align: center;
}

.dde-single-post-content .wp-block-separator {
  width: 100%;
  height: 1px;
  margin: clamp(2.8rem, 5vw, 4.5rem) 0;
  border: 0;
  background: rgba(138,117,100,.26);
}

.dde-single-post-content .wp-block-button__link,
.dde-single-post-content .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--dde-green, #859679);
  color: #fff !important;
  font-family: var(--dde-body, Manrope, Arial, sans-serif);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.1;
  text-decoration: none !important;
  text-transform: uppercase;
}

.dde-single-post-content .wp-block-button__link:hover,
.dde-single-post-content .wp-element-button:hover {
  background: var(--dde-blue, #AEB9C1);
  color: var(--dde-green-deep, #1f2d1e) !important;
}

.dde-single-post-content .alignwide {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.dde-single-post-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.dde-single-post-content .alignfull img {
  border-radius: 0;
}

.dde-single-post-content table,
.dde-single-post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.dde-single-post-content th,
.dde-single-post-content td {
  padding: 16px 18px;
  border: 1px solid rgba(138,117,100,.28);
  text-align: left;
  vertical-align: top;
}

.dde-single-post-content th {
  background: var(--dde-green, #859679);
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dde-single-post-pages {
  display: flex;
  gap: 10px;
  margin-top: 2rem;
}

.dde-single-post-footer {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid rgba(138,117,100,.28);
}

.dde-single-post-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dde-single-post-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--dde-green, #859679);
  color: #fff !important;
  font-family: var(--dde-body, Manrope, Arial, sans-serif);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.1;
  text-decoration: none !important;
  text-transform: uppercase;
}

.dde-single-post-back:hover {
  background: var(--dde-green-deep, #1f2d1e);
}

.dde-single-post-tags {
  color: var(--dde-muted, #6f675e);
  font-size: .92rem;
  line-height: 1.5;
}

.dde-single-post-tags span {
  color: var(--dde-green-deep, #1f2d1e);
  font-weight: 850;
}

.dde-single-post-tags a {
  color: var(--dde-brun, #8A7564);
}

.dde-single-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.dde-single-post-nav__item {
  min-height: 100%;
  padding: 22px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(138,117,100,.22);
}

.dde-single-post-nav__item span {
  display: block;
  margin-bottom: 8px;
  color: var(--dde-brun, #8A7564);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dde-single-post-nav__item a {
  color: var(--dde-green-deep, #1f2d1e);
  font-family: var(--dde-title, Marcellus, Georgia, serif);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  line-height: 1.14;
  text-decoration: none;
}

.dde-single-post-nav__item--next {
  text-align: right;
}

@media (max-width: 980px) {
  .dde-single-post-shell,
  .dde-single-post-layout {
    width: calc(100% - 34px);
  }

  .dde-single-post-hero {
    min-height: clamp(430px, 70vh, 620px);
    padding-top: 142px;
    padding-bottom: 58px;
  }

  .dde-single-post-title {
    font-size: clamp(2.65rem, 11vw, 4.6rem);
  }

  .dde-single-post-content .alignwide {
    width: calc(100vw - 34px);
  }

  .dde-single-post-nav {
    grid-template-columns: 1fr;
  }

  .dde-single-post-nav__item--next {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .dde-single-post-eyebrow::before,
  .dde-single-post-eyebrow::after {
    width: 22px;
  }

  .dde-single-post-body {
    padding-top: 56px;
  }

  .dde-single-post-content {
    font-size: 1rem;
    line-height: 1.76;
  }

  .dde-single-post-content h2 {
    font-size: clamp(2.05rem, 10vw, 3.15rem);
  }

  .dde-single-post-content h3 {
    font-size: clamp(1.55rem, 7.4vw, 2.2rem);
  }

  .dde-single-post-footer__top {
    display: grid;
    align-items: start;
  }
}
