/* =========================================
   ALERION – Single Offre / Page Carrières
   Design by Eliott & Markus
   ========================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.single-offre .wpcf7 form .wpcf7-response-output {

position: relative;
color: white;;
bottom: 0;

}


/* Structure de la section de partage */
.job-share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: sans-serif; /* À adapter à votre police */
  font-size: 16px;
  color: #494FE2; /* Couleur violet/bleu de votre SVG original */
}

.share-icon {
  display: flex;
  align-items: center;
}

.share-title {
  color: #494FE2;
}

.share-separator {
  color: #ccc;
  margin: 0 4px;
}

/* Style des liens "Linkedin" et "Copier lien" */
.job-share .share-link {
  color: #0d233a; /* Couleur du texte foncé (ajustable) */
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
  outline: none !important;
  text-decoration: underline !important;
}

/* Effet au survol */
.job-share .share-link:hover {
  color: #494FE2;
}



.lang-switcher {
  display: none;
}

.single-offre .file-label {

 margin-bottom: 0;   

}

:root {
  --dark:    #041846;
  --accent:  #494FE2;
  --teal:    #29C3C7;
  --pink:    #FFB9BB;
  --red:     #FF4E4D;
  --bg:      #F9F9F9;
  --white:   #FFFFFF;

  --outer-margin: 137px;
  --inner-pad:    120px;
  --page-max:     1440px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg);
  color: var(--dark);
  min-width: 1024px;
}

/* ---- HEADER ---------------------------------------- */

.header {
  width: 100%;
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(4, 24, 70, 0.06);
}

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: 156px;
  padding: 0 var(--outer-margin);
  display: flex;
  align-items: center;
  gap: 0;
}

/* LinkedIn social button (far left) */
.header-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--white);
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}
.header-social:hover { opacity: 0.7; }

/* Nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.header-nav--left {
  margin-left: 36px;
  margin-right: auto;
}

.header-nav--right {
  margin-left: auto;
  margin-right: 24px;
  text-align: right;
}

.header-nav a,
.header-nav--left a,
.header-nav--right a {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--accent); }

.nav-esg {
  max-width: 115px;
  white-space: normal !important;
  text-align: right;
  line-height: 1.4;
}

/* Logo (center) */
.header-logo {
  display: block;
  flex-shrink: 0;
  width: 148px;
  transition: opacity 0.2s;
}
.header-logo:hover { opacity: 0.8; }
.header-logo svg { display: block; }

/* Icon buttons (search + hamburger) */
.header-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.icon-btn:hover { background: #EDEDED; }

/* ---- MAIN PAGE WRAPPER ----------------------------- */

.page-wrapper {
  max-width: var(--page-max);
  margin: 0 auto;
  /* padding: 30px var(--outer-margin) 0; */
  padding : 30px 137px 0 137px;
}

/* ---- BREADCRUMB ------------------------------------ */

.single-offre .breadcrumb {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  background: none;
  padding-left: 0 ;
}

.breadcrumb-back {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.breadcrumb-back:hover { opacity: 0.7; }
.breadcrumb-back svg { display: block; }

.breadcrumb-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: none;
}

/* ---- JOB CARD -------------------------------------- */

.job-card {
  background: var(--white);
  border-radius: 2px;
}

.job-card-inner {
  padding: 80px var(--inner-pad) 80px;
}

/* Job header row: title + button */
.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(4, 24, 70, 0.1);
  padding-bottom: 25px;
}

.job-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.btn-candidater {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  height: 40px;
  padding: 0 20px;
  background-color: var(--teal);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  margin-top: 7px;
  border-radius: 50px;
}
.btn-candidater:hover { background-color: #23adb0; color: var(--white); }

/* Job meta: location + date */
.job-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  justify-content: space-between;
}

.job-meta .left {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
}


.job-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.job-location svg { flex-shrink: 0; }

.job-divider {
  width: 1px;
  height: 14px;
  background-color: var(--dark);
  opacity: 0.3;
}

.job-date {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
}

/* Description text */
.job-description {
  margin-bottom: 48px;
}

.job-description p {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.7;
}
.job-description p + p { margin-top: 16px; }

/* ---- ACCORDION ------------------------------------- */

.accordion {
  border: 1px solid rgba(4, 24, 70, 0.1);
  border-radius: 10px;
  padding: 30px 50px;
  margin-bottom: 0;
}

/* spacing entre items */
.accordion + .accordion {
  margin-top: 16px;
}

/* HEADER */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  gap: 8px;
  outline: none !important;
}

