/* --------------------------------------------------------------------------
   Articles DECOENLIGNE — simplification du modèle Betheme
   -------------------------------------------------------------------------- */

body.single-post {
  --deo-article-black: #151310;
  --deo-article-gold: #c99b3d;
  --deo-article-gold-soft: rgba(201, 155, 61, .42);
}

/* Titre éditorial unique ; le Subheader Betheme est retiré pour éviter deux H1. */
body.single-post #Subheader {
  display: none !important;
}

body.single-post :is(.deo-auto-article-header, .deo-article-hero) {
  box-sizing: border-box;
  width: min(92%, 1180px);
  margin: clamp(28px, 5vw, 64px) auto clamp(30px, 4vw, 52px);
  padding: 0 clamp(10px, 2.5vw, 34px) clamp(20px, 2.4vw, 30px);
  text-align: center;
}

body.single-post :is(.deo-auto-article-title, .deo-article-hero > h1) {
  position: relative;
  z-index: 0;
  max-width: 1050px;
  margin: 0 auto !important;
  color: var(--deo-article-black) !important;
  font-size: clamp(28px, 3.25vw, 50px) !important;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.14 !important;
  text-align: center !important;
  text-wrap: balance;
}

body.single-post :is(.deo-auto-article-title, .deo-article-hero > h1)::after {
  display: block;
  width: min(360px, 64%);
  height: 8px;
  margin: clamp(18px, 2.3vw, 28px) auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(21, 19, 16, .82) 22%, rgba(201, 155, 61, .95) 50%, rgba(21, 19, 16, .82) 78%, transparent);
  filter: blur(2.5px);
  content: "";
  opacity: .9;
}

/* Hiérarchie secondaire : même signature noire et or, progressivement allégée. */
body.single-post .post-wrapper-content .the_content_wrapper h2,
body.single-post .post-wrapper-content .deo-article-content h2 {
  position: relative;
  box-sizing: border-box;
  width: min(92%, 1050px);
  margin: clamp(36px, 5vw, 64px) auto clamp(24px, 3vw, 38px) !important;
  padding: 0 14px 18px;
  color: var(--deo-article-black) !important;
  font-size: clamp(25px, 2.8vw, 42px) !important;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2 !important;
  text-align: center !important;
  text-wrap: balance;
}

body.single-post .post-wrapper-content .the_content_wrapper h2::after,
body.single-post .post-wrapper-content .deo-article-content h2::after {
  display: block;
  width: min(245px, 48%);
  height: 5px;
  margin: 17px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(21, 19, 16, .66) 24%, rgba(201, 155, 61, .86) 50%, rgba(21, 19, 16, .66) 76%, transparent);
  filter: blur(1.6px);
  content: "";
  opacity: .82;
}

body.single-post .post-wrapper-content .the_content_wrapper h3,
body.single-post .post-wrapper-content .deo-article-content h3 {
  position: relative;
  box-sizing: border-box;
  width: min(92%, 980px);
  margin: clamp(28px, 4vw, 48px) auto clamp(18px, 2.4vw, 28px) !important;
  padding: 0 12px 12px;
  color: var(--deo-article-black) !important;
  font-size: clamp(21px, 2.15vw, 32px) !important;
  font-weight: 650;
  line-height: 1.25 !important;
  text-align: center !important;
  text-wrap: balance;
}

body.single-post .post-wrapper-content .the_content_wrapper h3::after,
body.single-post .post-wrapper-content .deo-article-content h3::after {
  display: block;
  width: min(150px, 34%);
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(21, 19, 16, .48), rgba(201, 155, 61, .72), rgba(21, 19, 16, .48), transparent);
  filter: blur(.8px);
  content: "";
  opacity: .76;
}

/* Le titre interne du sommaire conserve son style propre, sans halo ajouté. */
body.single-post .post-wrapper-content :is(.deo-article-toc, #ez-toc-container) :is(h2, h3, .ez-toc-title) {
  width: auto !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  color: var(--deo-article-gold) !important;
  font-size: inherit !important;
  letter-spacing: normal;
  line-height: 1.35 !important;
  text-align: center !important;
}

body.single-post .post-wrapper-content :is(.deo-article-toc, #ez-toc-container) :is(h2, h3, .ez-toc-title)::after {
  display: none !important;
  content: none !important;
}

@media only screen and (max-width: 767px) {
  body.single-post :is(.deo-auto-article-header, .deo-article-hero) {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 28px;
    padding-inline: 18px;
  }

  body.single-post :is(.deo-auto-article-title, .deo-article-hero > h1) {
    font-size: clamp(26px, 7.6vw, 36px) !important;
    line-height: 1.18 !important;
  }

  body.single-post :is(.deo-auto-article-title, .deo-article-hero > h1)::after {
    width: min(240px, 68%);
    height: 6px;
    filter: blur(2px);
  }

  body.single-post .post-wrapper-content .the_content_wrapper h2,
  body.single-post .post-wrapper-content .deo-article-content h2 {
    width: 100%;
    padding-inline: 16px;
    font-size: clamp(23px, 7vw, 32px) !important;
  }

  body.single-post .post-wrapper-content .the_content_wrapper h3,
  body.single-post .post-wrapper-content .deo-article-content h3 {
    width: 100%;
    padding-inline: 16px;
    font-size: clamp(20px, 5.8vw, 27px) !important;
  }
}

/* Sommaires éditoriaux : bloc centré, noir et or. */
body.single-post :is(.deo-article-toc, #ez-toc-container) {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: min(80%, 900px) !important;
  max-width: 900px !important;
  margin: 32px auto 38px !important;
  padding: 28px 36px !important;
  overflow: hidden;
  border: 1px solid var(--deo-article-gold) !important;
  border-radius: 3px;
  background: var(--deo-article-black) !important;
  color: #fffaf0;
  box-shadow:
    inset 0 0 0 3px var(--deo-article-black),
    inset 0 0 0 4px var(--deo-article-gold-soft),
    0 12px 28px rgba(0, 0, 0, .16);
}

