:root {
  --White: #fff;
  --color-secondary-900: #171795;
}

/* ***************************************************** */
/* ******************** Styles 'Utils' ***************** */
/* ***************************************************** */

.text-centered h2 {
  text-align: center;
}

.card-container {
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: var(--White);
  border-radius: 8px;
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
  .card-container {
    padding: 32px 16px;
  }
}
.--card-container_small {
  max-width: 640px;
}

.card-container-title {
  color: var(--dt-font-color_main-ligth);
  font-weight: 700;
  margin-bottom: 32px;
  font-size: 22px;
}
@media (max-width: 768px) {
  .card-container-title {
    margin-bottom: 24px;
    font-size: 18px;
  }
}

.card-container-title-important {
  color: var(--color-secondary-900);
}

.gap-v-8 {
  gap: 8px;
}

.label-text {
  font-family: var(--dt-font_family-secondary);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
}

/* ***************************************************** */
/* ************** Styles pour 'header' ***************** */
/* ***************************************************** */

/* Styles globaux */
.login-pf-page {
  padding-top: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .login-pf-page {
    padding-top: 0;
  }
}

.login-pf-body {
  background-color: rgba(246, 245, 245, 1);
}

.page-header {
  text-align: center;
  padding: 13px 32px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .page-header {
    padding: 16px;
    margin-bottom: 16px;
  }
}

.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}
@media (max-width: 768px) {
  .header-logo {
    margin: 0 auto;
    padding: 0;
  }
}

#kc-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  #kc-content {
    margin-bottom: 16px;
  }
}

#kc-content[hidden] {
  display: none;
}

#kc-content-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 944px;
  width: 100%;
  gap: 40px;
}
@media (max-width: 768px) {
  #kc-content-wrapper {
    max-width: unset;
    gap: 24px;
  }
}

.kc-form-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.kc-form-buttons-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.form-group-container {
  display: flex;
  flex-direction: column;
}

h1 {
  color: var(--dt-font-color_main-ligth);
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  h1 {
    font-size: 27px;
    margin-bottom: 24px;
  }
}

h2 {
  color: var(--dt-font-color_main-ligth);
  margin-bottom: 32px;
  font-size: 22px;
}
@media (max-width: 768px) {
  h2 {
    margin-bottom: 24px;
    font-size: 18px;
  }
}

#help-section h2 {
  margin-bottom: 24px;
}

a {
  width: fit-content;
  text-decoration: none;
}

.link-with-left-icon {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0px;
  font-size: 16px;
}

.link-with-left-icon p:hover {
  text-decoration: underline;
}

.main-content-wrapper {
  padding: 0px 32px;
  flex-grow: 1;
}
@media (max-width: 768px) {
  .main-content-wrapper {
    padding: 0px 16px;
  }
}

/*** classes pour les formulaires ***/

.form-group-username {
  margin-bottom: 24px;
  max-width: 290px;
}

.form-group-password {
  max-width: 290px;
}

@keyframes loading-btn-anim {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0%;
    left: 100%;
  }
}
button.loading {
  position: relative;
}
button.loading:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  animation: loading-btn-anim 1s ease infinite;
  background-color: #000;
  opacity: 0.1;
}

/* ***************************************************** */
/* ******* Styles pour 'Conteneur de connexion' ******** */
/* ***************************************************** */

/* Conteneur du formulaire */
#login-form-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  gap: 64px;
}
@media (max-width: 768px) {
  #login-form-container {
    flex-direction: column;
    gap: 24px;
  }
}

.login-form-part {
  width: 50%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .login-form-part {
    width: 100%;
  }
}

.login-separator-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 768px) {
  .login-separator-wrapper {
    flex-direction: row;
  }
}

.login-separator {
  width: 1px;
  background-color: #cbcbcb;
  flex-grow: 1;
}
@media (max-width: 768px) {
  .login-separator {
    width: 100%;
    height: 1px;
  }
}

.login-separator-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 133%;
  font-family: var(--dt-font_family-secondary);
  margin: 16px 2px;
}
@media (max-width: 768px) {
  .login-separator-text {
    font-size: 20px;
    margin: 0px 16px;
  }
}

