@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Climate+Crisis&family=Nunito&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fascinate+Inline&family=Nunito&display=swap");

* {
  margin: 0;
  padding: 0%;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
  background-color: #ffffff;
  background-attachment: fixed;
}

/* modification de la deuxieme section */

.section2 {
  height: 550px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 200px;
  overflow: hidden;
  margin-bottom: -10px;
}
.section2 .slider {
  display: flex;
  height: 550px;
  width: 100%;
  position: relative;
}
.section2 .slider .box {
  height: 500px;
  width: 100%;
  position: relative;
}

.section2 .slider .box .text {
  position: absolute;
  width: 100%;
  height: 550px;
  background-color: #00000050;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.section2 .slider .box .text h1 {
  font-size: 35px;
  color: white;
  font-family: "Almarai", sans-serif;
  width: 600px;
  text-align: center;
  text-align: center;
  margin-top: -100px;
}
.section2 .slider .box .text p {
  font-size: 13px;
  color: white;
  font-family: "Almarai", sans-serif;
  width: 400px;
  text-align: center;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}
.section2 .slider .box .text button {
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  background-color: #e4144d;
  color: white;
  margin-top: 30px;
}

.section2 .slider .box form {
  width: 700px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  flex-direction: column;
}

.section2 .slider .box form .search {
  width: 100%;
  max-width: 1000px;
  position: relative;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 5px;
  transition: all 0.3s ease;
}

.section2 .slider .box form .search:focus-within {
  box-shadow: 0 8px 25px rgba(0, 114, 255, 0.2);
  transform: translateY(-2px);
}

.section2 .slider .box form #search {
  flex: 1;
  height: 50px;
  padding: 0 25px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  color: #333;
  background-color: transparent;
  transition: all 0.3s ease;
}

.section2 .slider .box form #search:focus {
  outline: none;
}

.section2 .slider .box form label {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.section2 .slider .box form label:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  transform: scale(1.05);
}

.section2 .slider .box form label i {
  font-size: 18px;
}

.section2 .slider .box form #recherche {
  display: none;
}

.section2 .slider .box .img {
  display: flex;
  width: 100%;
  position: relative;
  z-index: -4;
}

.section2 .slider .box .img img {
  height: 650px;
  object-fit: cover;
  width: 100%;
}

@media screen and (max-width: 1400px) {
  .section2 {
    height: 550px;
  }

  .section2 .slider .box {
    height: 500px;
  }

  .section2 .slider .box .text {
    height: 550px;
  }
  .section2 .slider .box .text h1 {
    width: 900px;
    margin-top: -20px;
  }
  .section2 .slider .box .text p {
    width: 600px;
    margin-top: 30px;
  }
  .section2 .slider .box .text button {
    padding: 15px 20px;
    font-size: 16px;
    margin-top: 30px;
  }

  .section2 .slider .box form {
    width: 700px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
  }

  .section2 .slider .box form #search {
    height: 40px;
  }

  .section2 .slider .box form label:hover {
    background-color: #f39c12;
  }

  .section2 .slider .box .img {
    display: flex;
    width: 100%;
    position: relative;
    z-index: -4;
  }

  .section2 .slider .box .img img {
    height: 550px;
    object-fit: cover;
    width: 100%;
  }
}
@media screen and (max-width: 1200px) {
  .section2 .slider .box .text h1 {
    font-size: 30px;
    width: 900px;
    margin-top: -40px;
  }
  .section2 .slider .box .text p {
    width: 600px;
    margin-top: 30px;
  }
}
@media screen and (max-width: 900px) {
  .section2 .slider .box .text h1 {
    font-size: 25px;
    width: 700px;
    margin-top: -40px;
  }
  .section2 .slider .box .text p {
    width: 500px;
    margin-top: 30px;
  }
  .section2 .slider .box form #search {
    width: 500px;
    height: 40px;
  }

  .section2 .slider .box form label {
    width: 40px;
    height: 40px;
  }
  .section2 .slider .box form label i {
    font-size: 20px;
  }

  .section2 .slider .box form .filtre select {
    padding: 7px 10px;
    font-size: 15px;
    background-color: #ffffff;
  }
}

