/* ==========================================================================
   MMC — Maison Méditerranéenne du Climat (Premium Theme Redesign)
   ========================================================================== */

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

:root {
  /* Dynamic Design Tokens (Med-Ocean & Coral Palette) */
  --primary-hsl: 213, 72%, 15%;
  --primary: hsl(var(--primary-hsl));
  --primary-dark: hsl(215, 80%, 9%);
  --primary-light: hsl(210, 60%, 28%);
  
  --secondary-hsl: 160, 84%, 39%;
  --secondary: hsl(var(--secondary-hsl));
  --secondary-dark: hsl(162, 90%, 25%);
  --secondary-light: hsl(155, 75%, 48%);
  
  --accent-hsl: 11, 100%, 64%;
  --accent: hsl(var(--accent-hsl));
  --accent-light: hsl(11, 95%, 72%);
  --accent-dark: hsl(11, 85%, 52%);
  
  --sand: #FAF9F6;
  --sand-dark: #F2EFE9;
  --dark: #0A1118;
  --white: #FFFFFF;
  
  --text: #2D3748;
  --text-muted: #718096;
  --border: rgba(10, 34, 64, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  
  /* Modern Shadow & Glow tokens */
  --shadow-sm: 0 2px 8px rgba(10, 34, 64, 0.03);
  --shadow: 0 16px 40px -12px rgba(10, 34, 64, 0.06), 0 1px 3px rgba(10, 34, 64, 0.02);
  --shadow-lg: 0 24px 48px -10px rgba(10, 34, 64, 0.1), 0 1px 4px rgba(10, 34, 64, 0.03);
  --glow-accent: 0 0 20px rgba(255, 107, 74, 0.2);
  --glow-teal: 0 0 20px rgba(16, 185, 129, 0.2);
  
  /* Radii & Font weights */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 28px;
  
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-headings: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-ar: 'Segoe UI', 'Tahoma', Arial, sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body[lang="ar"] {
  font-family: var(--font-ar);
  direction: rtl;
}

/* Headings Styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
}
.section-sm {
  padding: 60px 0;
}
.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  max-width: 680px;
}
.section-header {
  margin-bottom: 56px;
}
.section-header .tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(255, 107, 74, 0.2);
}
.text-center {
  text-align: center;
}
.text-center .section-subtitle {
  margin: 0 auto 50px;
}
.bg-sand {
  background: var(--sand);
}
.bg-primary {
  background: var(--primary);
}
.bg-dark {
  background: var(--dark);
}
.text-white {
  color: var(--white);
}

/* Modern Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== ALERT BANNER ===== */
.alert-banner {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  font-size: 0.85rem;
  padding: 10px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}
.alert-banner a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
  transition: var(--transition);
}
.alert-banner a:hover {
  text-decoration: underline;
  color: var(--white);
}

/* ===== TOP BAR ===== */
.topbar {
  background: rgba(10, 34, 64, 0.03);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.topbar a:hover {
  color: var(--accent);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 107, 74, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.45);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 9px 22px;
  font-size: 0.85rem;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1300px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-img {
  height: 55px;
  width: auto;
  display: block;
}
.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(10, 34, 64, 0.15);
}
.logo-text {
  line-height: 1.25;
}
.logo-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-headings);
}
.logo-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(10, 34, 64, 0.05);
  color: var(--primary);
}
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.25);
  border-radius: 50px !important;
  padding: 10px 24px !important;
}
.nav-cta:hover {
  box-shadow: 0 6px 18px rgba(255, 107, 74, 0.4) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  background: radial-gradient(circle at 80% 20%, hsl(210, 60%, 20%), var(--primary-dark));
  color: var(--white);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M40 38v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 38v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-waves {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  color: var(--white);
  fill: currentColor;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  background: rgba(255, 107, 74, 0.15);
  border: 1px solid rgba(255, 107, 74, 0.3);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
}
.hero-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.hero-stat strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-headings);
}
.hero-stat span {
  font-size: 0.85rem;
  opacity: 0.75;
}
.hero-visual {
  position: relative;
}

