/* ==========================================================================
   DONIT THEME REPLICA - STYLESHEET POUR ELECTRONS LIBRES (2026)
   Design System Institutionnel Non-Lucratif (Loi 1901)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary-green: #27AE60;
  --primary-green-hover: #219653;
  --primary-green-light: #F0FDF4;
  --primary-green-border: #BBF7D0;
  
  --secondary-blue: #2271B1;
  --secondary-blue-hover: #1C5B8C;
  --secondary-blue-light: #EFF6FF;
  
  --dark-neutral: #0F172A;
  --slate-dark: #1E293B;
  --body-text: #475569;
  --text-muted: #64748B;
  --border-accent: #E5E7EB;
  --border-subtle: #F1F5F9;
  
  --bg-white: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50px;
  
  --transition: all 0.25s ease-in-out;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-text);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-blue-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-neutral);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.65rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--body-text);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--secondary-blue);
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-links a {
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-links a:hover {
  text-decoration: underline;
}

/* Main Navbar */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark-neutral);
  letter-spacing: -0.02em;
}

.logo-brand:hover {
  color: var(--primary-green);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-green-light);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  border: 1px solid var(--primary-green-border);
}

/* Navigation Links & Dropdowns */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--dark-neutral);
  padding: 0.75rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link {
  color: var(--primary-green);
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 250px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  list-style: none;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.885rem;
  font-weight: 500;
  color: var(--body-text);
  border-left: 3px solid transparent;
}

.dropdown-item a:hover {
  background-color: var(--bg-soft);
  color: var(--primary-green);
  border-left-color: var(--primary-green);
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--primary-green);
  color: #FFFFFF !important;
  border: 1px solid var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--primary-green-hover);
  border-color: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-blue) !important;
  border: 2px solid var(--secondary-blue);
}

.btn-secondary:hover {
  background-color: var(--secondary-blue-light);
  border-color: var(--secondary-blue-hover);
  color: var(--secondary-blue-hover) !important;
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-accent);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--dark-neutral);
  font-size: 1.25rem;
  min-width: 44px;
  min-height: 44px;
}

/* Category Pill Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  border: 1px solid var(--primary-green-border);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.badge-blue {
  background-color: var(--secondary-blue-light);
  color: var(--secondary-blue);
  border-color: #BFDBFE;
}

/* Donit Split Hero Section */
.hero-split {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border-accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-summary {
  font-size: 1.15rem;
  color: var(--dark-neutral);
  font-weight: 500;
  background-color: #FFFFFF;
  padding: 1.25rem;
  border-left: 4px solid var(--primary-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-media {
  position: relative;
}

.hero-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-accent);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-card:hover img {
  transform: scale(1.02);
}

.floating-stat-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background-color: var(--bg-white);
  padding: 1rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stat-badge-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1;
}

.stat-badge-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-neutral);
  line-height: 1.3;
}

/* Donit High-Impact Mission Statement Card */
.mission-statement-card {
  background: var(--primary-green-light);
  border: 1px solid var(--primary-green-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.mission-statement-card h3 {
  color: #166534;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-statement-card p {
  color: #14532D;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Donit Campaign Progress Cards (GiveWP Style) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.campaign-card {
  background: var(--bg-white);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #D1D5DB;
}

.campaign-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.campaign-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.campaign-card:hover .campaign-card-media img {
  transform: scale(1.04);
}

.campaign-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.campaign-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.campaign-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.campaign-card-title a {
  color: var(--dark-neutral);
}

.campaign-card-title a:hover {
  color: var(--primary-green);
}

.campaign-card-desc {
  font-size: 0.925rem;
  color: var(--body-text);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.progress-track {
  background-color: var(--border-accent);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  background-color: var(--primary-green);
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.progress-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--dark-neutral);
  margin-bottom: 1.25rem;
}

.progress-metrics span:last-child {
  color: var(--text-muted);
}

/* Donit Impact Counters Panel */
.impact-counter-panel {
  background-color: var(--dark-neutral);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 3.5rem 0;
  box-shadow: var(--shadow-lg);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.counter-item {
  padding: 0.5rem;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 0.35rem;
  line-height: 1.1;
}

.counter-label {
  font-size: 0.925rem;
  color: #CBD5E1;
  font-weight: 500;
}

/* Journal de Bord 2026 Narrative Sidebar/Card */
.timeline-card {
  background: var(--bg-white);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 1.75rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background-color: var(--primary-green-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -1.75rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-green);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--primary-green);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-neutral);
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--body-text);
  margin-bottom: 0;
}

/* Content Columns Layout (for Narrative Pages) */
.page-layout-sidebar {
  display: grid;
  grid-template-columns: 2.25fr 1fr;
  gap: 3rem;
  align-items: start;
}

.content-article {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.content-article h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-accent);
}

.content-article h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--slate-dark);
}

.content-article ul, .content-article ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-article li {
  margin-bottom: 0.5rem;
}

.article-image-box {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-card);
}

.article-image-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Profile / Bureau Cards */
.profile-card {
  background: var(--bg-white);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary-blue-light);
  color: var(--secondary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  border: 2px solid #BFDBFE;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-neutral);
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Contact & Registration Forms */
.form-box {
  background: var(--bg-white);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-neutral);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-neutral);
  background-color: var(--bg-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Policy Box & Reinvestment Statement */
.policy-callout {
  background-color: var(--bg-soft);
  border-left: 4px solid var(--secondary-blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-weight: 500;
}

.reinvestment-banner {
  background-color: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: #92400E;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

/* Footer Architecture */
.main-footer {
  background-color: var(--dark-neutral);
  color: #94A3B8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--primary-green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary-green);
}

.footer-brand-desc {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #94A3B8;
}

.footer-nav {
  list-style: none;
}

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

.footer-nav a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: #94A3B8;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #64748B;
  text-align: center;
}

.footer-bottom p {
  color: #94A3B8;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .page-layout-sidebar {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }
  
  h2 {
    font-size: 1.65rem;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-accent);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .nav-menu.is-active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background-color: var(--bg-soft);
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
    display: none;
  }
  
  .nav-item.open .dropdown-menu {
    display: block;
  }
  
  .navbar-cta {
    display: none;
  }
  
  .counters-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