@media screen and (max-width: 700px) {
  .section2 {
    height: 500px;
  }
  .section2 .slider .box {
    height: 450px;
    width: 100%;
  }
  .section2 .slider .box .text {
    height: 450px;
  }
  .section2 .slider .box .img img {
    height: 450px;
    object-fit: cover;
    width: 100%;
  }
  .section2 .slider .box .text h1 {
    font-size: 20px;
    width: 500px;
    margin-top: 30px;
  }
  .section2 .slider .box .text p {
    font-size: 12px;
    width: 400px;
    margin-top: 30px;
  }
  .section2 .slider .box form {
    width: 90%;
  }
  .section2 .slider .box form #search {
    width: 400px;
    height: 30px;
    font-size: 15px;
  }

  .section2 .slider .box form label i {
    font-size: 20px;
  }
}
@media screen and (max-width: 600px) {
  .section2 .slider .box .text h1 {
    width: 400px;
    margin-top: 30px;
  }
  .section2 .slider .box .text p {
    width: 350px;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .section2 .slider .box form #search {
    width: 300px;
    height: 40px;
    font-size: 15px;
  }

  .section2 .slider .box form label {
    width: 40px;
    height: 40px;
  }
  .section2 .slider .box form label i {
    font-size: 20px;
  }

  .section2 .slider .box form .filtre select {
    font-size: 13px;
    background-color: #ffffff;
  }
}

@media screen and (max-width: 500px) {
  .section2 .slider .box .text h1 {
    width: 360px;
    margin-top: 30px;
  }
  .section2 .slider .box .text p {
    width: 350px;
    margin-top: 30px;
  }
  .section2 .slider .box form #search {
    width: 320px;
    height: 40px;
    font-size: 13px;
  }
}
@media screen and (max-width: 400px) {
  .section2 .slider .box form .search {
    width: 300px;
    height: 40px;
    font-size: 13px;
  }

  .section2 .slider .box .text h1 {
    font-size: 20px;
    width: 320px;
    margin-top: 30px;
  }
  .section2 .slider .box .text p {
    font-size: 14px;
    width: 290px;
    margin-top: 10px;
  }
}

