/* =====================================================================
   RK TANZANIE VOYAGE — CSS COMMUN (header + footer + composants partagés)
   Ce fichier remplace les blocs CSS dupliqués dans chaque page.
   Le CSS spécifique à une page (hero, day-card, price-card, etc.)
   reste dans la page (ou dans son propre fichier css/<page>.css).
   ===================================================================== */
:root {
  --green-dark: #1a3a2a;
  --green-mid: #2d5a3d;
  --green-light: #4a8a5d;
  --gold: #e8c97e;
  --gold-dark: #c8a84e;
  --off-white: #f7f6f2;
  --gray: #888;
  --text-dark: #1a2a1e;
  --text-mid: #4a5a4e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "DM Sans", sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TOPBAR */
.topbar {
  background: #3a805d;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #cce0cc;
}
.topbar a {
  color: #cce0cc;
  text-decoration: none;
  margin-left: 14px;
  transition: color 0.2s;
}
.topbar a:hover {
  color: var(--gold);
}
.topbar-left {
  display: flex;
  gap: 16px;
  align-items: center;
}
.topbar-social {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}
.topbar-social a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background 0.2s;
}
.topbar-social a:hover {
  background: var(--gold);
  color: var(--green-dark);
}

/* NAVBAR */
.navbar {
  background: #fff;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  border-bottom: 1px solid #e8ede8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 11px;
  font-size: 12.5px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover {
  color: var(--green-mid);
  background: #f0f7f0;
}
.nav-links a.active {
  color: var(--green-mid);
}
/* Underline only on DIRECT nav links (pas sur les déclencheurs de menu déroulant, qui gardent leur ▾) */
.nav-links > a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--green-mid);
  border-radius: 2px;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dropdown > a::after {
  content: "▾";
  font-size: 10px;
  margin-left: 2px;
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  border-radius: 0 !important;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid #e8ede8;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
  padding-top: 10px;
  margin-top: -2px;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  border-bottom: 1px solid #f0f4f0;
  transition: all 0.2s;
}
.dropdown-menu a:last-child {
  border-bottom: none;
}
.dropdown-menu a:hover {
  color: var(--green-mid);
  background: #f7fbf7;
  padding-left: 20px;
}
.dropdown-menu a:first-child {
  border-radius: 12px 12px 0 0;
}
.dropdown-menu a:last-child {
  border-radius: 0 0 12px 12px;
}
.btn-quote {
  background: var(--green-mid);
  color: #fff;
  padding: 9px 18px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-quote:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* SIDEBAR (menu mobile) */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 280px;
  background: #fff;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 0 0 40px;
}
.sidebar.open {
  transform: translateX(0);
}
.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8ede8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-close {
  width: 32px;
  height: 32px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  color: #000 !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}
.sidebar-nav a:hover {
  color: var(--green-mid) !important;
  background: #f7fbf7;
  padding-left: 30px;
}
.sidebar-sub {
  padding-left: 36px !important;
  font-size: 12.5px !important;
  background: #fafafa;
  color: #555 !important;
}
.sidebar-sub:hover {
  padding-left: 42px !important;
}
.sidebar-contact {
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}
.sidebar-contact p {
  color: #000;
  font-size: 11px;
  margin-bottom: 10px;
  font-weight: 600;
}
.sidebar-contact a {
  display: block;
  color: #000;
  font-size: 12px;
  margin-bottom: 7px;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-contact a:hover {
  color: var(--green-mid);
}

/* FOOTER */
footer {
  background: #3a805d;
  color: #cce0cc;
}
.footer-main {
  padding: 52px 40px 38px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 38px;
}
.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 11px;
}
.footer-brand p {
  font-size: 12px;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 14px;
}
.footer-socials {
  display: flex;
  gap: 7px;
}
.footer-socials a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}
.footer-socials a:hover {
  background: var(--gold);
  color: var(--green-dark);
  transform: translateY(-2px);
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  margin-bottom: 9px;
  transition: all 0.2s;
}
.footer-col a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-newsletter input {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid #ffffff20;
  border-radius: 9px;
  background: #ffffff08;
  color: #fff;
  font-size: 12px;
  outline: none;
  font-family: "DM Sans", sans-serif;
  margin-bottom: 9px;
}
.footer-newsletter input::placeholder {
  color: #cce0cc;
}
.footer-newsletter button {
  width: 100%;
  padding: 9px;
  background: var(--gold);
  color: var(--green-dark);
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.footer-newsletter button:hover {
  background: var(--gold-dark);
}
.footer-bottom {
  border-top: 1px solid #ffffff20;
  padding: 17px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #fff;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a {
  color: #fff;
  text-decoration: none;
  margin-left: 14px;
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: var(--gold);
}

/* PRIVACY / TERMS MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: #fff;
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: var(--off-white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--green-mid);
  color: #fff;
}
.modal-section {
  background: var(--off-white);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-left: 3px solid var(--green-mid);
}
.modal-section p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
}
.modal-section p a {
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: none;
}

/* BOUTONS FLOTTANTS */
.floating-btns {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.float-btn:hover {
  transform: scale(1.12);
}
.float-wa {
  background: #25d366;
}
.float-tel {
  background: var(--green-mid);
}

/* RESPONSIVE — composants partagés */
@media (max-width: 900px) {
  .topbar {
    display: none;
  }
  .navbar {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .floating-btns {
    bottom: 18px;
    right: 14px;
  }
  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  .btn-quote {
    display: none;
  }
}
