/* =========================================================
   TEMPLATE POST — ZHNI EVENTS
   HERO ARTICLE
   ========================================================= */

/* =========================
   BASE GLOBALE
   ========================= */

.zhni-post-hero-section,
.zhni-post-featured-section{
  position: relative;
  background:
    radial-gradient(circle at 85% 15%, rgba(102,252,241,0.10), transparent 28%),
    linear-gradient(135deg, #02060d 0%, #08111d 38%, #101c29 72%, #162331 100%);
}

.zhni-post-hero-row,
.zhni-post-featured-row{
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-left: 76px;
  padding-right: 76px;
  box-sizing: border-box;
}

/* =========================
   HERO
   ========================= */

.zhni-post-hero-section{
  padding: 138px 0 42px;
  overflow: hidden;
}

.zhni-post-hero-section::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 0%,
      rgba(255,255,255,0) 18%,
      rgba(255,255,255,0) 82%,
      rgba(255,255,255,0.02) 100%
    );
}

.zhni-post-hero-row{
  position: relative;
  z-index: 2;
  max-width: 980px;
}

/* =========================
   KICKER
   ========================= */

.zhni-post-kicker{
  margin-bottom: 16px;
}

.zhni-post-kicker .zhni-post-kicker-text{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #66fcf1;
}

.zhni-post-kicker .zhni-post-kicker-text::before{
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(102,252,241,0.85);
}

/* =========================
   TITLE
   ========================= */

.zhni-post-title{
  margin-bottom: 18px;
}

