/* ===================== General ===================== */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.nav-link {
  color: #12261c;
  position: relative;
  padding-bottom: 4px;
  transition: color .25s;
}
.nav-link:hover { color: #0f7a3d; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #0f7a3d;
  transition: width .25s;
}
.nav-link:hover::after { width: 100%; }

.mobile-link { color: #12261c; }
.mobile-link:hover { color: #0f7a3d; }

.mobile-sublink {
  display: block;
  padding: 8px 0;
  color: #4b5563;
  font-size: .85rem;
  border-left: 2px solid #eef1ee;
  padding-left: 12px;
  transition: color .2s, border-color .2s;
}
.mobile-sublink:hover { color: #0f7a3d; border-color: #0f7a3d; }

/* ===================== Desktop dropdown ===================== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.18);
  border: 1px solid #f0f2f0;
  min-width: 220px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #374151;
  font-size: .8rem;
  text-transform: none;
  font-weight: 600;
  letter-spacing: normal;
  transition: background .2s, color .2s;
}
.nav-dropdown-link:hover {
  background: rgba(15,122,61,0.08);
  color: #0f7a3d;
}
.nav-dropdown-toggle i {
  transition: transform .2s;
}
.nav-dropdown:hover .nav-dropdown-toggle i {
  transform: rotate(180deg);
}

.footer-link { color: #9ca3af; transition: color .2s; }
.footer-link:hover { color: #f2a900; }

.social-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  color: #fff;
  transition: background .2s, transform .2s;
}
.social-btn:hover { background: #0f7a3d; transform: translateY(-2px); }

/* ===================== Section headings ===================== */
.section-tag {
  display: inline-block;
  background: rgba(15,122,61,0.1);
  color: #0f7a3d;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: #12261c;
}

/* ===================== Hero slider ===================== */
#hero-slider { z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,25,15,0.55) 0%, rgba(10,25,15,0.35) 40%, rgba(10,25,15,0.75) 100%);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px; height: 46px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .25s, transform .25s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.08); }

#hero-dots .dot {
  width: 10px; height: 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background .25s, width .25s;
}
#hero-dots .dot.active {
  background: #f2a900;
  width: 28px;
  border-radius: 9999px;
}

/* ===================== Stat cards ===================== */
.stat-card {
  background: #f9fafb;
  border: 1px solid #eef1ee;
  border-radius: 16px;
  padding: 20px;
}

/* ===================== Domain cards ===================== */
.domain-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.08);
  border: 1px solid #f0f2f0;
  transition: transform .3s, box-shadow .3s;
}
.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -14px rgba(15,122,61,0.25);
}
.domain-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f7a3d, #0a5c2c);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

/* ===================== Activity cards ===================== */
.activity-card {
  background: #fff;
  border: 1px solid #eef1ee;
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -12px rgba(0,0,0,0.12);
  border-color: #0f7a3d;
}
.activity-card i {
  font-size: 26px;
  color: #f2a900;
  margin-bottom: 14px;
  display: block;
}
.activity-card h3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #12261c;
}
.activity-card p {
  font-size: .9rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ===================== Gallery ===================== */
.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.25);
}
.gallery-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: #fff;
  padding: 40px 20px 16px;
  font-size: .9rem;
  font-weight: 600;
}

/* ===================== Coordonateur ===================== */
.lang-badge {
  background: rgba(15,122,61,0.1);
  color: #0f7a3d;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}

/* ===================== Contact ===================== */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f9fafb;
  border: 1px solid #eef1ee;
  border-radius: 14px;
  padding: 18px 20px;
}
.contact-info-card i {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #0f7a3d;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .9rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  outline: none;
  border-color: #0f7a3d;
  box-shadow: 0 0 0 3px rgba(15,122,61,0.15);
}

/* ===================== Back to top ===================== */
#back-to-top.show { display: flex; }
