/* Shared “Démarrer avec Ad’missions” launcher and dialog. */
.adm-start-reserve {
  display: none;
  height: calc(112px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.adm-start-ready .adm-start-reserve {
  display: block;
}

.adm-page-c .adm-start-reserve {
  display: none;
}

.adm-page-c .adm-start-launcher {
  z-index: calc(var(--adm-z-header, 60) + 1);
}

.adm-start-launcher {
  position: fixed;
  z-index: var(--adm-z-sticky, 50);
  right: calc(28px + env(safe-area-inset-right, 0px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  max-width: calc(100vw - 56px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 10px;
  color: var(--adm-ivory, #F8F8F2);
  background: var(--adm-ink, #191919);
  border: 1px solid var(--adm-dark-border, rgba(255, 255, 255, .14));
  border-radius: var(--adm-radius-pill, 999px);
  box-shadow: var(--adm-shadow, 0 8px 28px rgba(25, 25, 25, .09));
  cursor: pointer;
  font: 600 16px/1.2 "Indivisible", Arial, sans-serif;
  isolation: isolate;
  transition: transform var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1)),
    background-color var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1)),
    box-shadow var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1));
}

.adm-start-launcher::before {
  display: none;
}

.adm-start-launcher:hover {
  background: var(--adm-ink, #191919);
  box-shadow: var(--adm-shadow, 0 8px 28px rgba(25, 25, 25, .09));
  transform: translateY(-3px);
}

.adm-start-launcher:focus-visible {
  outline: 3px solid var(--adm-orange, #FF681F);
  outline-offset: 3px;
}

.adm-start-launcher[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
}

.adm-start-launcher__mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  background: url("/assets/brand/etoile-orange-blanc.svg") center / contain no-repeat;
}

.adm-start-launcher__mark svg {
  display: none;
}

.adm-start-launcher__arrow {
  display: grid;
  width: 24px;
  height: 24px;
  margin-left: 2px;
  place-items: center;
  color: var(--adm-orange, #FF681F);
  transition: transform var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1));
}

.adm-start-launcher__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.adm-start-launcher:hover .adm-start-launcher__arrow {
  transform: translateX(3px);
}

.adm-start-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.adm-start-dialog {
  width: min(720px, calc(100vw - 40px));
  max-width: none;
  max-height: min(680px, calc(100dvh - 40px));
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--adm-ink, #191919);
  background: transparent;
  border: 0;
  font-family: "Indivisible", Arial, sans-serif;
}

.adm-start-dialog::backdrop {
  background: rgba(25, 25, 25, .72);
  backdrop-filter: blur(4px);
}

.adm-start-dialog__surface {
  position: relative;
  max-height: min(680px, calc(100dvh - 40px));
  padding: 36px;
  overflow: auto;
  color: var(--adm-ink, #191919);
  background: var(--adm-ivory, #F8F8F2);
  border: 1px solid var(--adm-border, #E7E7DE);
  border-radius: var(--adm-radius-lg, 24px);
  box-shadow: var(--adm-shadow, 0 8px 28px rgba(25, 25, 25, .09));
}

.adm-start-dialog[open] .adm-start-dialog__surface {
  animation: adm-start-dialog-enter var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1)) both;
}

.adm-start-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--adm-ink, #191919);
  background: var(--adm-white, #FFFFFF);
  border: 1px solid var(--adm-border, #E7E7DE);
  border-radius: var(--adm-radius-sm, 8px);
  cursor: pointer;
  font: 300 28px/1 "Indivisible", Arial, sans-serif;
  transition: border-color var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1)),
    color var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1)),
    background-color var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1));
}