/* Styles pour les champs de formulaire */
.form-group-username input,
.form-group-password .input-group input {
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.form-group-password label,
.form-group-username label {
  color: var(--dt-font-color_main);
  font-family: var(--dt-font_family-main);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.input-group {
  position: relative;
  display: flex;
  margin: var(--dt-input-margin);
}

.input-group input {
  padding: 10px;
  padding-right: 40px;
  margin: 0;
}

.input-group input[type="password"],
.input-group input[type="text"] {
  padding-right: 50px;
}

.input-group-append {
  position: absolute;
  right: 0px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin: 0;
  min-width: 56px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  color: var(--dt-color-secondary);
}

.input-group-append i {
  font-size: 14px;
  line-height: 14px;
}

.input-group-append span {
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 12px;
}

.button-container {
  display: flex;
  justify-content: flex-start;
}
@media (max-width: 768px) {
  .button-container {
    justify-content: center;
  }
}

.button-container button,
.form-group-container button,
.form-group-container input[type="submit"] {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 0px;
}

.button-container button p,
.form-group-container input[type="submit"] p,
.button-container button i,
.form-group-container input[type="submit"] i,
.button-container button span,
.form-group-container input[type="submit"] span {
  line-height: 150%;
  font-weight: 400;
}

.push-top-24 {
  margin-top: 24px;
}

/* Style pour button avec un aspect de lien */
.button-link-with-left-icon {
  font-family: var(--dt-font_family-main);
  font-size: var(--dt-font_size-default);
  font-weight: var(--dt-font_weight-default);
  line-height: var(--dt-font-line_height-default);
  padding: 0px;
  margin: 0;
  border-radius: 4px;
  border-width: 0;
  background-color: transparent;
  color: var(--dt-link-color-default);
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.button-link-with-left-icon:hover {
  color: var(--dt-link-color-hover);
}

.button-link-with-padding {
  padding: 12px 0px;
}

/* Style pour fc btn */
#kc-social-providers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 768px) {
  #kc-social-providers {
    align-items: center;
  }
}

#social-franceconnect-idp {
  line-height: 0px;
  height: fit-content;
  margin-bottom: 8px;
}

#social-franceconnect-idp img {
  content: url("../img/franceconnect-btn-principal.svg");
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

#social-franceconnect-idp:hover img {
  content: url("../img/franceconnect-btn-principal-hover.svg");
}

#social-franceconnect-help {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: baseline;
}

#social-franceconnect-help p {
  text-decoration: underline;
  line-height: 100%;
}

#social-franceconnect-help p:hover {
  text-decoration: none;
}

/* ***************************************************** */
/* ************* Styles pour 'error-message' *********** */
/* ***************************************************** */

/* Styles pour le message d'erreur */
.error-message-text {
  color: var(--dt-color-danger);
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: baseline;
}

.error-message-text p,
.error-message-text i {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
}

.input-with-error {
  border: var(--dt-input-border);
  box-shadow: var(--dt-input-border_color-error_default) 0 0 0 var(--dt-input-border_width-error_default);
}

.hidden {
  display: none;
}

/* ***************************************************** */
/* ******** Styles pour 'Pas encore inscrit ?' ********* */
/* ***************************************************** */

/* Styles pour les liens avec aspect bouton et icône */
.link-button {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid var(--dt-color-primary);
  color: var(--dt-font-color_main-ligth);
  text-decoration: none;
}
@media (max-width: 768px) {
  .link-button {
    margin: auto;
  }
}

.link-button:hover {
  background-color: var(--dt-color-primary);
  color: var(--dt-font-color_main-ligth);
}

.link-button-secondary {
  border: 1px solid var(--dt-color-secondary);
  background: var(--White);
  color: var(--dt-color-secondary);
}

.link-button-secondary:hover {
  background-color: var(--dt-color-secondary);
  color: var(--White);
}

.link-button-secondary:hover a {
  color: var(--White);
  filter: brightness(0) invert(1);
}

/* ***************************************************** */
/* ******** Styles pour 'Aide à la connexion' ********* */
/* ***************************************************** */

#contact-toggle-wrapper {
  padding: 8px 8px 8px 0px;
}

#contact-content {
  background-color: var(--dt-background_color-grey);
  border-radius: 4px;
  font-size: 16px;
  line-height: 24px;
  color: var(--dt-font-color_main);
}

#contact-content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
  padding: 0;
}

.contact-content-expanded #contact-content {
  height: fit-content;
  padding: 16px;
  overflow: visible;
  transition: padding-bottom 0.2s ease;
}

.contact-content-expanded #contact-toggle-wrapper {
  background-color: var(--dt-background_color-grey_light);
}

.contact-content-hidden #contact-content {
  height: 0px;
  padding: 0px;
  overflow: hidden;
  transition: padding-bottom 0.2s ease;
}