.zhni-post-title h1.entry-title{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* =========================
   META
   ========================= */

.zhni-post-meta{
  margin-bottom: 18px;
}

.zhni-post-meta .zhni-post-meta-inline{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}

/* =========================
   INTRO
   ========================= */

.zhni-post-intro{
  max-width: 760px;
}

.zhni-post-intro p{
  margin: 0;
  font-size: 19px;
  line-height: 1.85;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
}

/* =========================
   FEATURED IMAGE SECTION
   ========================= */

.zhni-post-featured-section{
  padding: 0 0 72px;
}

.zhni-post-featured-row{
  position: relative;
  z-index: 2;
}

.zhni-post-featured{
  margin-top: 0;
}

.zhni-post-featured img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 980px){

  .zhni-post-hero-row,
  .zhni-post-featured-row{
    padding-left: 40px;
    padding-right: 40px;
  }

  .zhni-post-hero-section{
    padding: 126px 0 34px;
  }

  .zhni-post-featured-section{
    padding: 0 0 56px;
  }

  .zhni-post-intro p{
    font-size: 18px;
    line-height: 1.8;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 767px){

  .zhni-post-hero-row,
  .zhni-post-featured-row{
    padding-left: 22px;
    padding-right: 22px;
  }

  .zhni-post-hero-section{
    padding: 112px 0 26px;
  }

  .zhni-post-kicker{
    margin-bottom: 12px;
  }

  .zhni-post-kicker .zhni-post-kicker-text{
    font-size: 11px;
    letter-spacing: 1.6px;
  }

  .zhni-post-kicker .zhni-post-kicker-text::before{
    width: 24px;
  }

  .zhni-post-title{
    margin-bottom: 14px;
  }

  .zhni-post-meta{
    margin-bottom: 14px;
  }

  .zhni-post-meta .zhni-post-meta-inline{
    font-size: 13px;
    line-height: 1.5;
  }

  .zhni-post-intro p{
    font-size: 16px;
    line-height: 1.75;
  }

  .zhni-post-featured-section{
    padding: 0 0 42px;
  }

  .zhni-post-featured img{
    border-radius: 18px;
  }
}

/* =========================================================
   CONTENT ARTICLE — ZHNI EVENTS
   ========================================================= */

.zhni-post-content-section{
  position: relative;
  background:
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
  padding: 72px 0 88px;
}

.zhni-post-content-row{
  width: min(760px, 100%);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.zhni-post-content{
  font-family: "Work Sans", sans-serif;
  color: #1f2833;
}

/* =========================
   TYPOGRAPHIE GLOBALE
   ========================= */

.zhni-post-content .et_pb_module_inner,
.zhni-post-content .entry-content{
  color: #2c3e50;
}

.zhni-post-content > *:last-child,
.zhni-post-content .entry-content > *:last-child{
  margin-bottom: 0;
}

/* =========================
   PARAGRAPHES
   ========================= */

.zhni-post-content p{
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: #32475b;
}

.zhni-post-content p + p{
  margin-top: 0;
}

/* Premier paragraphe après le hero */
.zhni-post-content > p:first-of-type,
.zhni-post-content .entry-content > p:first-of-type{
  font-size: 19px;
  line-height: 1.8;
  color: #22384c;
}

/* =========================
   HEADINGS
   ========================= */

.zhni-post-content h2{
  margin: 40px 0 14px;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #08111d;
}

.zhni-post-content h2::before{
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 0 0 14px;
  background: #66fcf1;
  opacity: 0.95;
}

.zhni-post-content h3{
  margin: 28px 0 10px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  color: #0d1d2d;
}

.zhni-post-content h4{
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: #12263a;
}

/* =========================
   LISTES
   ========================= */

.zhni-post-content ul,
.zhni-post-content ol{
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}

.zhni-post-content ul li,
.zhni-post-content ol li{
  position: relative;
  margin-bottom: 10px;
  padding-left: 28px;
  font-size: 16.5px;
  line-height: 1.72;
  color: #32475b;
}

.zhni-post-content ul li::before{
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66fcf1;
  box-shadow: 0 0 0 4px rgba(102,252,241,0.16);
}

.zhni-post-content ol{
  counter-reset: zhni-ol;
}

.zhni-post-content ol li{
  counter-increment: zhni-ol;
}

.zhni-post-content ol li::before{
  content: counter(zhni-ol);
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(102,252,241,0.18);
  color: #0d1d2d;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* =========================
   LIENS
   ========================= */

.zhni-post-content a{
  color: #0f8f95;
  text-decoration: none;
  border-bottom: 1px solid rgba(15,143,149,0.28);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.zhni-post-content a:hover{
  color: #066e73;
  border-bottom-color: rgba(6,110,115,0.55);
}

/* =========================
   STRONG / EMPHASIS
   ========================= */

.zhni-post-content strong{
  font-weight: 700;
  color: #08111d;
}

.zhni-post-content em{
  color: #41596f;
}

/* =========================
   IMAGES DANS LE CONTENU
   ========================= */

.zhni-post-content img{
  display: block;
  width: 100%;
  height: auto;
  margin: 30px 0 34px;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(7, 20, 31, 0.10);
}

.zhni-post-content figure{
  margin: 30px 0 34px;
}

.zhni-post-content figure img{
  margin: 0;
}

.zhni-post-content figcaption{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #66788a;
  text-align: center;
}

/* =========================
   BLOCKQUOTE
   ========================= */

.zhni-post-content blockquote{
  margin: 28px 0 32px;
  padding: 22px 24px;
  border-left: 3px solid #66fcf1;
  background: rgba(102,252,241,0.08);
  border-radius: 0 16px 16px 0;
}

.zhni-post-content blockquote p{
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: #173047;
}

/* =========================
   TABLES
   ========================= */

.zhni-post-content table{
  width: 100%;
  margin: 24px 0 30px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(10, 24, 39, 0.06);
}

.zhni-post-content th,
.zhni-post-content td{
  padding: 14px 16px;
  border-bottom: 1px solid #e8eef3;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
  color: #32475b;
}

.zhni-post-content th{
  background: #f4f8fb;
  font-weight: 700;
  color: #08111d;
}

.zhni-post-content tr:last-child td{
  border-bottom: none;
}

/* =========================
   HR
   ========================= */

.zhni-post-content hr{
  margin: 34px 0;
  border: 0;
  border-top: 1px solid #e5edf3;
}

/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.zhni-post-related-section{
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, rgba(102,252,241,0.08), transparent 26%),
    linear-gradient(135deg, #02060d 0%, #08111d 38%, #101c29 72%, #162331 100%);
  padding: 84px 0 96px;
}

.zhni-post-related-row{
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-left: 76px;
  padding-right: 76px;
  box-sizing: border-box;
}

.zhni-post-related-title{
  margin-bottom: 30px;
}

.zhni-post-related-title h3{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.zhni-post-related-grid .et_pb_ajax_pagination_container{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.zhni-post-related-grid .et_pb_post{
  margin-bottom: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.zhni-post-related-grid .et_pb_post:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  border-color: rgba(102,252,241,0.22);
}

.zhni-post-related-grid .entry-featured-image-url{
  margin-bottom: 0;
}

.zhni-post-related-grid .et_pb_image_container{
  margin: 0;
}

.zhni-post-related-grid .et_pb_image_container img{
  display: block;
  width: 100%;
  height: auto;
}

.zhni-post-related-grid .entry-title,
.zhni-post-related-grid h2{
  margin: 0;
  padding: 18px 20px 8px;
  font-size: 20px;
  line-height: 1.42;
  font-weight: 600;
}

.zhni-post-related-grid .entry-title a,
.zhni-post-related-grid h2 a{
  color: #ffffff;
  text-decoration: none;
}

.zhni-post-related-grid .post-content,
.zhni-post-related-grid .post-meta{
  display: none;
}

.zhni-post-related-grid .more-link{
  display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px){

  .zhni-post-content-section{
    padding: 62px 0 74px;
  }

  .zhni-post-content-row{
    width: min(720px, 100%);
    padding-left: 26px;
    padding-right: 26px;
  }

  .zhni-post-content p{
    font-size: 16.5px;
    line-height: 1.72;
  }

  .zhni-post-content > p:first-of-type,
  .zhni-post-content .entry-content > p:first-of-type{
    font-size: 18px;
    line-height: 1.75;
  }

  .zhni-post-content h2{
    font-size: 28px;
    margin-top: 34px;
  }

  .zhni-post-content h3{
    font-size: 21px;
  }

  .zhni-post-related-section{
    padding: 72px 0 82px;
  }

  .zhni-post-related-row{
    padding-left: 40px;
    padding-right: 40px;
  }

  .zhni-post-related-grid .et_pb_ajax_pagination_container{
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px){

  .zhni-post-content-section{
    padding: 48px 0 58px;
  }

  .zhni-post-content-row{
    width: 100%;
    padding-left: 22px;
    padding-right: 22px;
  }

  .zhni-post-content p{
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .zhni-post-content > p:first-of-type,
  .zhni-post-content .entry-content > p:first-of-type{
    font-size: 17px;
    line-height: 1.72;
  }

  .zhni-post-content h2{
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 25px;
    line-height: 1.24;
  }

  .zhni-post-content h2::before{
    width: 42px;
    margin-bottom: 12px;
  }

  .zhni-post-content h3{
    font-size: 20px;
  }

  .zhni-post-content ul,
  .zhni-post-content ol{
    margin: 14px 0 22px;
  }

  .zhni-post-content ul li,
  .zhni-post-content ol li{
    padding-left: 24px;
    font-size: 15.5px;
    line-height: 1.68;
  }

  .zhni-post-content ul li::before{
    top: 10px;
    width: 7px;
    height: 7px;
  }

  .zhni-post-content img,
  .zhni-post-content figure{
    margin: 24px 0 28px;
  }

  .zhni-post-content img{
    border-radius: 16px;
  }

  .zhni-post-content blockquote{
    padding: 18px 18px;
    border-radius: 0 14px 14px 0;
  }

  .zhni-post-content blockquote p{
    font-size: 16.5px;
  }

  .zhni-post-related-section{
    padding: 58px 0 66px;
  }

  .zhni-post-related-row{
    padding-left: 22px;
    padding-right: 22px;
  }

  .zhni-post-related-title{
    margin-bottom: 22px;
  }

  .zhni-post-related-title h3{
    font-size: 28px;
  }

  .zhni-post-related-grid .entry-title,
  .zhni-post-related-grid h2{
    padding: 16px 16px 8px;
    font-size: 18px;
  }
}