/* 
  NatureScape - Main Stylesheet
  A professional landscaping and garden design website
*/

/* ============= Variables ============= */
:root {
  /* Colors */
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #A5D6A7;
  --secondary: #8D6E63;
  --secondary-light: #BCAAA4;
  --accent: #FFC107;
  --success: #43A047;
  --warning: #FFA000;
  --error: #E53935;
  --text-dark: #212121;
  --text-medium: #424242;
  --text-light: #757575;
  --background-light: #FFFFFF;
  --background-off: #F9F9F9;
  --background-dark: #333333;
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --overlay-light: rgba(255, 255, 255, 0.85);
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============= Global Styles ============= */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-medium);
  overflow-x: hidden;
  background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  font-weight: 700;
}

.section-title {
  position: relative;
  margin-bottom: var(--spacing-md);
  font-size: 2.25rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

p {
  line-height: 1.7;
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

.btn {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  color: white;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.btn-link i {
  margin-left: 8px;
  transition: transform var(--transition-fast);
}

.btn-link:hover {
  color: var(--primary-dark);
}

.btn-link:hover i {
  transform: translateX(4px);
}

img {
  max-width: 100%;
}

/* ============= Navigation ============= */
#mainNav {
  transition: background-color var(--transition-med), padding var(--transition-med);
  background-color: transparent;
  padding: 1.5rem 0;
}

#mainNav.scrolled {
  background-color: white;
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
}

.brand-name {
  color: var(--text-dark);
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--text-dark);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-med), left var(--transition-med);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
  left: 10%;
}

.navbar-toggler {
  border: none;
  font-size: 1.25rem;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============= Hero Section ============= */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: url('../img/bilanga.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-dark);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-indicator a {
  color: white;
  font-size: 1.5rem;
}

/* ============= Page Header ============= */
.page-header {
  height: 400px;
  background-image: url('../img/bilanga.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.page-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-dark);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.breadcrumb {
  background-color: transparent;
  margin-bottom: 0;
}

.breadcrumb-item,
.breadcrumb-item.active {
  color: white;
}

.breadcrumb-item a {
  color: var(--primary-light);
}

/* ============= Service Cards ============= */
.service-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.service-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

/* ============= Product Cards ============= */
.product-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-med);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: var(--spacing-md);
}

.product-info h4 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
}

.product-category {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background-color: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-sm);
}

.product-price {
  font-weight: 700;
  color: var(--primary);
}

.product-rating {
  color: var(--accent);
}

/* ============= Team Cards ============= */
.team-member {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-member:hover .team-image img {
  transform: scale(1.1);
}

.team-social {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-sm);
  background-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.team-member:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}

.team-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: var(--primary);
  border-radius: 50%;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.team-social a:hover {
  background-color: var(--primary);
  color: white;
}

.team-info {
  padding: var(--spacing-md);
  text-align: center;
}

.team-info h4 {
  margin-bottom: 4px;
}

.team-info p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============= Feature Cards ============= */
.feature-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

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

.feature-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.feature-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

/* ============= Testimonials ============= */
.testimonial-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  margin: 0 var(--spacing-md);
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.testimonial-author h5 {
  margin-bottom: 0;
}

.testimonial-author p {
  color: var(--text-light);
  margin-bottom: 0;
  font-style: normal;
}

.testimonial-image {
  margin-bottom: var(--spacing-md);
  position: relative;
}

