/* ============================================================
   ZENDAILY THEME — Charte fidèle au logo zendaily.life
   Logo : silhouette Bouddha watercolor, gradient chakra
   Orange #E8742A → Rose #C94B8A → Violet #8B4BB5 → Teal #3AAFA9 → Bleu #2E7BB8
   Fond : blanc · Typo : Poppins bold · Style : moderne, coloré, énergique
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --zd-orange:      #E8742A;
  --zd-pink:        #C94B8A;
  --zd-violet:      #8B4BB5;
  --zd-teal:        #3AAFA9;
  --zd-blue:        #2E7BB8;
  --zd-green:       #4CAF82;

  --zd-gradient:   linear-gradient(135deg, #E8742A 0%, #C94B8A 30%, #8B4BB5 55%, #3AAFA9 80%, #2E7BB8 100%);
  --zd-gradient-h: linear-gradient(90deg,  #E8742A 0%, #C94B8A 30%, #8B4BB5 55%, #3AAFA9 80%, #2E7BB8 100%);
  --zd-gradient-soft: linear-gradient(135deg, rgba(232,116,42,0.08) 0%, rgba(139,75,181,0.08) 50%, rgba(58,175,169,0.08) 100%);

  --zd-white:      #FFFFFF;
  --zd-offwhite:   #F8F9FA;
  --zd-light:      #F0F4F8;
  --zd-border:     #E8ECF0;
  --zd-text:       #1A1A2E;
  --zd-muted:      #6B7280;
  --zd-black:      #111111;

  --zd-font: 'Poppins', system-ui, -apple-system, sans-serif;

  --zd-r:    8px;
  --zd-r-lg: 16px;
  --zd-shadow:    0 2px 20px rgba(0,0,0,0.06);
  --zd-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --zd-ease: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--zd-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--zd-text);
  background: var(--zd-white);
  -webkit-font-smoothing: antialiased;
}

/* --- PRELOADER --- */
#preloader {
  position: fixed; inset: 0;
  background: var(--zd-white);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.preloader-zen { width: 48px; height: 48px; }
.preloader-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top: 3px solid var(--zd-orange);
  border-right: 3px solid var(--zd-pink);
  border-bottom: 3px solid var(--zd-teal);
  animation: zdSpin 0.9s linear infinite;
}
@keyframes zdSpin { to { transform: rotate(360deg); } }

/* --- NAVBAR --- */
.zd-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--zd-border);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}
.zd-navbar { padding: 0; }
.zd-navbar .container { height: 72px; display: flex; align-items: center; }

/* Brand */
.zd-brand {
  font-family: var(--zd-font);
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none !important;
  display: flex; align-items: center; gap: 10px;
  line-height: 1;
}
.zd-brand-icon {
  width: 36px; height: 40px; flex-shrink: 0; display: block;
}
.zd-brand-text {
  background: var(--zd-gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.zd-brand-dot {
  -webkit-text-fill-color: var(--zd-orange);
}

/* Masquer les anciennes balises h2 dans .navbar-brand */
.navbar-brand h2 {
  font-family: var(--zd-font) !important;
  font-weight: 800 !important;
  font-size: 1.55rem !important;
  font-style: normal !important;
  background: var(--zd-gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.01em;
}
.navbar-brand h2 em { font-style: normal; }

.zd-nav { gap: 2px; }
.zd-nav .nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zd-muted) !important;
  padding: 0.45rem 0.875rem !important;
  border-radius: var(--zd-r);
  transition: var(--zd-ease);
}
.zd-nav .nav-link:hover { background: var(--zd-light); color: var(--zd-black) !important; }
.zd-nav .nav-item.active .nav-link {
  background: var(--zd-gradient-soft);
  color: var(--zd-violet) !important;
  font-weight: 700;
}

.zd-toggler {
  border: none; background: transparent;
  padding: 4px; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px;
}
.zd-toggler span {
  display: block; width: 24px; height: 2px;
  background: var(--zd-black); border-radius: 2px;
}

/* --- HERO --- */
.main-banner { background: var(--zd-white); overflow: hidden; }
.main-banner .owl-banner .item { position: relative; overflow: hidden; }
.main-banner .owl-banner .item img {
  width: 100%; height: 500px; object-fit: cover;
  transition: transform 0.8s ease;
}
.main-banner .item:hover img { transform: scale(1.03); }
.main-banner .item-content {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 2.5rem;
  background: linear-gradient(to top, rgba(17,17,17,0.82) 0%, rgba(17,17,17,0.1) 60%, transparent 100%);
}
.main-banner .main-content { max-width: 560px; }
.main-banner .meta-category span {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: white;
  background: var(--zd-gradient-h);
  padding: 4px 14px; border-radius: 20px; margin-bottom: 0.75rem;
}
.main-banner h4 {
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700;
  color: white; line-height: 1.25; margin-bottom: 0.75rem;
}
.main-banner h4 a { color: inherit; text-decoration: none; }
.main-banner h4 a:hover { opacity: 0.85; }
.main-banner .post-info {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 1rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
}
.main-banner .post-info li a { color: inherit; text-decoration: none; }

/* --- PAGE HEADING --- */
.heading-page.header-text {
  background: var(--zd-offwhite);
  padding: 3.5rem 0;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--zd-border);
}
.heading-page.header-text::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--zd-gradient-h);
}
.heading-page h4 {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--zd-gradient-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.5rem;
}
.heading-page h1, .heading-page h2 {
  font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800;
  color: var(--zd-black); line-height: 1.15; margin: 0;
}
.heading-page h1 p, .heading-page h2 p { margin-top: 0.75rem; font-size: 1rem; font-weight: 400; color: var(--zd-muted); }