.contact-content-hidden #contact-toggle-wrapper {
  background-color: transparent;
}

.help-link-content {
  margin-left: 1px;
}

/* ***************************************************** */
/* ******** Styles pour 'Error User  & pass' *********** */
/* ***************************************************** */

.error-message-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: var(--dt-color-danger);
  padding: 16px 24px;
  margin: 0px 0px 32px 0px;
  border: 2px solid var(--dt-color-danger);
}
@media (max-width: 768px) {
  .error-message-head {
    margin-bottom: 24px;
  }
}

.info-message-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: var(--dt-color-secondary);
  padding: 16px 24px;
  background: #e7eaed;
  border: 1px solid var(--dt-color-secondary);
  border-radius: 4px;
}
@media (max-width: 768px) {
  .info-message-head {
    margin-bottom: 24px;
  }
}

.error-text {
  font-size: 16px;
}

/* ***************************************************** */
/* ******** Styles pour 'Aller sur msa.fr' ************* */
/* ***************************************************** */

.msa-button-container {
  display: flex;
  margin-top: 20px;
  justify-content: center;
}
@media (max-width: 768px) {
  .msa-button-container {
    margin-top: 32px;
  }
}

/* ***************************************************** */
/* **************** Styles pour 'footer' *************** */
/* ***************************************************** */

.footer-container {
  display: flex;
  padding: 16px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .footer-container {
    padding: 8px 8px 24px 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
  }
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  line-height: 16px;
  gap: 8px;
  flex: 1 0 0;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

.footer-link {
  padding: 8px;
  color: var(--dt-font-color_main-ligth);
  text-align: center;
  font-family: var(--dt-font_family-main);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
  margin: 0 8px;
}
@media (max-width: 768px) {
  .footer-link {
    width: 100%;
    box-sizing: border-box;
  }
}

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

/* ***************************************************** */
/* ************** Styles Responsive Mobile ************* */
/* ***************************************************** */

@media (max-width: 360px) {
  .footer-link:first-child,
  .footer-link:last-child {
    display: block;
  }

  .footer-link:first-child {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
}

/* ***************************************************** */
/* ************** Styles Page d'erreur ***************** */
/* ***************************************************** */

.error-title {
  color: #000;
  font-size: 24px;
  margin-bottom: 20px;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 64px;
}
@media (max-width: 768px) {
  .error-content {
    flex-direction: column;
    gap: 24px;
  }
}

.error-content-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.error-image {
  width: 100px;
  height: auto;
}

/* ***************************************************** */
/* ************* Styles pour 'card alert kclk' ********* */
/* ***************************************************** */

.alert-card-content {
  max-width: 944px;
  width: 100%;
  margin: auto;
  border-radius: 4px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error {
  background: rgba(214, 6, 16, 0.05);
  border: 1px solid var(--dt-color-danger);
  color: var(--dt-color-danger);
}

.alert-info {
  background: #e7eaed;
  border: 1px solid var(--dt-color-secondary);
  color: var(--dt-color-secondary);
}

.pf-c-alert__icon {
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
}

.pf-c-alert__title {
  line-height: 150%;
  font-weight: 400;
}

.pf-c-alert__icon,
.pf-c-alert__title {
  display: inline-block;
  vertical-align: middle;
}

#alert-info-account-locking {
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  #alert-info-account-locking {
    margin-bottom: 24px;
  }
}

#alert-info-franceconnect {
  margin: 0;
}

/**********************************************************************************/
/***************************** OU TROUVER MON IDENTIFIANT *************************/
/**********************************************************************************/
#msa-aide-identifiant {
  margin: 0px auto 32px auto;
  max-width: 944px;
}

#msa-aide-identifiant h2 {
  margin-bottom: 0px;
}

.help-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vitale-card-wrapper img {
  width: 244px;
  height: 208px;
  display: block;
}

.separator {
  height: 1px;
  border: none;
  border-top: 1px solid var(--dt-background_color-grey);
}

