main::before {
  background-image: url(../img/background-img.avif);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

@media (max-width: 767.98px) {
  header.sticky-top {
    position: static !important;
  }
}
.divider-margin {
  margin: 3rem 0 2rem 0;
}

.connection-title {
  margin-bottom: 1.5rem;
}

.main-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.form-control {
  border: 1px solid var(--cipav-blue);
}

.border-error {
  border-radius: 0.25rem;
  border: 1px solid var(--cipav-error);
  background: #fff;
}

.main-section::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.card-body {
  flex-direction: column;
}

@media (min-width: 768px) {
  .card.mb-3.mb-md-0 {
    margin-bottom: 0;
  }
}

.card-body h4 {
  margin-top: 0;
  padding-top: 1rem;
}

.right-section {
  justify-content: flex-end;
  align-items: center;
}

.right-section img {
  max-width: 50%;

  height: auto;
  margin-bottom: 1rem;
}

.welcome-section {
  width: 100%;
  margin-top: 4rem;
}

.icon-top-right {
  position: relative;
  display: inline-block;
  top: 0;
  right: 1rem;
  color: var(--cipav-blue);
}

@media (max-width: 768px) {
  .main-section {
    padding: 1rem;
  }
  .welcome-section {
    margin-top: 2rem;
    width: 100%;
    height: auto;
  }
}

@media (min-width: 991px) {
  .welcome-section {
    width: 90%;
  }
  .right-section,
  .login-section {
    padding-right: 3rem;
  }
}

.forgot-password {
  color: #2c292d;

  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
  margin-top: 1rem;
}

.checkbox-border {
  border-color: rgb(2, 124, 147);
}
.checkbox-border:checked {
  background-color: rgb(2, 124, 147);
  border-color: rgb(2, 124, 147);
}

.text-error {
  margin: 0;
  font-style: italic;
  color: var(--cipav-error);
}

/* Error messages with black text for alert-danger backgrounds */
.error-message-black {
  color: #000000;
  font-style: normal;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.error-message-bold {
  font-weight: bold;
}

.info-block-cipav {
  background-color: var(--cipav-statut-green); /* #D2EFEB */
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 2.5rem;
  border: 1px solid #027c93;
}

/* Inline error icons */
.error-icon-inline {
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.text-divider span {
  background-color: #ffffff;
  padding: 1em;
}

.text-divider:before {
  content: " ";
  display: block;
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #f7f7f7;
}
.france-connect-question {
  max-width: 100%;
  height: auto;
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
  text-align: center;
  margin: 12px;
}

/* register style*/

.cancel-top-right {
  position: relative;
  display: inline-block;
  top: 0;
  bottom: 0.5rem;
  left: 1.75rem;
  right: 0;
}

.text-plain-divider {
  margin: 1rem 0;
  line-height: 0;
  text-align: center;
}

.section-divider {
  width: 1px;
  height: 90%;
  background-color: #d9d9d9;
}

.text-divider {
  display: flex;
  align-items: center;
  --text-divider-gap: 1rem;
}

.text-divider::before,
.text-divider::after {
  content: "";
  height: 1px;
  background-color: #d9d9d9;
  flex-grow: 1;
}

.text-divider::before {
  margin-right: var(--text-divider-gap);
}

.text-divider::after {
  margin-left: var(--text-divider-gap);
}

.france-connect {
  width: 15rem;
}

footer a {
  padding: 0 0.5rem 0 0.5rem;
}

footer {
  background: #e8e8e8;
  position: relative;
}

.footer-line::before {
  content: "";
  height: 1px;
  background-color: #818283;
  width: 90%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* .divider {
  height: 1px;
  background-color: #818283;
  width: 90%;
  margin: 0 auto;
} */

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

.center ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.25rem;
}

.center ul li {
  display: inline-flex;
  align-items: center;
}

.center ul li a {
  padding: 0 0.5rem;
}

.center ul li.separator {
  padding: 0 0.25rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile optimizations - screen up to 576px */
@media (max-width: 576px) {
  .center ul {
    gap: 0.25rem;
  }

  .center ul li a {
    font-size: 1.2rem;
    padding: 0.2rem 0.25rem;
  }

  .center ul li.separator {
    font-size: 1.2rem;
  }

  .social-icon img {
    height: 22px;
    width: 22px;
    object-fit: contain;
  }
}

.img-cipav {
  min-width: 70%;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.img-cipav-div {
  padding-left: 1rem;
}

.card {
  padding: 3rem;
  border: none;
}

.container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.position-relative {
  position: relative;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -10px);
  background: black;
  border: 1px solid black;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5px;
  z-index: 100;
  width: 40rem;
}

.tooltip-text {
  color: #ffffff;
  text-align: center;
}
/* Skip links style */
#skiplinks {
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

#skiplinks:focus-within {
  opacity: 1;
  height: 100%;
  width: 100%;
}

/* accessibility style */

.a11y-menu {
  cursor: pointer;
  color: white;
  position: relative;
}
.a11y {
  padding: 15px 10px 15px 10px;
  height: 56px;

  .font-size {
    margin-left: auto;
    margin-right: 10px;
  }
}
.dyslexie {
  background: url("../img/picto-dyslexie.png") no-repeat scroll 10px 9px
    transparent;
}

.label {
  padding-left: 42px;
  font-family: "OpenDyslexic";
}

.toggle-menu {
  position: absolute;
  top: 100%;
  min-width: 160px;
  z-index: 500;
  box-shadow: 0px 18px 22px rgba(51, 51, 51, 0.25);
  border-radius: 15px;
  background-color: white;

  .toggle-menu-item {
    height: 45px;
    padding-top: 5px;
    margin: auto;
  }
}

.btn-reset {
  border-left: 1px solid black;
  border-right: 1px solid black;
  border-top: none;
  border-bottom: none;
  background-color: transparent;
}

.btn-transparent {
  border: none;
  background-color: transparent;
}
@media (max-width: 576px) {
  .toggle-menu {
    transform: translateX(-50%);
    right: auto;
    box-sizing: border-box;
    border-radius: 10px;
  }

  /* Adjust the button size */
  .a11y-menu button {
    padding: 5px;
  }

  /* Adjust icon sizes */
  .a11y-menu svg {
    width: 24px;
    height: 24px;
  }
}

.alertes-container {
  margin-bottom: 1rem;
}

/* Common alert banner style */

.alerte-icon {
  margin-left: 3rem;
  margin-right: 3rem;
}

.alerte-text {
  text-align: left;
  line-height: 1.4;
}

.alerte-bandeau {
  padding: 1rem;
  text-align: left;
  line-height: 1.4;
  display: flex;
}

.alerte-critique {
  background-color: #f4d8dd;
  color: #a10d59;
}

.alerte-avertissement {
  background-color: #01778f;
  color: #ffffff;
}

.alerte-information {
  background-color: #fff;
  color: #01778f;
}

.alerte-default {
  background-color: #eeeeee;
  color: #000000;
}

/* Link styling within alert banners */
.alerte-bandeau a {
  text-decoration: underline;
  color: inherit;
}

/* Mobile version: hide icon if needed (if alerts contain an icon) */
@media (max-width: 768px) {
  .alerte-bandeau .alerte-icon {
    display: none;
  }
}

/* tooltip for tablette screens */
@media (max-width: 1560px) {
  .tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -10px);
    background: black;
    border: 1px solid black;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    z-index: 100;
    width: 16rem;
  }
}
/* tooltip for smaller screens */
@media (max-width: 768px) {
  .tooltip-content {
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
    height: fit-content;
    width: 19rem;
  }
}

.x-cloak {
  display: none !important;
}

div > a {
  text-decoration: none;
}

/* Custom widths for different breakpoints */

.w-xs-100 {
  width: 100%;
}
@media (min-width: 576px) {
  .w-sm-100 {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .w-md-75 {
    width: 75%;
  }
}

@media (min-width: 992px) {
  .w-lg-75 {
    width: 75%;
  }
}

/* Neutralise l'apparence native du <dialog> */
.email-validation-dialog {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 550px;
  width: 90%;
  overflow: visible;
}

/* Backdrop semi-transparent */
.email-validation-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}
