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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
}
.section__header{
    color:var(--black);
}

#searchDescription{
    margin-bottom:2rem;
    color:var(--black);
}
#main {
  position: relative;
  width: 100%;
  /*max-width: 1440px;*/
  margin: 0 auto;
}
ul {
  list-style-type: none;
}
a {
  text-decoration: none;
  color:var(--black);
}
header {
  width: 100%;
}
.recruInfos {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--black); 
  padding: 0.5rem 6%;
  font-size: 0.7rem;
}
.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;
}
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);
}
#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;
}
.pp {
  border-radius: 50%;
}
.pp img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
#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;
}
.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;
}
#indexSection {
  width: 100%;
  padding: 0 6%;
}
#searchTalent {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.3rem 0 4rem;
}
#searchTalent h1 {
  text-align: center;
  color: var(--black);
  font-size: 2.2rem;
  font-weight: 900;
}
p {
  font-size: 1rem;
  font-weight: 600;
}
#searchTalent p {
  text-align: center;
  color: var(--black);
  margin-bottom: 0.9rem;
}
#searchTalent form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
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);
}
#searchTalent form input {
  width: 100%;
}
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%;
}
#talentHome {
  width: 100%;
}
.talentWork {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* nombre de lignes visibles */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.talentNom {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* nombre de lignes visibles */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.talent {
     min-height: 40px;
    display: flex;
  flex-direction: column;
  justify-content: space-between;
  /*height: 350px;*/
    /*height: 100%;*/ /* étire la carte sur toute la cellule */
  border-radius: 0.8rem;
  width: 250px; /*max(32%, 250px);*/
  background: var(--blackTwo);
  cursor: pointer;
}
.talentPic, .talentInfos {
  width: 100%;
}
.talentPic {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-radius: 0.8rem;
  overflow: hidden;
  aspect-ratio: 3/2;
  background-color: #f5f5f5;
}

.talentPic img {
  width: 100%;
  /*height: 100%;*/
  object-fit: cover;
  object-position: top;
  /* Réduction de qualité */
  image-rendering: high-quality;

}

/* Pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .talentPic img {
    filter: blur(0.7px);
  }
}
.talent:hover h3, .talent:hover h4 {
  text-decoration: underline;
}
.talent:hover .talentPic img {
  transform: scale(125%);
}
.talentInfos {
  flex-grow: 1;
  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: var(--fontGray);
  font-size: 0.8rem;
}
.talentInfos .talentForm {
  color: var(--fontGray);
  font-size: 0.8rem;
  font-style: italic;
  margin-bottom: 0.3rem;
}
#metier {
    width: 80%;
  border-radius: 0.7rem;
  background: var(--mainGray);
  padding: 2rem 1rem;
}
#metier h2 {
  color: var(--black);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
#metier > div > div {
  margin-bottom: 1.5rem;
}
#metier > div h3 {
  color: var(--mainRed);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
/*#metier > div:first-of-type ul li:first-child {*/
/*  font-weight: 700;*/
/*}*/
#metier li {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--black);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.mcircle {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--mainRed);
  border-radius: 50%;
  position: relative;
}
#metier li .mcircle {
  margin-right: 6px;
}
.mcheck {
/*display:none;*/
  width: 5px;
  height: 9px;
  background: transparent;
  border-width: 0 2px 2px 0;
  border-color: var(--mainRed);
  border-style: solid;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -3px;
  margin-top: -5px;
  transform: rotate(45deg);
}
#talentSection > ul {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 3rem 0;
  padding: 0 6%;
  flex-wrap: wrap;
}
#talentSection > ul li {
  font-size: 1rem;
  font-weight: 800;
  margin-right: 0.4rem;
  border-radius: 1.7rem;
  cursor: pointer;
}
#talentSection > ul li:first-child {
  color: var(--fontGray);
  background: var(--mainRed);
  /*padding: 0.5rem 0.2rem;*/

}
#talentSection > ul li:not(:first-child) {
  background: var(--mainGray);
  color: var(--black);
  border: 1px solid var(--black);
/*padding: 0.5rem 0.2rem;*/

}
#talentSection > ul li:not(:first-child) {
    background: var(--mainGray);
    color: var(--black);
    border: 1px solid var(--black);
    /*padding: 0.5rem 0.2rem;*/
}
#talentprofile {
  display: none;
  width: 100%;
}
#autretalents {
  width: 100%;
  padding: 0.5rem 6%;    
}
#autretalents h5 {
  font-weight: 900;
  font-size: 1em;
  margin-bottom: 1em;
}
#autretalents > div {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1em;
  overflow-x: scroll;
}
#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);*/
  background:#00313C;
  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%);
}



@media screen and (min-width:1200px) {
  #navdiv {
    display: flex;
    flex-direction: row;
  }
  #searchTalent form {
    width: 60%;
  }
  #searchTalent p {
    width: 50%;
  }
  #talentHome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 6%;
    /*gap: 1rem;*/
  }
  #talentList {
       align-items: stretch;
    width: 74%;
    display: grid;
    grid-template-columns: repeat(3, 250px);
    gap: 1em;
  }
  #metier {
    width: 25%;
  }
  .mob {
    display: none;
  }
}


@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%;
    padding: 0 6%;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
  }
  #talentList .talent {
    flex: 0 0 250px;
  }
  #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; 
  }

  .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));
  }
  #searchtalent {
    padding: 0 1.5em;
  }
  #banniere h1, 
  #banniere h2 {
    text-align: center;
  }
  #talentHome {
    display: block;
    padding: 0 1.5em;
  }
  #talentList {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
  }
  #talentList .talent {
    flex: 0 0 250px;
  }
  #metier {
    margin-top: 3em;
  }
  /*#pages {*/
  /*  row-gap: 1em;*/
  /*}*/
  /* Style de base */
/*.pagination {*/
/*    display: flex;*/
/*    list-style: none;*/
/*    padding: 0;*/
/*    gap: 5px;*/
/*}*/

.page-item .page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #00313C;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

/* Style au survol (sauf page active) */
.page-item:not(.active) .page-link:hover {
    background: #f0f0f0;
}

/* Style UNIQUEMENT pour la page active */
.page-item-number .active{
    background-color: #00313C ;
    color: white;
    border-color: #00313C;
    cursor: default;
}

/* Les boutons Précédent/Suivant ne sont pas affectés */
/*.page-item:first-child .page-link,*/
/*.page-item:last-child .page-link {*/
/*    background: white;*/
/*    color: #00313C;*/
/*}*/
  .groupe8 {
    display: none;
  }
  #cv > div {
    width: 100%;
  }

  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%);
  }

}