/* ============================================================
   La Boussole EoKin — widget du parcours.
   Autonome : même rendu sur le site (thème encre) et dans le
   backoffice (mode test). Couleur d'accent posée en ligne :
   --ekb-accent / --ekb-on (Chatbot → Réglages).

   Parti pris : l'interface reste sobre et encre, les questions
   sont composées comme celles des cartes (Lora), et le seul
   moment appuyé est la carte qui se retourne sur sa plaque crème.
   ============================================================ */

.ekb {
  display: block !important; /* masqué en ligne tant que ce fichier n'est pas chargé */
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 9000;
  --ekb-ink: #131a22;
  --ekb-ink-2: #19222d;
  --ekb-ink-3: #223040;
  --ekb-line: rgba(236, 239, 243, 0.09);
  --ekb-line-2: rgba(236, 239, 243, 0.17);
  --ekb-text: #eceff3;
  --ekb-soft: #a7b0bd;
  --ekb-faint: #7a8491;
  --ekb-cream: #f8f1e5;
  --ekb-cream-ink: #2a2620;
  --ekb-cream-soft: #6b6152;
  --ekb-danger: #e06a42;
  --ekb-ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ekb-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --ekb-display: 'Cormorant Garamond', Georgia, serif;
  --ekb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--ekb-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ekb-text);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.ekb *,
.ekb *::before,
.ekb *::after {
  box-sizing: border-box;
}
.ekb button,
.ekb input,
.ekb textarea {
  font: inherit;
  color: inherit;
}
.ekb img {
  display: block;
  max-width: 100%;
}
.ekb :focus-visible {
  outline: 2px solid var(--ekb-accent);
  outline-offset: 2px;
}

/* --- Bulle -------------------------------------------------------- */

.ekb-launcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  min-width: 58px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ekb-accent);
  color: var(--ekb-on);
  cursor: pointer;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s var(--ekb-ease), box-shadow 0.2s ease;
}
.ekb-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.ekb-launcher--label {
  padding: 0 22px 0 17px;
}
.ekb-launcher__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
}
.ekb-launcher__icon svg {
  width: 26px;
  height: 26px;
}
.ekb-launcher__icon img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.ekb-launcher__label {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.ekb-launcher__close {
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
}
.ekb-launcher__close svg {
  width: 22px;
  height: 22px;
}
.ekb.is-open .ekb-launcher {
  padding: 0;
  width: 58px;
}
.ekb.is-open .ekb-launcher__icon,
.ekb.is-open .ekb-launcher__label {
  display: none;
}
.ekb.is-open .ekb-launcher__close {
  display: grid;
}
.ekb-launcher__badge {
  position: absolute;
  top: -5px;
  right: -3px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #2c2e34;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
}

/* --- Fenêtre ------------------------------------------------------ */

.ekb-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  width: min(410px, calc(100vw - 28px));
  height: min(700px, calc(100vh - 112px));
  background: var(--ekb-ink);
  border: 1px solid var(--ekb-line-2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px -26px rgba(0, 0, 0, 0.75);
  transform-origin: bottom right;
  animation: ekb-in 0.24s var(--ekb-ease);
}
@supports (height: 100dvh) {
  .ekb-panel {
    height: min(700px, calc(100dvh - 112px));
  }
}
.ekb-panel[hidden] {
  display: none;
}
@keyframes ekb-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- En-tête ------------------------------------------------------ */

.ekb-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 8px 13px 16px;
  border-bottom: 1px solid var(--ekb-line);
  flex: none;
}
.ekb-head__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--ekb-ink-3);
  flex: none;
}
.ekb-head__ident {
  flex: 1;
  min-width: 0;
}
.ekb-head__title {
  margin: 0;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ekb-head__sub {
  margin: 1px 0 0;
  font-size: 12.5px;
  color: var(--ekb-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ekb-head__tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--ekb-line-2);
  color: var(--ekb-soft);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}
.ekb-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ekb-soft);
  cursor: pointer;
  flex: none;
}
.ekb-icon:hover {
  background: var(--ekb-ink-3);
  color: var(--ekb-text);
}
.ekb-icon svg {
  width: 19px;
  height: 19px;
}
.ekb-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
}
.ekb-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ekb-accent);
  transition: width 0.6s var(--ekb-ease);
}

/* --- Fil ---------------------------------------------------------- */

