/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.containerr {
  display: grid;
  grid-template-columns: 3fr 1fr; /* Main content + Sidebar */
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Breadcrumb navigation */
.breadcrumb {
  grid-column: span 2;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #8f8f8f;
  text-decoration: none;
}

.breadcrumb span {
  color: #333;
  font-weight: bold;
}

/* Page title */
.page-title {
  grid-column: span 2;
  font-size: 2rem;
  color: #0E6506;
  margin-bottom: 1rem;
  font-weight: bold;
  display: inline-block;
  padding-bottom: 0.2rem;
}

/* Content */
.content {
  font-size: 1rem;
}

.content img {
  width: 100%;
  margin-top: 1rem;
  border-radius: 5px;
}

/* Sidebar */
.sidebar {
  background-color: #0E6506;
  padding: 1rem;
  border-radius: 5px;
  height: 200px;
  margin-top: 1rem; /* Added margin to create space between content and sidebar */
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 0.5rem 0;
  font-weight: bold;
}
.sidebar a {
  color: #fff;
}
.sidebar i {
  background-color: #F6AE31;
  width: 30px; /* Ajustez la taille selon vos besoins */
  height: 30px; /* Doit être égal à la largeur pour un cercle parfait */
  border-radius: 50%;
  display: inline-flex; /* Assurez-vous que le contenu à l'intérieur est centré */
  align-items: center;
  justify-content: center;
}

.sidebar li.active {
  color: #000000;
  background-color: #F6AE31;
  padding: 0.5rem;
  border-radius: 3px;
  cursor: default;
}

/* Slider d'images */
.image-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 5px;
}

.image-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.image-slider img.active {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .containerr {
    display: flex; /* Change layout to flex */
    flex-direction: column; /* Stack content and sidebar */
  }

  .breadcrumb, 
  .page-title {
    text-align: center;
  }

  .sidebar {
    margin-top: 1.5rem;
    width: 100%; /* Make sidebar take the full width */
    order: 99; /* Place sidebar at the bottom */
  }
  
  .image-slider {
    height: 200px; /* Reduce image height */
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.5rem; /* Adjust font size for small screens */
  }

  .content p {
    font-size: 0.9rem;
  }

  .image-slider {
    height: 150px; /* Further reduce image height for very small screens */
  }
}
