#tkd-inscription-wizard {
  max-width: 420px;
  margin: 0 auto;
  /*padding: 30px 25px;*/
  font-family: inherit;
}

#tkd-inscription-wizard h3 {
  text-align: center;
  color: var(--e-global-color-text);
  font-family: "Fun House", Sans-serif;
    font-size: 27px;
  margin-bottom: 35px;
}

.tkd-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #CCE5E5;
    padding: 15px;
    border: 1px solid #41828D;
  border-radius: 8px;
  margin-bottom: 80px;
}

.tkd-pamela-avatar {
  width: 110px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tkd-bubble-text strong {
  display: block;
  color: var(--e-global-color-text);
  font-size: 18px;
  margin-bottom: 4px;
  font-family: "Fun House", Sans-serif;
}

.tkd-bubble-text p {
  font-family: 'Kalam';
    font-size: 16px;
    font-weight: 600;
    color: var(--e-global-color-text);
  margin: 0;
  line-height: 1.3;
  margin-bottom: 7px;
}


.tkd-bubble-text p {
    margin: 0 0 10px 0;
    white-space: normal;
    word-wrap: break-word;
}

.tkd-bubble-text p:last-child {
    margin-bottom: 0;
}

.tkd-bubble-text p:not(.typing):not(.typed) {
    visibility: hidden;
}

#tkd-inscription-wizard label {
  display: block;
  font-weight: 600;
  color: #2b7a78;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 22px;
  font-family: 'Kalam';
  text-align: center;
}

#tkd-inscription-wizard input[type="text"],
#tkd-inscription-wizard input[type="number"],
#tkd-inscription-wizard input[type="email"],
#tkd-inscription-wizard input[type="password"],
#tkd-inscription-wizard select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
    border: 2px solid var( --e-global-color-accent );
  font-family: 'Kalam';
  box-sizing: border-box;
}

#tkd-inscription-wizard input[type="text"],
#tkd-inscription-wizard input[type="number"],
#tkd-inscription-wizard select {
  font-size: 22px;
}

#tkd-inscription-wizard button {
  width: 100%;
  padding: 12px;
  background: var( --e-global-color-primary );
  color: #fff;
  border-radius: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s ease;
  border-width: 4px 4px 8px 4px;
  border-color: var(--e-global-color-accent);
  font-family: 'Kalam';
  font-weight: bold;
  font-size: 24px;
}

#tkd-inscription-wizard button:hover {
  background: #23615f;
}

#tkd-inscription-wizard button.tkd-prev {
  background: #fff;
  color: var(--e-global-color-accent);
}

#tkd-inscription-wizard button.tkd-prev:hover {
  background: #b3b3b3;
}

.tkd-error-message {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

/* ============ OVERLAY DIALOGUE ============ */
.tkd-dialogue-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Sur mobile, 100% (comme 100vh) se calcule sur la hauteur MAXIMALE de
     l'écran, barre d'adresse du navigateur masquée -- alors que la barre
     est souvent visible au moment où ce dialogue s'ouvre. Comme le contenu
     est collé en bas (justify-content: flex-end ci-dessous), il se calait
     donc plus bas que la zone réellement visible : d'où les personnages
     qui semblaient décalés vers le bas sur smartphone. "100dvh" (hauteur
     de viewport dynamique) suit la hauteur réellement visible ; on garde
     100% juste avant en repli pour les navigateurs qui ne le connaissent
     pas encore. */
  height: 100%;
  height: 100dvh;
  background: #41828ddb;
  z-index: 9999;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tkd-dialogue-overlay.active {
  opacity: 1;
}

.tkd-dialogue-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.tkd-dialogue-title {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* Zone qui simule le formulaire visible derrière (optionnel) */
.tkd-dialogue-form-placeholder {
  width: 100%;
  max-width: 360px;
  flex: 1;
}

/* ============================================
   ZONE DES PERSONNAGES (les deux visibles)
   ============================================ */

.tkd-dialogue-characters {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  height: 320px;
  position: relative;
}

.tkd-char-img {
  max-height: 260px;
  object-fit: contain;
  transition: all 0.35s ease;
  opacity: 0.4;
  /*transform: scale(0.85);*/
  filter: grayscale(20%);
}

/* Personnage actif : plus grand, opacité pleine */
.tkd-char-img.active {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0%);
  max-height: 300px;
}

/* Ordre à l'écran : Luca à gauche, Pamela à droite (ajuste si besoin) */
.tkd-char-luca {
  order: 1;
}

.tkd-char-pamela {
  order: 2;
}


/* Bulle de dialogue façon bande dessinée */
.tkd-dialogue-bubble {
  position: absolute;
  bottom: 30vh;
  left: 24px;
  right: 24px;
  background: #fbdada;
  border-radius: 16px;
  padding: 20px 24px;
  z-index: 3;
}

.tkd-dialogue-bubble::after {
  content: "";
  position: absolute;
  bottom: -18px;
  /*left: 40px;*/
  border-width: 18px 18px 0 0;
  border-style: solid;
  border-color: #fbdada transparent transparent transparent;
}

/* Variante bulle bleue pour Luca */
.tkd-dialogue-bubble.tkd-dialogue-luca {
  background: #D5EBFC;
}
.tkd-dialogue-bubble.tkd-dialogue-luca::after {
  border-color: #D5EBFC transparent transparent transparent;
}
.tkd-dialogue-luca.tkd-dialogue-bubble::after {
  left: 40px;
}
.tkd-dialogue-name {
  display: block;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tkd-dialogue-bubble.tkd-dialogue-luca .tkd-dialogue-name {
  font-family: "Fun House", Sans-serif;
  color: #4C87B5;
}

.tkd-dialogue-bubble.tkd-dialogue-luca .tkd-dialogue-text {
  font-family: "Kalam", Sans-serif;
  color: #4C87B5;
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

/*PAMELA*/
.tkd-dialogue-bubble.tkd-dialogue-pamela {
  background: #FFE5E5;
}
.tkd-dialogue-bubble.tkd-dialogue-pamela::after {
  border-color: #FFE5E5 transparent transparent transparent; 
}
.tkd-dialogue-pamela.tkd-dialogue-bubble::after {
  right: 40px;
  transform: rotateY(180deg);
}
.tkd-dialogue-bubble.tkd-dialogue-pamela .tkd-dialogue-name {
  font-family: "Fun House", Sans-serif;
color: #740707;
}
.tkd-dialogue-bubble.tkd-dialogue-pamela .tkd-dialogue-text {
  font-family: "Kalam", Sans-serif;
  color: #740707;
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
/* Petit indicateur "clique pour continuer" (optionnel) */
.tkd-dialogue-overlay::before {
  content: "";
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .tkd-dialogue-characters {
    height: 220px;
  }
  .tkd-char-img {
    max-height: 170px;
  }
  .tkd-char-img.active {
    max-height: 200px;
  }
  .tkd-dialogue-bubble {
    padding: 16px 18px;
  }
  .tkd-dialogue-text {
    font-size: 0.95rem;
  }
}