/* Le sommaire repositionné suit immédiatement le titre sans vide excessif. */
body.single-post :is(.deo-auto-article-header, .deo-article-hero) + :is(.deo-article-toc, #ez-toc-container),
body.single-post h1 + :is(.deo-article-toc, #ez-toc-container) {
  margin-top: 0 !important;
}

body.single-post :is(.deo-article-toc, #ez-toc-container) :is(h2, h3, .deo-article-toc__title, .ez-toc-title) {
  margin: 0 0 20px;
  color: var(--deo-article-gold) !important;
  text-align: center !important;
}

body.single-post #Content :is(.deo-article-toc, #ez-toc-container) :is(ul, ol) {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 0 1.4em;
}

body.single-post :is(.deo-article-toc, #ez-toc-container) li {
  margin: 0;
  padding: 6px 0;
  color: #fffaf0;
}

body.single-post :is(.deo-article-toc, #ez-toc-container) a {
  color: #f3d477;
  text-decoration: none;
  text-underline-offset: 4px;
}

body.single-post :is(.deo-article-toc, #ez-toc-container) a:hover,
body.single-post :is(.deo-article-toc, #ez-toc-container) a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

body.single-post #ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

body.single-post #ez-toc-container .ez-toc-title {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-post #ez-toc-container .ez-toc-toggle a,
body.single-post #ez-toc-container .ez-toc-toggle svg {
  color: var(--deo-article-gold) !important;
  fill: var(--deo-article-gold) !important;
}

/* Puces de progression placées dans une zone dédiée sous le visuel. */
body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19) {
  margin-bottom: 48px !important;
  overflow: visible !important;
}

body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19)
  .n2-ss-slider-controls-absolute-center-bottom {
  overflow: visible !important;
  transform: translateY(42px) !important;
}

body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19)
  .n2-ss-control-bullet {
  pointer-events: auto;
}

/* Sur tablette et mobile, les nombreuses puces nuisent à la lisibilité. */
@media only screen and (max-width: 980px) {
  body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19) {
    margin-bottom: 18px !important;
  }

  body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19)
    :is(.n2-ss-control-bullet, .n2-ss-slider-controls-absolute-center-bottom) {
    display: none !important;
  }
}

/* Image d'ouverture du nouvel article : centrée, agrandie et encadrée. */
body.single-post .deo-article-cover {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 65%;
  max-width: 65%;
  margin: 28px auto 34px !important;
  padding: 2px !important;
  overflow: visible !important;
  border: 1px solid var(--deo-article-gold) !important;
  border-radius: 2px;
  background: var(--deo-article-black);
  box-shadow:
    inset 0 0 0 2px var(--deo-article-black),
    0 12px 28px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(21, 19, 16, .88);
}

body.single-post .deo-article-cover::after {
  position: absolute;
  inset: 3px;
  z-index: 3;
  border: 1px solid var(--deo-article-gold-soft);
  content: "";
  pointer-events: none;
}

body.single-post .deo-article-cover img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/*
 * Éléments Betheme devenus redondants après la migration :
 * navigation précédent/suivant, métadonnées hautes, auteur et suggestions.
 */
body.single-post .fixed-nav,
body.single-post .section-post-about,
body.single-post .section-post-related {
  display: none !important;
}

