@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/Ubuntu-Regular.ttf');
}

@font-face {
  font-family: 'Ubuntu bold';
  src: url('./../fonts/Ubuntu-Bold.ttf') format('truetype');
}

/* Custom Bootstrap */

button.btn {
  font-family: 'Ubuntu Bold';
  border: 0;
  border-radius: 2rem;
  padding: 0.5rem 3rem;
}

button.btn-primary {
  color: #ffffff !important;
  background-color: #3a4292 !important;
}

button.btn-primary-2 {
  color: #ffffff !important;
  background-color: #4d90cb !important;
}

button.btn-primary.disabled {
  opacity: 1;
  background-color: #01205c !important;
}

button.btn-primary-2.disabled {
  opacity: 1;
  background-color: #01205c !important;
}

button.btn-secondary {
  color: #444444 !important;
  background-color: #f2f2f2 !important;
}

button.btn-danger {
  color: #ffffff !important;
  background-color: #b2243c !important;
}

button.btn-link {
  padding: 0;
  font-size: 0.95rem;
  color: #052460 !important;
  text-decoration: none !important;
}

button.btn-sm {
  padding: 0.3rem 3rem;
}

select.form-control {
  background-color: #f7f8fa !important;
  padding: 0.5rem;
  padding-left: 1rem !important;
  border-radius: 3rem;
  border: 0;
  box-shadow: none !important;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}

input.form-control {
  background-color: #f7f8fa !important;
  padding: 0.5rem;
  padding-left: 1rem !important;
  border-radius: 3rem;
  border: 0;
  box-shadow: none !important;
}

.form-check {
  display: flex !important;
  align-items: center;
  background-color: #f7f8fa;
  border-radius: 3rem;
}

.form-check:hover,
.form-check input:hover,
.form-check label:hover {
  cursor: pointer;
}

.form-check-group .col-sm-4 {
  margin-right: 0;
}

.form-check-group .form-check {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-check-group .form-check:first-child {
  margin-top: 0;
}

.form-check-group .form-check:last-child {
  margin-bottom: 0;
}

.form-check-input {
  display: none;
}

.form-check-label {
  display: flex;
  align-items: center;
  font-family: 'Ubuntu Bold';
  padding: 0.5rem;
  padding-left: 40px;
  margin-left: -20px;
  width: 110%;
}

.form-check-input:disabled ~ .form-check-label {
  color: inherit !important;
}

.form-check input:not(:checked) + .form-check-label::before {
  background-color: #e1e6eb;
  border: 6px solid #fff;
}

.form-check input:checked + .form-check-label::before {
  background-color: #01205c;
  border: 6px solid #fff;
}

.form-check-label::before {
  position: absolute;
  display: inline-block;
  content: ' ';
  height: 24px;
  width: 24px;
  left: 10px;
  border-radius: 50%;
  background-color: #ffffff;
}

.form-check-label span {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
}

.form-control-range-container {
  border-top: 3px solid #0099cb;
  border-radius: 5px;
  margin: 1rem 0;
}

.form-control-range-container input {
  height: 0;
}

.form-control-range {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-control-range::-webkit-slider-thumb,
.form-control-range::-moz-range-thumb {
  border: 1px solid #ffffff;
  background-color: #e3e7ed;
  cursor: pointer;
}

/* .form-control-range-container input::after {
  position: absolute;
  display: inline-block;
  content: ' ';
  height: 24px;
  width: 24px;
  left: 10px;
  border-radius: 50%;
  background-color: #ffffff;
} */

.custom-switch:hover,
.custom-switch input:hover,
.custom-switch label:hover {
  cursor: pointer;
}

.custom-control-input:checked ~ .custom-control-label::before {
  border-color: #ffcb00 !important;
  background-color: #ffcb00 !important;
}

.custom-control-label::before {
  box-shadow: none !important;
}

.container {
  max-width: unset !important;
}

label {
  font-family: 'Ubuntu Bold';
}

.form-check label {
  font-family: 'Ubuntu';
}

/* Custom Colors */

.color-yellow {
  color: #e6a700;
}

.bg-bleu {
  background-color: #01205c !important;
}

/* Custom Utilities */

.min-height {
  min-height: 350px;
}

.wrapper {
  font-family: 'Ubuntu';
  max-width: 735px;
}

.age-box {
  display: flex;
  align-items: center;
}

.age-box input {
  width: 90px;
  margin: 10px;
}

.empty-field {
  color: #555555;
  background-color: #f7f8fa;
  padding: 0.5rem;
  padding-left: 1rem !important;
  border-radius: 3rem;
}

.text-error {
  color: #dc3545;
  text-align: center;
  margin-top: 2rem;
}

.font-size-075rem {
  font-size: 0.75rem !important;
}

.font-size-08rem {
  font-size: 0.8rem !important;
}

.font-size-09rem {
  font-size: 0.9rem !important;
}

.font-size-11rem {
  font-size: 1.1rem !important;
}

.font-size-12rem {
  font-size: 1.2rem !important;
}

.font-size-14rem {
  font-size: 1.4rem !important;
}

.font-bold {
  font-family: 'Ubuntu Bold' !important;
}

.info::before {
  content: '';
  padding-left: 1.5rem;
}

.info {
  background: url(./../img/grande-icone-infos.svg) top left no-repeat;
  cursor: pointer;
}

.info-bulle {
  position: absolute;
  z-index: 2;
  background-color: #dfe2e9;
  max-width: 400px;
  padding: 1rem 2rem;
  border-radius: 20px;
}

.info-bulle > div:first-child {
  display: flex;
  align-items: center;
  font-family: 'Ubuntu Bold';
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-bulle > div:first-child div:first-child {
  flex-grow: 1;
}

.info-bulle > div:first-child div:last-child img {
  cursor: pointer;
}

.info-text {
  display: block;
  margin-top: -0.5rem;
}

/* Other Elements */

.site-address {
  padding-left: 1rem;
  padding-bottom: 1rem;
}

.site-address .col span {
  display: block;
}

.site-address .col span:first-of-type {
  font-family: 'Ubuntu Bold';
  font-size: 1rem;
}

.site-address .col span:last-of-type {
  font-size: 0.4rem;
}

#start .site-address {
  color: #ffffff;
}

.sim-form:not(#start),
.sim-form:not(#start) a {
  color: #052460;
}

.sim-form:not(#start) a {
  text-decoration: none !important;
}

.sim-form {
  display: flex;
  flex-direction: column;
  /* min-width: 735px; */
  border-radius: 0.5rem;
  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

.sim-form .container {
  padding: 1rem 2rem;
  margin-top: -1.5rem;
  flex: 1 0 auto;
}

/* Components */

#boutons {
  margin-top: 2rem;
}

#boutons .row:last-child > .col:first-child .row:not(:first-child) {
  margin-top: 1.25rem;
}

#recap-component {
  max-width: 600px;
  position: absolute;
  right: 15px;
  bottom: 0;
  z-index: 5;
}

#recap-component > div:first-child {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-family: 'Ubuntu Bold';
  border-top-left-radius: 1.5rem;
  padding: 1rem 0;
  background-color: #01205c;
  color: #ffffff;
}