/* Map & Legend */
.hero-visual-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.3);
  box-sizing: border-box;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.hero-visual-wrap:hover {
  transform: scale(1.03);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.45);
}
.med-map-img-container {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  position: relative;
}
.map-hover-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(255, 107, 74, 0.15);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: mapRippleAnim 1.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes mapRippleAnim {
  0% {
    width: 8px;
    height: 8px;
    opacity: 0.8;
  }
  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
  }
}
.med-map-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.med-map h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin-bottom: 20px;
  color: var(--white);
}
.map-svg-container {
  width: 100%;
  position: relative;
}
.map-svg-container svg {
  width: 100%;
  height: auto;
}
.map-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  border: 2px solid white;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: var(--glow-teal);
}
.map-dot::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  animation: pulse 2s infinite;
}
.map-legend {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  opacity: 0.8;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== IMPACT BAR ===== */
.impact-bar {
  background: var(--sand);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.impact-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.impact-item {
  position: relative;
  text-align: center;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  overflow: hidden;
}
.impact-item:hover {
  transform: translateY(-8px);
  border-color: rgba(10, 34, 64, 0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 20px rgba(224, 123, 57, 0.1);
}
.impact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(224, 123, 57, 0.1), rgba(224, 123, 57, 0.02));
  border: 1px solid rgba(224, 123, 57, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(224, 123, 57, 0.1);
  transition: var(--transition);
}
.impact-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2px;
}
.impact-item:hover .impact-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(224, 123, 57, 0.3);
}
.impact-item strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: var(--font-headings);
}
.impact-item > span {
  font-size: 0.82rem;
  opacity: 0.9;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  display: block;
}

/* ===== CARDS (General & News) ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 34, 64, 0.15);
}
.card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.card:hover .card-img img {
  transform: scale(1.06);
}
.card-body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-tag {
  display: inline-block;
  background: rgba(10, 34, 64, 0.05);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.card-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(10, 34, 64, 0.01);
}
.read-more {
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.card:hover .read-more {
  transform: translateX(4px);
}

/* News side card item */
.news-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  align-items: center;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}
.news-card:hover {
  transform: translateX(6px);
  border-color: rgba(10, 34, 64, 0.15);
  box-shadow: var(--shadow-lg);
}
.news-date {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.news-date strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-headings);
}
.news-date span {
  font-size: 0.72rem;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.5px;
}
.news-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 4px 0 6px;
  color: var(--primary);
  line-height: 1.35;
}
.news-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== PARTNERS ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.partner-item {
  background: var(--white);
  border: 1px solid rgba(10, 34, 64, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  transition: var(--transition);
  box-shadow: 0 10px 30px -15px rgba(10, 34, 64, 0.05);
  position: relative;
  overflow: hidden;
}
.partner-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}
.partner-item:hover {
  transform: translateY(-5px);
  border-color: rgba(10, 34, 64, 0.15);
  box-shadow: 0 20px 40px -20px rgba(10, 34, 64, 0.12);
}
.partner-item:hover::before {
  opacity: 1;
}
.partner-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.partner-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 10px rgba(10, 34, 64, 0.1);
  overflow: hidden;
}
.partner-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.partner-meta-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.partner-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent);
}
.partner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.35;
}
.partner-body {
  flex-grow: 1;
}
.partner-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== PARTNERS FULL DETAIL CARDS (Notre Réseau page) ===== */
.partner-full-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 24px;
  align-items: start;
}
.partner-full-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 34, 64, 0.12);
}
.partner-logo-lg {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  box-shadow: var(--shadow-sm);
}
.partner-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.partner-full-card h4 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary);
}
.partner-full-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.partner-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.partner-tag {
  font-size: 0.72rem;
  background: var(--sand);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(10,34,64,0.05);
}

/* ===== PREMIUM BENTO GRID (Nos Axes Stratégiques) ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 24px;
}
.bento-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-decoration: none;
  overflow: hidden;
  color: var(--text);
  box-shadow: 0 4px 15px rgba(10,34,64,0.04);
  box-sizing: border-box;
}
.bento-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px rgba(10,34,64,0.12);
  border-color: rgba(10,34,64,0.15);
}
.bento-card .icon {
  position: relative;
  margin-bottom: 20px;
  width: 56px;
  height: 56px;
  background: rgba(224, 123, 57, 0.1);
  color: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  flex-shrink: 0;
}
.bento-card:hover .icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(224, 123, 57, 0.3);
}
.bento-card .icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2px;
}
.bento-card .bento-content {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
}
.bento-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  max-width: 100%;
}
.bento-link {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.4s;
}
.bento-link svg {
  width: 18px;
  height: 18px;
}
.bento-card:hover .bento-link {
  opacity: 1;
  transform: translateX(0);
}

/* Grid Spanning */
.card-1 { grid-column: span 8; grid-row: span 1; }
.card-2 { grid-column: span 4; grid-row: span 1; }
.card-3 { grid-column: span 4; grid-row: span 1; }
.card-4 { grid-column: span 4; grid-row: span 1; }
.card-5 { grid-column: span 4; grid-row: span 1; }
.card-6 { 
  grid-column: span 12; 
  grid-row: span 1; 
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); 
  color: white; 
  border: none; 
}
.card-6 h4 { color: white; }
.card-6 p { color: rgba(255,255,255,0.8); }
.card-6 .icon { background: rgba(255,255,255,0.1); color: white; }
.card-6:hover .icon { background: var(--white); color: var(--primary); }