.accordion-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* ICON + / - */
.accordion-icon {
  font-size: 20px;
  width: 16px;
  text-align: center;
  color: var(--accent);
}

.accordion:not(.accordion--open) .accordion-icon::before {
  content: "+";
}

.accordion--open .accordion-icon::before {
  content: "−";
}

/* TRAIT (VISIBLE UNIQUEMENT OUVERT) */
.accordion-divider {
  border: none;
  /* border-top: 1px solid rgba(4, 24, 70, 0.15); */
  margin: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.accordion--open .accordion-divider {
  opacity: 1;
}

/* CONTENT ANIMATION (clé du fix) */
.accordion-content {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

/* ouverture */
.accordion--open .accordion-content {
  grid-template-rows: 1fr;
  /* border-top: 1px solid rgba(4, 24, 70, 0.15); */
  position: relative;
 
}

.accordion .accordion-content::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0px; /* Aligne le trait avec le contenu, pas avec le header */
  right: 0px;
  height: 1px;
  background-color: rgba(4, 24, 70, 0.15);
  transition: opacity 0.2s ease;
  opacity: 0;
}

.accordion.accordion--open .accordion-content::before {
  opacity: 1;
}

.accordion-content-inner {
  padding: 30px 0 8px;
}



/* TYPO */
.accordion-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 20px;
}

.accordion-content ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.accordion-content ul li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  position: relative;
  padding-left: 20px;
}

.accordion-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
}


/* Bullet list with blue dots */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.6;
}

.bullet-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  min-width: 5px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-top: 9px;
}

/* ---- APPLICATION FORM ------------------------------ */

.candidature {

  padding: 0 0 60px 0;
  width : 1166px;
  margin : 0 auto;
}

/* .candidature {
  padding: 0 0 60px 0;
  width: 100%;             
  max-width: var(--page-max); 
} */

.candidature-inner {
    background-color: var(--dark);
  max-width: var(--page-max);
  margin: 0 auto;
  /* padding: 0 calc(var(--outer-margin) + var(--inner-pad)); */
  padding : 60px 120px 40px 120px;
  border-radius: 12px;

}

.candidature-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.candidature-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
}

.required-note {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.9;
}

/* Form grid: 2 columns */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-field {
  background: var(--white);
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 25px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  background: transparent;
}

.form-field input::placeholder {
  color: var(--dark);
  opacity: 1;
}

/* File fields */
.form-field--file {
  justify-content: space-between;
  padding: 0 20px 0 20px;
  cursor: pointer;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.file-label span {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
}

.attach-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background-color: var(--accent);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  border-radius: 50%;
}

.attach-btn svg { 
transform: translate(1px); 
}

.attach-btn:hover { background-color: #3a3fc4; }

/* Textarea */
.form-field--textarea {
  height: auto;
  padding: 0;
  background: none;
}

.form-field--textarea textarea {
  width: 100%;
  height: 252px;
  padding: 18px 20px;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  border-radius: 25px;
}

.form-field--textarea textarea::placeholder {
  color: var(--dark);
  opacity: 1;
}

/* Form footer: GDPR + submit */
.form-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 32px;
}

.gdpr-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

/* Le conteneur devient un label cliquable */
.gdpr-checkbox-wrap {
      position: relative;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    /* margin-top: 2px; */
    cursor: pointer;
    display: flex;
    /* border: 1px solid red; */
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
}

/* Cache l'input natif de CF7 mais le laisse actif */
.gdpr-checkbox-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

/* Votre cercle blanc de base */
.gdpr-custom-check {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  position: relative;
  top: 0;
  left: 0;
  pointer-events: none; /* Permet au clic de passer à travers et toucher le label */
}

/* LE RECTIFICATIF DU CERCLE ROUGE */
/* Dès que l'input généré par CF7 est coché, on cible le span qui vient après dans le label */
/* METS CELUI-CI À LA PLACE (Gestion du cercle rouge au clic) : */
.gdpr-checkbox-wrap:has(input[type="checkbox"]:checked) .gdpr-custom-check::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red) !important;
  display: block;
}

