/* =========================================================
   FORMULAIRE CANDIDAT
   COMPACT + RESPONSIVE
   ========================================================= */

.candidat-body {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 5px;
  box-sizing: border-box;
}

.candidat-section {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

/* =========================================================
   LABELS
   ========================================================= */

.lab {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  line-height: 1.2;
  white-space: nowrap;
}

/* =========================================================
   INPUTS / SELECTS
   ========================================================= */

.form-control,
.form-select {
  height: 32px;
  min-height: 32px;
  padding: 3px 7px;
  font-size: 13px !important;
  line-height: 1.2;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-control::placeholder {
  font-size: 11px;
  color: #999;
}

.form-select {
  padding-top: 3px;
  padding-bottom: 3px;
  padding-right: 25px;
}

.candidat-select {
  width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  font-size: 11px !important;
}

/* =========================================================
   CHAMPS À TAILLE FIXE
   ========================================================= */

/* =========================================================
   DIPLÔME
   ========================================================= */

.diplome-section {
  overflow: hidden;
}

.diplome-section .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-left: 0;
  margin-right: 0;
}

.diplome-section .col-md-4 {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

/* =========================================================
   EXPÉRIENCES
   ========================================================= */

.experience-section {
  overflow-x: auto;
}

.experience-header {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.experience-title {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

/*
   IMPORTANT :
   Les labels et les inputs utilisent exactement
   les mêmes colonnes.
*/

.experience-labels,
.experience-row {
  display: grid;

  /*
       Années | Poste | Bouton
    */
  grid-template-columns: 120px minmax(0, 1fr) 40px;

  column-gap: 8px;

  width: 100%;
  box-sizing: border-box;
}

/* Labels */

.experience-labels {
  align-items: end;
  margin-bottom: 3px;
}

.experience-labels > div {
  min-width: 0;
}

/* Lignes */

.experience-row {
  align-items: center;
  margin-bottom: 5px;
}

/* On annule les colonnes Bootstrap */

.experience-row > .col-md-2,
.experience-row > .col-md-3,
.experience-row > .col-md-8,
.experience-row > .col-md-9,
.experience-row > .col-md-1,
.experience-labels > .col-md-2,
.experience-labels > .col-md-3,
.experience-labels > .col-md-8,
.experience-labels > .col-md-9,
.experience-labels > .col-md-1 {
  width: auto !important;
  flex: none !important;
  padding-left: 0;
  padding-right: 0;
}

/* Input années */

.experience-row input[name="anne_exp[]"] {
  width: 120px !important;
  max-width: 120px;
}

/* Input expérience */

.experience-row input[name="txt_exp[]"] {
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
}

/* Bouton supprimer */

.btn-remove-exp {
  width: 30px;
  height: 30px;

  padding: 0;

  border: 1px solid #dc3545;
  border-radius: 4px;

  background: #fff;
  color: #dc3545;

  font-size: 15px;
  line-height: 28px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-exp:hover {
  background: #dc3545;
  color: #fff;
}

/* Bouton ajouter */

.btn-add-exp {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  border: 1px dashed #aaa;
  background: #fff;
  color: #555;

  padding: 4px 9px;
  margin-top: 2px;

  border-radius: 4px;

  font-size: 11px;
  cursor: pointer;

  white-space: nowrap;
}

.btn_choice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px dashed #aaa;
  background: #fff;
  color: #1e3a8a;
  padding: 4px 9px;
  margin-top: 2px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.btn_choice:hover {
  background: #f5f5f5;
}

.btn-add-exp:hover {
  background: #f5f5f5;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.contact-adresse {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-tel {
  flex: 0 0 105px;
}

/* =========================================================
   FICHIERS
   ========================================================= */

.fichiers-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.fichiers-title {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 7px;
}

.btn-add-file {
  border: 1px dashed #aaa;
  background: #fff;
  color: #555;

  padding: 5px 10px;
  border-radius: 4px;

  font-size: 11px;
  cursor: pointer;
}

.btn-add-file:hover {
  background: #f5f5f5;
}

.fichiers-liste {
  margin-top: 8px;
}

.fichier-item {
  display: flex;
  align-items: center;

  gap: 8px;

  padding: 4px 7px;
  margin-bottom: 4px;

  border: 1px solid #eee;
  border-radius: 4px;

  background: #fafafa;

  font-size: 11px;
}

.fichier-nom {
  flex: 1;
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-search {
  display: flex;
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 0 10px;
}
.country-search span {
  margin-right: 7px;
  flex: 0 0 auto;
}
.country-search input {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  flex: 1;
}
.btn-remove-file {
  width: 24px;
  height: 24px;

  padding: 0;

  border: 1px solid #dc3545;
  border-radius: 4px;

  background: #fff;
  color: #dc3545;

  font-size: 14px;
  cursor: pointer;
}

.btn-remove-file:hover {
  background: #dc3545;
  color: #fff;
}

/* =========================================================
   BOUTON OK
   ========================================================= */

.btn-save-light {
  border: 1px solid #adb5bd;
  background: #fff;
  color: #444;

  padding: 5px 16px;

  border-radius: 4px;

  font-size: 11px;
  cursor: pointer;
}

.btn-save-light:hover {
  background: #f5f5f5;
}

/* =========================================================
   ÉCRAN MOYEN
   ========================================================= */

@media (max-width: 900px) {
  .candidat-body {
    padding: 4px;
  }

  .candidat-section {
    padding: 9px 10px;
  }
}

/* =========================================================
   TABLETTE
   ========================================================= */

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

@media (max-width: 680px) {
  /* Police mobile plus lisible */
  .lab {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
  }

  .form-control,
  .form-select {
    height: 36px;
    min-height: 36px;
    padding: 4px 8px;
    font-size: 13px !important;
  }

  .form-control::placeholder {
    font-size: 12px;
  }

  /* Nom → Prénoms → Usuel → Date → Lieu → Taille : une ligne chacun */

  /* Le HTML reste inchangé : on réordonne seulement l'affichage mobile */
  .candidat-section:has(#candidat_taille) .col-auto:nth-child(1) {
    order: 1;
  }
  .candidat-section:has(#candidat_taille) .col-auto:nth-child(2) {
    order: 2;
  }
  .candidat-section:has(#candidat_taille) .col-auto:nth-child(3) {
    order: 3;
  }
  .candidat-section:has(#candidat_taille) .col-auto:nth-child(5) {
    order: 4;
  }
  .candidat-section:has(#candidat_taille) .col-auto:nth-child(6) {
    order: 5;
  }
  .candidat-section:has(#candidat_taille) .col-auto:nth-child(4) {
    order: 6;
  }

  .candidat-section:has(#candidat_taille) .form-control,
  .candidat-section:has(#candidat_taille) .form-select {
    width: 100% !important;
  }

  /* CIN : une ligne par champ */
  .candidat-section:has(#candidat_cin) .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin: 0;
  }

  .candidat-section:has(#candidat_cin) .col-auto {
    width: 100% !important;
    padding: 0;
    min-width: 0;
  }

  #candidat_cin,
  #candidat_cin_date,
  #candidat_cin_lieu {
    width: 100% !important;
    min-width: 0;
  }

  /* =====================================================
   DIPLÔME — MOBILE
   NIVEAU
   FILIÈRE
   UNIVERSITÉ

   UNE LIGNE PAR CHAMP
   ===================================================== */

  .diplome-section {
    width: 100%;
    overflow: hidden;
  }

  .diplome-section .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .diplome-section .col-md-4 {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;
  }

  .diplome-section .lab {
    display: block;

    font-size: 12px !important;
    margin-bottom: 3px;

    line-height: 1.2;
  }

  .diplome-section .form-select {
    display: block;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 36px !important;

    font-size: 13px !important;

    padding: 4px 8px !important;

    box-sizing: border-box;
  }

  /* Expérience : Année | Texte | Supprimer, toujours sur la même ligne */
  .experience-section {
    overflow-x: hidden;
  }

  .experience-labels,
  .experience-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 32px;
    column-gap: 6px;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .experience-labels {
    margin-bottom: 4px;
  }

  .experience-row {
    margin-bottom: 6px;
  }

  .experience-row input[name="anne_exp[]"],
  .experience-row input[name="txt_exp[]"] {
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    font-size: 12px !important;
  }

  .btn-remove-exp {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  /* Contact */
  .contact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 95px 95px;
    gap: 5px;
  }

  .contact-tel {
    width: auto;
    min-width: 0;
  }

  /* Fichiers : présentation conservée */
  .fichier-item {
    font-size: 10px;
    padding: 4px 5px;
  }

  .btn-add-file {
    font-size: 10px;
  }

  /* Bouton OK */
  .btn-save-light {
    font-size: 11px;
    padding: 5px 14px;
  }
}
/* =========================================================
   POPUP CONFIRMATION
   RESPONSIVE PC + MOBILE
   ========================================================= */

.confirmation-modal {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

/* -------------------------
   EN-TÊTE
   ------------------------- */

.confirmation-modal .modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid #eeeeee;
}

.confirmation-modal .modal-title {
  font-size: 17px;
  font-weight: 600;
}

.confirmation-modal .modal-title i {
  margin-right: 6px;
}

.filter-group {
  display: flex;
  gap: 24px;
  background: white;
  border-radius: 60px;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.filter-radio input {
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
  margin: 0;
}

.filter-radio label {
  font-size: 11px;
  font-weight: 500;
  color: #1e293b;
  margin: 0;
  cursor: pointer;
}
/* -------------------------
   CONTENU
   ------------------------- */

.confirmation-modal .modal-body {
  padding: 20px 15px 10px;
}

.confirmation-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.confirmation-text {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* -------------------------
   BOUTONS
   ------------------------- */

.confirmation-modal .modal-footer {
  border-top: none;
  padding: 10px 15px 15px;
  gap: 5px;
}

.confirmation-modal .btn {
  min-width: 90px;
  font-size: 13px;
  min-height: 38px;
}
#inscri_main {
  width: 95%;
  max-width: 1100px;
  margin: 30px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.progression {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px 70px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.progress-line {
  position: absolute;
  top: 46px;
  left: 120px;
  right: 120px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 10px;
  z-index: 1;
  overflow: hidden;
}
#progress-fill {
  width: 0%;
  height: 100%;
  background: #1e3a8a;
  border-radius: 10px;
  transition: width 0.4s ease;
}
.progress-step {
  position: relative;
  z-index: 2;
  width: 150px;
  text-align: center;
  color: #9ca3af;
  transition: color 0.3s ease;
}
.step-circle {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #d1d5db;
  font-size: 18px;
  transition: all 0.3s ease;
}
.step-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.progress-step.active,
.progress-step.completed {
  color: #1e3a8a;
}
.progress-step.active .step-circle,
.progress-step.completed .step-circle {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #fff;
}
.etapes-container {
  padding: 30px;
  min-height: 400px;
}
.etape {
  animation: fadeStep 0.35s ease;
}
@keyframes fadeStep {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 768px) {
  #inscri_main {
    width: 98%;
    margin: 15px auto;
    border-radius: 12px;
  }
  .progression {
    padding: 20px 15px 16px;
  }
  .progress-line {
    left: 65px;
    right: 65px;
    top: 41px;
  }
  .progress-step {
    width: 100px;
  }
  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .step-label {
    font-size: 11px;
  }
  .etapes-container {
    padding: 18px;
  }
}
@media (max-width: 480px) {
  .progression {
    padding-left: 5px;
    padding-right: 5px;
  }
  .progress-line {
    left: 45px;
    right: 45px;
    top: 38px;
  }
  .progress-step {
    width: 80px;
  }
  .step-circle {
    width: 32px;
    height: 32px;
    border-width: 2px;
    font-size: 14px;
  }
  .step-label {
    font-size: 10px;
  }
}
/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {
  .confirmation-modal {
    margin: 10px;
    border-radius: 10px;
  }

  .confirmation-modal .modal-header {
    padding: 10px 12px;
  }

  .confirmation-modal .modal-title {
    font-size: 16px;
  }

  .confirmation-modal .modal-body {
    padding: 18px 12px 8px;
  }

  .confirmation-icon {
    font-size: 38px;
    margin-bottom: 8px;
  }

  .confirmation-text {
    font-size: 14px;
    padding: 0 5px;
  }

  .confirmation-modal .modal-footer {
    padding: 8px 12px 12px;
    gap: 8px;
  }

  .confirmation-modal .btn {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    font-size: 14px;
  }
}

/* =========================================================
   MODAL CARRÉ
   ========================================================= */

.succes-dialog {
  max-width: 560px;

  width: 95%;
}

.succes-modal {
  border: none;

  border-radius: 18px;

  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}
/* ===== RÉCAPITULATIF STYLE BLOCS SIMPLES ===== */
/* Récapitulatif style CV simple */
.recap-cv {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 25px 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  line-height: 1.6;
}

.recap-bloc {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9edf2;
}

.recap-bloc:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recap-bloc-titre {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}

.recap-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 3px 0;
}

.recap-label {
  font-weight: 500;
  color: #334155;
  min-width: 140px;
}

.recap-exp-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 4px 0;
  border-bottom: 1px dashed #e9edf2;
}

.recap-exp-item:last-child {
  border-bottom: none;
}

.recap-exp-annee {
  font-weight: 600;
  min-width: 130px;
  color: #0f172a;
}

.recap-exp-desc {
  flex: 1;
  color: #334155;
}

.recap-fichier {
  padding: 3px 0;
  color: #1e293b;
}

.recap-vide {
  color: #94a3b8;
  font-style: italic;
}

.recap-titre {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  color: #0f172a;
}
/* =========================================================
   ICONE
   ========================================================= */

.success-icon {
  width: 60px;
  height: 60px;

  margin: auto;

  border-radius: 50%;

  background: #d1e7dd;

  color: #198754;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 34px;

  font-weight: bold;
}

.success-title {
  color: #198754;

  font-weight: 700;

  margin-top: 10px;

  margin-bottom: 2px;
}

.success-subtitle {
  color: #6c757d;

  font-size: 13px;

  margin-bottom: 12px;
}

/* =========================================================
   BOITES
   ========================================================= */

.success-box {
  height: 125px;

  border-radius: 12px;

  padding: 12px;

  border: 1px solid #e9ecef;
}

/* DOSSIER */

.dossier-box {
  background: #f8f9fa;

  text-align: center;
}

.box-icon {
  font-size: 24px;

  color: #0d6efd;

  margin-bottom: 3px;
}

.dossier-box small {
  display: block;

  color: #6c757d;

  font-size: 10px;

  font-weight: 600;
}

.box-value {
  margin-top: 5px;

  font-size: 17px;

  font-weight: 700;

  color: #212529;

  word-break: break-all;
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-box {
  background: #f8f9fa;
}

.login-header {
  font-weight: 600;

  font-size: 14px;

  color: #212529;

  margin-bottom: 8px;
}

.login-header i {
  color: #0d6efd;

  margin-right: 4px;
}

.login-line {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 8px;

  padding: 5px 0;

  border-top: 1px solid #e5e5e5;

  font-size: 13px;
}
/* Modal vérification */
#modalDateNaissance .modal-dialog {
  max-width: 360px;
}

#modalDateNaissance .modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#modalDateNaissance .modal-header {
  padding: 10px 10px;
  border-bottom: 1px solid #eee;
}

#modalDateNaissance .modal-title {
  font-size: 17px;
  font-weight: 600;
}

#modalDateNaissance .modal-body {
  padding: 10px 10px;
}

#modalDateNaissance .verification-message {
  margin: 0 0 10px;
  color: #555;
  font-size: 13px;
}

#modalDateNaissance .form-label {
  margin-bottom: 5px;
  font-size: 12px;
}

