/* CSS for bootstrap theme */

/* Flexbox sticky footer layout */
html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

#wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

#wrap > * {
  flex-shrink: 0;
}

.fr-follow,
footer.fr-footer {
  flex-shrink: 0;
  width: 100%;
}

/* Center title text */
.fr-text--center {
    text-align: center;
}

/* Mail sent help links */
.mail-help-links {
    text-align: center;
}

/* OTP Input Styles */
.otp-mail-icon {
    font-size: 80px;
    color: #000091;
}

.otp-inputs-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-input {
    width: 40px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    border-radius: 5px;
    background-color: #EEEEEE;
    border: none;
    font-weight: bold;
}

.otp-input:focus {
    outline: 2px solid #000091;
    outline-offset: 2px;
}

.btn-full-width {
    width: 100%;
}

.otp-help-list {
    text-align: left;
    list-style-type: disc;
    padding-left: 20px;
}

/* Login part to be improved */
.card-flex {
    flex-direction: column;
    display: flex;
}

/* Sidenav profile illustration images */
.sidenav-profile-illustration {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.v-separation {
    display: none;
}
.h-separation {
   width: 100%;
   text-align: center;
   border-bottom: 1px solid #000;
   line-height: 0.1em;
   margin: 40px 0 40px;
}

.h-separation span {
    font-family: Montserrat, WorkSans;
    background:#fff;
    padding: 0 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Separator "ou" styles */
.separator-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.separator-line {
    flex: 1;
    height: 1px;
    background-color: var(--border-default-grey, #ddd);
    align-self: center;
}

.fr-text.separator-text {
    color: var(--text-mention-grey, #666);
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    position: relative;
    top: 1px;
}

/* Login page layout - reduce DSFR default gutters */
.login-columns.fr-grid-row--gutters > [class*="fr-col"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.login-sidenav {
    background-color: var(--background-alt-blue-france);
    padding: 1rem;
}

.fr-card {
  border-radius: 8px;
}

/* Login cards (no border-radius, no border) */
.login-card {
    border-radius: 8px;
}

.login-card--outlined {
    background-color: var(--background-default-grey, #fff);
    border: 1px solid var(--border-default-grey, #ddd);
}

/* Login form fieldset spacing */
.login-form .fr-fieldset__element + .fr-fieldset__element {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .login-sidenav {
        padding: 1.5rem;
    }
}
.img-tete-droite {
    display: none;
}
.img-tete-gauche {
    height: 6em;
    float: none;
    margin: 34px auto;
}
.img-tete-gaucche-frr {
    margin-top: 18px!important;
}
@media(min-width:1150px) {
    .img-tete-gauche, .img-tete-droite {
    margin-left: 50px!important;
    margin-right: 50px!important;
  }
}
@media(min-width:1080px) {
    /* Keep vertical layout - removed horizontal flex-direction */
    .card-flex {
        flex-direction: column;
    }
    .authDial {
        width: 100%;
        align-content: center;
    }
    .button-fc-description {
        font-family: WorkSans;
        font-style: normal;
        font-weight: normal;
        font-size: 16px;
        line-height: 19px;
    }
    .button-fc-description p {
        margin-top: 5px;
    }
    /* Hide vertical separator - using horizontal separator instead */
    .v-separation {
        display: none;
    }
    .fr-hr-or{
        display: none!important;
    }
    .h-separation {
        display: block;
    }
}
/* END of Login part to be improved */

.button-fc {
    margin-top: 20px;
    margin-bottom: 5px;
}
.button-fc {
    width: 245px;
    height: 56px!important;
    box-sizing: border-box;
    background: url(/static/anahmprSkin/images/franceconnect-bouton.svg);
    background-transition: .3s ease-out;
    vertical-align: middle;
}
.button-fc:hover {
    background: url(/static/anahmprSkin/images/franceconnect-bouton-hover.svg);
    background-transition: .3s ease-out;
    background-size: 100% 100%;
    color: transparent!important;
}



/* for dsfr */
.fr-img-max-height {
  height: 5.625rem !important;
}

.fr-alert.fr-alert--negative::before {
  -webkit-mask-image: url("../icons/system/fr--error-fill.svg");
  mask-image: url("../icons/system/fr--error-fill.svg");
  /* background-image: url("../icons/system/fr--error-fill.svg")!important; */
  content: "";
}

.fr-alert.fr-alert--negative {
  background-image: linear-gradient(0deg, var(--border-plain-error), var(--border-plain-error)), linear-gradient(0deg, var(--border-plain-error), var(--border-plain-error)), linear-gradient(0deg, var(--border-plain-error), var(--border-plain-error)), linear-gradient(0deg, var(--border-plain-error), var(--border-plain-error)), linear-gradient(0deg, var(--background-flat-error), var(--background-flat-error));
}

.fr-alert.fr-alert--positive::before {
  /* background-image: url("../icons/system/fr--success-fill.svg"); */
  content: "";
  -webkit-mask-image: url("../icons/system/fr--success-fill.svg");
  mask-image: url("../icons/system/fr--success-fill.svg");
}

.fr-alert.fr-alert--positive {
  background-image: linear-gradient(0deg, #18753c, #18753c), linear-gradient(0deg, #18753c, #18753c), linear-gradient(0deg, #18753c, #18753c), linear-gradient(0deg, #18753c, #18753c), linear-gradient(0deg, #18753c, #18753c);
}

.default-background {
  background: var(--background-alt-blue-france)
}

.center-text {
  text-align: center !important;
}
.right-text {
  text-align: right !important;
}

/* Row with "Se souvenir de moi" on the left and "Mot de passe oublié" on the right */
.remember-forgot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Make fr-link with right-text align properly */
.fr-link.right-text {
  display: inline-block;
  width: 100%;
}
.left-text {
  text-align: left !important;
}

.center-content {
  justify-content: center !important;
}
/* when having a linke wrapping a button, this will lead to a background image like a HR which is not whanted */
.href-no-background {
  background-image: none !important;
}

.mandatory-color {
  color: red;
}

iframe {
  width: 1px;
  height:: 1px;
}

/* Logout Modal Styles - using DSFR utilities where possible */
.logout-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logout-illustration-img {
  max-width: 250px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .logout-illustration-img {
    max-width: 200px;
  }
}

/* to allow breadcrumb to be sticked right under the menu */
main.fr-container {
  padding-top: 0px !important;
}

.fr-breadcrumb .fr-collapse {
  margin-left: -1rem !important;
}

/* Cookie consent banner */
.fr-consent-banner--hidden {
  display: none;
}

.fr-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background-color: var(--background-default-grey);
  padding: 1.5rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.16);
  border-top: 2px solid var(--border-default-blue-france);
}

.fr-consent-banner__content {
  margin-bottom: 1rem;
}

.fr-consent-banner__buttons {
  margin: 0;
  padding: 0;
}

/* Cookie consent manager in modal */
.fr-consent-manager {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fr-consent-manager__header {
  border-bottom: 2px solid var(--border-default-blue-france);
  padding-bottom: 1rem;
}

.fr-consent-service {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-default-grey);
}

.fr-consent-service:last-child {
  border-bottom: none;
}

.fr-consent-service__title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.fr-consent-service__desc {
  font-weight: normal;
  color: var(--text-mention-grey);
}

.fr-consent-service__radios {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.fr-consent-service__collapse {
  margin-top: 0.5rem;
}

.fr-consent-service__collapse-btn {
  background: none;
  border: none;
  color: var(--text-action-high-blue-france);
  cursor: pointer;
  padding: 0;
  font-size: 0.875rem;
  text-decoration: underline;
}

.fr-consent-service__collapse-btn:hover {
  text-decoration: none;
}

.fr-consent-service__details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.fr-consent-service__details--expanded {
  max-height: 500px;
  margin-top: 0.75rem;
}

.fr-consent-service__details code {
  background-color: var(--background-alt-grey);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
}

/* Mail template max-width */
.mail-wrapper {
  max-width: 640px !important;
  background-color: white;
}

body .mail-body {
}

body .mail-footer {
  background-color: var(--background-alt-grey);
}

/* Align government links at the bottom of footer body */
.fr-footer__content {
  align-self: flex-end;
}

/* Ensure footer buttons look like links (same hover as <a> tags) */
.fr-footer__bottom-link[type="button"]:hover {
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* Ensure footer has its own background (not inherited from parent) */
footer.fr-footer {
  background-color: var(--background-default-grey);
}

@media (max-width: 768px) {
  .fr-footer__partners {
    display: none;
  }
}

@media (min-width: 768px) {
  .fr-header__tools {
    display: none;
  }
  /* TODO fil d'ariane et menu */
}

/* Password policy: blue info icon as bullet */
.ppolicy ul {
  list-style: none;
  padding-left: 0;
}

.ppolicy li {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}

.ppolicy .fr-text-default--info:before {
  content: "\00a0"
}

.ppolicy li > .fr-icon-info-fill {
  color: var(--text-default-info);
  font-size: 1rem;
}

/* Hide maxsize feedback icon */
#ppolicy-maxsize-rule {
  display: none;
}

/* Invert label and value for allowedspechar (+ combinator ignores text nodes like &nbsp;) */
#ppolicy-allowedspechar-rule {
  display: flex;
  align-items: center;
}

#ppolicy-allowedspechar-feedback + span {
  order: 2;
}

#ppolicy-allowedspechar-feedback + span + span {
  order: 1;
}

/* AccountBrowser plugin */
.ab-hidden {
  display: none;
}

.account-row {
  cursor: pointer;
}

