/* ==================================================
   MEDIUM DU MONDE — DESIGN FINAL BLOCKSY
   Catégories + articles individuels
   ================================================== */

/* COULEURS GÉNÉRALES */
body.category,
body.single-post {
    background: #F8F4EC !important;
    color: #322F2A !important;
}

/* ==================================================
   HEADER
   ================================================== */

body.category header#header,
body.single-post header#header,
body.category .site-header,
body.single-post .site-header,
body.category .ct-header,
body.single-post .ct-header,
body.category header#header [data-row],
body.single-post header#header [data-row] {
    background: #0D0D0D !important;
    border-color: rgba(198,161,91,.25) !important;
}

/* Nom du site */
body.category #header .site-title,
body.category #header .site-title a,
body.single-post #header .site-title,
body.single-post #header .site-title a {
    color: #F8F4EC !important;
}

/* Menu */
body.category #header .menu a,
body.single-post #header .menu a,
body.category #header nav a,
body.single-post #header nav a {
    color: #F8F4EC !important;
}

body.category #header .menu a:hover,
body.single-post #header .menu a:hover,
body.category #header .current-menu-item > a,
body.single-post #header .current-menu-item > a {
    color: #C6A15B !important;
}

/* Menu mobile */
body.category #offcanvas,
body.single-post #offcanvas,
body.category [data-id="offcanvas"],
body.single-post [data-id="offcanvas"] {
    background: #0D0D0D !important;
    color: #F8F4EC !important;
}

/* ==================================================
   HAUT DES CATÉGORIES
   ================================================== */

body.category .hero-section,
body.category [class*="hero-section"] {
    background: #F8F4EC !important;
    color: #322F2A !important;
    min-height: 0 !important;
    height: auto !important;
    padding-top: 50px !important;
    padding-bottom: 28px !important;
}

/* Titre catégorie */
body.category .hero-section h1,
body.category h1.page-title,
body.category .page-title {
    color: #171512 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(34px, 4vw, 50px) !important;
    line-height: 1.12 !important;
    margin-bottom: 22px !important;
}

/* ==================================================
   DESCRIPTION DE CATÉGORIE
   ================================================== */

body.category .page-description {
    display: flow-root !important;
    width: 100% !important;
    max-width: 1180px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;

    margin: 20px auto 0 !important;
    padding: 24px !important;

    background: #FFFDF8 !important;
    color: #625C53 !important;

    border: 1px solid #E3D8C5 !important;
    border-radius: 14px !important;

    box-shadow: 0 8px 24px rgba(32,26,18,.06) !important;

    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* Image directe */
body.category .page-description > img {
    float: left !important;
    width: 300px !important;
    max-width: 35% !important;
    height: auto !important;

    margin: 0 28px 14px 0 !important;
    border-radius: 12px !important;
}

/* Image dans figure */
body.category .page-description figure {
    float: left !important;
    width: 300px !important;
    max-width: 35% !important;

    margin: 0 28px 14px 0 !important;
}

body.category .page-description figure img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
}

body.category .page-description p {
    color: #625C53 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

body.category .page-description figcaption {
    color: #756E64 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* ==================================================
   GRILLE ET CARTES CATÉGORIES
   ================================================== */

body.category .site-main {
    background: #F8F4EC !important;
}

body.category .entries {
    gap: 24px !important;
    margin-top: 30px !important;
}

body.category article.entry-card,
body.category .entries article {
    background: #FFFDF8 !important;

    border: 1px solid #E3D8C5 !important;
    border-radius: 14px !important;

    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(32,26,18,.06) !important;
}

body.category article.entry-card img,
body.category .entries article img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

body.category article.entry-card .entry-title,
body.category article.entry-card h2,
body.category article.entry-card h3 {
    color: #171512 !important;
    font-family: Georgia, "Times New Roman", serif !important;
}

body.category article.entry-card p,
body.category article.entry-card .entry-excerpt {
    color: #625C53 !important;
}

body.category article.entry-card a:hover {
    color: #A98543 !important;
}

body.category article.entry-card .entry-meta {
    display: none !important;
}

/* ==================================================
   ARTICLE INDIVIDUEL
   ================================================== */

body.single-post .site-main {
    background: #F8F4EC !important;
}

body.single-post .entry-header {
    background: transparent !important;
}

body.single-post h1.entry-title,
body.single-post .entry-header h1 {
    color: #171512 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    line-height: 1.15 !important;
}

/* Image principale */
body.single-post .ct-featured-image img,
body.single-post .entry-header img {
    border-radius: 14px !important;
}

/* Contenu */
body.single-post .entry-content {
    background: #FFFDF8 !important;
    color: #322F2A !important;

    border: 1px solid #E3D8C5 !important;
    border-radius: 14px !important;

    padding: clamp(24px, 4vw, 52px) !important;

    font-size: 17px !important;
    line-height: 1.8 !important;

    box-shadow: 0 8px 24px rgba(32,26,18,.05) !important;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
    color: #171512 !important;
    font-family: Georgia, "Times New Roman", serif !important;
}

body.single-post .entry-content a {
    color: #A98543 !important;
    font-weight: 600 !important;
}

body.single-post .entry-content img {
    border-radius: 12px !important;
}

/* ==================================================
   BOUTONS
   ================================================== */

body.category .button,
body.single-post .button,
body.category .wp-element-button,
body.single-post .wp-element-button {
    background: #C6A15B !important;
    color: #15120D !important;

    border-radius: 999px !important;
    border: none !important;
}

/* ==================================================
   FOOTER
   ================================================== */

body.category .ct-footer,
body.single-post .ct-footer,
body.category footer#footer,
body.single-post footer#footer {
    background: #080808 !important;
    color: #D9D4CC !important;
}

body.category .ct-footer a,
body.single-post .ct-footer a,
body.category footer#footer a,
body.single-post footer#footer a {
    color: #D9D4CC !important;
}