/* --- BLOG CARDS --- */
.blog-posts { padding: 3rem 0; }
.blog-post {
  background: var(--zd-white);
  border-radius: var(--zd-r-lg);
  overflow: hidden;
  box-shadow: var(--zd-shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--zd-border);
  transition: var(--zd-ease);
}
.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--zd-shadow-lg);
  border-color: transparent;
}
.blog-thumb { overflow: hidden; aspect-ratio: 16/7; }
.blog-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-post:hover .blog-thumb img { transform: scale(1.04); }

.down-content { padding: 1.75rem 2rem; }
.down-content > span {
  display: inline-block;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: white;
  background: var(--zd-gradient-h);
  padding: 3px 12px; border-radius: 20px; margin-bottom: 0.75rem;
}
.down-content h4 {
  font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700;
  color: var(--zd-black); line-height: 1.3; margin-bottom: 0.75rem;
}
.down-content h4 a {
  color: inherit; text-decoration: none; transition: all 0.2s;
}
.down-content h4 a:hover {
  background: var(--zd-gradient-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.post-info {
  list-style: none; padding: 0; margin-bottom: 0.75rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--zd-muted);
}
.post-info li { display: flex; align-items: center; gap: 4px; }
.post-info li::before { content: '·'; color: var(--zd-border); font-size: 1.2em; }
.post-info li:first-child::before { display: none; }
.post-info li a { color: inherit; text-decoration: none; }
.down-content > p {
  font-size: 0.88rem; color: var(--zd-muted); line-height: 1.65; margin-bottom: 1.25rem;
}

/* --- BUTTON --- */
.main-button, a.main-button, button.main-button {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--zd-font);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: white !important;
  background: var(--zd-gradient-h);
  border: none; padding: 0.65rem 1.5rem;
  border-radius: 50px; text-decoration: none !important;
  cursor: pointer; transition: var(--zd-ease);
  box-shadow: 0 4px 15px rgba(139, 75, 181, 0.25);
}
.main-button:hover, a.main-button:hover {
  opacity: 0.88; transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139, 75, 181, 0.38);
}