#recap-component > div:first-child div:first-child {
  flex-grow: 1;
  text-align: center;
}

#recap-component > div:first-child div:last-child {
  padding-right: 1rem;
}

#recap-component > div:last-child {
  color: #052460 !important;
  background-color: #dfe2e9;
  border-bottom-left-radius: 1.5rem;
  justify-content: center;
  text-align: center;
}

#recap-component > div:last-child .row {
  margin: 0;
}

#recap-component > div:last-child .row > .col-6.col-sm-4 {
  padding: 1.5rem 0.25rem;
}

#recap-component > div:last-child .row .col-6.col-sm-4 > div:first-child {
  font-size: 1rem;
  font-family: 'Ubuntu Bold';
}

#recap-component > div:last-child .row .col-6.col-sm-4 div:first-child img {
  width: 1.4rem;
  margin-top: -2px;
}

#recap-component > div:last-child .row .col-6.col-sm-4 > div:nth-child(2) div {
  font-size: 0.9rem;
}

#recap-component > div:last-child .row .col-6.col-sm-4 > div:last-child {
  font-size: 0.75rem;
  margin-top: 1rem;
  cursor: pointer;
}

#recap-component > div:last-child .row .col-6.col-sm-4 div:last-child a {
  color: #052460 !important;
  text-decoration: none;
}

#recap-component > div:last-child .row .col-6.col-sm-4 div:last-child img {
  width: 0.8rem;
  margin-right: 0.25rem;
}

#recap-component img {
  cursor: pointer;
}

.titre-ressource {
  font-size: 0.75rem;
  font-family: 'Ubuntu Bold';
  color: #ffffff;
  background-color: #01205c;
  border-radius: 25px;
  padding: 8px 0;
  padding-left: 25px;
  padding-right: 20px;
  cursor: pointer;
}

.titre-ressource label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.titre-ressource label:after {
  font-family: 'FontAwesome';
  display: block;
  margin-left: auto;
}

.titre-ressource:not(.affiche) label:after {
  content: ' \f078';
}

