:root {
  --black: #00313C;
  --softblack: rgba(0, 0, 0, 0.7);
  --blackTwo: #00313C;
  --blackThree: #00313C;
  --blackFour: #00313C;
  --mainRed: #E40046;
  --placeholderGray: #9D9D9C;
  --mainGray: #f6f6fa;
  --fontGray: #F2F2F2;
  --focusGray: #E8E8E8; 
  --softGray: #F5F5F5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
}
#main {
  position: relative;
  width: 100%;
  /*max-width: 1440px;*/
  margin: 0 auto;
}
ul {
  list-style-type: none;
}
a {
  text-decoration: none;
}
header {
  width: 100%;
}
#recruForm {
    max-width: 550px;
    min-width: 270px;
    margin: 2em auto;
}
#recruForm form {
    width: 100%;
    display: flex
;
    flex-direction: column;
}
.recruInfos {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--black); 
  padding: 0.5rem 6%;
  font-size: 0.7rem;
}
.btn-recrutement{
    display:flex;
    justify-content: center;
}
.btn-recrute{
    border-radius:60px !important;
    padding: 1rem 3rem !important;
        font-size: 1.3rem!important;

}
.recruInfos span {
  color: white;
}
.recruInfos > span {
  font-style: italic;
  letter-spacing: 2px;
  font-weight: 500;
}
.recruInfos > div {
  display: flex;
  justify-content: space-between;
  align-items: center;  
}
.recruInfos > div span {
  margin-right: 0.6rem;
}
.recruInfos > div img {
  width: 1.3rem;
}
nav {
  width: calc(100% - 12%);
  padding: 1.5rem 0;
  margin: 0 auto;
  border-bottom: 2px solid var(--hr);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav > div {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav img {
  width: 115px;
}
#menu {
  display: none;
}
nav > div > ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav > div > ul a {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: 1rem;
}
nav > div  > ul a:not(:last-child):hover {
  color: var(--mainRed);
  font-weight: 800;
}
nav > div  > ul a.active {
  color: var(--mainRed);
}
.btn {
  background: var(--mainRed);
  padding: 0.5rem 1.3rem;
  color: white;
  border-radius: 4px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
}
.btn:hover {
  background: var(--black);
  color: white;
}
p {
  font-size: 1rem;
  font-weight: 600;
}
form input {
  font-size: 0.85rem;
  background: var(--mainGray);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  outline: none;
  border: none;
  color: var(--blackTwo);
  font-weight: 700;
}
form input:focus {
  background: var(--focusGray);
}
input::placeholder {
  font-size: 0.85rem;
  color: var(--placeholderGray);
}
input::-moz-placeholder {
  font-size: 0.85rem;
  color: var(--placeholderGray);
}
input::-webkit-input-placeholder {
  font-size: 0.85rem;
  color: var(--placeholderGray);
}
#talentSection {
  width: 100%;
}
.talent {
  border-radius: 0.8rem;
  width: 250px;
  background: var(--blackTwo);
  cursor: pointer;
}
.talentPic, .talentInfos {
  width: 100%;
}
.talentPic {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.8rem;
  overflow: hidden;
  height: 240px;
}
.talentPic img {
  width: 100%;
  height: 100%;
  transition: all linear 0.3s;
}
.talent:hover h3, .talent:hover h4 {
  text-decoration: underline;
}
.talent:hover .talentPic img {
  transform: scale(125%);
}
.talentInfos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
}
.talentInfos h3 {
  color: var(--fontGray);
  font-size: 1rem;
}
.talentInfos h4 {
  color: var(--mainRed);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.talentInfos .bailleur {
  color: white;
  font-size: 0.8rem;
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.talentInfos .talentForm {
  color: white;
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 0.3rem;
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#talentprofile {
  display: block;
  width: 100%;
}
#banniere {
  width: 100%;
  padding: 1.5rem 6%;
  background: var(--mainGray);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}
#banniere .pp {
  width: 200px;
  height: 200px;
  border: 4px solid var(--mainRed);
  margin-right: 1.5rem;
}
.pp {
  border-radius: 50%;
}
.pp img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
#banniere h1 {
  color: var(--black);
  font-weight: 900;
  font-size: 2.4rem;
}
#banniere h2 {
  color: var(--mainRed);
  font-size: 1.5rem;
  font-weight: 900;
}
#banniere .groupe8 {
  width: 1.5em;
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
}
.modif {
  width: 1.7em;
  height: 1.7em;
  border: 2px solid var(--black);
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 900;
  cursor: pointer;
}
.modif img {
  width: 1em;
}
#banniere .modif {
  position: absolute;
  right: 6%;
  top: 1rem;
}
#profilebio {
  width: 100%;
  padding: 1em 6%;
}
#portfolio {
    width: 100%;
    display: flex