.ekb-body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 20px 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.ekb-body > * + * {
  margin-top: 12px;
}
.ekb-body p {
  margin: 0;
}

.ekb-msg {
  display: flex;
}
.ekb-msg--user {
  justify-content: flex-end;
}
.ekb-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border: 1px solid var(--ekb-line);
  border-radius: 16px;
  background: var(--ekb-ink-2);
  overflow-wrap: anywhere;
}
.ekb-msg--bot .ekb-bubble {
  border-top-left-radius: 6px;
}
.ekb-msg--user .ekb-bubble {
  border-top-right-radius: 6px;
  background: rgba(18, 166, 163, 0.16);
  background: color-mix(in srgb, var(--ekb-accent) 18%, var(--ekb-ink));
  border-color: rgba(18, 166, 163, 0.3);
  border-color: color-mix(in srgb, var(--ekb-accent) 34%, transparent);
}
.ekb-msg--form .ekb-bubble {
  font-size: 14px;
}
.ekb-bubble p + p {
  margin-top: 8px;
}

/* Les questions du parcours : composées comme celles des cartes. */
.ekb-body > .ekb-q {
  margin-top: 20px;
}
.ekb-q {
  max-width: 96%;
  padding: 1px 0 1px 14px;
  border-left: 2px solid var(--ekb-accent);
  font-family: var(--ekb-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ekb-text);
}
.ekb-q p + p {
  margin-top: 6px;
}

.ekb-note {
  padding: 10px 13px;
  border: 1px dashed var(--ekb-line-2);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ekb-soft);
}
.ekb-note p + p {
  margin-top: 6px;
}
.ekb .ekb-note a.ekb-note__link {
  display: inline-block;
  margin-top: 4px;
  color: var(--ekb-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ekb-note--success {
  border-style: solid;
  border-color: rgba(18, 166, 163, 0.4);
  border-color: color-mix(in srgb, var(--ekb-accent) 45%, transparent);
  background: color-mix(in srgb, var(--ekb-accent) 9%, var(--ekb-ink));
  color: var(--ekb-text);
}
.ekb-note--error {
  border-style: solid;
  border-color: rgba(224, 106, 66, 0.45);
  background: rgba(224, 106, 66, 0.1);
  color: #f6c7b5;
}
.ekb-note--safety {
  border-style: solid;
  border-color: var(--ekb-line-2);
  background: var(--ekb-ink-2);
  color: var(--ekb-text);
  font-size: 14px;
}
.ekb-note--debug {
  border-color: #a8812f;
  color: #e9c97c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
}
.ekb-note__action {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

/* --- Synthèse ----------------------------------------------------- */

.ekb-synth {
  padding: 16px 16px 4px;
  border: 1px solid var(--ekb-line);
  border-radius: 16px;
  background: var(--ekb-ink-2);
}
.ekb-synth__intro {
  margin: 0 0 6px !important;
  font-size: 14px;
  color: var(--ekb-soft);
}
.ekb-synth__list {
  margin: 0;
}
.ekb-synth__item {
  padding: 11px 0;
}
.ekb-synth__item + .ekb-synth__item {
  border-top: 1px solid var(--ekb-line);
}
.ekb-synth__item dt {
  margin: 0 0 3px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ekb-accent);
}
.ekb-synth__item dd {
  margin: 0;
  font-family: var(--ekb-serif);
  font-size: 15px;
  line-height: 1.55;
}
.ekb-synth__item:last-child dd {
  font-size: 16px;
}

/* --- Carte Projet Vivant ------------------------------------------ */

.ekb-body > .ekb-card {
  margin: 20px 0 0;
}
.ekb-card__intro {
  margin: 0 0 12px !important;
  color: var(--ekb-soft);
  font-size: 14px;
}
.ekb-card__plate {
  padding: 22px 18px 18px;
  border-radius: 18px;
  background: var(--ekb-cream);
  color: var(--ekb-cream-ink);
}
.ekb-card__stage {
  display: block;
  width: 212px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  perspective: 1400px;
}
.ekb-card__inner {
  position: relative;
  display: block;
  aspect-ratio: 1050 / 1800;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.3, 0.05, 0.2, 1);
}
.ekb-card__back,
.ekb-card__front {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 18px 34px -18px rgba(42, 38, 32, 0.55), 0 0 0 1px rgba(42, 38, 32, 0.08);
}
.ekb-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dos de carte : cadre doré, mot-symbole du jeu. */
.ekb-card__back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ekb-cream);
  box-shadow: inset 0 0 0 9px var(--ekb-cream), inset 0 0 0 10px #b87d1f, 0 18px 34px -18px rgba(42, 38, 32, 0.55);
}
.ekb-card__mark {
  font-family: var(--ekb-display);
  font-style: italic;
  font-size: 27px;
  line-height: 1.1;
  color: var(--ekb-cream-ink);
}
.ekb-card__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #9a7a3c;
}
.ekb-card.is-drawing .ekb-card__inner {
  transform: rotateY(180deg);
}
.ekb-card.is-revealed .ekb-card__inner {
  transform: rotateY(0deg);
}
.ekb-card__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 18px 0 0;
  text-align: center;
}
.ekb-card__family {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ekb-fam);
}
.ekb-card__name {
  font-family: var(--ekb-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ekb-cream-ink);
}
.ekb-card__question {
  margin-top: 6px;
  font-family: var(--ekb-serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ekb-cream-ink);
}
.ekb-card__rule {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ekb-cream-soft);
}
.ekb-card__text {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 38, 32, 0.12);
  font-family: var(--ekb-serif);
  font-size: 15px;
  line-height: 1.6;
}
.ekb-card__text p + p {
  margin-top: 10px;
}
.ekb-card__outro {
  font-style: italic;
  color: var(--ekb-cream-soft);
}
/* Le texte n'apparaît qu'une fois la carte retournée. */
.ekb-card.is-drawing .ekb-card__caption,
.ekb-card.is-drawing .ekb-card__text {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease 0.55s, transform 0.5s var(--ekb-ease) 0.55s;
}
.ekb-card.is-drawing.is-revealed .ekb-card__caption,
.ekb-card.is-drawing.is-revealed .ekb-card__text {
  opacity: 1;
  transform: none;
}

