/* Ajouts propres a Wapilot.
   La feuille principale est du Tailwind DEJA COMPILE : une classe utilitaire
   absente de main.css ne produit rien. Tout ce qui manque s'ecrit ici. */

/* Le gabarit force boutons et etiquettes en minuscules. « WhatsApp » est une
   marque : sans cette regle on lit « whatsapp ». */
.btn,
.badge {
  text-transform: none;
}

/* Marque : le signe en image, le nom dans la police du site. */
.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.marque-signe {
  width: 36px;
  height: 36px;
  flex: none;
}

.marque-nom {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: inherit;
}

/* Menu reduit : quatre ancres, sans sous-menu. */
.lien-menu {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.4;
  color: inherit;
  transition: background-color 0.2s ease;
}

.lien-menu:hover {
  background-color: rgb(17 17 20 / 0.06);
}

/* Le defilement par ancre doit s'arreter sous l'en-tete flottant. */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 120px;
}

/* ------------------------------------------------------------------ */
/* Conversation de demonstration du heros.                             */
/* Ecrite en HTML plutot qu'en image : elle reste nette sur tout ecran,
   se lit par un lecteur d'ecran, et pese quelques octets.             */

.fil {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fcfcfc;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  font-size: 15px;
}

.fil-tete {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #111114;
  color: #fcfcfc;
}

.fil-pastille {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  background: #c6f56f;
  color: #111114;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fil-qui {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.fil-qui strong {
  font-weight: 600;
}

.fil-qui em {
  font-style: normal;
  font-size: 12.5px;
  color: #c6f56f;
}

.fil-marque {
  margin-left: auto;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(252 252 252 / 0.12);
}

.fil-corps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  overflow: hidden;
}

.bulle {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 16px;
  line-height: 1.45;
  color: #111114;
}

/* Le client ecrit a gauche, l'agent repond a droite. */
.bulle-eux {
  align-self: flex-start;
  background: #eeeef1;
  border-bottom-left-radius: 5px;
}

.bulle-nous {
  align-self: flex-end;
  background: #c6f56f;
  border-bottom-right-radius: 5px;
}

.fil-pied {
  margin-top: auto;
  padding-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: #6b6b73;
}

/* Sur un petit ecran la conversation est courte : on masque le debut
   plutot que de comprimer les bulles jusqu'a les rendre illisibles. */
@media (max-height: 420px), (max-width: 640px) {
  .fil-corps {
    justify-content: flex-end;
  }
}
