@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");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}

body {
  font-family: "Poppins", "Nunito", sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

/* Variables de couleurs */
:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --secondary: #2bb8ff;
  --background: #f8f9fa;
  --text-dark: #333;
  --background-dark: #ebebebc7;
  --text-light: #f5f5f5;
  --text-gray: #6c757d;
  --accent: #353535;
  --gray: #7f8c8d;
  --background-light: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --tag-bg: #e9f5ff;
  --tag-text: #0077cc;
}

.titre_emploi {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 40px auto 30px;
  background-color: var(--background-light);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 90%;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.titre_emploi::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
}

.emploi {
  width: 100%;
  padding: 30px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: -10px;
}

.emploi .box {
  width: 160px;
  height: 160px;
  position: relative;
  border: 2px solid #4f4f4f73;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 7px 10px 10px 0px #1c1c1c69;
  margin: 20px;
  background-color: #ffffff;
}

.emploi .box img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-bottom: 2.5px solid #2c2c2c77;
  display: block;
  margin: 10px auto;
  border-radius: 50%;
}

.emploi .box h1 {
  position: absolute;
  top: 60px;
  width: 150px;
  right: 10px;
  font-size: 16px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  background-color: #4746464e;
  color: #ffffff;
  backdrop-filter: blur(2px);
}

.emploi .box p {
  width: 100%;
  margin: 10px 0;
  font-size: 12px;
  padding: 0 15px;
  line-height: 22px;
  display: none;
}

.emploi .box a {
  width: 70%;
  display: block;
  text-align: center;
  margin: 10px auto;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 7px;
  background-color: #005499;
  color: white;
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%);
  transition: all 0.4s;
}

.emploi .box a:hover {
  background-color: #000a13;
}

.tous_les_offres {
  padding: 30px 20px;
  background: var(--background);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.tous_les_offres .articles {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  flex-wrap: wrap;
  margin: 10px auto;
}

.tous_les_offres .carousel {
  background: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: auto;
  width: 380px;
  margin: 15px;
  border-top: 5px solid var(--primary);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.tous_les_offres .carousel:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.tous_les_offres .info-box {
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tous_les_offres .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.tous_les_offres .contrat {
  background: var(--primary);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tous_les_offres .date {
  color: var(--text-gray);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tous_les_offres .date i {
  color: var(--primary);
}

.tous_les_offres .poste {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 8px 0;
  letter-spacing: 0;
}

.tous_les_offres .entreprise,
.tous_les_offres .localite {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.tous_les_offres .entreprise img,
.tous_les_offres .localite img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.tous_les_offres .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.tous_les_offres .tag {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tous_les_offres .details-btn {
  background: var(--primary);
  color: var(--text-light);
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  width: 100%;
  display: block;
  border: none;
  cursor: pointer;
}

.tous_les_offres .details-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.message {
  text-align: center;
  padding: 30px;
  background: var(--background-light);
  border-radius: var(--border-radius);
  margin: 20px auto;
  font-size: 1rem;
  color: var(--text-gray);
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 800px;
}

/* Animation d'apparition */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pagination améliorée */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0 20px;
  font-family: "Poppins", sans-serif;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--background-light);
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
  color: var(--text-light);
  background: var(--primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.35);
}

.page-link.active {
  color: var(--text-light);
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.35);
}

.prev-link,
.next-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.pagination-info {
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.pagination-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Style pour les cards vides avec un message */
.no-results {
  text-align: center;
  padding: 50px 30px;
  background: var(--background-light);
  border-radius: var(--border-radius);
  margin: 40px auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-gray);
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 800px;
}

.no-results i {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary);
  opacity: 0.7;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .tous_les_offres .articles {
    width: 100%;
    padding: 10px;
    justify-content: center;
  }

  .tous_les_offres .carousel {
    width: 350px;
  }
}

@media screen and (max-width: 768px) {
  .titre_emploi {
    font-size: 24px;
    padding: 15px;
    width: 95%;
  }

  .tous_les_offres {
    padding: 20px 10px;
  }

  .tous_les_offres .carousel {
    width: 100%;
    max-width: 450px;
    margin: 12px 15px;
  }

  .tous_les_offres .info-box {
    padding: 20px 15px;
  }
}

@media screen and (max-width: 480px) {
  .tous_les_offres {
    padding: 15px 10px;
  }

  .tous_les_offres .carousel {
    margin: 10px 5px;
  }

  .tous_les_offres .info-box {
    padding: 15px 12px;
    gap: 10px;
  }

  .tous_les_offres .poste {
    font-size: 1rem;
  }

  .pagination {
    gap: 5px;
  }

  .page-link {
    min-width: 35px;
    height: 35px;
    font-size: 13px;
  }
}

.container_resultat {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #ffffff;
  padding: 10px 10px;
  border-radius: 5px;
  width: 60%;
  min-width: 300px;
  max-width: 1000px;
  margin: 0 auto;
}

.titre_resultat {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  color: #0a062d;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  width: 60%;
  min-width: 300px;
  max-width: 1000px;
  margin: 0 auto;
}

.back-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-left: 20px;
}

.back-btn:hover {
  background-color: #0056b3;
}

.table-title {
  margin-top: 20px;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
  font-size: 20px;
  font-weight: 800;
  border-bottom: 2px solid #333333;
  padding-bottom: 10px;
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  width: 60%;
  min-width: 300px;
  max-width: 1000px;
  margin: 0 auto;
}