.ekb-lightbox {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 13, 18, 0.94);
  cursor: zoom-out;
  animation: ekb-fade 0.18s ease;
}
.ekb-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
}
.ekb-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.ekb-lightbox__close svg {
  width: 20px;
  height: 20px;
}
@keyframes ekb-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Indicateur d'écriture ---------------------------------------- */

.ekb-typing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--ekb-line);
  border-radius: 14px;
  background: var(--ekb-ink-2);
  color: var(--ekb-soft);
  font-size: 13px;
}
.ekb-typing__dots {
  display: inline-flex;
  gap: 4px;
}
.ekb-typing__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: ekb-dot 1.3s infinite ease-in-out;
}
.ekb-typing__dots span:nth-child(2) {
  animation-delay: 0.18s;
}
.ekb-typing__dots span:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes ekb-dot {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* --- Saisie ------------------------------------------------------- */

.ekb-dock {
  flex: none;
  padding: 12px 14px 12px;
  border-top: 1px solid var(--ekb-line);
  background: var(--ekb-ink);
}
.ekb-dock:empty {
  display: none;
}
.ekb-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ekb .ekb-choice {
  display: block;
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--ekb-line-2);
  border-radius: 12px;
  background: transparent;
  color: var(--ekb-text);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ekb .ekb-choice:hover {
  border-color: var(--ekb-accent);
  background: rgba(18, 166, 163, 0.08);
  background: color-mix(in srgb, var(--ekb-accent) 9%, transparent);
  text-decoration: none;
}
.ekb .ekb-choice--primary,
.ekb .ekb-choice--primary:hover {
  border-color: var(--ekb-accent);
  background: var(--ekb-accent);
  color: var(--ekb-on);
}
.ekb .ekb-choice--primary:hover {
  filter: brightness(1.06);
}
.ekb .ekb-choice:disabled,
.ekb .ekb-choice[aria-disabled='true'] {
  opacity: 0.45;
  cursor: default;
}

.ekb-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 124px;
  margin-bottom: 10px;
  overflow-y: auto;
}
.ekb-chip {
  padding: 6px 12px;
  border: 1px solid var(--ekb-line-2);
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ekb-chip:hover {
  border-color: var(--ekb-accent);
}
.ekb-chip--action {
  border-color: var(--ekb-accent);
  color: var(--ekb-accent);
  font-weight: 700;
}
.ekb-chip:disabled {
  opacity: 0.45;
}

.ekb-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.ekb-compose__input {
  flex: 1;
  min-height: 46px;
  max-height: 150px;
  padding: 12px 14px;
  border: 1px solid var(--ekb-line-2);
  border-radius: 14px;
  background: var(--ekb-ink-2);
  font-size: 15px;
  line-height: 1.45;
  resize: none;
}
.ekb-compose__input::placeholder {
  color: var(--ekb-faint);
}
.ekb-compose__input:focus {
  outline: none;
  border-color: var(--ekb-accent);
}
.ekb-compose__send {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: var(--ekb-accent);
  color: var(--ekb-on);
  cursor: pointer;
}
.ekb-compose__send svg {
  width: 20px;
  height: 20px;
}
.ekb-compose__send:disabled {
  opacity: 0.5;
}

.ekb-restart {
  display: block;
  margin: 10px auto 0;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--ekb-soft);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* --- Formulaire (dans le fil) ------------------------------------- */

.ekb-form {
  position: relative;
  padding: 16px;
  border: 1px solid var(--ekb-line);
  border-radius: 16px;
  background: var(--ekb-ink-2);
}
.ekb-field + .ekb-field {
  margin-top: 11px;
}
.ekb-field__label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ekb-soft);
}
.ekb-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--ekb-line-2);
  border-radius: 11px;
  background: var(--ekb-ink);
  font-size: 15px;
}
.ekb-field input:focus {
  outline: none;
  border-color: var(--ekb-accent);
}
.ekb-field input[aria-invalid='true'] {
  border-color: var(--ekb-danger);
}
.ekb-field__error,
.ekb-form__error {
  color: #f3a98c;
  font-size: 12.5px;
}
.ekb-field__error {
  margin: 5px 0 0 !important;
}
.ekb-form__error {
  margin: 0 0 12px !important;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(224, 106, 66, 0.12);
}
.ekb-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ekb-soft);
  cursor: pointer;
}
.ekb-check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--ekb-accent);
}
.ekb-captcha {
  margin-top: 12px;
}
.ekb-form__submit {
  width: 100%;
  min-height: 48px;
  margin-top: 15px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--ekb-accent);
  color: var(--ekb-on);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.ekb-form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.ekb-form__legal {
  margin: 11px 0 0 !important;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ekb-faint);
}
.ekb .ekb-form__legal a {
  color: var(--ekb-soft);
  text-decoration: underline;
}
.ekb-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Mention du bas ------------------------------------------------ */

