::-moz-placeholder {
  --primary-color: #303751;
  --primary-variant1-color: var(--primary-color);
  --primary-variant2-color: var(--primary-color);
  --secondary-color: #91cdb5;
  --title-border-color: transparent;
  --title-border-height: 0;
  --light-color: #d6d7dc;
  --grey-color: #b7b7b7;
  --lightgrey-color: #e9e9e9;
  --darkgrey-color: #707070;
  --required-color: #af0000;
  --error-color: #af0000;
  --error-light-color: #ffd8d8;
  --disabled-color: #e9e9e9;
  --skeleton-color: #e7e7e7;
  --font-family: "Begum", "sans-serif";
  --activable-font-family: "Clother", "sans-serif";
  --paragraph-font-family: "Work Sans", "sans-serif";
  --border-radius: 0;
  --shadow: 0 4px 10px 0 #00000040;
  --header-height: 7.5rem;
  --input-height: 3.4rem;
  --notify-info-color: #fff;
  --notify-info-bg-color: #0af;
  --notify-success-color: #fff;
  --notify-success-bg-color: #4caf50;
  --notify-warning-color: #fff;
  --notify-warning-bg-color: var(--secondary-color);
}

body,
::before,
::after,
::placeholder {
  --primary-color: #303751;
  --primary-variant1-color: var(--primary-color);
  --primary-variant2-color: var(--primary-color);
  --secondary-color: #91cdb5;
  --title-border-color: transparent;
  --title-border-height: 0;
  --light-color: #d6d7dc;
  --grey-color: #b7b7b7;
  --lightgrey-color: #e9e9e9;
  --darkgrey-color: #707070;
  --required-color: #af0000;
  --error-color: #af0000;
  --error-light-color: #ffd8d8;
  --disabled-color: #e9e9e9;
  --skeleton-color: #e7e7e7;
  --font-family: "Begum", "sans-serif";
  --activable-font-family: "Clother", "sans-serif";
  --paragraph-font-family: "Work Sans", "sans-serif";
  --border-radius: 0;
  --shadow: 0 4px 10px 0 #00000040;
  --header-height: 7.5rem;
  --input-height: 3.4rem;
  --notify-info-color: #fff;
  --notify-info-bg-color: #0af;
  --notify-success-color: #fff;
  --notify-success-bg-color: #4caf50;
  --notify-warning-color: #fff;
  --notify-warning-bg-color: var(--secondary-color);
}

.form-wrapper-horizon-risk-grid,
.form-wrapper-esg-grid {
  display: grid;
  grid-row-gap: 4rem;
}

.form-wrapper-signature-grid {
  display: grid;
  grid-row-gap: 2rem;
  justify-content: center;
}

.form-wrapper-horizon-risk,
.form-wrapper-esg {
  display: grid;
  grid-template-columns: 1fr;
  grid-row-gap: 4rem;
}

.form-wrapper-horizon-risk .radio-line-container,
.form-wrapper-esg .radio-line-container {
  display: flex;
  grid-gap: 1rem 4rem;
  flex-wrap: wrap;
}

.form-wrapper-dof-grid {
  display: grid;
  grid-row-gap: 2rem;
}

.form-wrapper-signature,
.form-wrapper {
  display: grid;
  grid-gap: 1.5rem 3rem;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.form-wrapper-sub {
  display: grid;
  justify-content: inherit;
}

.form-wrapper-sub__label {
  display: grid !important;
  padding-bottom: 0.25rem;
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 2rem;
}

.form-wrapper-sub__input {
  border: var(--darkgrey-color) solid 1px;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  color: var(--primary-color);
  display: grid;
  font-family: var(--activable-font-family);
  font-size: 1rem;
  height: var(--input-height);
  overflow: hidden;
  padding: 0 1rem;
  text-overflow: ellipsis;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
  width: 100%;
}
.form-wrapper-sub__input:global(.flatpickr-input) {
  cursor: pointer;
}
.form-wrapper-sub__input:is(:disabled, :-moz-read-only) {
  background-color: var(--disabled-color);
}
.form-wrapper-sub__input:is(:disabled, :read-only) {
  background-color: var(--disabled-color);
}

.button-wrapper {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: 1fr 2fr;
  justify-content: center;
}

.wrapper-notice {
  align-items: center;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  row-gap: 1rem;
  width: 100%;
}

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

.section-title {
  text-align: center;
  width: -moz-fit-content;
  width: fit-content;
}
.section-title hr {
  background-color: var(--secondary-color);
  border: none;
  border-radius: 2px;
  height: 3px;
  margin: 7px auto;
}

/* Tooltip Element */
.curstom-tooltip {
  position: relative;
  transition: color 0.5s ease;
}

/* Tooltip Content with ::after */
.curstom-tooltip::after {
  content: attr(aria-label); /* Use the aria-label attribute as tooltip content */
  position: absolute;
  bottom: 100%; /* Position above the element */
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 1rem;
  border-radius: var(--border-radius, 0);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  text-align: center;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  width: 23rem;
  z-index: 999;
}

/* Tooltip Arrow */
.curstom-tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(150% - 5px); /* Adjust position to align with ::after */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  top: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 5px solid #222;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 999;
}

