/* ---------------------------------------------------------------- */
/* Style spécifique à la société                                     */
/* À terme il faudra configuré dans l'outil de gestion un fichier css */
/* Ainsi qu'un logo et un titre.                                    */
/* Car là il s'agit des couleurs du CSE UTAC.                       */
/* ---------------------------------------------------------------- */

:root {
  --cse-background-gradient: radial-gradient(
    98.45% 61.78% at 75.88% 70.96%,
    rgba(63, 88, 164, 0) 0%,
    #3f58a4 100%
  );
  --cse-font-family: Poppins, sans-serif;
  --cse-light-color: #fff;
  --cse-primary-color: #3f58a4;
  --cse-primary-color-rgb: 63, 88, 164;
  --cse-primary-hover-color: #758dd3;
  --cse-primary-hover-color-rgb: 117, 141, 211;
  --cse-secondary-color: #f7943f;
  --cse-secondary-hover-color: #f8a965;
  --cse-warning-color: #b40202;
  --cse-success-color: #0f7b4f;
  --cse-green-info-color: #4ea72e;
  --cse-success-soft-color: #e8f5ef;
  --cse-shadow-color: rgba(var(--cse-primary-color-rgb), 0.25);
}

/* ---------------------------------------------------------------- */
/* Surchage du style pour les formulaires du site public            */
/* ---------------------------------------------------------------- */

:root {
  --bs-link-color-rgb: var(--cse-primary-color-rgb);
  --bs-link-hover-color-rgb: var(--cse-primary-hover-color-rgb);
  --dxds-color-surface-info-default-rest: var(--cse-primary-hover-color);

  --dxds-primary-10: color-mix(in srgb, var(--cse-primary-color) 10%, white);
  --dxds-primary-20: color-mix(in srgb, var(--cse-primary-color) 20%, white);
  --dxds-primary-30: color-mix(in srgb, var(--cse-primary-color) 30%, white);
  --dxds-primary-40: color-mix(in srgb, var(--cse-primary-color) 40%, white);
  --dxds-primary-50: color-mix(in srgb, var(--cse-primary-color) 50%, white);
  --dxds-primary-60: color-mix(in srgb, var(--cse-primary-color) 60%, white);
  --dxds-primary-70: color-mix(in srgb, var(--cse-primary-color) 70%, white);
  --dxds-primary-80: color-mix(in srgb, var(--cse-primary-color) 80%, white);
  --dxds-primary-90: color-mix(in srgb, var(--cse-primary-color) 90%, white);
  --dxds-primary-100: var(--cse-primary-color);
  --dxds-primary-110: color-mix(in srgb, var(--cse-primary-color) 90%, black);
  --dxds-primary-120: color-mix(in srgb, var(--cse-primary-color) 80%, black);
  --dxds-primary-130: color-mix(in srgb, var(--cse-primary-color) 70%, black);
  --dxds-primary-140: color-mix(in srgb, var(--cse-primary-color) 60%, black);
  --dxds-primary-150: color-mix(in srgb, var(--cse-primary-color) 50%, black);
  --dxds-primary-160: color-mix(in srgb, var(--cse-primary-color) 40%, black);
  --dxds-primary-170: color-mix(in srgb, var(--cse-primary-color) 30%, black);
}

/* Spécifique Petites annonces */
.classified-ad-green-cb .dxbl-checkbox-check-element {
  border-color: var(--cse-green-info-color) !important;
}

.classified-ad-green-cb.dxbl-checkbox-checked .dxbl-checkbox-check-element {
  background-color: var(--cse-green-info-color) !important;
}

.classified-ad-green-cb .classified-ad-chip-info {
  color: #000;
}

.classified-ad-green-cb.dxbl-checkbox-checked .classified-ad-chip-info {
  background: var(--cse-green-info-color);
  color: #fff;
}

/* ---------------------------------------------------------------- */
/* Styles spécifiques aux pages publiques                            */
/* ---------------------------------------------------------------- */

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: auto;
  background-color: var(--cse-light-color);
  -webkit-font-smoothing: antialiased;
}

html.public-menu-open,
body.public-menu-open {
  overflow: hidden;
}

body *,
body *::before,
body *::after {
  box-sizing: border-box;
}

.wait-for-cse-content {
  color: rgb(191, 71, 71);
}

.bean-btn {
  display: inline-flex;
  align-items: center;
  align-content: center;
  min-width: 200px;
  border: 1px solid var(--cse-primary-color);
  border-radius: 999px;
  padding: 8px;
  background-color: var(--cse-light-color);
  color: var(--cse-primary-color);
  font-family: var(--cse-font-family);
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-decoration: none;
}

.hover-enhancement {
  cursor: pointer;
  transition:
    box-shadow 400ms ease,
    transform 400ms ease;
}

.hover-enhancement:hover,
.hover-enhancement:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 8px 26px rgba(var(--cse-primary-color-rgb), 0.25);
}

/* By Gaëtan */

h1.public-page-title,
h2.public-page-title,
h3.public-page-title,
h4.public-page-title,
h5.public-page-title,
h6.public-page-title {
  color: var(--cse-primary-color);
  font-family: var(--cse-font-family);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: normal;
}

h1.public-page-title {
  margin: 1rem 0 0.825rem 0;
  font-size: 1.625rem;
  letter-spacing: 0.0525rem;
}

h2.public-page-title {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.375rem;
}

h3.public-page-title {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.125rem;
}