/* Le conteneur supérieur reste présent uniquement pour ses liens précédent/suivant. */
body.single-post .section-post-header {
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.single-post .section-post-header .post-header {
  display: none !important;
}

body.single-post .section-post-header .section_wrapper,
body.single-post .section-post-header .post-nav,
body.single-post .section-post-header .post-nav .mcb-column-inner {
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Évite le blanc laissé par l'ancien en-tête de l'article. */
body.single-post article.type-post,
body.single-post .post-wrapper-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Navigation réelle Betheme : précédent à gauche, suivant à droite. */
body.single-post .section-post-header .post-nav a {
  position: fixed !important;
  top: 50% !important;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--deo-article-gold) !important;
  border-radius: 3px;
  background: var(--deo-article-black) !important;
  color: #f4d786 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  text-decoration: none;
  transform: translateY(-50%) !important;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

body.single-post .section-post-header .post-nav a i {
  color: #f4d786 !important;
}

body.single-post .section-post-header .post-nav a:hover,
body.single-post .section-post-header .post-nav a:focus-visible {
  background: var(--deo-article-gold) !important;
  color: var(--deo-article-black) !important;
  outline: 0;
  transform: translateY(-50%) translateY(-2px) !important;
}

body.single-post .section-post-header .post-nav a:hover i,
body.single-post .section-post-header .post-nav a:focus-visible i {
  color: var(--deo-article-black) !important;
}

body.single-post .section-post-header .post-nav a:focus-visible {
  outline: 2px solid var(--deo-article-black);
  outline-offset: 3px;
}

body.single-post .section-post-header .post-nav a.prev,
body.single-post .section-post-header .post-nav a:first-child {
  right: auto !important;
  left: 14px !important;
}

body.single-post .section-post-header .post-nav a.next,
body.single-post .section-post-header .post-nav a:last-child:not(:first-child) {
  right: 14px !important;
  left: auto !important;
}

/* --------------------------------------------------------------------------
   Images éditoriales : double cadre noir et or
   -------------------------------------------------------------------------- */

body.single-post .post-wrapper-content .column_image:not(:has([class*="n2-"])) .image_frame,
body.single-post .post-wrapper-content figure.wp-block-image:not(:has([class*="n2-"])),
body.single-post .post-wrapper-content .wp-block-image > figure:not(:has([class*="n2-"])),
body.single-post .post-wrapper-content figure.wp-caption:not(:has([class*="n2-"])) {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 65%;
  max-width: 65%;
  margin: 28px auto 34px;
  padding: 2px !important;
  overflow: visible !important;
  border: 1px solid var(--deo-article-gold) !important;
  border-radius: 2px;
  background: var(--deo-article-black);
  box-shadow:
    inset 0 0 0 2px var(--deo-article-black),
    0 12px 28px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(21, 19, 16, .88);
}

body.single-post .post-wrapper-content .column_image:not(:has([class*="n2-"])) .image_frame::after,
body.single-post .post-wrapper-content figure.wp-block-image:not(:has([class*="n2-"]))::after,
body.single-post .post-wrapper-content .wp-block-image > figure:not(:has([class*="n2-"]))::after,
body.single-post .post-wrapper-content figure.wp-caption:not(:has([class*="n2-"]))::after {
  position: absolute;
  inset: 3px;
  z-index: 3;
  border: 1px solid var(--deo-article-gold-soft);
  content: "";
  pointer-events: none;
}

body.single-post .post-wrapper-content .column_image:not(:has([class*="n2-"])) .image_frame img,
body.single-post .post-wrapper-content figure.wp-block-image:not(:has([class*="n2-"])) img,
body.single-post .post-wrapper-content .wp-block-image > figure:not(:has([class*="n2-"])) img,
body.single-post .post-wrapper-content figure.wp-caption:not(:has([class*="n2-"])) img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0 !important;
  box-shadow: none !important;
}

/* Centre également le composant image de Muffin Builder dans sa colonne. */
body.single-post .post-wrapper-content .column_image:not(:has([class*="n2-"])) .mcb-column-inner {
  text-align: center;
}

/* Images insérées directement dans un bloc de texte, sans figure Betheme. */
body.single-post .post-wrapper-content .column_attr > img:not(.avatar):not(.emoji):not(.wp-smiley),
body.single-post .post-wrapper-content .column_attr > p:has(> img:only-child) > img:only-child:not(.avatar):not(.emoji):not(.wp-smiley),
body.single-post .post-wrapper-content .the_content_wrapper > p:has(> img:only-child) > img:only-child:not(.avatar):not(.emoji):not(.wp-smiley) {
  display: block;
  box-sizing: border-box;
  width: 65%;
  max-width: 65%;
  height: auto;
  margin: 28px auto 34px;
  padding: 2px;
  border: 1px solid var(--deo-article-gold) !important;
  border-radius: 2px;
  background: var(--deo-article-black);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(21, 19, 16, .88);
}

/* Smart Slider doit conserver intégralement ses dimensions et positionnements. */
body.single-post .post-wrapper-content .column_image:has([class*="n2-"]) .image_frame {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post .post-wrapper-content .column_image:has([class*="n2-"]) .image_frame::after {
  display: none !important;
}

/* Sécurité absolue : aucune image interne à Smart Slider ne reçoit le cadre. */
body.single-post .post-wrapper-content .n2-section-smartslider img,
body.single-post .post-wrapper-content [id^="n2-ss-"] img,
body.single-post .post-wrapper-content [class*="n2-"] img {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/*
 * Correctif ciblÃ© pour les anciens carrousels de l'article Art nouveau.
 * Le widget hÃ©ritÃ© peut transmettre une hauteur de 16 px Ã  Smart Slider ;
 * ces valeurs reprennent les proportions enregistrÃ©es dans chaque slider.
 */
body.postid-303867 #n2-ss-11,
body.postid-303867 #n2-ss-12 {
  --deo-smartslider-height: min(500px, calc((100vw - 120px) * .416667));
}

body.postid-303867 #n2-ss-50 {
  --deo-smartslider-height: min(300px, calc((100vw - 120px) * .25));
}

body.postid-303867 #n2-ss-13,
body.postid-303867 #n2-ss-14,
body.postid-303867 #n2-ss-15,
body.postid-303867 #n2-ss-16,
body.postid-303867 #n2-ss-17,
body.postid-303867 #n2-ss-18,
body.postid-303867 #n2-ss-19 {
  --deo-smartslider-height: min(400px, calc((100vw - 120px) * .333333));
}

body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19)
  :is(.n2-ss-slider-1, .n2-ss-slider-2, .n2-ss-slider-3) {
  height: var(--deo-smartslider-height) !important;
  min-height: var(--deo-smartslider-height) !important;
}

body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19) {
  height: var(--deo-smartslider-height) !important;
  min-height: var(--deo-smartslider-height) !important;
}

body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19)
  .n2-ss-slide {
  height: 100% !important;
  min-height: 100% !important;
}

/* Smart Slider conserve aussi l'ancienne hauteur inline sur les fonds. */
body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19)
  :is(.n2-ss-slide-background, .n2-ss-slide-background-image, .n2-ss-slide-background-image picture, .n2-ss-slide-background-image img) {
  height: 100% !important;
  min-height: 100% !important;
}

body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19)
  .n2-ss-slide-background-image {
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

/* Le blanc remplace le gris visible entre les images des carrousels. */
body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19),
body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19)
  :is(.n2-ss-slider-1, .n2-ss-slider-2, .n2-ss-slider-3, .n2-ss-slide, .n2-ss-slide-background, .n2-ss-slide-background-image) {
  background-color: #fff !important;
}

body.postid-303867 :is(#n2-ss-11, #n2-ss-12, #n2-ss-50, #n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19)
  .n2-ss-slide-background-image img {
  width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 900px) {
  body.postid-303867 #n2-ss-11,
  body.postid-303867 #n2-ss-12 {
    --deo-smartslider-height: max(180px, calc((100vw - 36px) * .416667));
  }

  body.postid-303867 #n2-ss-50 {
    --deo-smartslider-height: max(140px, calc((100vw - 36px) * .25));
  }

  body.postid-303867 :is(#n2-ss-13, #n2-ss-14, #n2-ss-15, #n2-ss-16, #n2-ss-17, #n2-ss-18, #n2-ss-19) {
    --deo-smartslider-height: max(170px, calc((100vw - 36px) * .333333));
  }
}