#modalDateNaissance #date_naissance {
  height: 38px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 12px;
}

#modalDateNaissance .modal-footer {
  padding: 0 10px 10px;
  border: none;
}

#modalDateNaissance .btn-save-light {
  min-width: 110px;
  height: 36px;
  padding: 5px 18px;
  color: #444;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
#date_naissance_error {
  display: none;
  margin-top: 6px;
  color: #dc3545;
  font-size: 13px;
}
#oubli_pass {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  padding-top: 10px;
  color: #2264c7;
  text-decoration: underline;
  cursor: pointer;
  font-size: 11px;
}

#oubli_pass:hover {
  color: #095ddb;
  text-decoration: underline;
}
.login-line span {
  color: #6c757d;

  white-space: nowrap;
}

.login-line strong {
  color: #0d6efd;

  text-align: right;

  word-break: break-all;
}

/* =========================================================
   MESSAGE
   ========================================================= */

.success-info {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 10px;

  padding: 9px 11px;

  background: #eef5ff;

  border-radius: 9px;

  color: #495057;

  font-size: 11px;
}

.success-info i {
  color: #0d6efd;

  font-size: 17px;
}

/* =========================================================
   CONSEIL
   ========================================================= */

.save-info {
  font-size: 10px;

  color: #6c757d;

  margin-top: 8px;
}

