@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Réinitialisation et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Variables CSS pour la palette de couleurs */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #1abc9c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Container principal */
.section3 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  min-height: calc(100vh - 80px); /* Ajuster selon la hauteur de la navbar */
}

/* Offre d'emploi container */
.job-offer {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

/* En-tête avec l'image et infos entreprise */
.box11 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

/* Container des informations de l'entreprise */
.company-info-container {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(-10px);
  margin-top: 0;
}

.company-info-container.active {
  max-height: 1000px; /* Valeur suffisamment grande pour contenir tout le contenu */
  opacity: 1;
  transform: translateY(0);
  margin-top: 20px;
  padding: 25px;
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.company-info-container.active::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--light-color);
}

/* Styles pour les éléments à l'intérieur du container d'informations */
.company-info-container .lien {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 15px;
  background-color: white;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.company-info-container .lien:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.company-info-container .lien a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-info-container .lien a:hover {
  text-decoration: underline;
}

.company-info-container .lien a i {
  color: var(--secondary-color);
}

.company-info-container h4 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--primary-color);
  position: relative;
  padding-left: 15px;
  display: flex;
  align-items: center;
}

.company-info-container h4 i {
  margin-right: 10px;
  color: var(--secondary-color);
  font-size: 16px;
}

.company-info-container h4::before {
  content: "";
  position: absolute;
  left: 0;
  width: 5px;
  height: 18px;
  background-color: var(--secondary-color);
  border-radius: 3px;
}