/*
 * Les séparateurs Art déco sont des ornements, pas des images éditoriales.
 * Plusieurs générations du site utilisent soit le nom SEPARATOR7, soit un
 * texte alternatif contenant « séparateur ».
 */
body.single-post .post-wrapper-content img[src*="SEPARATOR7" i],
body.single-post .post-wrapper-content img[src*="0493cc9bfd48f453f078dbe8cecd5688" i],
body.single-post .post-wrapper-content img[alt*="séparateur" i],
body.single-post .post-wrapper-content img[alt*="separateur" i] {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  margin: 20px auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/*
 * Le premier séparateur de cet ancien article doit rester visible, mais son
 * paragraphe et l'image ne doivent recevoir aucun cadre éditorial.
 */
body.postid-659 .post-wrapper-content .the_content_wrapper > p:first-child:has(> img[src*="SEPARATOR7"]),
body.postid-659 .post-wrapper-content .the_content_wrapper > p:first-child > img[src*="SEPARATOR7"] {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 20px auto !important;
  padding: 0 !important;
  outline: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.postid-659 .post-wrapper-content .the_content_wrapper > p:first-child:has(> img[src*="SEPARATOR7"])::before,
body.postid-659 .post-wrapper-content .the_content_wrapper > p:first-child:has(> img[src*="SEPARATOR7"])::after {
  display: none !important;
  border: 0 !important;
  content: none !important;
}

body.single-post .post-wrapper-content figure:has(> img[src*="SEPARATOR7" i]),
body.single-post .post-wrapper-content figure:has(> img[src*="0493cc9bfd48f453f078dbe8cecd5688" i]),
body.single-post .post-wrapper-content figure:has(> img[alt*="séparateur" i]),
body.single-post .post-wrapper-content figure:has(> img[alt*="separateur" i]),
body.single-post .post-wrapper-content p:has(> img[src*="SEPARATOR7" i]),
body.single-post .post-wrapper-content p:has(> img[src*="0493cc9bfd48f453f078dbe8cecd5688" i]),
body.single-post .post-wrapper-content p:has(> img[alt*="séparateur" i]),
body.single-post .post-wrapper-content p:has(> img[alt*="separateur" i]),
body.single-post .post-wrapper-content .image_frame:has(img[alt*="séparateur" i]),
body.single-post .post-wrapper-content .image_frame:has(img[alt*="separateur" i]),
body.single-post .post-wrapper-content .wp-block-image:has(img[alt*="séparateur" i]),
body.single-post .post-wrapper-content .wp-block-image:has(img[alt*="separateur" i]) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post .post-wrapper-content figure:has(> img[src*="SEPARATOR7" i])::after,
body.single-post .post-wrapper-content figure:has(> img[src*="0493cc9bfd48f453f078dbe8cecd5688" i])::after,
body.single-post .post-wrapper-content figure:has(> img[alt*="séparateur" i])::after,
body.single-post .post-wrapper-content figure:has(> img[alt*="separateur" i])::after,
body.single-post .post-wrapper-content p:has(> img[alt*="séparateur" i])::after,
body.single-post .post-wrapper-content p:has(> img[alt*="separateur" i])::after,
body.single-post .post-wrapper-content .image_frame:has(img[alt*="séparateur" i])::after,
body.single-post .post-wrapper-content .image_frame:has(img[alt*="separateur" i])::after,
body.single-post .post-wrapper-content .wp-block-image:has(img[alt*="séparateur" i])::after,
body.single-post .post-wrapper-content .wp-block-image:has(img[alt*="separateur" i])::after {
  display: none !important;
}

/* Légendes intégrées au cadre. */
body.single-post .post-wrapper-content .wp-caption-text,
body.single-post .post-wrapper-content figcaption {
  margin: 0;
  padding: 10px 8px 5px;
  color: #f3e5c1;
  background: var(--deo-article-black);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/*
 * Galeries éditoriales des articles reconstruits.
 * Ces classes restent indépendantes des figures natives de Betheme afin
 * d'éviter l'alignement à gauche et les légendes transformées en bandes noires.
 */
body.single-post .post-wrapper-content .deo-article-gallery {
  display: grid !important;
  align-items: start;
  justify-content: center;
  gap: clamp(22px, 3vw, 40px);
  width: min(88%, 1180px) !important;
  max-width: 1180px !important;
  margin: 30px auto 40px !important;
}

body.single-post .post-wrapper-content .deo-article-gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.single-post .post-wrapper-content .deo-article-gallery--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.single-post .post-wrapper-content :is(.deo-article-gallery > figure, figure.deo-article-figure) {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

body.single-post .post-wrapper-content figure.deo-article-figure {
  width: min(65%, 900px) !important;
  margin: 30px auto 40px !important;
}

body.single-post .post-wrapper-content :is(.deo-article-gallery > figure, figure.deo-article-figure) > img {
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 1px !important;
  border: 4px solid var(--deo-article-gold) !important;
  border-radius: 5px 5px 0 0 !important;
  background: var(--deo-article-black) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16) !important;
}

body.single-post .post-wrapper-content :is(.deo-article-gallery > figure, figure.deo-article-figure) > figcaption {
  box-sizing: border-box;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 8px 10px 0 !important;
  color: var(--deo-article-black) !important;
  background: transparent !important;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 767px) {
  body.single-post .post-wrapper-content :is(.deo-article-gallery--2, .deo-article-gallery--3) {
    grid-template-columns: minmax(0, 1fr);
    width: min(92%, 620px) !important;
  }

  body.single-post .post-wrapper-content figure.deo-article-figure {
    width: min(92%, 620px) !important;
  }
}

/* --------------------------------------------------------------------------
   Partage conservé : Facebook, X, LinkedIn et Pinterest
   -------------------------------------------------------------------------- */

body.single-post .section-post-intro-share {
  margin-top: clamp(34px, 5vw, 68px);
  padding: 24px 0;
  border-top: 1px solid var(--deo-article-gold-soft);
  border-bottom: 1px solid var(--deo-article-gold-soft);
  background: transparent;
}

body.single-post .share-simple-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
}

body.single-post .share-simple-wrapper .share-label {
  margin: 0 8px 0 0;
  color: var(--deo-article-black);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}

body.single-post .share-simple-wrapper .icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.single-post .share-simple-wrapper .icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid var(--deo-article-gold);
  border-radius: 50%;
  background: var(--deo-article-black);
  color: #f4d786;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

body.single-post .share-simple-wrapper .icons a:hover,
body.single-post .share-simple-wrapper .icons a:focus-visible {
  background: var(--deo-article-gold);
  color: var(--deo-article-black);
  outline: 0;
  transform: translateY(-2px);
}

body.single-post .share-simple-wrapper .icons a:focus-visible {
  outline: 2px solid var(--deo-article-black);
  outline-offset: 3px;
}

body.single-post .share-simple-wrapper .button-love {
  display: none !important;
}

/* Aucun trait décoratif autour du bloc de partage des articles. */
body.single-post .section-post-intro-share,
body.single-post .section-post-intro-share .share-simple-wrapper {
  border: 0 !important;
  box-shadow: none !important;
}

body.single-post .section-post-intro-share::before,
body.single-post .section-post-intro-share::after,
body.single-post .section-post-intro-share .share-simple-wrapper::before,
body.single-post .section-post-intro-share .share-simple-wrapper::after {
  display: none !important;
  border: 0 !important;
  content: none !important;
}

@media only screen and (max-width: 640px) {
  body.single-post :is(.deo-article-toc, #ez-toc-container) {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 24px auto 30px !important;
    padding: 22px 18px !important;
    border: 1px solid var(--deo-article-gold) !important;
    background: var(--deo-article-black) !important;
    color: #fffaf0 !important;
    box-shadow:
      inset 0 0 0 3px var(--deo-article-black),
      inset 0 0 0 4px var(--deo-article-gold-soft),
      0 10px 24px rgba(0, 0, 0, .16) !important;
  }

  body.single-post #ez-toc-container :is(.ez-toc-title, li, a) {
    color: #f3d477 !important;
  }

  body.single-post #ez-toc-container a:hover,
  body.single-post #ez-toc-container a:focus-visible {
    color: #fff !important;
  }

  body.single-post :is(.deo-article-toc, #ez-toc-container) li {
    margin-left: 0;
    padding: 7px 0;
  }

  body.single-post .deo-article-cover {
    width: 100%;
    max-width: 100%;
    margin: 22px auto 28px !important;
    padding: 2px !important;
  }

  body.single-post .section-post-header .post-nav a {
    width: 38px;
    height: 38px;
  }

  body.single-post .section-post-header .post-nav a.prev,
  body.single-post .section-post-header .post-nav a:first-child {
    left: 6px !important;
  }

  body.single-post .section-post-header .post-nav a.next,
  body.single-post .section-post-header .post-nav a:last-child:not(:first-child) {
    right: 6px !important;
  }

  body.single-post .post-wrapper-content .column_image:not(:has([class*="n2-"])) .image_frame,
  body.single-post .post-wrapper-content figure.wp-block-image:not(:has([class*="n2-"])),
  body.single-post .post-wrapper-content .wp-block-image > figure:not(:has([class*="n2-"])),
  body.single-post .post-wrapper-content figure.wp-caption:not(:has([class*="n2-"])) {
    width: 100%;
    max-width: 100%;
    margin: 22px auto 28px;
    padding: 2px !important;
  }

  body.single-post .post-wrapper-content .column_attr > img:not(.avatar):not(.emoji):not(.wp-smiley),
  body.single-post .post-wrapper-content .column_attr > p:has(> img:only-child) > img:only-child:not(.avatar):not(.emoji):not(.wp-smiley),
  body.single-post .post-wrapper-content .the_content_wrapper > p:has(> img:only-child) > img:only-child:not(.avatar):not(.emoji):not(.wp-smiley) {
    width: 100%;
    max-width: 100%;
  }

  body.single-post .share-simple-wrapper {
    flex-direction: column;
    gap: 13px;
  }

  body.single-post .share-simple-wrapper .share-label {
    margin: 0;
  }
}

