.erhaben-archives summary {
    font-family: "Oswald", sans-serif !important;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    cursor: pointer;
}
.erhaben-archives .wp-block-archives a {
    color: #244b3c !important;
}

.erhaben-archives .wp-block-archives a:hover {
    color: #b18a3b !important;
}
.erhaben-fixed-hero {
  width: 100vw;
  height: 520px;
  margin-left: calc(50% - 50vw);

  background-image: url("https://erhabenmaya.com/wp-content/uploads/2026/08/differentway039s-6a875bff220f9.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Correction pour les tablettes et appareils tactiles */
@media (max-width: 1180px), (hover: none) {
  .erhaben-fixed-hero {
    background-attachment: scroll;
  }
}

/* Réglage particulier pour les téléphones */
@media (max-width: 768px) {
  .erhaben-fixed-hero {
    height: 260px;
    background-size: cover;
    background-position: center center;
  }
}
/* Élargir uniquement les articles similaires */
.jp-relatedposts,
#jp-relatedposts,
div[id*="relatedposts"] {
    width: 1100px !important;
    max-width: 90vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
}
/* Bouton d'abonnement sous les articles */
#subscribe-submit.is-link a {
    background: #faf7ee !important;
    color: #244b3c !important;
    border: 1px solid #244b3c !important;
    padding: 10px 18px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* Au survol */
#subscribe-submit.is-link a:hover {
    background: #244b3c !important;
    color: #ffffff !important;
}
/* Articles similaires : présentation plus généreuse */
#jp-relatedposts,
.jp-relatedposts {
    width: 1100px !important;
    max-width: 94vw !important;
}

/* Images plus présentes */
#jp-relatedposts .jp-relatedposts-post-img {
    width: 100% !important;
    height: 190px !important;
    object-fit: cover !important;
}

/* Titres plus lisibles */
#jp-relatedposts .jp-relatedposts-post-title a {
    font-size: 14px !important;
	font-weight:normal !important;
	color:black !important;
    line-height: 3 !important;
    font-weight: normal !important;
	
}

/* Catégorie/contexte sous le titre */
#jp-relatedposts .jp-relatedposts-post-context {
    font-size: 13px !important;
    line-height: 1.3 !important;
}
#jp-relatedposts h3.jp-relatedposts-headline em{font-size:13px !important}
.erh-apropos {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 0 45px;
    color: #26332d;
    font-size: 17px;
    line-height: 1.75;
}

.erh-apropos p {
    margin: 0 0 18px;
}

.erh-entete {
    background: #f7f3e8;
    border-top: 4px solid #b89a55;
    border-bottom: 1px solid #ddd1b0;
    padding: 32px 34px;
    margin-bottom: 35px;
    text-align: center;
}

.erh-nom {
    color: #173d31;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 2px;
}

.erh-slogan {
    color: #8a7442;
    margin-top: 7px;
    font-size: 17px;
    letter-spacing: .5px;
}

.erh-intro {
    font-size: 18px;
    padding: 0 15px;
}

.erh-section {
    margin: 42px 0;
    padding: 0 15px;
}

.erh-section h2 {
    color: #173d31;
    font-size: 29px;
    line-height: 1.25;
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d8cba9;
}

.erh-section h2:before {
    content: "❧";
    color: #b89a55;
    margin-right: 10px;
}

.erh-transmission {
    display: flex;
    align-items: center;
    gap: 34px;
    background: #faf8f1;
    border-left: 4px solid #b89a55;
    padding: 28px;
}

.erh-photo {
    flex: 0 0 250px;
    text-align: center;
}

.erh-photo img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 18px rgba(0,0,0,.14);
}

.erh-legende {
    margin-top: 8px;
    font-size: 14px;
    font-style: italic;
    color: #766a50;
}

.erh-texte {
    flex: 1;
}

.erh-fond-vert {
    background: #173d31;
    color: #fff;
    padding: 30px 34px;
    border-bottom: 4px solid #b89a55;
}

.erh-fond-vert h2 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.25);
}

.erh-fond-vert h2:before {
    color: #d6bd79;
}

.erh-fond-vert strong {
    color: #ead7a2;
}

.erh-ia {
    margin-top: 28px;
    padding: 24px 28px;
    background: #f7f3e8;
    border-left: 4px solid #173d31;
}

.erh-ia strong {
    color: #173d31;
}

.erh-biblio {
    background: #f7f3e8;
    border: 1px solid #ddd1b0;
    padding: 30px 34px;
}

.erh-biblio ul {
    margin: 15px 0 0 22px;
}

