body{
    overflow-x: hidden;
}

/* ====================== */
/* section header */
/* ====================== */

.menu-header{
  padding-top: 1rem;
}

section#postes-dispo h2 a {
    color: black;
    text-decoration: none;
}

.PS-logo {
    width: 55px;
    height: 55px;
}

.abstract-text {
    width: 80vw;
    justify-content: space-between;
}

/* =============================== */

.surround {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.surround .surrounded {
    padding: 8px 16px;
    border: none;
    background: none;
    text-decoration: none;
}

.surround svg {
  position: absolute;
  left: 0;
  top: 0 !important;
  width: 100%;
  pointer-events: none;
}

.surround #svg-sign {
  top: 100% !important;
}

#svg-sign {
  /* top: 6.3rem; */
  stroke: black;
  stroke-width: 1px;
}

#svg-form, #svg-post-dispo {
  height: 100%;
  stroke: #02326C;
  stroke-width: 3px;
}

.surround path {
  stroke-dasharray: 0 0;
  display: none;
}

.surround:hover path {
  animation: draw 1s forwards;
  display: block;
}

@keyframes draw {
  from {
      stroke-dasharray: 0 1500;
  }

  to {
      stroke-dasharray: 1500 1500;
  }
}

section {
  border-bottom: solid 0.5px var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-right: 1rem !important;
  margin-left: 1rem !important;
}
  
section:last-child {
  border-bottom: none;
}

#section1 {
  height: 50vh;
}

#section1 h1 {
  color: var(--black);
  font-family: var(--font-family-baskerville-semibold);
  font-size: 35.8px;
  font-weight: 600;
  /*left: 551px;*/
  letter-spacing: 0;
  line-height: normal;
  text-align: center;
  width: 531px;
}

.sec-title {
  width: 100%;
  align-items: center;
}

section h2.section-title {
  /* padding-left: 34px; */
  letter-spacing: 0;
  line-height: normal;
  padding-right: 30px;
  text-transform: uppercase;
  width: 100%;
  flex-basis: content;
}

/* ====================== */
/* section fonctions */
/* ====================== */

.functions {
  margin-top: 3rem;
}

.func {
  width: 500px;

}

#func-1 {
  background-image: url("../imgs/function1.png");
  background-position: 2rem top;
  background-repeat: no-repeat;
  background-size: auto 220px;
  min-height: 220px;
  margin-bottom: 15rem;
}

#func-3 {
  background-image: url("../imgs/function3.png");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: auto 220px;
  min-height: 220px;
  /* width: 500px; */
  margin-right: 2rem;
}

#func-1 .func-title,
#func-1 .func-desc {
  margin-left: calc(2rem + 146px);

}

#func-3 .func-title,
#func-3 .func-desc {
  margin-left: 200px;
}


/* ====================== */
/* section formulaire */
/* ====================== */

#formulaire-section {
  height: 30rem;
}

.form-relative{
  position: relative;
  width: 100%;
  justify-content: flex-start;
  display: flex;
  height: 25rem;
  margin-bottom: 2%;
}

.formulaire{
  width: 60%;
  height: 100%;
  position: relative;
  justify-content: center;
  display: block;
  margin-left: 15rem;
}

.email-nom{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 3rem; 
}

#email, #nom, #poste{
  width: 80%;
  border: none;
  background-color: transparent;
  border-bottom: 1px solid black;
  font-family: var(--font-family-barlow);
  font-size: 1rem;
  padding: .5em;
}

#email:focus, #nom:focus, #poste:focus, #area:focus {
  outline: 2px solid #000 !important;
  box-shadow: none !important;
  border-radius: 5px;
}

::-webkit-input-placeholder,:-moz-placeholder,:-ms-input-placeholder, ::input-placeholder {
  color: #7A7A7A;
  justify-content: flex-start;
}

.btn-file{
  display: grid;
  grid-template-columns: 1fr 1fr;
}
/*
#btn-relative{
  height: 3rem;
  gap: 4rem;
}
*/
/*personnalisation du champ file*/

.file-input {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-family: var(--font-family-barlow);
  font-size: 0.8rem;
  margin-top: -20px;
}

.file-input input[type="file"] {
  position: absolute;
  cursor: pointer;
  opacity: 0;
}

.file-input::after {
  content: attr(data-file-name); /* Texte par défaut (FR) */
  cursor: pointer;
}

.file-input.has-file::after {
  content: attr(data-file-name);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.wpcf7 form .wpcf7-response-output {
  margin: -2em 0.5em 1em;
}

/*
.envoyer{
  width: 8rem;
  height: 30px;
  font-family: "Helvetica-Regular";
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  border-radius: 35px;
  text-align: center;
  text-transform: uppercase;
  background-color: transparent;
  border: 0.3px solid black;
  cursor: pointer;
}

.envoyer:hover{
  background-color: rgb(71, 65, 65);
  color: white;
}
*/
#notif{
    display: none;
    background-color: green;
    border: 1px solid rgb(0, 6, 128);
    width: 80%; 
    color:white;
    font-size: 15px;
    font-weight: 600;
}

  /* ====================== */
  /* section postes disponibles */
  /* ====================== */

.postes-wrapper{
  position: relative; 
  width: 100%;
  height: 40rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: 20rem 20rem 20rem 20rem;
  padding: 1rem;
  margin-top: 2rem;
}

.single-post{
  display: grid;
  grid-template-rows: 40% 40%;
  gap: 5rem;
}

.postes-img {
  position: relative;
  width: 18.75rem;
  height:18.75rem;
  overflow: hidden;
}

.postes-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Pour s'assurer que l'image s'adapte correctement */
  flex-basis: 100%;
}

.postes-desc{
    width: 20rem;
}

.postes-desc span{
    font-weight: 600;
}

/* responsive */

@media (max-width: 1600px) {
  .postes-wrapper {
      grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
      gap: 2rem;
      height: auto;
  }

  /* .postes-desc {
    padding-top: 20px;
} */

}

@media (max-width: 1150px) {
  .menu-header{
      display: none;
  }
}

@media (max-width: 1024px) {
  .formulaire{
    margin-left: 12rem;
  }

  .email-nom{
    display: block;
  }

  .btn-file{
    display: block;
  }

  .wpcf7 form .wpcf7-response-output {
    margin: -0.5em 0.5em 1em;
  }
/*
  #btn-relative{
    padding-left: 5rem;
  }
  */
}

@media (max-width: 768px) {
  .formulaire{
    margin-left: 3rem;
    width: 100%;
  }

  .email-nom{
    display: block;
  }

  #email, #nom, #poste {
    width: 80%;
  }
/*
  #btn-relative{
    padding-left: 3rem;
  }
  */
}

@media (max-width: 752px) {
  .postes-wrapper {
  justify-items: center;
  }

  section h2.section-title{
    text-align: center;
  } 
}

@media (max-width: 600px) {
  #section1 h1 {
    font-size: 1.5rem;
    width: 80vw; 
  }

}

@media (max-width: 500px) {
  #section1 h1 {
    font-size: 20px;
    width: 70vw;
  }
}