.width-form {
  width: 75%;
}

/* Offset pour les ancres de navigation */
section[id] {
  scroll-margin-top: 300px;
}

/** Cela permet au JS de vérifier la présence du champs */
.avec-controle {}
.selectMulti-invalid {
  border-color: red;
}

.label-form-jocare {
  font-weight: 500;
  font-size: large;
  color: #0a4f70;
}
.signe-champs-o {
  color:red !important;
}
.cp-ville {
  text-decoration: none !important;
  cursor: pointer;
}

/** Quand ecran < md */
@media screen and (max-width: 768px) {
  .width-form {
    width: inherit;
  }
}

/** SURCHARGE DU NAVIGATEUR */
/** Pour les select multi */
:not(.input-group)>.bootstrap-select.form-control:not([class*=col-]) {
  width: 100%;
  border: 1px solid #ced4da;
}
.bootstrap-select>.dropdown-toggle.bs-placeholder, .bootstrap-select>.dropdown-toggle.bs-placeholder:hover {
  background-color: white;
  color: black;
}

/** Pour les input-group-text (ex : salaire avec le signe €) */
.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: white;
  text-align: center;
  white-space: nowrap;
  background-color: #0a4f70;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.form-check-input[type=radio] {
  height: 1.6em;
  margin-top: 0 !important;
}
.form-check-input:checked {
  background-color: #0a4f70;
  border-color: #0a4f70;
}

.form-switch input {
  font-size: 1.3rem;
}
.form-switch {
  padding-left: 3.2em;
}
.form-switch input.is-invalid {
  padding-right: 0;
}

/* ============================================
   STYLES POUR LES AVANTAGES
   ============================================ */

/* Styles pour l'accordéon des avantages */
#collapseAvantages .card-body {
  max-height: 400px;
  overflow-y: auto;
}

#collapseAvantages .text-primary {
  color: #0a4f70 !important;
}

/* Avantages personnalisés - Style cohérent avec le formulaire */
#avantagesPersonnalisesContainer {
  margin-bottom: 1rem;
}

#avantagesPersonnalisesContainer .border-bottom:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

#compteurAvantagesPerso {
  font-weight: 500;
  color: #0a4f70;
}

/* Empêcher le scroll de la page quand on scroll dans le dropdown des avantages */
.bootstrap-select .dropdown-menu {
  overscroll-behavior: contain;
}
.bootstrap-select .dropdown-menu .inner {
  overscroll-behavior: contain;
}

/* Select natif mobile pour les avantages */
@media screen and (max-width: 768px) {
  #avantages-mobile {
    width: 100% !important;
    padding: 0.5rem;
    font-size: 0.95rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: white;
  }
  
  #avantages-mobile option {
    padding: 0.5rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    min-height: 2.5rem;
  }
  
  #avantages-mobile optgroup {
    font-weight: bold;
    color: #0a4f70;
    padding: 0.5rem 0.25rem;
    background-color: #f8f9fa;
  }
}

/* Truncate description */
.description-truncate {
  max-height: 150px;
  overflow: hidden;
  position: relative;
}

.description-truncate::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, white);
}

/* Cards */
.card {
  border-radius: 12px;
}

.card-title i {
  margin-right: 8px;
}

