/* ===== RESET ET STYLES DE BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Couleurs principales de LEKONG */
  --primary-green: #064726;
  --secondary-red: #dd3124;
  --dark-green: #04361c;
  --accent-green: #328b27;
  --light-green: #e6f3eb;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: all 0.3s ease;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  scroll-behavior: smooth;
}

/* ===== HEADER ET NAVIGATION ===== */
header {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: var(--white);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* Header au scroll */
header.scrolled {
  padding: 0.5rem 0;
  background: rgba(6, 71, 38, 0.95);
  backdrop-filter: blur(10px);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(221, 49, 36, 0.3);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  position: relative;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 5px;
  transition: var(--transition);
}

.mobile-menu:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== SECTION PRINCIPALE ===== */
main {
  margin-top: 80px;
}

.hero {
  background: linear-gradient(135deg, var(--light-green), var(--white));
  padding: 6rem 0;
  text-align: 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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== BOUTONS ===== */
.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(6, 71, 38, 0.3);
}

.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6, 71, 38, 0.4);
}

.btn-secondary {
  background: var(--secondary-red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(221, 49, 36, 0.3);
}

.btn-secondary:hover {
  background: #b91c1c;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(221, 49, 36, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  gap: 2rem;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #7ed897;
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SECTIONS ===== */
section {
  padding: 3rem 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-red));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== GRILLE DES CARTES ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-red));
  border-radius: 2px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(6, 71, 38, 0.3);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== FORMULAIRES ===== */
.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(6, 71, 38, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===== ACTUALITÉS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, var(--primary-green), var(--secondary-red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  position: relative;
}

.news-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.news-content {
  padding: 2rem;
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.news-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-green);
  line-height: 1.4;
}

.news-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ===== CALENDRIER ===== */
.calendar-container {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-bottom: 3rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-header h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
}

.calendar-nav {
  background: var(--primary-green);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

.calendar-nav:hover {
  background: var(--dark-green);
  transform: scale(1.05);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-day {
  background: var(--white);
  padding: 1rem;
  text-align: center;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.calendar-day:hover {
  background: var(--light-green);
}

.calendar-day.header {
  background: var(--primary-green);
  color: var(--white);
  font-weight: bold;
  min-height: 50px;
}

.calendar-day.event {
  background: var(--light-green);
  color: var(--primary-green);
  font-weight: bold;
  position: relative;
}

.calendar-day.event::after {
  content: "•";
  position: absolute;
  bottom: 5px;
  color: var(--secondary-red);
  font-size: 1.5rem;
}

/* ===== LISTE DES ÉVÉNEMENTS ===== */
.events-list {
  margin-top: 3rem;
}

.events-slider {
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.events-list h3 {
  color: var(--primary-green);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.event-item {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 2rem;
  align-items: center;
  border-left: 4px solid var(--primary-green);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.event-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.event-date {
  background: var(--primary-green);
  color: var(--white);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  min-width: 100px;
}

.event-details h4 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.event-details p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ===== PARTENAIRES ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: center;
}

.partner-logo {
  background: var(--gray-100);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  font-weight: 600;
}

.partner-logo:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ===== LIENS SOCIAUX ===== */
.social-links {
  margin-top: 1rem;
}

.social-links h4 {
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 0.5rem;
  padding: 0;
  background: var(--primary-green);
  color: var(--white);
  text-decoration: none;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(6, 71, 38, 0.3);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* ===== FOOTER ===== */
footer {
  background: #1a2e1f;
  color: var(--white);
  padding: 1.5rem 0 0.5rem;
  border-top: 4px solid var(--accent-green);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section h3 {
  color: #7ed897;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.4rem;
}

.footer-section ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: #7ed897;
  padding-left: 4px;
}

.footer-section p {
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #7ed897;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--white);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease-out;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.close:hover {
  color: var(--secondary-red);
  transform: scale(1.1);
}

/* ===== BOUTON SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.scroll-to-top:hover {
  background: var(--dark-green);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* ===== UTILITAIRES ===== */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-green);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
    border-radius: 0 0 10px 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-item {
    flex-direction: column;
    text-align: center;
  }

  .calendar-grid {
    font-size: 0.9rem;
  }

  .calendar-day {
    min-height: 60px;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 0;
  }

  .card {
    padding: 1.5rem;
  }

  .modal-content {
    margin: 20% auto;
    padding: 1.5rem;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* ===== ÉTATS DE CHARGEMENT ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-green);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible pour l'accessibilité */
*:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  header,
  footer,
  .mobile-menu,
  .scroll-to-top,
  .modal {
    display: none !important;
  }

  main {
    margin-top: 0;
  }

  .card,
  .news-card {
    break-inside: avoid;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}
