/* ===== CSS Variables ===== */
:root {
  --primary: #1a5632;
  --primary-light: #2d7a4a;
  --primary-dark: #0e3d22;
  --secondary: #c8a951;
  --secondary-light: #e0c878;
  --accent: #e74c3c;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #f0f2f5;
  --border: #e0e0e0;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header & Navigation ===== */
header {
  background: var(--primary);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.top-bar {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a, .top-bar span {
  color: rgba(255,255,255,0.85);
  margin-right: 20px;
}

.top-bar a:hover {
  color: var(--secondary);
}

nav {
  padding: 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text small {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
  display: block;
}

.nav-links {
  display: flex;
  gap: 5px;
  align-items: center;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.nav-links .btn-donate {
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-links .btn-donate:hover {
  background: var(--secondary-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  margin-top: 120px;
  min-height: 500px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--secondary);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: white;
  padding: 30px 0;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 800;
}

.stat-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* ===== Section Styles ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-dark {
  background: var(--primary);
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-dark .section-header h2 {
  color: white;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.8);
}

/* ===== Mission Section ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mission-card {
  background: white;
  padding: 35px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.mission-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.mission-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.mission-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Events Section ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.event-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.event-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}

.event-content {
  padding: 25px;
}

.event-date {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.event-content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.event-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
footer {
  background: var(--primary-dark);
  color: white;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.footer-about p {
  opacity: 0.85;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.footer-links a {
  display: block;
  padding: 5px 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-bottom a {
  margin-left: 20px;
}

.footer-bottom a:hover {
  color: var(--secondary);
}

/* ===== Page Header ===== */
.page-header {
  margin-top: 120px;
  padding: 60px 0 40px;
  background: var(--primary);
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.05rem;
}

.breadcrumb {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.breadcrumb a {
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
  color: var(--secondary);
}

/* ===== About Page ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.2);
}

.about-text h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  font-weight: 700;
}

.team-card h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.team-card .role {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Values Grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.value-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
}

.value-item .icon {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.value-item h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Donate Page ===== */
.donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.donate-card {
  background: white;
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
}

.donate-card:hover,
.donate-card.featured {
  border-color: var(--primary);
}

.donate-card.featured {
  position: relative;
}

.donate-card.featured::before {
  content: 'Recommandé';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.donate-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.donate-card .amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}

.donate-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.bank-details {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-top: 40px;
}

.bank-details h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.bank-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.bank-info-item {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
}

.bank-info-item label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-info-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: white;
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-card {
  background: white;
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-info-card .icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.contact-info-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== Privacy Page ===== */
.privacy-content {
  background: white;
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.privacy-content h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-light);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.7;
}

.privacy-content ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.privacy-content ul li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
  list-style: disc;
}

/* ===== Activities Page ===== */
.activity-card {
  background: white;
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 25px;
  align-items: center;
}

.activity-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.activity-content h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.activity-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 20px;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .activity-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .privacy-content {
    padding: 25px;
  }

  .top-bar .container {
    justify-content: center;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: white;
  padding: 20px;
  z-index: 9999;
  display: none;
}

.cookie-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  font-size: 0.9rem;
  opacity: 0.9;
}

.cookie-banner .btn {
  padding: 10px 25px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ===== Quick Donate Banner ===== */
.quick-donate {
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 12px 0;
}

.quick-donate .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.quick-donate p {
  font-weight: 600;
  font-size: 0.95rem;
}

.quick-donate .btn {
  padding: 8px 20px;
  font-size: 0.85rem;
  background: var(--primary);
  color: white;
}

.quick-donate .btn:hover {
  background: var(--primary-dark);
}