.save-info i {
  color: #6c757d;
}

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

@media (max-width: 500px) {
  .success-title {
    font-size: 20px;
  }

  .success-subtitle {
    font-size: 11px;
  }

  .success-box {
    height: 120px;
  }

  .login-line {
    font-size: 10px;
  }
}
/* =========================================================
   IDENTIFICATION
========================================================= */

.identification-header {
  text-align: center;
  margin-bottom: 35px;
}

.identification-icon {
  width: 64px;
  height: 64px;

  margin: 0 auto 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: #eff6ff;
  color: #1e3a8a;

  font-size: 30px;
}

.identification-header h2 {
  margin: 0;

  font-size: 27px;
  font-weight: 700;

  color: #1f2937;
}

.identification-header p {
  margin: 8px 0 0;

  color: #6b7280;
  font-size: 15px;
}

/* =========================================================
   CARTES
========================================================= */

.identification-choices {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;

  max-width: 850px;

  margin: 0 auto;
}

.candidate-card {
  position: relative;

  display: flex;
  flex-direction: column;

  padding: 30px;

  min-height: 310px;

  border: 1px solid #e5e7eb;

  border-radius: 18px;

  background: #fff;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.candidate-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

  border-color: #1e3a8a;
}

/* Icône */

.candidate-card-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: #eff6ff;

  color: #1e3a8a;

  font-size: 27px;

  margin-bottom: 20px;
}