/* --- SIDEBAR --- */
.sidebar { padding-left: 1rem; }
.sidebar-item { margin-bottom: 2.5rem; }
.sidebar-heading {
  margin-bottom: 1.25rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--zd-violet);
}
.sidebar-heading h2 {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0;
  background: var(--zd-gradient-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-item.search input[type="text"] {
  width: 100%; padding: 0.65rem 1rem;
  border: 2px solid var(--zd-border); border-radius: 50px;
  font-family: var(--zd-font); font-size: 0.875rem;
  color: var(--zd-text); background: var(--zd-white);
  outline: none; transition: var(--zd-ease);
}
.sidebar-item.search input:focus {
  border-color: var(--zd-violet);
  box-shadow: 0 0 0 3px rgba(139, 75, 181, 0.12);
}
.sidebar-item.recent-posts ul { list-style: none; padding: 0; margin: 0; }
.sidebar-item.recent-posts ul li { margin-bottom: 1rem; }
.sidebar-item.recent-posts a {
  display: flex; gap: 0.75rem; text-decoration: none; align-items: flex-start;
}
.sidebar-item.recent-posts a img {
  width: 72px; height: 56px; object-fit: cover;
  border-radius: var(--zd-r); flex-shrink: 0;
}
.sidebar-item.recent-posts h5 {
  font-size: 0.82rem; font-weight: 600; color: var(--zd-black);
  margin: 0 0 4px; line-height: 1.35; transition: all 0.2s;
}
.sidebar-item.recent-posts a:hover h5 {
  background: var(--zd-gradient-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-item.recent-posts span { font-size: 0.74rem; color: var(--zd-muted); }
.sidebar-item.categories ul { list-style: none; padding: 0; margin: 0; }
.sidebar-item.categories ul li { margin-bottom: 0.4rem; }
.sidebar-item.categories a {
  font-size: 0.85rem; font-weight: 500; color: var(--zd-muted);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  padding: 0.4rem 0.75rem; border-radius: var(--zd-r);
  transition: var(--zd-ease);
}
.sidebar-item.categories a:hover { background: var(--zd-light); color: var(--zd-black); font-weight: 600; }

/* --- ARTICLE --- */
.post-content {
  font-size: 1.0625rem; line-height: 1.85; color: var(--zd-text);
}
.post-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800;
  color: var(--zd-black); line-height: 1.2; margin: 0 0 2rem;
}
.post-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem); font-weight: 700;
  color: var(--zd-black); margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem; border-bottom: 3px solid;
  border-image: var(--zd-gradient-h) 1;
}
.post-content h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--zd-violet); margin: 2rem 0 0.75rem;
}
.post-content p { margin-bottom: 1.4rem; }
.post-content strong { color: var(--zd-black); font-weight: 700; }
.post-content ol, .post-content ul { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
  border-left: 4px solid var(--zd-violet);
  padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--zd-gradient-soft);
  border-radius: 0 var(--zd-r) var(--zd-r) 0;
  font-style: italic; color: var(--zd-muted);
}
.post-content hr { border: none; border-top: 1px solid var(--zd-border); margin: 2.5rem 0; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9rem; }
.post-content th {
  background: var(--zd-gradient-h); color: white;
  padding: 0.6rem 0.875rem; text-align: left; font-weight: 700; font-size: 0.78rem;
}
.post-content td { padding: 0.6rem 0.875rem; border-bottom: 1px solid var(--zd-border); }
.post-content tr:hover td { background: var(--zd-light); }

/* Share */
.post-options { padding-top: 2rem; border-top: 1px solid var(--zd-border); }
.post-share { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.post-share strong { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zd-muted); }
.post-share a, .post-share button {
  display: inline-flex; align-items: center;
  font-size: 0.76rem; font-weight: 600; font-family: var(--zd-font);
  color: white !important; padding: 6px 16px; border-radius: 50px;
  text-decoration: none !important; transition: var(--zd-ease);
  border: none; cursor: pointer;
}
.post-share a.share-facebook { background: #1877F2; }
.post-share button.share-copy { background: #555; }
.post-share a:hover, .post-share button:hover { opacity: 0.85; transform: translateY(-1px); }

/* Prev/next */
.post-navigation {
  display: flex; justify-content: space-between;
  padding: 2rem 0; border-top: 1px solid var(--zd-border);
  margin-top: 1rem; gap: 1rem;
}
.post-nav-link {
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  color: var(--zd-violet); transition: all 0.2s; max-width: 48%;
}
.post-nav-link:hover {
  background: var(--zd-gradient-h);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.post-nav-label {
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--zd-muted) !important;
  -webkit-text-fill-color: var(--zd-muted);
  display: block; margin-bottom: 4px;
}

/* Author card */
.author-card {
  background: var(--zd-gradient-soft);
  border-radius: var(--zd-r-lg); padding: 1.75rem; margin-top: 2rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  border: 1px solid rgba(139, 75, 181, 0.15);
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--zd-gradient-h);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: white; flex-shrink: 0;
}
.author-info h3 { font-size: 1rem; font-weight: 700; color: var(--zd-black); margin: 0 0 0.25rem; }
.author-info p { font-size: 0.875rem; color: var(--zd-muted); margin: 0; line-height: 1.6; }

/* --- ABOUT --- */
.about-us { padding: 4rem 0; }
.about-us img { width: 100%; border-radius: var(--zd-r-lg); box-shadow: var(--zd-shadow-lg); }
.about-us h4 { font-size: 1.2rem; font-weight: 700; color: var(--zd-black); margin-bottom: 0.75rem; }
.about-us p { color: var(--zd-muted); line-height: 1.75; }

/* --- CONTACT --- */
.contact-us { padding: 4rem 0; }
.contact-us input, .contact-us textarea {
  width: 100%; padding: 0.7rem 1rem;
  border: 2px solid var(--zd-border); border-radius: var(--zd-r);
  font-family: var(--zd-font); font-size: 0.9rem;
  color: var(--zd-text); background: var(--zd-white);
  outline: none; transition: var(--zd-ease); margin-bottom: 0.75rem;
}
.contact-us input:focus, .contact-us textarea:focus {
  border-color: var(--zd-violet);
  box-shadow: 0 0 0 3px rgba(139, 75, 181, 0.1);
}
.contact-us textarea { resize: vertical; min-height: 140px; }
.contact-information h5 { font-size: 0.95rem; font-weight: 600; color: var(--zd-black); margin-bottom: 2px; }
.contact-information span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zd-muted); }
.contact-information ul { list-style: none; padding: 0; }
.contact-information ul li { padding: 0.75rem 0; border-bottom: 1px solid var(--zd-border); }

