/* Pilotage des appels · styles du module « Léa » (lea.js).
   Jetons et composants de la refonte : app.css ; contrat du socle : specs/front-v2.md.
   Volet de discussion sur le fond clair (#E9EDF4), bulles et cartes blanches bordées ; empilement : bouton flottant 32, voile 44, volet 45 (toasts 50 au-dessus). */

/* ===== Avatar de Léa : étincelle blanche sur un dégradé bleu → rose M&R (non-texte ≥ 3:1 sur tout le dégradé) ===== */
.m-lea-avatar {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #FFFFFF;
  background: #F3E3EC; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(14, 22, 56, .16);
}
.m-lea-avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.m-lea-avatar.puce { width: 30px; height: 30px; }
.m-lea-avatar.mini { width: 26px; height: 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.m-lea-avatar.mini svg { width: 14px; height: 14px; }
.m-lea-avatar.grand { width: 52px; height: 52px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px rgba(33, 60, 160, .22); }
.m-lea-avatar.grand svg { width: 26px; height: 26px; }

/* Point « nouvelle réponse » sur les boutons d'ouverture */
.m-lea-point { position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--mr-rose); box-shadow: 0 0 0 2px var(--nuit); }

/* ===== Bouton « Léa » de la barre d'actions (sur la nuit) ===== */
.m-lea-action {
  position: relative; flex: 1 1 auto; display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  height: 44px; padding: 0 14px 0 9px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .06); color: #FFFFFF; font: 600 0.9375rem/1 var(--police); letter-spacing: -0.006em; text-align: left;
  transition: background-color var(--d-rapide) var(--c-standard), border-color var(--d-rapide) var(--c-standard), transform var(--d-pression) var(--c-sortie);
}
@media (hover: hover) { .m-lea-action:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .22); } }
.m-lea-action:active { transform: scale(.98); }
.m-lea-action:focus-visible { outline-color: var(--focus-nuit); }
.m-lea-action-libelle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Bouton flottant (bureau et tablette) ===== */
.m-lea-flottant {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 32;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 8px;
  border: 1px solid rgba(255, 255, 255, .10); border-radius: var(--r-capsule); cursor: pointer;
  background: var(--nuit); color: #FFFFFF; font: 600 0.9375rem/1 var(--police); letter-spacing: -0.006em;
  box-shadow: var(--ombre-flottante); animation: m-lea-monte var(--d-base) var(--c-sortie);
  transition: background-color var(--d-rapide) var(--c-standard), transform var(--d-pression) var(--c-sortie),
    padding var(--d-base) var(--c-sortie), gap var(--d-base) var(--c-sortie);
}
@media (hover: hover) { .m-lea-flottant:hover { background: #18224E; transform: translateY(-1px); } }
.m-lea-flottant:active { transform: scale(.97); }
.m-lea-flottant .m-lea-point { top: 4px; right: auto; left: 36px; }
.m-lea-flottant-libelle {
  max-width: 160px; overflow: hidden; white-space: nowrap;
  transition: max-width var(--d-base) var(--c-sortie), opacity var(--d-rapide) var(--c-standard);
}
/* Réduit à son rond (52 px) quand la page défile, et toujours sous 1100 px : il couvre moins le contenu */
.m-lea-flottant.m-lea-compact { gap: 0; padding: 0 7px; }
.m-lea-flottant.m-lea-compact .m-lea-flottant-libelle { max-width: 0; opacity: 0; }
@media (max-width: 1099px) {
  .m-lea-flottant { gap: 0; padding: 0 7px; }
  .m-lea-flottant .m-lea-flottant-libelle { max-width: 0; opacity: 0; }
}

/* ===== Voile et volet ===== */
.m-lea-voile { position: fixed; inset: 0; z-index: 44; background: rgba(14, 22, 56, .32); animation: m-lea-fondu var(--d-base) var(--c-standard); }
.m-lea-panneau {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--fond); color: var(--texte);
  border-left: 1px solid var(--contour-carte); box-shadow: var(--ombre-flottante);
  animation: m-lea-entre var(--d-base) var(--c-sortie);
}
.m-lea-panneau:focus { outline: none; }
.m-lea-panneau.m-lea-sortie { opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity var(--d-sortie) var(--c-standard), transform var(--d-sortie) var(--c-standard); }
.m-lea-voile.m-lea-sortie { opacity: 0; pointer-events: none; transition: opacity var(--d-sortie) var(--c-standard); }
@keyframes m-lea-entre { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes m-lea-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-lea-monte { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Page derrière le volet : immobile, sans saut de largeur quand la barre de défilement disparaît */
html.m-lea-ouvert { overflow: hidden; }
html.m-lea-gouttiere { scrollbar-gutter: stable; }
/* Sur grand écran, les toasts passent à gauche du volet au lieu de couvrir la saisie */
@media (min-width: 1100px) { html.m-lea-ouvert #toasts { right: 464px; } }

/* En-tête */
.m-lea-tete {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 10px 12px 18px; background: var(--surface); border-bottom: 1px solid var(--separateur);
}
.m-lea-tete-texte { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.m-lea-titre { margin: 0; font: 700 1.0625rem/1.25 var(--police); letter-spacing: -0.014em; }
.m-lea-sous { margin: 0; font: 400 0.8125rem/1.35 var(--police); letter-spacing: 0; color: var(--texte-2); }
.m-lea-tete-actions { display: flex; gap: 2px; }
.m-lea-icone-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--texte-2);
  transition: background-color var(--d-rapide) var(--c-standard), color var(--d-rapide) var(--c-standard);
}
.m-lea-icone-btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .m-lea-icone-btn:not(:disabled):hover { background: var(--remplissage); color: var(--texte); } }
.m-lea-icone-btn:active:not(:disabled) { background: var(--remplissage-presse); }
.m-lea-icone-btn:disabled { opacity: .4; cursor: default; }

/* Choix « Discussion / Sur WhatsApp » (segments du cœur, pleine largeur) */
.m-lea-onglets { flex: none; padding: 12px 16px 0; }
.m-lea-onglets .segments { display: flex; width: 100%; }
.m-lea-onglets .segments button { flex: 1 1 0; justify-content: center; }

/* ===== Fil de la conversation ===== */
.m-lea-fil {
  position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px; padding: 20px 16px 24px;
}
.m-lea-fil:focus-visible { outline-offset: -3px; }
.m-lea-jour { align-self: center; margin: 2px 0 0; font: 600 0.75rem/1.3 var(--police); letter-spacing: 0; color: var(--texte-2); }

.m-lea-msg { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.m-lea-moi { align-self: flex-end; max-width: 86%; }
.m-lea-elle { align-self: flex-start; }
.m-lea-bulle { padding: 10px 15px 11px; border-radius: 18px; font: 400 0.9375rem/1.55 var(--police); letter-spacing: -0.006em; overflow-wrap: anywhere; }
.m-lea-moi .m-lea-bulle { background: var(--accent); color: #FFFFFF; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.m-lea-elle .m-lea-bulle { background: var(--surface); color: var(--texte); border: 1px solid var(--contour-carte); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(14, 22, 56, .05); }
/* Paragraphes espacés, intertitre détaché du bloc précédent et collé à sa liste */
.m-lea-bulle > * { margin: 0; }
.m-lea-bulle > * + * { margin-top: 10px; }
.m-lea-bulle > * + .m-lea-intertitre { margin-top: 16px; }
.m-lea-bulle > .m-lea-intertitre + * { margin-top: 4px; }
.m-lea-bulle strong { font-weight: 650; }
.m-lea-intertitre { font-weight: 650; color: var(--texte); }
.m-lea-liste { padding-left: 1.3em; display: grid; gap: 4px; }
.m-lea-liste li { padding-left: 2px; }
.m-lea-liste li::marker { color: var(--texte-3); }
.m-lea-non-envoye .m-lea-bulle { opacity: .6; }

/* « Léa écrit… » */
.m-lea-ecrit .m-lea-bulle { display: inline-flex; align-items: center; gap: 10px; color: var(--texte-2); font-size: 0.875rem; }
.m-lea-points { display: inline-flex; gap: 4px; }
.m-lea-points span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .35; animation: m-lea-points 1.2s var(--c-standard) infinite; }
.m-lea-points span:nth-child(2) { animation-delay: .16s; }
.m-lea-points span:nth-child(3) { animation-delay: .32s; }
@keyframes m-lea-points { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }

/* Erreurs */
.m-lea-erreur {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: var(--r-m);
  background: var(--rouge-pale); color: var(--rouge-texte);
}
.m-lea-erreur svg { width: 18px; height: 18px; flex: none; }
.m-lea-erreur p { flex: 1 1 180px; margin: 0; font: 400 0.875rem/1.45 var(--police); }
.m-lea-erreur strong { font-weight: 600; }
.m-lea-erreur .btn { margin-left: auto; }

/* Chargement */
.m-lea-squelette { display: grid; gap: 12px; }
.m-lea-sq { border-radius: 18px; }
.m-lea-sq-droite { justify-self: end; }

/* ===== Accueil (conversation vide) ===== */
.m-lea-accueil { display: grid; gap: 4px; padding: 4px 2px 0; }
.m-lea-accueil > .m-lea-avatar { margin-bottom: 12px; }
.m-lea-bonjour { margin: 0; font: 700 1.375rem/1.25 var(--police); letter-spacing: -0.02em; }
.m-lea-intro { margin: 0; font: 400 0.9375rem/1.5 var(--police); color: var(--texte-2); }
.m-lea-note { margin: 12px 0 0; }
.m-lea-depart-titre { margin: 20px 0 6px; font: 600 0.8125rem/1.3 var(--police); letter-spacing: 0; color: var(--texte-2); }
.m-lea-depart { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-lea-suggestion {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 9px 12px 9px 10px;
  border: 1px solid var(--contour-carte); border-radius: 14px; cursor: pointer; background: var(--surface); color: var(--texte);
  font: 500 0.9375rem/1.35 var(--police); letter-spacing: -0.006em; text-align: left; box-shadow: 0 1px 2px rgba(14, 22, 56, .05);
  transition: border-color var(--d-rapide) var(--c-standard), box-shadow var(--d-rapide) var(--c-standard), transform var(--d-pression) var(--c-sortie);
}
@media (hover: hover) { .m-lea-suggestion:not(:disabled):hover { border-color: var(--separateur-fort); box-shadow: var(--ombre-carte); } .m-lea-suggestion:not(:disabled):hover .m-lea-chevron { color: var(--accent); } }
.m-lea-suggestion:active:not(:disabled) { transform: scale(.99); }
.m-lea-suggestion:disabled { cursor: default; opacity: .55; }
.m-lea-suggestion-icone { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-teinte); color: var(--accent); }
.m-lea-suggestion-icone svg { width: 18px; height: 18px; }
.m-lea-suggestion-lea .m-lea-suggestion-icone { background: linear-gradient(135deg, var(--mr-bleu) 0%, var(--mr-rose) 100%); color: #FFFFFF; }
.m-lea-suggestion-texte { flex: 1 1 auto; min-width: 0; }
.m-lea-chevron { width: 16px; height: 16px; flex: none; color: var(--texte-3); transition: color var(--d-rapide) var(--c-standard); }
.m-lea-mention { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; font: 400 0.8125rem/1.45 var(--police); letter-spacing: 0; color: var(--texte-2); }
.m-lea-mention svg { width: 15px; height: 15px; margin-top: 2px; color: var(--texte-3); }

/* ===== Cartes de Léa : règle proposée, puis reçus (règle activée ou désactivée, demande à M&R) ===== */
.m-lea-carte { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--contour-carte); border-radius: var(--r-l); box-shadow: var(--ombre-carte); }
.m-lea-carte-tete { display: flex; align-items: center; gap: 10px; }
.m-lea-carte-icone { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-teinte); color: var(--accent); }
.m-lea-carte-icone svg { width: 18px; height: 18px; }
.m-lea-carte-titre { flex: 1 1 auto; min-width: 0; margin: 0; font: 600 0.8125rem/1.3 var(--police); letter-spacing: 0; color: var(--texte-2); }
.m-lea-regle-phrase { margin: 0; font: 600 0.9375rem/1.5 var(--police); letter-spacing: -0.008em; color: var(--texte); }
.m-lea-simulation { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-inset); }
.m-lea-sim-titre { margin: 0; font: 400 0.875rem/1.45 var(--police); letter-spacing: 0; color: var(--neutre-texte); }
.m-lea-sim-titre strong { font-weight: 700; color: var(--texte); }
.m-lea-exemples { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.m-lea-ex { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px; margin-inline: -8px; border-radius: var(--r-s); color: var(--texte); }
a.m-lea-ex { text-decoration: none; transition: background-color var(--d-rapide) var(--c-standard); }
@media (hover: hover) { a.m-lea-ex:hover { background: var(--surface); text-decoration: none; } a.m-lea-ex:hover .m-lea-chevron { color: var(--accent); } }
.m-lea-ex-corps { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.m-lea-ex-texte { font: 500 0.8125rem/1.4 var(--police); letter-spacing: 0; }
.m-lea-ex-date { font: 400 0.75rem/1.35 var(--police); letter-spacing: 0; color: var(--texte-2); }
.m-lea-sim-plus { margin: 0; font: 400 0.8125rem/1.4 var(--police); letter-spacing: 0; color: var(--texte-2); }
.m-lea-carte-erreur { margin: 0; font: 500 0.8125rem/1.45 var(--police); letter-spacing: 0; color: var(--rouge-texte); }
.m-lea-carte-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.m-lea-recu { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--contour-carte); border-radius: var(--r-m); }
.m-lea-recu-icone { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.m-lea-recu-icone svg { width: 16px; height: 16px; }
.m-lea-recu-vert .m-lea-recu-icone { background: var(--vert-pale); color: var(--vert-texte); }
.m-lea-recu-ambre .m-lea-recu-icone { background: var(--ambre-pale); color: var(--ambre-texte); }
.m-lea-recu-neutre .m-lea-recu-icone { background: var(--remplissage); color: var(--neutre-texte); }
.m-lea-recu-corps { min-width: 0; display: grid; justify-items: start; gap: 2px; }
.m-lea-recu-titre { margin: 0; font: 600 0.875rem/1.4 var(--police); letter-spacing: 0; }
.m-lea-recu-texte { margin: 0; font: 400 0.8125rem/1.45 var(--police); letter-spacing: 0; color: var(--texte-2); }

/* ===== Saisie ===== */
.m-lea-pied {
  flex: none; display: grid; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--separateur);
}
.m-lea-puces {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px -16px 0; padding: 4px 32px 4px 16px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.m-lea-puces::-webkit-scrollbar { display: none; }
.m-lea-puce {
  flex: none; height: 34px; padding: 0 14px; border: 1px solid var(--separateur-fort); border-radius: var(--r-capsule); cursor: pointer;
  background: var(--surface); color: var(--accent-texte); font: 500 0.8125rem/1 var(--police); letter-spacing: 0; white-space: nowrap;
  transition: background-color var(--d-rapide) var(--c-standard), border-color var(--d-rapide) var(--c-standard);
}
@media (hover: hover) { .m-lea-puce:not(:disabled):hover { background: var(--accent-teinte); border-color: var(--accent-teinte); } }
.m-lea-puce:active:not(:disabled) { background: #E2E7FC; }
.m-lea-puce:disabled { cursor: default; opacity: .5; }
.m-lea-aide { margin: 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--accent-teinte); color: var(--accent-texte); font: 400 0.8125rem/1.45 var(--police); letter-spacing: 0; }
.m-lea-aide strong { font-weight: 600; }
.m-lea-champ {
  display: flex; align-items: flex-end; gap: 8px; padding: 4px 4px 4px 16px; border: 1px solid var(--contour-champ); border-radius: 24px; background: var(--surface);
  transition: border-color var(--d-rapide) var(--c-standard), box-shadow var(--d-rapide) var(--c-standard);
}
@media (hover: hover) { .m-lea-champ:hover { border-color: var(--contour-champ-survol); } }
.m-lea-champ:focus-within { border-color: var(--accent); box-shadow: var(--halo-champ); }
.m-lea-champ:has(.m-lea-saisie:disabled) { background: var(--surface-inset); border-color: var(--separateur-fort); }
.m-lea-saisie {
  flex: 1 1 auto; min-width: 0; max-height: 168px; margin: 0; padding: 8px 0; border: 0; outline: 0; resize: none; overflow-y: auto;
  background: transparent; color: var(--texte); font: 400 0.9375rem/1.5 var(--police); letter-spacing: -0.006em;
}
.m-lea-saisie::placeholder { color: var(--texte-3); opacity: 1; }
.m-lea-saisie:focus-visible { outline: none; }
.m-lea-saisie:disabled { cursor: not-allowed; }
.m-lea-envoyer {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--action); color: #FFFFFF; box-shadow: var(--reflet), 0 1px 2px rgba(200, 18, 116, .24);
  transition: background-color var(--d-rapide) var(--c-standard), transform var(--d-pression) var(--c-sortie);
}
.m-lea-envoyer svg { width: 20px; height: 20px; stroke-width: 2.2; }
@media (hover: hover) { .m-lea-envoyer:not(:disabled):hover { background: var(--action-survol); } }
.m-lea-envoyer:active:not(:disabled) { background: var(--action-presse); transform: scale(.94); }
.m-lea-envoyer:disabled { background: var(--remplissage); color: var(--texte-3); box-shadow: none; cursor: default; }
.m-lea-astuce { margin: -2px 0 0; font: 400 0.75rem/1.3 var(--police); letter-spacing: 0; color: var(--texte-3); text-align: center; }

/* ===== Léa sur WhatsApp ===== */
.m-lea-wa-zone { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 24px; }
.m-lea-wa { display: grid; gap: 14px; padding: 20px; }
.m-lea-wa-tete { display: flex; align-items: center; gap: 12px; }
.m-lea-wa-icone { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--vert-pale); color: var(--vert-texte); }
.m-lea-wa-icone svg { width: 22px; height: 22px; }
.m-lea-wa-titre { flex: 1 1 auto; min-width: 0; margin: 0; font: 700 1.0625rem/1.3 var(--police); letter-spacing: -0.014em; }
.m-lea-wa-intro, .m-lea-wa-texte { margin: 0; font: 400 0.9375rem/1.5 var(--police); color: var(--texte-2); }
.m-lea-wa-texte { color: var(--texte); }
.m-lea-wa-meta { margin: 0; font: 400 0.8125rem/1.45 var(--police); letter-spacing: 0; color: var(--texte-2); }
.m-lea-wa-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.m-lea-etapes { list-style: none; counter-reset: m-lea-etape; margin: 0; padding: 0; display: grid; gap: 16px; }
.m-lea-etapes:focus { outline: none; }
.m-lea-etape { counter-increment: m-lea-etape; position: relative; display: grid; justify-items: start; gap: 8px; padding-left: 38px; }
.m-lea-etape::before {
  content: counter(m-lea-etape); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--nuit); color: #FFFFFF; font: 700 0.8125rem/1 var(--police);
}
.m-lea-etape p { margin: 0; font: 400 0.9375rem/1.5 var(--police); }
.m-lea-code-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.m-lea-code {
  padding: 8px 12px; border-radius: var(--r-s); background: var(--surface-inset); border: 1px dashed var(--separateur-fort); color: var(--texte);
  font: 700 1.0625rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; letter-spacing: .06em; user-select: all;
}
.m-lea-wa-numeros { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-lea-wa-numeros li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-inset); }
.m-lea-wa-numero { font: 600 1rem/1.3 var(--police); font-variant-numeric: tabular-nums; }
.m-lea-wa-confirmer { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--rouge-pale); color: var(--rouge-texte); }
.m-lea-wa-confirmer p { margin: 0; font: 500 0.875rem/1.45 var(--police); }
.m-lea-wa-retour { margin: 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--accent-teinte); color: var(--accent-texte); font: 500 0.875rem/1.45 var(--police); }
.m-lea-wa-retour:focus { outline: none; }
.m-lea-wa-note { display: flex; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--separateur); font: 400 0.8125rem/1.45 var(--police); letter-spacing: 0; color: var(--texte-2); }
.m-lea-wa-note svg { width: 16px; height: 16px; margin-top: 1px; color: var(--texte-3); }

