/* CONNEXIONS COURANTES — V60R6R48-H15
   Connexion statique : logo PNG et formulaire affiches immediatement. */

html,
body.ob-auth-page {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.ob-auth-page {
  max-width: none !important;
}

body.ob-auth-page .skip-link,
body.ob-auth-page a[href="#main-content"],
body.ob-auth-page a[href="#main"],
body.ob-auth-page a[href="#content"] {
  display: none !important;
}

.ob-auth-page-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(24px, 4vw, 58px) clamp(28px, 6vw, 92px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 470px) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: clamp(28px, 5vw, 82px) !important;
  background:
    linear-gradient(90deg, rgba(4,12,9,.03) 0%, rgba(4,12,9,.02) 48%, rgba(2,10,8,.16) 100%),
    url('/organisation-chasse-horizon-dore-v60r6r48.png') center center / cover no-repeat !important;
}

.ob-auth-page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, transparent 48%, rgba(2,10,8,.10) 72%, rgba(2,10,8,.22) 100%);
}

.ob-auth-hero {
  position: relative !important;
  width: 100% !important;
  max-width: 820px !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
}

.ob-auth-hero img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(76vh, 680px) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.ob-auth-page-shell.is-general-login .ob-auth-static-hero {
  max-width: 900px !important;
}

.ob-auth-page-shell.is-general-login .ob-auth-logo-static {
  width: min(100%, 650px) !important;
  max-width: 650px !important;
  max-height: min(78vh, 680px) !important;
  image-rendering: auto !important;
}

.ob-auth-card-shell {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 470px !important;
  margin: 0 !important;
  padding: 24px 26px 26px !important;
  align-self: center !important;
  justify-self: end !important;
  box-sizing: border-box !important;
  color: #17251e !important;
  background: rgba(243,240,233,.955) !important;
  border: 1px solid rgba(218,162,71,.46) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 58px rgba(2,10,6,.38) !important;
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

.ob-auth-card-shell form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
  pointer-events: auto !important;
}

.ob-auth-card-shell input,
.ob-auth-card-shell select,
.ob-auth-card-shell button,
.ob-auth-card-shell .btn,
.ob-auth-card-shell input[type="submit"] {
  width: 100% !important;
  box-sizing: border-box !important;
}

.ob-auth-card-shell input,
.ob-auth-card-shell select {
  color: #17251e !important;
  background: rgba(255,255,255,.94) !important;
  border-color: rgba(18,33,26,.25) !important;
}

.ob-auth-card-shell .button.primary,
.ob-auth-card-shell input[type="submit"] {
  color: #fff !important;
  border-color: #0d291e !important;
  background: linear-gradient(180deg, #28523f, #102d22) !important;
}

.ob-auth-card-shell a {
  color: #694b14;
  text-underline-offset: 2px;
}

.ob-auth-page-shell.is-general-login .ob-auth-card-shell {
  width: min(470px, 92vw) !important;
  max-width: 470px !important;
  padding: 24px 26px 25px !important;
  color: #f7f2e8 !important;
  background: rgba(3,24,19,.94) !important;
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: 0 22px 54px rgba(0,0,0,.36) !important;
  backdrop-filter: blur(8px) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.04) !important;
}

.ob-auth-page-shell.is-general-login .ob-auth-card-shell label {
  color: #f7f2e8 !important;
}

.ob-auth-page-shell.is-general-login .ob-auth-card-shell input,
.ob-auth-page-shell.is-general-login .ob-auth-card-shell select {
  color: #15231d !important;
  background: #f5f1df !important;
  border: 1px solid rgba(189,145,65,.42) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55) !important;
}

