/*
Theme Name: YANGADEV
Theme URI: https://yangadev.org
Author: YANGADEV
Author URI: https://yangadev.org
Description: Thème WordPress pour YANGADEV — Pôle de développement agropastoral & agrobusiness | Centrafrique. Compatible Elementor. Contenu entièrement modifiable via Elementor.
Version: 1.5.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yangadev
Tags: elementor, landing-page, one-page, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   YANGADEV — Design tokens & base styles
   Ces classes sont utilisables dans Elementor (CSS personnalisé
   ou classes avancées sur les widgets).
   ============================================================ */

:root {
  --yanga-blue: #2563eb;
  --yanga-green: #1a5c2e;
  --yanga-green-light: #2d8a4e;
  --yanga-dark: #0f172a;
  --yanga-cream: #faf9f6;
  --yanga-muted: #64748b;
  --yanga-slate-50: #f8fafc;
  --yanga-slate-100: #f1f5f9;
  --yanga-slate-600: #475569;
  --yanga-slate-800: #1e293b;
  --yanga-slate-900: #0f172a;
  /* Typographie */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  /* Échelle type (rem) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md: 1.0625rem;    /* 17px — corps confortable */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: clamp(1.75rem, 3.5vw, 2.25rem);
  --text-4xl: clamp(2rem, 4.5vw, 3rem);
  --text-5xl: clamp(2.5rem, 6vw, 3.75rem);
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;
  --tracking-tight: -0.025em;
  --tracking-display: -0.03em;
  --tracking-wide: 0.08em;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
}

/* Reset léger pour le thème */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.yangadev-theme {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--yanga-slate-800);
  background-color: var(--yanga-cream);
  line-height: var(--leading-normal);
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

body.yangadev-theme ::selection {
  background: rgba(37, 99, 235, 0.2);
}

/* Typography helpers (Elementor-friendly) */
.yd-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
}

.yd-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.yd-section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yanga-blue);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.yd-h1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: var(--tracking-display);
  color: var(--yanga-slate-900);
  margin: 0;
  text-wrap: balance;
}

.yd-h1 .accent {
  color: var(--yanga-blue);
}

.yd-h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--yanga-slate-900);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.yd-h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--yanga-slate-900);
  margin: 0 0 0.5rem;
}

.yd-lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--yanga-muted);
  line-height: var(--leading-relaxed);
  max-width: 36rem;
}

.yd-text-muted {
  color: var(--yanga-muted);
  line-height: var(--leading-relaxed);
}

/* Prose / paragraphes de section */
.yd-prose {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--yanga-muted);
}
.yd-prose p + p {
  margin-top: 1rem;
}

/* Liens dans le contenu */
.yangadev-theme a:not([class]) {
  color: var(--yanga-blue);
  text-underline-offset: 0.15em;
}

/* Lisibilité formulaire */
.yd-form-card input,
.yd-form-card textarea,
.yd-form-card select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
}

/* Buttons */
.yd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yd-btn-primary {
  background: var(--yanga-slate-900);
  color: #fff;
}

.yd-btn-primary:hover {
  background: #1e293b;
  gap: 0.75rem;
  color: #fff;
}

.yd-btn-ghost {
  background: transparent;
  color: var(--yanga-muted);
}

.yd-btn-ghost:hover {
  color: var(--yanga-slate-900);
}

/* Badge / pill */
.yd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--yanga-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.yd-badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #10b981;
}

.yd-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--yanga-slate-100);
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.yd-tag-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Cards */
.yd-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.yd-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #e2e8f0;
}

.yd-card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  color: #fff;
}

.yd-card-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Section layouts */
.yd-section {
  padding: 6rem 0;
}

.yd-section-sm {
  padding: 4rem 0;
}

.yd-container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .yd-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .yd-container {
    padding: 0 2rem;
  }
}

.yd-bg-white { background: #fff; }
.yd-bg-cream { background: var(--yanga-cream); }
.yd-bg-slate { background: var(--yanga-slate-50); }
.yd-bg-dark { background: var(--yanga-slate-900); color: #fff; }

/* Header fixed */
.yd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.yd-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.yd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .yd-header-inner {
    height: 5rem;
    padding: 0 2rem;
  }
}

.yd-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--yanga-slate-900);
}

.yd-logo img {
  height: 2.25rem;
  width: 2.25rem;
  object-fit: contain;
}