;
    align-items: flex-start;
}
#portfolio h3 {
  margin-right: 1em;
}

#portfolio p{
    margin-top: 0.1em;
}
#bio {
  width: 100%;
  display: flex;
  align-items: flex-start;
}
#profilebio h3 {
  font-size: 1.2rem;
  font-weight: 900;
}
#bio h3 {
  margin-right: 1em;
}
#bio p {
  width: 100%;
}
#cv {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 2em 0 3em
}
#cv > div {
  width: 49%
}
#cv > div > div {
  border-radius: 0.7em;
  padding: 1.5em;
  background: var(--mainGray);
  margin-bottom: 1em;
}
#cvComp > div:first-child,
#cvForm > div:first-child, 
#certif > div:first-child, 
#cvExp > div:first-child {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#cvComp > div:first-child > div {
  display: flex;
  align-items: center;
  column-gap: 5px;
}
#compList {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.5em;
}
.compBtn {
  color: var(--fontGray);
  background: var(--mainRed);
  border-radius: 2em;
  font-size: 0.9rem;
  padding: 0.5em 1.2em;
  margin-right: 0.3em;
}
#cvExp .modif, #cvForm .modif, #certif .modif {
  font-weight: 900;
}
.expItem, .formItem, .certifItem {
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding-bottom: 1em;
  margin: 1em 0;
  border-bottom: 1px solid var(--fontGray);
}
.expItem > span, 
.formItem > span, 
.certifItem > span {
  font-size: 1em;
  border-radius: 2em;
  padding: 0.4em 0.8em;
  margin-right: 0.5em;
  color: white;
}
.expItem > span, 
.formItem > span {
  background: var(--mainRed);
}
.certifItem > span {
  background: var(--black);
}
.expItem > div, 
.formItem > div, 
.certifItem > div  {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.expItem > div > div:nth-child(2),
.formItem > div > div:nth-child(2),
.certifItem > div > div:nth-child(2) {
  display: flex;
  align-items: center;
  column-gap: 0.3em;
}
.expItem h4, 
.formItem h4, 
.certifItem h4 {
  font-weight: 800;
}
.expItem p, 
.formItem p, 
.certifItem p {
  font-weight: 600;
}
.expItem p:first-of-type span {
  font-style: italic;
  font-weight: 700;
}
.expItem p:nth-of-type(2) span {
  font-weight: 900;
}
#autretalents h5 {
  font-weight: 900;
  font-size: 1em;
  margin-bottom: 1em;
}
#autretalents > div {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-right: 1em;
  gap: 1.5em;
  overflow-x: auto;
}
#autretalents > div .talent {
  flex: 0 0 250px;
}
#param {
  display: none;
  max-width: 550px;
  min-width: 270px;
  margin: 2em auto;
}
#param h1 {
  font-size: 2.1em;
  font-weight: 900;
}
#param > p {
  margin-bottom: 1em;
}
#param form {
  width: 100%;
  display:flex;
  flex-direction: column;
}
#param form input {
  margin-bottom: 0.6em;
}
#param form > div {
  margin-top: 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