.ob-auth-page-shell.is-general-login .ob-auth-card-shell .button.primary,
.ob-auth-page-shell.is-general-login .ob-auth-card-shell input[type="submit"] {
  color: #fff !important;
  background: linear-gradient(180deg, #235340 0%, #0e3428 100%) !important;
  border: 0 !important;
  box-shadow: 0 7px 16px rgba(0,0,0,.18) !important;
}

.ob-auth-page-shell.is-general-login .ob-auth-card-shell a {
  color: #efcb7e !important;
}

.ob-auth-page-shell.is-general-login form.auth-login-form {
  display: grid !important;
  gap: 8px !important;
}

.ob-auth-page-shell.is-general-login form.auth-login-form > label {
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.ob-auth-page-shell.is-general-login #login-hunt-select,
.ob-auth-page-shell.is-general-login #login-identifier,
.ob-auth-page-shell.is-general-login #login-password,
.ob-auth-page-shell.is-general-login #login-submit {
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

.ob-auth-page-shell.is-general-login .auth-links {
  width: 100% !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
}

.ob-auth-page-shell.is-general-login .platform-access-link {
  width: 100% !important;
  margin: 1px 0 0 !important;
  padding-top: 8px !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
}

.ob-auth-page-shell .auth-title-block,
.ob-auth-page-shell .auth-app-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}

.ob-auth-page-shell .auth-title-block img,
.ob-auth-page-shell .auth-app-heading img {
  width: 106px;
  height: 70px;
  flex: 0 0 106px;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.ob-auth-page-shell .auth-title-block h1,
.ob-auth-page-shell .auth-app-heading h1 {
  margin: 0;
  color: #173225;
  font-size: 1.55rem;
}

@media (min-width: 901px) {
  .ob-auth-page-shell:not(.is-general-login) .ob-auth-card-shell form img,
  .ob-auth-page-shell:not(.is-general-login) .ob-auth-card-shell form figure {
    display: none !important;
  }

  .ob-auth-page-shell.is-general-login {
    padding: clamp(28px, 4vw, 72px) clamp(34px, 5.5vw, 104px) !important;
    grid-template-columns: minmax(560px, 1.45fr) minmax(360px, 470px) !important;
    gap: clamp(36px, 5vw, 100px) !important;
  }
}

@media (max-width: 900px) {
  .ob-auth-page-shell {
    padding: max(12px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)) !important;
    background:
      linear-gradient(180deg, rgba(4,12,9,.04) 0%, rgba(4,12,9,.02) 48%, rgba(4,12,9,.16) 100%),
      url('/organisation-chasse-horizon-dore-v60r6r48.png') 33% center / cover no-repeat !important;
  }

  .ob-auth-page-shell:not(.is-general-login) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    overflow-y: auto !important;
  }

  .ob-auth-page-shell:not(.is-general-login) .ob-auth-hero {
    width: min(92vw, 560px) !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  .ob-auth-page-shell.is-general-login {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    justify-items: center !important;
    gap: clamp(4px, 1.2dvh, 10px) !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .ob-auth-page-shell.is-general-login .ob-auth-static-hero {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .ob-auth-page-shell.is-general-login .ob-auth-logo-static {
    width: min(82vw, 560px) !important;
    max-width: min(82vw, 560px) !important;
    max-height: 100% !important;
  }

  .ob-auth-page-shell.is-general-login .ob-auth-card-shell {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: end !important;
    justify-self: center !important;
    width: min(92vw, 500px) !important;
    max-width: 500px !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 16px 18px 18px !important;
    border-radius: 22px !important;
  }

  .ob-auth-page-shell.is-general-login form.auth-login-form {
    gap: 5px !important;
  }

  .ob-auth-page-shell.is-general-login form.auth-login-form > label {
    gap: 2px !important;
    font-size: 12.5px !important;
    line-height: 1.1 !important;
  }

  .ob-auth-page-shell.is-general-login #login-hunt-select,
  .ob-auth-page-shell.is-general-login #login-identifier,
  .ob-auth-page-shell.is-general-login #login-password,
  .ob-auth-page-shell.is-general-login #login-submit {
    height: 34px !important;
    min-height: 34px !important;
    padding: 4px 8px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
  }

  .ob-auth-page-shell.is-general-login .auth-links,
  .ob-auth-page-shell.is-general-login .platform-access-link {
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.1 !important;
  }

  .ob-auth-page-shell.is-general-login .platform-access-link {
    padding-top: 4px !important;
  }

  .ob-auth-page-shell .auth-title-block img,
  .ob-auth-page-shell .auth-app-heading img {
    width: 88px;
    height: 58px;
    flex-basis: 88px;
  }

  .ob-auth-page-shell .auth-title-block h1,
  .ob-auth-page-shell .auth-app-heading h1 {
    font-size: 1.35rem;
  }
}

/* V60R6R48-H23-PUBLIC-AUTH-MOBILE-SCROLL-START
 * Les formulaires publics historiques (/activate, /forgot et /reset) ne sont
 * pas des .ob-auth-page-shell. Leur espace de travail devient donc le seul
 * conteneur vertical, y compris lorsque le clavier reduit la zone visible.
 * La page de connexion moderne conserve son comportement H16 inchange.
 */
html.ob-public-auth-scroll-root-v60r6r48-h23,
body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
}

body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-app-frame.is-auth {
  width: 100% !important;
  height: 100vh !important;
  height: 100svh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-workspace {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-left: 0 !important;
  padding-top: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  scroll-padding-block: 18px !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-workspace .page-shell {
  width: min(1180px, calc(100% - 28px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 30px 0 40px !important;
  overflow: visible !important;
}

body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-workspace input,
body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-workspace select,
body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-workspace button {
  scroll-margin-block: 18px !important;
}

body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-workspace .site-footer {
  flex: 0 0 auto !important;
  padding-bottom: max(25px, env(safe-area-inset-bottom)) !important;
}

@media (max-width: 900px) {
  body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-workspace .page-shell {
    width: calc(100% - 24px) !important;
    padding: max(18px, env(safe-area-inset-top)) 0 max(34px, env(safe-area-inset-bottom)) !important;
  }

  body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-workspace .site-footer {
    padding: 18px 12px max(22px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 560px) {
  body.ob-auth-page.ob-public-auth-scroll-v60r6r48-h23 .ob-workspace .page-shell {
    width: min(calc(100% - 18px), 1180px) !important;
  }
}
/* V60R6R48-H23-PUBLIC-AUTH-MOBILE-SCROLL-END */

/* V60R6R48-H15 — CONNEXION STATIQUE ET PLEIN ECRAN IPHONE. */
@media (max-width: 900px) {
  html.ob-login-ios-viewport-locked,
  html.ob-login-ios-viewport-locked body.ob-auth-page {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-ios {
    position: fixed !important;
    top: var(--ob-login-viewport-top, 0px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100vw !important;
    height: var(--ob-login-viewport-height, 100dvh) !important;
    min-height: 0 !important;
    max-height: var(--ob-login-viewport-height, 100dvh) !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-keyboard-open {
    grid-template-rows: 0 minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-keyboard-open .ob-auth-static-hero {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-keyboard-open .ob-auth-card-shell {
    grid-row: 2 !important;
    align-self: center !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 900px) and (max-height: 560px) and (orientation: landscape) {
  .ob-auth-page-shell.is-general-login:not(.is-login-keyboard-open) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 44vw) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .ob-auth-page-shell.is-general-login:not(.is-login-keyboard-open) .ob-auth-static-hero {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .ob-auth-page-shell.is-general-login:not(.is-login-keyboard-open) .ob-auth-logo-static {
    width: min(52vw, 420px) !important;
    max-width: 100% !important;
  }

  .ob-auth-page-shell.is-general-login:not(.is-login-keyboard-open) .ob-auth-card-shell {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    width: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
  }
}

/* V60R6R48-H16 — EQUILIBRE IPHONE AVEC LE PANNEAU MOTS DE PASSE.
   Les champs restent a 16 px afin que Safari ne zoome jamais la page. */
@media (max-width: 900px) {
  html,
  body.ob-auth-page {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  .ob-auth-page-shell.is-general-login,
  .ob-auth-page-shell.is-general-login .ob-auth-static-hero,
  .ob-auth-page-shell.is-general-login .ob-auth-card-shell,
  .ob-auth-page-shell.is-general-login form.auth-login-form,
  .ob-auth-page-shell.is-general-login form.auth-login-form > label,
  .ob-auth-page-shell.is-general-login .auth-links,
  .ob-auth-page-shell.is-general-login .platform-access-link {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ob-auth-page-shell.is-general-login #login-hunt-select,
  .ob-auth-page-shell.is-general-login #login-identifier,
  .ob-auth-page-shell.is-general-login #login-password {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    touch-action: manipulation !important;
  }

  .ob-auth-page-shell.is-general-login #login-hunt-select {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  .ob-auth-page-shell.is-general-login .auth-links,
  .ob-auth-page-shell.is-general-login .platform-access-link {
    overflow: hidden !important;
    white-space: normal !important;
  }

  .ob-auth-page-shell.is-general-login .auth-links a,
  .ob-auth-page-shell.is-general-login .platform-access-link a {
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-field-active,
  .ob-auth-page-shell.is-general-login.is-login-keyboard-open {
    padding: max(8px, env(safe-area-inset-top)) 12px 6px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 100px auto !important;
    align-content: start !important;
    align-items: start !important;
    justify-items: center !important;
    gap: 6px !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-field-active .ob-auth-static-hero,
  .ob-auth-page-shell.is-general-login.is-login-keyboard-open .ob-auth-static-hero {
    visibility: visible !important;
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100px !important;
    max-height: 100px !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-field-active .ob-auth-logo-static,
  .ob-auth-page-shell.is-general-login.is-login-keyboard-open .ob-auth-logo-static {
    display: block !important;
    visibility: visible !important;
    width: min(42vw, 165px) !important;
    max-width: 165px !important;
    height: auto !important;
    max-height: 96px !important;
    object-fit: contain !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-field-active .ob-auth-card-shell,
  .ob-auth-page-shell.is-general-login.is-login-keyboard-open .ob-auth-card-shell {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-self: center !important;
    width: calc(100vw - 24px) !important;
    max-width: 500px !important;
    min-width: 0 !important;
    max-height: calc(var(--ob-login-viewport-height, 100dvh) - 112px - env(safe-area-inset-top)) !important;
    margin: 0 !important;
    padding: 11px 14px 12px !important;
    border-radius: 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-field-active form.auth-login-form,
  .ob-auth-page-shell.is-general-login.is-login-keyboard-open form.auth-login-form {
    gap: 5px !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-field-active form.auth-login-form > label,
  .ob-auth-page-shell.is-general-login.is-login-keyboard-open form.auth-login-form > label {
    gap: 2px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-field-active #login-submit,
  .ob-auth-page-shell.is-general-login.is-login-keyboard-open #login-submit {
    height: 36px !important;
    min-height: 36px !important;
  }

  .ob-auth-page-shell.is-general-login.is-login-field-active .auth-links,
  .ob-auth-page-shell.is-general-login.is-login-field-active .platform-access-link,
  .ob-auth-page-shell.is-general-login.is-login-keyboard-open .auth-links,
  .ob-auth-page-shell.is-general-login.is-login-keyboard-open .platform-access-link {
    font-size: 11.5px !important;
    line-height: 1.15 !important;
  }
}
