/* ==========================================================================
   DONIT THEME REPLICA STYLESHEET - LIGUE BOULISTE REGIONALE PACA (2026)
   Design System: #27AE60 (Brand Green), #2271B1 (Trust Blue), #0F172A (Gunmetal)
   ========================================================================== */

:root {
  --primary-green: #27AE60;
  --primary-green-hover: #219653;
  --secondary-blue: #2271B1;
  --secondary-blue-hover: #1C5B8C;
  --dark-neutral: #0F172A;
  --body-slate: #475569;
  --light-bg-soft: #F8FAFC;
  --white: #FFFFFF;
  --border-color: #E5E7EB;
  --success-bg: #F0FDF4;
  --success-border: #BBF7D0;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
  --radius-card: 12px;
  --radius-pill: 50px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

h1 { font-size: 2.5rem; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
h2 { font-size: 1.85rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
}

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

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

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

/* Containers & Layout Grid */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-py {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.bg-soft {
  background-color: var(--light-bg-soft);
}

.bg-white {
  background-color: var(--white);
}

.bg-dark {
  background-color: var(--dark-neutral);
  color: var(--white);
}

/* Header & Top Bar */
.top-bar {
  background-color: var(--secondary-blue);
  color: var(--white);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.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.5rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-contact a {
  color: var(--white);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-contact a:hover {
  opacity: 0.85;
}

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

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

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

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-green) 0%, #1e874b 100%);
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.935rem;
  font-weight: 600;
  color: var(--dark-neutral);
  padding: 0.65rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 0.65rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

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

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body-slate);
  transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: #F1F5F9;
  color: var(--primary-green);
  padding-left: 1.5rem;
}

/* Header CTA Button */
.btn-contact-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.6rem;
  background-color: var(--primary-green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.925rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
  white-space: nowrap;
}

.btn-contact-header:hover {
  background-color: var(--primary-green-hover);
  color: var(--white);
  transform: translateY(-1px);
}

/* Donit Split Hero Banner */
.donit-hero {
  padding: 3.5rem 0 4.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border-color);
}

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

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-green);
  background-color: rgba(39, 174, 96, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.hero-summary {
  font-size: 1.15rem;
  color: var(--dark-neutral);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--primary-green);
  padding-left: 1rem;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--body-slate);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.85rem;
  background-color: var(--primary-green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.975rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--primary-green-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.85rem;
  background-color: transparent;
  color: var(--secondary-blue);
  border: 2px solid var(--secondary-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.975rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--secondary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-media-wrapper {
  position: relative;
}

.hero-media-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  background-color: var(--white);
}

.hero-media-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

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

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

.floating-stat-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--body-slate);
  line-height: 1.3;
}

/* Donit High-Impact Mission Statement Card */
.mission-statement-card {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.mission-statement-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mission-statement-badge {
  display: inline-block;
  background-color: var(--primary-green);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mission-statement-card p {
  color: #166534;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0;
  font-weight: 500;
}

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

.campaign-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.campaign-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--white);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

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

.campaign-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark-neutral);
}

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

.campaign-progress-bar {
  background-color: var(--border-color);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

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

.campaign-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--body-slate);
  margin-bottom: 1.25rem;
}

.campaign-metrics .highlight {
  color: var(--primary-green);
  font-weight: 700;
}

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

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

.impact-counter-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

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

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

.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-green);
  border: 3px solid var(--white);
  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.925rem;
  color: var(--body-slate);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Sub-page Specific Layouts */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.profile-role-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(34, 113, 177, 0.1);
  color: var(--secondary-blue);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.photo-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.photo-feature-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.photo-feature-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Form Styles for Contact */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.925rem;
  line-height: 1.65;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  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-links {
  list-style: none;
}

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

.footer-links a {
  color: #94A3B8;
  font-size: 0.925rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-green);
  padding-left: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #94A3B8;
}

.footer-compliance-text {
  text-align: justify;
}

/* Mobile & Tablet Responsiveness */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--dark-neutral);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--primary-green);
    gap: 0;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link {
    width: 100%;
    padding: 0.85rem 0;
    justify-content: space-between;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0.75rem 1rem;
    display: block;
    background: transparent;
  }
  
  .navbar-actions {
    display: none;
  }
  
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
}