@media (min-width: 1025px) {
  .card-6 {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 32px 48px !important;
  }
  .card-6 .icon {
    margin-bottom: 0 !important;
    margin-right: 24px !important;
  }
  .card-6 .bento-content {
    margin-top: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    padding-right: 60px !important;
  }
  .card-6 h4 {
    margin-bottom: 0 !important;
    margin-right: 32px !important;
    font-size: 1.4rem !important;
    white-space: nowrap;
  }
  .card-6 p {
    margin: 0 !important;
    max-width: 70% !important;
  }
}

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-card { grid-column: span 1 !important; grid-row: span 1 !important; padding: 30px; min-height: 280px; }
  .card-1 { grid-column: span 2 !important; }
  .card-6 { grid-column: span 2 !important; }
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .card-1 { grid-column: span 1 !important; }
  .card-6 { grid-column: span 1 !important; }
}

/* Global SVG centering for icons */
.prog-icon svg,
.doc-icon-lg svg,
.action-num svg,
.contact-icon svg {
  width: 50%;
  height: 50%;
  stroke: currentColor;
  stroke-width: 2px;
  display: block;
}


/* ===== PROGRAMMES CARDS (Qui sommes-nous page) ===== */
.prog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.prog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.prog-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.prog-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary);
}
.prog-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}
.prog-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.prog-card:hover .learn-more {
  transform: translateX(4px);
}

/* ===== AXES BLOCKS (Nos Programmes page) ===== */
.programme-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.programme-block.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
.programme-block.reverse > div:first-child {
  order: 2;
}
.programme-block.reverse > div:last-child {
  order: 1;
}
.programme-number {
  font-family: var(--font-headings);
  font-size: 6rem !important;
  font-weight: 900 !important;
  opacity: 0.08 !important;
  color: var(--primary) !important;
  line-height: 0.8 !important;
  position: absolute !important;
  top: -20px !important;
  left: -10px !important;
}
.action-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.action-item:last-child {
  border-bottom: none;
}
.action-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  color: white;
  box-shadow: var(--shadow-sm);
}
.action-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary);
}
.action-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.programme-visual {
  border-radius: var(--radius-lg);
  height: 340px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.programme-block:hover .programme-visual {
  transform: scale(1.02);
}

/* ===== CHANTIERS GRID (Nos Programmes page) ===== */
.chantier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.chantier-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  position: relative;
  transition: var(--transition);
}
.chantier-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.chantier-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-headings);
  opacity: 0.08;
  color: var(--primary);
}
.chantier-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 16px 0 10px;
  color: var(--primary);
}
.chantier-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== TIMELINE HISTORIQUE (Qui sommes-nous / Événements pages) ===== */
.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--secondary));
  border-radius: 5px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
  z-index: 2;
  transition: var(--transition);
}
.timeline-item:hover::before {
  background: var(--accent);
  transform: scale(1.2);
}
.timeline-year {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.timeline-item h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
}
.timeline-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Past events list variant */
.past-event {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  align-items: center;
}
.past-event:hover {
  transform: translateX(4px);
  border-color: rgba(10,34,64,0.12);
  box-shadow: var(--shadow);
}
.past-event-year {
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--primary-light);
  font-size: 0.95rem;
}
.past-event h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary);
}
.past-event p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== EVENTS PAGE ===== */
.medcop-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.medcop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 107, 74, 0.15), transparent 50%);
}
.upcoming-badge {
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(255,107,74,0.3);
}
.medcop-edition {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
}
.event-full {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  align-items: stretch;
}
.event-full:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.event-full-date {
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  min-height: 180px;
  box-shadow: inset -5px 0 15px rgba(0,0,0,0.05);
}
.event-full-date .day {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.event-full-date .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-top: 4px;
}
.event-full-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-full-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.event-full-body .desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.event-meta-full {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ===== CONTACT & INFO GROUPS ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}
.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--sand);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 34, 64, 0.03);
}
.contact-info-item h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.join-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.join-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.15), transparent 45%);
}
.join-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 32px;
}
@media (max-width: 768px) {
  .join-categories-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== FORM STYLING ===== */
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font);
  transition: var(--transition);
  background: var(--white);
  box-shadow: inset 0 2px 4px rgba(10,34,64,0.01);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(10, 34, 64, 0.08);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: radial-gradient(circle at 20% 80%, var(--primary-light), var(--primary-dark));
  color: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero-breadcrumb {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 16px;
  font-weight: 500;
}
.page-hero-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
.page-hero-breadcrumb a:hover {
  color: var(--accent-light);
}
.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: -0.5px;
}
.page-hero p {
  font-size: 1.15rem;
  opacity: 0.88;
  max-width: 680px;
  line-height: 1.7;
}

