/* =====================================================================
   RK TANZANIE VOYAGE — CSS SPÉCIFIQUE À LA PAGE NOS SAFARIS (safaris.php)
   Composants partagés (topbar, navbar, sidebar, footer, modal, floating,
   :root, reset) -> css/common.css. Ici uniquement le spécifique.
   ===================================================================== */

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* HERO */
.hero {
  background: var(--green-dark);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 42, 0.65);
}
.hero-slide:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1516426122078-c23e76319801?w=1920&q=80");
}
.hero-slide:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1547970810-dc1eac37d174?w=1920&q=80");
}
.hero-slide:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1535941339077-2dd1c7963098?w=1920&q=80");
}
.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 56px;
  max-width: 860px;
  animation: fadeInUp 0.9s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff12;
  border: 1px solid #ffffff25;
  color: var(--gold);
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  width: fit-content;
  animation: float 3.5s ease-in-out infinite;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
}
.hero p {
  color: #9fc9af;
  font-size: 14px;
  line-height: 1.75;
  max-width: 540px;
}

/* BREADCRUMB */
.breadcrumb {
  background: var(--off-white);
  padding: 12px 40px;
  border-bottom: 1px solid #e8ede8;
}
.breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray);
}
.breadcrumb a {
  color: var(--green-mid);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--green-dark);
}

/* FILTER BAR */
.filter-section {
  background: #fff;
  padding: 18px 40px;
  border-bottom: 2px solid #e8ede8;
  position: sticky;
  top: 70px;
  z-index: 90;
}
.filter-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  margin-right: 4px;
  white-space: nowrap;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #d8e8d8;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  white-space: nowrap;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--green-mid);
  color: #fff;
  border-color: var(--green-mid);
}

/* SECTIONS */
.section {
  padding: 64px 40px;
}
.section-bg {
  background: var(--off-white);
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 36px;
}
.section-tag {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--green-mid);
  font-size: 13px;
  margin-bottom: 6px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--text-dark);
  line-height: 1.25;
}
.section-title em {
  color: var(--green-mid);
  font-style: italic;
}
.section-sub {
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
  line-height: 1.65;
  max-width: 680px;
}

/* IDEE BOX */
.idee-box {
  background: var(--green-dark);
  border-radius: 18px;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 44px;
}
.idee-text h3 {
  font-family: "Playfair Display", serif;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.idee-text h3 em {
  color: var(--gold);
}
.idee-text p {
  color: #9fc9af;
  font-size: 13px;
  line-height: 1.75;
}
.idee-points {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.idee-pt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cce0cc;
  font-size: 13px;
}
.idee-pt-dot {
  width: 24px;
  height: 24px;
  background: var(--green-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* SAFARI CARDS */
.safaris-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.s-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e8ede8;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.s-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(45, 90, 61, 0.16);
  border-color: #c8dfc8;
}
.s-img {
  height: 210px;
  position: relative;
  overflow: hidden;
}
.s-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.s-card:hover .s-img img {
  transform: scale(1.06);
}
.s-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 58, 42, 0.78),
    rgba(26, 58, 42, 0.05)
  );
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}
.s-price-tag {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}
.s-dur-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 16px;
  margin-left: auto;
}
.s-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 16px;
  z-index: 2;
}
.s-badge.gold {
  background: var(--gold);
  color: var(--green-dark);
}
.s-badge.dark {
  background: var(--green-dark);
  color: var(--gold);
}
.s-badge.navy {
  background: #1a2a3a;
  color: var(--gold);
}
.s-body {
  padding: 16px 18px;
}
.s-location {
  font-size: 10.5px;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 5px;
}
.s-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 7px;
  line-height: 1.3;
  transition: color 0.2s;
}
.s-card:hover .s-title {
  color: var(--green-mid);
}
.s-highlights {
  font-size: 11.5px;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 10px;
}
.s-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.s-tag {
  background: var(--off-white);
  border: 1px solid #e0ebe0;
  color: var(--text-mid);
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
}
.s-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f0f4f0;
}
.s-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--green-mid);
  transition: all 0.3s;
}
.s-card:hover .s-price {
  font-size: 15.5px;
  color: var(--green-dark);
}
.s-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.btn-reserve {
  background: var(--green-mid);
  color: #fff;
  padding: 7px 16px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-reserve:hover {
  background: var(--green-dark);
}
.btn-heart {
  width: 30px;
  height: 30px;
  border: 1.5px solid #d8e8d8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--green-mid);
  transition: all 0.2s;
}
.btn-heart:hover {
  background: var(--green-mid);
  color: #fff;
  border-color: var(--green-mid);
}

/* CTA */
.cta-banner {
  background: var(--green-mid);
  padding: 26px 40px;
}
.cta-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-icon {
  font-size: 30px;
  margin-right: 14px;
  animation: float 3.5s ease-in-out infinite;
}
.cta-text h3 {
  font-family: "Playfair Display", serif;
  color: #fff;
  font-size: 19px;
}
.cta-text p {
  color: #9fc9af;
  font-size: 13px;
  margin-top: 3px;
}
.btn-cta {
  background: var(--gold);
  color: var(--green-dark);
  padding: 11px 26px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s;
}
.btn-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

/* RESPONSIVE — spécifique Nos Safaris (composants partagés dans common.css) */
@media (max-width: 900px) {
  .hero-content {
    padding: 55px 20px 40px;
  }
  .breadcrumb,
  .filter-section {
    padding: 10px 20px;
  }
  .section {
    padding: 44px 20px;
  }
  .safaris-grid {
    grid-template-columns: 1fr;
  }
  .idee-box {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.95rem;
  }
}