h4.public-page-title {
  margin: 1rem 0 0.5rem 0;
  font-size: 1rem;
}

h5.public-page-title {
  margin: 1rem 0 0.5rem 0;
  font-size: 0.9375rem;
}

h6.public-page-title {
  margin: 1rem 0 0.5rem 0;
  font-size: 0.875rem;
}

.public-page-description {
  margin: 0;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.02rem;
}

.button-link {
  text-decoration: underline;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
}

.title.title-secondary {
  padding: 0.313rem 0 0;
  color: var(--dxds-color-content-secondary-default-rest);
}

.title-header-text {
  font-size: var(--dxds-font-size-headline-md);
  font-weight: var(--dxds-font-weight-headline-default);
  letter-spacing: var(--dxds-letter-spacing-headline-md);
  line-height: var(--dxds-line-height-headline-md);
  color: var(--cse-primary-color);
}

.title-content-text {
  font-size: var(--dxds-font-size-base-lg);
  font-weight: var(--dxds-font-weight-base-default);
  letter-spacing: var(--dxds-letter-spacing-base-lg);
  line-height: var(--dxds-line-height-base-lg);
}

.title-content-text-secondary {
  font-size: var(--dxds-font-size-title-md);
  line-height: var(--dxds-line-height-title-md);
}

.main-content {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.block-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  height: auto;
  max-width: 100%;
  width: 31.25rem;
}

.or {
  align-items: center;
  display: flex;
  flex-direction: row;
  padding: 0.3125rem 0;
}

.or .or-line {
  opacity: 0.2;
  width: 100%;
  border-bottom: 1px solid var(--dxds-color-content-neutral-default-rest);
}

.or .or-text {
  padding: 0 0.625rem;
  font-size: var(--dxds-font-size-caption-md);
  line-height: var(--dxds-line-height-caption-md);
  color: var(--dxds-color-content-neutral-subdued-rest);
}

.links-container {
  align-items: center;
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.links-container .dot {
  border-radius: 50%;
  height: 0.3125rem;
  margin: 0 0.1875rem;
  opacity: 0.7;
  width: 0.3125rem;
  background-color: var(--dxds-color-surface-neutral-default-rest);
}

.manage-layout {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.manage-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.info-message {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 0.625rem 1rem;
  position: relative;
  background: var(--dxds-color-surface-info-subdued-rest);
}

.info-message.info-panel {
  margin-bottom: 0.625rem;
}

.large-input {
  font-size: 1.875rem;
  height: 4.3125rem;
}

.button-group {
  display: flex;
  flex-direction: row;
  gap: 0.625rem;
}

.confirm-button {
  margin-top: 0.3125rem;
}

.logo-container {
  text-align: center;
  padding: 1rem 0;
}

.login-logo {
  max-width: 150px;
  height: auto;
}

.verification-code-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.verification-code-label {
  font-size: var(--dxds-font-size-base-md);
  font-weight: var(--dxds-font-weight-base-default);
  color: var(--dxds-color-content-neutral-default-rest);
}

.digit-inputs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.digit-input-field {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 1px solid var(--dxds-color-border-neutral-default-rest);
  border-radius: 0.5rem;
  background-color: var(--dxds-color-surface-neutral-default-rest);
  color: var(--dxds-color-content-neutral-default-rest);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.digit-input-field:focus {
  outline: none;
  border-color: var(--dxds-color-border-primary-default-rest);
  box-shadow: 0 0 0 2px var(--dxds-color-surface-primary-subdued-rest);
}

.digit-input-field:hover:not(:focus) {
  border-color: var(--dxds-color-border-neutral-default-hover);
}

.digit-separator {
  font-size: 1.5rem;
  color: var(--dxds-color-content-neutral-subdued-rest);
  margin: 0 0.25rem;
}

.remember-machine-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.remember-machine-container input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.remember-machine-container label {
  font-size: var(--dxds-font-size-base-md);
  color: var(--dxds-color-content-neutral-default-rest);
  cursor: pointer;
}

.link-primary {
  color: var(--dxds-color-content-primary-default-rest);
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

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

.denied-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: min(42rem, 100%);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--dxds-color-border-transparent-rest);
  background-color: var(--dxds-color-surface-neutral-default-rest);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  position: relative;
}

.denied-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-top-left-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
  background: var(--dxds-color-content-danger-default-rest);
}

.denied-card-icon {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dxds-color-content-danger-default-rest);
}

.denied-card-icon i {
  font-size: 3rem;
}

.denied-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.denied-card-body .title-header-text {
  font-size: var(--dxds-font-size-headline-md);
  line-height: var(--dxds-line-height-headline-md);
}

.denied-card-body .title-content-text {
  color: var(--dxds-color-content-secondary-default-rest);
}

.info-checkbox {
  padding: 0 0 0 0.5rem;
  font-size: 0.825rem;
  color: var(--dxds-color-surface-info-default-rest);
}

.auth-checkbox-line {
  display: flex;
  align-items: center;
}

.auth-checkbox-line-text {
  line-height: 1.4;
}

.auth-checkbox-line-text a {
  display: inline;
}

.warning-field {
  font-size: 0.825rem;
  color: var(--cse-warning-color);
}

.form-group-highlight .dxbl-group {
  border: 2px solid var(--dxbl-group-border-color) !important;
}

.offer-order-popup .dxbl-popup-content {
  background: #f7f9fc;
  padding: 0;
}

.offer-popup-body {
  min-height: 0;
  overflow-y: auto;
}