/* ===== TABS & RESOURCE CARDS (Ressources page) ===== */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.tab-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.doc-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  align-items: start;
}
.doc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 34, 64, 0.15);
  box-shadow: var(--shadow-lg);
}
.doc-icon-lg {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  box-shadow: var(--shadow-sm);
}
.doc-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary);
  line-height: 1.35;
}
.doc-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.doc-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  align-items: center;
}
.dl-badge {
  background: var(--sand);
  color: var(--primary);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(10,34,64,0.05);
}

/* News Article Card (Actualités tab) */
.news-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  height: 100%;
}
.news-article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.news-article-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.news-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-article-body {
  padding: 24px;
  flex-grow: 1;
}
.tag-sm {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1.2px;
  display: inline-block;
  margin-bottom: 8px;
}
.news-article-body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.news-article-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.news-article-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(10, 34, 64, 0.01);
}

/* Press item list (Revue de Presse tab) */
.press-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  align-items: center;
}
.press-item:hover {
  transform: translateX(4px);
  border-color: rgba(10,34,64,0.12);
  box-shadow: var(--shadow);
}
.press-source {
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.press-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary);
}
.press-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
  border-top: 3px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .logo {
  background: white;
  padding: 6px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.footer-brand .logo .logo-img {
  height: 42px;
}
.footer-brand .logo-text strong {
  color: var(--white);
}
.footer-brand .logo-text span {
  color: rgba(255, 255, 255, 0.4);
}
.footer-desc {
  font-size: 0.88rem;
  opacity: 0.75;
  margin: 20px 0 24px;
  line-height: 1.7;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.05rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.social-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.newsletter-form input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
.newsletter-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(255, 107, 74, 0.2);
}
.newsletter-form button:hover {
  box-shadow: 0 6px 16px rgba(255, 107, 74, 0.35);
  transform: translateY(-1px);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: flex; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .programme-block, .programme-block.reverse { grid-template-columns: 1fr; gap: 40px; }
  .programme-block.reverse > div:first-child { order: 1; }
  .programme-block.reverse > div:last-child { order: 2; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .impact-bar .container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .impact-item { border-right: none; }
  .event-full { grid-template-columns: 1fr; }
  .event-full-date { min-height: 100px; height: 100px; }
  .partner-full-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .partner-logo-lg { margin-bottom: 16px; }
  .doc-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .doc-icon-lg { margin-bottom: 16px; }
  .press-item { grid-template-columns: 1fr; }
  .hamburger { display: block; }
  
  /* Mobile dropdown menu styles */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 10px 20px rgba(10, 34, 64, 0.08);
    padding: 24px;
    gap: 12px;
    z-index: 1000;
    box-sizing: border-box;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    margin: 0;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.95rem;
    box-sizing: border-box;
    text-align: left;
    border-radius: 8px;
  }
  body[lang="ar"] .nav-links a {
    text-align: right;
  }
  
  /* Topbar stacking on mobile */
  .topbar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 10px 16px;
  }
  
  /* Footer collapse on mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  
  /* Hero section heading and text resizing */
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 1rem;
  }
  
  /* Join card padding */
  .join-card {
    padding: 40px 20px;
  }
}

/* ===== VECTOR ICONS (LUCIDE ICONS) ===== */
.lucide-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}
.axis-card .lucide-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(255, 107, 74, 0.15));
}
.programme-visual .lucide-icon {
  width: 64px;
  height: 64px;
  color: white;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}