body.category .ct-footer a:hover,
body.single-post .ct-footer a:hover {
    color: #C6A15B !important;
}

/* ==================================================
   TABLETTE
   ================================================== */

@media (max-width: 999px) {

    body.category .page-description > img,
    body.category .page-description figure {
        max-width: 42% !important;
    }
}

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

@media (max-width: 689px) {

    body.category .hero-section,
    body.category [class*="hero-section"] {
        padding-top: 32px !important;
        padding-bottom: 22px !important;
    }

    body.category .hero-section h1,
    body.category h1.page-title,
    body.category .page-title {
        font-size: 31px !important;
    }

    body.category .page-description {
        padding: 18px !important;
    }

    body.category .page-description > img,
    body.category .page-description figure {
        float: none !important;
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 0 18px 0 !important;
    }

    body.category .entries {
        grid-template-columns: 1fr !important;
    }

    body.single-post h1.entry-title {
        font-size: 31px !important;
    }

    body.single-post .entry-content {
        padding: 20px !important;
        font-size: 16px !important;
    }
}/* Finition métadonnées des articles */
body.single-post .entry-meta,
body.single-post .entry-meta * {
  color: #756E64 !important;
}

body.single-post .entry-meta a:hover {
  color: #C6A15B !important;
}

body.single-post .entry-meta svg,
body.single-post .entry-meta [class*="icon"] {
  color: #C6A15B !important;
  fill: #C6A15B !important;
}

/* ==================================================
   HARMONISATION GLOBALE — NOIR, OR ET IVOIRE
   Pages principales + catégories + articles
   ================================================== */

body.home,
body.page-id-23,
body.page-id-98,
body.page-id-25,
body.category,
body.single-post {
  background:#f5f2ec !important;
}

/* Même largeur extérieure sur tout le site */
body.home .mdm-page,
body.page-id-23 .mds-page,
body.page-id-98 .mda-page,
body.page-id-25 .mdt-page,
body.category #main-container,
body.single-post #main-container {
  width:min(1290px, calc(100% - 56px)) !important;
  margin:40px auto !important;
  overflow:hidden !important;
  box-shadow:0 12px 36px rgba(28,22,14,.08) !important;
}

/* En-têtes personnalisés des pages principales */
body.home .mdm-header,
body.page-id-23 .mds-header,
body.page-id-98 .mda-header,
body.page-id-25 .mdt-header {
  min-height:81px !important;
  height:81px !important;
  background:#0d0d0d !important;
  border-bottom:1px solid rgba(198,161,91,.28) !important;
}

body.home .mdm-header-row,
body.page-id-23 .mds-header-row,
body.page-id-98 .mda-header-row,
body.page-id-25 .mdt-header > .mdt-wrap {
  width:100% !important;
  max-width:1160px !important;
  min-height:81px !important;
  height:81px !important;
  margin:0 auto !important;
  padding:0 24px !important;
}

/* Identité commune */
body.home .mdm-brand-text,
body.page-id-23 .mds-brand-name,
body.page-id-98 .mda-brand-name,
body.page-id-25 .mdt-brand-text {
  color:#f8f4ec !important;
  font-family:Georgia, "Times New Roman", serif !important;
  font-size:16px !important;
  font-weight:700 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  line-height:1.1 !important;
}