.erh-biblio li {
    margin-bottom: 10px;
}

.erh-note {
    margin-top: 25px;
    padding: 18px 22px;
    background: #fff;
    border-left: 3px solid #b89a55;
    color: #555;
    font-size: 15px;
}

.erh-final {
    margin: 48px 15px 0;
    padding: 30px 25px;
    text-align: center;
    border-top: 1px solid #d8cba9;
    border-bottom: 1px solid #d8cba9;
}

.erh-final strong {
    display: block;
    color: #173d31;
    font-size: 22px;
    margin-bottom: 8px;
}

.erh-final span {
    color: #9a7d3d;
    font-style: italic;
}

@media (max-width: 700px) {
    .erh-apropos {
        font-size: 16px;
    }

    .erh-entete {
        padding: 26px 18px;
    }

    .erh-nom {
        font-size: 27px;
    }

    .erh-transmission {
        display: block;
    }

    .erh-photo {
        width: 230px;
        max-width: 100%;
        margin: 0 auto 25px;
    }

    .erh-section h2 {
        font-size: 24px;
    }
}
/* PLAN DU SITE ERHABENMAYA */

.erh-plan {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 45px;
    color: #26332d;
    line-height: 1.7;
}

.erh-plan-intro {
    text-align: center;
    background: #f7f3e8;
    border-top: 4px solid #b89a55;
    border-bottom: 1px solid #ddd1b0;
    padding: 35px 30px;
    margin-bottom: 38px;
}

.erh-plan-petit {
    color: #b89a55;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.erh-plan-intro h2 {
    color: #173d31;
    font-size: 36px;
    margin: 0 0 12px;
}

.erh-plan-intro p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
}

.erh-plan-grille {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 0 0 40px;
}

