/* ==========================================================================
   KILI-ISÈRE - Modern NGO Website Styles
   ========================================================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Based on original Kili-Isère colors */
  --primary-color: #4545ee; /* Bleu Foncée */
  --primary-light: #96daff; /* Bleu light */
  --primary-dark: #3333cc; /* Bleu Foncée darker */
  --secondary-color: #1e6f43; /* Vert */
  --secondary-light: #2a8557; /* Vert lighter */
  --secondary-dark: #164d32; /* Vert darker */
  --accent-color: #feca2e; /* Jaune */
  --accent-light: #fed960; /* Jaune lighter */
  --accent-red: #ea2e21; /* Rouge */

  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography */
  --font-primary: "Inter", sans-serif;
  --font-display: "Playfair Display", serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 2rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Slower scroll transition */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  * {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: url("Background/Background-Bao-Main.png") fixed center/cover;
  overflow-x: hidden;
}

/* Background overlay for better readability */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

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

a:hover {
  color: var(--primary-dark);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--primary-color);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: linear-gradient(135deg, #feca2e, #1e6f43);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--accent-color);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: white;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.nav-logo img {
  height: 50px;
  width: auto;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.btn-don {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-don:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url("Background/Background-Bao-Main.png") fixed center/cover;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1e6f42;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-highlight {
  display: block;
  color: #fbbf24;
  font-size: 5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-subtitle {
  display: block;
  font-size: 2rem;
  color: var(--white);
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Mission Section */
.mission {
  background: white url("Background/Background-Bao-Main.png") fixed center/cover;
  backdrop-filter: blur(3px);
}

.mission .container {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-story h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.timeline-item {
  margin-bottom: 2rem;
  padding-left: 2rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 3px;
  height: calc(100% - 0.5rem);
  background-color: var(--primary-color);
  border-radius: 2px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Style spécifique pour les dates de la section mission "Les origines" */
.mission h2 {
  color: var(--primary-color);
}

.mission .timeline-date {
  background: linear-gradient(135deg, #0055a4, #ffffff, #ef4135);
  color: #0055a4;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  display: inline-block;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.mission-text {
  color: var(--gray-600);
  font-size: 1.125rem;
  line-height: 1.7;
}

.location-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.location-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: 100%;
  max-width: 280px;
  transition: var(--transition);
}

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

.location-flag {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.location-card h4 {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.location-card p {
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.population {
  display: inline-block;
  background-color: var(--gray-100);
  color: var(--gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.partnership-line {
  color: var(--accent-color);
  font-size: 2rem;
  margin: 1rem 0;
}

/* Geography Section */
.geography {
  background: white url("Background/Background-Bao-Main.png") fixed center/cover;
  backdrop-filter: blur(3px);
}

.geography .container {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.geography-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.geography-text h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.geography-details {
  margin: 2rem 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  border-radius: var(--border-radius);
}

.detail-item i {
  color: var(--secondary-color);
  font-size: 1.25rem;
  width: 20px;
}

.geography-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.map-image,
.location-image {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.map-image:hover,
.location-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Projects Section */
.projects {
  background: white url("Background/Background-Bao-Main.png") fixed center/cover;
  backdrop-filter: blur(3px);
  color: var(--white);
}

.projects .container {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.projects .section-title,
.projects .section-subtitle {
  color: var(--gray-900);
}

.projects-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-700);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--white);
  color: var(--gray-700);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #feca2e, #1e6f43);
}

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

.project-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #feca2e, #1e6f43);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
}

.project-card h3 {
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.project-impact {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1rem;
  background-color: var(--gray-50);
  border-radius: var(--border-radius);
}

.impact-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.impact-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0 0.5rem 0;
}

.progress {
  height: 100%;
  background: linear-gradient(135deg, #feca2e, #1e6f43);
  transition: var(--transition-slow);
}

.progress-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-style: italic;
}

.project-card.future {
  border: 2px dashed var(--gray-300);
  background: var(--gray-50);
}

/* Cooperation Section */
.cooperation {
  background: white url("Background/Background-Bao-Main.png") fixed center/cover;
  backdrop-filter: blur(3px);
}

.cooperation .container {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.cooperation-content {
  display: grid;
  gap: 4rem;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.story-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.story-content {
  padding: 2rem;
}

.story-content h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.cooperation-timeline {
  margin: 2rem 0;
}

.timeline-event {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.timeline-event .timeline-date {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
}

.timeline-content h4 {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.actors-section {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.actors-section h3 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 2rem;
}

.actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.actor-group {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
}

.actor-group h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.actor-group i {
  color: var(--accent-color);
}

.suspension-notice {
  margin-top: 3rem;
}

.notice-content {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--accent-color);
}

.notice-content i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.notice-content h4 {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery {
  background: white url("Background/Background-Bao-Main.png") fixed center/cover;
  backdrop-filter: blur(3px);
  color: var(--white);
}

.gallery .container {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.gallery .section-title,
.gallery .section-subtitle {
  color: var(--secondary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 2rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

/* Contact Section */
.contact {
  background: white url("Background/Background-Bao-Main.png") fixed center/cover;
  backdrop-filter: blur(3px);
}

.contact h2 {
  color: var(--primary-dark);
}

.contact .section-subtitle {
  color: var(--gray-800);
}

.contact .container {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.contact-card:hover {
  background: var(--gray-100);
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-light)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h3 {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.contact-details p {
  margin: 0;
  color: var(--gray-600);
}

.contact-details a {
  color: var(--gray-900);
  text-decoration: none;
}

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

.contact-details a:hover {
  text-decoration: underline;
}

.legal-info {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.legal-info h3 {
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.legal-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.legal-item i {
  color: var(--primary-color);
  width: 16px;
}

/* Contact Form */
.contact-form-container {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
}

.contact-form h3 {
  color: var(--gray-900);
  margin-bottom: 2rem;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Form validation */
.field-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.field-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Form info section */
.form-info {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  backdrop-filter: blur(3px);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.info-item i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.form-actions .btn {
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.btn-secondary {
  background: var(--gray-600);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--gray-700);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-secondary:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
}

/* Responsive adjustments for form actions */
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    min-width: 100%;
  }
}

/* Donation Section */
.donation {
  background: white url("Background/Background-Bao-Main.png") fixed center/cover;
  backdrop-filter: blur(3px);
  color: var(--white);
}

.donation .container {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.donation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.donation-text h2 {
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.donation-text p {
  color: var(--gray-700);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.donation-impact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.impact-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 60px;
}

.impact-description {
  color: var(--gray-700);
}

.donation-form {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(7px);
  color: var(--gray-700);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.donation-form h3 {
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 2rem;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.amount-btn {
  padding: 1rem;
  border: 2px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--border-radius);
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
}

.custom-amount {
  margin-bottom: 2rem;
}

.custom-amount label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.custom-amount input {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.donation-methods h4 {
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.payment-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  border-radius: var(--border-radius);
}

.payment-method i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.payment-method strong {
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.25rem;
}

.payment-method p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.sumup-btn {
  margin-top: 1rem;
  background: #ff6b6b;
  border: none;
  padding: 1rem 2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.sumup-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
}

.sumup-btn:hover::before {
  left: 100%;
}

.sumup-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
  background: #ff5252;
  text-decoration: none;
  color: white;
}

.sumup-btn:active {
  transform: translateY(-2px) scale(1.02);
}

@keyframes pulse-sumup {
  0% {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.7);
  }
  100% {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  }
}

.sumup-btn {
  animation: pulse-sumup 2s infinite;
}

.tax-deduction {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.tax-deduction i {
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.tax-deduction p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-logo span {
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-section p {
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-300);
}

.footer-contact i {
  color: var(--primary-color);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--gray-400);
  font-size: 0.875rem;
}

.back-to-top {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .title-highlight {
    font-size: 4rem;
  }

  .mission-grid,
  .geography-content,
  .contact-content,
  .donation-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-image {
    height: 200px;
  }
}

/* Breakpoint intermédiaire pour réduire l'espacement */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    gap: 1rem;
  }

  .btn-don {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 950px) {
  .nav-menu {
    gap: 0.8rem;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.4rem 0;
  }

  .btn-don {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .btn-don {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
  }
}

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

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.125rem;
  }

  .btn-don {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .title-highlight {
    font-size: 3rem;
  }

  .title-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .projects-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 200px;
    text-align: center;
  }

  .donation-amounts {
    grid-template-columns: 1fr;
  }

  .timeline-event {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-event .timeline-date {
    width: auto;
    text-align: left;
  }

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

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

  .title-highlight {
    font-size: 2.5rem;
  }

  .title-subtitle {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item img {
    height: 250px;
  }

  .location-cards {
    gap: 1rem;
  }

  .location-card {
    padding: 1.5rem;
  }

  .contact-form-container,
  .donation-form {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hamburger,
  .scroll-indicator,
  .back-to-top {
    display: none;
  }

  .section {
    padding: 2rem 0;
    break-inside: avoid;
  }

  .hero {
    height: auto;
    padding: 2rem 0;
  }

  .hero-background {
    display: none;
  }

  .hero-content {
    color: var(--gray-900);
  }

  .projects,
  .gallery,
  .donation {
    background: var(--white);
    color: var(--gray-900);
  }

  .projects .section-title,
  .projects .section-subtitle,
  .gallery .section-title,
  .gallery .section-subtitle {
    color: var(--gray-900);
  }
}

/* Events Section Styles */
.events {
  background: white url("Background/Background-Bao-Main.png") fixed center/cover;
  backdrop-filter: blur(3px);
}

.events-content {
  display: grid;
  gap: 4rem;
}

.featured-event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: white;
  backdrop-filter: blur(7px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.featured-event:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.event-image {
  position: relative;
  height: 400px;
}

.event-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #feca2e, #1e6f43);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

.event-details {
  padding: 2rem;
}

.event-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  color: var(--gray-800);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.event-details h3 {
  color: var(--gray-900);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.event-description {
  color: var(--gray-600);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.event-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-light);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #feca2e, #1e6f43);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.highlight-text strong {
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.highlight-text p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.event-impact {
  background: linear-gradient(135deg, #feca2e, #1e6f43);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

.event-impact h4 {
  color: var(--white);
  margin-bottom: 1rem;
  text-align: center;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.events-timeline {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.events-timeline h3 {
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.timeline-event-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--transparent);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.timeline-event-item:hover {
  background: var(--transparent);
  transform: translateX(5px);
}

.timeline-date {
  text-align: center;
  background: linear-gradient(135deg, #feca2e, #1e6f43);
  color: var(--white);
  padding: 1rem;
  border-radius: var(--border-radius);
  min-width: 80px;
  flex-shrink: 0;
}

.date-day {
  font-size: 1.5rem;
  font-weight: 700;
}

.date-month {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-year {
  font-size: 0.75rem;
  opacity: 0.9;
}

.timeline-event-content h4 {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.timeline-event-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  font-size: 0.875rem;
  font-weight: 500;
}

.events-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--gray-50), var(--white));
  border-radius: var(--border-radius);
  border: 2px dashed var(--gray-300);
}

.events-cta p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* Responsive for Events Section */
@media (max-width: 1024px) {
  .featured-event {
    grid-template-columns: 1fr;
  }

  .event-image {
    height: 300px;
  }

  .impact-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .timeline-event-item {
    flex-direction: column;
    text-align: center;
  }

  .timeline-date {
    align-self: center;
  }

  .event-details {
    padding: 1.5rem;
  }

  .event-details h3 {
    font-size: 1.5rem;
  }
}