button.button-secondary {
  display: block;
  border: 1px solid var(--dt-color-primary);
  color: var(--dt-font-color_main);
  background-color: transparent;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
@media (max-width: 768px) {
  button.button-secondary {
    margin: auto;
  }
}

button.button-secondary.btn-icon-left i {
  margin-right: 8px;
}

button.button-secondary:hover,
button.button-secondary:focus {
  background-color: var(--dt-color-primary);
}

/* ******************************************* */
/* ************* Classes utilitaires ********* */
/* ******************************************* */
.gap-32 {
  gap: 32px;
}

.gap-48 {
  gap: 48px;
}

.gap-8 {
  gap: 8px;
}

.gap-v-content {
  gap: 40px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .gap-v-content {
    gap: 24px;
  }
}

.color-main {
  color: var(--dt-font-color_main);
}

.color-main-vlight {
  color: var(--dt-font-color_main-very_light);
}

.gap-v-24 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.custom-width-input {
  width: 200px;
}

/* ***************************************************** */
/* ** Styles pour 'popup-Où trouver mon identifiant' *** */
/* ***************************************************** */

.popup {
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
  .popup {
    padding: 0px 16px;
  }
}

.popup-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 700px;
  padding: 64px 24px 24px 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.3);
}

.close {
  cursor: pointer;
  position: absolute;
  padding: 12px;
  right: 24px;
  top: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%; /* cercle */
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px; /* La taille de la croix */
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.25);
}

.close:hover {
  background: #e6e6e6;
}

.popup h2 {
  margin-bottom: 0;
}

.popup-buttons {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.hidden-element {
  visibility: hidden;
  position: absolute;
}

.button-submit {
  display: flex;
  padding: 12px 24px;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  border: 1px solid var(--dt-color-primary);
  color: var(--dt-font-color_main-ligth);
  background-color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}
@media (max-width: 768px) {
  .button-submit {
    margin: auto;
  }
}

.button-submit:hover {
  background-color: var(--dt-color-primary);
  color: var(--dt-font-color_main-ligth);
}

.button-content-right {
  display: flex;
  float: right;
}

.title-content {
  margin-bottom: 80px;
}

/* ***************************************************** */
/* ********** Styles pour 'email-code-form' ************ */
/* ***************************************************** */

#kc-username {
  display: none;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.code-validity-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.text-centered {
  text-align: center;
}

.broken-words {
  word-break: break-word;
}

.notice-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  font-size: 0.9em;
}

.notice-container p {
  color: var(--dt-font-color_main-ligth);
  font-family: var(--dt-font_family-main);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
}

.--self-align-center {
  align-self: center;
}

.info-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  align-self: stretch;
}

.email-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
@media (max-width: 768px) {
  .email-code-container {
    gap: 24px;
  }
}

.input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  align-self: stretch;
}

.input-section input {
  display: flex;
  padding: 8px;
  align-items: flex-start;
  flex: 1 0 0;
  width: 80px;
}

.input-email-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.form-buttons-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.centered-column-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.centered-row-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 768px) {
  .centered-row-wrapper {
    gap: 4px;
  }
}

.flex-gap-xl {
  gap: 32px;
}
@media (max-width: 768px) {
  .flex-gap-xl {
    gap: 24px;
  }
}

.flex-gap-lg {
  gap: 24px;
}
@media (max-width: 768px) {
  .flex-gap-lg {
    gap: 20px;
  }
}

.custom-button-valider {
  display: flex;
  padding: 12px 24px;
  align-items: center;
  gap: 8px;
  width: 100px;
}

#form-help-text-after-trusted-device {
  max-width: 640px;
  align-self: center;
}

.banner-success {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border: 1px solid var(--dt-color-primary-700);
  border-radius: 4px;
  color: var(--dt-color-primary-700);
  background: var(--dt-color-primary-100);
}

.banner-error {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border: 1px solid var(--dt-color-error-700);
  border-radius: 4px;
  color: var(--dt-color-error-700);
  background: var(--dt-color-error-100);
}

/* *********************************************************** */
/* ********** Styles pour pages de 'fc-providers' ************ */
/* *********************************************************** */

.flex-center {
  display: flex;
  justify-content: center;
}

.text-700 {
  color: var(--dt-font-color_main-ligth);
  font-weight: 700;
}

.--margin-0 {
  margin: 0;
}
.--margin-bottom-03 {
  margin-bottom: var(--dt-space-03);
}
.--margin-top-05 {
  margin-top: var(--dt-space-05);
}
.--margin-top-00 {
  margin-top: var(--dt-space-00);
}
.--text-S {
  font-size: 14px;
  line-height: 133%;
}
.--text-L {
  font-size: 18px;
  line-height: 133%;
}
.--text-XL {
  font-size: 22px;
  line-height: 133%;
}
@media (max-width: 768px) {
  .--text-XL {
    font-size: 18px;
  }
}
.hint {
  color: var(--dt-font-color_main-ligth);
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  margin-top: 6px;
}

.max-width-input {
  max-width: 290px;
}