#image-preview {
  display: block;
  width: 50%;
  margin-top: 0;
}
#image-preview > img {
  width: 100%;    
}
#param button {
  display: block;
  width: 30%;
  min-width: 175px;
  font-size: 0.8em;
  transition: all 0.3s ease-out;
}
#param button:hover {
  transform: scale(90%);
  font-weight: 700;
}
#param button.supp {
  background: var(--black);
  color: white;
}
footer {
  width: 100%;
  background: var(--blackTwo);
  padding: 0.6rem 6%;
  display: flex;
  align-items: center;
  margin-top: 5rem;
}
footer img {
  width: 1.2rem;
  margin-right: 0.5rem;
}
footer #copyright {
  color: white;
  font-weight: 400;
}
#copyright {
  font-size: 0.8rem;
}
#copyright strong {
  color: var(--mainRed);
}
#copyright span:last-child {
  font-style: italic;
}
#main > img {
  width: 1.5rem;
  position: absolute;
  top: 50%;
  right: 3%;
  transform: translate(50%,-50%);
}
#alertbox {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background: var(--softblack);
  z-index: 7;
  overflow: hidden;
}
#alertbox > div {
  background: white;
  border-radius: 10px;
  margin: 0 auto;
}
#delaccount {
  max-width: 450px;
  min-width: 250px;
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.whitecross {
  width: 1em;
  position: absolute;
  top: -2em;
  right: 0;
  cursor: pointer;
}
.redcross {
  width: 2.2em;
}
.blackcross {
  width: 20px;
  cursor: pointer;
}
.blackcross:hover {
  transform: scale(120%);
}
#delaccount h5, #suppr h5 {
  color: var(--mainRed);
  font-size: 1.6em;
  font-weight: 900;
}
#delaccount p {
  text-align: center;
  font-size: 0.9em;
}
#delaccount span {
  font-weight: 900;
}
#delaccount > div {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3em;
}
#delaccount .btn {
  display: inline-block;
  width: 30%;
  text-align: center;
}
#delaccount .btn:first-of-type, #suppr .btn:first-of-type {
  background: var(--black);
}
#modifNomFonction , 
#suppr , 
#editBio ,
#addComp,
#addForm,  
#modifForm , 
#addExp , 
#modifExp ,
#addCertif , 
#modifCertif {
  /*width: min(500px, 100%);*/
}
#updateComp {
  min-width: 250px;
  max-width: 600px;
}
#modifNomFonction > div:first-of-type, 
#suppr > div:first-of-type,
#addComp > div:first-of-type,
#updateComp > div:first-of-type,  
#editBio > div:first-of-type, 
#modifForm > div:first-of-type,
#addForm > div:first-of-type, 
#addExp > div:first-of-type, 
#modifExp > div:first-of-type,
#addCertif > div:first-of-type, 
#modifCertif > div:first-of-type {
  width: 100%;
  display: flex;
  justify-content: space-between;
  /*align-items: center;*/
  padding: 1em 1.5em;
  border-bottom: 1px solid var(--fontGray);
}
#suppr > div:nth-of-type(2) {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em 1.5em;
}
#suppr > div:last-of-type {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 1em 1.5em;
}
#modifNomFonction form,
#addComp form ,
#updateComp section,   
#editBio form, 
#modifForm form,
#addForm form, 
#addExp form, 
#modifExp form,
#addCertif form, 
#modifCertif form {
  width: 100%;
  padding: 1em 1.5em 2em;
  display: flex;
  flex-direction: column;
}
#updateComp section > div {
  width: 100%;
  display: flex;
  align-items: center; 
  flex-wrap: wrap;
  margin-bottom: 1.5em;
  column-gap: 5%;
}
#updateComp p {
  font-size: 0.85rem;
  margin-left: 0.4em;
}
#updateComp .delComp {
  width: max(30%, 150px);
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
}
#modifNomFonction form input,
#addComp form input,  
#editBio form input, 
#modifForm form input,
#addForm form input, 
#addExp form input, 
#modifExp form input,
#addCertif form input, 
#modifCertif form input {
  margin-bottom: 0.5em;
}
form textarea, form select {
  margin-bottom: 0.5em;
}
form span {
  font-weight: 700;
  font-size: 0.85em;
}
#modifNomFonction form button,
#editBio form button,
#addComp form button,
#updateComp section button,
#addForm form button, 
#modifForm form button, 
#addExp form button, 
#modifExp form button,
#addCertif form button,
#modifCertif form button{
  align-self: flex-end;
}
form select, form textarea {
  background: var(--mainGray);
  border: none;
  outline: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.5em;
  font-weight: 700;
}
form textarea {
  height: 100px;
}
form > div {
  width: 100%;
  display: flex;
  align-items: center;
  column-gap: 0.5em;
}
form select {
  width: 50%;
}
label[for=state] {
  margin-bottom: 0.8em;
  display: flex;
  align-items: center;
}
.customCheckbox {
  display: inline-block;
  position: relative;
}
input[type=checkbox], .checkmark {
  width: 15px;
  height: 15px;
}
input[type=checkbox] {
  opacity: 0;
  display: inline-block;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}