/* ET METS CELUI-CI (Gestion du focus d'accessibilité) : */
.gdpr-checkbox-wrap:has(input[type="checkbox"]:focus-visible) .gdpr-custom-check {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- LE CORRECTIF UNIQUEMENT POUR FIREFOX --- */
@-moz-document url-prefix() {
  .gdpr-checkbox-wrap:has(input[type="checkbox"]:checked) .gdpr-custom-check::after {
    /* Ajuste ici les valeurs si Firefox a besoin de bouger d'un pixel */
   top: 8.59px;
  left: 9px; /* Teste 2px ou 4px si nécessaire */
  }
}


.gdpr-text {
  font-size: 12px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.6;
  max-width: 690px;
  opacity: 0.9;
}

.gdpr-link {
  color: var(--teal);
  text-decoration: underline;
}

.btn-envoyer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  height: 40px;
  padding: 0 20px;
  background-color: var(--pink);
  color: var(--dark);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  border-radius: 50px;
  outline: none !important;
  /* align-self: flex-end; */
}
.btn-envoyer:hover { background-color: #ffa0a3; }

/* ---- FOOTER ---------------------------------------- */

.footer {
  background-color: var(--dark);
  height: 100px;
  display: flex;
  align-items: center;
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--outer-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}

.footer-credit {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}




/* ==========================================================================
   RESPONSIVE DESIGN (Écrans < 1440px, Tablettes et Mobiles)
   ========================================================================== */

/* 1. GRANDS ÉCRANS PORTABLES ET TABLETTES EN PAYSAGE (Sous 1440px) */
@media screen and (max-width: 1270px) {
  :root {
    --outer-margin: 40px; /* Réduction propre des marges sur les côtés */
    --inner-pad: 60px;    /* Réduction du padding interne de la carte blanche */
  }
  
  body {
    min-width: 100%; /* Force le site à être fluide et à ne pas déborder */
  }

  /* Force le wrapper global à appliquer la même marge partout */
  .page-wrapper {
    padding: 30px var(--outer-margin) 0 var(--outer-margin) !important;
  }

  /* Aligne parfaitement le bloc bleu avec la carte blanche */
  .candidature {
    width: 100% !important;
    max-width: var(--page-max) !important;
    padding: 0 var(--outer-margin) 60px var(--outer-margin) !important;
  }
}


@media screen and (max-width: 1440px) and (min-width: 1025px) {

  .candidature {
    max-width: var(--page-max);
  margin: 0 auto;
  padding: 30px var(--outer-margin) 0;
  padding: 0 137px 50px 137px;
  width : auto;
  }


}

/* 2. TABLETTES EN PORTRAIT (Sous 1024px) */
@media screen and (max-width: 1024px) {
  :root {
    --outer-margin: 30px;
    --inner-pad: 40px;
  }

  .header-inner {
    height: 120px;
  }

  .header-nav {
    gap: 20px;
  }

  .job-title {
    font-size: 32px;
  }

  .candidature-inner {
    padding: 40px 40px 30px 40px;
  }
}

/* 3. PETITES TABLETTES ET GRANDS MOBILES (Sous 768px) */
@media screen and (max-width: 768px) {
  .header-inner {
    height: 90px;
    padding: 0 var(--outer-margin);
  }
  
  .header-nav {
    display: none; /* Cache le menu texte horizontal sur mobile */
  }

  .job-header {
    flex-direction: column;
    gap: 20px;
  }

  .btn-candidater {
    margin-top: 0;
    width: 100%; /* Bouton candidater sur toute la largeur */
  }

  .accordion {
    padding: 20px;
  }

  /* La grille du formulaire passe sur 1 seule colonne */
  .form-grid {
    grid-template-columns: 1fr; 
    gap: 12px;
  }

  .candidature-heading {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .form-footer {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .btn-envoyer {
    width: 100%; /* Bouton envoyer sur toute la largeur */
  }
}

/* 4. SMARTPHONES ET SMARTPHONES COMPACTS (Sous 480px) */
@media screen and (max-width: 480px) {
  :root {
    --outer-margin: 15px; /* Marges minimales pour gagner de la place */
    --inner-pad: 20px;    /* Libère l'espace interne de la carte blanche */
  }

  .page-wrapper {
    padding: 20px var(--outer-margin) 0 var(--outer-margin) !important;
  }

  .job-card-inner {
    padding: 40px var(--inner-pad) 40px var(--inner-pad) !important;
  }

  /* Empêche le titre de déborder sur mobile */
  .job-title {
    font-size: 24px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .job-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .job-divider {
    display: none;
  }

  .candidature {
    padding: 0 var(--outer-margin) 40px var(--outer-margin) !important;
  }

  .candidature-inner {
    padding: 30px 20px 20px 20px;
  }

  .candidature-title {
    font-size: 22px;
  }

  .footer {
    height: auto;
    padding: 20px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 6px;
  }
}