.ekb-legal {
  flex: none;
  margin: 0;
  padding: 0 16px 10px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  color: var(--ekb-faint);
}
.ekb .ekb-legal a {
  color: var(--ekb-soft);
  text-decoration: underline;
}

/* --- Mobile : plein écran ------------------------------------------ */

@media (max-width: 560px) {
  .ekb-launcher--label {
    padding: 0;
    width: 58px;
  }
  .ekb-launcher--label .ekb-launcher__label {
    display: none;
  }
  .ekb.is-open .ekb-launcher {
    display: none;
  }
  .ekb-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    animation-name: ekb-up;
  }
  .ekb-head {
    padding-top: max(13px, env(safe-area-inset-top));
  }
  .ekb-dock {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  html.ekb-lock,
  html.ekb-lock body {
    overflow: hidden;
  }
  .ekb-q {
    font-size: 17.5px;
  }
}
@keyframes ekb-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ekb-panel,
  .ekb-lightbox {
    animation: none;
  }
  .ekb-launcher,
  .ekb-card__inner,
  .ekb-progress > span {
    transition: none;
  }
  .ekb-typing__dots span {
    animation: none;
    opacity: 0.7;
  }
}

/* --- Confirmation dans la fenêtre (Recommencer) --------------------- */

.ekb-confirm {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 13, 18, 0.74);
  animation: ekb-fade 0.15s ease;
}
.ekb-confirm__card {
  width: 100%;
  max-width: 320px;
  padding: 20px 20px 16px;
  border: 1px solid var(--ekb-line-2);
  border-radius: 16px;
  background: var(--ekb-ink-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.ekb-confirm__msg {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ekb-text);
}
.ekb-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ekb-confirm__actions button {
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.ekb-confirm__cancel {
  border: 1px solid var(--ekb-line-2);
  background: transparent;
  color: var(--ekb-text);
}
.ekb-confirm__ok {
  border: 1px solid var(--ekb-accent);
  background: var(--ekb-accent);
  color: var(--ekb-on);
}
@media (prefers-reduced-motion: reduce) {
  .ekb-confirm {
    animation: none;
  }
}
