@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --violet: #4B006E;
  --jaune: #FFD000;
  --rose: #FF2E7E;
  --creme: #FFF7EE;
  --lilas: #D6B8FF;
  --peche: #FFB49C;
  --menthe: #B8F0E0;
  --gris: #E6E6E6;
  --blanc: #FFFFFF;
  --texte-doux: #7A5A8C;
  --ombre: 0 2px 10px rgba(75, 0, 110, 0.08);
  /* La petite fleche des listes et des blocs qui se deplient : le meme trace que l'icone
     ICONES.chevron de commun.js, pour que toutes les fleches du site se ressemblent. */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  /* Le meme trace, deja tourne, pour les fleches qui ne peuvent pas tourner (voir .repli.leger). */
  --chevron-bas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  --chevron-haut: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 15l7-7 7 7'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--violet);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.colonne { max-width: 520px; margin: 0 auto; padding: 0 16px; }

/* ---------- logo ---------- */

.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { width: 58px; height: auto; display: block; }
.logo-texte { display: flex; flex-direction: column; line-height: 1; }
.logo-nom { font-weight: 900; font-size: 34px; letter-spacing: -0.03em; color: var(--violet); }
.logo-nom i { font-style: normal; color: var(--jaune); }
.logo-devise { font-weight: 700; font-size: 13px; margin-top: 3px; color: var(--violet); }

.logo.grand { flex-direction: column; gap: 0; }
.logo.grand img { width: 150px; }
.logo.grand .logo-texte { align-items: center; }
.logo.grand .logo-nom { font-size: 64px; margin-top: -14px; }
.logo.grand .logo-devise { font-size: 19px; margin-top: 6px; }

/* ---------- en-tete ---------- */

.entete { background: var(--violet); padding: 14px 0 34px; position: relative; }
/* Back office : bandeau noir, pour voir d'un coup d'oeil que l'on n'est plus dans une Mimote. */
.entete[data-sombre] { background: #141414; }
/* Le violet etant la couleur principale du site, on le remplace ici par du noir et des gris. */
.back-office { --violet: #141414; --texte-doux: #5C5C5C; --lilas: #DCDCDC; --ombre: 0 2px 10px rgba(0, 0, 0, 0.08); }
.entete .colonne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entete .logo-nom, .entete .logo-devise { color: var(--creme); }
.entete::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: var(--creme);
  clip-path: path("M0 26 L0 14 C 160 -8, 300 30, 520 10 S 900 -6, 1200 16 S 1900 0, 2600 14 L2600 26 Z");
}
.bouton-rond {
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: inline-grid; place-items: center; flex: none;
  background: rgba(255, 247, 238, 0.14); color: var(--creme); text-decoration: none;
}
.bouton-rond svg { width: 24px; height: 24px; }

/* ---------- textes ---------- */

h1 { font-size: 26px; font-weight: 900; margin: 18px 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 20px; font-weight: 900; margin: 30px 0 10px; }
p { margin: 0 0 10px; }
.discret { color: var(--texte-doux); font-size: 15px; }

.etat-boite { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--texte-doux); }
.etat-boite::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gris); }
.etat-boite.en-ligne::before { background: #2EBD85; }

/* ---------- boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0;
  font-weight: 800; background: var(--jaune); color: var(--violet); text-decoration: none;
}
.bouton.secondaire { background: var(--blanc); box-shadow: inset 0 0 0 2px rgba(75, 0, 110, 0.14); }
.bouton.rose { background: var(--rose); color: var(--blanc); }
.bouton.petit { min-height: 38px; padding: 0 14px; font-size: 15px; }
.bouton:disabled { opacity: 0.5; cursor: default; }
.bouton svg { width: 20px; height: 20px; }

/* ---------- fil des messages ---------- */

.fil { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.message {
  background: var(--blanc); border-radius: 22px; padding: 12px 12px 12px 14px;
  box-shadow: var(--ombre); display: grid; grid-template-columns: 48px 1fr 52px; gap: 12px; align-items: center;
}
.message.de-boite { background: #FFF3BF; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 20px; color: var(--violet); background: var(--lilas);
}
.avatar img { width: 40px; }
.message.de-boite .avatar { background: var(--blanc); }
.message-corps { min-width: 0; }
.message-auteur { font-weight: 900; font-size: 18px; line-height: 1.2; }
.message-quand { font-size: 14px; color: var(--texte-doux); }
.message-suivi { font-size: 13px; font-weight: 700; color: var(--texte-doux); margin-top: 2px; }
.message-suivi.ecoute { color: #1D8A60; }
.barre { height: 6px; border-radius: 3px; background: rgba(75, 0, 110, 0.1); margin-top: 8px; overflow: hidden; }
.barre span { display: block; height: 100%; width: 0; background: var(--rose); border-radius: 3px; }
.lire {
  width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--jaune); color: var(--violet);
  display: grid; place-items: center;
}
.lire svg { width: 26px; height: 26px; }
.lire.charge { opacity: 0.6; }
.supprimer-vocal { grid-column: 2 / 4; justify-self: start; background: none; border: 0; padding: 0; font-size: 13px; font-weight: 700; color: var(--texte-doux); text-decoration: underline; }

.vide { text-align: center; padding: 34px 10px; color: var(--texte-doux); }

/* ---------- zone pour parler ---------- */

.espace-bas { height: 190px; }
.parler {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 26px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--creme) 62%, rgba(255, 247, 238, 0));
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
}
.parler > * { pointer-events: auto; }
.micro {
  width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--rose); color: var(--blanc);
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255, 46, 126, 0.14), 0 8px 20px rgba(255, 46, 126, 0.35);
}
.micro svg { width: 42px; height: 42px; }
.micro.actif { animation: battement 1.2s ease-in-out infinite; }
@keyframes battement {
  0%, 100% { box-shadow: 0 0 0 10px rgba(255, 46, 126, 0.14), 0 8px 20px rgba(255, 46, 126, 0.35); }
  50% { box-shadow: 0 0 0 22px rgba(255, 46, 126, 0.10), 0 8px 20px rgba(255, 46, 126, 0.35); }
}
.parler-texte { font-weight: 800; font-size: 16px; min-height: 24px; text-align: center; }

/* ---------- fenetre d'apercu ---------- */