.titre-ressource.affiche label:after {
  content: ' \f077';
}

/* Specific pages */

/* Page d'accueil */
#start {
  background-color: #4d90cb;
  border-top-left-radius: 0;
}

#start #boulier {
  font-family: 'Ubuntu Bold';
  font-size: 1.1rem;
  color: #ffffff;
  width: 200px;
  background: url(./../img/rectangle-pointu.svg) top left no-repeat;
  position: absolute;
  z-index: 1;
}

#start #boulier,
#start #boulier .row {
  height: 75px;
}

#start #boulier .row .col:first-child {
  max-width: 60px;
}

#start #boulier .row .col:first-child img {
  padding-left: 0.75rem;
}

#start-content img {
  width: 200px;
}

#start-content span {
  font-family: 'Ubuntu Bold';
}

#start-content .question-droit > span {
  display: block;
  color: #ffffff;
  font-size: 1.5rem;
}

#start-content .question-droit.d-sm-block span:not(:first-child) {
  margin-top: -10px;
}

#start-content .row .col-sm:last-child div:last-child span {
  display: block;
  color: #ffffff;
}

#start-content .row .col-sm:last-child div:last-child span:not(:first-child) {
  font-size: 12px;
}

#start-content .row .col-sm:last-child div:last-child span:nth-child(4) {
  font-size: 11px;
}

#start-content .row .col-sm:last-child div:last-child span:last-child {
  font-size: 13px;
}

/* Page de resultats */
#resultat .container > .row {
  align-items: center;
}

#resultat .container .row .col-sm img.result-img {
  float: right;
  width: 300px;
  padding-right: 1rem;
}

#resultat .container > .row .col-sm:last-child .d-flex {
  align-items: center;
}

#resultat .container > .row .col-sm:last-child .d-flex div:first-child {
  margin-right: 0.5rem;
}

/* Logement */
#info-parente-proprietaire {
  top: 25rem;
  left: 10rem;
}

/* Conjoint */
#info-conjoint {
  top: 0;
  left: 11rem;
}

/* Enfants */
#info-enfants {
  top: 0;
  left: 20rem;
}

#info-enfants-age {
  right: 1rem;
}

/* Ressources */
#info-ressources-conjoint {
  top: 0;
  left: 5rem;
}

/* Page recapitulative */
#recapitulatif-desktop {
  max-width: 200px;
  cursor: pointer;
}

#recapitulatif-desktop .d-flex div:first-child {
  font-size: 13px;
  font-family: 'Ubuntu Bold';
  margin-top: 0.5rem;
  text-align: right;
}

#recapitulatif-desktop span {
  display: block;
  text-align: right;
  margin-bottom: -3px;
}

#recapitulatif-desktop img {
  position: absolute;
  right: -17px;
}

@media (max-width: 750px) {
  html {
    overflow-x: hidden;
  }
}

@media (max-width: 625px) {
  #resultat .container .row .col-sm img.result-img {
    width: 250px;
  }
  .wrapper { padding-top:60px; }
}

@media (max-width: 575px) {
  .sim-form {
    border-radius: 0;
  }

  .sim-form .container {
    padding: 3rem;
    padding-bottom: 2rem;
  }

  .sim-form .triangle img {
    float: right;
  }

  .sim-form .form-group .col-sm-8 {
    padding-bottom: 0.5rem;
  }

  .site-address {
    padding-left: 0;
    text-align: center;
  }

  /* Logement */
  #info-parente-proprietaire {
    top: 43rem;
    right: 1rem;
    left: 0;
  }

  /* Conjoint */
  #info-conjoint {
    top: 0;
    left: 0;
  }

  /* Enfants */
  #info-enfants {
    top: 0;
    left: 0rem;
  }

  /* Ressources */
  #info-ressources-conjoint {
    top: 0;
    left: unset;
    right: 0;
  }

  #recapitulatif-mobile {
    margin-bottom: 1rem;
    cursor: pointer;
  }

  #recapitulatif-mobile div {
    text-align: center;
  }

  #recapitulatif-mobile div:first-child {
    font-size: 13px;
    font-family: 'Ubuntu Bold';
  }

  #recapitulatif-mobile div:last-child {
    margin-top: 1rem;
  }

  #recapitulatif-mobile span {
    display: block;
    margin-bottom: -3px;
  }

  #recap-component {
    bottom: -5rem;
    left: 15px;
  }

  #recap-component > div:first-child {
    border-top-left-radius: 0;
  }

  #recap-component > div:last-child {
    border-bottom-left-radius: 0;
  }

  #start #boulier {
    font-size: 1.4rem;
    width: auto;
    background: none;
    position: static;
    z-index: 0;
  }

  #start #boulier [class='d-sm-none'] {
    background-color: #1c4d92;
    text-align: center;
    padding: 1rem 0;
  }

  #start #boulier,
  #start #boulier .row {
    height: auto;
  }

  #start #boulier .row .col {
    max-width: 100% !important;
  }

  #resultat .container > .row .col-sm:last-child .d-flex {
    max-width: 250px;
    margin: auto;
  }

  #resultat .container .row .col-sm:first-child {
    text-align: center;
  }

  #resultat .container .row .col-sm img.result-img {
    float: none;
    padding-right: 0;
  }
}