.produit_vedete .affiche {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 300px;
  overflow: hidden;
}
.produit_vedete .affiche img {
  height: 100px;
  width: 100%;
  object-fit: cover;
  animation: affiche 15s linear alternate infinite ease-in-out;
}
@keyframes affiche {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* modification de la section des profiles */

.produit_vedete {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  margin-bottom: 50px;
  margin-top: 20px;
  background: #f7f7f7;
  padding: 100px 20px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  border: 1px solid #2c3e502d;
  box-shadow: 0px 0px 7px 0px #2c3e5080;
}

.produit_vedete h1 {
  margin-bottom: 30px;
  text-transform: uppercase;
  z-index: 2;
  font-size: 35px;
  padding: 10px 20px;
  background-color: #ffffffae;
  backdrop-filter: blur(3px);
  border-radius: 10px;
  text-align: center;
}

.produit_vedete .statut,
statut2 {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 2px 8px;
  border: 1px solid #002233;
  box-shadow: 0 0 7px 1px #002233;
  background-color: #92929297;
  font-size: 12px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  color: #ffffff;
}
.produit_vedete .statut span {
  display: inline-block;
  background-color: #1eff00;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  border: 1px solid #00223363;
}

.produit_vedete .box1 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 80%;
  margin-bottom: 50px;
}
.produit_vedete .box1 h1 {
  margin: auto 0;
  font-size: 20px;
  width: 80%;
}
.produit_vedete .box1 .affiche {
  height: 300px;
  border-radius: 10px;
}
.produit_vedete .box1 .affiche img {
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.produit_vedete .articles {
  width: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}
/* .produit_vedete .articles h1{
    font-size: 25px;
 } */
.produit_vedete .carousel2 {
  width: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.produit_vedete .articles .carousel {
  height: 370px;
  width: 280px;
  background-color: rgba(247, 247, 247, 0.499);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(105, 103, 103, 0.257);
  box-shadow: 2px 2px 10px 2px #d8d8d8;
  transition: all 0.5s ease-in-out;
  position: relative;
  margin: 10px 20px;
  background-color: #ffffff;
}
.produit_vedete .articles .carousel .divpp {
  margin: 0;
}
.produit_vedete .articles .carousel .pp {
  font-size: 14px;
  width: 100%;
  padding: 0 10px;
  margin: 1px;
}

.produit_vedete .articles .carousel:hover {
  transform: scale(1.02);
}

.produit_vedete .articles .message {
  font-size: 15px;
  width: 40%;
  text-align: center;
  padding: 20px 30px;
  border: 1px solid #ffffff;
  border: 1px solid #2c3e502d;
  box-shadow: 8px 6px 7px 0px #2c3e5080;
}
.produit_vedete .articles .carousel img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid rgba(148, 146, 146, 0.499);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.produit_vedete .articles .carousel .info-box {
  height: 200px;
  margin-top: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5px 10px;
}
.produit_vedete .articles .carousel h4 {
  padding: 0 10px;
  font-size: 17px;
  text-transform: capitalize;
  margin-bottom: 5px;
  width: 100%;
}

.produit_vedete .articles .carousel .ville {
  position: absolute;
  top: 16px;
  font-size: 14px;
  width: 100%;
  text-transform: capitalize;
  color: #000000;
  font-weight: bold;
  background-color: #e2e2e250;
  padding: 1px;
  padding-left: 10px;
}
.produit_vedete .articles .carousel .nom {
  position: absolute;
  top: 105px;
  left: 10px;
  color: #ffffff;
  background-color: #00223351;
  font-size: 16px;
  font-weight: 600;
  padding: 5px 7px;
  border-radius: 5px;
  text-transform: capitalize;
}
.produit_vedete .articles .carousel .ville strong {
  color: #0a062d;
}

.produit_vedete .articles .carousel .vendu {
  display: flex !important;
  margin-left: 5px;
  font-size: 13px;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2px;
  padding: 0 5px;
  margin: 4px 0;
}

.produit_vedete .articles .carousel .vendu span {
  padding: 1px 3px;
  margin-right: 6px;
  background-color: #0a062d14;
  border-radius: 6px;
  margin-bottom: 4px;
  color: #000000;
}

.produit_vedete .articles .carousel a {
  background-color: #4b4b4b;
  width: 100%;
  padding: 5px 10px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: block;
  transition: all 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 5px;

  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.produit_vedete .articles .carousel a :nth-child(1) {
  margin-right: 7px;
}
.produit_vedete .articles .carousel a:hover {
  background-color: #2c3e50;
}

.produit_vedete .box2 {
  width: 70%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.produit_vedete .box2 span {
  height: 30px;
  width: 40px;
  background-color: #0a062d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  transition: all 0.3s ease-in-out;
}
.produit_vedete .box2 span:hover {
  transform: scale(1.1);
  background-color: #e4144d;
}
.produit_vedete .box2 span {
  color: white;
  font-size: 25px;
}

@media screen and (max-width: 1400px) {
  .produit_vedete {
    width: 97%;
    margin-bottom: 50px;
  }
  .produit_vedete h1 {
    margin-bottom: 30px;
    font-size: 25px;
    padding: 10px 20px;
  }

  .produit_vedete .box1 {
    width: 80%;
    margin-bottom: 50px;
  }
  .produit_vedete .box1 h1 {
    font-size: 20px;
  }
  .produit_vedete .box1 .affiche {
    height: 100px;
  }
  .produit_vedete .box1 .affich img {
    height: 100px;
  }

  .produit_vedete .articles {
    width: 85%;
  }
  /* .produit_vedete .articles h1{
        font-size: 25px;
     } */
  .produit_vedete .carousel2 {
    width: 85%;
  }

  .produit_vedete .articles .message {
    font-size: 17px;
    width: 40%;
    padding: 20px 30px;
  }
}
@media screen and (max-width: 1000px) {
  .produit_vedete {
    width: 99%;
    margin-bottom: 100px;
    margin-top: 50px;
    padding: 40px 0;
  }
  .produit_vedete h1 {
    margin-bottom: 30px;
    font-size: 20px;
    padding: 7px 17px;
  }

  .produit_vedete .articles {
    width: 100%;
    padding: 0%;
  }
}

@media screen and (max-width: 600px) {
  .produit_vedete {
    width: 98%;
    margin-bottom: 50px;
  }
  .produit_vedete h1 {
    margin-bottom: 30px;
    font-size: 18px;
    padding: 7px 17px;
  }

  .produit_vedete .box1 {
    width: 99%;
    margin-bottom: 50px;
  }
  .produit_vedete .box1 h1 {
    font-size: 15px;
    text-align: center;
  }

  .produit_vedete .articles {
    width: 100%;
    padding: 0%;
  }
}

/* Styles pour la pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 10px 20px;
  width: 100%;
  margin-top: -20px !important;
  margin-bottom: 30px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  background-color: #fff;
  padding: 10px 15px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: #333;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination a:hover {
  background-color: #f5f5f5;
  color: #576cbc;
}

.pagination .current-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #576cbc;
  color: white;
  border-radius: 50%;
  font-weight: 600;
}

.pagination-arrow {
  background-color: #f5f5f5;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: #999;
}

/* Compteur de résultats */
.search-results-count {
  text-align: center;
  margin: 10px 0 20px;
  color: #666;
  font-size: 16px;
}

.search-results-count p {
  display: inline-block;
  background-color: #f7f7f7;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 500;
  color: #576cbc;
}

/* Responsive pour la pagination */
@media (max-width: 768px) {
  .pagination {
    padding: 8px 12px;
  }

  .pagination a,
  .pagination .current-page,
  .pagination-ellipsis {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pagination {
    padding: 5px 10px;
    gap: 3px;
  }

  .pagination a,
  .pagination .current-page,
  .pagination-ellipsis {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* Nouveau style pour la section des catégories */
.emploi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  padding: 60px 5%;
  background: #0d0f1a;
  position: relative;
  overflow: hidden;
}

.emploi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 15% 50%,
      rgba(121, 74, 255, 0.1),
      transparent 25%
    ),
    radial-gradient(circle at 85% 30%, rgba(0, 201, 255, 0.1), transparent 25%);
  pointer-events: none;
}

.category-box {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.category-box::after {
  content: "";
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: radial-gradient(
    circle,
    var(--category-glow, rgba(91, 134, 229, 0.5)),
    transparent 20%
  );
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  transform-origin: center;
  animation: rotateGlow 15s linear infinite;
  pointer-events: none;
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.category-box:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.category-box:hover::after {
  opacity: 0.3;
}

.category-content {
  padding: 25px 20px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--category-main-color, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--category-main-color, #fff);
  font-size: 24px;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.category-box:hover .category-icon {
  background: var(--category-main-color, #fff);
  color: #0d0f1a;
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--category-main-color, #fff);
}

.category-box h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-box:hover h3 {
  color: #fff;
  text-shadow: 0 0 10px var(--category-main-color, #fff),
    0 0 15px var(--category-main-color, #fff);
}

.category-box p {
  display: none;
}

.category-link {
  display: block;
  padding: 12px 20px;
  background-color: rgba(0, 0, 0, 0.675);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
  width: 100%;
  z-index: 2;
  flex-shrink: 0;
}

.category-link span {
  margin-right: 8px;
}

.category-link i {
  transition: transform 0.3s ease;
}

.category-box:hover .category-link {
  background-color: var(--category-main-color, #0072ff);
  color: white;
  border-top-color: transparent;
}

.category-box:hover .category-link i {
  transform: translateX(5px);
}

/* Définir les couleurs spécifiques pour chaque catégorie */
.category-box.cat-color-1 {
  --category-main-color: #ff6b6b;
  --category-glow: #ff6b6b;
}

.category-box.cat-color-2 {
  --category-main-color: #48dbfb;
  --category-glow: #48dbfb;
}

.category-box.cat-color-3 {
  --category-main-color: #9b59b6;
  --category-glow: #9b59b6;
}

.category-box.cat-color-4 {
  --category-main-color: #1dd1a1;
  --category-glow: #1dd1a1;
}

.category-box.cat-color-5 {
  --category-main-color: #feca57;
  --category-glow: #feca57;
}

.category-box.cat-color-6 {
  --category-main-color: #54a0ff;
  --category-glow: #54a0ff;
}

.category-box.cat-color-7 {
  --category-main-color: #ff9f43;
  --category-glow: #ff9f43;
}

.category-box.cat-color-8 {
  --category-main-color: #00d2d3;
  --category-glow: #00d2d3;
}

.category-box.cat-color-9 {
  --category-main-color: #ff6363;
  --category-glow: #ff6363;
}

.category-box.cat-color-10 {
  --category-main-color: #686de0;
  --category-glow: #686de0;
}

.category-box.cat-color-11 {
  --category-main-color: #32ff7e;
  --category-glow: #32ff7e;
}

.category-box.cat-color-12 {
  --category-main-color: #e056fd;
  --category-glow: #e056fd;
}

.category-box.cat-color-13 {
  --category-main-color: #ffb142;
  --category-glow: #ffb142;
}

.category-box.cat-color-14 {
  --category-main-color: #45aaf2;
  --category-glow: #45aaf2;
}

.category-box.cat-color-15 {
  --category-main-color: #7d5fff;
  --category-glow: #7d5fff;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1200px) {
  .emploi {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: 50px 4%;
  }
}

@media screen and (max-width: 900px) {
  .emploi {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    padding: 40px 3%;
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .emploi {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 3%;
    gap: 15px;
  }

  .category-box {
    min-height: 200px;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 15px;
  }

  .category-box h3 {
    font-size: 1rem;
  }

  .category-link {
    padding: 10px 15px;
    font-size: 13px;
  }
}

@media screen and (max-width: 500px) {
  .emploi {
    padding: 20px 5px;
    gap: 15px;
    grid-template-columns: 1fr;
  }

  .category-box {
    min-height: auto;
    text-align: left;
  }

  .category-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    flex-grow: 1;
    width: 300px;
    max-width: 300px;
    min-width: 300px;
  }

  .category-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
    margin-right: 15px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .category-box h3 {
    font-size: 1rem;
    text-align: left;
  }
}
/* Call to Action Section */
.call-to-action {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/image/cta-background.jpg");
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
  color: white;
  margin-top: 50px;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.call-to-action h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.call-to-action p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 114, 255, 0.5);
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1200px) {
  .emploi {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 40px 4%;
  }
}

@media screen and (max-width: 768px) {
  .emploi {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 3%;
  }

  .category-box {
    height: 250px;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .category-box h3 {
    font-size: 18px;
  }

  .category-box p {
    font-size: 13px;
  }

  .call-to-action {
    padding: 60px 0;
  }

  .call-to-action h2 {
    font-size: 28px;
  }

  .call-to-action p {
    font-size: 16px;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  .emploi {
    grid-template-columns: 1fr;
    padding: 20px 4%;
  }

  .category-box {
    height: auto;
  }

  .category-content {
    padding: 20px;
  }

  .category-link {
    padding: 12px 20px;
  }
}

/* Style pour les sélecteurs de formulaire */
.custom-select {
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  outline: none;
  margin: 5px;
  min-width: 150px;
}

.custom-select:focus {
  border-color: #5b86e5;
  box-shadow: 0 0 0 2px rgba(91, 134, 229, 0.2);
}

.custom-select option {
  padding: 8px;
}

.custom-select option:checked {
  background-color: #f0f0f0;
}

/* Style pour l'option sélectionnée dans le menu déroulant */
.custom-select option:checked {
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .custom-select {
    padding: 7px 12px;
    font-size: 13px;
    min-width: 130px;
  }
}

@media screen and (max-width: 500px) {
  .custom-select {
    width: 100%;
    margin: 5px 0;
    font-size: 14px;
  }

  .section2 .slider .box form .filtre {
    flex-direction: column;
    width: 100%;
  }
}

/* Style pour le compteur de candidats */
.total-count {
  text-align: center;
  margin: 20px 0;
  font-size: 16px;
  color: #555;
  font-family: "Nunito", sans-serif;
}

.total-count p {
  background-color: #f8f9fa;
  display: inline-block;
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.total-count strong {
  color: #0072ff;
  font-weight: 700;
}

/* Personnaliser la couleur en fonction de la catégorie */
.cat-color-1 .total-count strong {
  color: #ff5e62;
}

.cat-color-2 .total-count strong {
  color: #5b86e5;
}

.cat-color-3 .total-count strong {
  color: #734b6d;
}

.cat-color-4 .total-count strong {
  color: #02aabb;
}

.cat-color-5 .total-count strong {
  color: #ff5f6d;
}

/* Media query pour la responsivité */
@media screen and (max-width: 480px) {
  .total-count {
    font-size: 14px;
    margin: 15px 0;
  }

  .total-count p {
    padding: 6px 12px;
  }
}

/* Styles pour les suggestions de recherche */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
  margin-top: 2px;
}

.search-suggestions.active {
  max-height: 300px;
  opacity: 1;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

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

.suggestion-item:hover {
  background-color: #f7f7f7;
}

.suggestion-icon {
  width: 35px;
  height: 35px;
  background-color: #f1f1f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #576cbc;
}

.suggestion-item.competence .suggestion-icon {
  color: #e8a0bf;
}

.suggestion-item.category .suggestion-icon {
  color: #a7d2cb;
}

.suggestion-content {
  flex: 1;
}

.suggestion-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.suggestion-subtitle {
  font-size: 0.85em;
  color: #777;
}

.no-suggestions,
.suggestion-loading,
.error-suggestion {
  padding: 15px;
  text-align: center;
  color: #777;
  font-style: italic;
}

.suggestion-loading {
  color: #576cbc;
}

.error-suggestion {
  color: #e74c3c;
}

/* Adaptation responsive pour les suggestions */
@media (max-width: 768px) {
  .search-suggestions {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    z-index: 1001;
  }
}
