/* =========================================================
   ODIA — Organization for the Development and Industrialization
   of Africa — Main Stylesheet
   Palette: forest green + orange/gold accent + deep teal, generous whitespace
   ========================================================= */

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

:root {
  --green-900: #0e3320;
  --green-800: #144228;
  --green-700: #1c5734;
  --teal-800: #10333f;
  --orange-500: #e2811e;
  --orange-400: #ee9c3f;
  --orange-050: #fdf0e2;
  --ink: #16241c;
  --ink-soft: #4d5c53;
  --paper: #ffffff;
  --mist: #f4f8f5;
  --line: #e2eae4;
  --success: #1f9d55;
  --danger: #c0392b;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(14, 51, 32, 0.07);
  --shadow-md: 0 12px 32px rgba(14, 51, 32, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--green-900); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
.icon { width: 1em; height: 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--muted { background: var(--mist); }
.section--dark { background: linear-gradient(135deg, var(--green-900), var(--teal-800)); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange-500); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--orange-500); display: inline-block; }

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--orange-500); color: #fff; }
.btn-primary:hover { background: var(--orange-400); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-green { background: var(--green-900); color: #fff; }
.btn-green:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange-500); color: var(--orange-500); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; color: var(--green-900); }
.brand img { height: 54px; width: auto; }
.brand-name { font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .66rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; max-width: 220px; }

.top-bar-slogan { background: var(--green-900); color: #fff; text-align: center; padding: 7px 12px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.newsletter-band { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input, .newsletter-form select { padding: 12px 14px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; border-radius: 8px; font-family: inherit; font-size: .88rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form input { flex: 1; min-width: 140px; }
@media (max-width: 900px) { .newsletter-band { grid-template-columns: 1fr; text-align: center; } .newsletter-form { justify-content: center; } }
.main-nav { display: flex; align-items: center; gap: 1px; flex-wrap: nowrap; }
.main-nav a {
  padding: 8px 9px; border-radius: 999px; font-weight: 600; font-size: .74rem; color: var(--ink);
  transition: all .15s ease; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--orange-050); color: var(--green-900); }