.adm-start-dialog__close:hover {
  color: var(--adm-white, #FFFFFF);
  background: var(--adm-ink, #191919);
  border-color: var(--adm-ink, #191919);
}

.adm-start-dialog__close:focus-visible,
.adm-start-choice:focus-visible {
  outline: 3px solid var(--adm-orange, #FF681F);
  outline-offset: 3px;
}

.adm-start-dialog__header {
  max-width: 590px;
  padding-right: 48px;
}

.adm-start-dialog__eyebrow {
  margin: 0 0 8px;
  color: var(--adm-charcoal-60, #5E5E5B);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.adm-start-dialog__header h2 {
  margin: 0;
  color: var(--adm-ink, #191919);
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.adm-start-dialog__header h2 strong {
  font-weight: 600;
}

.adm-start-dialog__header > p:last-child {
  max-width: 54ch;
  margin: 12px 0 0;
  color: var(--adm-charcoal-60, #5E5E5B);
  font-size: 16px;
  line-height: 1.65;
}

.adm-start-dialog__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.adm-start-choice {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 220px;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 16px;
  padding: 22px;
  color: var(--adm-ink, #191919);
  background: var(--adm-white, #FFFFFF);
  border: 1px solid var(--adm-border, #E7E7DE);
  border-radius: var(--adm-radius-md, 16px);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1)),
    box-shadow var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1)),
    transform var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1));
}

.adm-start-choice:hover {
  border-color: var(--adm-orange, #FF681F);
  box-shadow: var(--adm-shadow, 0 8px 28px rgba(25, 25, 25, .09));
  transform: translateY(-3px);
}

.adm-start-choice__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: var(--adm-white, #FFFFFF);
  border: 1px solid var(--adm-border, #E7E7DE);
  border-radius: var(--adm-radius-sm, 8px);
}

.adm-start-choice__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.adm-start-choice__content {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.adm-start-choice__content strong {
  display: block;
  margin: 2px 0 9px;
  color: var(--adm-ink, #191919);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.adm-start-choice__content > span {
  color: var(--adm-charcoal-60, #5E5E5B);
  font-size: 14px;
  line-height: 1.55;
}

.adm-start-choice__content small {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  color: var(--adm-charcoal-60, #5E5E5B);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.adm-start-choice__arrow {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--adm-ink, #191919);
  font-size: 20px;
  line-height: 1;
  transition: transform var(--adm-motion-duration, 180ms) var(--adm-motion-ease, cubic-bezier(.2, .7, .3, 1));
}

.adm-start-choice:hover .adm-start-choice__arrow {
  transform: translateX(3px);
}

@media (min-width: 990px) {
  .adm-page-c .adm-start-launcher {
    top: calc(7px + env(safe-area-inset-top, 0px));
    right: max(28px, env(safe-area-inset-right, 0px));
    bottom: auto;
    left: auto;
    min-width: 0;
    min-height: 50px;
    padding: 10px;
  }
}

@media (min-width: 768px) and (max-width: 989px) {
  .adm-page-c .adm-start-launcher {
    top: calc(7px + env(safe-area-inset-top, 0px));
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: auto;
    left: auto;
    min-width: 0;
    min-height: 50px;
    padding: 10px;
  }
}

@media (max-width: 767px) {
  .adm-start-reserve {
    height: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .adm-page-c .adm-start-reserve {
    display: block;
  }

  .adm-start-launcher {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
    width: fit-content;
    max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    margin-inline: auto;
    min-width: 0;
    min-height: 64px;
  }

  .adm-page-c .adm-start-launcher {
    top: calc(7px + env(safe-area-inset-top, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: auto;
    left: auto;
    width: fit-content;
    max-width: 144px;
    margin-inline: 0;
    min-height: 42px;
    gap: 6px;
    padding: 6px;
    font-size: 11px;
    line-height: 1.1;
  }

  .adm-page-c .adm-start-launcher__mark {
    width: 22px;
    height: 22px;
  }

  .adm-page-c .adm-start-launcher__arrow {
    display: none;
  }

  .adm-start-dialog {
    inset: auto 0 0;
    width: 100%;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
    margin: 0;
  }

  .adm-start-dialog__surface {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
    padding-top: 30px;
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--adm-radius-lg, 24px) var(--adm-radius-lg, 24px) 0 0;
  }

  .adm-start-dialog__close {
    top: 14px;
    right: max(14px, env(safe-area-inset-right, 0px));
  }

  .adm-start-dialog__header {
    padding-right: 44px;
  }

  .adm-start-dialog__header h2 {
    font-size: clamp(30px, 8vw, 32px);
  }

  .adm-start-dialog__choices {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .adm-start-choice {
    min-height: 156px;
    padding: 18px;
  }

  .adm-start-choice__content small {
    padding-top: 14px;
  }
}

@media (max-width: 390px) {
  .adm-start-launcher {
    padding-inline: 10px;
    font-size: 15px;
  }

  .adm-start-dialog__surface {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }

  .adm-start-choice {
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    gap: 12px;
    padding: 16px;
  }

  .adm-start-choice__icon {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 340px) {
  .adm-page-c .adm-header__logo {
    width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adm-start-launcher,
  .adm-start-launcher__arrow,
  .adm-start-dialog__surface,
  .adm-start-dialog__close,
  .adm-start-choice,
  .adm-start-choice__arrow {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .adm-start-launcher,
  .adm-start-dialog__surface,
  .adm-start-dialog__close,
  .adm-start-choice,
  .adm-start-choice__icon {
    border: 2px solid ButtonText;
    box-shadow: none;
    forced-color-adjust: auto;
  }
}

@keyframes adm-start-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