.candidate-card-content {
  flex: 1;
}

.candidate-badge {
  display: inline-block;

  padding: 5px 10px;

  border-radius: 20px;

  background: #f1f5f9;

  color: #64748b;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.5px;

  margin-bottom: 10px;
}

.candidate-card h3 {
  margin: 0 0 10px;

  font-size: 21px;

  font-weight: 700;

  color: #1f2937;
}

.candidate-card p {
  margin: 0;

  color: #6b7280;

  font-size: 14px;

  line-height: 1.6;
}

/* Bouton */

.candidate-action {
  margin-top: 25px;

  width: 100%;

  border: none;

  border-radius: 10px;

  padding: 12px 18px;

  background: #1e3a8a;

  color: white;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.2s;
}

.candidate-action:hover {
  background: #172e6b;
}

.candidate-action i {
  margin-left: 8px;

  transition: transform 0.2s;
}

.candidate-action:hover i {
  transform: translateX(4px);
}

/* =========================================================
   RECHERCHE ANCIEN CANDIDAT
========================================================= */

.recherche-ancien {
  display: none;

  margin-top: 30px;

  padding: 25px;

  border-radius: 15px;

  background: #f8fafc;

  border: 1px solid #e2e8f0;

  animation: apparitionRecherche 0.3s ease;
}

