/* =========================================================
   PAGE CANDIDATER
========================================================= */

.page-candidater{
  width: 100%;
  overflow-x: hidden;
}

/* =========================================================
   TYPO — PAGE CANDIDATER
========================================================= */

.candidater-titre-section{
  margin: 0;
  font-family: var(--font-titre);
  font-weight: var(--font-weight-titre);
  letter-spacing: var(--tracking-titre);
  text-transform: uppercase;
  line-height: 1;
}

.candidater-hero-titre{
  margin: 0;
  font-family: var(--font-titre);
  font-weight: var(--font-weight-titre);
  letter-spacing: var(--tracking-titre);
  text-transform: uppercase;
  line-height: 1;
  color: var(--blanc);
}

.candidater-hero-session{
  margin: 2vh 0 0 0;
  font-family: var(--font-titre);
  font-weight: var(--font-weight-titre);
  letter-spacing: var(--tracking-titre);
  text-transform: uppercase;
  line-height: 1;
  color: var(--blanc);
}

.candidater-hero-texte{
  margin: 0;
  font-family: var(--font-texte);
  font-weight: var(--font-weight-texte);
  line-height: 1.45;
  color: var(--blanc);
}

.candidater-propose-texte{
  margin: 3vh 0 0 0;
  max-width: 100%;
  font-family: var(--font-texte);
  font-weight: var(--font-weight-texte);
  line-height: 1.55;
}

.candidater-propose-bloc-titre{
  margin: 0;
  font-family: var(--font-titre);
  font-weight: var(--font-weight-titre);
  letter-spacing: var(--tracking-titre);
  text-transform: uppercase;
  line-height: 1.12;
}

.candidater-profils-texte{
  margin: 0;
  font-family: var(--font-titre);
  font-weight: var(--font-weight-titre);
  letter-spacing: var(--tracking-titre);
  text-transform: uppercase;
  line-height: 1.12;
}

.candidater-processus-texte{
  margin: 0;
  max-width: 85%;
  font-family: var(--font-texte);
  font-weight: var(--font-weight-texte);
  line-height: 1.55;
}

.candidater-processus-numero{
  font-family: var(--font-titre);
  font-weight: 700;
  letter-spacing: -.03em;
  text-transform: uppercase;
  font-size: clamp(4rem, 6vw, 6rem);
  line-height: .8;
}

.candidater-processus-intitule{
  font-family: var(--font-titre);
  font-weight: var(--font-weight-titre);
  letter-spacing: var(--tracking-rigid-titre);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 1.35vw, 1.5rem);
  line-height: .9;
}