.wrapper {
  margin: auto;
}

.child-ages-entry {
  display: inline-block;
  margin-top: 45px;
}

.select > div > div:last-child {
  position: absolute;
  z-index: 1;
}

.select-sep {
  display: none;
  height: 1.5rem;
  margin-top: -1.5rem;
  background-color: #f7f8fa;
}

.select-end-border {
  display: none;
  padding: 0.5rem;
  margin-top: -1.25rem;
  border-radius: 3rem;
  background-color: #f7f8fa;
}

.select-end-border span {
  visibility: hidden;
}

.select > div {
  display: inline-block;
}

.select > div * {
  cursor: pointer;
}

.select > div .select-selection {
  position: relative;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  padding-left: 1rem;
  border-radius: 3rem;
  color: #495057;
  background-color: #f7f8fa;
}

.select > div .select-selection span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.select > div .select-selection span:last-child {
  margin-left: auto;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.select > div .select-options {
  position: relative;
  max-height: 105px;
  overflow-y: scroll;
  overflow-x: hidden;
  text-overflow: ellipsis;
  background-color: #f7f8fa;
}

.select > div .select-options label {
  font-family: 'Ubuntu';
  display: block;
  padding: 0.5rem;
  padding-left: 1rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select > div .select-options div:hover,
.select > div .select-options div label:hover {
  background-color: #dedfe1;
}

.select > div .select-options div input {
  display: none;
}

.child-ages-entry .form-group {
  width: 100%;
  float: left;
  margin-bottom: 13px;
}

.child-ages-entry .form-group span.unit {
  font-size: 1.1em;
  position: relative;
  top: 9px;
  left: 9px;
}
.child-ages-entry .form-group label {
  font-size: 15px;
  font-family: Ubuntu bold;
  margin-bottom: 10px;
}

.child-ages-entry .form-group > input.form-control[type='number'] {
  width: 44px;
  height: 40px;
  border: none;
  background: #f7f8fa;
  border-radius: 23px;
  text-align: center;
  font-size: 15px;
  padding-left: 22px;
  padding-right: 10px;
  margin: auto;
}

/* telephone */
.contact-block-container {}
.contact-block-container a {
  text-decoration:none;
}
.contact-block-container a .contact-block {
  text-align: left;
  margin-bottom:20px;
}
.contact-block-container a .contact-block .phone-title {
    font-size: 1em !important;
    font-weight: bold;
    color: #a50f78;
    margin-bottom:0;
}
.contact-block #phone-banner {
    width: 100%;
    max-width: 100%;
    margin: 5px 0;
}

@media all and (max-width: 782px) {
  .contact-block .phone-title {
    font-size: 1.1em !important;
  }
  .contact-block-container a .contact-block {
    text-align:center;
  }
}

@media all and (max-width: 782px) {
  .contact-block #phone-banner {
    width: 90%;
  }
}
.contact-block .ouverture {
  color: #057c05;
  font-size:11px;
}
.contact-block .service {
  color: #897c7c;
  font-style: italic;
  font-size:11px;
}

#papernest label , #papernest p {
  text-align:center;
}
#papernest .form-check-group {
  width:300px;
  margin:auto;
}

#meeting label , #meeting p {
  text-align:center;
  display:inherit;
}
#meeting .time-slot-item {
  width:300px;
  margin:auto;
  margin-bottom:10px;
}
#meeting .time-slot-item:hover ,#meeting .selected {
  background:#052460
}
#meeting .time-slot-item:hover span ,#meeting .selected span {
  color:#fff;
}
/* Form validation styling */
.form-control.ng-invalid.ng-touched {
  border: 2px solid #dc3545 !important; /* Red border for invalid fields */
  background-color: #fff5f5; /* Light red background */
}

.form-control.ng-invalid.ng-touched:focus {
  border: 2px solid #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control.ng-valid.ng-touched:not(.ng-empty) {
  border: 2px solid #28a745 !important; /* Green border for valid fields */
}

#contact small {
  margin-left:20px;
}