.recherche-header {
  display: flex;

  align-items: center;

  gap: 15px;

  margin-bottom: 20px;
}

.recherche-icon {
  width: 45px;
  height: 45px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #e0e7ff;

  color: #1e3a8a;

  font-size: 20px;
}

.recherche-header h4 {
  margin: 0;

  font-size: 17px;

  color: #1f2937;

  font-weight: 700;
}

.recherche-header p {
  margin: 3px 0 0;

  color: #64748b;

  font-size: 13px;
}

.recherche-form {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr)
    auto;

  gap: 12px;

  align-items: end;
}

.recherche-field label {
  display: block;

  margin-bottom: 5px;
}

.recherche-field .form-control {
  height: 40px;

  border-radius: 8px;

  border-color: #d1d5db;
}

.btn-recherche-candidat {
  height: 40px;

  padding: 0 18px;

  border: none;

  border-radius: 8px;

  background: #1e3a8a;

  color: white;

  font-weight: 600;

  white-space: nowrap;

  cursor: pointer;
}

.btn-recherche-candidat:hover {
  background: #172e6b;
}

.message-recherche {
  margin-top: 12px;

  font-size: 13px;
}

@keyframes apparitionRecherche {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 768px) {
  .identification-choices {
    grid-template-columns: 1fr;
  }

  .recherche-form {
    grid-template-columns: 1fr;
  }

  .btn-recherche-candidat {
    width: 100%;
  }
}

.login-container {
  max-width: 500px;
  margin: 30px auto 10px;
}

.login-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.login-field {
  margin-bottom: 18px;
}

.login-field .lab {
  display: block;
  margin-bottom: 7px;
}

.login-field .lab i {
  color: #1e3a8a;
  margin-right: 5px;
}

.login-button {
  width: 100%;
  border: 0;
  margin-top: 5px;
}

.login-message {
  min-height: 24px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 14px;
}

.login-message.error {
  color: #dc2626;
}

.login-message.success {
  color: #16a34a;
}

.login-separator {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}

.login-separator::before,
.login-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.login-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.login-link {
  background: none;
  border: none;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.login-link:hover {
  text-decoration: underline;
}

.login-link i {
  margin-right: 5px;
}
.form-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
}

.section-header {
  padding: 13px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;

  display: flex;
  align-items: center;
  gap: 10px;
}

.section-number {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #1e3a8a;
  color: #ffffff;

  font-size: 13px;
  font-weight: bold;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a8a;
}

.section-body {
  padding: 22px;
}

/* =====================================================
           LABEL
           ===================================================== */

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.required {
  color: #dc2626;
}

/* =====================================================
           INPUT
           ===================================================== */

.form-control,
.form-select {
  min-height: 40px;
  border-color: #cbd5e1;
  border-radius: 7px;
  font-size: 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: #1e3a8a;

  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