/* Show Tooltip on Hover */
.curstom-tooltip:hover::after,
.curstom-tooltip:hover::before {
  opacity: 0.9;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px); /* Slight upward motion for the tooltip */
}

/***** Variables *****/
/***** Components Button *****/
/***** Header *****/
.header {
  align-items: center;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 7.5rem;
  padding-left: 150px;
  padding-right: 150px;
}
@media (max-width: 576px) {
  .header {
    padding-left: 35px;
    padding-right: 35px;
  }
}
.header[data-open] ~ * {
  display: none;
}
meta[name=platform][content="CVE Investissement"] + * .header {
  background-color: #fff;
  color: #000;
}
meta[name=platform][content=mimco] + * .header {
  background-color: transparent;
  color: var(--primary-color);
}

.header__logoContainer {
  display: flex;
}

.header__logoContainer__logo {
  cursor: pointer;
  height: 3rem;
  width: auto;
}

.header__rightContainer {
  display: grid;
  grid-auto-flow: column;
  grid-gap: 30px;
}
.header__rightContainer[data-connected] {
  grid-gap: 20px;
}
@media (max-width: 1200px) {
  .header__rightContainer {
    display: none;
  }
}

.header__rightContainer__subContainer {
  display: grid;
  grid-auto-flow: column;
  grid-gap: 20px;
}

.header__rightContainer__link {
  align-items: center;
  display: flex;
  font-size: 1rem;
  font-weight: normal;
  text-decoration: none;
}

.header__rightContainer__link__icon {
  fill: #fff;
  margin-left: 10px;
}

.header__rightContainer__signin {
  border-radius: var(--border-radius);
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  line-height: 3.4rem;
  padding-left: 25px;
  padding-right: 25px;
  text-align: center;
  text-decoration: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  background-color: var(--secondary-color);
  color: #fff;
  font-weight: normal;
  width: 178px;
}
.header__rightContainer__signin:disabled, .header__rightContainer__signin[data-disabled] {
  cursor: default;
}
@media (max-width: 576px) {
  .header__rightContainer__signin {
    padding-left: 15px;
    padding-right: 15px;
  }
}
.header__rightContainer__signin:disabled, .header__rightContainer__signin[data-disabled] {
  background-color: var(--disabled-color);
  color: #fff;
}

.header__rightContainer__signup {
  border-radius: var(--border-radius);
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  line-height: 3.4rem;
  padding-left: 25px;
  padding-right: 25px;
  text-align: center;
  text-decoration: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  background-color: #fff;
  color: var(--primary-color);
  font-weight: normal;
  width: 178px;
}
.header__rightContainer__signup:disabled, .header__rightContainer__signup[data-disabled] {
  cursor: default;
}
@media (max-width: 576px) {
  .header__rightContainer__signup {
    padding-left: 15px;
    padding-right: 15px;
  }
}
.header__rightContainer__signup:disabled, .header__rightContainer__signup[data-disabled] {
  background-color: var(--disabled-color);
  color: var(--primary-color);
}
.header__rightContainer__signup:hover {
  color: var(--primary-color);
}

.header__rightContainer__wmaCodeContainer {
  display: grid;
  grid-auto-flow: column;
  grid-gap: 10px;
}

.header__rightContainer__wmaCodeContainer__wmaCode {
  color: var(--tertiary-color, var(--secondary-color));
}

.header__burger {
  cursor: pointer;
  height: 2rem;
  width: 2rem;
}
@media (min-width: 1200px) {
  .header__burger {
    display: none;
  }
}

.header__extended {
  align-items: center;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  inset: 0;
  position: fixed;
  z-index: 1;
}

.header__extended__header {
  align-items: center;
  display: flex;
  flex-direction: row;
  height: 150px;
  justify-content: space-between;
  padding-left: 60px;
  padding-right: 60px;
  width: 100%;
}

.header__extended__header__logoExtended {
  height: 3rem;
  width: auto;
}

.header__extended__header__cross {
  height: 2rem;
  width: auto;
}

.header__extended__container {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: max(50% - 75px, 200px);
}

.header__extended__container__link {
  font-size: 1.25rem;
}
.header__extended__container__link:not(:first-child) {
  margin-top: 30px;
}