@media (max-width: 480px){
  .candidater-titre-section{
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }

  .candidater-hero-titre{
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .candidater-hero-session{
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
}

/* =========================================================
   HERO
========================================================= */

.candidater-hero{
  width: 100%;
  padding: 3vh 0 10vh 0;
}

.candidater-hero-contenu{
  width: 100%;
  padding: 0 1%;
}

.candidater-hero-bloc-noir{
  width: 100%;
  background: rgba(0,0,0,0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5vh;
  text-align: center;
  padding: 5vh 8%;
}

@media (max-width: 1024px){
  .candidater-hero-bloc-noir{
    min-height: 38vh;
  }

  .candidater-hero-contenu{
    padding: 0 5%;
  }
}

@media (max-width: 768px){
  .candidater-hero{
    padding: 6vh 0 2vh 0;
  }

  .candidater-hero-bloc-noir{
    min-height: auto;
    padding: 8vh 10%;
  }

  .candidater-hero-texte br{
    display: none;
  }
}

/* =========================================================
   SECTION — CE QUE PROPOSE
========================================================= */

.candidater-propose{
  width: 100%;
  padding: 0 0 10vh 0;
}

.candidater-propose-contenu{
  width: 100%;
  padding: 0 15%;
}

.candidater-propose-grille{
  width: 100%;
  display: grid;
  grid-template-columns: 35% 55%;
  column-gap: 15%;
  align-items: start;
}

.candidater-propose-introduction{
  width: 100%;
}

.candidater-propose-blocs{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14%;
  row-gap: 5vh;
  padding-top: 1vh;
}

.candidater-propose-bloc{
  width: 100%;
}

.candidater-propose-picto{
  width: 16%;
  min-width: 3.2rem;
  margin-bottom: 1.6vh;
}

.candidater-propose-picto img{
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px){

  .candidater-propose-grille{
    grid-template-columns: 1fr;
    row-gap: 6vh;
  }

  .candidater-propose-blocs{
    padding-top: 0;
  }
}

@media (max-width: 768px){
  .candidater-propose{
    padding: 5vh 0 5vh 0;
  }

  .candidater-propose-contenu{
    padding: 0 10%;
  }

  .candidater-propose-blocs{
    row-gap: 4vh;
  }
}

/* =========================================================
   SECTION — PROFILS RECHERCHÉS
========================================================= */

.candidater-profils{
  width: 100%;
}

.candidater-profils-contenu{
  width: 90%;
  margin: 0 auto;
  padding: 0 20% 5% 20%;
}

.candidater-profils-entete{
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 2.4vh;
  border-bottom: 0.08rem solid rgba(0,0,0,0.55);
}

.candidater-profils-liste{
  width: 100%;
  padding-top: 3.5vh;
}

.candidater-profils-ligne{
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1vh;
}

.candidater-profils-picto{
  width: 1.8rem;
  height: auto;
  display: block;
  margin-top: 0.2rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px){
  .candidater-profils-contenu{
    width: 100%;
    margin: 0 auto;
    padding: 0 10% 5% 10%;
  }
}

@media (max-width: 768px){
  .candidater-profils-contenu{
    width: 100%;
    margin: 0 auto;
    padding: 5% 10% 10% 10%;
  }

  .candidater-profils-ligne{
    align-items: flex-start;
    gap: 0.9rem;
  }

  .candidater-profils-picto{
    width: 1.5rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
  }

  .candidater-profils-texte{
    font-size: clamp(1rem, 4.8vw, 1.3rem);
    line-height: 1.12;
  }
}


/* =========================================================
   SECTION — IMAGES
========================================================= */

.candidater-images-section{
  width: 100%;
  padding: 0 10%;
}

/* =========================================================
   DESKTOP
   - composition stable
   - moins sensible aux variations de fenêtre
========================================================= */

.candidater-profils-images{
  position: relative;
  width: 100%;
  height: clamp(28rem, 52vw, 44rem);
}

.candidater-profils-image{
  position: absolute;
  margin: 0;
  overflow: hidden;
}

.candidater-profils-image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* grand visuel gauche */
.candidater-profils-image-1{
  top: 0;
  left: 4%;
  width: 44%;
  aspect-ratio: 16 / 9;
}

/* visuel plus petit en haut à droite */
.candidater-profils-image-2{
  top: 14%;
  right: 2%;
  width: 34%;
  aspect-ratio: 16 / 9;
}

/* bandeau bas droite */
.candidater-profils-image-3{
  bottom: 10%;
  right: 12%;
  width: 60%;
  aspect-ratio: 16 / 4.8;
}

/* =========================================================
   TABLETTE
   - on garde une compo éditoriale
   - plus compacte
========================================================= */

@media (max-width: 1024px){
  .candidater-images-section{
    padding: 0 10%;
  }

  .candidater-profils-images{
    height: clamp(24rem, 60vw, 34rem);
  }

  .candidater-profils-image-1{
    left: 0;
    width: 48%;
  }

  .candidater-profils-image-2{
    top: 10%;
    right: 0;
    width: 38%;
  }

  .candidater-profils-image-3{
    right: 8%;
    width: 50%;
  }
}

/* =========================================================
   MOBILE
   - composition originale
   - 2 images en haut décalées
   - 1 bandeau large en bas
========================================================= */

@media (max-width: 768px){
  .candidater-images-section{
    padding: 0 10%;
  }

  .candidater-profils-images{
    position: relative;
    height: clamp(24rem, 95vw, 32rem);
  }

  .candidater-profils-image{
    position: absolute;
  }

  .candidater-profils-image-1{
    top: 0;
    left: 0;
    width: 58%;
    aspect-ratio: 4 / 5;
    z-index: 2;
  }

  .candidater-profils-image-2{
    top: 8%;
    right: 0;
    width: 34%;
    aspect-ratio: 3 / 4;
    z-index: 3;
  }

  .candidater-profils-image-3{
    bottom: 10%;
    left: 12%;
    width: 76%;
    aspect-ratio: 16 / 6;
    z-index: 1;
  }
}

/* =========================================================
   PETIT MOBILE
========================================================= */

@media (max-width: 480px){
  .candidater-images-section{
    padding: 0 8%;
  }

  .candidater-profils-images{
    height: clamp(22rem, 108vw, 30rem);
  }

  .candidater-profils-image-1{
    width: 60%;
  }

  .candidater-profils-image-2{
    width: 32%;
  }

  .candidater-profils-image-3{
    left: 10%;
    width: 80%;
    aspect-ratio: 16 / 6.5;
  }
}



/* =========================================================
   SECTION — FORMULAIRE
========================================================= */

.candidater-formulaire{
  width: 100%;
  padding: 10vh 0 5vh 0;
}

.candidater-formulaire-contenu{
  width: 100%;
  padding: 0 15%;
}

.candidater-formulaire-bloc{
  width: 100%;
  padding-top: 4vh;
}

/* ---------- structure fluent ---------- */

.candidater-formulaire .ff-el-group{
  margin-bottom: 2rem;
}

.candidater-formulaire .ff-el-group:last-child{
  margin-bottom: 0;
}

.candidater-formulaire .ff-el-form-help,
.candidater-formulaire .ff-help-block,
.candidater-formulaire .ff-el-tooltip,
.candidater-formulaire .ff-message-text,
.candidater-formulaire i[data-toggle="tooltip"],
.candidater-formulaire .ff-el-form-check .ff-el-form-help,
.candidater-formulaire .ff-el-input--label .ff-el-help-message{
  display: none !important;
}

/* ---------- labels ---------- */

.candidater-formulaire .ff-el-input--label label,
.candidater-formulaire .ff-el-form-check-label,
.candidater-formulaire label{
  align-items: center;
  gap: 0.35rem;
  letter-spacing: var(--tracking-titre);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  color: var(--noir);
}

.candidater-formulaire .ff-el-input--label .text-danger,
.candidater-formulaire .ff-el-input--label .required,
.candidater-formulaire .asterisk,
.candidater-formulaire .text-danger{
  color: #d84b43 !important;
  font-size: 1em !important;
  line-height: 1 !important;
  margin-left: 0.15rem;
}

/* ---------- champs ---------- */

.candidater-formulaire .ff-el-form-control,
.candidater-formulaire textarea,
.candidater-formulaire input[type="text"],
.candidater-formulaire input[type="email"],
.candidater-formulaire input[type="url"],
.candidater-formulaire input[type="tel"],
.candidater-formulaire input[type="number"]{
  width: 100%;
  background: transparent;
  border-radius: 0 !important;
  border: 1px solid black !important;
  box-shadow: none;
  padding: 1rem 1rem;
  font-family: var(--font-texte);
  font-weight: var(--font-weight-texte);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--noir);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.candidater-formulaire .ff-el-form-control:focus,
.candidater-formulaire textarea:focus,
.candidater-formulaire input[type="text"]:focus,
.candidater-formulaire input[type="email"]:focus,
.candidater-formulaire input[type="url"]:focus,
.candidater-formulaire input[type="tel"]:focus,
.candidater-formulaire input[type="number"]:focus{
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--noir);
  background: rgba(255,255,255,0.6);
}

.candidater-formulaire .ff-el-form-control::placeholder,
.candidater-formulaire textarea::placeholder,
.candidater-formulaire input::placeholder{
  color: rgba(0,0,0,0.60);
  font-family: var(--font-texte);
}

.ff-default .ff-el-form-control:focus{
  color: rgb(30, 30, 30) !important;
}

.candidater-formulaire textarea{
  min-height: 10rem;
  resize: vertical;
}

.candidater-formulaire textarea::-webkit-resizer{
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(0,0,0,0.45) 42% 58%, transparent 58% 100%);
}

/* =========================================================
   RADIOS / CHECKBOXES
   - compatible avec la structure Fluent Forms
========================================================= */

.candidater-formulaire .ff-el-form-check-group{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin-top: 0.3rem;
}

.candidater-formulaire .ff-el-form-check{
  position: relative;
  margin: 0;
  width: 100%;
}

/* le label est le vrai bloc cliquable */
.candidater-formulaire .ff-el-form-check-label{
  position: relative;
  width: 100%;
  min-height: 3.4rem;
  margin: 0;
  padding: 0.95rem 1rem 0.95rem 3.5rem;
  display: flex;
  align-items: center;

  border: 0.08rem solid rgba(0,0,0,0.55);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  user-select: none;

  font-family: var(--font-texte) !important;
  font-weight: var(--font-weight-texte) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 1rem !important;
  line-height: 1.35;
  color: var(--noir) !important;
  text-transform: none;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

/* Texte tapé → normal */
.candidater-formulaire input,
.candidater-formulaire textarea{
  text-transform: none !important;
}

/* Placeholder → MAJUSCULE */
.candidater-formulaire input::placeholder,
.candidater-formulaire textarea::placeholder{
  text-transform: uppercase;
  color: black !important;
}
/* on masque l’input natif */
.candidater-formulaire .ff-el-form-check-label input[type="radio"],
.candidater-formulaire .ff-el-form-check-label input[type="checkbox"]{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 3;
}

/* texte */
.candidater-formulaire .ff-el-form-check-label span{
  position: relative;
  z-index: 2;
  display: block;
}

/* carré custom à gauche */
.candidater-formulaire .ff-el-form-check-label::before{
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  border: 0.08rem solid rgba(0,0,0,0.75);
  background: transparent;
  transform: translateY(-50%);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

/* coche */
.candidater-formulaire .ff-el-form-check-label::after{
  content: "";
  position: absolute;
  left: 1.33rem;
  top: 50%;
  width: 0.42rem;
  height: 0.74rem;
  border-right: 0.12rem solid var(--blanc);
  border-bottom: 0.12rem solid var(--blanc);
  transform: translateY(-58%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* hover */
.candidater-formulaire .ff-el-form-check:hover .ff-el-form-check-label{
  background: rgba(0,0,0,0.03);
}

/* état actif Fluent Forms */
.candidater-formulaire .ff-el-form-check.ff_item_selected .ff-el-form-check-label{
  background: var(--noir);
  border-color: var(--noir);
  color: var(--blanc) !important;
}

.candidater-formulaire .ff-el-form-check.ff_item_selected .ff-el-form-check-label::before{
  border-color: var(--blanc);
  background: transparent;
}

.candidater-formulaire .ff-el-form-check.ff_item_selected .ff-el-form-check-label::after{
  opacity: 1;
}

/* sécurité complémentaire si la classe Fluent n'arrive pas */
.candidater-formulaire .ff-el-form-check-label input[type="radio"]:checked ~ span,
.candidater-formulaire .ff-el-form-check-label input[type="checkbox"]:checked ~ span{
  color: var(--blanc);
}

/* cas où le label reçoit aussi la classe active via JS/plugin */
.candidater-formulaire .ff-el-form-check-label.active,
.candidater-formulaire .ff-el-form-check-label.is-active{
  background: var(--noir);
  border-color: var(--noir);
  color: var(--blanc) !important;
}

.candidater-formulaire .ff-el-form-check-label.active::before,
.candidater-formulaire .ff-el-form-check-label.is-active::before{
  border-color: var(--blanc);
}

.candidater-formulaire .ff-el-form-check-label.active::after,
.candidater-formulaire .ff-el-form-check-label.is-active::after{
  opacity: 1;
}

/* colonnes spécifiques si besoin */
.candidater-formulaire .candidature-champ-besoins .ff-el-form-check-group,
.candidater-formulaire [class*="candidature-champ-besoins"] .ff-el-form-check-group,
.candidater-formulaire .candidature-champ-nombre-membres .ff-el-form-check-group,
.candidater-formulaire .candidature-champ-statut-membres .ff-el-form-check-group,
.candidater-formulaire .candidature-champ-sacem .ff-el-form-check-group,
.candidater-formulaire .candidature-champ-intermittents .ff-el-form-check-group,
.candidater-formulaire .candidature-champ-anciennete .ff-el-form-check-group,
.candidater-formulaire .candidature-champ-experience .ff-el-form-check-group{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1024px){
  .candidater-formulaire .ff-el-form-check-group{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px){
  .candidater-formulaire .ff-el-form-check-group{
    grid-template-columns: 1fr;
  }

  .candidater-formulaire .ff-el-form-check-label{
    min-height: 3.1rem;
    padding: 0.85rem 0.9rem 0.85rem 3rem;
  }
}

/* ---------- soumissions ---------- */

.candidater-formulaire .ff_submit_btn_wrapper,
.candidater-formulaire .ff-btn-submit-wrapper{
  margin-top: 1.6rem;
}

.candidater-formulaire .ff-btn.ff-btn-submit,
.candidater-formulaire .ff-btn-submit,
.candidater-formulaire .candidature-bouton-submit{
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  border: 0.08rem solid var(--noir) !important;
  background: transparent !important;
  padding: 1rem 1.3rem !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: var(--noir) !important;
  cursor: pointer;

  font-family: var(--font-titre) !important;
  font-weight: var(--font-weight-titre) !important;
  letter-spacing: var(--tracking-titre) !important;
  text-transform: uppercase;
  line-height: 1;

  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.candidater-formulaire .ff-btn-submit::before{
  content: "";
  display: inline-block;
  width: 1.2rem;
  height: 0.12rem;
  background: var(--noir);
  transform-origin: center;
  transition: transform 0.35s ease, background-color 0.25s ease;
}

.candidater-formulaire .ff-btn-submit:hover{
  background: var(--noir) !important;
  color: var(--blanc) !important;
  opacity: 1;
}

.candidater-formulaire .ff-btn-submit:hover::before{
  background: var(--blanc);
  transform: rotate(45deg);
}

.candidater-formulaire .ff-btn-submit:hover::after{
  border-color: var(--blanc);
}

/* ---------- erreurs ---------- */

.candidater-formulaire .error,
.candidater-formulaire .ff-el-is-error .text-danger,
.candidater-formulaire .ff-error,
.candidater-formulaire .ff-el-form-error,
.candidater-formulaire .ff-message-error,
.candidater-formulaire .error.text-danger{
  font-family: var(--font-titre) !important;
  font-weight: var(--font-weight-titre) !important;
  letter-spacing: var(--tracking-titre) !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  line-height: 1.2 !important;
  color: #671010 !important;
}

.candidater-formulaire .ff-el-is-error .ff-el-form-control{
  border: 0.08rem solid #8d1212 !important;
}

@media (max-width: 1024px){

  .candidater-formulaire{
    padding: 5vh 0 5vh 0;
  }

  .candidater-formulaire-contenu{
    padding: 0 10%;
  }

  .candidater-formulaire .ff-el-form-check-group{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px){

  .candidater-formulaire .ff-el-form-check-group{
    grid-template-columns: 1fr;
  }

  .candidater-formulaire .ff-el-form-check label{
    min-height: 3.1rem;
    padding: 0.85rem 0.9rem 0.85rem 3rem;
  }
}

@media (max-width: 768px){

  .candidater-formulaire-contenu{
    padding: 0 10%;
  }

  .candidater-formulaire .ff_submit_btn_wrapper,
  .candidater-formulaire .ff-btn-submit-wrapper,
  .candidater-formulaire .candidature-champ-submit{
    width: 100%;
    max-width: 100%;
  }

  .candidater-formulaire .ff-btn.ff-btn-submit,
  .candidater-formulaire .ff-btn-submit,
  .candidater-formulaire .candidature-bouton-submit{
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 480px){

  .candidater-formulaire .ff-btn-submit{
    font-size: 1.2rem;
    padding: 0.9rem 1rem !important;
  }
}

/* =========================================================
   SECTION — PROCESSUS
========================================================= */

.candidater-processus{
  width: 100%;
  padding: 3vh 0 15vh 0;
}

.candidater-processus-contenu{
  width: 100%;
  padding: 0 15%;
}

.candidater-processus-grille{
  display: grid;
  grid-template-columns: 42% 42%;
  column-gap: 5%;
  align-items: start;
  margin: 0 0 0 10%;
}

.candidater-processus-titre{
  letter-spacing: var(--tracking-rigid-titre);
  text-transform: uppercase;
  line-height: .95;
  margin-bottom: 5vh;
}

.candidater-processus-droite{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vh 4vw;
}

.candidater-processus-etape{
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

@media (max-width: 1024px){
  .candidater-processus-contenu{
    padding: 0 10%;
  }

  .candidater-processus-grille{
    grid-template-columns: 1fr 1fr;
    column-gap: 10%;
    margin: 0;
  }

  .candidater-processus-texte{
    max-width: 100%;
  }
}

@media (max-width: 768px){

  .candidater-processus-grille{
    grid-template-columns: 1fr;
    row-gap: 6vh;
  }

  .candidater-processus-etape{
    margin-bottom: 4vh;
  }
}

/* supprime le check */
.candidater-formulaire .ff-el-form-check label::after{
  display: none !important;
}

/* garde la case mais clean */
.candidater-formulaire .ff-el-form-check label::before{
  background: transparent;
  border: 0.08rem solid rgba(0,0,0,0.6);
}

/* état actif */
.candidater-formulaire .ff-el-form-check input:checked + label{
  background: #000;
  color: #fff;
}

/* case blanche quand actif */
.candidater-formulaire .ff-el-form-check input:checked + label::before{
  background: #fff;
  border-color: #fff;
}

.candidater-formulaire .ff-el-form-check.ff_item_selected .ff-el-form-check-label::before {
  border-color: var(--blanc);
  background: #fff;
}

.candidater-formulaire .ff-el-form-check label::before {
  background: #000;
}