:root {
  --color-btn: #334960;
  --color-btn-hover: #a88d39;
  --color-bgc-input: #d9d9d9;
  --color-white: #fff;
}

.projets {
  position: relative;
  width: 100%;
  min-height: 100%;
  margin-bottom: 83px;
}

.container_projets {
  height: 100%;
  width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.box_projets {
  width: 1150px;
  height: 250px;
  background-color: transparent;
  padding: 0px 80px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  transition: box-shadow 0.2s ease-in-out;
  margin-bottom: 70px;
}

.box_projets:not(:first-child) {
  margin-top: 70px;
}

.box_projets:first-child {
  margin-top: 20px;
}

.project_link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease-in-out;
}

.box_img_projets {
  width: 550px;
  height: 250px;
}

.box_img_projets img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.9);
}

.box_description_projets {
  width: 550px;
  height: 250px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.box_title_projets {
  width: 100%;
  height: min-content;
}

.titre_projets {
  text-align: left;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--color-btn);
}

.type_projets {
  padding: 4px 12px;
  border-radius: 360px;
  background-color: #737373;
  display: flex;
  justify-content: center;
  align-items: center;
}

.type_projets p {
  font-size: 16px;
  font-weight: 400;
  color: white;
}

.description_projets {
  width: 100%;
  height: 100%;
}

.description_projets p {
  font-size: 16px;
  font-weight: 400;
  color: #9b9b9b;
  text-align: left;
}

.date_specialite_projets {
  width: 100%;
  height: min-content;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date_projets p {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
}

.date_projets p span.author-name {
  font-weight: 700;
}

.container_specialite_projets {
  width: min-content;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.specialite_projets {
  padding: 4px 12px;
  background-color: var(--color-btn);
  border-radius: 360px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.specialite_projets:hover {
  background-color: #000000;
}

.specialite_projets:hover p {
  color: white;
}

.specialite_projets p {
  font-size: 14px;
  font-weight: 400;
  color: rgb(255, 255, 255);
}

@media only screen and (max-width: 1280px) {
  .container_projets {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .box_projets {
    width: 550px;
    height: min-content;
    background-color: transparent;
    padding: 0px 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    transition: box-shadow 0.2s ease-in-out;
    margin-bottom: 70px;
  }

  .box_projets:not(:first-child) {
    margin-top: 0px;
  }

  .box_projets:first-child {
    margin-top: 0px;
  }

  .box_description_projets {
    width: 550px;
    height: min-content;
    background-color: transparent;
    gap: 1rem;
  }

  .date_specialite_projets {
    margin-top: 2rem;
  }
}



@media only screen and (max-width: 720px) {
  .box_projets {
    width: 300px;
  }
  .box_img_projets {
    width: 300px;
    height: 150px;
  }

  .box_description_projets {
    width: 300px;
    height: min-content;
    background-color: transparent;
    gap: 1rem;
  }

  .description_projets p {
    font-size: 12px;
    font-weight: 400;
    color: #9b9b9b;
    text-align: left;
  }

  .titre_projets {
    text-align: left;
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-btn);
  }

  .date_specialite_projets{
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    margin-top: 1rem;

  }
}


/* test menu deroulant--------------------------------------------------------------------------------- */

.container_menu_deroulant {
  min-height: 100%;
  width: 1280px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.box_menu_deroulant h2 {
  font-size: 28px;
  color: black;
  margin-bottom: 30px;
}

.features_menu_deroulant {
  min-height: 100%;
  width: 1010px;
  margin: 0 auto;
  text-align: center;
}

.type_deroulant {
  min-height: 100%;
  width: 1010px;
  text-align: left;
  transition: all 0.3s ease-in-out;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.type_deroulant_button {
  width: 100%;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s ease-in-out;
  outline: none;
}

.type_deroulant_button:hover {
  background-color: #f0f0f0;
}

.type_deroulant_button:focus {
  outline: none;
}

.type_deroulant_button h3 {
  font-size: 24px;
  font-weight: 700;
  color: black;
  margin: 0;
  position: relative;
  display: inline-block;
}

.arrow {
  font-size: 16px;
  transform: rotate(-90deg);
  transition: transform 0.3s ease-in-out;
  color: black;
}

.box_type_deroulant {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  margin-top: 10px;
}

.type_deroulant:focus .box_type_deroulant {
  max-height: 500px;
  opacity: 1;
  padding: 15px;
}

.p_deroulant_tiny {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  text-align: left;
}

/* Styles pour la pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  padding: 20px 0;
  font-family: Arial, sans-serif;
}

.page-link {
  text-decoration: none;
  color: #334960;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.page-link:hover {
  text-decoration: underline;
}

.page-number {
  display: inline-block;
  padding: 4px 8px;
  font-size: 16px;
  font-weight: bold;
}

.page-number.current {
  color: #a88d39;
  border-radius: 100%;
  border: 2px solid #a88d39;
}

.page-ellipsis {
  color: #334960;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
}

.prev-link, .next-link {
  font-weight: 400;
}



/* Responsive pour la pagination */
@media only screen and (max-width: 720px) {
  .pagination {
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .page-link, .page-number, .page-ellipsis {
    font-size: 14px;
    padding: 6px 10px;
  }
}