body.home .mdm-brand-text small,
body.page-id-23 .mds-brand-name small,
body.page-id-98 .mda-brand-name small,
body.page-id-25 .mdt-brand-text small {
  display:block !important;
  margin-top:4px !important;
  color:#c6a15b !important;
  font:700 9px/1 Arial,sans-serif !important;
  letter-spacing:.22em !important;
}

body.home .mdm-brand-mark,
body.page-id-23 .mds-mark,
body.page-id-98 .mda-mark,
body.page-id-25 .mdt-brand-mark {
  width:42px !important;
  height:42px !important;
  flex:0 0 42px !important;
}

/* Navigation commune */
body.home .mdm-nav a,
body.page-id-23 .mds-nav a,
body.page-id-98 .mda-nav a,
body.page-id-25 .mdt-links > a:not(.mdt-wa) {
  color:#f1ece3 !important;
  font:700 12px/1 Arial,sans-serif !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}

body.home .mdm-nav a:hover,
body.page-id-23 .mds-nav a:hover,
body.page-id-98 .mda-nav a:hover,
body.page-id-25 .mdt-links > a:not(.mdt-wa):hover,
body.home .mdm-nav a.active,
body.page-id-23 .mds-nav a.active,
body.page-id-98 .mda-nav a.active,
body.page-id-25 .mdt-links > a.active {
  color:#c6a15b !important;
}

body.home .mdm-wa-top,
body.page-id-23 .mds-wa-top,
body.page-id-98 .mda-wa-top,
body.page-id-25 .mdt-wa {
  background:#c6a15b !important;
  color:#15120d !important;
  border:1px solid #c6a15b !important;
  border-radius:10px !important;
  padding:14px 18px !important;
  font:700 12px/1 Arial,sans-serif !important;
  letter-spacing:.04em !important;
}

/* H1 de la page Articles : contraste sur l’image */
body.page-id-98 .mda-hero h1 {
  color:#f8f4ec !important;
}
body.page-id-98 .mda-hero h1 span {
  color:#c6a15b !important;
}

/* En-tête Blocksy des catégories et articles */
body.category #header [data-row="middle"],
body.single-post #header [data-row="middle"] {
  min-height:81px !important;
  height:81px !important;
  background:#0d0d0d !important;
}

body.category #header .ct-container,
body.single-post #header .ct-container {
  width:100% !important;
  max-width:1160px !important;
  padding:0 24px !important;
}

body.category #header .site-title a,
body.single-post #header .site-title a {
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  font-size:0 !important;
  text-decoration:none !important;
}

body.category #header .site-title a::before,
body.single-post #header .site-title a::before {
  content:"◇" !important;
  color:#c6a15b !important;
  font:400 48px/1 Georgia,serif !important;
}

body.category #header .site-title a::after,
body.single-post #header .site-title a::after {
  content:"MÉDIUM DU MONDE · LUC DANSSI" !important;
  white-space:pre !important;
  color:#f8f4ec !important;
  font:700 15px/1.25 Georgia,serif !important;
  letter-spacing:.08em !important;
}

body.category #header .menu a,
body.single-post #header .menu a {
  font:700 12px/1 Arial,sans-serif !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
}

/* Cohérence des titres et cartes */
body.category h1.page-title,
body.single-post .entry-header h1,
body.home h1,
body.page-id-23 h1,
body.page-id-98 h1,
body.page-id-25 h1 {
  font-family:Georgia, "Times New Roman", serif !important;
}

body.category article.entry-card,
body.single-post .entry-content {
  border-color:#e3d8c5 !important;
  box-shadow:0 8px 24px rgba(32,26,18,.06) !important;
}

/* Mobile */
@media (max-width:689px) {
  body.home .mdm-page,
  body.page-id-23 .mds-page,
  body.page-id-98 .mda-page,
  body.page-id-25 .mdt-page,
  body.category #main-container,
  body.single-post #main-container {
    width:100% !important;
    margin:0 auto !important;
    box-shadow:none !important;
  }

  body.home .mdm-header,
  body.page-id-23 .mds-header,
  body.page-id-98 .mda-header,
  body.page-id-25 .mdt-header,
  body.category #header [data-row="middle"],
  body.single-post #header [data-row="middle"] {
    min-height:68px !important;
    height:68px !important;
  }

  body.home .mdm-header-row,
  body.page-id-23 .mds-header-row,
  body.page-id-98 .mda-header-row,
  body.page-id-25 .mdt-header > .mdt-wrap {
    min-height:68px !important;
    height:68px !important;
    padding:0 16px !important;
  }

  body.category #header .site-title a::before,
  body.single-post #header .site-title a::before {
    font-size:38px !important;
  }

  body.category #header .site-title a::after,
  body.single-post #header .site-title a::after {
    font-size:12px !important;
  }
}