.testimonial-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.image-label {
  position: absolute;
  bottom: var(--spacing-sm);
  left: var(--spacing-sm);
  background-color: var(--primary);
  color: white;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

/* ============= CTA Section ============= */
.cta-section {
  background-color: var(--primary);
  color: white;
}

.cta-section .section-title {
  margin-bottom: var(--spacing-sm);
}

/* ============= Contact Form ============= */
.contact-form-container {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-info-container {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-info-card {
  background-color: var(--background-off);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.contact-info-item {
  display: flex;
  margin-bottom: var(--spacing-md);
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
}

.contact-details h5 {
  margin-bottom: 4px;
}

.contact-details p {
  margin-bottom: 0;
}

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  margin-right: var(--spacing-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
}

/* ============= Map Section ============= */
.map-container {
  overflow: hidden;
  height: 400px;
}

.location-info {
  height: 400px;
  overflow-y: auto;
}

.location-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.location-card.active,
.location-card:hover {
  border-left-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.location-card h4 {
  margin-bottom: var(--spacing-xs);
}

.location-card p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
}

/* ============= Accordion Styles ============= */
.accordion-item {
  margin-bottom: var(--spacing-md);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  background-color: white;
  font-weight: 500;
  padding: var(--spacing-md);
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.accordion-body {
  padding: var(--spacing-md);
  background-color: white;
}

/* ============= Filter Buttons ============= */
.btn-filter {
  background-color: transparent;
  border: 2px solid var(--primary-light);
  color: var(--text-medium);
  margin: 0 4px 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-filter:hover,
.btn-filter.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============= Values List ============= */
.values-list {
  list-style: none;
  padding-left: 0;
}

.values-list li {
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-left: 28px;
}

.values-list li::before {
  content: "\f560";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary);
}

/* ============= Process Steps ============= */
.process-step {
  text-align: center;
  padding: var(--spacing-md);
}

.process-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--spacing-md);
  position: relative;
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 30px;
  height: 30px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ============= Service Item ============= */
.service-item {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-item:last-child {
  border-bottom: none;
}

.service-number {
  display: inline-block;
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
  font-family: 'Playfair Display', serif;
}

.service-title {
  margin-bottom: var(--spacing-md);
  font-size: 2rem;
}

.service-features {
  list-style: none;
  padding-left: 0;
}

.service-features li {
  margin-bottom: var(--spacing-sm);
}

.service-features li i {
  color: var(--primary);
  margin-right: 8px;
}

/* ============= About Section ============= */
.about-image {
  position: relative;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-sm);
}

.experience-badge .number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.875rem;
}

.mission-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.mission-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

/* ============= Footer ============= */
.footer {
  background-color: var(--background-dark);
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.footer-heading {
  color: white;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.social-links {
  margin-top: var(--spacing-md);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: var(--spacing-sm);
  transition: background-color var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary);
}

.footer address p {
  margin-bottom: var(--spacing-xs);
}

.footer address i {
  color: var(--primary);
  width: 20px;
  margin-right: 4px;
}

/* ============= Back to Top Button ============= */
/*.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 99;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}*/

/* ============= WhatsApp Float Button ============= */
/*.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 99;
  transition: transform var(--transition-fast);
}*/

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ============= Responsive Styles ============= */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-sm);
    /* Ensure the menu takes full width */
    width: 100%;
  }

  .navbar-nav {
    /* Stack the navigation items vertically */
    flex-direction: column;
    width: 100%;
  }

  .navbar-nav .nav-link {
    /* Reset the hover effect for mobile */
    padding: 0.75rem 1rem;
  }

  .navbar-nav .nav-link::after {
    display: none; /* Hide the underline */
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: var(--primary-light);
    color: var(--text-dark);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-number {
    font-size: 3rem;
  }
  
  .service-title {
    font-size: 1.75rem;
  }
  
  .experience-badge {
    width: 100px;
    height: 100px;
  }
  
  .experience-badge .number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    text-align: center; /* Centrer les éléments de menu sur les petits écrans */
  }
  .navbar-toggler {
    display: block; /* Assurez-vous que le bouton est visible */
  }
  .navbar-collapse {
    display: none; /* Masquer le menu par défaut sur les petits écrans */
  }
  .navbar-collapse.show {
    display: block; /* Afficher le menu lorsque le bouton est cliqué */
  }
  .hero h1 {
    font-size: 2rem; /* Réduire la taille du titre */
  }
  .hero p {
    font-size: 1.125rem; /* Réduire la taille du paragraphe */
  }
  .section-title {
    font-size: 1.75rem; /* Réduire la taille des titres de section */
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1rem; /* Réduire la taille des boutons */
  }
  
  .whatsapp-float,
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
    right: 20px;
  }
  
  .whatsapp-float {
    bottom: 80px;
  }
  
  .back-to-top {
    bottom: 20px;
  }
}