.erh-plan-carte {
    background: #fff;
    border: 1px solid #e0d7c2;
    border-top: 4px solid #173d31;
    padding: 27px 28px 24px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.erh-plan-carte:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.erh-plan-carte h3 {
    color: #173d31;
    font-size: 23px;
    margin: 0 0 13px;
}

.erh-plan-carte p {
    margin: 0 0 18px;
}

.erh-plan-lien {
    margin-bottom: 0 !important;
}

.erh-plan-lien a {
    color: #9a7d3d;
    font-weight: 700;
    text-decoration: none;
}

.erh-plan-lien a:hover {
    color: #173d31;
}

.erh-plan-pages {
    background: #173d31;
    color: #fff;
    padding: 30px;
    text-align: center;
    border-bottom: 4px solid #b89a55;
}

.erh-plan-pages h3 {
    color: #fff;
    font-size: 25px;
    margin: 0 0 22px;
}

.erh-plan-pages-liens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.erh-plan-pages-liens a {
    display: inline-block;
    background: #f7f3e8;
    color: #173d31;
    padding: 9px 15px;
    text-decoration: none;
    font-weight: 600;
}

.erh-plan-pages-liens a:hover {
    background: #b89a55;
    color: #fff;
}

.erh-plan-final {
    margin-top: 38px;
    padding: 27px 20px;
    text-align: center;
    border-top: 1px solid #d8cba9;
    border-bottom: 1px solid #d8cba9;
}

.erh-plan-final strong {
    display: block;
    color: #173d31;
    font-size: 21px;
    margin-bottom: 5px;
}

.erh-plan-final span {
    color: #9a7d3d;
    font-style: italic;
}

@media (max-width: 700px) {
    .erh-plan-grille {
        grid-template-columns: 1fr;
    }

    .erh-plan-intro h2 {
        font-size: 29px;
    }

    .erh-plan-pages-liens {
        display: block;
    }

    .erh-plan-pages-liens a {
        display: block;
        margin: 8px 0;
    }
}
/* Page 404 - masquer le label NOT FOUND */
.error404 .title-label {
    display: none !important;
	.erhaben-fiche-sante p {
    text-align: justify !important;
    text-align-last: left;
}
}

/* Erhabenmaya — Récapitulatif des plantes */
body.postid-37640 h1 {
    max-width: 44vw !important;
    position: relative;
    left: -11vw;
    text-align: center !important;
    font-size: clamp(28px, 2.7vw, 48px) !important;
    line-height: 1.2 !important;
}

/* Adaptation aux petits écrans */
@media (max-width: 767px) {
    body.postid-37640 h1 {
        max-width: 90% !important;
        left: 0;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Erhabenmaya - Zoom des miniatures */

.jetpack-portfolio-shortcode .portfolio-entry img {
  transition: transform 0.4s ease !important;
}

.jetpack-portfolio-shortcode .portfolio-entry:hover .portfolio-featured-image img {
  transform: scale(1.18) !important;
}

/* ERHABENMAYA — RÉTABLISSEMENT DE L'HERBIER */

.erhabenmaya-botanique {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.erhabenmaya-botanique .portfolio-entry {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.erhabenmaya-botanique .portfolio-featured-image,
.erhabenmaya-botanique .portfolio-featured-image a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.erhabenmaya-botanique .portfolio-entry img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    object-fit: cover !important;
    transition: transform 0.45s ease !important;
}

.erhabenmaya-botanique .portfolio-entry a:hover img {
    transform: scale(1.18) !important;
}

@media (max-width: 700px) {
    .erhabenmaya-botanique {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .erhabenmaya-botanique {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Erhabenmaya : alignement des titres de la catégorie Plantes */
@media (min-width: 1000px) {
  body.category-plantes article.post-item.post-grid
  .post-item-header h2.post-item-title {
    min-height: 7em;
  }
}

/* Erhabenmaya : alignement des métadonnées des plantes */
@media (min-width: 1000px) {
  body.category-plantes article.post-item.post-grid
  .post-item-header .post-item-meta {
    min-height: 11em;
  }
}

/* Erhabenmaya : retour à la ligne des catégories */
@media (min-width: 1000px) {
  body.category-plantes article.post-item.post-grid
  .post-item-meta,
  body.category-plantes article.post-item.post-grid
  .post-item-meta * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body.category-plantes article.post-item.post-grid
  .post-item-meta a {
    display: inline !important;
  }
}

/* Erhabenmaya : boutons alignés dans la catégorie Plantes */
@media (min-width: 1000px) {
  body.category-plantes article.post-item.post-grid
  .post-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  body.category-plantes article.post-item.post-grid
  .post-item-body,
  body.category-plantes article.post-item.post-grid
  .post-body-inner,
  body.category-plantes article.post-item.post-grid
  .post-item-excerpt {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  body.category-plantes article.post-item.post-grid
  .post-item-excerpt a.readmore {
    margin-top: auto !important;
    align-self: flex-start;
  }
}

/* Erhabenmaya : boutons Lire la suite ivoire et vert */
body.category-plantes article.post-item.post-grid
.post-item-excerpt a.readmore {
  background: #faf8f0 !important;
  color: #365744 !important;
  border: 1px solid #55745b !important;
  border-radius: 3px !important;
  padding: 8px 12px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

body.category-plantes article.post-item.post-grid
.post-item-excerpt a.readmore:hover {
  background: #365744 !important;
  color: #ffffff !important;
  border-color: #365744 !important;
}

/* ERHABENMAYA - Bouton Herbier dans le bandeau botanique */

#titlebar .archive-description a[href*="/essai-portfolio/"] {
  display: inline-block !important;
  background: #294a38 !important;
  color: #fffaf0 !important;
  border: 1px solid #c7a66a !important;
  border-radius: 5px !important;
  padding: 12px 24px !important;
  margin: 12px auto !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22) !important;
  transition: background 0.25s ease !important;
}

#titlebar .archive-description a[href*="/essai-portfolio/"]:hover {
  background: #426b50 !important;
  color: #ffffff !important;
  border-color: #e0c48b !important;
}

/* Erhabenmaya — portail des quatre univers */
.erh-portail .erh-univers { position: relative; transition: box-shadow .35s ease, transform .35s ease; }
.erh-portail .erh-image { overflow: hidden; }
.erh-portail .erh-image img { transition: transform .65s ease; transform-origin: center; }
.erh-portail .erh-explorer { position: static; }
.erh-portail .erh-explorer::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.erh-portail .erh-univers:focus-within { outline: 2px solid #a98a55; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .erh-portail .erh-univers:hover { box-shadow: 0 8px 22px rgba(89,69,45,.16); transform: translateY(-3px); }
  .erh-portail .erh-univers:hover .erh-image img { transform: scale(1.07); }
}
@media (max-width: 600px) { .erh-portail .erh-univers { flex-basis: 100% !important; } }
@media (prefers-reduced-motion: reduce) { .erh-portail .erh-univers, .erh-portail .erh-image img { transition: none; transform: none !important; } }

/* ERHABENMAYA - Accueil pleine largeur */

body.page-id-39551 {
    background: #ffffff !important;
    background-image: none !important;
}

.page-id-39551 #page,
.page-id-39551 .site,
.page-id-39551 #content,
.page-id-39551 .site-content,
.page-id-39551 #primary,
.page-id-39551 .content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-id-39551 h1.entry-title {
    display: none !important;
}

/* ERHABENMAYA - Accueil indépendant */

/* Suppression du haut et du bas du thème */
.page-id-39551 #masthead,
.page-id-39551 .site-header,
.page-id-39551 #site-navigation,
.page-id-39551 .main-navigation,
.page-id-39551 #colophon,
.page-id-39551 .site-footer,
.page-id-39551 #secondary,
.page-id-39551 header,
.page-id-39551 footer {
    display: none !important;
}

/* Suppression du titre WordPress */
.page-id-39551 h1 {
    display: none !important;
}

/* Suppression des contraintes de largeur */
.page-id-39551 .site,
.page-id-39551 .site-content,
.page-id-39551 .content-area,
.page-id-39551 .entry-content,
.page-id-39551 article,
.page-id-39551 main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

/* Centrage du portail */
.page-id-39551 .erh-portail {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 15px 20px !important;
}

/* Images panoramiques moins hautes */
.page-id-39551 .erh-image img {
    aspect-ratio: 21/9 !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Réduction des espaces */
.page-id-39551 .erh-portail > div:first-child {
    padding: 8px 10px 12px !important;
    margin-bottom: 15px !important;
}

.page-id-39551 .erh-grille {
    gap: 14px !important;
}

.page-id-39551 .erh-portail > div:last-child {
    margin-top: 12px !important;
    padding: 12px !important;
}
/* ERHABENMAYA - Finitions de l'accueil */

/* Suppression du cadre extérieur */
body.page-id-39551,
.page-id-39551 #page,
.page-id-39551 .site,
.page-id-39551 #content,
.page-id-39551 .site-content,
.page-id-39551 .container,
.page-id-39551 .site-main {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Suppression des partages et des J'aime */
.page-id-39551 .sharedaddy,
.page-id-39551 .sd-sharing,
.page-id-39551 .sd-like,
.page-id-39551 .jetpack-likes-widget-wrapper,
.page-id-39551 .jp-relatedposts {
    display: none !important;
}
/* ERHABENMAYA - Accueil compact avec logo */
.page-id-39551 .erh-portail { max-width: 1100px !important; padding: 8px 16px !important; }
.page-id-39551 .erh-portail > .erh-entete { padding: 4px 8px 10px !important; margin-bottom: 10px !important; }
.page-id-39551 .erh-portail .erh-logo { width: 100%; max-width: 850px; max-height: 130px; object-fit: contain; margin: 0 auto 4px !important; }
.page-id-39551 .erh-portail .erh-grille { gap: 12px !important; }
.page-id-39551 .erh-portail .erh-image img { width:100% !important; height: clamp(130px, 20vh, 180px) !important; aspect-ratio: auto !important; object-fit: cover !important; }
.page-id-39551 .erh-portail > div:last-child { margin-top: 10px !important; padding: 8px !important; }
@media (max-width: 600px) {
  .page-id-39551 .erh-portail .erh-image img { height: auto !important; aspect-ratio:16/9 !important; }
  .page-id-39551 .erh-portail .erh-logo { max-height: 100px; }
}
/* ERHABENMAYA - Suppression du cadre du thème */

.page-id-39551 .wrapper-border {
    display: none !important;
}

.page-id-39551 .wrapper-bg-element {
    display: none !important;
}

/* Libération de la largeur du thème */

.page-id-39551 #wi-all,
.page-id-39551 #wi-wrapper,
.page-id-39551 .wi-container,
.page-id-39551 #wi-main,
.page-id-39551 #wi-content,
.page-id-39551 .single-big-section-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Élargissement de notre portail */

.page-id-39551 .erh-portail {
    width: 96% !important;
    max-width: 1800px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}
/* ERHABENMAYA - Véritable pleine largeur */

.page-id-39551 .erh-portail {
    width: 96vw !important;
    max-width: none !important;
    margin-left: calc(50% - 48vw) !important;
    margin-right: 0 !important;
    padding: 10px 20px !important;
    box-sizing: border-box !important;
}

.page-id-39551 #wi-wrapper,
.page-id-39551 .wi-container,
.page-id-39551 #wi-main,
.page-id-39551 #wi-content,
.page-id-39551 .single-big-section-content,
.page-id-39551 .entry-content {
    overflow: visible !important;
}

@media (max-width: 600px) {
    .page-id-39551 .erh-portail {
        padding: 8px !important;
    }
}