/* --- FOOTER --- */
.zd-footer {
  background: var(--zd-black); color: rgba(255,255,255,0.6);
  padding: 3rem 0; margin-top: 4rem;
  position: relative; overflow: hidden;
}
.zd-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--zd-gradient-h);
}
.zd-footer-brand { }
.zd-footer-brand .navbar-brand h2 { font-size: 1.4rem !important; }
.zd-footer-brand p {
  font-size: 0.85rem; color: rgba(255,255,255,0.4); margin: 0.5rem 0 0; line-height: 1.5;
}
.zd-social-icons {
  list-style: none; padding: 0; margin: 0;
  display: flex; justify-content: center; gap: 0.75rem;
}
.zd-social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none !important; transition: var(--zd-ease);
}
.zd-social-icons a:hover {
  background: var(--zd-gradient-h); color: white !important; transform: translateY(-3px);
}
.zd-footer-nav { display: flex; gap: 1.25rem; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 0.5rem; }
.zd-footer-nav a { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.zd-footer-nav a:hover { color: white; }
.zd-copyright { font-size: 0.72rem; color: rgba(255,255,255,0.25); margin: 0; text-align: right; }

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--zd-black); color: rgba(255,255,255,0.85);
  padding: 1rem 1.5rem; z-index: 1000;
  transform: translateY(100%); transition: transform 0.4s ease;
  border-top: 3px solid var(--zd-violet);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-content {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-content p { margin: 0; font-size: 0.85rem; flex: 1; }
.cookie-content a { color: var(--zd-teal); }
.cookie-buttons { display: flex; gap: 0.5rem; }
.btn-cookie-accept {
  padding: 0.45rem 1.25rem; background: var(--zd-gradient-h);
  color: white; border: none; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: var(--zd-ease);
}
.btn-cookie-accept:hover { opacity: 0.85; }
.btn-cookie-decline {
  padding: 0.45rem 1.25rem; background: transparent;
  color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; font-size: 0.82rem; cursor: pointer; transition: var(--zd-ease);
}
.btn-cookie-decline:hover { color: white; border-color: white; }

/* --- PRIVACY --- */
.privacy-content { padding: 4rem 0; max-width: 780px; }
.privacy-content h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--zd-black);
  margin: 2.5rem 0 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--zd-violet);
}
.privacy-content p { color: var(--zd-muted); line-height: 1.75; }

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .sidebar { padding-left: 0; margin-top: 3rem; }
  .zd-footer .text-right { text-align: center !important; margin-top: 1.5rem; }
  .zd-footer .text-center { margin: 1.5rem 0; }
  .zd-footer-nav { justify-content: center; }
  .zd-copyright { text-align: center; }
}
@media (max-width: 767px) {
  .main-banner .owl-banner .item img { height: 340px; }
  .heading-page.header-text { padding: 2.5rem 0; }
  .blog-posts { padding: 2rem 0; }
  .down-content { padding: 1.25rem; }
  .post-navigation { flex-direction: column; gap: 1rem; }
  .post-nav-link { max-width: 100%; }
  .author-card { flex-direction: column; gap: 1rem; }
}

/* --- UTILITY --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