.company-info-container p {
  padding: 0 15px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.company-info-container .description {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
  position: relative;
  border-left: 3px solid var(--accent-color);
}

/* Bouton pour afficher/masquer les infos de l'entreprise */
.toggle-company-info {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.toggle-company-info:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.toggle-company-info i {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.toggle-company-info.active {
  background-color: var(--primary-color);
}

.toggle-company-info.active i {
  transform: rotate(180deg);
}

.box11 img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--light-color);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.box11 img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.box11 h2 {
  font-family: "Roboto", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.box11 .company {
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
  padding: 5px 15px;
  background-color: var(--light-color);
  border-radius: 30px;
  display: inline-block;
}

.box11 .lien a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

.box11 .lien a:hover {
  text-decoration: underline;
}

.box11 h4 {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  margin-top: 20px;
  color: var(--primary-color);
}

.box11 p {
  margin: 10px 0;
  text-align: center;
  max-width: 600px;
  color: var(--text-color);
}

/* Box pour le détail de l'offre */
.box3 {
  text-align: center;
  margin: 20px 0 30px;
  padding: 25px;
  background-color: var(--light-color);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.box3:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.box3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--secondary-color),
    var(--accent-color)
  );
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.box3 h1 {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.box3 h1::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px;
}

.poste-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  gap: 15px;
}

.box3 h2 {
  font-size: 18px;
  color: var(--text-color);
  font-weight: 400;
  border-bottom: none;
  padding: 0;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.box3 h2 i {
  color: var(--secondary-color);
  margin-right: 5px;
}

.box3 h2 span {
  font-weight: 600;
  color: var(--secondary-color);
  position: relative;
  padding: 0 5px;
  border-bottom: 1px dashed var(--secondary-color);
}

/* Nombre de postes disponibles */
.nombre-poste-disponible {
  margin-top: 5px;
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  background-color: white;
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.nombre-poste-disponible:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nombre-poste-disponible i {
  color: var(--accent-color);
  margin-right: 8px;
  font-size: 14px;
}

.nombre-poste-disponible .nombre {
  font-weight: 700;
  color: var(--accent-color);
  margin: 0 5px;
  background-color: var(--light-color);
  padding: 2px 8px;
  border-radius: 15px;
  font-size: 14px;
}

.nombre-poste-disponible .texte {
  color: var(--text-color);
  font-size: 14px;
}

/* Contenu des sections */
.box2 {
  margin: 25px 0;
  padding: 20px;
  background-color: var(--light-color);
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.box2:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.box2 h3 {
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.box2 h3 i {
  color: var(--secondary-color);
}

.box2 p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Informations supplémentaires */
.box_info {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 10px;
}

.box_info .info {
  flex: 0 0 calc(33.333% - 20px);
  background-color: white;
  padding: 12px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.box_info .info:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.box_info .info strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

/* Bouton de postulation */
.btn001 {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 20px;
  margin-bottom: 10px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn001:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.btn001 i {
  font-size: 16px;
}

/* Message d'erreur ou d'information */
.msg001 {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px 20px;
  border-radius: 6px;
  margin-top: 20px;
  font-size: 15px;
  text-align: center;
  border-left: 4px solid #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.msg001 i {
  font-size: 18px;
  color: #dc3545;
}

/* Section des offres similaires */
.container_box10 {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.container_box10 h2 {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.container_box10 h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px;
}

.carousel {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin: 10px;
}

.carousel:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.carousel img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.info-box {
  padding: 20px;
}

.info-box .p {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.info-box .poste {
  font-size: 16px;
  margin-bottom: 15px;
}

.box_vendu {
  background-color: var(--light-color);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.vendu p {
  margin-bottom: 8px;
  font-size: 14px;
}

.vendu p strong {
  color: var(--primary-color);
  margin-right: 5px;
}

.info-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--secondary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.info-box a:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .box_info .info {
    flex: 0 0 calc(50% - 20px);
  }

  .container_box10 {
    padding: 0 15px;
  }

  .company-info-container.active {
    padding: 20px;
  }
}

@media screen and (max-width: 768px) {
  .section3 {
    padding: 20px 15px;
  }

  .job-offer {
    padding: 20px;
  }

  .box11 h2 {
    font-size: 24px;
  }

  .box3 h1 {
    font-size: 22px;
  }

  .box2 h3 {
    font-size: 18px;
  }

  .box11 .description {
    padding: 15px;
  }

  .box3 {
    padding: 20px 15px;
  }

  .box3 h2 {
    font-size: 16px;
  }

  .company-info-container.active {
    padding: 15px;
  }

  .company-info-container .description {
    padding: 15px;
  }

  .company-info-container h4 {
    font-size: 16px;
  }

  .nombre-poste-disponible {
    font-size: 14px;
    padding: 6px 12px;
  }
}

@media screen and (max-width: 576px) {
  .box_info .info {
    flex: 0 0 100%;
  }

  .box11 img {
    width: 100px;
    height: 100px;
  }

  .btn001 {
    width: 100%;
  }

  .box11 h2 {
    font-size: 22px;
  }

  .box11 .company {
    font-size: 18px;
  }

  .box3 h1 {
    font-size: 20px;
  }

  .box3 h2 {
    font-size: 15px;
  }

  .box2 {
    padding: 15px;
  }

  .box2 h3 {
    font-size: 17px;
  }

  .toggle-company-info {
    width: 100%;
    justify-content: center;
  }

  .company-info-container p {
    padding: 0 10px;
  }

  .company-info-container .lien {
    width: 100%;
    text-align: center;
  }

  .company-info-container .lien a {
    justify-content: center;
  }

  .box3 {
    padding: 15px 10px;
  }

  .nombre-poste-disponible {
    font-size: 13px;
    padding: 5px 10px;
    margin-top: 10px;
  }
}

/* Styles pour l'affichage du taux de correspondance */
.match-result {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.match-result h3 {
  margin-top: 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compatibility-container {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.compatibility-bar {
  flex-grow: 1;
  height: 24px;
  background-color: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 15px;
}

.compatibility-fill {
  height: 100%;
  background: linear-gradient(to right, #ff6b6b, #ffa502, #2ed573);
  border-radius: 12px;
  transition: width 0.5s ease;
}

.compatibility-percentage {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  min-width: 60px;
  text-align: right;
}

.compatibility-details {
  margin-top: 15px;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 14px;
}

.match-item.success {
  color: #2ed573;
}

.match-item.success i {
  color: #2ed573;
}

.match-item.error {
  color: #ff6b6b;
}

.match-item.error i {
  color: #ff6b6b;
}

.matching-terms {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #e0e0e0;
}

.matching-terms-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.matching-terms-title i {
  color: #ffa502;
}

.term-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.term-tag {
  display: inline-block;
  background-color: #e9f7fe;
  color: #3498db;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 15px;
  border: 1px solid #bce0fd;
  transition: all 0.2s ease;
}

.term-tag:hover {
  background-color: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}