.checkmark {
  border: 2px solid var(--mainRed);
  display: inline-block;
  position: relative;
  border-radius: 3px;
  margin: 4px 0.5em 0 0;
}
.checkmark::after {
  content: "";
  display: none;
  width: 3px;
  height: 7px;
  border: solid var(--mainRed);
  border-width: 0 2px 2px 0;
  position: absolute;
  left: 3px;
  top: 0;
  transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}
input[type=checkbox]:checked + .checkmark::after {
  display: block;
  margin: 0;
}
#profile {
  display: flex;
  position: relative;
  align-items: center;
  margin-left: 1em;
  cursor: pointer;
}
#profile .pp {
  width: 50px;
  height: 50px;
  border: 2px solid var(--mainRed);
}
#profile > img {
  width: 0.6em;
  margin-left: 3px;
}
#iconblack {
  display: block;
}
#iconred {
  display: none;
}
#perso {
  display: none;
  position: absolute;
  width: 200px;
  padding: 0.5em 0.7em;
  bottom: 0;
  right: 0;
  transform: translateY(calc(100% + 1em));
  background: white;
  border-radius: 5px;
  box-shadow: 0 3px 12px var(--black);
  z-index: 7;
}
#perso li {
  background: var(--softGray);
  padding: 0.5em 0.8em;
  color: var(--black);
  font-size: 0.8em;
  font-weight: 700;
  margin-bottom: 0.4em;
  border-radius: 3px;
}
#perso > li:last-child {
  margin: 0;
}
#perso li:hover {
  background: var(--mainRed);
  color: white;
}

/* Code CSS à ajouter dans le fichier cvstyle.css */

.disponibilite {
    margin-top: 10px;
}

.disponibilite-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Styles pour chaque type de disponibilité */
.disponibilite {
    margin-top: 8px;
}

.disponibilite-tag.disponible {
    background-color: #4CAF50;
    color: white;
}

.disponibilite-tag.freelance {
    background-color: #2196F3;
    color: white;
}

.disponibilite-tag.en-poste {
    background-color: #FF9800;
    color: white;
}

.disponibilite-tag.en-recherche {
    background-color: #9C27B0;
    color: white;
}

.disponibilite-tag.disponible-dans-3-mois {
    background-color: #00BCD4;
    color: white;
}

.disponibilite-tag.non-disponible {
    background-color: #F44336;
    color: white;
}

.disponibilite-tag.non-renseigne {
    background-color: #9E9E9E;
    color: white;
}

/* Style pour le bouton de modification de disponibilité */
#modifDisponibiliteBtn {
    cursor: pointer;
}

/* Style pour la fenêtre modale de disponibilité */
#modifDisponibilite form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#modifDisponibilite select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Nunito Sans', sans-serif;
}

#modifDisponibilite label {
    font-weight: 600;
    margin-bottom: -10px;
}

/* Style spécifique pour l'icône de modification de disponibilité */
#modifDisponibiliteBtn {
  display: block !important; /* Force l'affichage de l'icône */
  visibility: visible !important; /* S'assure que l'icône est visible */
  opacity: 1 !important; /* S'assure que l'icône est complètement opaque */
  cursor: pointer; /* Change le curseur en pointeur pour indiquer qu'il est cliquable */
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