/* ===== Adaptations ===== */
@media (max-width: 899px) {
  /* Barre du haut : un bouton-icône de 40 px, le dégradé de Léa à côté du compte */
  .m-lea-action { flex: none; width: 40px; height: 40px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: transparent; }
  .m-lea-action .m-lea-avatar.mini { width: 36px; height: 36px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(255, 255, 255, .12); }
  .m-lea-action .m-lea-avatar.mini svg { width: 18px; height: 18px; }
  @media (hover: hover) { .m-lea-action:hover { background: transparent; } }
  .m-lea-action-libelle { display: none; }
  .m-lea-action .m-lea-point { top: 0; right: 0; }
  /* La barre du haut porte déjà Léa : pas de bouton flottant au-dessus des onglets */
  .m-lea-flottant { display: none; }
}
@media (max-width: 640px) {
  .m-lea-panneau { width: 100%; border-left: 0; }
  .m-lea-fil { padding: 16px 14px 20px; }
  .m-lea-pied { padding-inline: 12px; }
  .m-lea-puces { margin-inline: -12px; padding-inline: 12px 28px; }
  .m-lea-wa-zone { padding: 14px 12px 20px; }
  .m-lea-wa { padding: 18px 16px; }
  .m-lea-code { padding: 8px 10px; font-size: 1rem; letter-spacing: .03em; }   /* le code et « Copier » tiennent sur une ligne à 390 px */
  .m-lea-saisie { font-size: 1rem; }   /* 16 px : iOS ne zoome pas au focus */
}
@media (max-width: 640px), (pointer: coarse) {
  .m-lea-puce { height: 40px; }
  .m-lea-ex { min-height: 44px; }
  .m-lea-astuce { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .m-lea-panneau, .m-lea-voile, .m-lea-flottant { animation: m-lea-fondu var(--d-rapide) linear; }
  .m-lea-panneau.m-lea-sortie { transform: none; }
  .m-lea-points span { animation: none; opacity: .6; }
  .m-lea-flottant, .m-lea-flottant-libelle { transition: none; }
  .m-lea-action:active, .m-lea-flottant:active, .m-lea-suggestion:active, .m-lea-envoyer:active { transform: none; }
  @media (hover: hover) { .m-lea-flottant:hover { transform: none; } }
}

/* Avatar libre de Léa : plus de pastille ronde ni de fond, l'image détourée respire. */
.m-lea-avatar, .m-lea-avatar.mini, .m-lea-avatar.grand, .m-lea-avatar.puce, .m-lea-action .m-lea-avatar.mini {
  background: none; border-radius: 0; box-shadow: none; overflow: visible; width: auto; aspect-ratio: 170 / 192;
}
.m-lea-avatar { height: 42px; }
.m-lea-avatar.mini, .m-lea-action .m-lea-avatar.mini, .m-lea-avatar.puce { height: 36px; }
.m-lea-avatar.grand { height: 112px; }
.m-lea-avatar img { width: 100%; height: 100%; }