.nav-home-icon { display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0 !important; flex: none; }
.nav-home-icon .icon { width: 18px; height: 18px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; min-width: 150px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .88rem; font-weight: 500; }
.lang-menu a:hover { background: var(--mist); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(226,129,30,.3), transparent 60%),
              linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--teal-800) 100%);
}
.hero-inner { padding: 110px 24px 90px; max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,.86); font-size: 1.08rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-art .art-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); }
.hero-art .art-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.hero-art .stat b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--orange-400); }
.hero-art .stat span { font-size: .8rem; color: rgba(255,255,255,.7); }
.hero.hero--sm .hero-inner { grid-template-columns: 1fr; padding: 78px 24px; text-align: center; }
.hero.hero--sm p.lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero.hero--sm .hero-actions { justify-content: center; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: all .2s ease; height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card .card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--orange-050); color: var(--orange-500); margin-bottom: 18px;
}
.card .card-icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card.card--link:hover h3 { color: var(--orange-500); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.stat-block { background: var(--orange-050); border-radius: var(--radius); padding: 34px; border: 1px solid rgba(226,129,30,.28); }
.stat-block.alt { background: var(--mist); border-color: var(--line); }
.stat-block h3 { color: var(--green-900); }
.practice-note { margin-top: 14px; background: rgba(255,255,255,.6); border-inline-start: 4px solid var(--orange-500); padding: 12px 16px; border-radius: 8px; font-size: .88rem; font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 70px 24px; border-radius: var(--radius); background: linear-gradient(120deg, var(--green-900), var(--teal-800)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Values ---------- */
.value-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.value-item { text-align: center; padding: 24px 14px; }
.value-item .card-icon { margin: 0 auto 16px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--green-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-500); }
.field textarea { resize: vertical; min-height: 120px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 500; font-size: .92rem; }
.alert-success { background: #e9f9ef; color: var(--success); border: 1px solid #bdeccc; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f3c6c1; }

/* ---------- Get Involved cards ---------- */
.involve-card { text-align: center; padding: 36px 26px; }
.involve-card .card-icon { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 50%; }
.pull-quote { text-align: center; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--green-900); max-width: 640px; margin: 0 auto; padding: 10px 0; }
.pull-quote::before, .pull-quote::after { content: '\201C'; color: var(--orange-500); }
.pull-quote::after { content: '\201D'; }
.notice-box { background: #fdf3e6; border: 1px dashed var(--orange-500); color: #7a4f16; padding: 16px 20px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.78); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 48px; background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand span { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: .95rem; margin-bottom: 18px; }
.site-footer a:hover { color: var(--orange-400); }
.footer-links li { margin-bottom: 10px; font-size: .9rem; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: .88rem; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--orange-400); flex: none; margin-top: 2px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; }
.social-row .icon { width: 16px; height: 16px; }
.footer-bottom { padding: 22px 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- RTL ---------- */
[dir="rtl"] .eyebrow::before { order: 2; }
.pull-quote[dir] { direction: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .value-row { grid-template-columns: repeat(2, 1fr); }
  .two-col, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .main-nav, .header-actions .lang-switch span.label { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; height: 100vh;
    background: #fff; flex-direction: column; align-items: stretch; padding: 90px 24px 24px;
    transform: translateX(100%); transition: transform .25s ease; z-index: 99; box-shadow: var(--shadow-md);
  }
  [dir="rtl"] .main-nav { inset: 0 auto 0 0; transform: translateX(-100%); }
  .main-nav.open { transform: translateX(0); display: flex; }
  .main-nav a { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6, .value-row, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Hero Slider (3 slides, auto-advancing) ---------- */
.hero-slider-wrap { position: relative; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease; background-size: cover; background-position: center; border-radius: 20px; overflow: hidden;
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(120deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.62) 45%, rgba(0,0,0,.30) 100%);
  z-index: 0;
}
.hero-slide > * { position: relative; z-index: 1; }
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; position: relative; }
.hero-slide h1 { color: #fff; margin-bottom: 20px; min-height: 3.6em; }
.hero-slide p.lead { color: rgba(255,255,255,.86); font-size: 1.08rem; max-width: 540px; min-height: 4.5em; }
.hero-slide .hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.slider-controls { display: flex; align-items: center; gap: 16px; margin-top: 36px; }

.slider-dots { display: flex; gap: 10px; }
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6);
  background: transparent; padding: 0; cursor: pointer; transition: all .2s ease;
}
.slider-dots button.active { background: var(--orange-500); border-color: var(--orange-500); width: 26px; border-radius: 6px; }

.slider-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease; flex: none;
}
.slider-arrow:hover { background: rgba(255,255,255,.2); }
.slider-arrow .icon { width: 18px; height: 18px; }
.slider-arrow.prev .icon { transform: scaleX(-1); }

@media (max-width: 980px) {
  .hero-slide p.lead { margin-left: auto; margin-right: auto; }
  .hero-slide .hero-actions { justify-content: center; }
  .slider-controls { justify-content: center; }
}

/* ---------- Zigzag alternating image/text sections ---------- */
.zigzag { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.zigzag + .zigzag { margin-top: 70px; }
.zigzag.reverse { direction: rtl; }
.zigzag.reverse > * { direction: ltr; }
.zigzag-media { display: flex; align-items: center; justify-content: center; }
.zigzag-media img { width: 100%; max-width: 400px; }
.zigzag-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-900); color: var(--orange-400); font-family: var(--font-head); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }

/* ---------- Horizontal timeline (focus areas) ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 20px; }
.timeline::before { content: ''; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: var(--line); z-index: 0; }
.timeline-step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.timeline-dot { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2px solid var(--orange-500); color: var(--orange-500); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.timeline-dot .icon { width: 24px; height: 24px; }
.timeline-step h3 { font-size: .98rem; }
.timeline-step p { font-size: .85rem; }

/* ---------- Bento stat dashboard (impact) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 16px; }
.bento-tile { border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: center; color: #fff; background-size: cover; background-position: center; transition: transform .25s ease, box-shadow .25s ease; }
.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento-tile h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.bento-tile p { color: rgba(255,255,255,.82); font-size: .82rem; margin: 0; }
.bento-tile .icon { width: 26px; height: 26px; margin-bottom: 10px; }
.bento-tile.b1 { grid-column: span 3; grid-row: span 2; background: linear-gradient(135deg, var(--green-900), var(--teal-800)); }
.bento-tile.b2 { grid-column: span 3; background: var(--orange-500); }
.bento-tile.b3 { grid-column: span 3; background: var(--green-700); }
.bento-tile.b4 { grid-column: span 2; background: var(--teal-800); }
.bento-tile.b5 { grid-column: span 2; background: var(--orange-400); }
.bento-tile.b6 { grid-column: span 2; background: var(--green-900); }

/* ---------- Get Involved color blocks ---------- */
.involve-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-radius: var(--radius); overflow: hidden; }