.yd-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  font-size: var(--text-base);
  line-height: 1;
}

.yd-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .yd-nav {
    display: flex;
  }
}

.yd-nav a {
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--yanga-muted);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}

.yd-nav a:hover {
  color: var(--yanga-slate-900);
  background: rgba(241, 245, 249, 0.8);
}

.yd-nav-cta {
  display: none;
}

@media (min-width: 640px) {
  .yd-nav-cta {
    display: inline-flex;
  }
}

/* Mobile menu */
.yd-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--yanga-slate-900);
}

@media (min-width: 1024px) {
  .yd-menu-toggle {
    display: none;
  }
}

.yd-mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid #f1f5f9;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.yd-mobile-nav.is-open {
  display: block;
}

.yd-mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 0.75rem;
}

.yd-mobile-nav a:hover {
  background: var(--yanga-slate-50);
}

/* Hero */
.yd-hero {
  position: relative;
  min-height: 100vh;
  padding-top: 5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.yd-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
}

@media (min-width: 1024px) {
  .yd-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.yd-hero-image-wrap {
  position: relative;
}

.yd-hero-image {
  position: relative;
  width: 100%;
  max-width: min(100%, 465px);
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  max-height: 620px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  background: #0f172a;
}

.yd-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.yd-impact-card {
  position: absolute;
  bottom: -1.5rem;
  left: 1rem;
  right: 1rem;
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
  border: 1px solid #f1f5f9;
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .yd-impact-card {
    left: auto;
    right: 2rem;
    width: 18rem;
  }
}

.yd-impact-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}

.yd-impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.yd-impact-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yanga-slate-900);
}

.yd-impact-stats span {
  font-size: 0.625rem;
  color: #64748b;
}

/* Grids */
.yd-grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .yd-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.yd-grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .yd-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .yd-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.yd-grid-obj {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .yd-grid-obj {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .yd-grid-obj {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Objective number */
.yd-obj-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(37, 99, 235, 0.7);
  letter-spacing: 0.02em;
}

/* Chain cards with image */
.yd-chain-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid #f1f5f9;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}

.yd-chain-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.12);
}

.yd-chain-img {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.yd-chain-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yd-chain-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent);
}

.yd-chain-img-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: #fff;
}

.yd-chain-img-label small {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.yd-chain-img-label strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.yd-chain-body {
  padding: 1.25rem;
}

.yd-chain-body p {
  font-size: 0.875rem;
  color: var(--yanga-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.yd-chain-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yd-chain-body li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.yd-chain-body li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--yanga-blue);
  margin-top: 0.4rem;
  flex-shrink: 0;
}

/* FNUD section */
.yd-fnud-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.yd-fnud-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 1.125rem;
}

/* Hub highlight */
.yd-hub-stat {
  background: var(--yanga-slate-900);
  border-radius: var(--radius-2xl);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #fff;
}

@media (min-width: 640px) {
  .yd-hub-stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.yd-hub-stat strong {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 3.75rem);
  font-weight: 700;
  display: block;
  line-height: 1;
}

.yd-hub-stat p {
  color: #94a3b8;
  margin: 0.5rem 0 0;
  max-width: 24rem;
}

