/* ==========================================================================
   SAFARI TANZANIE — Styles Page d'Accueil
   home.css — Style site-touristique.com : epure, professionnel, fond blanc
   ========================================================================== */


/* ==========================================================================
   1. HOME HERO — Plein ecran, image de fond
   ========================================================================== */

.home-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.home-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 var(--space-xl);
}

.home-hero-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
}

.home-hero h1 {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.home-hero h1 span {
  color: var(--color-white);
}

.home-hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.home-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Scroll indicator */
.home-hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all linear 0.25s;
}

.home-hero-scroll:hover {
  color: rgba(255, 255, 255, 0.9);
}

.home-hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}


/* ==========================================================================
   2. DESTINATIONS GRID
   ========================================================================== */

.destinations-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-white);
}

.destinations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* Tanzanie card mise en avant */
.destination-card.featured {
  border: 2px solid var(--color-primary);
}

.destination-card.featured .destination-card-badge {
  background-color: var(--color-primary);
}


/* ==========================================================================
   3. FEATURES SECTION — 4 blocs icones en ligne
   ========================================================================== */

.features-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-grey-light);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.feature-block {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all linear 0.25s;
}

.feature-block:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-md);
  background-color: var(--color-info-light);
  transition: all linear 0.25s;
}

.feature-block:hover .feature-icon {
  background-color: var(--color-accent);
  transform: scale(1.05);
}

.feature-icon img,
.feature-icon svg {
  width: 36px;
  height: 36px;
  transition: all linear 0.25s;
}

.feature-block:hover .feature-icon img,
.feature-block:hover .feature-icon svg {
  filter: brightness(0) invert(1);
}

.feature-icon .icon-emoji {
  font-size: 2rem;
  line-height: 1;
  transition: all linear 0.25s;
}

.feature-block:hover .icon-emoji {
  transform: scale(1.15);
}

.feature-block h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.feature-block p {
  font-size: var(--fs-sm);
  color: var(--color-grey);
  line-height: var(--lh-relaxed);
  max-width: 280px;
  margin: 0 auto;
}


/* ==========================================================================
   4. CTA BANDEAU — Fond rouge
   ========================================================================== */

.cta-banner {
  padding: 60px 0;
  background-color: var(--color-primary);
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-lg);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-md);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

.cta-banner .btn-outline-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  font-size: var(--fs-base);
  padding: 14px 36px;
}

.cta-banner .btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
}


/* ==========================================================================
   5. STATS / CHIFFRES CLES
   ========================================================================== */

.stats-section {
  background-color: var(--color-secondary);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.stat-item {
  color: var(--color-white);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ==========================================================================
   6. TESTIMONIALS
   ========================================================================== */

.testimonials-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-grey-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all linear 0.25s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-stars .star {
  color: #F5A623;
  font-size: var(--fs-md);
}

.testimonial-stars .star.empty {
  color: var(--color-grey-border);
}

.testimonial-quote {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: -5px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-grey-border);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-grey-border);
}

.testimonial-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--fs-md);
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.testimonial-trip {
  font-size: var(--fs-xs);
  color: var(--color-grey);
}

/* Carrousel temoignages */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: all linear 0.25s;
}

.testimonials-track .testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.testimonials-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-grey-border);
  cursor: pointer;
  transition: all linear 0.25s;
  padding: 0;
}

.testimonials-dots button.active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.testimonials-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-grey-border);
  background-color: var(--color-white);
  color: var(--color-text);
  font-size: var(--fs-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all linear 0.25s;
}

.testimonials-nav button:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}


/* ==========================================================================
   7. POPULAR SAFARIS / EXPERIENCES
   ========================================================================== */

.experiences-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-white);
}

.experiences-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.experience-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.experience-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all linear 0.35s;
}

.experience-card:hover img {
  transform: scale(1.05);
}

.experience-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
  pointer-events: none;
}

.experience-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  z-index: 1;
  color: var(--color-white);
}

.experience-card-content h3 {
  color: var(--color-white);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-xs);
}

.experience-card-content p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.experience-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ==========================================================================
   8. NEWSLETTER SECTION
   ========================================================================== */

.newsletter-section {
  padding: var(--space-3xl) 0;
  background-color: var(--color-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.newsletter-section h2 {
  color: var(--color-white);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xl);
  line-height: var(--lh-relaxed);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-form input[type="email"] {
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: var(--fs-base);
  transition: all linear 0.25s;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(195, 0, 30, 0.2);
}

.newsletter-form button {
  padding: 14px var(--space-xl);
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: all linear 0.25s;
}

.newsletter-form button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.newsletter-privacy {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-md);
}

.newsletter-privacy a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.newsletter-privacy a:hover {
  color: var(--color-primary);
}

/* Message de succes newsletter */
.newsletter-success {
  display: none;
  padding: var(--space-lg);
  background-color: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-sm);
}

.newsletter-success.visible {
  display: block;
}


/* ==========================================================================
   9. BLOG / ARTICLES PREVIEW
   ========================================================================== */

.blog-preview-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-white);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.blog-preview-more {
  text-align: center;
  margin-top: var(--space-2xl);
}


/* ==========================================================================
   10. PARTNERS / TRUST
   ========================================================================== */

.partners-section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-grey-border);
  border-bottom: 1px solid var(--color-grey-border);
  background-color: var(--color-white);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
}

.partners-grid img {
  height: 36px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all linear 0.25s;
}

.partners-grid img:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}


/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

/* 480px+ */
@media (min-width: 480px) {
  .home-hero h1 {
    font-size: var(--fs-3xl);
  }

  .home-hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experiences-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form {
    flex-direction: row;
  }

  .newsletter-form input[type="email"] {
    flex: 1;
  }
}

/* 768px+ */
@media (min-width: 768px) {
  .home-hero h1 {
    font-size: var(--fs-4xl);
  }

  .home-hero p {
    font-size: var(--fs-lg);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-number {
    font-size: var(--fs-4xl);
  }

  .blog-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner h2 {
    font-size: var(--fs-3xl);
  }
}

/* 1024px+ */
@media (min-width: 1024px) {
  .home-hero h1 {
    font-size: var(--fs-5xl);
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Separateurs entre features */
  .feature-block + .feature-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--color-grey-border), transparent);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-carousel .testimonials-track .testimonial-card {
    flex: 0 0 33.333%;
  }

  .destinations-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .experiences-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 1280px+ */
@media (min-width: 1280px) {
  .newsletter-section {
    padding: var(--space-4xl) 0;
  }

  .newsletter-section h2 {
    font-size: var(--fs-3xl);
  }
}


/* ==========================================================================
   12. ANIMATIONS SPECIFIQUES HOME
   ========================================================================== */

/* Hero text entrance */
.home-hero-content .home-hero-label {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.6s ease 0.2s forwards;
}

.home-hero-content h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.6s ease 0.4s forwards;
}

.home-hero-content p {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.6s ease 0.6s forwards;
}

.home-hero-actions {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade-up 0.6s ease 0.8s forwards;
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compteur anime */
.stat-number[data-count] {
  transition: all 0.6s ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .home-hero-content .home-hero-label,
  .home-hero-content h1,
  .home-hero-content p,
  .home-hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .home-hero-scroll::after {
    animation: none;
  }
}
