/* Accompagnement : pages publiques et messagerie (bulles à la manière d'une messagerie de téléphone). */
.coach-page { max-width: 640px; margin: 0 auto; padding: 1rem; }
.coach-page h1 { font-size: 1.4rem; }
.coach-page textarea, .coach-page input[type=email], .coach-page input[name=code] { width: 100%; box-sizing: border-box; margin: .3rem 0 1rem; padding: .6rem; border: 1px solid var(--bord); border-radius: 6px; font: inherit; }
.coach-accord { display: flex; gap: .5rem; align-items: flex-start; font-weight: normal; margin: 1rem 0; }
.coach-page form + form { margin-top: .75rem; }

body.coach { background: #efe9e1; }
.fil-app { display: flex; flex-direction: column; height: 100dvh; max-width: 760px; margin: 0 auto; background: #efe9e1; }
.fil-entete { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; padding-top: calc(.55rem + env(safe-area-inset-top)); background: var(--accent); color: #fff; }
.fil-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.fil-titre { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.fil-titre strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-titre span { font-size: .78rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-humain { color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.fil-humain:hover { background: rgba(255, 255, 255, .15); text-decoration: none; }
.fil-menu { position: relative; }
.fil-menu summary { list-style: none; cursor: pointer; font-size: 1.4rem; padding: 0 .4rem; }
.fil-menu summary::-webkit-details-marker { display: none; }
.fil-menu nav { position: absolute; right: 0; top: 2.2rem; z-index: 5; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(16, 24, 40, .2); min-width: 250px; padding: .3rem 0; }
.fil-menu nav a { display: block; padding: .6rem .9rem; color: var(--texte); }
.fil-menu nav a:hover { background: var(--accent-clair); text-decoration: none; }

.fil { flex: 1; overflow-y: auto; padding: .75rem .6rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.fil-note, .fil-jour { align-self: center; background: rgba(255, 255, 255, .8); color: var(--discret); font-size: .78rem; padding: .25rem .7rem; border-radius: 8px; margin: .4rem 0; text-align: center; max-width: 90%; }
.bulle { max-width: 82%; padding: .45rem .7rem .3rem; border-radius: 12px; box-shadow: 0 1px 1px rgba(16, 24, 40, .12); overflow-wrap: anywhere; }
.bulle p { margin: 0 0 .35rem; white-space: pre-wrap; }
.bulle.coach { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.bulle.client { align-self: flex-end; background: #d7ecd9; border-top-right-radius: 3px; }
.bulle.coach + .bulle.client, .bulle.client + .bulle.coach { margin-top: .45rem; }
.bulle time { display: block; text-align: right; font-size: .68rem; color: var(--discret); }
.bulle.echec { background: var(--alerte-clair); }
.bulle .action { display: inline-block; margin: .15rem 0 .4rem; padding: .35rem .8rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .88rem; }
.bulle .action.lien { background: var(--accent-clair); color: var(--accent); }
.points { display: inline-flex; gap: 4px; padding: .35rem 0 .45rem; }
.points i { width: 7px; height: 7px; border-radius: 50%; background: #9aa3ae; animation: coach-points 1.2s infinite ease-in-out; }
.points i:nth-child(2) { animation-delay: .2s; }
.points i:nth-child(3) { animation-delay: .4s; }
@keyframes coach-points { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .points i { animation: none; } }

.fil-saisie { display: flex; align-items: flex-end; gap: .5rem; padding: .5rem .6rem; padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); background: #f6f3ee; }
.fil-saisie textarea { flex: 1; resize: none; border: 0; border-radius: 20px; padding: .6rem .9rem; font: inherit; max-height: 9rem; background: #fff; }
.fil-saisie textarea:focus { outline: 2px solid var(--accent-clair); }
.fil-saisie button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 1.1rem; cursor: pointer; }
.fil-saisie button:disabled { opacity: .45; cursor: default; }
.fil-ferme { margin: 0; padding: .9rem 1rem; background: #f6f3ee; text-align: center; }
.fil-erreur { align-self: center; background: var(--danger-clair); color: var(--danger); font-size: .85rem; padding: .35rem .8rem; border-radius: 8px; }

/* Espace de l'équipe */
.equipe { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.equipe-barre { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.equipe-barre .marque { font-weight: 700; color: var(--texte); margin-right: auto; }
.equipe-barre form { margin: 0; }
.equipe input:not([type=checkbox]):not([type=date]), .equipe textarea { width: 100%; box-sizing: border-box; padding: .5rem; border: 1px solid var(--bord); border-radius: 6px; font: inherit; margin: .2rem 0 .8rem; }
.equipe input[type=date], .equipe .en-ligne input { width: auto; margin: 0; padding: .4rem; border: 1px solid var(--bord); border-radius: 6px; font: inherit; }
.en-ligne { display: inline-flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.bulle audio { display: block; width: 100%; min-width: 220px; margin: .2rem 0 .4rem; }

/* Phase d'essai : bandeau sur toutes les pages, relecture côté équipe. */
.bandeau-essai { background: #fff4d6; color: #5c4400; text-align: center; font-size: .8rem; padding: .3rem .6rem; border-bottom: 1px solid #f0d58a; }
.fil.relecture { background: #efe9e1; border-radius: 8px; overflow: visible; max-width: 760px; }
.coach-accord.relecture { margin-top: .6rem; }

/* Questionnaire de satisfaction. */
fieldset.echelle { display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: .6rem .9rem .7rem; }
fieldset.echelle legend { font-weight: 600; padding: 0 .3rem; }
fieldset.echelle label { display: inline-flex; align-items: center; gap: .25rem; margin: 0; font-weight: normal; }
fieldset.echelle.reco { gap: .3rem .55rem; }
.avis-reponse { border-top: 1px solid var(--bord); padding: .6rem 0; }
.avis-reponse:first-of-type { border-top: 0; }
.avis-reponse p { margin: .2rem 0; }
.fil-invitation { margin: 0; padding: .4rem .8rem; text-align: center; font-size: .82rem; background: #fff4d6; color: #5c4400; }
