/*
Theme Name: ZoBorilaks
Theme URI: https://mountdhorebsauvemistryradio.org
Author: Borilaks
Version: 1.0
Text Domain: zoborilaks
*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f7fb;
  color: #1b1b1b;
}
/* ================= HEADER ================= */
.site-header {
  background: linear-gradient(90deg, #2f6fd6, #e6e94a);
  padding: 18px 0;
}

.site-header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

/* ================= MENU BAR ================= */
.menu-bar {
  background: linear-gradient(90deg, #f39c12, #7fb3d5);
}

.menu-inner {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MENU */
.main-navigation .menu {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  text-decoration: none;
  font-weight: 600;
  color: #222;
}

/* ================= PLAYER ================= */
.radio-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.6);
  padding: 6px 12px;
  border-radius: 25px;
}

.radio-bar button {
  border: none;
  background: #1e88e5;
  color: white;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
}

.radio-bar input[type="range"] {
  width: 120px;
}

/* ================= WHATSAPP ================= */
.whatsapp {
  background: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .menu-inner {
    flex-direction: column;
    gap: 12px;
  }

  .main-navigation .menu {
    justify-content: center;
  }

  .radio-bar {
    justify-content: center;
  }
}
/* ================= LOGO FIX (NET & NON FLOU) ================= */
.custom-logo {
  max-height: 60px;
  width: auto;
  height: auto;
  image-rendering: auto;
}

.custom-logo img {
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
/* ================= HEADER LAYOUT FIX ================= */

/* Header global */
.site-header {
  padding: 20px 0 10px;
}

/* Centre le branding */
.site-header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo + titre groupé et centré */
.branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Groupe titre */
.site-title-group {
  text-align: left;
}

/* ================= MENU BAR STRUCTURE ================= */

.menu-bar {
  padding: 10px 0;
}

.menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Menu à gauche */
.main-navigation {
  flex: 1;
}

/* Player centré */
.radio-bar {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* WhatsApp à droite */
.whatsapp {
  flex: 1;
  text-align: right;
}
@media (max-width: 768px) {
  .menu-inner {
    flex-direction: column;
    gap: 10px;
  }

  .main-navigation,
  .radio-bar,
  .whatsapp {
    text-align: center;
    justify-content: center;
  }
}
/* === SLOGAN === */

.site-slogan {
  font-size: 14px;
  color: #000;
  text-align: center;
  margin-top: 4px;
}
/* ===============================
   BRANDING FIX – FORCE PROPRE
   =============================== */

.site-header .site-header-inner {
  display: flex;
  justify-content: center;
}

.site-header .branding {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* LOGO */
.site-header .branding .custom-logo {
  max-height: 70px;
  width: auto;
  margin-bottom: 6px;
}

/* TITRE */
.site-header .site-title {
  font-size: 22px;
  font-weight: 600;
  color: #000;
}

/* SLOGAN */
.site-header .site-slogan {
  display: block;
  font-size: 14px;
  color: #000;
  margin-top: 2px;
}
/* ===============================
   BRANDING FIX – LOGO À GAUCHE
   =============================== */

.site-header .site-header-inner {
  display: flex;
  justify-content: center;
}

.site-header .branding {
  display: flex !important;
  flex-direction: row !important;   /* LOGO À GAUCHE */
  align-items: center !important;
  text-align: left !important;
  gap: 10px;                         /* espace presque collé */
}

/* LOGO */
.site-header .branding .custom-logo {
  max-height: 65px;
  width: auto;
}

/* CONTENEUR TEXTE */
.site-header .branding-text {
  display: flex;
  flex-direction: column;
}

/* TITRE */
.site-header .site-title {
  font-size: 22px;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
}

/* SLOGAN */
.site-header .site-slogan {
  display: block;
  font-size: 14px;
  color: #000;
  margin-top: 2px;
}
/* ===============================
   SLOGAN SOUS LE TITRE – CENTRÉ
   =============================== */

.site-header .branding-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* titre aligné à gauche par rapport au logo */
}

/* TITRE */
.site-header .site-title {
  font-size: 22px;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
}

/* SLOGAN */
.site-header .site-slogan {
  display: block;
  width: 100%;
  text-align: center;   /* 👈 CENTRÉ SOUS LE TITRE */
  font-size: 14px;
  color: #000;
  margin-top: 4px;
}

/* ===============================
   BLOG / NOUVELLES – STYLE PRO
=============================== */

body.blog article,
body.archive article {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px;

  background: #fff;
  border-radius: 10px;
  border-left: 8px solid #1f3cff;

  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

body.blog article h1,
body.archive article h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #000;
}

body.blog article p,
body.archive article p {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}

body.blog article img,
body.archive article img {
  max-width: 35%;
  display: block;
  margin: 0 auto 25px;
  border-radius: 8px;
}
/* ===============================
   SINGLE POST – STYLE PRO
   =============================== */

.single-post-page .post-card {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px 36px;

  background: #ffffff;
  border-radius: 10px;

  border-left: 8px solid transparent;
  border-image: linear-gradient(
    to bottom,
    #1f3cff 0%,
    #f39c12 55%,
    #f9e79f 100%
  );
  border-image-slice: 1;

  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.single-post-page .post-title {
  font-size: 30px;
  margin-bottom: 10px;
  color: #000;
}

.single-post-page .post-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.single-post-page .post-featured-image img {
  display: block;
  max-width: 60%;
  height: auto;
  margin: 0 auto 25px auto;
  border-radius: 8px;
}

.single-post-page .post-content {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}

/* ACTIONS */
.post-actions {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #ddd;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.back-to-news {
  font-weight: 600;
  color: #1f3cff;
  text-decoration: none;
}

.back-to-news:hover {
  text-decoration: underline;
}

.share-buttons a {
  margin-left: 12px;
  padding: 6px 12px;
  background: #1f3cff;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}

.share-buttons a:hover {
  opacity: 0.85;
}

/* MOBILE */
@media (max-width: 768px) {
  .single-post-page .post-featured-image img {
    max-width: 90%;
  }

  .post-actions {
    gap: 12px;
    justify-content: center;
  }

  .share-buttons a {
    margin-left: 6px;
  }
}
/* ===============================
   PAGE + POST – CARTE UNIFIÉE
   =============================== */

.page-read .post-card,
.single-post-page .post-card {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px 36px;

  background: #ffffff;
  border-radius: 10px;

  border-left: 8px solid transparent;
  border-image: linear-gradient(
    to bottom,
    #1f3cff 0%,
    #f39c12 55%,
    #f9e79f 100%
  );
  border-image-slice: 1;

  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.page-read .post-title,
.single-post-page .post-title {
  font-size: 30px;
  margin-bottom: 18px;
  color: #000;
}

.page-read .post-featured-image img,
.single-post-page .post-featured-image img {
  display: block;
  max-width: 60%;
  margin: 0 auto 25px auto;
  border-radius: 8px;
}

.page-read .post-content,
.single-post-page .post-content {
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}

/* ACTIONS */
.post-actions {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #ddd;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.back-to-news {
  font-weight: 600;
  color: #1f3cff;
  text-decoration: none;
}

.share-buttons a {
  margin-left: 12px;
  padding: 6px 12px;
  background: #1f3cff;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}

.share-buttons a:hover {
  opacity: 0.85;
}

/* MOBILE */
@media (max-width: 768px) {
  .page-read .post-featured-image img,
  .single-post-page .post-featured-image img {
    max-width: 90%;
  }

  .post-actions {
    justify-content: center;
    gap: 12px;
  }
}
/* =========================================
   HOME — SCROLLING NEWS BAR
========================================= */

body.home .news-ticker {
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
}

body.home .news-ticker-inner {
  white-space: nowrap;
  padding: 8px 0;
  animation: ticker-scroll 28s linear infinite;
}

body.home .ticker-item {
  display: inline-block;
  margin-right: 60px;
}

body.home .ticker-item a {
  font-size: 14px;
  font-weight: 600;
  color: #1f3cff;
  text-decoration: none;
}

body.home .ticker-item a:hover {
  text-decoration: underline;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
/* ===== SOCIAL ICONS HEADER ===== */
.social-icons {
  display: flex;
  gap: 10px;
  margin-left: 15px;
  align-items: center;
}

.social-icons a {
  display: inline-flex;
}

.social-icons img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 768px) {
  .social-icons {
    justify-content: center;
    margin-top: 8px;
  }
}
/* ===== HEADER STRUCTURE ===== */
.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* GAUCHE */
.branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* DROITE : WIDGET ZONE */
.header-widgets {
  display: flex;
  align-items: center;
}

/* ICONS */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.15);
}

/* MOBILE */
@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .header-widgets {
    justify-content: center;
  }
}
/* =====================================
   BODY BACKGROUND – 3 ZONES VERTICALES
   ===================================== */

body {
  background:
    /* ZONE 1 – MAWON PAL (haut) */
    linear-gradient(
      to bottom,
      #c2a58d 0%,
      rgba(194,165,141,0) 100%
    ) 0% 0% / 100% 30% no-repeat,

    /* ZONE 2 – NOIR TRÈ PALE (milieu) */
    linear-gradient(
      to bottom,
      #f2f2f2 0%,
      #f2f2f2 100%
    ) 0% 30% / 100% 30% no-repeat,

    /* ZONE 3 – BLEU PALE (bas) */
    linear-gradient(
      to bottom,
      rgba(231,240,255,0) 0%,
      #e7f0ff 100%
    ) 0% 60% / 100% 40% no-repeat;

  background-attachment: fixed;
}