/* ---------- Pill row (secondary items list, e.g. remaining programmes on homepage) ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: .88rem; color: var(--green-900); transition: all .18s ease;
}
.pill .icon { width: 17px; height: 17px; color: var(--orange-500); flex: none; }
.pill:hover { border-color: var(--orange-500); background: var(--mist); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(14,51,32,.08); }
.involve-block { padding: 40px 26px; color: #fff; text-align: center; transition: transform .2s ease; }
.involve-block:hover { transform: translateY(-6px); }
.involve-block .card-icon { background: rgba(255,255,255,.16); color: #fff; margin: 0 auto 16px; }
.involve-block h3 { color: #fff; }
.involve-block p { color: rgba(255,255,255,.85); font-size: .88rem; }
.involve-block a { color: #fff; text-decoration: underline; font-weight: 600; font-size: .85rem; }
.involve-block.i1 { background: var(--green-900); }
.involve-block.i2 { background: var(--teal-800); }
.involve-block.i3 { background: var(--orange-500); }
.involve-block.i4 { background: var(--green-700); }

@media (max-width: 980px) {
  .zigzag { grid-template-columns: 1fr; text-align: center; }
  .zigzag.reverse { direction: ltr; }
  .zigzag-media { order: -1; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .timeline::before { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .bento-tile.b1 { grid-column: span 2; grid-row: span 1; }
  .bento-tile.b2, .bento-tile.b3, .bento-tile.b4, .bento-tile.b5, .bento-tile.b6 { grid-column: span 1; }
  .involve-blocks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .involve-blocks { grid-template-columns: 1fr; }
}

/* ---------- Chatbot widget: "Allo ODIA" ---------- */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 14px;
  background: var(--green-900); color: #fff; border: none; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(11,31,58,.35); cursor: pointer; font-family: var(--font-head);
  font-weight: 700; font-size: .92rem; transition: transform .2s ease;
}
.chat-launcher:hover { transform: translateY(-3px); }
.chat-launcher .icon-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--orange-500); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-launcher .icon-circle .icon { width: 18px; height: 18px; color: var(--green-900); }
.chat-launcher .pulse { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: #23c55e; border: 2px solid #fff; }
[dir="rtl"] .chat-launcher { right: auto; left: 24px; }
[dir="rtl"] .chat-launcher .pulse { right: auto; left: -3px; }

.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 200;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 140px);
  background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(11,31,58,.3);
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.chat-panel.open { display: flex; }
[dir="rtl"] .chat-panel { right: auto; left: 24px; }

.chat-header { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-header .icon-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-500); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-header .icon-circle .icon { width: 20px; height: 20px; color: var(--green-900); }
.chat-header .chat-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.chat-header .chat-sub { font-size: .75rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.chat-header .chat-sub .dot { width: 7px; height: 7px; border-radius: 50%; background: #23c55e; }
.chat-close { margin-inline-start: auto; background: rgba(255,255,255,.15); border: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-close .icon { width: 16px; height: 16px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--mist); }
.chat-bubble { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .88rem; line-height: 1.5; }
.chat-bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.chat-bubble.user { align-self: flex-end; background: var(--green-900); color: #fff; border-bottom-right-radius: 4px; }
[dir="rtl"] .chat-bubble.bot { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .chat-bubble.user { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); opacity: .4; animation: chat-typing-blink 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-typing-blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-disclaimer { font-size: .7rem; color: var(--ink-soft); text-align: center; padding: 6px 12px 0; }

.chat-input-row { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input-row input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; font-family: var(--font-body); font-size: .88rem; }
.chat-input-row input:focus { outline: none; border-color: var(--orange-500); }
.chat-mic, .chat-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s ease; }
.chat-mic { background: var(--mist); color: var(--green-900); }
.chat-mic.listening { background: #fdecea; color: var(--danger); animation: mic-pulse 1s infinite; }
@keyframes mic-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.4); } 50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); } }
.chat-send { background: var(--orange-500); color: var(--green-900); }
.chat-send:hover { background: var(--orange-400); }
.chat-mic .icon, .chat-send .icon { width: 18px; height: 18px; }
.chat-mic[hidden] { display: none; }

@media (max-width: 480px) {
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 88px; }
  [dir="rtl"] .chat-panel { left: 16px; }
  .chat-launcher span.label { display: none; }
  .chat-launcher { padding: 14px; }
}

/* ---------- Hero with real photo (inner pages) ---------- */
.hero.hero--sm.hero--photo .hero-inner { grid-template-columns: 1.1fr .9fr; text-align: left; padding: 90px 24px; }
.hero--photo .hero-photo-wrap { position: relative; }
.hero--photo .hero-photo-wrap img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(14,51,32,.35); border: 4px solid rgba(255,255,255,.15);
}
@media (max-width: 980px) {
  .hero.hero--sm.hero--photo .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero--photo .hero-photo-wrap { order: -1; max-width: 420px; margin: 0 auto 20px; }
}

/* ---------- Section banner image (homepage section accents) ---------- */
.section-banner { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); margin-bottom: 40px; box-shadow: var(--shadow-md); }



/* ============================================================
   HERO SLIDER AVEC IMAGES DE FOND
   ============================================================ */