dialog {
  border: 0; border-radius: 26px; padding: 22px; width: min(92vw, 420px);
  background: var(--creme); color: var(--violet); box-shadow: 0 20px 60px rgba(75, 0, 110, 0.35);
}
dialog::backdrop { background: rgba(75, 0, 110, 0.45); }
dialog h2 { margin: 0 0 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions .bouton { flex: 1 1 auto; }

.annonce {
  position: fixed; left: 50%; bottom: 200px; transform: translateX(-50%); z-index: 20;
  background: var(--violet); color: var(--creme); font-weight: 700; font-size: 15px;
  padding: 12px 18px; border-radius: 18px; width: max-content; max-width: calc(100vw - 32px); text-align: center;
  box-shadow: 0 8px 24px rgba(75, 0, 110, 0.3);
}

/* ---------- page pleine (accueil, lien invalide) ---------- */

.plein { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; }
.plein p { max-width: 340px; margin: 22px auto 0; }

/* ---------- admin ---------- */

.carte { background: var(--blanc); border-radius: 22px; padding: 16px; box-shadow: var(--ombre); }
.membres { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* Invitations personnelles en cours, et demandes d'entree a accepter ou refuser. */
.invitations { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.invitations:empty { display: none; }
.invitation { background: var(--creme); border-radius: 16px; padding: 12px 14px; }
.invitation-qui { display: grid; gap: 2px; }
.invitation .actions { margin-top: 10px; gap: 8px; align-items: center; }
.invitation .actions .bouton { flex: 0 1 auto; }
.membre.demande { border: 2px solid var(--rose); }
#menu-demandes { margin-left: 8px; white-space: nowrap; vertical-align: middle; }
.membre-tete { display: flex; align-items: center; gap: 12px; }
.membre-tete .avatar { flex: none; }
.membre-nom { font-weight: 900; font-size: 19px; line-height: 1.2; }
.membre.inactif { opacity: 0.6; }
.etiquette {
  display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px;
  background: var(--lilas); vertical-align: middle; margin-left: 6px;
}
.etiquette.grise { background: var(--gris); }
.membre .actions { margin-top: 12px; gap: 8px; }
.membre .actions .bouton { flex: 0 1 auto; }
.lien-texte { background: none; border: 0; padding: 6px 4px; font-weight: 700; font-size: 15px; text-decoration: underline; color: var(--violet); }
.lien-texte.danger { color: #C4124F; }

.formulaire { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.formulaire input[type="text"] {
  flex: 1 1 180px; min-height: 46px; border-radius: 999px; border: 2px solid rgba(75, 0, 110, 0.18);
  padding: 0 18px; background: var(--blanc);
}
.formulaire input[type="text"]:focus { outline: 0; border-color: var(--violet); }
.case { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.case input { width: 20px; height: 20px; accent-color: var(--violet); }

.fiche { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 14px; }
.fiche dt { color: var(--texte-doux); font-size: 15px; }
.fiche dd { margin: 0; font-weight: 800; }
pre.journal {
  background: #2B0040; color: #F3E6FF; border-radius: 14px; padding: 12px; font-size: 13px;
  overflow: auto; max-height: 260px; white-space: pre-wrap; word-break: break-word; margin: 12px 0 0;
}
.retour { display: inline-block; margin: 16px 0 0; font-weight: 800; color: var(--violet); }
.pied { height: 60px; }

/* ---------- boite virtuelle ---------- */

.scene { padding: 26px 0 10px; display: grid; place-items: center; }
.boite {
  width: min(100%, 460px); aspect-ratio: 263 / 182; background: #FBEBDD; border-radius: 34px;
  box-shadow: 0 22px 0 var(--violet), 0 40px 40px rgba(75, 0, 110, 0.25);
  position: relative; margin-bottom: 40px; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.boite::before, .boite::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #C9B8A8; top: 14px; }
.boite::before { left: 14px; }
.boite::after { right: 14px; }
.grille {
  position: absolute; left: 6%; top: 16%; width: 40%; aspect-ratio: 1; border-radius: 50%;
  background-image: radial-gradient(circle, #3A2A33 28%, transparent 30%);
  background-size: 11% 11%; background-position: center;
}
.boite-logo { position: absolute; right: 9%; top: 11%; }
.boite-logo img { width: 44px; }
.boite-logo .logo-nom { font-size: 30px; }
.boite-logo .logo-devise { font-size: 11px; }
.touche {
  position: absolute; width: 21%; aspect-ratio: 1; border: 0; border-radius: 22%; bottom: 14%;
  display: grid; place-items: center; color: var(--violet); transition: transform 0.05s, box-shadow 0.05s;
  touch-action: none;
}
.touche svg { width: 46%; height: 46%; pointer-events: none; }
.touche.jaune { left: 52%; background: var(--jaune); box-shadow: 0 7px 0 #C9A400; }
.touche.rouge { left: 76%; background: var(--rose); box-shadow: 0 7px 0 #B81D58; }
.touche.enfoncee { transform: translateY(5px); }
.touche.jaune.enfoncee { box-shadow: 0 2px 0 #C9A400; }
.touche.rouge.enfoncee { box-shadow: 0 2px 0 #B81D58; }
.led { position: absolute; width: 3.6%; aspect-ratio: 1; border-radius: 50%; bottom: 52%; background: #D9CBBB; }
.led.j1 { left: 58%; }
.led.j2 { left: 63.5%; }
.led.r { left: 84.7%; }
.led.j1.allumee, .led.j2.allumee { background: var(--jaune); box-shadow: 0 0 12px 4px rgba(255, 208, 0, 0.8); }
.led.r.allumee { background: #FF2A2A; box-shadow: 0 0 12px 4px rgba(255, 42, 42, 0.75); }
.voile {
  position: absolute; inset: 0; border-radius: 34px; background: rgba(43, 0, 64, 0.82); color: var(--creme);
  display: grid; place-items: center; font-weight: 800; text-align: center; padding: 20px;
}
.etat-simulateur { text-align: center; font-weight: 800; min-height: 26px; }

/* ================= page famille (onglets) ================= */

h2[id] { scroll-margin-top: 16px; }
.appli .vue { padding-bottom: calc(96px + env(safe-area-inset-bottom)); position: relative; }
.entete.centre .colonne { justify-content: center; }
.avatar.jaune { background: var(--jaune); }
.avatar svg { width: 60%; height: 60%; }
.avatar.geant { width: 84px; height: 84px; font-size: 36px; margin: 0 auto; }
.avatar.geant img { width: 66px; }

.titre-fil { display: flex; align-items: center; gap: 14px; margin: 14px 0 8px; }
.titre-fil .avatar { width: 62px; height: 62px; flex: none; }
.titre-fil h1 { margin: 0; font-size: 30px; line-height: 1.1; }
.titre-fil p { margin: 0; }

.jour { text-align: center; margin: 18px 0 10px; }
.jour span { display: inline-block; background: #EADCFB; font-weight: 800; font-size: 14px; padding: 4px 16px; border-radius: 999px; }
.fil { margin: 0; }

.ligne {
  width: 100%; border: 0; text-align: left; position: relative;
  background: var(--blanc); border-radius: 999px; padding: 8px 18px 8px 8px; box-shadow: var(--ombre);
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
}
.ligne.de-boite { background: #FFF3BF; }
.ligne-lire { width: 48px; height: 48px; border-radius: 50%; background: #FFD3E3; color: var(--violet); display: grid; place-items: center; }
.ligne.de-boite .ligne-lire { background: var(--jaune); }
.ligne-lire svg { width: 24px; height: 24px; }
.ligne-corps { min-width: 0; display: grid; gap: 1px; }
.ligne-auteur { font-weight: 900; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-auteur small { font-weight: 700; font-size: 13px; color: var(--texte-doux); }
.ligne-auteur .ecoute { color: #1D8A60; font-weight: 800; }
.ligne-son { display: flex; align-items: center; gap: 10px; }
.ligne-duree { font-weight: 800; font-size: 15px; }
.ligne-heure { font-size: 14px; color: var(--texte-doux); font-weight: 700; }
.pastille { position: absolute; top: 2px; right: 10px; width: 13px; height: 13px; border-radius: 50%; background: var(--rose); border: 2px solid var(--creme); }

.onde { display: inline-flex; align-items: center; gap: 2px; height: 22px; }
.onde i { width: 3px; border-radius: 2px; background: var(--violet); }
.onde i:nth-child(3n) { background: var(--rose); }
.onde.grande { display: flex; justify-content: center; gap: 3px; height: 74px; background: #FFE3EC; border-radius: 26px; padding: 14px 16px; margin: 22px 0; }
.onde.grande i { width: 4px; background: #E7A9C2; }
.onde.grande i.lue { background: var(--violet); }
.onde.grande i.lue:nth-child(3n) { background: var(--rose); }

/* ---------- le micro, seul en bas de l'ecran ---------- */

/* Jusqu'au 16 novembre 2026, une barre blanche portait deux onglets de part et d'autre du micro.
   Les reglages sont passes dans le haut de page : il ne reste que le micro, pose sur la page.
   La zone qui le porte laisse passer les gestes vers les messages qui defilent dessous. */
.zone-micro {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; justify-content: center; pointer-events: none;
}
.zone-micro .micro {
  width: 84px; height: 84px; flex: none; border: 5px solid var(--creme); pointer-events: auto;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: radial-gradient(circle at 50% 35%, #FF5C9A, var(--rose) 70%);
  box-shadow: 0 8px 20px rgba(255, 46, 126, 0.4);
}
.zone-micro .micro svg { width: 38px; height: 38px; pointer-events: none; }
.zone-micro .micro.actif { transform: scale(1.12); animation: battement-micro 1.1s ease-in-out infinite; }
.zone-micro .micro:disabled { opacity: 0.6; }
@keyframes battement-micro {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 46, 126, 0.45), 0 8px 20px rgba(255, 46, 126, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(255, 46, 126, 0), 0 8px 20px rgba(255, 46, 126, 0.4); }
}
.appli .vue { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }

.bandeau {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 11;
  bottom: calc(118px + env(safe-area-inset-bottom)); width: max-content; max-width: min(calc(100vw - 32px), 420px);
  background: var(--violet); color: var(--creme); font-weight: 800; font-size: 15px; text-align: center;
  padding: 10px 16px; border-radius: 18px; box-shadow: 0 8px 24px rgba(75, 0, 110, 0.3);
  display: flex; align-items: center; gap: 12px;
}

/* ---------- bulles de la conversation ---------- */

/* Refonte du 16 novembre 2026, sur le modele de WhatsApp. Une bulle ne porte que ce qui sert a
   ecouter : le lecteur, l'heure, et pour un message envoye a la boite, si elle l'a fait entendre.
   La pastille et le prenom ne figurent que sur le premier message d'une serie de la meme personne.
   Les messages de la boite ont le format des autres : seule leur pastille les distingue. */
.fil { gap: 8px; }
.coche { font-size: 13px; font-weight: 900; color: #B9A6C6; flex: none; letter-spacing: -0.12em; padding-right: 2px; }
.coche.ecoute { color: #1D8A60; }
.bulle {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; align-items: start;
  /* L'appui long ouvre le menu du message : pas de selection de texte ni de menu du telephone. */
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.bulle .avatar { width: 38px; height: 38px; font-size: 17px; border: 3px solid var(--blanc); box-shadow: var(--ombre); }
.bulle .avatar img { width: 26px; }
.bulle.de-boite .avatar { background: var(--violet); border-color: var(--rose); }
.bulle-corps {
  background: var(--blanc); border-radius: 20px; padding: 7px 12px 8px; box-shadow: var(--ombre);
  border-left: 6px solid var(--teinte, var(--lilas)); min-width: 0;
}
/* La pointe de la bulle, du cote de la personne, sur le premier message de la serie. */
.bulle.premier .bulle-corps { border-radius: 6px 20px 20px 20px; }
.bulle.de-moi { grid-template-columns: minmax(0, 1fr); }
.bulle.de-moi .bulle-corps { background: #F1E6FF; border-left: 0; border-right: 6px solid var(--teinte, var(--lilas)); }
.bulle.de-moi.premier .bulle-corps { border-radius: 20px 6px 20px 20px; }

.bulle-tete { display: flex; align-items: center; gap: 8px; line-height: 1.2; margin-bottom: 2px; }
.bulle-tete b { font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Sous le lecteur : le suivi de la boite a gauche, l'heure a droite. Si la place manque (ecran
   etroit, long nom de boite), l'heure passe a la ligne. */
.bulle-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; min-height: 22px; }
.bulle-pied .bulle-suivi { margin: 0; }
.bulle-heure { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--texte-doux); flex: none; }
.etiquette-nouveau { background: var(--rose); color: var(--blanc); font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; flex: none; }
.bulle-son { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.bulle .lire { width: 44px; height: 44px; flex: none; background: #EFE3F7; color: var(--violet); }
.bulle .lire svg { width: 20px; height: 20px; }
.bulle .onde { flex: 1 1 auto; height: 26px; justify-content: space-between; cursor: pointer; min-width: 0; }
.bulle .onde i, .bulle .onde i:nth-child(3n) { background: #CDB9DA; }
.bulle-duree { font-weight: 800; font-size: 14px; flex: none; font-variant-numeric: tabular-nums; }
.bulle .supprimer-vocal { display: block; margin-top: 6px; }

/* ---------- haut de page, le meme sur tout le site ---------- */

/* Il est construit par entete.js (17 novembre 2026). Hors d'une Mimote : le logo. Dans une Mimote,
   comme dans une messagerie : les bulles du logo, le nom de la boite et son etat juste dessous.
   A gauche la fleche de retour, a droite la roue des reglages, quand la page en a besoin. */
.entete .logo { gap: 10px; }
.entete .logo img { height: 56px; width: auto; }
.entete-boite { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.entete-boite img { height: 46px; width: auto; display: block; flex: none; }
.entete-nom { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.entete-nom b { font-weight: 900; font-size: 26px; letter-spacing: -0.02em; color: var(--creme); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entete-etat { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13.5px; font-weight: 700; color: var(--creme); white-space: nowrap; }
.entete-etat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #C9C2CE; flex: none; }
.entete-etat.en-ligne::before { background: #2EBD85; }
.entete-etat:empty { display: none; }
/* Le nom de la boite (ou le logo) est un lien ou un bouton quand la page lui donne un role. */
a.entete-boite, button.entete-boite, .entete a.logo, .entete button.logo {
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
button.entete-boite, .entete button.logo { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; }
a.entete-boite:focus-visible, button.entete-boite:focus-visible, .entete a.logo:focus-visible, .entete button.logo:focus-visible {
  outline: 3px solid var(--jaune); outline-offset: 4px; border-radius: 12px;
}
.bouton-entete {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: var(--creme); background: rgba(255, 247, 238, 0.14);
}
.bouton-entete svg { width: 24px; height: 24px; }
button.retour-liste { padding: 0; border: 0; }

/* ---------- reglages des notifications ---------- */

.notifs { display: grid; gap: 14px; }
.rangee { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.rangee p { margin: 2px 0 0; font-size: 14px; }
.interrupteur {
  flex: none; width: 58px; height: 34px; border-radius: 999px; border: 0; background: #D9CBE2; position: relative;
  transition: background 0.15s;
}
.interrupteur::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blanc); box-shadow: 0 1px 4px rgba(75, 0, 110, 0.3); transition: transform 0.15s;
}
.interrupteur.actif { background: var(--rose); }
.interrupteur.actif::after { transform: translateX(24px); }
.interrupteur:disabled { opacity: 0.45; }
.notifs .formulaire input { flex: 1 1 180px; min-height: 46px; border-radius: 999px; border: 2px solid rgba(75, 0, 110, 0.18); padding: 0 18px; background: var(--blanc); }
.notifs .formulaire input:focus { outline: 0; border-color: var(--violet); }
.notifs > .bouton { justify-self: start; }
/* Un tableau : une ligne par origine des messages, une colonne par moyen d'etre prevenu. */
.grille-notifs { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px 12px; }
.grille-notifs .canal { font-size: 14px; font-weight: 700; text-align: center; min-width: 58px; }
.grille-notifs .interrupteur { justify-self: center; }
.notifs > .discret { margin: 0; font-size: 15px; }

/* ---------- filtres ---------- */

.filtres { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 4px 16px 6px; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtre {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; font-weight: 800; font-size: 15px;
  background: var(--blanc); color: var(--violet); box-shadow: inset 0 0 0 2px rgba(75, 0, 110, 0.14);
}
.filtre.actif { background: var(--violet); color: var(--creme); box-shadow: none; }

/* ---------- lecteur d'une bulle : vitesse, trois points, etats ---------- */

.vitesse {
  display: none; flex: none; min-width: 46px; height: 30px; padding: 0 8px; border-radius: 999px; border: 0;
  background: var(--violet); color: var(--creme); font-weight: 900; font-size: 14px;
}
/* Les trois points ouvrent les autres actions du message. Pendant la lecture, le bouton de
   vitesse prend leur place : l'onde garde ainsi assez de largeur pour y poser le doigt. */
.menu-bulle {
  width: 44px; height: 44px; margin: -8px -12px -8px -8px; padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--texte-doux); display: grid; place-items: center; flex: none;
}
.menu-bulle svg { width: 20px; height: 20px; }
.menu-bulle:active { background: rgba(75, 0, 110, 0.12); color: var(--violet); }
.bulle.joue .vitesse { display: block; }
.bulle.joue .menu-bulle { display: none; }
.bulle { transition: opacity 0.2s ease, transform 0.2s ease; }
.bulle.part { opacity: 0; transform: scale(0.92) translateX(24px); }
.bandeau .bouton { min-height: 34px; padding: 0 14px; font-size: 14px; flex: none; }

/* Comme dans WhatsApp, la bulle ne change pas une fois le message ecoute : c'est le lecteur qui
   le dit. A ecouter : bouton rose et onde en couleurs. Ecoute : bouton et onde pales. */
.bulle.nouveau .lire { background: var(--rose); color: var(--blanc); }
.bulle.nouveau .onde i { background: var(--violet); }
.bulle.nouveau .onde i:nth-child(3n) { background: var(--rose); }
/* Partie deja entendue d'un message laisse en pause. */
.bulle .onde i.lue, .bulle .onde i.lue:nth-child(3n) { background: #F29BBD; }
/* Message que l'on entend en ce moment. */
.bulle.joue .lire { background: var(--jaune); color: var(--violet); }
.bulle.joue .onde i.lue, .bulle.joue .onde i.lue:nth-child(3n) { background: var(--rose); }

/* Menu d'un message (trois points ou appui long). Le voile passe sous le haut de page, qui reste
   utilisable ; la bulle concernee reste au premier plan. */
.voile-menu { position: fixed; inset: 0; z-index: 25; background: rgba(45, 0, 66, 0.38); }
.bulle.visee { position: relative; z-index: 26; }
.menu-message {
  position: absolute; z-index: 27; min-width: 262px; max-width: calc(100vw - 24px); padding: 6px;
  background: var(--blanc); border-radius: 18px; box-shadow: 0 12px 34px rgba(45, 0, 66, 0.35);
}
.menu-message button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 12px;
  background: none; font-weight: 800; font-size: 16.5px; color: var(--violet); text-align: left;
}
.menu-message button svg { width: 22px; height: 22px; flex: none; }
.menu-message button.danger { color: #C4124F; }
.menu-message button + button { border-top: 1px solid #F0E8F3; border-radius: 0; }
.menu-message button:active, .menu-message button:focus-visible { background: #F6EEFA; outline: 0; }

/* ---------- vagues decoratives ---------- */

.vagues { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; overflow: hidden; pointer-events: none; z-index: 0; }
.vagues::before, .vagues::after { content: ""; position: absolute; border-radius: 50%; }
.vagues::before { width: 150%; height: 300px; left: -70%; bottom: -190px; background: var(--violet); z-index: 2; }
.vagues::after { width: 150%; height: 300px; right: -75%; bottom: -170px; background: var(--jaune); box-shadow: -120px 30px 0 0 var(--rose); }
.vue-parler main, .lecteur .colonne { position: relative; z-index: 1; }

/* ---------- onglet micro ---------- */

.vue-parler main { text-align: center; padding-top: 12vh; display: flex; flex-direction: column; align-items: center; }
.vue-parler h1 { font-size: 32px; line-height: 1.15; margin: 0 0 40px; }
.vue-parler .micro {
  width: 170px; height: 170px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: radial-gradient(circle at 50% 35%, #FF5C9A, var(--rose) 70%);
  box-shadow: 0 0 0 16px rgba(255, 46, 126, 0.16), 0 0 0 34px rgba(255, 46, 126, 0.08), 0 10px 26px rgba(255, 46, 126, 0.4);
}
.vue-parler .micro svg { width: 74px; height: 74px; pointer-events: none; }
.vue-parler .micro.actif { animation: battement-grand 1.1s ease-in-out infinite; transform: scale(1.04); }
.vue-parler .micro:disabled { opacity: 0.6; }
@keyframes battement-grand {
  0%, 100% { box-shadow: 0 0 0 16px rgba(255, 46, 126, 0.16), 0 0 0 34px rgba(255, 46, 126, 0.08), 0 10px 26px rgba(255, 46, 126, 0.4); }
  50% { box-shadow: 0 0 0 26px rgba(255, 46, 126, 0.16), 0 0 0 52px rgba(255, 46, 126, 0.08), 0 10px 26px rgba(255, 46, 126, 0.4); }
}
.vue-parler .parler-texte { font-size: 20px; font-weight: 700; margin: 52px 0 16px; min-height: 58px; line-height: 1.3; }

/* ---------- Ma Mimote ---------- */

.grand-titre { font-size: 32px; margin: 14px 0 16px; }
.vitrine { text-align: center; padding: 26px 16px 16px; }
.boite.mini { width: 210px; margin: 0 auto 30px; border-radius: 18px; box-shadow: 0 11px 0 var(--violet); pointer-events: none; }
.boite.mini::before, .boite.mini::after { display: none; }
.boite.mini .touche.jaune { box-shadow: 0 3px 0 #C9A400; }
.boite.mini .touche.rouge { box-shadow: 0 3px 0 #B81D58; }
.menu { display: grid; gap: 10px; margin-top: 16px; }
.menu a {
  display: grid; grid-template-columns: 32px 1fr 22px; gap: 12px; align-items: center; min-height: 58px; padding: 0 16px;
  background: var(--blanc); border-radius: 18px; box-shadow: var(--ombre); color: var(--violet); text-decoration: none; font-weight: 800;
}
.menu-icone svg { width: 28px; height: 28px; display: block; }
.menu-fleche svg { width: 22px; height: 22px; display: block; }

/* ---------- lecteur ---------- */

.lecteur { position: fixed; inset: 0; z-index: 30; background: var(--creme); overflow: auto; text-align: center; }
.lecteur .colonne { padding-top: 14px; padding-bottom: 200px; }
.bouton-nu { background: none; border: 0; width: 52px; height: 52px; display: grid; place-items: center; color: var(--violet); border-radius: 50%; }
.bouton-nu svg { width: 30px; height: 30px; }
#lecteur-fermer { margin-left: -10px; }
.lecteur h1 { font-size: 30px; margin: 10px 0 0; }
.lecteur p { margin: 2px 0 0; }
.commandes { display: flex; align-items: center; justify-content: center; gap: 26px; }
.commandes .bouton-nu svg { width: 44px; height: 44px; }
.lire.geant { width: 84px; height: 84px; }
.lire.geant svg { width: 42px; height: 42px; }
.curseur { width: 100%; margin: 26px 0 4px; accent-color: var(--violet); height: 24px; }
.temps { display: flex; justify-content: space-between; font-size: 14px; color: var(--texte-doux); font-weight: 700; }
#lecteur-supprimer { margin-top: 18px; }
.annonce { bottom: calc(122px + env(safe-area-inset-bottom)); z-index: 40; }

/* ================= page d'accueil : entrer avec le code famille ================= */

.entree { min-height: 100dvh; padding-top: 34px; padding-bottom: 40px; text-align: center; display: flex; flex-direction: column; align-items: stretch; }
.entree > .logo { align-self: center; margin-bottom: 22px; }
.entree h2 { margin: 0 0 6px; }
.entree section h2 { margin: 6px 0 10px; }
.etape { display: grid; gap: 12px; text-align: center; margin-top: 16px; }
form.etape[hidden], section[hidden] { display: none; }
.etape p { margin: 0; }
.champ {
  width: 100%; min-height: 54px; border-radius: 18px; border: 2px solid rgba(75, 0, 110, 0.18);
  padding: 0 18px; background: var(--blanc); font-size: 18px; text-align: center;
}
.champ:focus { outline: 0; border-color: var(--violet); }
.champ-code { font-weight: 900; font-size: 26px; letter-spacing: 0.12em; text-transform: uppercase; }
.champ-code::placeholder { font-weight: 700; color: #CDB9DA; }
.bouton.large { width: 100%; min-height: 54px; font-size: 18px; }
.entree .menu { text-align: left; margin-top: 0; }
.menu a small { font-weight: 700; color: var(--texte-doux); }
.menu a b { font-weight: 900; }
.menu-icone img { width: 30px; display: block; }
.menu a { padding-top: 8px; padding-bottom: 8px; }
.erreur { margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: #FFE1EC; color: #A30F43; font-weight: 800; }
.code-famille { font-weight: 900; font-size: 34px; letter-spacing: 0.1em; margin: 0 0 6px; text-align: center; }

/* ---------- invitation WhatsApp ---------- */

.bouton.whatsapp { background: #1FAF5A; color: var(--blanc); width: 100%; min-height: 50px; }

/* ================= back office du vendeur ================= */

.colonne.large { max-width: 980px; }
.papotes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.papote-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.papote-tete b { font-weight: 900; font-size: 20px; }

.papote .code-famille { margin: 12px 0; background: var(--creme); border-radius: 16px; padding: 8px; }
.papote .fiche { font-size: 15px; margin-bottom: 10px; }
.papote .fiche dd { font-weight: 700; word-break: break-word; }
.cle-boite { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #2B0040; color: #F3E6FF; border-radius: 12px; padding: 10px 12px; word-break: break-all; margin: 0 0 10px; }
.papote .actions { margin-top: 8px; gap: 8px; }
.papote .actions .bouton { flex: 0 1 auto; }
#creation input { flex: 1 1 260px; }

/* ================= page de gestion d'une Mimote ================= */

.gestion h2 { margin-top: 34px; }
.gestion h2 .compte { font-weight: 700; color: var(--texte-doux); }
.centre { text-align: center; }

/* Etat de la boite, en haut */
.etat-haut { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-top: 12px; }
.etat-haut p { margin: 0; }
.voyant { width: 18px; height: 18px; border-radius: 50%; background: #C9C2CE; margin-top: 4px; box-shadow: 0 0 0 5px rgba(201, 194, 206, 0.3); }
.voyant.vert { background: #2EBD85; box-shadow: 0 0 0 5px rgba(46, 189, 133, 0.22); }
.voyant.rouge { background: var(--rose); box-shadow: 0 0 0 5px rgba(255, 46, 126, 0.2); }
.etat-titre { font-weight: 900; font-size: 19px; line-height: 1.25; }
.etat-haut .discret { margin-top: 4px; }
.etat-messages { margin-top: 8px !important; font-weight: 700; }

/* Toutes les petites fleches du site : listes d'actions, blocs qui se deplient, languette du
   tiroir, cadenas de l'enregistrement. Jusqu'au 17 novembre 2026, c'etait le caractere « › »
   tourne d'un quart de tour : sa boite, haute et etroite, debordait une fois tournee, et un
   lien souligne soulignait aussi la fleche. Le texte « Ajouter une personne sans adresse
   e-mail » se retrouvait sous un trait vertical. C'est maintenant un dessin dans une boite
   carree (taille et sens donnes par chaque element), qui ne peut plus mordre sur le texte. */
.liste-actions > a::after, .liste-actions > button::after, .repli > summary::after,
.tiroir-poignee::after, .verrou::after {
  content: ""; flex: none; display: block; background: currentColor;
  -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat;
  transition: transform 0.15s;
}

/* Listes d'actions : une par ligne, faciles a toucher du pouce */
.liste-actions { display: grid; margin-top: 8px; }
.liste-actions > a, .liste-actions > button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; width: 100%;
  padding: 0 4px; border: 0; border-top: 1px solid rgba(75, 0, 110, 0.1); background: none; text-align: left;
  color: var(--violet); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
}
.liste-actions > :first-child { border-top: 0; }
.liste-actions > a::after, .liste-actions > button::after { width: 20px; height: 20px; color: #B9A6C6; }
.liste-actions > .danger { color: #C4124F; }
.liste-actions.sensibles { margin-top: 10px; border-top: 2px solid rgba(75, 0, 110, 0.14); }

/* Blocs qui se replient */
.repli { margin-top: 16px; background: var(--blanc); border-radius: 22px; box-shadow: var(--ombre); }
.repli > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; padding: 0 18px; font-weight: 900; font-size: 18px;
}
.repli > summary::-webkit-details-marker { display: none; }
.repli > summary::after { width: 24px; height: 24px; color: var(--texte-doux); transform: rotate(90deg); }
.repli[open] > summary::after { transform: rotate(-90deg); }
.repli-contenu { padding: 0 16px 16px; }
.repli-contenu > .discret { margin: 6px 0 0; }
.repli.leger { background: none; box-shadow: none; margin-top: 10px; }
/* Version « lien » : la fleche suit le dernier mot, meme quand le texte passe a la ligne sur un
   petit ecran. Elle est soudee a ce mot (boite en ligne qui commence par un liant invisible) :
   en colonne flexible elle partait tout au bout de la ligne, en bloc a part elle pouvait se
   retrouver seule a la ligne suivante. Une boite en ligne ne tourne pas : le sens de la fleche
   est donne par deux dessins, vers le bas (ferme) et vers le haut (ouvert). */
.repli.leger > summary { display: block; min-height: 46px; padding: 11px 4px; font-size: 16px; font-weight: 800; text-decoration: underline; }
.repli.leger > summary::after {
  display: inline; content: "\2060"; width: auto; height: auto; padding: 0 10px; margin-left: 6px; transform: none;
  -webkit-mask: var(--chevron-bas) center / 18px 18px no-repeat; mask: var(--chevron-bas) center / 18px 18px no-repeat;
}
.repli.leger[open] > summary::after { transform: none; -webkit-mask-image: var(--chevron-haut); mask-image: var(--chevron-haut); }
.repli.leger > .carte { margin-top: 6px; }

/* Confirmation dans la page, avec des boutons qui disent ce qu'ils font */
.confirmation { background: #FFF0F5; border: 2px solid #FFC2D8; border-radius: 16px; padding: 14px; margin-top: 10px; }
.confirmation p { margin: 0; font-weight: 700; }
.confirmation .actions { margin-top: 12px; gap: 8px; }
.confirmation .actions .bouton { flex: 1 1 auto; }

/* Membres */
.membre-tete { display: grid; grid-template-columns: auto 1fr auto; }
.membre-qui { min-width: 0; }
.membre-qui .discret { word-break: break-word; }
.membre.inactif { opacity: 1; }
.membre-panneau { margin-top: 10px; border-top: 1px solid rgba(75, 0, 110, 0.1); }
.membre-panneau .renommer { margin-top: 12px; }
.membre-panneau .renommer input { flex: 1 1 100%; }

/* Noms */
.noms { display: grid; gap: 4px; }
.noms .libelle { font-weight: 900; margin-top: 10px; }
.noms .libelle:first-child { margin-top: 0; }
.noms input {
  width: 100%; min-height: 48px; border-radius: 16px; border: 2px solid rgba(75, 0, 110, 0.18);
  padding: 0 16px; background: var(--blanc);
}
.noms input:focus { outline: 0; border-color: var(--violet); }
.noms .discret { margin: 0; font-size: 14px; }
.noms .bouton { justify-self: start; margin-top: 14px; }

/* Sur cette page, pas de barre d'onglets : les messages du bas descendent */
.gestion .bandeau, .gestion .annonce { bottom: calc(20px + env(safe-area-inset-bottom)); }
.gestion .pied { height: 90px; }

/* ================= conversation façon messagerie ================= */

/* Bulles plus etroites : celles des autres a gauche, les miennes a droite */
.fil { justify-items: start; }
/* Celles des autres comptent la place de la pastille, d'ou leur largeur un peu superieure. */
.bulle { width: min(92%, 372px); }
.bulle.de-moi { width: min(84%, 340px); justify-self: end; }

/* Haut de page : retour a la liste des conversations */
.entete-etiquette { flex: none; margin-left: 6px; padding: 3px 12px; border-radius: 999px; background: var(--jaune); color: #141414; font-weight: 900; font-size: 14px; }
.entete-droite { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.entete-gauche { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.retour-liste {
  width: 38px; height: 38px; margin-left: -8px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: var(--creme); background: rgba(255, 247, 238, 0.14); text-decoration: none;
}
.retour-liste svg { width: 22px; height: 22px; }
/* Un seul haut de page pour tout le site : le logo a toujours la meme taille, qu'il y ait
   ou non une fleche de retour a sa gauche et l'etat de la boite a sa droite. */
.entete .colonne { min-height: 46px; }
.entete .logo { gap: 8px; }
.entete .logo img { height: 46px; width: auto; }
.entete .logo-nom { font-size: 29px; }
.entete .logo-devise { font-size: 11.5px; margin-top: 2px; }
.retour-liste[hidden] { display: none; }

/* Boite virtuelle rangee sous le haut de page */
.tiroir { background: var(--creme); }
.boite.poche { width: min(100%, 330px); margin: 14px auto 30px; border-radius: 26px; box-shadow: 0 16px 0 var(--violet), 0 28px 30px rgba(75, 0, 110, 0.2); }
.boite.poche .boite-logo img { width: 34px; }
.boite.poche .boite-logo .logo-nom { font-size: 23px; }
.boite.poche .boite-logo .logo-devise { font-size: 9px; }
.tiroir .etat-simulateur { font-size: 15px; margin: 0 0 6px; }
.tiroir-barre { display: flex; justify-content: center; position: relative; z-index: 2; margin-top: -8px; height: 26px; }
.tiroir-poignee {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 14px 2px; border: 0;
  border-radius: 0 0 14px 14px; background: var(--violet); color: var(--creme); font-weight: 800; font-size: 13px;
}
.tiroir-poignee::after { width: 16px; height: 16px; transform: rotate(90deg); }
.tiroir-poignee.ouvert::after { transform: rotate(-90deg); }
/* Tiroir ferme : la languette garde sa taille et remonte contre le violet du haut de page,
   par-dessus la vague creme, pour qu'il n'y ait pas d'espace entre les deux. */
/* La vague n'a pas la meme hauteur partout (26 px au plus) : on remonte de toute sa hauteur,
   pour que le haut de la languette soit toujours dans le violet. */
.tiroir[hidden] + .tiroir-barre { margin-top: -32px; height: 38px; }
.tiroir[hidden] + .tiroir-barre .tiroir-poignee { height: 38px; align-items: flex-end; padding-bottom: 5px; }
.tiroir:not([hidden]) + .tiroir-barre { margin-top: 0; }
.appli .titre-fil { margin-top: 6px; }

/* La page de la boite virtuelle, quand elle est affichee dans ce tiroir */
body.incruste .hors-tiroir { display: none; }
body.incruste .colonne { padding: 0 12px; }
body.incruste .scene { padding: 12px 0 0; }
body.incruste .boite { width: min(100%, 330px); margin-bottom: 28px; border-radius: 26px; box-shadow: 0 16px 0 var(--violet); }
body.incruste .voile { border-radius: 26px; }
body.incruste .etat-simulateur { font-size: 15px; margin: 0; }

/* Enregistrement : cadenas a atteindre pour verrouiller, bouton d'envoi une fois verrouille */
.verrou {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 12; bottom: calc(180px + env(safe-area-inset-bottom));
  width: 50px; height: 78px; border-radius: 25px; background: var(--blanc); color: var(--violet);
  display: grid; justify-items: center; align-content: start; padding-top: 12px; gap: 4px;
  box-shadow: 0 6px 20px rgba(75, 0, 110, 0.25); transition: transform 0.12s, background 0.12s;
}
.verrou svg { width: 22px; height: 22px; }
.verrou::after { width: 20px; height: 20px; transform: rotate(-90deg); color: var(--texte-doux); }
.verrou.proche { background: var(--jaune); transform: translateX(-50%) scale(1.14); }
.zone-micro .micro.verrouille { background: var(--violet); animation: none; transform: none; box-shadow: 0 8px 20px rgba(75, 0, 110, 0.4); }
.bandeau .bouton.secondaire { background: var(--creme); box-shadow: none; }

/* ================= page d'accueil : liste des conversations ================= */

.conversations { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.conversation {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: var(--blanc); border-radius: 22px; padding: 12px 14px; box-shadow: var(--ombre);
  color: var(--violet); text-decoration: none;
}
.conversation .avatar { width: 56px; height: 56px; background: var(--violet); }
.conversation .avatar img { width: 42px; }
.conversation-corps { min-width: 0; display: grid; gap: 2px; }
.conversation-nom { font-weight: 900; font-size: 19px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-apercu { font-size: 15px; color: var(--texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation.non-lue .conversation-apercu { color: var(--violet); font-weight: 800; }
.conversation-cote { display: grid; justify-items: end; gap: 6px; align-self: start; padding-top: 3px; }
.conversation-heure { font-size: 13px; font-weight: 700; color: var(--texte-doux); white-space: nowrap; }
.conversation.non-lue .conversation-heure { color: var(--rose); }
.compteur { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--rose); color: var(--blanc); font-weight: 900; font-size: 13px; display: grid; place-items: center; }

/* Tres petits ecrans : on resserre le logo pour garder la fleche et l'etat de la boite sur une ligne */
@media (max-width: 359px) {
  .entete .logo img { height: 38px; }
  .entete .logo-nom { font-size: 24px; }
  .entete .logo-devise { font-size: 10px; }
  .entete-boite img { height: 38px; }
  .entete-nom b { font-size: 22px; }
}

/* ================= Mimote de poche : une ligne en tete de conversation ================= */

.poche-zone { margin-top: 14px; background: var(--blanc); border-radius: 22px; box-shadow: var(--ombre); overflow: hidden; }
.poche-ligne {
  width: 100%; min-height: 58px; padding: 0 14px; border: 0; background: none; text-align: left;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  color: var(--violet); font-weight: 900; font-size: 17px;
}
/* Petite boite dessinee : couvercle creme, socle violet, un bouton jaune et un bouton rose */
.poche-vignette { width: 46px; height: 30px; border-radius: 7px; background: #FBEBDD; border-bottom: 5px solid var(--violet); position: relative; display: block; }
.poche-vignette i { position: absolute; bottom: 4px; width: 10px; height: 10px; border-radius: 3px; background: var(--jaune); right: 17px; }
.poche-vignette i + i { background: var(--rose); right: 4px; }
.poche-fleche { display: grid; place-items: center; color: var(--texte-doux); transform: rotate(90deg); transition: transform 0.15s; }
.poche-fleche svg { width: 20px; height: 20px; display: block; }
.poche-ligne.ouvert .poche-fleche { transform: rotate(-90deg); }
.poche-zone .tiroir { background: none; padding: 0 12px 10px; }
.poche-zone .boite.poche { margin-top: 6px; }
.appli .titre-fil { margin-top: 16px; }

/* ================= Le trait de lecture, que l'on deplace au doigt ================= */

.bulle .onde { position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
/* Zone sensible plus haute que le dessin, pour viser sans effort */
.bulle .onde::after { content: ""; position: absolute; inset: -12px 0; }
.repere {
  position: absolute; top: -5px; bottom: -5px; left: 0; width: 3px; margin-left: -1.5px; border-radius: 2px;
  background: var(--violet); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
  opacity: 0; pointer-events: none;
}
.bulle.active .repere, .bulle.entame .repere { opacity: 1; }

/* Suivi de l'ecoute sur la boite, en toutes lettres sous le message : c'est l'information qu'on
   vient chercher. (Jusqu'au 16 novembre 2026, les messages deja ecoutes etaient estompes ; ils
   gardent maintenant leur allure, et seul le lecteur change de couleur.) */
.bulle-suivi { display: flex; align-items: center; gap: 6px; width: fit-content; margin-top: 6px; font-size: 13px; font-weight: 800; color: #8A7896; }
.bulle-suivi::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #C9BCD2; flex: none; }
.bulle-suivi.ecoute { color: #0F6B47; background: #D9F5E6; border-radius: 999px; padding: 3px 10px 3px 8px; }
.bulle-suivi.ecoute::before { content: "✓"; width: auto; height: auto; background: none; font-weight: 900; }

/* L'en-tete reste en haut de l'ecran quand on fait defiler la page, sur toutes les pages (reglages compris). */
.entete { position: sticky; top: 0; z-index: 30; }

/* L'en-tete fixe se termine par une vague. Pour que les messages qui passent dessous soient
   coupes le long de cette vague (et non en ligne droite), c'est l'en-tete lui-meme qui est
   decoupe en vague : plus de bande creme posee par-dessus. Meme trace que .entete::after. */
.entete::after { display: none; }
.entete {
  --vague: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2600' height='26'%3E%3Cpath d='M0 0 L0 14 C 160 -8, 300 30, 520 10 S 900 -6, 1200 16 S 1900 0, 2600 14 L2600 0 Z'/%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 25px) no-repeat, var(--vague) left bottom / 2600px 26px no-repeat;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 25px) no-repeat, var(--vague) left bottom / 2600px 26px no-repeat;
}

/* Rappel "Gardez le contact" : le choix du nombre de jours, sous l'interrupteur. */
.rappel-delai { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; }
.rappel-delai select {
  font: inherit; font-weight: 800; color: var(--violet); background: var(--creme); min-height: 44px;
  border: 2px solid rgba(75, 0, 110, 0.18); border-radius: 999px; padding: 0 16px;
}
.rappel-delai select:focus { outline: 0; border-color: var(--violet); }

/* Alertes sonores : horaires et nombre de sons, dans la page de gestion de la boite. */
.horaires { display: grid; gap: 14px; }
.horaires > .discret { margin: 0; }
.choix-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--creme); border-radius: 999px; padding: 4px; }
.choix-mode button { min-height: 42px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 800; font-size: 15px; color: var(--violet); }
.choix-mode button[aria-checked="true"] { background: var(--jaune); box-shadow: var(--ombre); }
.jour-nom { margin: 14px 0 8px; font-size: 16px; font-weight: 900; }
.jour-nom:first-child { margin-top: 0; }
.jour-plages { display: grid; gap: 8px; }
.jour-plages .discret { margin: 0; font-size: 14px; }
.plage { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.plage input[type="time"] {
  flex: 1 1 0; min-width: 0; min-height: 46px; font: inherit; font-weight: 800; color: var(--violet); text-align: center;
  background: var(--creme); border: 2px solid rgba(75, 0, 110, 0.18); border-radius: 14px; padding: 0 8px;
}
.plage input[type="time"]:focus { outline: 0; border-color: var(--violet); }
.plage-retirer { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--texte-doux); display: grid; place-items: center; }
.plage-retirer svg { width: 20px; height: 20px; }
.plage-retirer:active { background: rgba(196, 18, 79, 0.12); color: #C4124F; }
.plage-ajouter { justify-self: start; }
.horaires-erreur { margin: 0; color: #C4124F; font-weight: 800; font-size: 15px; }

/* Les champs d'heure d'un telephone sont plus larges que ceux d'un ordinateur : sans ces regles,
   ils elargissaient la carte au-dela de l'ecran et poussaient la poubelle dehors (constate sur
   Android le 15 novembre 2026). La carte ne peut plus depasser sa colonne, et les champs se serrent. */
.horaires { grid-template-columns: minmax(0, 1fr); }
.horaires > * { min-width: 0; }
.plage { min-width: 0; }
.plage > span { flex: none; }
.plage input[type="time"] { width: 0; padding: 0 4px; }
.choix-mode button { min-width: 0; padding: 0 6px; }
.rappel-delai > span { flex: none; }
.rappel-delai select { min-width: 0; flex: 0 1 auto; max-width: 100%; text-overflow: ellipsis; }
/* Le choix seul sur sa ligne : il prend toute la largeur, pour que son texte tienne en entier. */
.rappel-delai.toute-largeur select { flex: 1 1 auto; width: 100%; font-size: 16px; padding: 0 12px; }

/* ==================== Relecture d'accessibilite du 15 novembre 2026 ====================
   Une relecture « malvoyant, gros doigts » a mesure les contrastes et les tailles. Ce bloc
   corrige ce qui etait sous les seuils d'usage (4,5 pour du texte, 3 pour un element
   d'interface, 44 px pour une zone tactile), sans changer la charte. */

/* Zones tactiles. */
.bulle .lire { width: 44px; height: 44px; }
.bouton.petit, .lien-texte, .choix-mode button, .bandeau .bouton { min-height: 44px; }
.interrupteur::before { content: ""; position: absolute; inset: -5px 0; }
.vitesse { position: relative; }
.vitesse::after { content: ""; position: absolute; inset: -7px 0; }
.retour-liste, .plage-retirer { position: relative; }
.retour-liste::after, .plage-retirer::after { content: ""; position: absolute; inset: -3px; }

/* Contrastes : meme famille de teintes, un cran plus fonce la ou le texte etait trop pale. */
.bouton.whatsapp { background: #0E7C42; }
.bouton.large { font-size: 19px; }
.conversation.non-lue .conversation-heure { color: #D10F5A; }
.compteur { background: #D10F5A; }
.bulle-suivi { color: #6B5878; }
.interrupteur { background: #8F7A9E; }
.choix-mode button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--violet); }

/* Champs de saisie : un contour qui se voit, un texte indicatif lisible. */
.champ, .formulaire input[type="text"], .notifs .formulaire input, .noms input, .plage input[type="time"], .rappel-delai select { border-color: #947AA6; }
::placeholder { color: #7A5A8C; opacity: 1; }
.champ-code::placeholder { color: #947AA6; }
.plage input[type="time"][aria-invalid="true"] { border-color: #C4124F; }
.jour-plages .horaires-erreur { font-size: 14px; }

/* Petits textes. */
.bulle-heure, .bulle-suivi, .conversation-heure { font-size: 14px; }
.rangee p { font-size: 15px; }

/* Une bonne nouvelle dans l'encadre des erreurs (un code vient de repartir) s'affiche en vert. */
.erreur.info { background: #D9F5E6; color: #0F6B47; }
.notifs > .lien-texte { justify-self: start; }
#anciens { margin: 14px 0 0; }
#refus .bouton { margin-top: 6px; }

/* Les personnes sensibles au mouvement peuvent demander a leur telephone de le reduire. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Code de confirmation d'une nouvelle adresse e-mail (page « Reglages »). */
.notifs .formulaire p { flex: 1 1 100%; margin: 0; }
.notifs .formulaire #email-chiffres { flex: 1 1 130px; font-weight: 900; font-size: 22px; letter-spacing: 0.12em; text-align: center; }
.liens-code { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Mode d'emploi de la boite virtuelle. */
.mode-emploi h3 { margin: 22px 0 8px; font-size: 18px; font-weight: 900; color: var(--violet); }
.mode-emploi h3:first-child { margin-top: 0; }
.mode-emploi p { margin: 0 0 10px; }
.mode-emploi ul { margin: 0 0 10px; padding-left: 22px; }
.mode-emploi li { margin-bottom: 4px; }
.mode-emploi > :last-child { margin-bottom: 0; }


/* Nom d'un champ, ecrit au-dessus de lui : il reste visible pendant la saisie. */
.libelle { display: block; text-align: left; font-weight: 800; font-size: 15px; color: var(--violet); margin: 4px 4px -6px; }
.libelle[hidden] { display: none; }

/* Premiere visite : a qui la boite est-elle destinee ? */
.nommer { position: fixed; inset: 0; z-index: 60; background: var(--creme); overflow: auto; display: grid; place-items: center; padding: 20px 16px; }
.nommer[hidden] { display: none; }
.nommer .carte { display: grid; gap: 12px; width: 100%; max-width: 440px; text-align: center; }
.nommer h2, .nommer p { margin: 0; }

/* Bouton « Ecouter le son » de la section des alertes sonores. */
.ecouter-son { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.ecouter-son svg { width: 18px; height: 18px; display: block; }

/* Bouton « Utiliser WhatsApp » des reglages. */
.bouton.whatsapp { justify-self: start; text-decoration: none; display: inline-flex; align-items: center; }
.bouton.whatsapp[hidden] { display: none; }

/* Mentions legales et pied de la page d'accueil. */
.mentions .carte p { margin: 0 0 10px; }
.mentions .carte p:last-child { margin-bottom: 0; }
.entete a.logo { text-decoration: none; }
.pied-legal { margin: auto 0 0; padding-top: 28px; font-size: 14px; color: var(--texte-doux); text-align: center; }
.pied-legal a { color: var(--violet); font-weight: 700; }

/* Avertissement de confidentialite a l'inscription, et pages legales. */
.avertissement { font-size: 15px; line-height: 1.45; text-align: left; color: var(--texte-doux); background: var(--creme); border-radius: 14px; padding: 12px 14px; }
.avertissement[hidden] { display: none; }
.avertissement a, .liens-legaux a { color: var(--violet); font-weight: 700; }
.mentions .carte ul { margin: 0 0 10px; padding-left: 22px; }
.mentions .carte li { margin-bottom: 6px; }
.mentions .carte > :last-child { margin-bottom: 0; }
.mentions a { color: var(--violet); font-weight: 700; }

/* Message sur lequel on arrive depuis un e-mail : un halo qui le designe, le temps de le reperer. */
.bulle.demande .bulle-corps { animation: halo-demande 2.4s ease-out 1; }
@keyframes halo-demande {
  0%, 60% { box-shadow: 0 0 0 4px var(--rose); }
  100% { box-shadow: 0 0 0 4px rgba(255, 46, 126, 0); }
}

/* Back office : recherche d'une Mimote, et etiquette « Suspendue ». */
.recherche { text-align: left; margin: 8px 0 4px; }
.etiquette.rouge { background: #C4124F; color: var(--blanc); }

/* Presentation de Mimote sur la page d'accueil, sous le formulaire (16 novembre 2026).
   Memes couleurs, memes cartes blanches arrondies et meme police que le reste du site. */

/* Sur telephone, le logo prend moins de hauteur : le formulaire arrive plus vite sous le doigt. */
@media (max-width: 600px) {
  .entree { padding-top: 22px; }
  .entree > .logo.grand { margin-bottom: 14px; }
  .entree > .logo.grand img { width: 104px; }
  .entree > .logo.grand .logo-nom { font-size: 48px; margin-top: -10px; }
  .entree > .logo.grand .logo-devise { font-size: 16px; margin-top: 4px; }
}

/* La presentation est plus large que le formulaire sur ordinateur, et garde 22 px de marge sur telephone. */
.presentation { align-self: center; width: min(980px, calc(100vw - 44px)); margin-top: 26px; text-align: left; font-size: 17px; line-height: 1.5; }
.presentation[hidden] { display: none; }
.presentation p { margin: 0 0 12px; }
.presentation .pres-titre { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; margin: 40px 0 14px; }

/* Passage du formulaire a la presentation : trois points aux couleurs de Mimote. */
.transition { display: flex; justify-content: center; gap: 10px; padding: 8px 0 4px; }
.transition i { width: 10px; height: 10px; border-radius: 50%; background: var(--jaune); }
.transition i:nth-child(2) { background: var(--rose); }
.transition i:nth-child(3) { background: var(--violet); }

.pres-intro .pres-titre { margin-top: 24px; }
.pres-intro figure { margin: 18px 0 0; }
.pres-intro img { display: block; width: 100%; height: auto; border-radius: 22px; }
.pres-intro figcaption { margin-top: 6px; font-size: 13px; text-align: center; }

.pres-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pres-cartes .carte { padding: 18px; }
.pres-cartes h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; line-height: 1.3; }
.pres-cartes p { margin: 0; }
.etapes svg { display: block; width: 72px; height: 72px; margin-bottom: 12px; }
.etapes .rang { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--violet); color: var(--creme); font-size: 15px; vertical-align: 2px; }
.raisons .carte { border-top: 5px solid var(--jaune); }
.raisons .carte:nth-child(2) { border-top-color: var(--rose); }
.raisons .carte:nth-child(3) { border-top-color: var(--violet); }

/* « Une autre facon de garder le lien » : un panneau violet, comme le haut des pages interieures. */
.pres-lien { margin-top: 40px; background: var(--violet); color: var(--creme); border-radius: 26px; padding: 26px 22px 16px; }
.pres-lien .pres-titre { margin: 0 0 12px; color: var(--creme); }

.beta { margin-top: 40px; border: 2px dashed #947AA6; border-radius: 22px; padding: 22px 18px; text-align: center; }
.beta .pres-titre { margin: 12px 0 10px; }
.beta p { margin: 0 0 8px; }
.beta .bouton { margin-top: 10px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-size: 18px; }
.etiquette-beta { display: inline-block; background: var(--violet); color: var(--blanc); font-weight: 900; font-size: 13px; padding: 3px 12px; border-radius: 999px; }

@media (min-width: 800px) {
  .presentation .pres-titre { font-size: 30px; margin-top: 56px; }
  .pres-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .pres-intro .pres-titre { margin-top: 0; }
  .pres-intro figure { margin: 0; }
  .pres-cartes { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .pres-lien { padding: 40px 48px 30px; }
  .pres-lien p { max-width: 640px; }
  .beta { max-width: 640px; margin-left: auto; margin-right: auto; padding: 30px; }
  .transition { padding: 22px 0 18px; }
}

/* Back office : les quelques violets ecrits en dur ailleurs dans cette feuille. */
.back-office .champ, .back-office .formulaire input { border-color: #8A8A8A; }
.back-office ::placeholder { color: #6E6E6E; }
.back-office .filtre, .back-office .bouton.secondaire { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.16); }
.back-office .filtre.actif { box-shadow: none; }
/* Back office : quatre chiffres en haut de page, deux par ligne sur telephone. */
.chiffres { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chiffre { background: var(--blanc); border-radius: 20px; padding: 14px 16px; box-shadow: var(--ombre); }
.chiffre b { display: block; font-size: 38px; font-weight: 900; line-height: 1.1; }
.chiffre span { display: block; font-weight: 800; }
.chiffre small { display: block; font-size: 14px; color: var(--texte-doux); }
@media (min-width: 720px) { .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Le bouton rond qui cree une Mimote : pose en bas de la page, comme le micro de la conversation. */
.zone-plus {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10;
  pointer-events: none;
}
.bouton-plus {
  width: 76px; height: 76px; border-radius: 50%; border: 5px solid var(--creme); pointer-events: auto;
  display: grid; place-items: center; color: var(--blanc);
  background: radial-gradient(circle at 50% 35%, #FF5C9A, var(--rose) 70%); box-shadow: 0 8px 20px rgba(255, 46, 126, 0.4);
}
.bouton-plus svg { width: 36px; height: 36px; }
.back-office .pied { height: 110px; }
.fenetre { border: 0; border-radius: 24px; padding: 22px; width: min(92vw, 440px); background: var(--creme); color: var(--violet); }
.fenetre::backdrop { background: rgba(0, 0, 0, 0.5); }
.fenetre h2 { margin: 0 0 8px; }
.fenetre .libelle { display: block; margin: 16px 0 6px; }
.fenetre .champ { width: 100%; }
.fenetre .actions { margin-top: 18px; }
/* Back office : une fiche de Mimote est repliee au depart, et se deplie d'un toucher. */
.papotes { align-items: start; }
.papote-resume {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; width: 100%;
  background: none; border: 0; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit;
}
.papote-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.papote-titre b { font-weight: 900; font-size: 19px; }
.papote-note { font-weight: 700; color: var(--texte-doux); }
.papote-essentiel { grid-column: 1; font-size: 15px; color: var(--texte-doux); overflow-wrap: anywhere; }
.papote-fleche { grid-column: 2; grid-row: 1 / span 2; width: 24px; height: 24px; transition: transform 0.15s; }
.papote.ouverte .papote-fleche { transform: rotate(180deg); }
.point-en-ligne { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2EBD85; margin-right: 6px; }
.papote-creation { margin: 12px 0 0; }
.maj-resultat { display: block; font-weight: 400; }
.versions { display: grid; gap: 14px; }
.version > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.version b { font-weight: 900; }
.version p { margin: 2px 0 0; }
.version .actions { margin: 8px 0 0; gap: 8px; }
.version .actions:empty { display: none; }
.version .actions .bouton, .deploiement .bouton { flex: 0 1 auto; }
.deploiement { background: var(--creme); border-radius: 16px; padding: 12px 14px; }
.alerte-vendeur { background: #FFE3EC; border-radius: 16px; padding: 12px 14px; margin: 0 0 14px; }
.deploiement.arrete { background: #FFE3EC; }
.deploiement p { margin: 2px 0 0; }
.deploiement .bouton { margin-top: 8px; }
/* Back office : les listes d'actions du site, avec des filets et des fleches gris au lieu de violets. */
.back-office .liste-actions > a, .back-office .liste-actions > button { border-top-color: rgba(0, 0, 0, 0.1); }
.back-office .liste-actions > :first-child { border-top: 0; }
.back-office .liste-actions > a::after, .back-office .liste-actions > button::after { color: #A8A8A8; }
.back-office .liste-actions.sensibles { border-top-color: rgba(0, 0, 0, 0.14); }
.papote .liste-actions { margin-top: 12px; }
.papote .liste-actions.sensibles { margin-top: 0; }
.papote .liste-actions > button { padding-top: 6px; padding-bottom: 6px; }     /* de l'air quand le texte tient sur deux lignes */
/* Precision a droite d'une ligne d'action (la taille du forfait, par exemple), avant la fleche. */
.liste-actions .precision { margin-left: auto; font-weight: 400; color: var(--texte-doux); white-space: nowrap; }
.cle-affichee { padding: 0 4px 14px; }
.cle-affichee .cle-boite { margin-bottom: 8px; }

/* iPhone, appli installee sur l'ecran d'accueil : la page occupe tout l'ecran et passe sous la
   barre d'etat (heure, reseau, batterie). L'en-tete et les vues plein ecran descendent d'autant.
   Partout ailleurs cette marge vaut zero : rien ne change. (Signale par Styven le 23 novembre 2026,
   le nom de la boite etait cache par l'heure.) */
.entete { padding-top: calc(14px + env(safe-area-inset-top)); }
.lecteur .colonne { padding-top: calc(14px + env(safe-area-inset-top)); }
.nommer { padding-top: calc(20px + env(safe-area-inset-top)); }

/* Back office : les personnes qui ont laisse leurs coordonnees pour etre prevenues de la mise en vente. */
.interesses p { margin: 0; }
.interesses .actions .bouton { flex: 0 1 auto; }
.interesses-liste { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.interesses-liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.interesses-liste li > div { min-width: 0; overflow-wrap: anywhere; }
.interesses-liste .discret { display: block; font-size: 14px; }
.interesses-liste .bouton { flex: none; }

/* Page d'accueil : le formulaire « etre prevenu de la mise en vente », au-dessus du code famille. */
.deux-champs { display: grid; gap: 12px; }
.deux-champs > div { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 480px) { .deux-champs { grid-template-columns: 1fr 1fr; } }
.interet .erreur { margin: 0; }
.interet-fait { margin: 16px 0 0; text-align: center; font-weight: 800; }
.interet-fait[hidden] { display: none; }
.accord { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 15px; line-height: 1.4; }
.accord input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--violet); }
/* Le champ piege : hors de l'ecran, invisible pour une personne (meme avec un lecteur d'ecran). */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.interesses-boutons { display: flex; flex-wrap: wrap; gap: 6px; flex: none; justify-content: flex-end; }
.interesses .repli .discret { margin: 4px 0 8px; font-size: 14px; }
.interet-appel { display: grid; gap: 6px; }
.accord-suite { margin: 0 0 0 34px; text-align: left; font-size: 13.5px; line-height: 1.4; color: var(--texte-doux); }
.interet-mention { font-size: 13.5px; line-height: 1.45; color: var(--texte-doux); }
.accord-suite a, .interet-mention a { color: var(--violet); font-weight: 700; }
/* Arrivee par un lien sur un paragraphe des pages legales : le titre ne se glisse pas sous l'en-tete. */
.mentions h2[id] { scroll-margin-top: 120px; }

/* Le logo fourni par Styven (bulles, nom et devise dans une seule image) : un peu plus haut que les bulles seules. */
.entete .logo .logo-image { height: 54px; width: auto; }
@media (max-width: 359px) { .entete .logo .logo-image { height: 44px; } }

/* Sur fond clair, le logo de Styven garde son fond violet : un bandeau en haut de l'ecran, termine par la
   meme vague que le haut de page (page d'entree, et ecrans de refus ou « #logo-refus » en tient lieu). */
.bandeau-logo, #logo-refus {
  display: block; background: #4B006E; text-align: center;
  padding: calc(26px + env(safe-area-inset-top)) 16px 52px;
  --vague: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2600' height='26'%3E%3Cpath d='M0 0 L0 14 C 160 -8, 300 30, 520 10 S 900 -6, 1200 16 S 1900 0, 2600 14 L2600 0 Z'/%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 25px) no-repeat, var(--vague) left bottom / 2600px 26px no-repeat;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 25px) no-repeat, var(--vague) left bottom / 2600px 26px no-repeat;
}
.bandeau-logo .logo { display: inline-block; }
.bandeau-logo .logo img, #logo-refus img { display: inline-block; height: 88px; width: auto; max-width: 100%; }
.entree { padding-top: 22px; }
.plein { position: relative; padding-top: 190px; }
#logo-refus { position: absolute; top: 0; left: 0; right: 0; }
@media (max-width: 420px) { .bandeau-logo .logo img, #logo-refus img { height: 72px; } }