/* Engagement form */
.yd-engage-types {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.yd-engage-type {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  border-radius: var(--radius-2xl);
  border: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.yd-engage-type.is-selected {
  background: var(--yanga-slate-900);
  border-color: var(--yanga-slate-900);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.yd-engage-type.is-selected .yd-engage-desc {
  color: #cbd5e1;
}

.yd-engage-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.yd-engage-desc {
  font-size: 0.875rem;
  color: var(--yanga-muted);
  margin: 0;
}

.yd-form-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.yd-form-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.5rem;
}

.yd-form-card input[type="text"],
.yd-form-card input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.yd-form-card input:focus {
  border-color: var(--yanga-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.yd-form-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin: 1rem 0 0;
}

/* Footer */
.yd-footer {
  background: var(--yanga-slate-900);
  color: #fff;
  padding: 4rem 0 2rem;
}

.yd-footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .yd-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.yd-footer h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 1rem;
}

.yd-footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.yd-footer a:hover {
  color: #fff;
}

.yd-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yd-footer-nav li {
  margin-bottom: 0.5rem;
}

.yd-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .yd-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.yd-footer-bottom p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.yd-footer-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Utility */
.yd-mb-0 { margin-bottom: 0; }
.yd-mb-2 { margin-bottom: 0.5rem; }
.yd-mb-3 { margin-bottom: 0.75rem; }
.yd-mb-4 { margin-bottom: 1rem; }
.yd-mb-6 { margin-bottom: 1.5rem; }
.yd-mb-8 { margin-bottom: 2rem; }
.yd-mb-10 { margin-bottom: 2.5rem; }
.yd-mb-14 { margin-bottom: 3.5rem; }

.yd-mt-4 { margin-top: 1rem; }
.yd-mt-6 { margin-top: 1.5rem; }
.yd-mt-8 { margin-top: 2rem; }
.yd-mt-10 { margin-top: 2.5rem; }

.yd-flex { display: flex; }
.yd-flex-wrap { flex-wrap: wrap; }
.yd-items-center { align-items: center; }
.yd-gap-2 { gap: 0.5rem; }
.yd-gap-3 { gap: 0.75rem; }
.yd-gap-4 { gap: 1rem; }

.yd-max-w-2xl { max-width: 42rem; }
.yd-max-w-3xl { max-width: 48rem; }

.yd-text-white { color: #fff; }
.yd-text-slate-300 { color: #cbd5e1; }
.yd-text-slate-400 { color: #94a3b8; }

/* Elementor compatibility: full-width content */
.elementor-page .yd-header,
.elementor-editor-active .yd-header {
  z-index: 9999;
}

body.elementor-page .site-content,
body.elementor-default .site-content {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* Hide default WP elements when Elementor takes over */
.elementor-page .yd-native-landing {
  display: none;
}


/* Latest posts */
.yd-posts-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .yd-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .yd-posts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.yd-post-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.yd-post-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: #e2e8f0;
  transform: translateY(-2px);
}
.yd-post-card:hover .yd-post-title {
  color: var(--yanga-blue);
}
.yd-post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--yanga-slate-100);
}
.yd-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.yd-post-card:hover .yd-post-thumb img {
  transform: scale(1.04);
}
.yd-post-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
}
.yd-post-body {
  padding: 1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.yd-post-meta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.yd-post-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--yanga-slate-900);
  margin: 0;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yd-posts-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.yd-posts-header .yd-max-w-2xl {
  margin-bottom: 0;
}



/* ========== Hero image slider — cadre 3:4 rempli ========== */
.yd-slider {
  position: relative;
  width: 100%;
  max-width: min(100%, 465px);
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  max-height: 620px;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  contain: layout style;
  isolation: isolate;
}
@media (min-width: 1024px) {
  .yd-slider {
    max-width: min(100%, 480px);
  }
}
.yd-slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.yd-slider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  /* pas de scale sur le conteneur : évite les bandes / cadre non rempli */
  content-visibility: auto;
  contain: layout style paint;
}
.yd-slider-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  will-change: opacity;
  content-visibility: visible;
}
.yd-slider-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: 0;
  /* Ken Burns léger uniquement sur l'image active */
  transform: scale(1);
  transition: transform 6s ease-out;
}
.yd-slider-slide.is-active img {
  transform: scale(1.06);
}
.yd-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(15,23,42,0.35) 0%, transparent 45%);
}
.yd-slider-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 3;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
  pointer-events: none;
}
.yd-slider-slide.is-active .yd-slider-caption {
  opacity: 1;
  transform: translateY(0);
}
.yd-slider-nav {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
}
.yd-slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.yd-slider-dot.is-active {
  width: 1.5rem;
  background: #fff;
}
.yd-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.yd-slider:hover .yd-slider-btn,
.yd-slider:focus-within .yd-slider-btn {
  opacity: 1;
}
.yd-slider-btn:hover {
  background: #fff;
}
.yd-slider-btn-prev { left: 0.75rem; }
.yd-slider-btn-next { right: 0.75rem; }
.yd-slider-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}
@media (max-width: 639px) {
  .yd-slider {
    max-width: min(100%, 420px);
  }
  .yd-slider-btn { opacity: 0.85; }
  .yd-slider-caption { bottom: 4.5rem; font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .yd-slider-slide {
    transition: opacity 0.3s ease;
  }
  .yd-slider-slide img,
  .yd-slider-slide.is-active img {
    transform: none !important;
    transition: none !important;
  }
}