.hero--slider {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-slider-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.05);
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 40, 30, 0.78) 0%,
    rgba(0, 60, 45, 0.55) 50%,
    rgba(0, 30, 20, 0.80) 100%
  );
  pointer-events: none;
}

.hero--slider .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Texte en blanc sur fond image */
.hero--slider .hero-slide h1,
.hero--slider .hero-slide .lead,
.hero--slider .hero-slide .eyebrow {
  color: #fff;
}

.hero--slider .hero-slide .lead {
  color: rgba(255, 255, 255, 0.88);
}

.hero--slider .hero-slide .eyebrow {
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.15em;
}

/* Flèches du slider */
.hero--slider .slider-arrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.hero--slider .slider-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero--slider .slider-dots button {
  background: rgba(255, 255, 255, 0.4);
}

.hero--slider .slider-dots button.active {
  background: #fff;
  transform: scale(1.25);
}

/* Animation du texte des slides */
.hero-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

/* Le hero-art garde sa position */
.hero--slider .hero-art .art-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 900px) {
  .hero--slider {
    min-height: 560px;
  }
  .hero--slider .hero-inner {
    flex-direction: column;
  }
  .hero--slider .hero-art {
    display: none;
  }
}

/* ============================================================
   SUPPRESSION DU FOND SOMBRE AUTOUR DU TEXTE DU SLIDER
   ============================================================ */

/* Supprime le fond sombre du conteneur des slides */
.hero--slider .hero-slider-wrap,
.hero--slider .hero-slide {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  border: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Si la zone sombre vient d'un pseudo-élément ::before ou ::after */
.hero--slider .hero-slider-wrap::before,
.hero--slider .hero-slider-wrap::after,
.hero--slider .hero-slide::before,
.hero--slider .hero-slide::after {
  display: none !important;
  background: transparent !important;
  content: none !important;
}
/* ---------- Popup newsflash flyer ---------- */
.popup-overlay { position: fixed; inset: 0; background: rgba(14,51,32,.55); z-index: 300; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s ease; padding: 20px; }
.popup-overlay.open { opacity: 1; visibility: visible; }
.popup-card { background: #fff; border-radius: 16px; max-width: 480px; width: 100%; padding: 40px 34px 34px; position: relative; box-shadow: 0 30px 70px rgba(0,0,0,.35); transform: translateY(14px); transition: transform .3s ease; }
.popup-overlay.open .popup-card { transform: translateY(0); }
.popup-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--mist); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
[dir="rtl"] .popup-close { right: auto; left: 14px; }
.popup-close .icon { width: 16px; height: 16px; }
.popup-kicker { color: var(--orange-500); font-weight: 700; text-transform: uppercase; font-size: .74rem; letter-spacing: .06em; margin-bottom: 10px; }
.popup-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.popup-tagline { font-weight: 600; color: var(--green-900); font-size: .92rem; }
.popup-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Status badges (Projects & Programmes) ---------- */
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.status-badge.pilot { background: #fdf0e2; color: var(--orange-500); }
.status-badge.feasibility { background: #eaf1ed; color: var(--teal-800); }
.status-badge.progress { background: #e9f5ee; color: var(--green-700); }

/* ---------- Tiers comparison table ---------- */
.tiers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tier-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; background: #fff; }
.tier-card.featured { border-color: var(--orange-500); box-shadow: var(--shadow-md); position: relative; }
.tier-card h3 { color: var(--green-900); margin-bottom: 16px; }
.tier-card ul li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: .86rem; color: var(--ink-soft); }
.tier-card ul li::before { content: '\2713'; position: absolute; left: 0; color: var(--orange-500); font-weight: 700; }
[dir="rtl"] .tier-card ul li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .tier-card ul li::before { left: auto; right: 0; }
@media (max-width: 900px) { .tiers-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiers-grid { grid-template-columns: 1fr; } }

/* ---------- Simple data table (partner network) ---------- */
.data-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.data-table th { text-align: left; background: var(--mist); padding: 12px 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.data-table td { padding: 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
[dir="rtl"] .data-table th { text-align: right; }

/* ---------- Flagship event card ---------- */
.flagship-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 20px; background: #fff; }
.flagship-card .flagship-date { color: var(--orange-500); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.flagship-card h3 { margin-bottom: 4px; }
.flagship-card .flagship-sub { color: var(--ink-soft); font-size: .88rem; margin-bottom: 14px; }
.flagship-card .flagship-note { font-size: .8rem; color: var(--ink-soft); font-style: italic; margin-top: 12px; }

/* ---------- Text link + past badge (used on new pages) ---------- */
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; color: var(--orange-500); }
.text-link:hover { text-decoration: underline; }
.badge-past { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); background: var(--mist); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