/* --------------------------------------------------------------------------
   Harmonisation finale des cadres : 1 px noir + 4 px or
   -------------------------------------------------------------------------- */
body.single-post :is(.deo-article-toc, #ez-toc-container),
body.single-post .deo-article-cover,
body.single-post .post-wrapper-content .column_image:not(:has([class*="n2-"])) .image_frame,
body.single-post .post-wrapper-content figure.wp-block-image:not(:has([class*="n2-"])),
body.single-post .post-wrapper-content .wp-block-image > figure:not(:has([class*="n2-"])),
body.single-post .post-wrapper-content figure.wp-caption:not(:has([class*="n2-"])),
body.single-post .post-wrapper-content .column_attr > img:not(.avatar):not(.emoji):not(.wp-smiley),
body.single-post .post-wrapper-content .column_attr > p:has(> img:only-child) > img:only-child:not(.avatar):not(.emoji):not(.wp-smiley),
body.single-post .post-wrapper-content .the_content_wrapper > p:has(> img:only-child) > img:only-child:not(.avatar):not(.emoji):not(.wp-smiley) {
  border: 1px solid var(--deo-article-black) !important;
  box-shadow:
    0 0 0 4px var(--deo-article-gold),
    0 12px 28px rgba(0, 0, 0, .18) !important;
}

body.single-post .deo-article-cover::after,
body.single-post .post-wrapper-content .column_image:not(:has([class*="n2-"])) .image_frame::after,
body.single-post .post-wrapper-content figure.wp-block-image:not(:has([class*="n2-"]))::after,
body.single-post .post-wrapper-content .wp-block-image > figure:not(:has([class*="n2-"]))::after,
body.single-post .post-wrapper-content figure.wp-caption:not(:has([class*="n2-"]))::after {
  display: none !important;
}

/*
 * Ancien contenu WordPress : plusieurs images peuvent être placées dans un
 * même paragraphe et séparées uniquement par des <br>. Les photos standards
 * reçoivent malgré tout le centrage et le cadre global.
 */
body.single-post .post-wrapper-content .the_content_wrapper > p:has(> br) > img:not(.avatar):not(.emoji):not(.wp-smiley):not([src*="SEPARATOR7"]):not([alt*="séparateur"]):not([alt*="separateur"]) {
  display: block !important;
  box-sizing: border-box;
  width: 65% !important;
  max-width: 65% !important;
  height: auto !important;
  margin: 28px auto 34px !important;
  padding: 2px !important;
  border: 1px solid var(--deo-article-black) !important;
  border-radius: 2px;
  background: var(--deo-article-black) !important;
  box-shadow:
    0 0 0 4px var(--deo-article-gold),
    0 12px 28px rgba(0, 0, 0, .18) !important;
}

/* Les ornements séparateurs restent volontairement sans cadre. */
body.single-post .post-wrapper-content :is(figure, .image_frame):has(img[src*="SEPARATOR7" i]),
body.single-post .post-wrapper-content :is(figure, .image_frame):has(img[src*="0493cc9bfd48f453f078dbe8cecd5688" i]),
body.single-post .post-wrapper-content :is(figure, .image_frame):has(img[alt*="séparateur" i]),
body.single-post .post-wrapper-content :is(figure, .image_frame):has(img[alt*="separateur" i]),
body.single-post .post-wrapper-content img[src*="SEPARATOR7" i],
body.single-post .post-wrapper-content img[src*="0493cc9bfd48f453f078dbe8cecd5688" i],
body.single-post .post-wrapper-content img[alt*="séparateur" i],
body.single-post .post-wrapper-content img[alt*="separateur" i] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 20px auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media only screen and (max-width: 640px) {
  body.single-post .post-wrapper-content .the_content_wrapper > p:has(> br) > img:not(.avatar):not(.emoji):not(.wp-smiley):not([src*="SEPARATOR7"]):not([alt*="séparateur"]):not([alt*="separateur"]) {
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    margin: 24px auto 30px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-post .share-simple-wrapper .icons a {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Exclusion globale absolue du séparateur historique SEPARATOR7
   -------------------------------------------------------------------------- */
body.single-post .post-wrapper-content img[src*="SEPARATOR7"],
body.single-post .post-wrapper-content img.aligncenter[src*="SEPARATOR7"] {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 20px auto !important;
  padding: 0 !important;
  outline: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post .post-wrapper-content :is(p, figure, .wp-block-image, .image_frame):has(> img[src*="SEPARATOR7"]:only-child) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px auto !important;
  padding: 0 !important;
  outline: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post .post-wrapper-content :is(p, figure, .wp-block-image, .image_frame):has(> img[src*="SEPARATOR7"]:only-child)::before,
body.single-post .post-wrapper-content :is(p, figure, .wp-block-image, .image_frame):has(> img[src*="SEPARATOR7"]:only-child)::after {
  display: none !important;
  border: 0 !important;
  content: none !important;
}

/*
 * Les anciens visuels de moins de 900 px de large ne sont pas agrandis comme
 * les photos haute definition : leur bloc complet est limite a 40 %.
 * Cette regle finale doit aussi primer sur les anciennes variantes mobiles.
 */
body.single-post .post-wrapper-content :is(
  .deo-small-editorial-frame,
  img.deo-small-editorial-image
) {
  width: min(40%, var(--deo-editorial-source-width, 40%)) !important;
  max-width: min(40%, var(--deo-editorial-source-width, 40%)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Images tres petites : troisieme palier pour ne jamais les suragrandir. */
body.single-post .post-wrapper-content :is(
  .deo-very-small-editorial-frame,
  img.deo-very-small-editorial-image
) {
  width: min(25%, var(--deo-editorial-source-width, 25%)) !important;
  max-width: min(25%, var(--deo-editorial-source-width, 25%)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Conteneur propre des shortcodes reconstruits depuis l'ancien HTML SiteOrigin. */
body.single-post .post-wrapper-content .deo-smartslider {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px auto 38px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post .post-wrapper-content .deo-smartslider :is(
  .n2-section-smartslider,
  .n2-ss-align,
  .n2-padding
) {
  width: 100% !important;
  max-width: 100% !important;
}

/* --------------------------------------------------------------------------
   Saint-Valentin (post 3401) : figures HTML propres, sans bande sous l'image
   -------------------------------------------------------------------------- */

body.postid-3401 .deo-valentine-table-article > figure:not(.deo-article-separator) {
  display: block !important;
  box-sizing: border-box;
  width: fit-content;
  max-width: calc(100% - 16px);
  margin: 30px auto 38px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

body.postid-3401 .deo-valentine-table-article > figure.deo-article-cover {
  width: min(65%, 1200px);
  max-width: min(65%, 1200px);
}

body.postid-3401 .deo-valentine-table-article > figure:not(.deo-article-separator) > img {
  display: block !important;
  box-sizing: border-box !important;
  width: auto;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  vertical-align: middle;
  border: 1px solid var(--deo-article-black) !important;
  border-radius: 3px;
  background: transparent !important;
  box-shadow:
    0 0 0 4px var(--deo-article-gold),
    0 12px 28px rgba(0, 0, 0, .18) !important;
}

body.postid-3401 .deo-valentine-table-article > figure.deo-article-cover > img {
  width: 100% !important;
}

body.postid-3401 .deo-valentine-table-article > figure:not(.deo-article-separator) > figcaption {
  max-width: 44rem;
  margin: 14px auto 0;
  padding: 0 12px;
  color: #4a4339;
  font-size: .92rem;
  line-height: 1.55;
  text-align: center;
}

/* Le séparateur décoratif historique reste entièrement libre de tout cadre. */
body.postid-3401 .deo-valentine-table-article > figure.deo-article-separator,
body.postid-3401 .deo-valentine-table-article > figure.deo-article-separator > img {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media only screen and (max-width: 767px) {
  body.postid-3401 .deo-valentine-table-article > figure.deo-article-cover {
    width: calc(100% - 18px);
    max-width: calc(100% - 18px);
  }

  body.postid-3401 .deo-valentine-table-article > figure:not(.deo-article-separator) {
    margin-top: 26px !important;
    margin-bottom: 34px !important;
  }
}

/* --------------------------------------------------------------------------
   Ancien article Maison HQE : figures propres et carrousel sans surimpression
   -------------------------------------------------------------------------- */
body.postid-627 .post-wrapper-content .deo-hqe-article figure.wp-block-image {
  padding: 0 !important;
  background: transparent !important;
  line-height: 0;
}

body.postid-627 .post-wrapper-content .deo-hqe-article figure.wp-block-image > img {
  display: block !important;
  vertical-align: top !important;
}

body.postid-627 .post-wrapper-content .deo-hqe-article figure.wp-block-image > figcaption {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 9px 12px 10px;
  background: #fff !important;
  color: var(--deo-article-black) !important;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

/* Les indications de l'ancien CJ Carousel sont mal encodees : jamais affichees. */
body.postid-627 .post-wrapper-content .deo-hqe-carousel :is(.cj-caption, canvas.cj-hover),
body.postid-627 .post-wrapper-content .cj-wrapper :is(.cj-caption, canvas.cj-hover) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.postid-627 .post-wrapper-content .deo-hqe-carousel {
  width: 100%;
  margin: 28px auto 34px;
  overflow: hidden;
}

/* Ressources complémentaires visibles sous l'article Marsala. */
body.single-post .post-wrapper-content .deo-color-tools {
  width: min(100%, 1100px);
  margin: 34px auto 18px;
  text-align: center;
}

body.single-post .post-wrapper-content .deo-color-tools > h3 {
  margin-bottom: 26px;
  text-align: center !important;
}

body.single-post .post-wrapper-content .deo-color-tools-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px auto 10px;
}

body.single-post .post-wrapper-content .deo-color-tools-links > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--deo-article-black);
  border-radius: 2px;
  background: var(--deo-article-black);
  color: #f4d786 !important;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 0 0 3px var(--deo-article-gold);
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

body.single-post .post-wrapper-content .deo-color-tools-links > a:hover,
body.single-post .post-wrapper-content .deo-color-tools-links > a:focus-visible {
  background: var(--deo-article-gold);
  color: var(--deo-article-black) !important;
  outline: 0;
  transform: translateY(-2px);
}

body.single-post .post-wrapper-content .deo-color-tools-links > a:focus-visible {
  outline: 2px solid var(--deo-article-black);
  outline-offset: 5px;
}

@media only screen and (max-width: 640px) {
  body.single-post .post-wrapper-content .deo-color-tools-links {
    align-items: stretch;
    flex-direction: column;
    padding: 0 10px;
  }

  body.single-post .post-wrapper-content .deo-color-tools-links > a {
    box-sizing: border-box;
    width: 100%;
  }
}
/* Palettes de l'article Living Coral 2019 — sans styles inline pour BeBuilder/WAF. */
body.single-post .deo-color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: min(100%, 980px);
  margin: 24px auto;
}

body.single-post .deo-color-swatch {
  position: relative;
  min-height: 128px;
  padding: 72px 14px 14px;
  overflow: hidden;
  color: #111;
  background: #f2f2f2;
  border: 1px solid #111;
  border-radius: 6px;
  box-shadow: 0 0 0 3px #c99b32;
}

body.single-post .deo-color-swatch::before {
  position: absolute;
  inset: 0 0 auto;
  height: 60px;
  content: "";
  background: #ddd;
  border-bottom: 1px solid rgba(0, 0, 0, .22);
}

body.single-post .deo-color-swatch > span,
body.single-post .deo-color-swatch > small {
  display: block;
}

body.single-post .deo-color-swatch > span { font-weight: 700; }
body.single-post .deo-color-swatch > small { margin-top: 3px; }

body.single-post .deo-swatch-coral::before { background: #ff6f61; }
body.single-post .deo-swatch-lin::before { background: #f2e5d5; }
body.single-post .deo-swatch-or::before { background: #c8a46b; }
body.single-post .deo-swatch-sauge-fonce::before { background: #4e6b61; }
body.single-post .deo-swatch-bleu-nuit::before { background: #25364a; }
body.single-post .deo-swatch-terracotta::before { background: #b85c3d; }
body.single-post .deo-swatch-ocre::before { background: #d99a57; }
body.single-post .deo-swatch-brun-rouge::before { background: #7a4638; }
body.single-post .deo-swatch-sable::before { background: #e8d6bc; }
body.single-post .deo-swatch-foret::before { background: #324c3d; }
body.single-post .deo-swatch-sauge::before { background: #78866b; }
body.single-post .deo-swatch-olive::before { background: #b7a77a; }
body.single-post .deo-swatch-craie::before { background: #efe8d8; }
body.single-post .deo-swatch-encre::before { background: #1e2b3a; }
body.single-post .deo-swatch-ardoise::before { background: #485a6a; }
body.single-post .deo-swatch-laiton::before { background: #b89045; }
body.single-post .deo-swatch-ivoire::before { background: #e5ded1; }
body.single-post .deo-swatch-rose-mineral::before { background: #d8b4ae; }
body.single-post .deo-swatch-taupe-rose::before { background: #b8a9a1; }
body.single-post .deo-swatch-galet::before { background: #c9c5bd; }
body.single-post .deo-swatch-blanc-casse::before { background: #f2eee7; }

@media (max-width: 767px) {
  body.single-post .deo-color-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.single-post .deo-color-swatch {
    min-height: 116px;
    padding: 66px 10px 10px;
  }

  body.single-post .deo-color-swatch::before { height: 54px; }
}

/* --------------------------------------------------------------------------
   Figures et légendes : suppression définitive des bandes noires
   -------------------------------------------------------------------------- */

/*
 * Les légendes ne doivent jamais devenir un bandeau sur toute la largeur de
 * l'article. Cette règle corrige les contenus reconstruits comme les anciens
 * blocs Gutenberg, tout en laissant les séparateurs et Smart Slider intacts.
 */
body.single-post .post-wrapper-content figure:not(.deo-article-separator):not(:has([class*="n2-"])) > figcaption,
body.single-post .post-wrapper-content figure.wp-caption:not(:has([class*="n2-"])) > .wp-caption-text {
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 9px 10px 0 !important;
  color: var(--deo-article-black, #151310) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

/*
 * Les figures éditoriales explicites s'ajustent à la largeur réelle de leur
 * image. Le cadre noir et or entoure uniquement la photo, jamais la légende.
 */
body.single-post .post-wrapper-content figure.deo-article-image:not(:has([class*="n2-"])) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: fit-content !important;
  max-width: min(65%, 980px) !important;
  margin: 28px auto 34px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post .post-wrapper-content figure.deo-article-image:not(:has([class*="n2-"]))::before,
body.single-post .post-wrapper-content figure.deo-article-image:not(:has([class*="n2-"]))::after {
  display: none !important;
  content: none !important;
}

body.single-post .post-wrapper-content figure.deo-article-image:not(:has([class*="n2-"])) > img {
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 1px !important;
  border: 1px solid var(--deo-article-black, #151310) !important;
  border-radius: 5px !important;
  background: var(--deo-article-black, #151310) !important;
  box-shadow:
    0 0 0 4px var(--deo-article-gold, #c99b32),
    0 12px 28px rgba(0, 0, 0, .16) !important;
}

/* --------------------------------------------------------------------------
   Style Belle Epoque / l-art-nouveau (post 303867)
   Aligne le corps éditorial sur le header et garde les flèches des sliders
   dans la largeur visible. Cette correction reste limitée à cette page.
   -------------------------------------------------------------------------- */

body.postid-303867 .deo-style-belle-epoque {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: clip;
}

body.postid-303867 .deo-style-belle-epoque > section {
  box-sizing: border-box;
  width: min(92%, 1180px);
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: clamp(10px, 2.5vw, 34px);
  padding-left: clamp(10px, 2.5vw, 34px);
}

body.postid-303867 .deo-style-belle-epoque > section > :is(p, ul, ol) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

body.postid-303867 .deo-style-belle-epoque > section > :is(
  .n2-section-smartslider,
  [id^="n2-ss-"][id$="-align"]
) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px auto 40px !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.postid-303867 .deo-style-belle-epoque > section > figure.deo-article-image {
  box-sizing: border-box;
  width: min(65%, 920px) !important;
  max-width: min(65%, 920px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.postid-303867 .deo-style-belle-epoque > .deo-separator7-unframed {
  display: block !important;
  box-sizing: border-box;
  width: min(92%, 1180px) !important;
  max-width: 1180px !important;
  height: auto !important;
  margin: 30px auto !important;
  padding: 0 !important;
}

@media only screen and (max-width: 767px) {
  body.postid-303867 .deo-style-belle-epoque > section {
    width: 100%;
    max-width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  body.postid-303867 .deo-style-belle-epoque > section > figure.deo-article-image {
    width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;
  }

  body.postid-303867 .deo-style-belle-epoque > .deo-separator7-unframed {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }

  body.postid-303867 .deo-style-belle-epoque
    :is(.n2-ss-slider-controls-absolute-left, .n2-ss-slider-controls-absolute-right) {
    transform: none !important;
  }

  body.postid-303867 .deo-style-belle-epoque .n2-ss-slider-controls-absolute-left {
    left: 0 !important;
  }

  body.postid-303867 .deo-style-belle-epoque .n2-ss-slider-controls-absolute-right {
    right: 0 !important;
  }
}

@media (max-width: 767px) {
  body.single-post .post-wrapper-content figure.deo-article-image:not(:has([class*="n2-"])) {
    max-width: 85% !important;
  }
}

/* FAQ éditoriales natives : accessibles, sans dépendance JavaScript. */
body.single-post .post-wrapper-content .deo-faq-accordion {
  width: min(100%, 980px);
  margin: 26px auto 38px;
}

body.single-post .post-wrapper-content .deo-faq-accordion > details {
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--deo-article-black, #151310);
  border-radius: 6px;
  background: #eeeeec;
  box-shadow: 0 0 0 2px var(--deo-article-gold, #c99b32);
}

body.single-post .post-wrapper-content .deo-faq-accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 52px 12px 18px;
  color: var(--deo-article-black, #151310);
  background: #dededb;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  transition: color .2s ease, background-color .2s ease;
}

body.single-post .post-wrapper-content .deo-faq-accordion summary::-webkit-details-marker {
  display: none;
}

body.single-post .post-wrapper-content .deo-faq-accordion summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--deo-article-black, #151310);
  content: "+";
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-52%);
}

body.single-post .post-wrapper-content .deo-faq-accordion summary:hover,
body.single-post .post-wrapper-content .deo-faq-accordion summary:focus-visible,
body.single-post .post-wrapper-content .deo-faq-accordion details[open] > summary {
  color: var(--deo-article-black, #151310);
  background: var(--deo-article-gold, #c99b32);
}

body.single-post .post-wrapper-content .deo-faq-accordion details[open] > summary::after {
  content: "−";
}

body.single-post .post-wrapper-content .deo-faq-accordion .deo-faq-answer {
  padding: 17px 20px 18px;
  color: var(--deo-article-black, #151310);
  background: #fff;
}

body.single-post .post-wrapper-content .deo-faq-accordion .deo-faq-answer > :first-child {
  margin-top: 0 !important;
}

body.single-post .post-wrapper-content .deo-faq-accordion .deo-faq-answer > :last-child {
  margin-bottom: 0 !important;
}