.btn .lucide-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
.doc-icon-lg .lucide-icon {
  width: 40px;
  height: 40px;
  color: white;
}
.contact-icon .lucide-icon {
  width: 22px;
  height: 22px;
  color: var(--primary-light);
}
.event-meta span .lucide-icon, .event-meta-full span .lucide-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

/* ===== STRATEGIC AXES GRID ===== */
.programmes-intro {
  background: radial-gradient(circle at 10% 20%, var(--primary-light), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 60px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 60px;
  align-items: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}
.programmes-intro h2 {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
  line-height: 1.2;
}
.programmes-intro p {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.7;
}
.strategic-axes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.axis-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.axis-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}
.axis-card .icon {
  display: block;
  margin-bottom: 16px;
}
.axis-card h4 {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}
.axis-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
  background: radial-gradient(circle at center, var(--primary-light), var(--primary-dark));
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.quote-section::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 180px;
  opacity: 0.05;
  font-family: 'Outfit', serif;
  line-height: 1;
  color: var(--white);
}
.quote-text {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  max-width: 860px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  opacity: 0.95;
}
.quote-attribution {
  font-size: 0.9rem;
  opacity: 0.6;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.05);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.15), transparent 40%);
}
.cta-section h2 {
  font-family: var(--font-headings);
  font-size: 2.6rem;
  font-weight: 850;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: -0.5px;
}
.cta-section p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.btn-white {
  background: var(--white);
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
  background: var(--sand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== ADDITIONAL MOBILE MEDIA RULES ===== */
@media (max-width: 992px) {
  .programmes-intro {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 40px;
  }
  .strategic-axes {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .strategic-axes {
    grid-template-columns: 1fr;
  }
  .cta-section h2 {
    font-size: 2rem;
  }
}

/* ===== EVENTS REDESIGNED ===== */
.event-card {
  display: flex;
  gap: 28px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(10, 34, 64, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -15px rgba(10, 34, 64, 0.05);
  align-items: center;
  transition: var(--transition);
}
.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 34, 64, 0.12);
  box-shadow: 0 20px 40px -15px rgba(10, 34, 64, 0.1);
}
.event-date-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  min-width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -8px var(--primary);
}
.event-date-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.event-date-box span {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-top: 4px;
  opacity: 0.9;
}
.event-info {
  flex-grow: 1;
}
.event-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.event-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.event-meta {
  display: flex;
  gap: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.event-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.event-meta .lucide-icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }
  .event-date-box {
    align-self: flex-start;
  }
}

/* ===== ARTICLE MODAL SYSTEM ===== */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.article-modal.open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 46, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFadeIn 0.3s ease forwards;
}
.modal-container {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10100;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 28, 46, 0.5);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10200;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.modal-close:hover {
  background: var(--accent);
  transform: scale(1.1);
}
.modal-header-img {
  position: relative;
  height: 250px;
  width: 100%;
  flex-shrink: 0;
}
.modal-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-tag {
  position: absolute;
  bottom: 16px;
  left: 20px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(255, 107, 74, 0.3);
}
.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
}
.modal-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.modal-title {
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.35;
}
.modal-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.modal-text p {
  margin-bottom: 16px;
}
.modal-text p:last-child {
  margin-bottom: 0;
}

/* RTL Specific overrides */
body[lang="ar"] .modal-body {
  text-align: right;
}
body[lang="ar"] .modal-tag {
  left: auto;
  right: 20px;
}
body[lang="ar"] .modal-close {
  right: auto;
  left: 16px;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== SINGLE POST PAGE ===== */
.single-post-wrapper {
  max-width: 860px;
  margin: -60px auto 0;
  position: relative;
  z-index: 10;
}
.single-post-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px -5px rgba(11, 28, 46, 0.08);
  padding: 48px;
  overflow: hidden;
}
.single-post-img-container {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.single-post-img-container img {
  width: 100%;
  height: auto;
  display: block;
}
.single-post-card .entry-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.single-post-card .entry-content p {
  margin-bottom: 24px;
}
.single-post-card .entry-content p:last-child {
  margin-bottom: 0;
}
.single-post-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}
.single-post-navigation {
  display: flex;
  justify-content: flex-start;
}
.single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.single-post-meta .tag-sm {
  margin-bottom: 0 !important;
}

/* RTL support for single post card */
body[lang="ar"] .single-post-card {
  text-align: right;
}
body[lang="ar"] .single-post-navigation {
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .single-post-wrapper {
    margin-top: -30px;
    padding: 0 10px;
  }
  .single-post-card {
    padding: 24px;
  }
}


