

.lea-pastille {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem 1.15rem .35rem .35rem;
  border: 1px solid rgba(212, 188, 138, .55);
  border-radius: 999px;
  background: #241C2B;
  color: var(--cream, #FAF6F0);
  font-family: var(--font-sans, 'Raleway', sans-serif);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(36, 28, 43, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lea-pastille[hidden] { display: none; }
.lea-pastille:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(36, 28, 43, .34); }
.lea-pastille:focus-visible { outline: 2px solid var(--gold, #B8975A); outline-offset: 3px; }

.lea-portrait { display: block; object-fit: cover; border-radius: 50%; }
.lea-portrait--pastille { width: 2.6rem; height: 2.6rem; border: 1px solid rgba(212, 188, 138, .7); }
.lea-portrait--tete { width: 3rem; height: 3rem; border: 1px solid rgba(212, 188, 138, .8); box-shadow: 0 0 0 4px rgba(212, 188, 138, .12); }

.lea-volet {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 10000;
  width: min(25rem, calc(100vw - 2rem));
  height: min(40rem, calc(100dvh - 2.5rem));
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(36, 28, 43, .26), 0 0 0 1px rgba(36, 28, 43, .06);
  font-family: var(--font-sans, 'Raleway', sans-serif);
  color: var(--text-body, #4A4155);
  overflow: hidden;
  animation: lea-entree .22s ease-out;
}
.lea-volet[hidden] { display: none; }
@keyframes lea-entree { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.lea-tete {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.05rem 1rem 1rem 1.2rem;
  background: linear-gradient(135deg, #241C2B 0%, #3A2D45 100%);
  color: var(--cream, #FAF6F0);
}
.lea-titres { flex: 1; min-width: 0; }
.lea-nom {
  margin: 0;
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
}
.lea-sous-titre { margin: .2rem 0 0; font-size: .75rem; letter-spacing: .03em; color: var(--gold-light, #D4BC8A); }
.lea-fermer {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: var(--cream, #FAF6F0);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.lea-fermer:hover { background: rgba(255, 255, 255, .18); }

.lea-fil {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1rem .6rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  background: #FFFFFF;
}
.lea-msg {
  margin: 0;
  padding: .7rem .95rem;
  border-radius: 18px;
  font-size: .95rem;
  line-height: 1.5;
  max-width: 86%;
  overflow-wrap: anywhere;
}
.lea-msg a { color: #7A5F2E; text-decoration: underline; text-underline-offset: 2px; }
.lea-msg--robot { align-self: flex-start; background: var(--lavender-bg, #F3F0F7); color: var(--text-dark, #2D2235); border-bottom-left-radius: 6px; }
.lea-msg--visiteur { align-self: flex-end; background: #2D2235; color: var(--cream, #FAF6F0); border-bottom-right-radius: 6px; }
.lea-msg--visiteur a { color: var(--gold-light, #D4BC8A); }

.lea-points { display: inline-flex; gap: .3rem; padding: .85rem 1rem; }
.lea-point { width: .45rem; height: .45rem; border-radius: 50%; background: #8A7E94; animation: lea-point 1.2s infinite ease-in-out; }
.lea-point:nth-child(2) { animation-delay: .15s; }
.lea-point:nth-child(3) { animation-delay: .3s; }
@keyframes lea-point { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.lea-actions { padding: .2rem 1rem .5rem; }
.lea-puce {
  border: 1px solid rgba(154, 125, 74, .45);
  border-radius: 999px;
  background: #FFFFFF;
  color: #7A5F2E;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem .9rem;
  cursor: pointer;
}
.lea-puce:hover { background: #FBF7EF; }
.lea-puce[hidden] { display: none; }

.lea-form {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  margin: 0 .85rem;
  padding: .35rem .35rem .35rem .9rem;
  border: 1px solid var(--lavender-light, #D6CCE0);
  border-radius: 22px;
  background: #FFFFFF;
}
.lea-form:focus-within { border-color: var(--gold, #B8975A); box-shadow: 0 0 0 3px rgba(184, 151, 90, .15); }
.lea-champ {
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text-dark, #2D2235);
  padding: .5rem 0;
  min-height: 2.4rem;
  max-height: 7rem;
}
.lea-envoyer {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: #2D2235;
  color: var(--cream, #FAF6F0);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.lea-envoyer:disabled { opacity: .45; cursor: default; }

.lea-avis {
  margin: 0;
  padding: .5rem 1.1rem .7rem;
  text-align: center;
  font-size: .7rem;
  line-height: 1.45;
  color: #6E6378;
}
.lea-avis a { color: inherit; }

.lea-rappel { display: flex; flex-direction: column; gap: .55rem; width: 86%; }
.lea-rappel__titre { margin: 0 0 .1rem; font-weight: 600; color: var(--text-dark, #2D2235); }
.lea-rappel__champ { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: #5A4F66; }
.lea-rappel__champ input {
  font: inherit;
  font-size: 16px;
  padding: .5rem .65rem;
  border: 1px solid var(--lavender-light, #D6CCE0);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--text-dark, #2D2235);
}
.lea-rappel__champ input:focus { outline: 2px solid var(--gold, #B8975A); outline-offset: 1px; }
.lea-rappel__piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lea-rappel__consent { display: block; padding-left: 1.5rem; text-indent: -1.5rem; font-size: .75rem; line-height: 1.4; color: #5A4F66; }
.lea-rappel__consent input { width: 1rem; margin: 0 .5rem 0 0; vertical-align: -.15rem; }
.lea-rappel__consent a { color: #7A5F2E; }
.lea-rappel__erreur { margin: 0; font-size: .78rem; color: #8B2E3C; }
.lea-rappel__erreur:empty { display: none; }
.lea-rappel__boutons { display: flex; gap: .5rem; flex-wrap: wrap; }
.lea-rappel__ok {
  border: 0;
  border-radius: 999px;
  background: #7A5F2E;
  color: #FFFFFF;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 1rem;
  cursor: pointer;
}
.lea-rappel__ok:disabled { opacity: .6; }
.lea-rappel__non { border: 0; background: transparent; color: #5A4F66; font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }

@media (max-width: 520px) {
  .lea-volet { right: 0; left: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .lea-pastille { right: .9rem; bottom: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lea-pastille, .lea-volet { transition: none; animation: none; }
  .lea-point { animation: none; opacity: .7; }
}