#modifDisponibiliteBtn:hover {
  transform: scale(1.2); /* Effet d'agrandissement au survol */
}

/* S'assurer que le conteneur de l'icône est également visible */
.disponibilite .modif {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Style pour le modal de disponibilité pour s'assurer qu'il est au-dessus des autres */
#modifDisponibilite {
  z-index: 1010 !important; /* Plus élevé que les autres modals */
  position: relative;
}

/* Correction du style pour le fond du modal */
#alertbox {
  z-index: 1000;
}


@media screen and (min-width:1200px) {
  #navdiv {
    display: flex;
    flex-direction: row;
  }
  #searchTalent form {
    width: 60%;
  }
  #searchTalent p {
    width: 50%;
  }
  #homeDesc {
    display: flex;
    align-items: flex-start;
  }
  #homeDesc article, #homeDesc aside {
    display: flex;
    width: 50%;
  }
  #homeDesc article {
    align-items: flex-start;
    padding-right: 2rem;
  }
  aside > div {
    max-width: 270px;
  }
  #homeDesc article .btn {
    margin-bottom: 0;
  }
  #talentHome {
    display: flex;
    align-items: flex-start;
    padding: 0 6%;
    gap: 1rem;
  }
  #talentList {
    width: 70%;
  }
  #metier {
    width: 30%;
  }
}


@media screen and (min-width: 600px) and (max-width: 1199px) {
  #navdiv {
    display: flex;
    flex-direction: row;
  }
  #talentHome {
    display: block;
    padding: 0 2.5%;
  }
  #talentList {
    width: 100%;
  }
  #metier {
    margin-top: 3em;
  }
  #metier > div {
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  #metier > div > div {
    width: 50%;
    min-width: 250px;
  }
  #profilebio {
    padding: 1em; 
  }
  
  #comain {
    height: 100vh;
    max-height: 1024px;
  }
  #comain #copyright {
    left: 61%;
    max-width: 275px;
  }
  .mob {
    display: none;
    
  }
}


@media screen and (max-width: 600px) {
  nav {
    position: relative;
  }
  #menu {
    display: block;
    width: 1.1em;
    cursor: pointer;
    position: relative;
  }
  #navdiv {
    display: none;
    position: absolute;
    width: 100%;
    flex-direction: column;
    align-items: center;
    right: 0;
    top: calc(100% + 1em);
    background: rgba(218, 216, 216, 0.192);
    padding: 1em;
    z-index: 4;
    backdrop-filter: blur(15px);
  }
  nav > div > ul {
    flex-direction: column;
  }
  nav > div > ul a:not(:last-child) {
    margin-bottom: 1em;
  }
  #perso {
    bottom: 0;
    right: 50%;
    transform: translate(calc(50% - 0.4em) ,calc(100% + 1em));
  }
  #homeDesc aside {
    flex-direction: column;
  }
  #homeDesc aside > div {
    width: 100%;
  }
  #searchtalent {
    padding: 0 1.5em;
  }
  #banniere h1, 
  #banniere h2{
    text-align: center;
  }
  #talentHome {
    display: block;
    padding: 0 1.5em;
  }
  #talentList {
    width: 100%;
    justify-content: space-evenly;
  }
  #metier {
    margin-top: 3em;
  }
  #pages {
    row-gap: 1em;
  }
  .groupe8 {
    display: none;
  }
  #cv > div {
    width: 100%;
  }
  .formItem > div, 
  .expItem > div, 
  .certifItem > div {
    margin-left: 1em;
  }
  #param {
    padding: 1em;
  }
  #param form > div {
    justify-content: center;
  }
  span.mob {
    margin-top: 1em;
    cursor: pointer;
    color: white;
    background: var(--black);
    padding: 0.5em 1em;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 400;
  }
  span.mob:hover {
    transform: scale(90%);
  }
}