/* Espace client Hearfit — charte reprise de hearfit.fr (voir C:\Node\Hearfit.fr\TYPOGRAPHIE.md) */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Alternates";
  src: url("../fonts/montserrat-alternates-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Alternates";
  src: url("../fonts/montserrat-alternates-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --nuit: #1d2746;
  --nuit-clair: #273557;
  --vert: #b6dda8;
  --vert-bouton: #a6d48f;
  --vert-soutenu: #66b647;
  --vert-badge: #e3f2dd;
  --vert-fond: #f4f9f2;
  --gris-fond: #fafafa;
  --gris-texte: #6d7285;
  --gris-pastille: #f0f1f3;
  --bordure: #e3e6ec;
  --rouge-fond: #fdecec;
  --rouge: #bf000f;
  --rouge-texte: #82181a;
  --blanc: #fff;

  --police-texte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-titre: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-bouton: "Montserrat Alternates", "Montserrat", system-ui, sans-serif;
  --rayon: 14px;
  --ombre: 0 2px 4px rgba(29, 39, 70, .04), 0 8px 24px rgba(29, 39, 70, .07);
  --ombre-carte: 1px 0 4px -1px rgba(0, 0, 0, .27);   /* les cartes de hearfit.fr */
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.65;
  color: var(--nuit);
  background: var(--gris-fond);
}

h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
h1 { font-size: clamp(26px, 4vw, 35px); }
h2 { font-size: clamp(20px, 3vw, 25px); }
h3 { font-size: 17px; }

a { color: var(--nuit); text-decoration-color: var(--vert-soutenu); text-underline-offset: 3px; }
a:hover { color: var(--nuit-clair); }

:focus-visible { outline: 3px solid var(--vert-soutenu); outline-offset: 2px; }

img { max-width: 100%; height: auto; }

/* ---------- En-tête ---------- */
.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
}
.entete-int {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.entete-logo { display: block; line-height: 0; }
.entete-logo img { width: 112px; }
.entete-titre {
  font-family: var(--police-titre);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris-texte);
  padding-left: 20px;
  border-left: 1px solid var(--bordure);
}
.entete-compte {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.entete-compte form { margin: 0; }
.entete-nom { font-weight: 600; }

/* ---------- Contenu ---------- */
.contenu {
  flex: 1;
  width: 100%;
  padding: 40px 24px 56px;
}

.sous-titre { color: var(--gris-texte); margin: 6px 0 0; }

.bienvenue { margin-bottom: 36px; }

.bloc + .bloc { margin-top: 48px; }
.bloc h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.compteur {
  font-family: var(--police-texte);
  font-size: 13px;
  font-weight: 700;
  min-width: 26px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--vert-badge);
  text-align: center;
}

/* ---------- Cartes ---------- */
.carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 32px;
}

.grille-centres {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

/* cartes des centres de l'accueil : comme celles de hearfit.fr (rayon 15 px, ombre légère,
   icône sur fond vert pâle) */
.centre {
  background: var(--blanc);
  border-radius: 15px;
  box-shadow: var(--ombre-carte);
  padding: 20px 22px;
}
.centre-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.centre h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 700; }
.icone-carte {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--vert-fond);
  color: var(--nuit);
}
.icone-carte svg { width: 28px; height: 28px; }
.centre-client { margin: 0 0 6px; font-size: 13px; color: var(--gris-texte); }
.centre address { font-style: normal; font-size: 14px; line-height: 1.6; }
.centre-infos { margin: 12px 0 0; display: grid; gap: 4px; font-size: 13px; }
.centre-infos div { display: flex; justify-content: space-between; gap: 12px; }
.centre-infos dt { color: var(--gris-texte); white-space: nowrap; }
.centre-infos dd { margin: 0; text-align: right; }
/* carte d'un centre : un clic ouvre ses patients ; en bas, ses patients et « Nouveau patient » */
.centre-lien { padding: 0; transition: box-shadow .15s; display: flex; flex-direction: column; }
.centre-lien > a.centre-corps { display: block; flex: 1; padding: 20px 22px 6px; color: inherit; text-decoration: none; }
.centre-lien:hover { box-shadow: 0 0 0 1px var(--vert-soutenu), var(--ombre-carte); }
.centre-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0; padding: 8px 22px 18px; }
.centre-actions a { text-decoration: none; }
.centre-actions a:hover { text-decoration: underline; }
/* accueil : chercher ou créer un patient, en haut */
.outils-patients { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px 22px; }
.outils-patients .barre-patients { margin: 0; align-items: center; }
.code-centre { font-family: var(--police-titre); font-size: 14px; letter-spacing: .06em; padding: 1px 8px; border-radius: 6px; background: var(--vert-fond); }
.centre-contact {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--bordure);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--gris-texte);
  overflow-wrap: anywhere;
}

/* pastilles : en Montserrat, comme les étiquettes de hearfit.fr (« En centre », « À domicile ») */
.pastille {
  flex-shrink: 0;
  display: inline-block;
  font-family: var(--police-titre);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gris-pastille);
  color: var(--nuit);
}
.pastille-admin { background: var(--vert-badge); }
.pastille-bientot { background: var(--vert-fond); color: var(--gris-texte); font-weight: 600; }

/* ---------- Formulaires ---------- */
.formulaire { display: flex; flex-direction: column; text-align: left; margin-top: 8px; }
.formulaire label { font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.formulaire input {
  font: inherit;
  font-size: 16px; /* en dessous, Safari sur iPhone zoome à la saisie */
  color: var(--nuit);
  padding: 11px 13px;
  border: 1px solid #cfd4de;
  border-radius: 8px;
  background: var(--blanc);
}
.formulaire input:focus { outline: none; border-color: var(--vert-soutenu); box-shadow: 0 0 0 3px var(--vert-badge); }
.formulaire .bouton { margin-top: 24px; }
/* la note sur un patient (17/11) : le bouton à sa taille, pas étiré par la colonne du formulaire */
.carte-note .formulaire .bouton-lien { align-self: flex-start; margin-top: 8px; }
.carte-note textarea { resize: vertical; }

/* boutons de hearfit.fr : en pilule, Montserrat Alternates 500 en 14 px, vert de bouton à 60 %,
   plein au survol (« Découvrir la solution », « Accès patient ») */
.bouton {
  display: inline-block;
  font-family: var(--police-bouton);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  color: var(--nuit);
  background: rgba(166, 212, 143, .6);
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color .15s;
}
.bouton:hover { background: var(--vert-bouton); color: var(--nuit); }

.bouton-lien {
  font-family: var(--police-bouton);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  color: var(--nuit);
  background: none;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.bouton-lien:hover { border-color: var(--vert-soutenu); background: var(--vert-fond); }

.alerte {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 4px solid var(--vert-soutenu);
  background: var(--vert-fond);
  font-size: 14px;
  text-align: left;
}
.alerte-erreur { border-left-color: var(--rouge); background: var(--rouge-fond); color: var(--rouge-texte); }

/* ---------- Page de connexion ---------- */
.page-connexion { background: var(--vert-fond); }
.page-connexion .contenu { display: flex; align-items: center; justify-content: center; }
.carte-connexion { width: 100%; max-width: 440px; text-align: center; }
.connexion-logo { width: 200px; margin: 0 auto 20px; display: block; }
.carte-connexion h1 { font-size: 24px; }
.carte-connexion .sous-titre { margin-bottom: 20px; font-size: 15px; }
.connexion-aide { margin: 22px 0 0; font-size: 13px; color: var(--gris-texte); }
.connexion-code { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--bordure); text-align: left; }
.connexion-code summary { cursor: pointer; font-weight: 600; font-size: 14px; text-align: center; }
.connexion-code .aide { display: block; margin: 10px 0 0; }
/* « Besoin d'aide pour vous connecter ? » (05/11) : sous le code centre, mêmes plis */
.connexion-tutos { display: grid; gap: 12px; margin-top: 12px; }
.connexion-tutos .tuto { margin: 0; }
.connexion-tutos figcaption { font-size: 13px; }
.connexion-faq { margin: 12px 0 0; font-size: 13px; }
.connexion-faq dt { font-weight: 600; margin-top: 10px; }
.connexion-faq dt:first-child { margin-top: 0; }
.connexion-faq dd { margin: 2px 0 0; color: var(--gris-texte); }
.connexion-version { margin: 20px 0 0; font-size: 12px; color: var(--gris-texte); }
/* identifiant oublié (04/11) : l'aide sous le code centre, les recours, et le champ piège à robots (hors écran) */
.carte-connexion .formulaire > .aide { margin-top: 6px; }
.identifiant-aide { text-align: left; }
.identifiant-aide p { margin: 0 0 8px; }
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.pied {
  text-align: center;
  font-size: 13px;
  color: var(--gris-texte);
  padding: 20px 16px 28px;
}
.pied p { margin: 0; }
.pied a { color: var(--gris-texte); }

/* ---------- Menu ---------- */
.menu { border-top: 1px solid var(--bordure); }
.menu-int {
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu a {
  flex-shrink: 0;
  font-family: var(--police-titre);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nuit);
  padding: 12px 12px 10px;
  border-bottom: 3px solid transparent;
}
.menu a:hover { border-bottom-color: var(--vert); }
.menu a.actif { border-bottom-color: var(--vert-soutenu); }
/* le sous-menu d'un groupe de l'administration LDRD (13/11) : les pages du groupe, sous le menu */
.sous-menu { border-top: 1px solid var(--bordure); background: var(--gris-fond); }
.sous-menu-int { padding: 6px 24px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sous-menu a {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--nuit);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.sous-menu a:hover { border-color: var(--bordure); background: var(--blanc); }
.sous-menu a.actif { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); }
.entete-panier {
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--vert-fond);
}
.entete-panier.actif, .entete-panier:hover { background: var(--vert-badge); }
.espace-admin .entete { border-top: 4px solid var(--nuit); }

/* ---------- Éléments communs ---------- */
.masque {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.fil { font-size: 14px; color: var(--gris-texte); margin: 0 0 16px; }
.fil a { color: var(--gris-texte); }
.alerte-ok { border-left-color: var(--vert-soutenu); background: var(--vert-badge); }
.entete-commande { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 24px; }
.grille-2 h2 { font-size: 18px; margin-bottom: 10px; }
.grille-2 h3 { font-size: 15px; margin: 16px 0 6px; }
.grille-2 address { font-style: normal; }
.bouton-petit { font-size: 13px; padding: 9px 18px; }
.bouton[disabled] { opacity: .5; cursor: not-allowed; }
.bouton-retirer { color: var(--rouge-texte); }
.lien-fleche { font-weight: 700; font-size: 14px; }
.droite { text-align: right; }

/* Visuels */
.visuel {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--vert-fond);
}
.visuel-vide { display: flex; align-items: center; justify-content: center; }
.visuel-vide img { width: 22%; max-width: 70px; opacity: .45; }
.vignette { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--vert-fond); }
.vignette.visuel-vide { display: flex; }
.vignette.visuel-vide img { width: 40%; }
.vignette-grande { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--vert-fond); }

/* ---------- Boutique ---------- */
.grille-articles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
/* « À télécharger » sous les supports à commander (Affiches & PLV, 05/11) */
.grille-articles + .bloc { margin-top: 40px; }
.carte-article {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
  transition: transform .15s;
}
.carte-article:hover { transform: translateY(-2px); }
.carte-article a { display: block; text-decoration: none; height: 100%; }
.carte-article-corps { padding: 18px 20px 20px; }
.carte-article h2 { font-size: 19px; }
.conditionnement { margin: 2px 0 0; font-size: 14px; color: var(--gris-texte); }
.modeles-resume { margin: 8px 0 0; font-size: 13px; color: var(--gris-texte); }
.prix { margin: 12px 0 0; font-family: var(--police-titre); font-weight: 700; font-size: 20px; }
.prix span { font-family: var(--police-texte); font-size: 13px; font-weight: 500; color: var(--gris-texte); }
.prix-grand { font-size: 30px; margin: 8px 0 16px; }

.fiche-article { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.fiche-visuels .visuel { border-radius: var(--rayon); }
.visuel-grand { aspect-ratio: auto; max-height: 560px; object-fit: contain; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.galerie figure { margin: 0; }
.galerie .visuel { border-radius: 10px; }
.galerie figcaption { font-size: 13px; font-weight: 600; margin-top: 6px; text-align: center; }
.fiche-infos h1 { font-size: clamp(24px, 3.4vw, 32px); }
.description p { margin: 0 0 12px; }
.caracteristiques { margin: 0 0 8px; padding: 14px 18px 14px 34px; background: var(--vert-fond); border-radius: 10px; font-size: 14px; }
.caracteristiques li + li { margin-top: 4px; }
.formulaire-commande { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--bordure); }
.choix-modeles, .choix-centres { border: 0; margin: 0; padding: 0; }
.choix-modeles legend, .choix-centres legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.choix-modeles { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-modele input, .choix-centre input { position: absolute; opacity: 0; }
.choix-modele > span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid #cfd4de;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--blanc);
}
.choix-modele input:checked + span { border-color: var(--vert-soutenu); background: var(--vert-badge); }
.choix-modele input:focus-visible + span, .choix-centre input:focus-visible + span { outline: 3px solid var(--vert-soutenu); outline-offset: 2px; }
.formulaire .champ-quantite { width: 110px; }

/* ---------- Tableaux, panier, commandes ---------- */
.tableau { width: 100%; border-collapse: collapse; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; font-size: 14px; }
.tableau th, .tableau td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--bordure); vertical-align: middle; }
.tableau thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris-texte); background: var(--gris-fond-2, #fcfcfd); }
.tableau tfoot th, .tableau tfoot td { border-bottom: 0; font-weight: 700; }
.tableau .droite { text-align: right; }
.tableau .total { font-family: var(--police-titre); font-size: 17px; }
.tableau a { font-weight: 600; }
.ligne-invalide { background: var(--rouge-fond); }
.panier { display: grid; gap: 24px; }
.panier-article { display: flex; align-items: center; gap: 12px; }
.form-quantite { display: flex; align-items: center; gap: 8px; }
.form-quantite .champ-quantite, .ligne-document .champ-quantite { width: 72px; font: inherit; padding: 7px 9px; border: 1px solid #cfd4de; border-radius: 8px; }
.valider-commande { max-width: 640px; justify-self: end; width: 100%; }
.valider-commande h2 { font-size: 20px; margin-bottom: 8px; }
.valider-commande textarea, .formulaire textarea, .formulaire select {
  font: inherit; font-size: 16px; color: var(--nuit); padding: 11px 13px; border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc);
}
.choix-centres { display: grid; gap: 8px; }
.choix-centre > span { display: block; padding: 12px 14px; border: 1px solid #cfd4de; border-radius: 10px; cursor: pointer; font-size: 14px; }
.choix-centre input:checked + span { border-color: var(--vert-soutenu); background: var(--vert-fond); }

.pastille.statut-recue { background: #fff3d6; }
.pastille.statut-en-preparation { background: #e3ecfb; }
.pastille.statut-expediee { background: var(--vert-badge); }
.pastille.statut-annulee { background: var(--gris-pastille); color: var(--gris-texte); }
.pastille.notif-envoyee { background: var(--vert-badge); }
.pastille.notif-en-attente { background: #fff3d6; }
.pastille.notif-erreur { background: var(--rouge-fond); color: var(--rouge-texte); }

/* ---------- Téléchargements ---------- */
.liste-telechargements { display: grid; gap: 16px; }
.carte-telechargement { display: flex; gap: 20px; align-items: flex-start; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px; }
.carte-telechargement-corps { flex: 1; min-width: 0; }
.carte-telechargement h2 { font-size: 19px; margin-bottom: 6px; }
.liste-documents { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.liste-documents li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 10px; background: var(--blanc); }
.document-titre { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.document-taille { font-weight: 400; color: var(--gris-texte); font-size: 13px; }

/* ---------- Administration ---------- */
.formulaire-large { max-width: 820px; }
.formulaire-large h2, .bloc-admin h2 { font-size: 20px; margin-bottom: 4px; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0 16px; }
.grille-champs > div { display: flex; flex-direction: column; }
.aide { font-weight: 400; color: var(--gris-texte); font-size: 13px; }
.aide-champ { margin-top: 4px; }
/* L'entraînement à domicile (20/11) : les boutons du client et du centre, la case du patient */
.actions-domicile { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.form-domicile, .formulaire-domicile { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 8px 0; }
.form-domicile .case, .formulaire-domicile .case { margin: 0; }
.pastille-domicile { background: #e3ecfb; }   /* la liste des patients : sa case et celle de son centre (20/11) */
/* Le jeton du logiciel d'un centre (20/11) : « Afficher » sur la ligne du jeton masqué ; le jeton montré se coupe partout */
.form-en-ligne { display: inline; margin-left: 12px; }
#jeton .form-domicile label[for] { font-weight: 600; color: var(--nuit); }
#jeton .actions-domicile { flex-direction: column; align-items: flex-start; gap: 4px; }   /* une action par ligne, chacune son « Je confirme » */
#jeton select { font: inherit; font-size: 15px; color: var(--nuit); padding: 6px 10px; border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc); min-width: 140px; }
.jeton-erp { font-family: Consolas, "Courier New", monospace; font-size: 15px; word-break: break-all; background: var(--vert-fond); padding: 2px 6px; border-radius: 4px; user-select: all; }
.case { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.formulaire .case input { width: auto; }
.visuel-actuel { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.bloc-admin { margin-top: 24px; max-width: 820px; }
.ligne-admin { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--bordure); }
.ligne-admin-champs { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ligne-admin-champs label { font-size: 13px; font-weight: 600; margin: 8px 0 4px; }
.ligne-admin-champs input:not([type=checkbox]) { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #cfd4de; border-radius: 8px; }
.ligne-admin-champs h3 { font-size: 15px; }
.ligne-admin-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ligne-ajout { background: var(--vert-fond); margin: 8px -16px -16px; padding: 16px; border-radius: 0 0 var(--rayon) var(--rayon); border-top: 0; }
.ligne-document { display: flex; align-items: center; gap: 8px; width: 100%; flex-wrap: wrap; }
.ligne-document input[name=titre] { flex: 1; min-width: 180px; font: inherit; padding: 7px 9px; border: 1px solid #cfd4de; border-radius: 8px; }
.zone-danger { max-width: 820px; margin-top: 32px; padding: 18px 20px; border: 1px solid #f1c4c4; border-radius: var(--rayon); background: #fffafa; font-size: 14px; }
.zone-danger p { margin: 0 0 10px; }
/* les bornes HearFit (03/11) : un bouton par ordre, la liste des derniers ordres */
.form-ordre-borne { margin: 6px 0; }
.liste-ordres-borne { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.liste-ordres-borne li { margin: 4px 0; }
.liste-ordres-borne .form-ordre-borne { display: inline; margin: 0 0 0 6px; }
.form-maj-borne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.form-maj-borne select { font: inherit; padding: 5px 8px; border: 1px solid #cfd4de; border-radius: 8px; }
.bloc-logiciel-bornes { margin-top: 28px; }
.bloc-logiciel-bornes h2 { font-size: 18px; margin-bottom: 6px; }
.bloc-logiciel-bornes td .form-ordre-borne { margin: 2px 0; }
.actions-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.onglets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.onglets a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--bordure); }
.onglets a.actif { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); }
.onglets a.actif .compteur { background: rgba(255, 255, 255, .2); }

/* ---------- Patients ---------- */
.barre-patients { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; margin-bottom: 8px; }
.barre-champ { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.barre-champ label { font-size: 14px; font-weight: 600; }
.barre-champ input, .barre-champ select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc); max-width: 100%; }
.barre-champ input { width: 240px; }
.barre-ou { font-size: 14px; font-weight: 600; color: var(--gris-texte); margin-right: 4px; }
.code-patient { display: flex; flex-direction: column; align-items: flex-end; padding: 12px 18px; border-radius: var(--rayon); background: var(--vert-badge); }
.code-patient span, .centre-code span { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris-texte); }
.code-patient strong, .centre-code strong { font-family: var(--police-titre); font-size: 30px; letter-spacing: .08em; }
/* le code centre sur la carte d'un centre de l'accueil, au dessin du code patient (05/11) */
.centre-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin: 14px 0 4px; padding: 10px 16px; border-radius: var(--rayon); background: var(--vert-badge); }
.centre-code strong { font-size: 26px; line-height: 1.2; }
.groupe-fiche { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.groupe-fiche + .groupe-fiche { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bordure); }
.groupe-fiche legend { font-family: var(--police-titre); font-size: 18px; font-weight: 700; padding: 0; }
.groupe-fiche[disabled] { opacity: .7; }
.choix-civilite { display: flex; gap: 24px; margin-top: 10px; }
.tableau-serre th, .tableau-serre td { padding: 8px 12px; }
/* onglets de la fiche : Suivi V3 (la fiche V3, lue chez Hearfit), Historique V2 (courbe) */
.cartes-v3 { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.cartes-v3 li { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.valeur-v3 { font-family: var(--police-titre); font-size: 26px; font-weight: 700; line-height: 1.25; }
.libelle-v3 { font-size: 14px; }
.detail-v3 { font-size: 13px; color: var(--gris-texte); }
/* « Écoute dans le bruit » (patients A, 10/11) : seuils, tests, séances Comprendre dans le bruit (barres en SVG) */
.bloc-bruit h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bloc-bruit h2 .aide { font-family: var(--police-texte); font-size: 14px; font-weight: 400; }
.pastille-patient-a { background: var(--vert-badge); }
.bloc-bruit h3 { font-size: 16px; margin: 16px 0 6px; }
.bloc-bruit h3 .aide { font-family: var(--police-texte); font-weight: 400; margin-left: 4px; }
.cartes-bruit { margin: 14px 0 8px; }
.cartes-bruit li { box-shadow: none; background: var(--gris-fond); border: 1px solid var(--bordure); }
.cartes-bruit .valeur-v3 { font-size: 22px; }
.cartes-bruit li.ecart-mieux { background: var(--vert-fond); border-color: var(--vert); }
.cartes-bruit li.ecart-moins { background: #fff6e8; border-color: #f0c987; }
.liste-bruit { list-style: none; margin: 0; padding: 0; }
.liste-bruit li { padding: 6px 0; border-top: 1px solid var(--bordure); font-size: 14px; }
.liste-bruit strong { display: inline-block; min-width: 72px; }
.seances-bruit { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.seances-bruit li { width: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12.5px; color: var(--gris-texte); line-height: 1.4; }
.seances-bruit strong { color: var(--nuit); font-size: 14px; margin-top: 4px; }
.barre-bruit { display: block; width: 100%; height: 64px; border-radius: 8px; overflow: hidden; }
.barre-fond { fill: var(--gris-pastille); }
.barre-pct { fill: var(--vert-soutenu); }
.seances-bruit .a-faire .barre-fond { fill: var(--blanc); stroke: var(--bordure); stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
/* une note sur 100 : le barème A à E de la courbe (couleurs de Hearfit) */
.note-v3 { display: inline-block; min-width: 40px; text-align: center; font-weight: 800; border-radius: 6px; padding: 1px 6px; }
.valeur-v3 .note-v3 { padding: 0 8px; }
.note-a { background: #038141; color: #fff; }
.note-b { background: #85bb2f; color: #1b2e5e; }
.note-c { background: #fecb02; color: #1b2e5e; }
.note-d { background: #ee8100; color: #1b2e5e; }
.note-e { background: #e63e11; color: #fff; }
.kv { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--gris-texte); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.condition-off { color: var(--gris-texte); text-decoration: line-through; }
.grille-v3 { margin-top: 0; }
.grille-v3 .carte, .bloc-v3 { padding: 24px; }
.bloc-v3 { margin-top: 16px; }
.bloc-v3 h2 { font-size: 18px; margin-bottom: 10px; }
.parcours-v3 { margin: 8px 0 6px; }
.pastille-v3-ok { background: var(--vert-badge); }
.pastille-v3-attente, .pastille-v3-moyen { background: #fff3d6; }
.pastille-v3-mauvais { background: var(--rouge-fond); color: var(--rouge-texte); }
/* l'assistant Hearfit (repris de HearfitCHAT, 01/11) : la conversation, puis l'administration */
.assistant { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.assistant-fil { display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 320px; max-height: min(62vh, 640px); overflow-y: auto; background: var(--gris-fond); }
.assistant-accueil { margin: auto; max-width: 560px; text-align: center; padding: 18px 0; }
.assistant-accueil h2 { font-size: 22px; margin: 10px 0 6px; }
.assistant-accueil p { color: var(--gris-texte); margin: 0 0 16px; }
.assistant-icone { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--vert-badge); color: var(--vert-soutenu); }
.assistant-icone svg { width: 30px; height: 30px; }
.assistant-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.puce-question { font: inherit; font-size: 14px; font-weight: 600; color: var(--nuit); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--bordure); background: var(--blanc); cursor: pointer; }
.puce-question:hover { border-color: var(--vert-soutenu); background: var(--vert-fond); }
.bulle { max-width: min(80%, 720px); padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.bulle p { margin: 0 0 8px; }
.bulle p:last-child, .bulle ul:last-child, .bulle ol:last-child { margin-bottom: 0; }
.bulle ul, .bulle ol { margin: 0 0 8px; padding-left: 22px; }
.bulle li + li { margin-top: 3px; }
.bulle li > ul { margin: 4px 0 0; }   /* les gestes sous une étape numérotée */
.bulle pre { background: var(--gris-pastille); padding: 10px 12px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.bulle code { background: var(--gris-pastille); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.bulle pre code { background: none; padding: 0; }
.bulle-question { align-self: flex-end; background: var(--nuit); color: var(--blanc); border-bottom-right-radius: 4px; }
.bulle-reponse { align-self: flex-start; background: var(--blanc); box-shadow: var(--ombre); border-bottom-left-radius: 4px; }
.bulle-reponse a { font-weight: 600; }
.bulle-auteur { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--vert-soutenu); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.bulle-auteur svg { width: 15px; height: 15px; }
.titre-reponse { margin-top: 4px; }
.bulle-erreur { align-self: flex-start; background: var(--rouge-fond); color: var(--rouge-texte); font-size: 14px; }
.bulle-note { margin: -8px 0 0 4px; }
.points { display: inline-flex; gap: 5px; padding: 4px 0; }
.points span { width: 7px; height: 7px; border-radius: 50%; background: var(--vert-soutenu); animation: points 1.2s infinite ease-in-out; }
.points span:nth-child(2) { animation-delay: .15s; }
.points span:nth-child(3) { animation-delay: .3s; }
@keyframes points { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .points span { animation: none; opacity: .7; } }
.assistant-saisie { display: flex; gap: 10px; align-items: flex-end; padding: 14px 16px; border-top: 1px solid var(--bordure); background: var(--blanc); }
.assistant-saisie textarea { flex: 1; resize: none; font: inherit; font-size: 16px; color: var(--nuit); padding: 11px 13px; border: 1px solid #cfd4de; border-radius: 10px; min-height: 48px; max-height: 180px; }
.assistant-saisie textarea:focus { outline: none; border-color: var(--vert-soutenu); box-shadow: 0 0 0 3px var(--vert-badge); }
.assistant-saisie .bouton { margin: 0; }
.assistant-pied { margin: 0; padding: 0 16px 14px; background: var(--blanc); }
.modele-secours { margin-bottom: 40px; }   /* l'assistant : le modèle de secours (10/11), avant ses Versions */
.connaissance textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.5; min-height: 480px; resize: vertical; }
.texte-version { white-space: pre-wrap; font-size: 13px; line-height: 1.5; max-height: 70vh; overflow-y: auto; }
.liste-sans-reponse { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.liste-sans-reponse li { padding: 16px 18px; }
.liste-sans-reponse .aide { margin: 0 0 6px; }
.question-sans-reponse { font-weight: 600; margin: 0 0 8px; }
.liste-sans-reponse details .bulle { max-width: 100%; margin-top: 8px; box-shadow: none; border: 1px solid var(--bordure); }
/* trier un tableau en cliquant sur l'en-tête (public/js/tri.js, 02/11) */
.tri-entete { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
.tri-entete::after { content: '↕'; font-size: .9em; opacity: .35; }
th[aria-sort="ascending"] .tri-entete::after { content: '▲'; opacity: .8; font-size: .7em; }
th[aria-sort="descending"] .tri-entete::after { content: '▼'; opacity: .8; font-size: .7em; }
.tri-entete:hover::after { opacity: .8; }
.tri-entete:focus-visible { outline: 2px solid var(--vert-soutenu); outline-offset: 2px; border-radius: 4px; }
/* les tickets (02/11) : « Écrire à l'équipe » sous l'assistant ; le fil d'un ticket côté LDRD */
.assistant-equipe { padding: 0 16px 8px; background: var(--blanc); }
.assistant-ticket[hidden] { display: none; }
.assistant-ticket { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.assistant-ticket label { font-size: 14px; font-weight: 600; }
.assistant-ticket textarea { font: inherit; font-size: 16px; color: var(--nuit); padding: 10px 12px; border: 1px solid #cfd4de; border-radius: 10px; resize: vertical; }
.assistant-ticket-actions { display: flex; gap: 12px; align-items: center; }
.assistant-ticket-actions .bouton { margin: 0; }
.assistant-ticket-etat { margin: 0; font-size: 14px; color: var(--vert-soutenu); font-weight: 600; }
.fenetre-assistant .assistant-equipe { padding: 0 12px 6px; }
.fil-ticket { display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px; }
.message-ticket { max-width: 760px; padding: 12px 16px; border-radius: 14px; background: var(--blanc); box-shadow: var(--ombre); overflow-wrap: anywhere; }
.message-ticket p { margin: 0; }
.message-ticket p.aide { margin-bottom: 6px; }
.message-sortant { align-self: flex-end; background: var(--vert-fond); }
.form-statut-ticket { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.form-statut-ticket select, .formulaire select { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc); }
/* LDRD : les clients (02/11) — la liste, la recherche, la fiche d'un client */
.recherche-clients { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; max-width: 520px; }
.recherche-clients input[type="search"] { flex: 1; font: inherit; font-size: 15px; color: var(--nuit); padding: 9px 12px; border: 1px solid #cfd4de; border-radius: 10px; }
.recherche-clients input[type="search"]:focus { outline: none; border-color: var(--vert-soutenu); box-shadow: 0 0 0 3px var(--vert-badge); }
.fiche-client { padding: 18px 22px; }
.liste-fiche { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 8px 0 10px; }
.liste-fiche dt { font-weight: 600; color: var(--gris-texte); }
.liste-fiche dd { margin: 0; overflow-wrap: anywhere; }
.actions-cellule { white-space: nowrap; }
.form-postes { display: inline-flex; gap: 8px; align-items: center; margin-right: 8px; }
.form-postes select { font: inherit; font-size: 15px; color: var(--nuit); padding: 5px 10px; border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc); }
.actions-cellule .bouton-lien + .bouton-lien { margin-left: 10px; }
/* la supervision de Hearfit (09/11), administration LDRD */
.entete-supervision { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; }
.tableau-defile { overflow-x: auto; }
.table-patients-sup { min-width: 1040px; }   /* comme la console : le cadre défile plutôt que d'écraser les noms */
.table-patients-sup td:first-child { min-width: 150px; }
.filtres-sup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; }
.filtres-sup input[type="search"] { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 15px; padding: 7px 12px; border: 1px solid #cfd4de; border-radius: 8px; }
.filtres-sup select { font: inherit; font-size: 15px; padding: 6px 10px; border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc); }
pre.json, pre.texte-page { max-height: 480px; overflow: auto; margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: #f5f7fa; border: 1px solid var(--bordure); font: 12.5px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.liste-sup { margin: 6px 0 0; padding-left: 18px; }
.liste-sup li { margin: 3px 0; }
.liste-sup .masque-sup { color: var(--gris-texte); }
.explication-sup { white-space: pre-line; margin: 6px 0 0; }
.bug-img { display: block; max-width: 100%; margin-top: 12px; border: 1px solid var(--bordure); border-radius: 10px; }
tr.ligne-choisie td { background: var(--vert-badge); }
/* les modes d'entraînement de l'ancienne tablette (08/11), onglet Historique V2 */
.modes-v2 .kv { margin: 8px 0 12px; }
.modes-v2-definir { margin: 10px 0 4px; }
.modes-v2-definir > summary { display: inline-block; cursor: pointer; list-style: none; }
.modes-v2-definir > summary::-webkit-details-marker { display: none; }
.modes-v2-definir form { margin-top: 12px; max-width: 520px; }
.modes-v2-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.modes-v2-actions .zone-danger { margin: 0; }
/* « Ouvrir son espace » (08/11) : le bouton dans la cellule, à côté de « Modifier » ; le bandeau de l'espace ouvert */
.form-ouvrir { display: inline; margin-left: 10px; }
.filtre-utilisateurs { margin: -4px 0 12px; }
.bandeau-ldrd { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 9px 16px; background: #fdecc8; color: #6b4a00; border-bottom: 1px solid #f3d27a; font-size: 14px; text-align: center; }
.bandeau-ldrd form { display: inline; margin: 0; }
.bandeau-ldrd button { font: inherit; font-weight: 600; color: #6b4a00; background: transparent; border: 1px solid #d9b24a; border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.bandeau-ldrd button:hover, .bandeau-ldrd button:focus-visible { background: #f8dc94; }
@media (max-width: 640px) { .liste-fiche { grid-template-columns: 1fr; gap: 2px; } .liste-fiche dd { margin-bottom: 8px; } }
/* améliorer la connaissance (02/11) : l'avis sous une réponse ; Répondre ou Écarter dans « À améliorer » */
.avis { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--bordure); font-size: 13px; color: var(--gris-texte); }
.avis-bouton { width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--gris-texte); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.avis-bouton svg { width: 17px; height: 17px; }
.avis-bouton:hover { background: var(--gris-pastille); color: var(--nuit); }
.avis-bouton[aria-pressed="true"][data-valeur="1"] { background: var(--vert-badge); color: var(--vert-soutenu); border-color: var(--vert); }
.avis-bouton[aria-pressed="true"][data-valeur="-1"] { background: var(--rouge-fond); color: var(--rouge); border-color: var(--rouge-fond); }
.avis-bouton:disabled { opacity: .6; cursor: wait; }
.avis-merci { font-size: 12px; }
.liste-sans-reponse .repondre { margin-top: 10px; }
.liste-sans-reponse .repondre > summary { cursor: pointer; font-weight: 600; color: var(--vert-soutenu); }
.liste-sans-reponse .repondre .formulaire { margin-top: 4px; }
.liste-sans-reponse .repondre .formulaire textarea { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #cfd4de; border-radius: 10px; resize: vertical; }
.form-ecarter { margin-top: 6px; }
@media (max-width: 640px) { .bulle { max-width: 92%; } .assistant-fil { padding: 14px; } }
/* la pastille de l'assistant (01/11) : en bas à droite des pages des centres, elle ouvre l'assistant dans une fenêtre */
.avec-pastille .pied { padding-bottom: 104px; }   /* rien ne reste caché sous la pastille */
.pastille-assistant { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
/* fond vert, icône bleue (05/11, demandé : les couleurs inversées) */
.pastille-bouton { position: relative; width: 60px; height: 60px; padding: 0; border: none; border-radius: 50%; cursor: pointer; background: var(--vert-bouton); color: var(--nuit); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(29, 39, 70, .28); transition: transform .15s ease, background-color .15s ease; animation: halo-assistant 3.2s ease-out infinite; }
.pastille-bouton:hover { transform: scale(1.06); background: var(--vert); }
.pastille-bouton:focus-visible { outline: 3px solid var(--nuit); outline-offset: 3px; }
.pastille-bouton svg { width: 28px; height: 28px; }
.pastille-bouton .i-fermer, .pastille-assistant.ouverte .pastille-bouton .i-ouvrir { display: none; }
.pastille-assistant.ouverte .pastille-bouton .i-fermer { display: block; }
.pastille-assistant.ouverte .pastille-bouton { animation: none; }
@keyframes halo-assistant {
  0% { box-shadow: 0 6px 18px rgba(29, 39, 70, .28), 0 0 0 0 rgba(102, 182, 71, .6); }
  45%, 100% { box-shadow: 0 6px 18px rgba(29, 39, 70, .28), 0 0 0 18px rgba(102, 182, 71, 0); }
}
.pastille-invite { position: absolute; right: 76px; bottom: 12px; white-space: nowrap; font: inherit; font-size: 14px; font-weight: 600; color: var(--nuit); background: var(--blanc); border: 1px solid var(--bordure); border-radius: 14px 14px 4px 14px; padding: 9px 14px; box-shadow: var(--ombre); cursor: pointer; animation: entree-assistant .4s ease-out; }
.pastille-invite:hover { border-color: var(--vert-soutenu); }
.pastille-invite[hidden], .fenetre-assistant[hidden] { display: none; }
@keyframes entree-assistant { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fenetre-assistant { width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 124px)); background: var(--blanc); border: 1px solid var(--bordure); border-radius: 18px; box-shadow: 0 14px 44px rgba(29, 39, 70, .24); animation: entree-assistant .22s ease-out; }
.fenetre-entete { display: flex; align-items: center; gap: 2px; padding: 10px 10px 10px 16px; background: var(--nuit); color: var(--blanc); }
.fenetre-titre { flex: 1; display: flex; align-items: center; gap: 8px; font-family: var(--police-titre); font-weight: 700; font-size: 15px; }
.fenetre-titre svg { width: 20px; height: 20px; color: var(--vert); }
.fenetre-action { width: 34px; height: 34px; padding: 0; border: none; border-radius: 8px; background: transparent; color: var(--blanc); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: .85; }
.fenetre-action:hover, .fenetre-action:focus-visible { opacity: 1; background: var(--nuit-clair); outline: none; }
.fenetre-action svg { width: 18px; height: 18px; }
.fenetre-assistant .assistant-fil { flex: 1; min-height: 0; max-height: none; padding: 14px; gap: 10px; }
.fenetre-assistant .bulle { max-width: 88%; padding: 10px 13px; font-size: 14px; }
.fenetre-assistant .assistant-accueil { padding: 6px 0; }
.fenetre-assistant .assistant-accueil h2 { font-size: 17px; }
.fenetre-assistant .assistant-accueil p { font-size: 14px; }
.fenetre-assistant .assistant-icone { width: 46px; height: 46px; }
.fenetre-assistant .assistant-icone svg { width: 24px; height: 24px; }
.fenetre-assistant .puce-question { font-size: 13px; }
.fenetre-assistant .assistant-saisie { padding: 10px 12px; gap: 8px; }
.fenetre-assistant .assistant-saisie textarea { min-height: 44px; padding: 10px 12px; }
.fenetre-assistant .assistant-pied { padding: 0 12px 10px; font-size: 12px; }
.fenetre-chargement { margin: auto; color: var(--gris-texte); font-size: 14px; }
@media (max-width: 640px) {
  .pastille-assistant { right: 16px; bottom: 16px; }
  .fenetre-assistant { position: fixed; inset: 0; width: auto; height: auto; border: none; border-radius: 0; }
  .pastille-assistant.ouverte .pastille-bouton, .pastille-invite { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pastille-bouton, .pastille-invite, .fenetre-assistant { animation: none; transition: none; } }
@media print { .pastille-assistant { display: none; } }
/* les visites guidées (public/js/guide.js, 02/11 : « comme PEP35 ») */
.entete-guide { display: inline-flex; align-items: center; gap: 6px; }
.entete-guide[hidden] { display: none; }
.guide-rond { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--vert-soutenu); color: var(--blanc); font-size: 11px; font-weight: 700; line-height: 1; }
#guide-voile { position: fixed; inset: 0; z-index: 9000; }
#guide-voile.plein { background: rgba(29, 39, 70, .55); }
#guide-trou { position: fixed; z-index: 9001; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(29, 39, 70, .55); outline: 2px solid rgba(255, 255, 255, .9); pointer-events: none;
  transition: left .2s, top .2s, width .2s, height .2s; }
#guide-bulle { position: fixed; z-index: 9002; width: min(380px, calc(100vw - 24px)); background: var(--blanc); color: var(--nuit); border-radius: var(--rayon);
  padding: 16px 18px 14px; box-shadow: 0 12px 40px rgba(29, 39, 70, .35); font-size: 14px; line-height: 1.5; }
#guide-voile[hidden], #guide-trou[hidden], #guide-bulle[hidden] { display: none; }
.guide-rang { font-family: var(--police-titre); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-texte); }
#guide-bulle h2 { margin: 4px 0 6px; font-family: var(--police-titre); font-size: 17px; line-height: 1.3; }
#guide-bulle p { margin: 0; white-space: pre-line; }
.guide-pied { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.guide-espace { flex: 1; }
.guide-pied .guide-fin { border-color: transparent; padding-left: 4px; padding-right: 4px; color: var(--gris-texte); }
.guide-proposition { position: fixed; left: 24px; bottom: 24px; z-index: 950; width: min(340px, calc(100vw - 112px)); background: var(--blanc);
  border: 1px solid var(--bordure); border-left: 4px solid var(--vert-soutenu); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; font-size: 14px;
  animation: guide-entree .3s ease-out; }
.guide-proposition p { margin: 0 0 6px; }
.guide-proposition .guide-pied { margin-top: 10px; }
@keyframes guide-entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .guide-proposition { left: 16px; bottom: 16px; }
  #guide-bulle { font-size: 15px; }
  #guide-bulle .guide-pied button { min-height: 42px; }   /* des boutons qu'un doigt touche */
}
@media (prefers-reduced-motion: reduce) { #guide-trou { transition: none; } .guide-proposition { animation: none; } }
@media print { #guide-voile, #guide-trou, #guide-bulle, .guide-proposition, .entete-guide { display: none; } }
/* liste des patients : bilans et séances V2 et V3 (02/11) ; « fiche » : une fiche V3 chez Hearfit */
.nombres-version { white-space: nowrap; font-size: 13px; }
.pastille-version-v3 { background: var(--vert-badge); }
/* gestion d'un client (01/11) : Mes centres, Mes utilisateurs, Mes tablettes */
.titre-client { font-size: 20px; margin: 24px 0 10px; }
.pastille-inactif { background: var(--gris-pastille); color: var(--gris-texte); }
.ligne-inactive td { color: var(--gris-texte); }
.choix-lieux { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 6px 16px; margin-top: 8px; }
.seance-v3-en-seance { border-left-color: #2f6fdb; }
.seance-v3-interrompue { border-left-color: #f59e0b; background: #fff8e6; }
.reponses-v3 { margin-top: 12px; }
.reponses-v3 summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.reponses-v3 .tableau { margin-top: 8px; }
.num-v3 { width: 2.5em; color: var(--gris-texte); }
/* la fenêtre d'un point (la matrice de ses sons : hearfit-matrice.css), un son, une séance en détail */
.fenetre-point { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; border: 0; border-radius: var(--rayon); padding: 16px 24px 24px; box-shadow: 0 20px 60px rgba(29, 39, 70, .3); color: var(--nuit); }
.fenetre-point::backdrop { background: rgba(29, 39, 70, .45); }
.fenetre-tete { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.point-v3 h2 { font-size: 20px; margin: 0 0 4px; }
.point-v3 .mat-blocs { margin: 12px 0; }
.son-v3 { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bordure); }
.son-v3 h3 { font-size: 17px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin: 0 0 4px; }
.son-v3 h3 .bouton-lien { margin-left: auto; }
.etapes-v3 { border-collapse: collapse; width: 100%; font-size: 14px; margin: 6px 0 10px; table-layout: fixed; }
/* mêmes colonnes d'un tableau à l'autre : les étapes de chaque son s'alignent */
.etapes-v3 td:nth-child(2) { width: 36%; }
.etapes-v3 td:nth-child(3) { width: 28%; }
.etapes-v3 td { padding: 5px 12px 5px 0; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.etapes-v3 tr.separe td { border-top: 2px solid var(--bordure); }
.etapes-v3 td.ico-v3 { width: 2em; text-align: center; font-weight: 700; }
.etat-fait .ico-v3, .etat-refaire .ico-v3 { color: #2e9e56; }
.etat-en-cours .ico-v3 { color: #2f5fd0; }
.etat-a-faire .ico-v3 { color: #d97706; }
.etat-non-joue, .etat-non-prevu { color: var(--gris-texte); }
.ligne-seance { cursor: pointer; }
.ligne-seance:hover td, .ligne-seance.choisie td { background: var(--vert-fond); }
.ligne-seance:focus-visible { outline: 3px solid #2f5fd0; outline-offset: -3px; }
.tableau tr.detail-seance[hidden] { display: none; }   /* même sur téléphone, où les lignes passent en blocs */
.tableau .detail-seance > td { background: #fbfcfd; padding: 12px 18px 18px; }
/* historique V2 : une ligne terminée ouvre la fenêtre de ses sons ; « déjà travaillé » : un cadre blanc */
.ligne-bilan { cursor: pointer; }
.ligne-bilan:hover td { background: var(--vert-fond); }
.ligne-bilan:focus-visible { outline: 3px solid #2f5fd0; outline-offset: -3px; }
.mat-c.deja { box-shadow: inset 0 0 0 2px #fff; }
/* V2 : le mot réécouté en TEINTE CLAIRE, comme la fenêtre de WebDev (demandé le 29/10), pas le coin de la V3 */
.point-v2 .mat-c.reecoute::after { display: none; }
.point-v2 .mat-c.m-a.reecoute, .point-v2 .mat-echelle .m-a.reecoute { background: #b9f6ca; color: #1b2e5e; }
.point-v2 .mat-c.m-d.reecoute, .point-v2 .mat-echelle .m-d.reecoute { background: #ffd180; color: #1b2e5e; }
.point-v2 .mat-c.m-e.reecoute, .point-v2 .mat-echelle .m-e.reecoute { background: #ff9e80; color: #1b2e5e; }
.point-v2 .mat-c.deja.reecoute { box-shadow: inset 0 0 0 2px #1b2e5e; }   /* le cadre blanc ne se verrait pas sur une teinte claire */
.point-v2 .mat-echelle + .mat-echelle { margin-left: 6px; }
.seance-detail-v3 h3 { font-size: 17px; margin: 0 0 6px; }
.seance-detail-v3 h4 { font-size: 15px; margin: 14px 0 2px; }
.bloc-courbe { margin-bottom: 24px; }
.bloc-courbe h2 { font-size: 20px; margin-bottom: 10px; }
/* la légende de hearfit-courbe.js pose ses couleurs en style en ligne, refusé ici (CSP) : en classes, aux couleurs de la charte
   (23/11 ; les mêmes que les points, CHARTE de public/js/courbe.js) */
.hf-legende .lg-bilan-sans { background: #1d2746; }
.hf-legende .lg-bilan-avec { background: #4c9a32; }
.hf-legende .lg-seance-sans { background: #1d2746; }
.hf-legende .lg-seance-avec { background: #4c9a32; }
.hf-legende .lg-sans-info { background: #fff; border: 2px solid #8a93a6; }
.hf-legende .lg-domicile { background: #7c5cd6; }
.hf-legende .lg-mixte { background: #fff; border: 2px solid #7c5cd6; }
.hf-legende .lg-comprehension { border-color: #4b5568; }
.hf-legende .lg-calme { border-color: #4a7fbb; }
.hf-legende .lg-bruit { border-color: #d9534f; }
.alerte ul { margin: 6px 0 0; padding-left: 20px; }
.alerte p { margin: 0; }
/* l'écran Clés de LDRD (05/11) */
.cle-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.cle-tete h2 { margin: 0; }
.pastille-alerte { background: var(--rouge-fond); color: var(--rouge-texte); }
.cle .cle-test { margin: 12px 0 0; }
.cle .formulaire { margin-top: 16px; }
.cle-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; margin-top: 16px; }
.cle-actions .zone-danger { margin-top: 0; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cles-site { margin: 36px 0 0; font-size: 22px; }
.cle-partagee { margin: 14px 0 0; max-width: 820px; }
/* l'écran Clés, toutes les clés des trois projets (10/11) : alertes, chiffres du mois, tableau, une page par clé */
.pastille-orange { background: #fdf1dc; color: #7a4a06; }
.alerte-orange { border-left-color: #e0a12b; background: #fdf6e8; color: #6b4307; }
.cles-alertes { margin: 0 0 8px; }
.cles-alertes .alerte { margin-bottom: 8px; }
.cles-mois { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 8px 0 14px; }
.cles-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 12px; }
.cles-chiffre { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; }
.cles-chiffre p { margin: 0; }
.cles-chiffre-valeur { font-family: var(--police-titre); font-size: 22px; font-weight: 700; margin: 4px 0 !important; }
.cles-tableau .cles-groupe th { background: var(--gris-fond); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--nuit); }
.cle-validite { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 20px; font-size: 14px; }
.cle-validite dt { font-weight: 600; }
.cle-validite dd { margin: 0; }
.cles-conso { margin-top: 24px; }
.bloc-admin.cles-conso { max-width: 1100px; }
.cles-conso td:first-child { white-space: nowrap; }
/* l'onglet Mots de passe de LDRD (11/11) : une carte par porte de Hearfit.audio, puis le journal */
.mdp { max-width: 820px; }
.mdp-etat { margin: 10px 0 0; }
.mdp-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.mdp-champs input { width: 100%; box-sizing: border-box; }
.mdp-formulaire .aide { margin: 8px 0 0; }
.mdp-confirmer { margin-top: 14px !important; align-items: flex-start !important; font-weight: 500; }
.mdp-confirmer input { margin-top: 3px; }
.mdp-formulaire .bouton { align-self: flex-start; margin-top: 16px; }
.mdp-journal { max-width: 820px; }
.mdp-journal ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.mdp-refus { color: var(--rouge-texte); }
.mdp-note { margin-top: 18px; }
/* le dépannage d'un patient (11/11) : le bouton sous le code patient, en LDRD */
.entete-patient-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.form-depannage { margin: 0; }
/* le code unique du patient, sous son code patient (22/11) */
.code-unique { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 300px; padding: 8px 18px; border-radius: var(--rayon); background: var(--vert-badge); }
.code-unique [hidden] { display: none; }
.code-unique > span { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris-texte); }
.code-unique > strong, .code-unique-valeur { font-family: var(--police-titre); font-size: 20px; letter-spacing: .04em; white-space: nowrap; user-select: all; }
.code-unique form { margin: 0; }
.code-unique-message { margin: 0; font-size: 13px; text-align: right; }
.code-unique-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.code-unique-remplacer summary { cursor: pointer; font-size: 13px; text-align: right; }
.code-unique-remplacer form { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 6px; }
.code-unique-remplacer .aide { margin: 0; text-align: right; }
.code-unique-page .code-unique-remplacer summary { text-align: left; }
.code-unique-page .code-unique-remplacer form, .code-unique-page .code-unique-remplacer .aide { align-items: flex-start; text-align: left; }
.code-unique-valeur { font-size: 28px; }
.cles-usages { margin: 10px 0 16px; }
.cles-tarif { width: 110px; font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid #cfd4de; border-radius: 6px; }
.cles-tarif-regle { border-color: var(--vert-soutenu); }
.bienvenue h1 .pastille, .bienvenue h1 .aide { vertical-align: middle; margin-left: 6px; }
.bandeau-cles { margin-bottom: 24px; }
/* l'assistant en panne (05/11) : en haut des pages de LDRD */
.bandeau-panne { margin-bottom: 24px; }
.bandeau-panne p + p { margin-top: 6px; }
.bandeau-panne .aide { color: inherit; opacity: .85; }

/* ---------- Petits écrans ---------- */
@media (max-width: 840px) {
  .fiche-article { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .entete-int { gap: 12px; }
  .entete-titre, .entete-nom { display: none; }
  .carte { padding: 24px 20px; }
  .contenu { padding-top: 28px; }
  .entete-int, .menu-int, .sous-menu-int, .contenu { padding-left: 16px; padding-right: 16px; }
  .carte-telechargement { flex-direction: column; }
  .ligne-admin { flex-direction: column; }
  .ligne-admin-actions { flex-direction: row; align-items: center; }
  /* tableaux en cartes : chaque cellule porte son intitulé */
  .tableau thead { display: none; }
  .tableau, .tableau tbody, .tableau tr, .tableau td, .tableau tfoot, .tableau tfoot tr { display: block; width: 100%; }
  .tableau tr { padding: 10px 14px; border-bottom: 1px solid var(--bordure); }
  .tableau td, .tableau th { border: 0; padding: 4px 0; }
  .tableau td[data-label]::before { content: attr(data-label) " : "; color: var(--gris-texte); font-size: 12px; }
  .tableau .droite { text-align: left; }
  .tableau tfoot tr { display: flex; justify-content: space-between; gap: 12px; }
  .tableau tfoot th, .tableau tfoot td { width: auto; }
}

/* ---------- Infobulles (05/11, public/js/infobulles.js) : au survol ou au focus clavier de [data-infobulle] ---------- */
.infobulle {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10050;
  max-width: min(280px, calc(100vw - 16px));
  padding: 8px 12px 9px;
  border-radius: 10px;
  border-top: 2px solid var(--vert-soutenu);
  background: var(--nuit);
  color: var(--blanc);
  font-family: var(--police-texte);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: pre-line;
  box-shadow: 0 8px 22px rgba(29, 39, 70, .28);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease;
}
.infobulle[hidden] { display: none; }
.infobulle-dessous { transform: translateY(-4px); }
.infobulle.infobulle-visible { opacity: 1; transform: none; }
.infobulle::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--pointe, 50%);
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--nuit);
}
.infobulle-dessous::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--vert-soutenu); }
@media (prefers-reduced-motion: reduce) { .infobulle { transition: none; transform: none; } }
@media print { .infobulle { display: none; } }

/* ---------- Tutos vidéo (05/11) : lus dans la page, sur l'accueil et dans Aide › Tutos vidéo ---------- */
.grille-tutos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.tuto { margin: 0; background: var(--blanc); border-radius: 15px; box-shadow: var(--ombre-carte); overflow: hidden; }
.tuto video { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--nuit); }
.tuto figcaption { padding: 12px 16px 14px; font-size: 14px; }
.tuto figcaption strong { font-family: var(--police-titre); }
.tuto-description { display: block; margin-top: 4px; color: var(--gris-texte); font-size: 13px; }
/* Aide › Tutos vidéo rangée par thème (10/11) : les liens vers chaque thème, puis une section par thème */
.themes-tutos { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.themes-tutos a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--vert-fond); border: 1px solid var(--vert); }
.themes-tutos a:hover { background: var(--vert-badge); }
.theme-tutos { margin-top: 28px; scroll-margin-top: 90px; }
.theme-tutos h2 { font-size: 21px; margin-bottom: 12px; }
.theme-tutos h2 .aide { font-family: var(--police-texte); font-size: 14px; font-weight: 400; margin-left: 6px; }
.onglets-themes { margin-top: -8px; }
/* le tuto ouvert depuis une réponse de l'assistant (/tutos#tuto-12, 09/11) */
.tuto:target { outline: 3px solid var(--vert-soutenu); outline-offset: 3px; scroll-margin-top: 90px; }
/* l'accueil (05/11) : les tutos en carrousel, à côté des cartes quand il y a 1 ou 2 centres (sinon dessous) */
.accueil-cote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px 32px; align-items: start; }
.accueil-cote > .bloc, .accueil-cote > .bloc + .bloc { margin-top: 0; min-width: 0; }
.accueil-cote .grille-centres { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 320px; }
@media (max-width: 960px) {
  .accueil-cote { grid-template-columns: minmax(0, 1fr); }
  .accueil-cote .grille-centres { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); grid-auto-flow: row; grid-auto-columns: auto; }
}
/* à côté : les cartes vidéo de la hauteur de la carte du centre (05/11, demandé). La bande est posée dans son cadre
   (absolue) : c'est la carte du centre qui donne la hauteur de la rangée. La vidéo garde ses proportions, le lecteur
   prend la hauteur (bandes blanches, comme le fond des tutos). */
@media (min-width: 961px) {
  .accueil-cote { align-items: stretch; }
  .accueil-cote .accueil-tutos { display: flex; flex-direction: column; }
  .accueil-cote .carrousel-cadre { flex: 1 1 auto; position: relative; min-height: 240px; }
  .accueil-cote .carrousel { position: absolute; inset: -4px; margin: 0; grid-auto-columns: 440px; }
  .accueil-cote .carrousel > .tuto { display: flex; flex-direction: column; }
  .accueil-cote .carrousel video { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; background: var(--blanc); }
}
.carrousel-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.carrousel-tete h2 { margin-bottom: 0; }
.carrousel-actions { display: flex; align-items: center; gap: 16px; }
.carrousel-actions .lien-fleche { font-size: 14px; }
.carrousel-fleches { display: flex; gap: 8px; }
.carrousel-fleches[hidden] { display: none; }
.carrousel-fleche {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;   /* la hauteur du titre : vidéos et cartes alignées */
  border: 1px solid var(--bordure); border-radius: 50%; background: var(--blanc); color: var(--nuit);
  box-shadow: var(--ombre-carte); cursor: pointer;
}
.carrousel-fleche svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carrousel-fleche:hover:not(:disabled) { background: var(--vert-fond); border-color: var(--vert-soutenu); }
.carrousel-fleche:disabled { opacity: .35; cursor: default; box-shadow: none; }
/* la bande : défile aux flèches, au doigt ou au pavé tactile, sans barre de défilement (retirée le 05/11, demandé) ;
   un léger rebord pour que l'ombre des cartes ne soit pas coupée */
.carrousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 320px; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 4px; margin: -4px; scroll-padding-inline: 4px;   /* le rebord compté : la 1re vidéo cale à 0 */
}
.carrousel::-webkit-scrollbar { display: none; }
.carrousel > .tuto { scroll-snap-align: start; }
@media (max-width: 600px) { .carrousel { grid-auto-columns: 85%; } }
/* l'écran de LDRD (refait le 09/11) : le dépôt en une ligne, la liste, la page d'un tuto */
.depot-tutos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; margin: 0 0 18px; }
.depot-tutos label { font-weight: 600; margin: 0; }
.depot-tutos input[type="file"] { flex: 1 1 240px; min-width: 0; }
.table-tutos .tuto-description { font-size: 12px; }
.table-tutos tr:target td { background: var(--vert-fond); }
.tuto-admin { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.tuto-admin > div > .aide { margin: 8px 2px 0; }
.tuto-admin .formulaire { margin: 0; }
.tuto-admin .tuto { box-shadow: none; border: 1px solid var(--bordure); }
@media (max-width: 760px) { .tuto-admin { grid-template-columns: 1fr; } }

/* ---------- Les nouveautés (09/11) ---------- */
/* la cloche de l'en-tête des centres, avec le nombre de nouveautés pas encore lues */
.entete-nouveautes { position: relative; display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 8px; color: var(--nuit); text-decoration: none; }
.entete-nouveautes svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.entete-nouveautes:hover, .entete-nouveautes.actif { background: var(--vert-badge); }
.entete-nouveautes .compteur { position: absolute; top: -4px; right: -8px; min-width: 20px; padding: 1px 6px; font-size: 12px; background: var(--vert-soutenu); color: var(--blanc); }
.pastille-nouveau { background: var(--vert-soutenu); color: var(--blanc); }
.pastille-categorie { background: #e3ecfb; }
/* l'encart de l'accueil */
.nouveautes-accueil { background: var(--blanc); border: 1px solid var(--vert); border-radius: var(--rayon); padding: 16px 20px 6px; }
.bloc.nouveautes-accueil + .bloc { margin-top: 32px; }
.nouveautes-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.nouveautes-tete h2 { font-size: 18px; margin-bottom: 8px; gap: 8px; }
.icone-etincelle { width: 20px; height: 20px; fill: var(--vert-bouton); stroke: var(--vert-soutenu); stroke-width: 1.2; stroke-linejoin: round; }
.liste-nouveautes { list-style: none; margin: 0; padding: 0; }
.liste-nouveautes li + li { border-top: 1px solid var(--bordure); }
.liste-nouveautes a { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; text-decoration: none; color: var(--nuit); }
.liste-nouveautes a:hover strong { text-decoration: underline; }
.liste-nouveautes-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.liste-nouveautes-texte strong { font-weight: 600; }
.liste-nouveautes a.non-lue strong { font-weight: 700; }
@media (max-width: 640px) {
  .liste-nouveautes a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .liste-nouveautes-marque:empty { display: none; }
  .liste-nouveautes-marque, .liste-nouveautes a > .pastille { justify-self: start; }
}
/* la page des nouveautés, et l'aperçu de LDRD */
.liste-cartes-nouveautes { display: grid; gap: 16px; max-width: 820px; }
.nouveaute { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px 26px; scroll-margin-top: 16px; }
.nouveaute:target { outline: 2px solid var(--vert-soutenu); outline-offset: 2px; }
.nouveaute-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--gris-texte); }
.nouveaute h2 { font-size: 20px; margin: 12px 0 8px; }
.nouveaute p { margin: 0 0 10px; }
.nouveaute p:last-child { margin-bottom: 0; }
/* LDRD */
.form-nouveaute { max-width: 820px; }
.form-nouveaute h2 { font-size: 18px; margin: 0 0 4px; }
.form-nouveaute .actions-ligne .bouton { margin-top: 0; }
.nouveaute-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.nouveaute-admin .formulaire { margin: 0; }
.apercu-nouveaute > .aide { margin: 0 0 8px; }
.apercu-nouveaute .nouveaute { box-shadow: none; border: 1px solid var(--bordure); }
@media (max-width: 900px) { .nouveaute-admin { grid-template-columns: 1fr; } }

/* ---------- L'analyse IA des résultats (09/11, module premium par client) ---------- */
.bloc-analyse { padding: 24px; margin-top: 16px; }
.analyse-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.analyse-tete h2 { margin: 0; font-size: 18px; }
.analyse-tete form { margin: 0; }
.pastille-premium { background: #ece6fb; color: #4b3a8f; font-size: 12px; vertical-align: middle; }
.analyse-texte { font-size: 15px; line-height: 1.65; }
.analyse-texte p { margin: 0 0 10px; }
.analyse-avertissement { border-left-color: #e0a100; background: #fff3d6; margin: 12px 0 8px; }
.analyse-envoye { margin: 8px 0 0; }
.bouton-attente { opacity: .75; cursor: progress; }
.modules-client .case { font-weight: 600; }
.modules-client p { margin: 8px 0; }

/* « Hearfit a 10 ans » avant la connexion des centres (10/11, public/js/intro-10-ans.js ; maquette de Claude Design).
   Une scène de 1920 × 1080 mise à l'échelle de l'écran ; ce qui bouge est réglé par le script. Polices du mot
   « Hearfit » (style du logo) : Didact Gothic et EB Garamond italique 500, licence SIL OFL, sous-ensemble latin. */
@font-face {
  font-family: "Didact Gothic";
  src: url("../fonts/didact-gothic-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-italic-500-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
html.intro-10ans-active { overflow: hidden; }
.intro-10ans { position: fixed; inset: 0; z-index: 1000; background: #003561; overflow: hidden; cursor: pointer; transition: opacity .5s ease; }
.intro-10ans[hidden] { display: none; }
.intro-10ans.intro-fin { opacity: 0; pointer-events: none; }
.intro-scene { position: absolute; inset: 0; }
.intro-stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden; transform-origin: 50% 50%;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; line-height: normal; color: #fff; }
.intro-calque, .intro-camera, .intro-annee-bloc, .intro-signature, .intro-signature-phon, .intro-svg { position: absolute; inset: 0; }
.intro-onde { background: radial-gradient(ellipse at 50% 55%, #0b4a7d 0%, #003561 62%); }
.intro-phonemes { background: #f4f8f5; }
.intro-ligne { position: absolute; left: 0; width: 1920px; text-align: center; }
.intro-mot { position: absolute; font-size: 44px; font-weight: 500; color: #fff; white-space: nowrap; opacity: 0; }
.intro-phrase { top: 820px; font-size: 64px; letter-spacing: -0.02em; opacity: 0; }
.intro-phrase-1 { font-weight: 600; color: #fff; }
.intro-phrase-2 { font-weight: 700; color: #7fc59a; }
.intro-accent-onde { color: #7fc59a; }
.intro-annee-bloc { opacity: 0; }
.intro-annee { top: 300px; font-size: 300px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.intro-annee-sous { top: 680px; font-size: 48px; font-weight: 500; }
/* « Hearfit » sur la ligne de « se réinvente. » : son « fit » plus grand le faisait descendre (la maquette aussi) ;
   alignés sur leur ligne de base, la ligne remonte d'autant pour que « se réinvente. » ne bouge pas (10/11, demandé). */
.intro-reinvente { top: 368px; display: flex; justify-content: center; align-items: baseline; gap: 34px; font-size: 150px; font-weight: 800; letter-spacing: -0.035em; }
.intro-masque { display: inline-block; overflow: hidden; padding-bottom: 18px; }
.intro-mot-r { display: inline-block; opacity: 0; }
.intro-hear { font-family: "Didact Gothic", sans-serif; font-weight: 400; letter-spacing: -0.02em; }
.intro-fit { font-family: "EB Garamond", serif; font-style: italic; font-weight: 500; color: #7fc59a; font-size: 1.18em; letter-spacing: 0; }
.intro-reinvente-sous { top: 630px; font-size: 44px; font-weight: 500; opacity: 0; }
.intro-signature { background: #f4f8f5; opacity: 0; }
.intro-signature-phon { opacity: 0; }
.intro-logo { position: absolute; left: 570px; top: 230px; width: 780px; max-width: none; height: auto; }
.intro-meta { top: 730px; display: flex; justify-content: center; gap: 48px; font-size: 40px; font-weight: 600; color: #003561; }
.intro-lien-onde { color: #3f9e6c; }
.intro-lien-phon { color: #5fb98a; }
.intro-tuile { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 53, 97, .08); opacity: 0; }
.intro-tuile-eteinte { background: #fff; border: 3px solid #d5e2da; color: #003561; font-size: 46px; font-weight: 600; }
.intro-tuile-allumee { background: #5fb98a; color: #fff; font-size: 46px; font-weight: 600; }
.intro-tuile-lettre, .intro-tuile-lettre-verte { color: #fff; font-size: 84px; font-weight: 800; }
.intro-tuile-lettre { background: #003561; }
.intro-tuile-lettre-verte { background: #5fb98a; }
.intro-progres { position: absolute; left: 205px; width: 1510px; top: 830px; display: flex; flex-direction: column; gap: 18px; color: #003561; opacity: 0; }
.intro-progres-tete { display: flex; justify-content: space-between; font-size: 32px; font-weight: 600; }
.intro-rail { height: 10px; border-radius: 5px; background: #dde8e1; }
.intro-rempli { height: 10px; border-radius: 5px; width: 0; background: #5fb98a; }
.intro-dix { top: 300px; font-size: 220px; font-weight: 800; letter-spacing: -0.04em; color: #003561; opacity: 0; }
.intro-dix span { color: #5fb98a; }
.intro-pastilles { top: 640px; display: flex; justify-content: center; gap: 24px; }
.intro-pastille { font-size: 40px; font-weight: 600; color: #003561; padding: 20px 36px; border-radius: 999px; background: #fff;
  border: 3px solid #5fb98a; opacity: 0; }
.intro-passer { position: absolute; right: 20px; bottom: 20px; z-index: 1; font: 600 15px/1 var(--police-texte); color: #003561;
  background: rgba(255, 255, 255, .85); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.intro-passer:hover, .intro-passer:focus-visible { background: #fff; outline: 2px solid #7fc59a; outline-offset: 2px; }
.intro-passer kbd { font: inherit; font-weight: 500; color: #6d7285; margin-left: 6px; }

/* l'écran Stats de LDRD (12/11, src/vues/stats.js) */
.stats-calcul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: -20px 0 14px; }
.stats-calcul form { margin: 0; }
.stats-filtres .stats-export { margin-left: auto; font-weight: 600; }
.stats-modes { margin-bottom: 14px; }
.stats-tableau td { vertical-align: top; }
.stats-tableau th a { color: inherit; text-decoration: none; }
.stats-tableau th a:hover { text-decoration: underline; }
.stats-hausse { color: #2f7d1d; font-weight: 600; white-space: nowrap; }
.stats-baisse { color: var(--rouge-texte); font-weight: 600; white-space: nowrap; }
.bloc-admin.stats-appeler { max-width: none; border-left: 4px solid #e0a12b; }
.stats-appeler ul { margin: 8px 0 0; padding-left: 18px; }
.stats-appeler li { margin: 0 0 8px; font-size: 14px; }
.stats-appeler summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.stats-definitions { margin-top: 12px; max-width: 980px; }
.stats-liens { margin: 8px 0 0; font-size: 14px; }
.stats-reglages { display: flex; flex-wrap: wrap; gap: 0 18px; }
.bloc-admin.stats-bloc-courbe, .bloc-admin.stats-bloc-mois { max-width: none; }
.stats-courbe-svg { display: block; width: 100%; height: auto; }
.st-vac { fill: #eceef3; }
.st-fond { fill: transparent; }
.st-fond:hover { fill: rgba(29, 39, 70, .05); }
.st-v2 { fill: #8a93ad; }
.st-v3 { fill: var(--vert-soutenu); }
.st-encours .st-v2, .st-encours .st-v3 { opacity: .45; }
.st-grille { stroke: var(--bordure); stroke-width: 1; }
.st-txt { fill: var(--gris-texte); font-size: 11px; font-family: var(--police-texte); }
.st-evt { stroke: #e0a12b; stroke-width: 2; stroke-dasharray: 4 3; }
.st-evt-txt { fill: #7a4a06; font-weight: 600; }
.st-fond-barre { fill: var(--gris-pastille); }
.stats-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 6px; }
.st-cle { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.st-cle-v2 { background: #8a93ad; }
.st-cle-v3 { background: var(--vert-soutenu); }
.st-cle-vac { background: #dfe2ea; }
.st-cle-evt { width: 2px; height: 12px; border-radius: 0; background: #e0a12b; }
.stats-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 24px; }
.stats-deux .bloc-admin { max-width: none; }
.stats-sous-titre { margin-top: 18px; }
.stats-reprises { list-style: none; margin: 8px 0; padding: 0; }
.stats-reprises li { margin: 0 0 10px; font-size: 14px; }
.stats-entonnoir { display: grid; gap: 6px; margin-top: 8px; }
.stats-etape { display: grid; grid-template-columns: 170px minmax(0, 1fr) 48px; align-items: center; gap: 8px; }
.stats-etape svg { width: 100%; height: 10px; }
.stats-etape strong { text-align: right; }
.stats-journal-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.stats-journal { list-style: none; margin: 16px 0 0; padding: 0; }
.stats-journal li { padding: 8px 0; border-top: 1px solid var(--bordure); font-size: 14px; }
.stats-retirer { display: inline-block; margin-left: 6px; }
.stats-retirer summary { cursor: pointer; font-size: 13px; color: var(--gris-texte); }
.stats-retirer form { display: inline-flex; gap: 8px; align-items: center; margin: 4px 0 0; }
.stats-type-formation { background: #fdf1dc; color: #7a4a06; }
.stats-type-appel, .stats-type-visite { background: #e3ecfb; }
.stats-type-installation, .stats-type-passage-v3 { background: var(--vert-badge); }
.stats-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; font-size: 14px; }
.stats-zone select { font: inherit; padding: 4px 8px; border: 1px solid #cfd4de; border-radius: 8px; }
@media (max-width: 640px) { .stats-etape { grid-template-columns: 120px minmax(0, 1fr) 40px; } .stats-calcul { margin-top: 0; } }
.stats-journal-champs label { display: block; }
.stats-journal-champs input, .stats-journal-champs select { width: 100%; box-sizing: border-box; }

/* l'écran Stats sur une période libre, et la comparaison de centres (12/11) */
.stats-periode { align-items: center; }
.stats-periode label { font-size: 14px; color: var(--gris-texte); }
.stats-periode input[type="date"] { font: inherit; font-size: 15px; padding: 5px 8px; border: 1px solid #cfd4de; border-radius: 8px; }
.stats-raccourcis { margin-bottom: 10px; }
.stats-ligne-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.stats-ligne-modes .stats-export { margin-left: auto; font-weight: 600; margin-bottom: 18px; }
.stats-comparer-form { margin-top: 24px; }
.stats-comparer-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.stats-case { width: 32px; text-align: center; }
.stats-cote th[scope="row"] { font-weight: 600; font-size: 13px; color: var(--nuit); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.stats-cote thead th { white-space: nowrap; }
.stats-cote thead .st-cle { margin: 0 6px 0 0; }
.stats-cree { margin-top: 12px; }
path.sl { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.sl-point { stroke: none; }
.sl-actuel { stroke: var(--vert-soutenu); fill: var(--vert-soutenu); }
.sl-avant { stroke: #8a93ad; fill: #8a93ad; stroke-dasharray: 6 4; }
.sl-0 { stroke: #2a78d6; fill: #2a78d6; }
.sl-1 { stroke: #eb6834; fill: #eb6834; stroke-dasharray: 7 4; }
.sl-2 { stroke: #1baf7a; fill: #1baf7a; stroke-dasharray: 2 4; }
.sl-3 { stroke: #b07800; fill: #b07800; stroke-dasharray: 10 3 2 3; }
.sl-4 { stroke: #d55181; fill: #d55181; stroke-dasharray: 4 2; }
.sl-5 { stroke: #6250d6; fill: #6250d6; stroke-dasharray: 12 4; }
.sl-moy { stroke: #6d7285; fill: #6d7285; stroke-width: 1.2; }
circle.sl-point { stroke: none; }
.st-evt-creation { stroke: var(--nuit); }
.st-evt-0 { stroke: #2a78d6; } .st-evt-1 { stroke: #eb6834; } .st-evt-2 { stroke: #1baf7a; }
.st-evt-3 { stroke: #b07800; } .st-evt-4 { stroke: #d55181; } .st-evt-5 { stroke: #6250d6; }
.st-cle-creation { width: 2px; height: 12px; border-radius: 0; background: var(--nuit); }
.st-cle-sl-actuel, .st-cle-sl-avant, .st-cle-sl-0, .st-cle-sl-1, .st-cle-sl-2, .st-cle-sl-3, .st-cle-sl-4, .st-cle-sl-5, .st-cle-sl-moy { width: 16px; height: 0; border-radius: 0; border-top: 3px solid; background: none; vertical-align: middle; }
.st-cle-sl-actuel { border-top-color: var(--vert-soutenu); }
.st-cle-sl-avant { border-top: 3px dashed #8a93ad; }
.st-cle-sl-0 { border-top-color: #2a78d6; }
.st-cle-sl-1 { border-top: 3px dashed #eb6834; }
.st-cle-sl-2 { border-top: 3px dotted #1baf7a; }
.st-cle-sl-3 { border-top: 3px dashed #b07800; }
.st-cle-sl-4 { border-top: 3px dotted #d55181; }
.st-cle-sl-5 { border-top: 3px dashed #6250d6; }
.st-cle-sl-moy { border-top: 2px solid #6d7285; }

/* ---------- Wifi des tablettes (13/11, src/vues/wifi.js) : une case par jour, la couleur de son état ---------- */
.wifi-jours { display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 420px; vertical-align: middle; }
.wifi-une-ligne { flex-wrap: nowrap; }
.wifi-plusieurs { min-width: 330px; }
.wifi-j { display: inline-block; width: 9px; height: 18px; border-radius: 2px; background: var(--gris-pastille); }
.wifi-stable { background: var(--vert-soutenu); }
.wifi-fragile { background: #e8a33d; }
.wifi-instable { background: var(--rouge); }
.wifi-vide { background: var(--gris-pastille); box-shadow: inset 0 0 0 1px var(--bordure); }
.wifi-mot-stable { color: #2f6b1c; }
.wifi-mot-fragile { color: #7a4a06; font-weight: 600; }
.wifi-mot-instable { color: var(--rouge-texte); font-weight: 700; }
.wifi-tableau td { vertical-align: middle; }
.wifi-legende summary { cursor: pointer; font-weight: 600; }
.wifi-legende ul { margin: 10px 0 0; padding-left: 20px; }
.wifi-legende li { margin: 4px 0; }

/* ---------------------------------------------------------------- la fiche de résultats à imprimer (17/11) */
.barre-impression { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.feuille-resultats { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 6px; padding: 28px 32px; max-width: 820px; margin: 0 auto; color: var(--nuit); font-size: 14px; line-height: 1.5; }
.feuille-tete { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--bordure); padding-bottom: 12px; margin-bottom: 16px; }
.feuille-tete p { margin: 0; text-align: right; }
.feuille-tete strong { display: block; font-size: 17px; }
.feuille-tete span { font-size: 12px; color: var(--gris-texte); }
.feuille-patient { font-size: 24px; margin: 0; }
.feuille-qui { color: var(--gris-texte); margin: 2px 0 8px; }
.feuille-partie { margin-top: 18px; break-inside: avoid; }
.feuille-partie h2 { font-size: 16px; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--bordure); }
.feuille-aide { font-size: 12px; color: var(--gris-texte); font-weight: 400; }
.feuille-tuiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.feuille-tuiles li { background: var(--gris-fond); border: 1px solid var(--bordure); border-radius: 6px; padding: 8px 10px; }
.feuille-tuiles span, .feuille-tuiles em { display: block; font-size: 12px; color: var(--gris-texte); font-style: normal; }
.feuille-tuiles strong { display: block; font-size: 20px; }
.courbe-fiche { width: 100%; height: auto; display: block; }
.courbe-grille { stroke: var(--bordure); stroke-width: 1; }
.courbe-etiquette { font-size: 11px; fill: var(--gris-texte); }
.courbe-ligne { fill: none; stroke: var(--vert-soutenu); stroke-width: 2; }
.courbe-bilan { fill: var(--blanc); stroke: var(--nuit); stroke-width: 2; }
.courbe-seance { fill: var(--vert-soutenu); }
.feuille-questions { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.feuille-questions th, .feuille-questions td { padding: 4px 6px; border-bottom: 1px solid var(--bordure); text-align: left; vertical-align: top; }
.feuille-questions th { font-weight: 600; color: var(--gris-texte); }
.feuille-questions .reponse, .feuille-questions th:not(:first-child) { text-align: center; width: 56px; }
.feuille-score { text-align: right; margin: 8px 0 0; }
.feuille-rien { margin-top: 18px; color: var(--gris-texte); }
.feuille-pied { margin-top: 22px; padding-top: 8px; border-top: 1px solid var(--bordure); font-size: 11px; color: var(--gris-texte); }
@media (max-width: 640px) {
  .feuille-resultats { padding: 18px 16px; }
  .feuille-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* à l'impression : la feuille seule, sur la page */
@page { margin: 14mm; }
@media print {
  body.page-fiche-resultats { background: #fff; }
  body.page-fiche-resultats > :not(main) { display: none !important; }
  body.page-fiche-resultats main > :not(.feuille-resultats) { display: none !important; }
  body.page-fiche-resultats main { padding: 0; margin: 0; }
  .feuille-resultats { border: 0; padding: 0; max-width: none; }
  .feuille-tuiles li { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Le journal du serveur de Hearfit.audio (18/11, /admin/journal-hearfit) : du texte brut, à copier ; les erreurs en
   rouge, les avertissements en ocre ; les longues lignes vont à la ligne (pas de défilement de côté sur un téléphone). */
.journal-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 10px; }
.journal-hearfit { margin: 0 0 24px; padding: 14px 16px; max-height: 70vh; overflow: auto; background: var(--blanc); border: 1px solid #cfd4de; border-radius: 10px;
  font: 13px/1.5 Consolas, "Cascadia Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.journal-hearfit .journal-erreur { color: var(--rouge-texte); background: var(--rouge-fond); }
.journal-hearfit .journal-avert { color: #6b4307; background: #fdf6e8; }

/* Wifi des tablettes regroupé par client puis par centre (18/11) : une ligne par client, une par centre, couvrant le
   tableau ; la colonne Centre a disparu (le centre est dans sa ligne). */
.wifi-tableau .wifi-groupe-client th { padding-top: 22px; font-size: 15px; font-weight: 700; color: var(--nuit); background: transparent; border-bottom: 2px solid var(--bordure); }
.wifi-tableau .wifi-client:first-of-type .wifi-groupe-client th { padding-top: 10px; }
.wifi-tableau .wifi-groupe-centre th { font-size: 14px; font-weight: 600; color: var(--nuit); background: var(--gris-fond); }
.wifi-tableau .wifi-groupe-centre .code-centre { margin-right: 6px; }

/* La banane de la parole (18/11, src/vues/bananes.js) : les sons d'un point V2, une banane par condition d'écoute,
   une patate par groupe confusant (les teintes de WebDev, celles de la grille qu'elle remplace). Le SVG garde ses
   proportions : en « une seule banane », il est deux fois plus grand, donc les textes deux fois plus petits en unités
   du dessin, et les traits ne grossissent pas (vector-effect). */
.bananes-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 12px; }
.bananes-choix { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.bananes-barre button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.bananes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.banane-cadre { margin: 0; min-width: 0; }
.banane-cadre figcaption { font-size: 13px; margin: 0 0 2px; color: var(--nuit); }
.banane-acquis { font-size: 12px; color: var(--gris-texte); }
.banane { display: block; width: 100%; height: auto; overflow: visible; }
.banane-grille { stroke: #e9ecf2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.banane-axe { font-size: 10px; fill: var(--gris-texte); }
.bananes:not(.grand) .plus { display: none; }
.banane-contour { fill: #fdf5e8; stroke: #c98a2a; stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.patate { fill-opacity: .62; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; transition: opacity .15s; outline: none; }
.patate.m-a, .patate-pied.m-a { fill: #038141; stroke: #02612f; }
.patate.m-a.reecoute, .patate-pied.m-a.reecoute { fill: #b9f6ca; stroke: #038141; }
.patate.m-d, .patate-pied.m-d { fill: #ee8100; stroke: #a85b00; }
.patate.m-d.reecoute, .patate-pied.m-d.reecoute { fill: #ffd180; stroke: #c76c00; }
.patate.m-e, .patate-pied.m-e { fill: #e63e11; stroke: #a32c0c; }
.patate.m-e.reecoute, .patate-pied.m-e.reecoute { fill: #ff9e80; stroke: #c4350e; }
.patate.m-vide { fill: none; stroke: #9aa3b5; stroke-dasharray: 3 3; }
.patate-pied.m-vide { fill: none; stroke: #9aa3b5; }
.patate.travaille, .patate.valide { stroke: var(--nuit); stroke-width: 2.6; }
.patate.deja { stroke: var(--nuit); stroke-width: 1.6; stroke-dasharray: 2 3; }
.patate:focus-visible { stroke: #2f5fd0; stroke-width: 3; }
.patate-ok { font-size: 13px; font-weight: 700; fill: var(--nuit); pointer-events: none; }
.banane-ph { font-size: 11px; font-weight: 700; fill: var(--nuit); paint-order: stroke; stroke: var(--blanc); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.sons-c .patate.voyelle, .sons-c .patate-ok.voyelle, .sons-v .patate.consonne, .sons-v .patate-ok.consonne { display: none; }
.sons-c .banane-ph.voyelle, .sons-v .banane-ph.consonne { opacity: .28; }
.bananes.survol .patate:not(.allume), .bananes.survol .patate-ok:not(.allume), .bananes.survol .patate-pied:not(.allume) { opacity: .12; }
.bananes-info { min-height: 42px; margin: 10px 0 4px; font-size: 13px; color: var(--gris-texte); }
.bananes-info strong { color: var(--nuit); }
.bananes-legende { line-height: 1.9; }
.cle-banane { display: inline-flex; align-items: center; margin-right: 10px; white-space: nowrap; }
.cle-banane i { display: inline-block; width: 14px; height: 11px; margin-right: 5px; border-radius: 6px; border: 1px solid transparent; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cle-banane .m-a { background: #038141; } .cle-banane .m-a.reecoute { background: #b9f6ca; }
.cle-banane .m-d { background: #ee8100; } .cle-banane .m-d.reecoute { background: #ffd180; }
.cle-banane .m-e { background: #e63e11; } .cle-banane .m-e.reecoute { background: #ff9e80; }
.cle-banane .m-vide { border: 1px dashed #9aa3b5; }
.feuille-bananes h3 { font-size: 14px; margin: 12px 0 6px; }
.bananes-feuille .patate, .bananes-feuille .banane-contour { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media (max-width: 640px) {
  .bananes { grid-template-columns: minmax(0, 1fr); }
}
@media print { .feuille-bananes { break-inside: avoid; } }
/* La rangée « Point » de la fenêtre V2 (18/11) : les bilans et le point ouvert, le point ouvert en foncé. */
.points-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.points-choix .aide { margin: 0 6px 0 0; }
.points-choix button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
/* La banane, suite : « hidden » l'emporte sur le display des groupes de boutons ; les patates sont tracées en segments. */
.bananes-choix[hidden] { display: none; }
.patate { stroke-linejoin: round; }

/* La banane sans ascenseur (18/11, « optimise pour pas d'ascenseur, mets la légende à droite ») : les bananes à gauche,
   une colonne à droite (boutons, ligne du survol, légende) ; dans la fenêtre, leur hauteur suit celle de l'écran.
   Le bouton « Fermer » flotte à droite de la première ligne. Sur un écran étroit, la colonne passe dessous. */
.bananes-bloc { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 0 22px; align-items: start; clear: both; }
.bananes-bloc[hidden] { display: none; }
.bananes-cote .bananes-barre { flex-direction: column; align-items: stretch; gap: 8px; margin: 0 0 10px; }
.bananes-cote .bananes-choix { display: flex; flex-wrap: wrap; gap: 4px; }
.bananes-cote .bananes-choix > * { flex: 1 1 auto; }
.bananes-cote .bananes-choix[hidden] { display: none; }
.bananes-cote .bouton-petit { padding-left: 6px; padding-right: 6px; text-align: center; justify-content: center; }
.bananes-cote .bananes-info { margin-top: 0; min-height: 4.5em; }
.bananes-legende p { margin: 0 0 8px; }
.bananes-cote .cle-banane { display: flex; margin: 0 0 3px; white-space: normal; }
.fenetre-point .fenetre-tete { float: right; margin: 0 0 6px 12px; }
.fenetre-point .bananes-bloc:not(.pleine) .banane { max-height: calc((100vh - 300px) / 2); }
.fenetre-point .point-v3 h2, .fenetre-point .point-v2 h2 { margin-top: 0; }
@media (max-width: 980px) {
  .bananes-bloc { grid-template-columns: minmax(0, 1fr); }
  .bananes-cote { order: -1; }
  .bananes-cote .bananes-barre { flex-direction: row; flex-wrap: wrap; }
  .fenetre-point .bananes-bloc:not(.pleine) .banane { max-height: none; }
}
/* Le Suivi V3 sur la banane : l'échelle de Hearfit (5 notes, celle de sa grille), ✓ = acquis, son en cours en bleu, un
   clic sur une patate ouvre ses exercices. « Voir la grille » montre la grille d'avant (et sa bascule Pourcentages). */
.patate.m-b, .patate-pied.m-b { fill: #85bb2f; stroke: #5e8a1d; }
.patate.m-c, .patate-pied.m-c { fill: #fecb02; stroke: #b89300; }
.patate.encours { stroke: #2f5fd0; stroke-width: 2.6; }
.patate.choisi { stroke: #2f5fd0; stroke-width: 3; }
.patate-ok.cache { display: none; }
.cle-banane .m-b { background: #85bb2f; } .cle-banane .m-c { background: #fecb02; }
.fenetre-point:not(.voir-grille) .point-v3 .mat-blocs, .fenetre-point:not(.voir-grille) .point-v3 .aide-grille,
.fenetre-point:not(.voir-grille) #bascule-pct { display: none; }
.fenetre-point.voir-grille .bananes-bloc { display: none; }
/* « Ça vibre » (18/11, vidéo d'Arnaud) : au survol, le texte de droite grandissait, la fenêtre (centrée) grandissait et
   remontait, les bananes bougeaient sous la souris, qui sortait de la patate, et ainsi de suite. La fenêtre est
   maintenant accrochée en haut, sa barre de défilement a toujours sa place, et le texte du survol a sa hauteur. */
.fenetre-point { margin-top: 24px; scrollbar-gutter: stable; }
.bananes-cote .bananes-info { min-height: 9.5em; font-size: 12.5px; line-height: 1.45; }
.bananes-info .bananes-ligne { display: block; }
/* La colonne de droite tient dans la hauteur des bananes : boutons plus petits, légende des teintes sur deux colonnes,
   textes du survol courts (le détail reste dans l'infobulle de chaque patate). */
.bananes-cote .bouton-petit { font-size: 12px; padding: 4px 6px; }
.bananes-cote .bananes-info { min-height: 13.1em; }   /* 22/11 : le nom et 4 lignes, chacune sur deux lignes au pire : la légende ne descend plus au survol */
@media (max-width: 980px) { .bananes-cote .bananes-info { min-height: 4.5em; } }
.bananes-legende p { font-size: 12px; line-height: 1.4; }
.bananes-cote .bananes-legende > p:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }

/* Les sons en zones et la pleine page (18/11 au soir, Arnaud : « c'est l'intérêt de la pleine page, être plus précis » ;
   maquette validée). Le pied de voisement (b, d, g, v, z, j face à leur sourde) : pâle, en pointillés, dans les graves,
   montré au survol de son groupe (au choix : toujours, jamais ; toujours sur la feuille). Les lettres et les ✓ existent
   en zones (en-z) et en points (en-p) : la classe dessin-p choisit. Le contour de chaque son : en pleine page seulement. */
.patate-pied { display: none; fill-opacity: .25; stroke-width: 1; stroke-dasharray: 3 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; transition: opacity .15s; }
.vois-toujours .patate-pied, .vois-survol.survol .patate-pied.allume { display: inline; }
.vois-jamais .patate-pied, .dessin-p .patate-pied, .sons-v .patate-pied { display: none !important; }
.dessin-p .en-z, .bananes:not(.dessin-p) .en-p { display: none; }
.banane-ph.f2 { font-size: 9px; font-style: italic; font-weight: 600; }
.sons-c .banane-ph.f2 { display: none; }
.banane-zone { display: none; fill: none; stroke: var(--nuit); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.pleine .bananes.zl:not(.dessin-p) .banane-zone { display: inline; }
.pleine .bananes.sons-c .banane-zone.voyelle, .pleine .bananes.sons-v .banane-zone.consonne { display: none; }
.dessin-p .legende-zones { display: none; }
.banane-cadre figcaption { display: flex; align-items: flex-start; gap: 6px; }
.banane-titre { flex: 1 1 auto; min-width: 0; }
.banane-agrandir { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--bordure); border-radius: 6px; background: var(--blanc); color: var(--nuit); cursor: pointer; }
.banane-agrandir:hover, .banane-agrandir:focus-visible { border-color: #2f5fd0; color: #2f5fd0; background: #eef3ff; }
.banane-agrandir svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bananes-pleine-tete, .bananes-etiquette { display: none; }
.bananes-bloc:not(.pleine) [data-pleine-seul] { display: none; }
.bananes-case { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--nuit); cursor: pointer; }
/* En pleine page : le bloc par-dessus toute la fenêtre du navigateur ; le titre, les choix, LA banane, le survol, la
   légende. Les lettres et les chiffres gardent leur taille d'écran (--ech, posé par le script). */
.bananes-bloc.pleine { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 14px 24px 12px; background: var(--blanc); color: var(--nuit); overflow: auto; }
.bananes-bloc.pleine .bananes-cote { display: contents; }
.bananes-bloc.pleine .bananes-pleine-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; order: 0; }
.bananes-pleine-titre { display: block; font-size: 20px; }
.bananes-pleine-sous { display: block; font-size: 13px; color: var(--gris-texte); }
.bananes-bloc.pleine .bananes-cote .bananes-barre { order: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; }
.bananes-bloc.pleine .bananes-cote .bananes-choix > * { flex: 0 0 auto; }
.bananes-bloc.pleine .bananes-etiquette { display: inline; align-self: center; margin-right: 4px; font-size: 12px; color: var(--gris-texte); }
.bananes-bloc.pleine .bananes-dessins { order: 2; flex: 1 1 0; min-height: 220px; }
.bananes-bloc.pleine .bananes { display: block; height: 100%; }
.bananes-bloc.pleine .banane-cadre:not(.choisie), .bananes-bloc.pleine .banane-cadre figcaption { display: none; }
.bananes-bloc.pleine .banane-cadre.choisie { height: 100%; }
.bananes-bloc.pleine .banane { height: 100%; max-height: none; }
.bananes-bloc.pleine .bananes-cote .bananes-info { order: 4; min-height: 3em; margin: 0; }
.bananes-bloc.pleine .bananes-info .bananes-ligne { display: inline; margin-right: 14px; }
.bananes-bloc.pleine .bananes-info strong { margin-right: 12px; }
.bananes-bloc.pleine .bananes-info .ici { font-weight: 700; color: var(--nuit); }
/* Au survol, les Hz et les dB du groupe (22/11, pour tous) : à la place des notes, qui gardent leur hauteur : rien ne bouge */
.bananes-legende { position: relative; }
.bananes-legende.a-detail > p:not(:first-child) { visibility: hidden; }
.bananes-detail { position: absolute; left: 0; right: 0; font-size: 12px; line-height: 1.3; color: var(--nuit); }
.bananes-detail[hidden] { display: none; }
.bananes-zone { display: block; margin-bottom: 2px; }
.bananes-bloc.pleine .bananes-zone { display: inline-block; margin-right: 16px; }
.bananes-bloc.audio-allume .bananes-detail .bananes-zones-ligne { display: none; }
.bananes-bloc.pleine .bananes-legende { order: 5; }
.bananes-bloc.pleine .bananes-cote .bananes-legende > p:first-child { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.bananes-bloc.pleine .bananes-cote .cle-banane { display: inline-flex; margin: 0; }
.bananes-bloc.pleine .banane-ph { font-size: calc(15px / var(--ech, 3)); stroke-width: calc(3px / var(--ech, 3)); }
.bananes-bloc.pleine .banane-ph.f2 { font-size: calc(13px / var(--ech, 3)); }
.bananes-bloc.pleine .banane-axe { font-size: calc(12px / var(--ech, 3)); }
.bananes-bloc.pleine .patate-ok { font-size: calc(18px / var(--ech, 3)); }
@media (max-width: 640px) {
  .bananes-bloc.pleine { padding: 10px 12px; }
}

/* La banane en 3D (22/11, la vue par défaut ; public/js/bananes-3d.js) : à la place des 4 bananes, dans la fenêtre d'un
   point comme en pleine page. Sans script, elle reste cachée et les 4 bananes s'affichent. */
.b3d { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.b3d[hidden], .b3d [hidden] { display: none; }
.bananes-bloc.vue-3d .bananes { display: none; }
.vue-3d [data-2d-seul], .bananes-bloc.pleine.vue-3d [data-pleine-seul] { display: none !important; }
.b3d-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.b3d-outils .bananes-choix { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.b3d-outils .bananes-choix[hidden] { display: none; }
.b3d-outils .bouton-petit { font-size: 12px; padding: 4px 8px; }
.b3d-outils button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.b3d-outils .banane-agrandir { margin-left: auto; }
.b3d-toile { position: relative; height: calc(100vh - 370px); min-height: 300px; border: 1px solid var(--bordure); border-radius: 10px; background: var(--blanc); overflow: hidden; }
.b3d-toile canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.b3d-toile canvas.prise { cursor: grabbing; }
.b3d-toile canvas.sur { cursor: pointer; }
.b3d-aide { position: absolute; left: 10px; top: 6px; margin: 0; font-size: 11.5px; color: var(--gris-texte); pointer-events: none; }
.b3d-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 28px; font-size: 12.5px; }
.b3d-bas strong { margin-right: 4px; color: var(--nuit); }
.b3d-puce { display: inline-flex; gap: 6px; padding: 2px 8px; border: 1px solid var(--bordure); border-radius: 99px; background: var(--blanc); color: var(--nuit); font: inherit; cursor: pointer; }
.b3d-puce b { font-variant-numeric: tabular-nums; }
.b3d-puce:hover, .b3d-puce[aria-pressed="true"] { border-color: var(--vert-soutenu); background: var(--vert-fond); }
.b3d-frise { display: flex; flex: 1 1 160px; gap: 2px; max-width: 420px; }
.b3d-frise i { flex: 1; height: 16px; border-radius: 3px; background: #eef0f4; }
.b3d-frise i.ici { outline: 2px solid var(--nuit); outline-offset: 1px; }
.b3d-plans { position: absolute; right: 8px; top: 28px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.92); }
.b3d-plans[hidden] { display: none; }
.b3d-plans button { font-size: 12px; padding: 3px 8px; }
.b3d-plans button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
/* L'audiogramme sur la banane (22/11, offre premium) : son bouton, ses réglages, ce qu'il croise, sa saisie sur la fiche */
.b3d-bouton-audio { border-color: var(--vert-soutenu); }
.b3d-outils-audio { padding: 4px 8px; border-radius: 10px; background: var(--vert-fond); }
.b3d-outils-audio[hidden] { display: none; }
.b3d-audio-date { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--gris-texte); }
.b3d-audio-date select { font: inherit; color: var(--nuit); padding: 3px 6px; border: 1px solid #cfd4de; border-radius: 6px; background: var(--blanc); }
.b3d-croise { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; margin-right: 8px; }
.b3d-croise > span { color: var(--gris-texte); font-size: 12px; }
.b3d-info-audio { display: block; }
.b3d-info-audio > b { display: inline-block; margin-bottom: 2px; padding: 0 7px; border-radius: 99px; font-size: 12px; }
.b3d-st-audible { background: var(--vert-badge); } .b3d-st-partiel { background: #fdf1dc; color: #7a4a06; } .b3d-st-sous { background: #e6e8ee; }
.b3d-info-audio span { display: block; line-height: 1.3; }
/* L'audiogramme sur les 4 bananes et en pleine page (23/11) : ses réglages au-dessus, les seuils sur chaque banane (jusqu'à 100 dB) */
.bananes-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; }
.bananes-audio[hidden], .bananes-audio [hidden], .bananes-audio-bas[hidden] { display: none; }
.bananes-audio .bouton-petit { font-size: 12px; padding: 4px 8px; }
.bananes-audio button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.bananes-audio .b3d-outils-audio { flex: 1 1 auto; }
.bananes-audio-bas { margin: 0 0 8px; font-size: 12px; }
.bananes-audio-bas .b3d-puce { padding: 1px 6px; }
.bananes-bloc.pleine .bananes-audio-bas { order: 4; margin: 0; }
.bananes-bloc.vue-3d .bananes-audio, .bananes-bloc.vue-3d .bananes-audio-bas { display: none; }
.fenetre-point:not(.fenetre-sur-page) .bananes-bloc.a-audio:not(.pleine):not(.vue-3d) .banane { max-height: calc((100vh - 345px) / 2); }
/* Le petit guide de la fenêtre des sons (23/11, public/js/guide-bananes.js) : posé dans la fenêtre, au-dessus de tout */
.gb-voile { position: fixed; inset: 0; z-index: 10010; }
.gb-voile.plein { background: rgba(29,39,70,.55); }
.gb-trou { position: fixed; z-index: 10011; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(29,39,70,.55); outline: 2px solid rgba(255,255,255,.9); pointer-events: none; }
.gb-trou[hidden] { display: none; }
.gb-bulle { position: fixed; z-index: 10012; box-sizing: border-box; width: min(370px, calc(100vw - 24px)); padding: 14px 16px; border-radius: var(--rayon); background: var(--blanc); color: var(--nuit); box-shadow: 0 12px 40px rgba(29,39,70,.35); font-size: 14px; line-height: 1.45; }
.gb-bulle h2 { margin: 4px 0 6px; font-family: var(--police-titre); font-size: 17px; line-height: 1.3; }
.gb-bulle p { margin: 0; white-space: pre-line; }
.bananes-cote .bananes-choix > .bananes-guide { flex: 0 0 28px; padding-left: 0; padding-right: 0; font-weight: 700; }
@media (min-width: 981px) { .fenetre-point:not(.fenetre-sur-page) .bananes-bloc.audio-allume:not(.pleine):not(.vue-3d) .bananes-cote { max-height: calc(100vh - 215px); overflow-y: auto; scrollbar-width: thin; } }
.audio2d, .audio2d * { pointer-events: none; }
.audio2d-voile { fill: rgba(29,39,70,.08); }
.audio2d-ecart { fill: rgba(31,111,214,.10); }
.audio2d-zone { stroke: var(--nuit); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: opacity .15s; }
.audio2d-zone.partiel { stroke-dasharray: 4 3; }
.sons-c .audio2d-zone.voyelle, .sons-v .audio2d-zone.consonne { display: none; }
.bananes.survol .audio2d-zone:not(.allume) { opacity: .12; }
.audio2d-od, .audio2d-og { fill: none; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.audio2d-od { stroke: #d62839; } .audio2d-og { stroke: #1f6fd6; }
.audio2d-od.autre, .audio2d-og.autre { stroke-width: 1.2; stroke-dasharray: 4 3; opacity: .6; }
.audio2d-od.faible, .audio2d-og.faible { stroke-width: 1.2; opacity: .28; }
.audio2d-od.autre.faible, .audio2d-og.autre.faible { opacity: .2; }
circle.audio2d-od.marque { fill: var(--blanc); stroke-width: 1.8; }
path.audio2d-og.marque { stroke-width: 1.8; }
/* L'avant / après d'un réglage (22/11, offre premium) : en bleu ce qui a gagné, en orange pointillé ce qui a perdu (couleurs
   vérifiées pour le daltonisme) ; pâle : même score, réécoute en plus ou en moins. */
.carte-avant-apres { --g2: #0878b8; --g1: #7fbde3; --g0: #d6eaf6; --s: #e9ebf0; --p0: #fbe3d2; --p1: #f0a76d; --p2: #c8510a; }
.carte-avant-apres h3 { margin: 0 0 4px; font-size: 14px; }
.aa-choisi { background: var(--vert-fond); border-radius: 6px; padding-left: 4px; padding-right: 4px; }
.aa-choisi > a[aria-current] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.aa-noter { margin: 6px 0 10px; }
.aa-noter summary { display: inline-block; cursor: pointer; }
.aa-formulaire { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--vert-fond); }
.aa-champ { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 13px; font-weight: 600; }
.aa-champ .aide { font-weight: 400; }
.aa-champ input { height: 36px; margin: 0; padding: 0 10px; font: 500 14px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--nuit); background: var(--blanc); border: 1px solid #cfd4de; border-radius: 8px; }
.aa-champ input:focus { outline: none; border-color: var(--vert-soutenu); box-shadow: 0 0 0 3px var(--vert-badge); }
.aa-formulaire .aa-note { flex: 1 1 260px; max-width: 560px; }
.aa-formulaire .bouton { height: 36px; margin: 0; }
.aa-formulaire .bouton-lien { align-self: center; }
.aa-compare { margin: 4px 0; font-size: 13.5px; }
.aa-courbe { display: block; width: 100%; max-height: 170px; }
.aa-apres-fond { fill: var(--vert-fond); }
.aa-grille { stroke: rgba(29,39,70,.08); stroke-width: .7; }
.aa-ax { fill: var(--gris-texte); font-size: 9px; }
.aa-ligne { fill: none; stroke: var(--nuit); stroke-width: 2; stroke-linejoin: round; }
.aa-trait { stroke: var(--g2); stroke-width: 1.6; stroke-dasharray: 4 3; }
.aa-trait-mot { fill: #055a8c; font-size: 11px; font-weight: 700; }
.aa-pt { fill: var(--nuit); stroke: var(--blanc); stroke-width: 2; }
.aa-pt.compare { fill: var(--g2); }
.aa-pt-mot { fill: var(--nuit); font-size: 11px; font-weight: 700; paint-order: stroke; stroke: var(--blanc); stroke-width: 3; }
.aa-cible { fill: transparent; }
.aa-grille-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 410px); gap: 16px; margin-top: 8px; }
.aa-outils { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 4px; }
.aa-outils[hidden] { display: none; }
.carte-avant-apres button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.aa-outils .bananes-etiquette { display: inline; margin-right: 3px; font-size: 12px; color: var(--gris-texte); }
.aa-bananes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
.aa-banane { margin: 0; }
.aa-banane figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; }
.aa-banane figcaption span { color: var(--gris-texte); font-variant-numeric: tabular-nums; }
.aa-banane svg { display: block; width: 100%; height: auto; }
.aa-ban { fill: rgba(182,221,168,.28); stroke: var(--vert-soutenu); stroke-width: 1; }
.aa-pat { stroke-width: 1; stroke-linejoin: round; fill-opacity: .92; cursor: pointer; transition: opacity .12s; }
.aa-pat.k-g2 { fill: var(--g2); stroke: #055a8c; } .aa-pat.k-g1 { fill: var(--g1); stroke: var(--g2); } .aa-pat.k-g0 { fill: var(--g0); stroke: var(--g2); }
.aa-pat.k-s { fill: var(--s); stroke: #aab0bf; fill-opacity: .75; }
.aa-pat.k-p2 { fill: var(--p2); stroke: #7f3205; stroke-dasharray: 3 2; } .aa-pat.k-p1 { fill: var(--p1); stroke: #a84406; stroke-dasharray: 3 2; } .aa-pat.k-p0 { fill: var(--p0); stroke: var(--p2); stroke-dasharray: 3 2; }
.aa-pat.k-nm { fill: none; stroke: #9aa3b5; stroke-dasharray: 2 2; }
.aa-pat.m-a { fill: #038141; stroke: #02612f; } .aa-pat.m-ar { fill: #b9f6ca; stroke: #02612f; }
.aa-pat.m-b, .aa-pat.m-br { fill: #85bb2f; stroke: #5e8a1d; } .aa-pat.m-c, .aa-pat.m-cr { fill: #fecb02; stroke: #b89300; }
.aa-pat.m-d { fill: #ee8100; stroke: #a85b00; } .aa-pat.m-dr { fill: #ffd180; stroke: #a85b00; }
.aa-pat.m-e { fill: #e63e11; stroke: #a32c0c; } .aa-pat.m-er { fill: #ff9e80; stroke: #a32c0c; }
.aa-sons-c .aa-pat.voyelle, .aa-sons-v .aa-pat.consonne, .aa-sons-c .aa-lettre.voyelle, .aa-sons-v .aa-lettre.consonne { display: none; }
.aa-sons-c tbody tr.voyelle { display: none; }
.aa-lettre { fill: var(--nuit); font-size: 10.5px; font-weight: 700; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 2.4; pointer-events: none; }
.aa-lettre.f2 { font-size: 8.5px; font-style: italic; font-weight: 600; }
[data-aa].survol .aa-pat { opacity: .16; } [data-aa].survol .aa-lettre { opacity: .15; }
[data-aa].survol .aa-pat.sel { opacity: 1; stroke: var(--nuit); stroke-width: 2; stroke-dasharray: none; } [data-aa].survol .aa-lettre.sel { opacity: 1; }
.aa-legende { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 4px 0 0; font-size: 12px; color: var(--gris-texte); }
.aa-legende[hidden] { display: none; }
.aa-legende i { display: inline-block; width: 13px; height: 10px; margin-right: 4px; border: 1px solid; border-radius: 3px; vertical-align: -1px; }
.aa-legende .k-g2 { background: var(--g2); border-color: #055a8c; } .aa-legende .k-g1 { background: var(--g1); border-color: var(--g2); } .aa-legende .k-g0 { background: var(--g0); border-color: var(--g2); }
.aa-legende .k-s { background: var(--s); border-color: #aab0bf; }
.aa-legende .k-p0 { background: var(--p0); border: 1px dashed var(--p2); } .aa-legende .k-p1 { background: var(--p1); border: 1px dashed #a84406; } .aa-legende .k-p2 { background: var(--p2); border: 1px dashed #7f3205; }
.aa-legende .m-a { background: #038141; border-color: #02612f; } .aa-legende .m-c { background: #ee8100; border-color: #a85b00; } .aa-legende .m-e { background: #e63e11; border-color: #a32c0c; }
.aa-droite { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aa-chiffres { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 5px; }
.aa-heros { font: 700 24px/1.1 Montserrat, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.aa-ecart { padding: 1px 8px; border-radius: 99px; background: var(--g0); font-size: 12.5px; font-weight: 700; }
.aa-ecart.baisse { background: var(--p0); }
.aa-haltere { display: grid; grid-template-columns: 96px minmax(0, 1fr) 66px; align-items: center; gap: 7px; height: 20px; font-size: 12.5px; }
.aa-haltere svg { display: block; width: 100%; height: 14px; }
.aa-haltere b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.aa-rail { stroke: #eef0f4; stroke-width: 4; vector-effect: non-scaling-stroke; }
.aa-segment { stroke: var(--g2); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.aa-segment.baisse { stroke: var(--p2); }
.aa-compte { margin: 5px 0 0; font-size: 12.5px; color: var(--gris-texte); }
.aa-compte b { color: var(--nuit); }
.aa-prudence { padding: 7px 10px; border-radius: 9px; background: #fdf4e3; color: #5f3c07; font-size: 12.5px; line-height: 1.38; }
.aa-prudence p { margin: 0 0 3px; }
.aa-prudence p:last-child { margin: 0; }
.aa-aides { font-weight: 600; }
.aa-aides-faux { font-weight: 700; color: #a32c0c; }
.aa-table-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.aa-table-tete .bananes-choix[hidden] { display: none; }
.aa-defile { max-height: 340px; margin-top: 4px; overflow: auto; scrollbar-gutter: stable; }
.aa-table table { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
.aa-table thead th { position: sticky; top: 0; z-index: 1; padding: 1px 2px; background: var(--blanc); font-weight: 600; color: var(--gris-texte); text-align: center; }
.aa-table tbody th { padding: 1px 3px; font-weight: 700; text-align: left; white-space: nowrap; }
.aa-table tbody tr[hidden] { display: none; }
.aa-table tbody tr.sel th { border-radius: 4px; background: var(--nuit); color: var(--blanc); }
.aa-table td { padding: 2px 1px; border-radius: 4px; text-align: center; white-space: nowrap; }
.aa-table td.k-g2, .aa-table td.k-p2 { color: var(--blanc); font-weight: 700; }
.aa-table td.k-g2 { background: var(--g2); } .aa-table td.k-g1 { background: var(--g1); } .aa-table td.k-g0 { background: var(--g0); }
.aa-table td.k-s, .aa-table td.k-nm { background: #f3f4f7; color: var(--gris-texte); }
.aa-table td.k-p2 { background: var(--p2); } .aa-table td.k-p1 { background: var(--p1); } .aa-table td.k-p0 { background: var(--p0); }
.aa-rien[hidden] { display: none; }
@media (max-width: 1080px) { .aa-grille-page { grid-template-columns: minmax(0, 1fr); } }
/* L'audiogramme au casque (22/11, module premium) : un essai, marqué comme tel partout */
.pastille-casque { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #fdf1dc; color: #7a4a06; font-size: 12px; font-weight: 700; }
.casque-bandeau { margin: 0 0 10px; padding: 7px 11px; border-radius: 9px; background: #fdf4e3; color: #5f3c07; font-size: 13px; }
.casque-grille { display: grid; grid-template-columns: minmax(320px, 470px) minmax(0, 1fr); gap: 12px; align-items: start; }
.casque-grille .carte { margin: 0; }
.casque-champ { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.casque-champ select { display: block; width: 100%; margin-top: 3px; padding: 7px 8px; font: 600 14px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--nuit); border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc); }
.casque-controles { margin: 6px 0 9px; padding: 0; border: 0; }
.casque-controles label { display: flex; gap: 7px; align-items: flex-start; padding: 2px 0; font-size: 13px; font-weight: 400; }
.casque-controles input { margin-top: 3px; accent-color: var(--vert-soutenu); }
.casque-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0; }
.casque-ligne > span { color: var(--gris-texte); font-size: 12.5px; }
.audio-casque button:disabled { opacity: .45; cursor: not-allowed; }
.casque-etat { margin: 8px 0; padding: 6px 9px; border-radius: 8px; background: #f3f4f7; font-size: 13px; }
.casque-etat.ok { background: var(--vert-badge); font-weight: 600; }
.casque-explique { margin: 6px 0; padding: 7px 10px; border-radius: 8px; background: var(--vert-fond); font-size: 13px; line-height: 1.4; }
.casque-gros { display: block; width: 100%; height: 150px; margin: 10px 0; border: 1px solid var(--vert-soutenu); border-radius: 18px; background: var(--vert); color: var(--nuit); font: 600 25px Montserrat, system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.casque-gros.appui { background: var(--vert-soutenu); color: var(--blanc); }
.casque-ou { margin: 6px 0 2px; font-weight: 600; }
.casque-barre { height: 8px; border-radius: 4px; background: #eef0f4; overflow: hidden; }
.casque-barre i { display: block; width: 0; height: 100%; background: var(--vert-soutenu); transition: width .2s; }
.casque-cle { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 4px; color: var(--gris-texte); font-size: 12.5px; }
.casque-cle .d b { color: #d62839; } .casque-cle .g b { color: #1f6fd6; }
#casque-graphe svg { display: block; width: 100%; max-height: 430px; }
#casque-graphe .axe { fill: var(--gris-texte); font-size: 11px; }
#casque-graphe .grille { stroke: rgba(29,39,70,.09); stroke-width: 1; }
#casque-tableau table { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
#casque-tableau th, #casque-tableau td { padding: 3px 4px; text-align: center; border-bottom: 1px solid var(--bordure); }
#casque-tableau th { color: var(--gris-texte); font-weight: 600; }
#casque-tableau th.d { color: #d62839; text-align: left; } #casque-tableau th.g { color: #1f6fd6; text-align: left; }
.casque-garder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.casque-garder[hidden] { display: none; }
@media (max-width: 860px) { .casque-grille { grid-template-columns: minmax(0, 1fr); } }
/* LA PAGE D'UN PATIENT EN 5 ONGLETS (22/11, Arnaud : « simple, clair et accessible », sans ascenseur). Sur un écran d'ordinateur,
   la page tient dans la fenêtre : l'en-tête sur une ligne, ce qui reste à l'intérieur de sa carte ou dans une fenêtre. */
.onglets-patient { flex: none; gap: 2px; margin: 0 0 10px; border-bottom: 1px solid var(--bordure); overflow-x: auto; flex-wrap: nowrap; }
.onglets-patient a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 7px 16px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--gris-texte); font-family: var(--police-titre); font-size: 15px; }
.onglets-patient a:hover { color: var(--nuit); }
.onglets-patient a.actif { background: none; color: var(--nuit); border-bottom-color: var(--vert-soutenu); }
.pp-barre { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 36px; margin-bottom: 6px; }
.pp-barre .aide { margin: 0; font-size: 13px; }
.pp-barre h2, .bloc-courbe .pp-barre h2 { margin: 0; font-size: 17px; }
.pp-outils { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pp-outils button[aria-pressed="true"], .pp-versions a[aria-current] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.pp-versions { display: inline-flex; gap: 3px; }
.pp-legende > summary { list-style: none; cursor: pointer; }
.pp-legende > summary::-webkit-details-marker { display: none; }
.pp-legende > div { position: absolute; left: 0; top: calc(100% + 16px); z-index: 20; width: min(560px, 80vw); padding: 10px 12px; border-radius: 10px; background: var(--blanc); box-shadow: 0 6px 24px rgba(29,39,70,.2); }
.pp-legende .hf-legende { margin: 0; }
.pp-dialogue { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: var(--rayon); box-shadow: 0 12px 40px rgba(29,39,70,.3); color: var(--nuit); }
.pp-dialogue.pp-grand { width: min(1180px, calc(100vw - 32px)); }
.pp-dialogue::backdrop { background: rgba(29,39,70,.45); }
.pp-dialogue-corps { padding: 14px 20px 18px; }
.pp-dialogue-tete { position: sticky; top: -14px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -14px -20px 10px; padding: 10px 20px; background: var(--blanc); border-bottom: 1px solid var(--bordure); }
.pp-dialogue-tete h2 { margin: 0; font-size: 18px; }
.pp-dialogue .carte { box-shadow: none; border: 1px solid var(--bordure); }
.pp-dialogue .zone-danger { max-width: none; }
.pp-dialogue .bloc-analyse { margin: 0; padding: 0; border: 0; }
.pp-dialogue .analyse-tete h2 { display: none; }
.pp-reglage line { stroke: #1f6fd6; stroke-width: 1.8; stroke-dasharray: 5 3; }
.pp-reglage text { fill: #17569f; font-size: 12px; font-weight: 700; }
.pp-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pp-tuile { display: flex; flex-direction: column; padding: 10px 16px; border-radius: var(--rayon); background: var(--blanc); box-shadow: 0 1px 3px rgba(29,39,70,.08), 0 6px 18px rgba(29,39,70,.05); }
.pp-valeur { font: 700 28px/1.15 var(--police-titre); font-variant-numeric: tabular-nums; }
.pp-nom { margin-top: 2px; font-size: 14px; font-weight: 600; }
.pp-det { color: var(--gris-texte); font-size: 13px; }
.pp-ecart { margin-left: 4px; color: #2f6f1c; font-size: 15px; font-weight: 700; }
.pp-ecart.baisse { color: #a84406; }
.pp-resume { display: grid; grid-template-columns: minmax(0, 1fr) 370px; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
.pp-tuiles { grid-column: 1 / -1; }
/* les outils de la courbe, en cartes : la même rangée que les chiffres du Résumé, les deux courbes tombent au même endroit */
.pp-outil { gap: 6px; justify-content: space-between; }
.pp-outil .pp-nom { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.pp-outil .pastille-premium { padding: 1px 8px; font-size: 11px; }
.pp-outil .bouton-petit { padding: 6px 12px; white-space: nowrap; }
.pp-resume .carte, .pp-progression .carte { margin: 0; padding: 14px 16px; }
.pp-regarder h2 { margin: 0 0 8px; font-size: 17px; }
.pp-regarder ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pp-regarder a { display: block; padding: 8px 12px; border: 1px solid var(--bordure); border-radius: 10px; text-decoration: none; }
.pp-regarder a:hover, .pp-regarder a:focus-visible { border-color: var(--vert-soutenu); background: var(--vert-fond); }
.pp-regarder strong { display: block; font-size: 14.5px; }
.pp-regarder span { color: var(--gris-texte); font-size: 13px; }
.pp-vide { max-width: 720px; }
.pp-progression { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 10px; align-items: stretch; }
.pp-progression.sans-cote { grid-template-columns: minmax(0, 1fr); }
.pp-courbe { display: flex; flex-direction: column; min-width: 0; margin-bottom: 0; }
/* l'échelle A à E en dégradé (public/js/courbe.js) ; les traits de la légende à leur couleur (le raccourci de hearfit-courbe.css les remettait en gris) */
.hf-bande-limite { stroke: var(--blanc); stroke-width: 1.5; }
.hf-legende .lg-trait.lg-comprehension { border-top-color: #4b5568; }
.hf-legende .lg-trait.lg-calme { border-top-color: #4a7fbb; }
.hf-legende .lg-trait.lg-bruit { border-top-color: #d9534f; }
.fenetre-point.sans-seances [data-vers-seance] { display: none; }
.pp-courbe .pp-barre .pp-outils .aide { margin: 0 6px 0 0; }
.pp-carte-legende h2 { margin: 0 0 10px; font-size: 17px; }
.pp-carte-legende .hf-legende { margin: 0; }
.aa-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.aa-tete h2 { margin: 0; font-size: 16px; }
.aa-reglages { max-height: 96px; overflow-y: auto; }
.aa-reglages li { flex-wrap: nowrap; padding: 3px 4px; }
.aa-note-ligne { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.aa-voir { margin: 6px 0 0; }
.aa-retirer { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--bordure); }
.carte-avant-apres .aa-resume h3 { display: none; }
.carte-audiogramme { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.audio-barre { flex: none; flex-direction: row; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0; padding: 9px 16px; }
.audio-barre .audio-legende { margin: 0; }
.audio-vide { margin: 0; }
.pp-choix-point { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--gris-texte); font-size: 13px; }
.pp-choix-point select { padding: 5px 8px; border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc); color: var(--nuit); font: 600 13.5px var(--police-texte, inherit); }
.fenetre-sur-page { position: static; display: block; width: 100%; max-width: none; max-height: none; margin: 0; padding: 12px 16px; border-radius: var(--rayon); background: var(--blanc); box-shadow: 0 1px 3px rgba(29,39,70,.08), 0 6px 18px rgba(29,39,70,.05); scrollbar-gutter: auto; color: var(--nuit); }
.fenetre-sur-page .fenetre-tete { float: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 6px; }
.fenetre-sur-page [data-vers-seance] { display: none; }
.pp-fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 10px; align-items: start; }
.pp-fiche > .formulaire { max-width: none; margin: 0; }
.pp-fiche-cote { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-fiche-cote .carte { margin: 0; padding: 12px 16px; }
.pp-fiche-cote h2 { margin: 0 0 6px; font-size: 16px; }
.pp-fiche-cote h3 { margin: 8px 0 4px; font-size: 14px; }
.pp-fiche-cote .formulaire { margin-top: 0; }
.pp-fiche-cote textarea { min-height: 72px; }
.pp-fiche-cote p { margin: 4px 0; font-size: 13px; }
.pp-inactif summary { color: var(--gris-texte); font-size: 14px; cursor: pointer; }
.pp-inactif .zone-danger { margin-top: 8px; padding: 10px 12px; }
.onglets-patient { scrollbar-width: none; }
.onglets-patient::-webkit-scrollbar { display: none; }
.pp-tete .entete-patient-droite { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pp-tete .code-patient { flex-direction: row; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 9px; }
.pp-tete .code-patient span { font-size: 11px; }
.pp-tete .code-patient strong { font-size: 17px; letter-spacing: .03em; }
.pp-tete .code-unique { position: relative; flex-direction: row; align-items: center; gap: 6px; max-width: none; padding: 3px 10px; border-radius: 9px; }
.pp-tete .code-unique > span { font-size: 11px; }
.pp-tete .code-unique > strong { font-size: 15px; }
.pp-tete .code-unique-message { position: absolute; top: 100%; right: 0; z-index: 30; width: min(280px, 80vw); padding: 6px 10px; border-radius: 8px; background: var(--blanc); box-shadow: 0 6px 24px rgba(29,39,70,.2); }
.pp-tete .code-unique-actions { flex-wrap: nowrap; }
.pp-tete .code-unique-remplacer { position: relative; }
.pp-tete .code-unique-remplacer summary { white-space: nowrap; }
.pp-tete .code-unique-remplacer form { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: min(280px, 80vw); padding: 10px; border-radius: 8px; background: var(--blanc); box-shadow: 0 6px 24px rgba(29,39,70,.2); }
.pp-tete .form-depannage { margin: 0; }
@media (max-width: 1040px) {
  .pp-resume, .pp-progression, .pp-fiche { grid-template-columns: minmax(0, 1fr); }
  .pp-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-courbe .hf-courbe { height: 300px; }
  .pp-tuiles-outils { position: relative; display: flex; flex-wrap: wrap; }
  .pp-outil { flex: 1 1 auto; justify-content: flex-start; }
  .pp-outil .pp-outils { position: static; }
  .pp-legende > div { right: 0; top: 100%; width: auto; }
}
@media (min-width: 1041px) {
  .pp-tuile { box-sizing: border-box; height: 98px; }
  .pp-tuile:not(.pp-outil) .pp-nom, .pp-tuile:not(.pp-outil) .pp-det { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pp-progression { grid-template-rows: auto minmax(0, 1fr); }
  .pp-tuiles-outils { display: flex; grid-column: 1; grid-row: 1; }
  .pp-outil { flex: 1 1 0; min-width: min-content; }
  .pp-outil:only-child { flex: 0 0 25%; }
  .pp-outil .pp-outils { flex-wrap: nowrap; }
  .pp-progression > .pp-courbe { grid-column: 1; grid-row: 2; }
  .pp-progression > .carte-avant-apres { grid-column: 2; grid-row: 1 / 3; }
  /* sans l'offre réglage : le dessin exact du Résumé, les cartes sur toute la largeur, la légende sous elles à droite */
  .pp-progression.avec-legende > .pp-tuiles-outils { grid-column: 1 / -1; }
  .pp-progression > .pp-carte-legende { grid-column: 2; grid-row: 2; }
  .pp-carte-legende .hf-legende, .pp-carte-legende .hf-legende .lg-groupe { display: flex; flex-direction: column; align-items: flex-start; }
  .pp-carte-legende .hf-legende { gap: 14px; }
  .pp-carte-legende .hf-legende .lg-groupe { gap: 7px; }
}
@media (max-width: 560px) {
  .pp-tete h1 { font-size: 22px; }
  .onglets-patient a { padding: 7px 8px; font-size: 14px; }
  .onglets-patient .pastille-premium { display: none; }
}
@media (min-width: 1041px) and (min-height: 641px) {
  body.page-patient { display: flex; flex-direction: column; height: 100vh; min-height: 0; overflow: hidden; }
  body.page-patient .pied { display: none; }
  body.page-patient .entete { flex: none; display: flex; align-items: center; gap: 20px; padding: 0 20px; }
  body.page-patient .entete-int { display: contents; }
  body.page-patient .entete-logo { order: 1; padding: 5px 0; }
  body.page-patient .entete-logo img { width: 72px; height: auto; }
  body.page-patient .entete-titre, body.page-patient .sous-menu { display: none; }
  body.page-patient .menu { order: 2; flex: 1; min-width: 0; border: 0; background: none; }
  body.page-patient .menu-int { padding: 0; border: 0; }
  body.page-patient .entete-compte { order: 3; margin-left: auto; }
  body.page-patient .contenu { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 20px 12px; overflow: hidden; }
  body.page-patient .contenu > .alerte { flex: none; margin: 0 0 6px; padding: 6px 12px; }
  .pp-tete { flex: none; display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
  .pp-tete .fil { flex: none; margin: 0; max-width: 220px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .pp-tete .bienvenue { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; flex-wrap: nowrap; }
  .pp-tete .bienvenue > div:first-child { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
  .pp-tete h1 { margin: 0; font-size: 21px; white-space: nowrap; }
  .pp-tete .sous-titre { margin: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .pp-tete .entete-patient-droite { flex: none; }
  .pp-resume, .pp-progression, .pp-fiche { flex: 1; min-height: 0; }
  .pp-resume .carte, .pp-progression > .carte { min-height: 0; overflow: auto; }
  .pp-progression > .pp-courbe { overflow: hidden; }
  .pp-courbe .hf-courbe { flex: 1; min-height: 0; height: auto; }
  body.page-patient .pp-courbe > .alerte { margin: 8px 0 0; }
  .pp-fiche { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .pp-fiche > .formulaire { min-height: 0; overflow: auto; padding: 12px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-content: start; }
  .pp-fiche > .formulaire > input[type="hidden"] { display: none; }
  .pp-fiche > .formulaire .groupe-fiche { margin: 0; padding: 0; border: 0; min-width: 0; }
  .pp-fiche > .formulaire legend { padding: 0; margin-bottom: 2px; font: 700 16px var(--police-titre); }
  .pp-fiche > .formulaire .grille-champs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pp-fiche > .formulaire fieldset:nth-of-type(2) > div:nth-of-type(1) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .pp-fiche > .formulaire fieldset:nth-of-type(2) > div:nth-of-type(1) > :nth-child(3) { grid-column: 1 / -1; }
  .pp-fiche > .formulaire fieldset:nth-of-type(2) > div:nth-of-type(3) { grid-template-columns: 110px minmax(0, 1fr); gap: 0 10px; }
  .pp-fiche > .formulaire .aide { margin: 2px 0 0; font-size: 12.5px; }
  .pp-fiche > .formulaire label:not(.case) { margin: 5px 0 2px; font-size: 13px; }
  .pp-fiche > .formulaire input:not([type="radio"]):not([type="checkbox"]) { padding: 6px 10px; font-size: 14.5px; }
  .pp-fiche > .formulaire > .bouton, .pp-fiche > .formulaire > .case { grid-column: 1 / -1; justify-self: end; margin-top: 8px; }
  .pp-fiche-cote { min-height: 0; overflow: auto; }
  .carte-audiogramme { flex: 1; }
  .carte-audiogramme .grille-audiogrammes { flex: 1; min-height: 0; margin: 0; overflow: auto; align-content: start; }
  .pp-fiche-cote textarea { height: 62px; min-height: 62px; }
  /* l'onglet Sons : la banane prend toute la place qui reste */
  body.page-patient .fenetre-sur-page { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 14px; overflow: auto; }
  #fenetre-v2.fenetre-sur-page { position: relative; }
  #fenetre-v2.fenetre-sur-page > .fenetre-tete { position: absolute; top: 8px; right: 14px; z-index: 2; margin: 0; }
  .fenetre-sur-page #contenu-v2 { flex: 1; min-height: 0; display: flex; }
  .fenetre-sur-page .point-v2:not([hidden]) { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
  .fenetre-sur-page .point-v2 > .points-choix { grid-column: 1 / -1; margin: 0 0 2px; }
  .fenetre-sur-page .point-v2 > .bananes-bloc { grid-column: 1 / -1; align-self: stretch; }
  .fenetre-sur-page > .point-v3:not([hidden]) { flex: none; display: flex; align-items: baseline; gap: 10px; }
  #fenetre-point.fenetre-sur-page > .point-v3 > h2 { display: none; }
  .fenetre-sur-page .point-v3 h2 { margin: 0; font-size: 16px; white-space: nowrap; }
  .fenetre-sur-page .point-v3 > .aide { margin: 0 0 4px; font-size: 13px; }
  .fenetre-sur-page .bananes-bloc:not(.pleine) { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: minmax(0, 1fr) auto; gap: 0 16px; }
  .fenetre-sur-page .bananes-bloc:not(.pleine) .bananes-dessins { height: 100%; min-height: 0; }
  .fenetre-sur-page .bananes-bloc.vue-3d:not(.pleine) .b3d { height: 100%; }
  .fenetre-sur-page .bananes-bloc.vue-3d:not(.pleine) .b3d-toile { flex: 1 1 0; height: auto; min-height: 170px; }
  .fenetre-sur-page .bananes-bloc:not(.pleine) .bananes { height: 100%; }
  /* l'onglet Sons, les 4 bananes : elles se partagent la hauteur qui reste, sans ascenseur (23/11) */
  .fenetre-sur-page .bananes-bloc:not(.pleine):not(.vue-3d) .bananes-dessins { display: flex; flex-direction: column; }
  .fenetre-sur-page .bananes-bloc:not(.pleine):not(.vue-3d) .bananes { flex: 1 1 0; height: auto; min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .fenetre-sur-page .bananes-bloc:not(.pleine):not(.vue-3d) .banane-cadre { display: flex; flex-direction: column; min-height: 0; }
  .fenetre-sur-page .bananes-bloc:not(.pleine):not(.vue-3d) .banane { flex: 1 1 0; height: 0; min-height: 0; max-height: none; }
  .fenetre-sur-page .bananes-bloc:not(.pleine) .banane { max-height: calc((100vh - 300px) / 2); }
  .fenetre-sur-page .bananes-bloc:not(.pleine) .bananes-cote { height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .fenetre-sur-page .bananes-cote .bananes-barre { gap: 5px; margin-bottom: 6px; }
  .fenetre-sur-page .bananes-cote .bananes-info { min-height: 8.8em; margin-bottom: 4px; }
  .fenetre-sur-page .bananes-cote .bananes-legende { font-size: 12px; line-height: 1.35; }
  .fenetre-sur-page .bananes-cote .bananes-legende > p { margin: 0 0 4px; }
  /* la pastille de l'assistant dans une marge à droite : elle ne couvre aucune carte */
  body.page-patient.avec-pastille .contenu { padding-right: 62px; }
  body.page-patient .pastille-assistant { right: 9px; bottom: 10px; }
  body.page-patient .pastille-bouton { width: 44px; height: 44px; }
  body.page-patient .pastille-bouton svg { width: 22px; height: 22px; }
}
/* un petit écran d'ordinateur : tout se resserre un peu pour rester sans ascenseur */
@media (min-width: 1041px) and (min-height: 641px) and (max-height: 740px) {
  .pp-fiche-cote textarea { height: 44px; min-height: 44px; }
  .pp-fiche-cote .carte { padding: 8px 14px; }
  .pp-fiche-cote .aide { font-size: 12px; }
  .pp-progression .aa-reglages { max-height: 62px; }
  .pp-progression .carte-avant-apres { padding: 10px 14px; font-size: 13px; }
  .pp-progression .carte-avant-apres .aa-prudence, .pp-progression .carte-avant-apres .aa-compare { line-height: 1.3; }
  .fenetre-sur-page .bananes-cote .bananes-info { min-height: 7.4em; font-size: 12px; }
  .fenetre-sur-page .bananes-cote .bananes-legende { font-size: 11.5px; line-height: 1.25; }
}

/* La courbe de chaque audiogramme sur la fiche (22/11) : rouge = droite (O), bleu = gauche (×), la convention des audiogrammes */
.audio-legende { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 8px 0 4px; color: var(--gris-texte); font-size: 12.5px; }
.audio-legende .ag-od b { color: #d62839; } .audio-legende .ag-og b { color: #1f6fd6; }
.grille-audiogrammes { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; }
.audio-carte { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 10px; background: var(--blanc); }
.audio-carte.en-edition { border-color: var(--vert-soutenu); box-shadow: 0 0 0 2px var(--vert-badge); }
.audio-carte-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.audio-courbe { display: block; width: 100%; height: auto; margin: 6px 0 4px; }
.ag-grille { stroke: rgba(29,39,70,.09); stroke-width: .7; }
.ag-ax { fill: var(--gris-texte); font-size: 9.5px; }
.ag-ligne { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.ag-od .ag-ligne, .ag-od .ag-o { stroke: #d62839; } .ag-og .ag-ligne, .ag-og .ag-x { stroke: #1f6fd6; }
.ag-o { fill: var(--blanc); stroke-width: 1.8; }
.ag-x { fill: none; stroke-width: 2; }
.ag-avec .ag-ligne { stroke-dasharray: 4 3; stroke-width: 1.4; }
.ag-avec .ag-o, .ag-avec .ag-x { opacity: .7; }
.ag-cible { fill: transparent; stroke: none; }
.audio-valeurs { margin: 0 0 4px; font-size: 12.5px; }
.audio-valeurs summary { color: var(--gris-texte); cursor: pointer; }
.audio-valeurs table { width: 100%; margin-top: 4px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.audio-valeurs th, .audio-valeurs td { padding: 2px 3px; text-align: center; border-bottom: 1px solid var(--bordure); }
.audio-valeurs th { font-weight: 600; color: var(--gris-texte); }
.audio-valeurs th[scope="row"] { text-align: left; white-space: nowrap; }
.audio-valeurs .audio-od { color: #d62839; } .audio-valeurs .audio-og { color: #1f6fd6; }
.audio-carte-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: auto; padding-top: 4px; }
.carte-audiogramme h3 { margin: 14px 0 6px; }
.liste-audiogrammes { list-style: none; margin: 0 0 8px; padding: 0; }
.liste-audiogrammes li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 5px 0; border-bottom: 1px solid var(--bordure); }
.form-retirer-audio { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; }
.form-retirer-audio .case { margin: 0; font-size: 12.5px; }
.formulaire-audiogramme input[type="date"] { max-width: 180px; }
.audiogramme-saisie { border-collapse: collapse; }
.audiogramme-saisie th { padding: 2px 3px; font-size: 12px; font-weight: 600; color: var(--gris-texte); text-align: center; }
.audiogramme-saisie th[scope="row"] { text-align: left; padding-right: 8px; }
.audiogramme-saisie .audio-od { color: #d62839; } .audiogramme-saisie .audio-og { color: #1f6fd6; }
.audiogramme-saisie td { padding: 2px; }
.audiogramme-saisie input { width: 52px; padding: 4px 2px; text-align: center; font: inherit; font-size: 13px; border: 1px solid #cfd4de; border-radius: 6px; }
.audiogramme-avec { margin: 8px 0; }
.audiogramme-avec summary { cursor: pointer; font-weight: 600; }
.actions-audiogramme { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bananes-bloc.en-film:not(.pleine) .b3d-toile { height: calc(100vh - 590px); min-height: 240px; }
.bananes-bloc.pleine.vue-3d .bananes-dessins { display: flex; min-height: 280px; }
.bananes-bloc.pleine.vue-3d .b3d { flex: 1 1 auto; min-height: 0; }
.bananes-bloc.pleine.vue-3d .b3d-toile { flex: 1 1 0; height: auto; min-height: 220px; }
.bananes-bloc.pleine [data-b3d-pleine] { display: none; }
.bananes-bloc.pleine.a-audio:not(.vue-3d) .bananes-dessins { display: flex; flex-direction: column; }
.bananes-bloc.pleine.a-audio:not(.vue-3d) .bananes { flex: 1 1 0; height: auto; min-height: 0; }
.bananes-bloc.pleine.a-audio:not(.vue-3d) .banane-cadre.choisie { height: 100%; }
@media (max-width: 980px) {
  .b3d-toile, .bananes-bloc.en-film:not(.pleine) .b3d-toile { height: 58vh; }
}

/* Le film de la banane (19/11, « une animation en timelapse de la banane » ; maquette validée sur H4236) : sous les 4
   bananes (colonne de gauche ; la colonne de droite couvre les deux rangées), en pleine page entre la banane et la ligne
   du survol. Une patate qui change de note clignote (sauf si le système demande moins d'animations). */
.bananes-dessins { grid-column: 1; grid-row: 1; }
.bananes-film { grid-column: 1; grid-row: 2; margin: 8px 0 0; padding: 8px 12px 6px; border: 1px solid var(--bordure); border-radius: 10px; background: #f7f9fc; }
.bananes-film[hidden] { display: none; }
.bananes-cote { grid-column: 2; grid-row: 1 / span 2; }
.bananes-rejouer { justify-content: center; }
.film-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.film-barre button svg { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; }
.film-barre button[aria-pressed="true"]:not(.film-lire) { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.film-etiquette { align-self: center; margin-right: 4px; font-size: 12px; color: var(--gris-texte); }
.film-fermer { margin-left: auto; }
.film-point { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--nuit); }
.film-change { margin: 2px 0 0; min-height: 1.4em; font-size: 12px; color: var(--gris-texte); }
.film-courbe { display: block; width: 100%; height: 76px; margin: 2px 0 0; }
.fc-grille { stroke: #e9ecf2; stroke-width: 1; }
.fc-axe { font-size: 10px; fill: var(--gris-texte); }
.fc-tout { fill: none; stroke: #c9ced8; stroke-width: 2; }
.fc-fait { fill: none; stroke: var(--nuit); stroke-width: 2.5; }
.fc-curseur { stroke: #2f5fd0; stroke-width: 1.5; stroke-dasharray: 4 3; }
.fc-point { cursor: pointer; }
.fc-bilan { fill: #2a9d4b; } .fc-seance { fill: #f29d12; } .fc-futur { fill: #d7dbe3; }
.fc-score { font-size: 11px; font-weight: 700; fill: var(--nuit); }
.film-curseur { width: 100%; margin: 2px 0 0; }
.en-film .patate, .en-film .patate-pied { transition: fill .6s, stroke .6s, opacity .15s; }
@keyframes eclat-patate { 0% { stroke-width: 7; stroke-opacity: 1; } 100% { stroke-width: 1.2; } }
@media (prefers-reduced-motion: no-preference) { .patate.flash { animation: eclat-patate 1s ease-out; } }
.bananes-bloc.pleine .bananes-film { order: 3; margin: 0; padding: 6px 12px 4px; }
/* en pleine page, le film laisse sa place à la banane : le point et ce qui a changé sur une ligne, la courbe plus basse,
   la légende réduite aux teintes et aux marques */
.bananes-bloc.pleine .film-point, .bananes-bloc.pleine .film-change { display: inline-block; margin: 4px 14px 0 0; }
.bananes-bloc.pleine .film-courbe { height: 60px; }
.bananes-bloc.pleine.en-film .bananes-legende > p.legende-zones, .bananes-bloc.pleine.en-film .bananes-legende > p:last-child { display: none; }
@media (max-width: 980px) {
  .bananes-dessins, .bananes-film, .bananes-cote { grid-column: 1; grid-row: auto; }
}
/* La légende qui s'allume (19/11, « quand on survole une zone, surligne la légende qui correspond ») : au survol d'une
   patate, les éléments de son état ressortent, les autres pâlissent (rien ne change de taille : pas de vibration). */
.bananes-legende [data-cle] { padding: 0 3px; border-radius: 6px; transition: opacity .15s, background .15s, box-shadow .15s; }
.bananes-legende.survol [data-cle]:not(.on) { opacity: .35; }
.bananes-legende [data-cle].on { background: #eef3ff; box-shadow: 0 0 0 1px #2f5fd0; color: var(--nuit); }

/* Les patients du jour (18/11) : une ligne sur la carte du centre (un lien vers le graphe), puis la page du graphe :
   une barre par jour, la V3 en bas, la V2 au-dessus, les week-ends sur fond gris, aujourd'hui encadré. */
.centre-jour { margin: 0; padding: 8px 22px 0; font-size: 14px; }
.centre-jour a { color: var(--nuit); text-decoration: none; }
.centre-jour a:hover, .centre-jour a:focus-visible { text-decoration: underline; }
.centre-jour strong { font-size: 16px; }
.cartes-jour { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.graphe-jour { display: block; width: 100%; height: auto; margin: 4px 0 10px; }
.gj-grille { stroke: #e9ecf2; stroke-width: 1; }
.gj-base { stroke: #b9c0cf; stroke-width: 1; }
.gj-axe { font-size: 12px; fill: var(--gris-texte); }
.gj-weekend { fill: #f2f3f6; }
.gj-fond { fill: transparent; }
.gj-jour:hover .gj-fond { fill: rgba(29, 39, 70, .06); }
.gj-v3 { fill: #3f7fd0; }
.gj-v2 { fill: #9fb0d4; }
.gj-aujourdhui .gj-fond { stroke: var(--nuit); stroke-width: 1; stroke-dasharray: 3 3; }
.gj-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 4px; font-size: 13px; color: var(--gris-texte); }
.gj-cle { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.gj-cle.gj-v3 { background: #3f7fd0; } .gj-cle.gj-v2 { background: #9fb0d4; } .gj-cle.gj-weekend { background: #f2f3f6; border: 1px solid #e3e6ec; }

/* La recherche pendant la frappe (18/11) : la liste sous le champ, par-dessus la page. */
.recherche-champ { position: relative; display: inline-block; }
.suggestions { position: absolute; z-index: 30; left: 0; top: calc(100% + 4px); min-width: max(100%, 360px); max-width: 92vw; margin: 0; padding: 4px;
  list-style: none; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 10px; box-shadow: var(--ombre); }
.suggestions[hidden] { display: none; }
.suggestions li a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 10px; border-radius: 7px; color: var(--nuit); text-decoration: none; }
.suggestions li a:hover, .suggestions li.choisie a { background: var(--vert-fond); }
.suggestions .s-nom { font-weight: 600; }
.suggestions .s-code { font-size: 13px; color: var(--gris-texte); font-variant-numeric: tabular-nums; }
.suggestions .s-centre { flex-basis: 100%; font-size: 12px; color: var(--gris-texte); }
.suggestions .suggestion-plus a { font-size: 13px; color: var(--gris-texte); }
.suggestion-vide { padding: 7px 10px; font-size: 13px; color: var(--gris-texte); }
.centre-jour-note { font-size: 12px; color: var(--gris-texte); }

/* La liste des patients d'un centre filtrée pendant la frappe (18/11) : une ligne cachée le reste, même sur téléphone,
   où les lignes passent en blocs. */
.tableau tr[hidden] { display: none; }

/* ---------- Équipe, la messagerie de LDRD (18/11, src/equipe.js) ----------
   PC : la liste à gauche, la conversation à droite, à la hauteur de l'écran ; téléphone : l'une ou l'autre. */
.entete-equipe { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
  background: var(--vert-fond); color: var(--nuit); text-decoration: none; font-weight: 600; }
.entete-equipe svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.entete-equipe:hover, .entete-equipe.actif { background: var(--vert-badge); color: var(--nuit); }
.entete-equipe .compteur { background: var(--nuit); color: var(--blanc); min-width: 22px; padding: 1px 7px; font-size: 12px; }
@media (max-width: 640px) { .entete-equipe-mot { display: none; } }

/* la hauteur mesurée par le script (--eq-h : la plus petite que le navigateur annonce) ; jamais dvh, qui vaut la grande
   hauteur sur le Pixel d'Arnaud (18/11) ; sans script : la hauteur de la page */
html:has(body.page-equipe) { height: 100%; }
body.page-equipe { height: 100%; height: var(--eq-h, 100%); min-height: 0; }
body.page-equipe .contenu { padding: 0; min-height: 0; display: flex; flex-direction: column; }
body.page-equipe .contenu > .alerte { margin: 12px 24px 0; }
body.page-equipe .pied { display: none; }
.equipe { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); background: var(--blanc); }
.equipe svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.eq-liste { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--bordure); }
.eq-liste-tete { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.eq-liste-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eq-liste-ligne h1 { font-size: 20px; }
.eq-cherche { display: flex; align-items: center; gap: 8px; border: 1px solid #cfd4de; border-radius: 8px; padding: 6px 10px; }
.eq-cherche svg { width: 16px; height: 16px; color: var(--gris-texte); flex-shrink: 0; }
.eq-cherche input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; width: 100%; min-width: 0; color: var(--nuit); }
.eq-cherche:focus-within { border-color: var(--vert-soutenu); box-shadow: 0 0 0 3px var(--vert-badge); }
.eq-notifs { font-size: 13px; color: var(--gris-texte); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.eq-notifs[hidden] { display: none; }
.eq-notifs p { margin: 0; }
.eq-conversations { flex: 1; overflow-y: auto; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
/* les marges que le navigateur annonce autour de l'écran (une encoche, des barres) : respectées s'il en annonce, 0 sinon.
   (viewport-fit=cover, essayé le 18/11, retiré : comme pour l'appli mobile de Hearfit.audio, ce n'était pas la cause) */
body.page-equipe { padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.eq-rubrique { margin: 12px 14px 4px; font-family: var(--police-titre); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-texte); }
.eq-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 14px; color: var(--nuit); text-decoration: none; }
.eq-item:hover { background: var(--gris-fond); color: var(--nuit); }
.eq-item.actif { background: var(--vert-fond); }
.eq-item[hidden] { display: none; }
.eq-item-texte { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.eq-item-nom { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.eq-item-nom small { font-weight: 500; font-size: 12px; color: var(--gris-texte); font-variant-numeric: tabular-nums; }
.eq-item-muet svg { width: 13px; height: 13px; color: var(--gris-texte); display: block; }
.eq-item-apercu { font-size: 12.5px; color: var(--gris-texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-non-lu .eq-item-apercu { color: var(--nuit); font-weight: 500; }
.eq-non-suivi .eq-item-nom { font-weight: 500; color: var(--gris-texte); }
.eq-item-cote { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11px; color: var(--gris-texte); font-variant-numeric: tabular-nums; }
.eq-item-cote .compteur { background: var(--nuit); color: var(--blanc); font-size: 11px; min-width: 20px; padding: 0 6px; }
.eq-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--police-titre); font-weight: 700; flex-shrink: 0; }
.eq-ico-salon { background: var(--gris-pastille); font-size: 16px; }
.eq-ico-auto { background: #fff3d6; color: #7a5200; }
.eq-ico-centre { background: var(--vert-badge); }
.eq-ico-client { background: #e3ecfb; }
.eq-ico-client svg { width: 18px; height: 18px; }
/* « Nouveau » : le fil d'un client, en tête de ses centres (19/11) */
.eq-centres a.eq-centres-client { background: #f3f6fc; }
.eq-centres a.eq-centres-client b { color: #1f4f9c; }
.eq-ico-centre svg { width: 18px; height: 18px; }
.eq-ico-deux { border-radius: 50%; background: #dfe7f7; font-size: 12px; }
.eq-archives { margin: 12px 14px 0; font-size: 13px; color: var(--gris-texte); }
/* « Afficher les archives » (18/11, « un bouton pour afficher l'archive ») : un bouton, qui devient « Masquer les archives » */
.eq-archives > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.eq-archives > summary::-webkit-details-marker { display: none; }
.eq-archives-cacher, .eq-archives[open] .eq-archives-voir { display: none; }
.eq-archives[open] .eq-archives-cacher { display: inline; }
.eq-archives .eq-item { padding-inline: 0; }
.eq-vide { margin: 12px 14px; font-size: 13px; color: var(--gris-texte); }

.eq-conv { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.eq-accueil { flex: 1; display: grid; place-items: center; color: var(--gris-texte); padding: 24px; text-align: center; }
/* l'en-tête d'une conversation : les boutons passent dessous plutôt que d'écraser le titre (le fil d'un centre sur un
   téléphone s'écrivait lettre par lettre, 18/11) */
.eq-conv-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 18px; border-bottom: 1px solid var(--bordure); }
.eq-retour { display: none; width: 34px; height: 34px; place-items: center; color: var(--nuit); border-radius: 8px; flex-shrink: 0; }
.eq-retour svg { width: 20px; height: 20px; }
.eq-conv-titre { min-width: 0; flex: 1 1 220px; }
.eq-conv-titre h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eq-conv-titre p { margin: 0; font-size: 12.5px; color: var(--gris-texte); overflow-wrap: anywhere; }
.eq-conv-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.eq-form-ligne { margin: 0; display: inline; }
.eq-bouton-muet { display: inline-flex; align-items: center; gap: 5px; }
.eq-bouton-muet svg { width: 15px; height: 15px; }
.eq-plus { position: relative; }
.eq-plus > summary { list-style: none; cursor: pointer; }
.eq-plus > summary::-webkit-details-marker { display: none; }
.eq-plus-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 240px; padding: 10px; display: flex; flex-direction: column; gap: 8px;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 10px; box-shadow: var(--ombre); }
.eq-plus-menu .bouton-lien { width: 100%; }
.eq-plus-menu .aide { margin: 0; }
.eq-erreur { margin: 10px 18px 0; }

.eq-fil { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 2px; background: var(--gris-fond); }
.eq-jour { align-self: center; margin: 10px 0 6px; }
.eq-jour span { font-size: 11.5px; font-weight: 600; color: var(--gris-texte); background: var(--blanc); border: 1px solid var(--bordure); border-radius: 999px; padding: 2px 10px; }
.eq-systeme { align-self: center; margin: 6px 0; font-size: 12px; color: var(--gris-texte); text-align: center; }
.eq-msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.eq-msg.eq-suite { margin-top: 3px; }
.eq-msg.eq-suite > .eq-av { visibility: hidden; height: 0; }
.eq-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--police-titre); font-size: 11.5px; font-weight: 700; flex-shrink: 0; }
.eq-av.t1 { background: #dfe7f7; } .eq-av.t2 { background: #f6e3d6; } .eq-av.t3 { background: #e5dcf3; } .eq-av.t4 { background: #d9efe9; }
.eq-av-veille { background: var(--nuit); color: var(--vert); }
.eq-av-veille svg { width: 17px; height: 17px; }
.eq-corps { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.eq-tete { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.eq-tete time { font-size: 11.5px; color: var(--gris-texte); font-variant-numeric: tabular-nums; }
.eq-bulle { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 4px 14px 14px 14px; padding: 7px 12px; font-size: 14.5px; line-height: 1.5;
  max-width: min(620px, 100%); white-space: pre-wrap; overflow-wrap: anywhere; }
.eq-bulle a { color: inherit; }
.eq-lien-tel, .eq-lien-mail { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.eq-lien-tel { white-space: nowrap; }
.eq-msg.eq-moi .eq-lien-tel, .eq-msg.eq-moi .eq-lien-mail { text-decoration-color: currentColor; }
.eq-msg.eq-moi { grid-template-columns: minmax(0, 1fr); }
.eq-msg.eq-moi > .eq-av { display: none; }
.eq-msg.eq-moi .eq-corps { align-items: flex-end; }
.eq-msg.eq-moi .eq-bulle { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); border-radius: 14px 4px 14px 14px; }
.eq-jeton { font-weight: 700; background: var(--vert-badge); border-radius: 5px; padding: 0 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eq-msg.eq-moi .eq-jeton { background: rgba(255, 255, 255, .16); }

.eq-boite { display: flex; flex-direction: column; gap: 4px; max-width: min(620px, 100%); padding: 9px 12px; border-radius: 12px; background: #e3ecfb; }
.eq-boite strong { font-family: var(--police-titre); font-size: 13.5px; }
.eq-boite p { margin: 0; font-size: 14px; }
.eq-niveau-ko { background: var(--rouge-fond); }
.eq-niveau-ok { background: var(--vert-badge); }
.eq-liens { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.eq-liens .bouton-lien { background: var(--blanc); }

.eq-carte-centre { width: min(460px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--blanc);
  border: 1px solid var(--bordure); border-radius: 12px; box-shadow: var(--ombre); }
.eq-cc-tete { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.eq-cc-tete .code-centre { font-size: 16px; font-weight: 700; }
.eq-cc-nom { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.eq-cc-nom strong { font-family: var(--police-titre); font-size: 14px; }
.eq-cc-nom span { font-size: 12px; color: var(--gris-texte); }
.eq-etat-actif { background: var(--vert-badge); }
.eq-etat-baisse, .eq-etat-v3 { background: #fff3d6; color: #7a5200; }
.eq-etat-arret { background: var(--rouge-fond); color: var(--rouge-texte); }
.eq-cc-chiffres { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.eq-cc-chiffres dt { font-size: 11px; color: var(--gris-texte); line-height: 1.3; }
.eq-cc-chiffres dd { margin: 0; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.eq-cc-chiffres dd.eq-ko { color: var(--rouge-texte); }
.eq-carte-inconnue { margin: 0; font-size: 12.5px; color: var(--gris-texte); border: 1px dashed #cfd4de; border-radius: 10px; padding: 6px 10px; background: var(--blanc); }
.eq-carte-ticket { width: min(460px, 100%); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; font-size: 13px;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 12px; color: var(--nuit); text-decoration: none; }
.eq-carte-ticket:hover { border-color: var(--vert-soutenu); color: var(--nuit); }
.eq-ct-num { font-family: var(--police-titre); font-weight: 700; }
.eq-ct-sujet { flex: 1; min-width: 140px; font-weight: 600; }
.eq-ct-qui { font-size: 12px; color: var(--gris-texte); }
.eq-ticket-ouvert { background: #fff3d6; color: #7a5200; }
.eq-ticket-en-cours { background: #e3ecfb; }
.eq-ticket-resolu { background: var(--vert-badge); }

.eq-photo { display: block; line-height: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--bordure); max-width: min(320px, 100%); background: var(--blanc); }
.eq-photo img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }
/* la visionneuse d'une photo (18/11, « mets une croix pour fermer ») : plein écran, la croix en haut à droite */
.eq-visionneuse { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 16, 28, .94);
  display: none; place-items: center; }
.eq-visionneuse[open] { display: grid; }
.eq-visionneuse::backdrop { background: rgba(12, 16, 28, .94); }
.eq-visionneuse img { max-width: calc(100vw - 24px); max-height: calc(var(--eq-h, 100vh) - 120px); object-fit: contain; border-radius: 6px; }
.eq-visionneuse-fermer { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.eq-visionneuse-fermer:hover, .eq-visionneuse-fermer:focus-visible { background: rgba(255, 255, 255, .3); outline: 2px solid #fff; }
.eq-visionneuse-telecharger { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); color: #fff;
  font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); text-decoration: none; }
.eq-visionneuse-telecharger:hover { color: #fff; background: rgba(255, 255, 255, .3); }
.eq-vocal { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.eq-vocal audio { height: 40px; width: min(280px, 70vw); }
.eq-duree { font-size: 12px; color: var(--gris-texte); font-variant-numeric: tabular-nums; }
.eq-efface { margin: 0; font-size: 13px; font-style: italic; color: var(--gris-texte); }

.eq-nouveaux { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 5; border: 0; border-radius: 999px; padding: 7px 16px;
  background: var(--nuit); color: var(--blanc); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--ombre); }
.eq-nouveaux[hidden] { display: none; }

.eq-composer { border-top: 1px solid var(--bordure); padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 4px; margin: 0; }
.eq-composer-ligne { display: flex; align-items: flex-end; gap: 8px; }
.eq-composer textarea { flex: 1; min-width: 0; resize: none; font: inherit; font-size: 16px; line-height: 1.4; color: var(--nuit); padding: 8px 14px;
  border: 1px solid #cfd4de; border-radius: 18px; max-height: 160px; background: var(--blanc); overflow-y: hidden; }
.eq-composer textarea:focus { outline: none; border-color: var(--vert-soutenu); box-shadow: 0 0 0 3px var(--vert-badge); }
.eq-bouton-rond { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bordure); background: var(--blanc); display: grid; place-items: center;
  cursor: pointer; flex-shrink: 0; color: var(--nuit); margin: 0; }
.eq-bouton-rond[hidden] { display: none; }
.eq-bouton-rond:hover, .eq-bouton-rond:focus-within { border-color: var(--vert-soutenu); background: var(--vert-fond); }
.eq-bouton-rond svg { width: 18px; height: 18px; }
.eq-bouton-rond > span:not(.masque) { display: contents; }
/* le bouton photo : la galerie sur un ordinateur, l'appareil photo sur un téléphone (le script y met `capture`) */
.eq-ico-camera { display: none !important; }
@media (pointer: coarse) { .eq-ico-camera { display: contents !important; } .eq-ico-galerie { display: none !important; } }
.eq-aide { margin: 0; font-size: 12px; color: var(--gris-texte); }
.eq-detecte { font-weight: 600; color: var(--nuit); background: var(--vert-badge); border-radius: 999px; padding: 1px 9px; margin-right: 4px; }
.eq-aide.eq-aide-erreur { color: var(--rouge-texte); }
.eq-enreg { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 38px; }
.eq-enreg-point { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); animation: eq-clignote 1s infinite; }
@keyframes eq-clignote { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .eq-enreg-point { animation: none; } }
.eq-enreg time { font-weight: 700; font-variant-numeric: tabular-nums; }
.eq-archive { border-top: 1px solid var(--bordure); padding: 12px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; color: var(--gris-texte); }
.eq-archive p, .eq-archive form { margin: 0; }

.eq-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin-top: 6px; }
.eq-cases label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
.eq-cases input { accent-color: var(--vert-soutenu); width: 16px; height: 16px; }
.eq-fieldset { border: 0; margin: 14px 0 0; padding: 0; }
.eq-fieldset legend { font-size: 14px; font-weight: 600; padding: 0; }
.eq-membres { margin: 0; padding-left: 20px; }
.formulaire .eq-garder { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; text-align: left; margin-top: 16px;
  padding: 10px; border-radius: 10px; background: var(--vert-fond); border: 1px solid var(--vert-badge); }
.formulaire .eq-garder input { accent-color: var(--vert-soutenu); width: 16px; height: 16px; margin: 3px 0 0; padding: 0; }
.eq-garder small { display: block; font-weight: 400; font-size: 12px; color: var(--gris-texte); }

.eq-fil-centre .eq-fil-court { max-height: 380px; border-radius: 10px; margin: 12px 0; flex: none; }
.eq-composer-simple { border: 0; padding: 0; }
.eq-composer-simple textarea { border-radius: 12px; }

.entete-telephone .entete-int { padding-block: 8px; }
.entete-telephone .entete-logo img { width: 88px; }

@media (max-width: 860px) {
  .equipe { grid-template-columns: minmax(0, 1fr); }
  .equipe.eq-avec-conv .eq-liste { display: none; }
  .equipe:not(.eq-avec-conv) .eq-conv { display: none; }
  .eq-liste { border-right: 0; }
  .eq-retour { display: grid; }
  .eq-conv-tete { padding: 8px 10px; gap: 6px 8px; }
  .eq-conv-titre { flex-basis: calc(100% - 50px); }
  .eq-conv-titre h2 { font-size: 16px; }
  .eq-conv-titre p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .eq-conv-actions { flex: 1 1 100%; justify-content: flex-start; padding-left: 42px; }
  .eq-conv-actions .bouton-lien { padding: 6px 10px; flex-shrink: 0; }
  .eq-plus-menu { right: auto; left: 0; }
  .eq-bouton-muet span { display: none; }
  .eq-fil { padding: 10px 10px 14px; }
  .eq-cc-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-aide-defaut { display: none; }   /* sur un téléphone, l'aide ne parle que si elle a quelque chose à dire */
  .eq-nouveaux { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .eq-telephone { display: none; }
}

/* répondre à un message précis (18/11, « comme WhatsApp ») : la citation dans le message, la barre au-dessus de l'écriture,
   le bouton ↩ au survol (sur un téléphone, on touche le message) */
.eq-msg { position: relative; }
.equipe .eq-msg .eq-corps { cursor: pointer; }
/* au survol d'un message : ↩ (répondre) et ⋯ (son menu), dans une pastille posée sur son coin ; sur un téléphone, on le touche */
.eq-actions-msg { position: absolute; top: -12px; right: 4px; z-index: 3; display: flex; gap: 2px; padding: 2px; border-radius: 999px;
  background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre); opacity: 0; pointer-events: none; transition: opacity .12s; }
.eq-msg:hover .eq-actions-msg, .eq-actions-msg:focus-within, .eq-menu-ouvert .eq-actions-msg { opacity: 1; pointer-events: auto; }
.eq-repondre, .eq-plus-msg { width: 28px; height: 26px; border-radius: 999px; border: 0; background: transparent; color: var(--nuit); font-size: 14px; line-height: 1; cursor: pointer; }
.eq-plus-msg { font-weight: 700; letter-spacing: .05em; }
.eq-repondre:hover, .eq-plus-msg:hover { background: var(--vert-fond); }
@media (hover: none) { .eq-actions-msg { display: none; } }
.eq-citation { display: flex; flex-direction: column; gap: 1px; max-width: min(620px, 100%); padding: 5px 10px; border-left: 3px solid var(--vert-soutenu);
  border-radius: 8px; background: var(--vert-fond); color: var(--nuit); text-decoration: none; font-size: 12.5px; line-height: 1.35; }
.eq-citation:hover { background: var(--vert-badge); color: var(--nuit); }
.eq-citation span { color: var(--gris-texte); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.eq-choisi .eq-bulle, .eq-choisi .eq-boite, .eq-choisi .eq-photo { box-shadow: 0 0 0 2px var(--vert-soutenu); }
.eq-surligne .eq-bulle, .eq-surligne .eq-boite, .eq-surligne .eq-photo, .eq-surligne .eq-vocal { animation: eq-surligne 1.8s ease-out; }
@keyframes eq-surligne { 0%, 40% { box-shadow: 0 0 0 4px #f2a33a; } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .eq-surligne .eq-bulle, .eq-surligne .eq-boite { animation: none; box-shadow: 0 0 0 3px #f2a33a; } }
.eq-reponse { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-left: 3px solid var(--vert-soutenu); border-radius: 8px;
  background: var(--vert-fond); font-size: 13px; }
.eq-reponse[hidden] { display: none; }
.eq-reponse-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.eq-reponse-texte > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-reponse-texte [data-reponse-extrait] { color: var(--gris-texte); }
.eq-reponse-annuler { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--nuit); cursor: pointer; font-size: 14px; }
.eq-reponse-annuler:hover { background: var(--vert-badge); }

/* les thèmes des fils d'un centre (18/11) : le choix, la pastille, l'écran des thèmes */
.eq-choix-theme { flex: 1; overflow-y: auto; padding: 16px 18px; background: var(--gris-fond); display: flex; flex-direction: column; gap: 12px; }
.eq-choix-theme p { margin: 0; }
.eq-themes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.eq-theme-choix { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--blanc); border: 1px solid var(--bordure);
  color: var(--nuit); text-decoration: none; line-height: 1.35; }
.eq-theme-choix:hover, .eq-theme-choix:focus-visible { border-color: var(--vert-soutenu); background: var(--vert-fond); color: var(--nuit); }
.eq-theme-choix b { font-family: var(--police-titre); font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eq-theme-choix span { font-size: 12.5px; color: var(--gris-texte); }
.eq-theme-vide { border-style: dashed; }
.eq-theme-pastille { display: inline-block; font-family: var(--police-titre); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px;
  border-radius: 999px; background: var(--vert-badge); color: var(--nuit); text-decoration: none; }
a.eq-theme-pastille:hover { background: var(--vert); color: var(--nuit); }
.eq-fils-themes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.eq-composer-theme { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.eq-composer-theme select { font: inherit; font-weight: 500; padding: 5px 8px; border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc); color: var(--nuit); }
.eq-theme-nouveau { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.eq-theme-nouveau input, .eq-theme-ligne input { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid #cfd4de; border-radius: 8px; color: var(--nuit); background: var(--blanc); }
.eq-theme-nouveau input { flex: 1 1 220px; }
.eq-theme-ligne { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.eq-theme-ligne input[name="nom"] { flex: 1 1 160px; min-width: 0; }
.eq-theme-ligne input[name="ordre"] { width: 76px; }
.eq-theme-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* « Nouveau » : chercher un centre pour ouvrir son fil (18/11) */
.eq-cherche svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.eq-centres-compte { margin: 8px 0 0; }
.eq-centres { list-style: none; margin: 8px 0 0; padding: 0; max-height: 360px; overflow-y: auto; border: 1px solid var(--bordure); border-radius: 10px; }
.eq-centres li[hidden] { display: none; }
.eq-centres a { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-bottom: 1px solid var(--bordure); color: var(--nuit); text-decoration: none; line-height: 1.3; }
.eq-centres li:last-child a { border-bottom: 0; }
.eq-centres a:hover, .eq-centres a:focus-visible { background: var(--vert-fond); color: var(--nuit); }
.eq-centres b { font-size: 14px; }
.eq-centres span { font-size: 12px; color: var(--gris-texte); }

/* le QR code de l'appli (18/11), en bas de la liste sur PC */
.eq-telephone { position: relative; border-top: 1px solid var(--bordure); padding: 8px 14px 10px; font-size: 13px; }
.eq-telephone > summary { cursor: pointer; font-weight: 600; color: var(--nuit); padding: 4px 0; }
/* ouvert : une carte qui flotte au-dessus du lien, sans pousser la liste hors de l'écran */
.eq-telephone-corps { position: absolute; z-index: 15; left: 10px; bottom: calc(100% - 4px); width: 300px; max-width: calc(100vw - 20px);
  display: grid; gap: 8px; justify-items: start; padding: 14px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: 12px; box-shadow: var(--ombre); }
.eq-telephone-corps img { border-radius: 8px; border: 1px solid var(--bordure); }
.eq-telephone-corps ol { margin: 0; padding-left: 18px; color: var(--gris-texte); font-size: 12.5px; line-height: 1.45; display: grid; gap: 4px; }
.eq-telephone-adresse { margin: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }

/* Équipe, ce qui manquait (18/11) : le menu d'un message, les réactions, les mentions, modifié ou retiré, les épingles,
   les documents, les anciens messages, le repère des nouveaux, la recherche, « À faire », les réglages */
.eq-menu-msg { position: absolute; z-index: 30; width: 240px; padding: 6px; display: flex; flex-direction: column;
  background: var(--blanc); border: 1px solid var(--bordure); border-radius: 12px; box-shadow: 0 6px 30px rgba(29, 39, 70, .18); }
.eq-menu-msg[hidden] { display: none; }
.eq-menu-reactions { display: flex; justify-content: space-between; gap: 2px; padding: 2px 2px 6px; border-bottom: 1px solid var(--bordure); margin-bottom: 4px; }
.eq-menu-reactions button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; }
.eq-menu-reactions button:hover, .eq-menu-reactions button:focus-visible { background: var(--vert-fond); transform: scale(1.12); }
.eq-menu-article { text-align: left; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--nuit); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.eq-menu-article:hover, .eq-menu-article:focus-visible { background: var(--vert-fond); outline: none; }
.eq-menu-danger { color: var(--rouge-texte); }
.eq-menu-ouvert .eq-bulle, .eq-menu-ouvert .eq-boite, .eq-menu-ouvert .eq-photo, .eq-menu-ouvert .eq-document { box-shadow: 0 0 0 2px var(--vert-soutenu); }
@media (max-width: 860px) {
  /* sur un téléphone : il monte du bas de l'écran */
  .eq-menu-msg { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 8px; }
  .eq-menu-reactions button { width: 44px; height: 44px; font-size: 24px; }
  .eq-menu-article { padding: 12px; font-size: 15px; }
}

.eq-reactions { display: flex; flex-wrap: wrap; gap: 4px; }
.eq-reac { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--bordure); background: var(--blanc);
  font: inherit; font-size: 13px; line-height: 1.6; color: var(--nuit); }
button.eq-reac { cursor: pointer; }
.eq-reac span { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.eq-reac-moi { border-color: var(--vert-soutenu); background: var(--vert-badge); }
button.eq-reac:hover { border-color: var(--vert-soutenu); }

.eq-mention { font-weight: 700; color: #1f5fbf; }
.eq-mention-moi { background: #fff3d6; color: #7a5200; border-radius: 4px; padding: 0 3px; }
.eq-msg.eq-moi .eq-mention { color: #bcd4ff; }
.eq-me-mentionne .eq-bulle { border-color: #f2c46d; }
.eq-mentions-choix { list-style: none; margin: 0 0 4px; padding: 4px; max-width: 320px; background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: 10px; box-shadow: var(--ombre); }
.eq-mentions-choix[hidden] { display: none; }
.eq-mentions-choix li { padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.eq-mentions-choix li[aria-selected="true"], .eq-mentions-choix li:hover { background: var(--vert-fond); }
.eq-pastille-mention { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f2a33a; color: var(--blanc);
  font-size: 12px; font-weight: 700; }
.eq-item-compte { display: inline-flex; align-items: center; gap: 4px; }

.eq-modifie { font-size: 11.5px; opacity: .7; white-space: nowrap; }
.eq-bulle-retiree { font-style: italic; color: var(--gris-texte); background: transparent; border-style: dashed; margin: 0; }
.eq-msg.eq-moi .eq-bulle-retiree { background: transparent; color: var(--gris-texte); border-color: #cfd4de; }
.eq-epingle-marque { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #7a5200; }
.eq-epingle-marque svg { width: 14px; height: 14px; }

.eq-epingles { border-bottom: 1px solid var(--bordure); background: #fffaf0; font-size: 13px; }
.eq-epingles[hidden] { display: none; }
.eq-epingles > summary { display: flex; align-items: center; gap: 8px; padding: 7px 18px; cursor: pointer; list-style: none; min-width: 0; }
.eq-epingles > summary::-webkit-details-marker { display: none; }
.eq-epingles > summary svg { width: 15px; height: 15px; flex-shrink: 0; color: #7a5200; }
.eq-epingles > summary > span:first-of-type { font-weight: 600; white-space: nowrap; }
.eq-epingles-dernier { color: var(--gris-texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.eq-epingles[open] .eq-epingles-dernier { display: none; }
.eq-epingles ul { list-style: none; margin: 0; padding: 0 18px 10px; display: grid; gap: 6px; max-height: 40vh; overflow-y: auto; }

.eq-document { display: flex; align-items: center; gap: 10px; width: min(360px, 100%); padding: 8px 12px; border-radius: 12px; background: var(--blanc);
  border: 1px solid var(--bordure); color: var(--nuit); text-decoration: none; }
.eq-document:hover { border-color: var(--vert-soutenu); color: var(--nuit); }
.eq-doc-type { flex-shrink: 0; width: 40px; height: 46px; border-radius: 6px; display: grid; place-items: center; font-family: var(--police-titre);
  font-size: 10.5px; font-weight: 700; color: var(--blanc); background: #5b6478; }
.eq-doc-pdf { background: #c0392b; }
.eq-doc-zip, .eq-doc-ole { background: #2b579a; }
.eq-doc-texte { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.eq-doc-texte b { font-size: 13.5px; overflow-wrap: anywhere; }
.eq-doc-texte span { font-size: 12px; color: var(--gris-texte); }

.eq-anciens { align-self: center; margin: 0 0 6px; }
.eq-repere { align-self: stretch; display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; color: #b5651d; font-size: 12px; font-weight: 700; }
.eq-repere::before, .eq-repere::after { content: ""; flex: 1; height: 1px; background: #f2c08a; }

.eq-liste-liens { display: inline-flex; align-items: center; gap: 4px; }
.eq-lien-reglages { display: inline-grid; place-items: center; padding: 5px 7px; }
.eq-lien-reglages svg { width: 17px; height: 17px; }
.eq-cherche-form { margin: 0; }
.eq-ico-afaire { background: #fff3d6; color: #7a5200; }
.eq-ico-afaire svg { width: 17px; height: 17px; }

.eq-panneau { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 24px; background: var(--gris-fond); display: flex; flex-direction: column; gap: 10px; }
.eq-panneau .aide { margin: 6px 0 0; }
.eq-resultats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eq-resultats a { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--blanc); border: 1px solid var(--bordure);
  color: var(--nuit); text-decoration: none; line-height: 1.4; }
.eq-resultats a:hover { border-color: var(--vert-soutenu); color: var(--nuit); }
.eq-res-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 13px; }
.eq-res-tete time { color: var(--gris-texte); font-size: 12px; }
.eq-res-texte { font-size: 14px; overflow-wrap: anywhere; }
.eq-res-qui { color: var(--gris-texte); }
.eq-resultats mark { background: #ffe39a; color: inherit; border-radius: 3px; padding: 0 1px; }

.eq-panneau h3.eq-rubrique { margin: 6px 0 0; }
.eq-relances { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eq-relance { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--blanc); border: 1px solid var(--bordure); }
.eq-relance-echue { border-color: #f2c08a; background: #fffaf0; }
.eq-relance-faite { opacity: .75; }
.eq-relance-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.eq-relance-quand { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #7a5200; }
.eq-relance-quand svg { width: 15px; height: 15px; }
.eq-relance-note { margin: 0; font-size: 14px; }
.eq-relance-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.eq-reporter select { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid #cfd4de; border-radius: 7px; background: var(--blanc); color: var(--nuit); margin-right: 4px; }
.eq-faites > summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--gris-texte); margin: 6px 0; }

.eq-dialogue { border: 0; border-radius: 14px; padding: 18px 20px; width: min(420px, calc(100vw - 24px)); box-shadow: 0 10px 40px rgba(29, 39, 70, .25); color: var(--nuit); }
.eq-dialogue::backdrop { background: rgba(29, 39, 70, .35); }
.eq-dialogue h2 { font-size: 18px; margin: 0 0 4px; }
.eq-dialogue-extrait { margin: 0 0 10px; font-size: 13px; color: var(--gris-texte); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.eq-delais { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.eq-delais legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 4px; }
.eq-delais label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
.eq-delais input { accent-color: var(--vert-soutenu); width: 16px; height: 16px; margin: 0; }
.eq-delai-autre { display: flex; gap: 8px; margin: 8px 0 4px 24px; }
.eq-delai-autre[hidden] { display: none; }
.eq-delai-autre input { font: inherit; padding: 5px 8px; border: 1px solid #cfd4de; border-radius: 8px; }
.eq-dialogue-boutons { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }

.formulaire .eq-case { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 8px 0 0; }
.eq-case input { accent-color: var(--vert-soutenu); width: 16px; height: 16px; margin: 0; }
.eq-calme-heures { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0 24px; }
.eq-calme-heures label { margin: 0; font-weight: 500; }
.eq-calme-heures input { width: auto; }
.eq-appareils .eq-ici td { background: var(--vert-fond); }
.pastille.eq-notif-tel, .pastille.eq-notif-activees { background: var(--vert-badge); }
.pastille.eq-notif-ordi { background: #fff3d6; }
.pastille.eq-notif-non { background: var(--rouge-fond); }
.pastille.eq-notif-jamais { background: var(--gris-fond); color: var(--gris-texte); }
.eq-notifs-equipe .pastille { white-space: nowrap; }
.eq-notifs-appareils { list-style: none; display: inline-grid; gap: 2px; margin: 0; padding: 0; }
.eq-notifs-appareils span { color: var(--gris-texte); font-size: 12.5px; }
.eq-abonnements { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.eq-abonnements li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; }

/* les couleurs des thèmes (18/11, « tu peux mettre des couleurs pour les thèmes ») : la pastille, le bord d'une carte de
   thème ; un nom de la palette seulement (src/equipe.js COULEURS) */
.eq-c-gris { --eq-fond: #eceef2; --eq-texte: #3d4556; --eq-trait: #8a93a6; }
.eq-c-bleu { --eq-fond: #e3ecfb; --eq-texte: #1f4f9c; --eq-trait: #3b74d1; }
.eq-c-vert { --eq-fond: #e2f2da; --eq-texte: #2f6b1f; --eq-trait: #5aa33a; }
.eq-c-violet { --eq-fond: #eee5fa; --eq-texte: #5b2f9c; --eq-trait: #8b5cd6; }
.eq-c-orange { --eq-fond: #fdecd9; --eq-texte: #8a4b0f; --eq-trait: #e08a2e; }
.eq-c-rouge { --eq-fond: #fbe3e3; --eq-texte: #8f1d1d; --eq-trait: #d14b4b; }
.eq-c-turquoise { --eq-fond: #dcf3f1; --eq-texte: #1d6b66; --eq-trait: #2fa39b; }
.eq-c-rose { --eq-fond: #fbe4f0; --eq-texte: #8f2560; --eq-trait: #d6589b; }
.eq-theme-pastille[class*="eq-c-"] { background: var(--eq-fond); color: var(--eq-texte); box-shadow: inset 0 0 0 1px var(--eq-trait); }
a.eq-theme-pastille[class*="eq-c-"]:hover { background: var(--eq-trait); color: var(--blanc); }
.eq-theme-choix[class*="eq-c-"] { border-left: 5px solid var(--eq-trait); }
.eq-theme-choix[class*="eq-c-"] b { color: var(--eq-texte); }
.eq-item-nom .eq-theme-pastille { margin-left: 4px; vertical-align: 1px; font-size: 10px; padding: 1px 7px; }
.eq-conv-titre h2 .eq-theme-pastille { font-size: 11.5px; }
.eq-choix-couleur { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #cfd4de; border-radius: 8px; background: var(--blanc); color: var(--nuit); }
.eq-theme-ligne .eq-theme-pastille, .eq-theme-nouveau .eq-theme-pastille { white-space: nowrap; }

/* Équipe « comme une appli » (18/11, demandé : « empêche le scroll du menu et le zoom par pincement, bref que ça fasse
   appli store ») : la page ne bouge pas (seules la liste et le fil défilent), ni tiré-pour-recharger, ni zoom (le
   viewport de la page le refuse aussi), pas de flash bleu au toucher ; dans l'appli installée et sur un téléphone, ni le
   menu de l'administration, ni ses bandeaux : l'en-tête court (logo, Équipe, compte) */
html:has(body.page-equipe) { overflow: hidden; overscroll-behavior: none; height: 100%; }
body.page-equipe { overflow: hidden; overscroll-behavior: none; touch-action: pan-x pan-y; -webkit-tap-highlight-color: transparent; }
body.page-equipe .eq-fil, body.page-equipe .eq-conversations, body.page-equipe .eq-panneau, body.page-equipe .eq-choix-theme { overscroll-behavior: contain; }
body.page-equipe button, body.page-equipe .bouton-lien, body.page-equipe .eq-item, body.page-equipe summary { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
@media (pointer: coarse) {
  /* un appui sur un message ouvre son menu (« Copier le texte » y est) : pas la sélection du système */
  body.page-equipe .eq-msg, body.page-equipe .eq-item { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  body.page-equipe .eq-photo img { -webkit-touch-callout: none; }
}
@media (display-mode: standalone), (max-width: 860px) {
  body.page-equipe .menu, body.page-equipe .sous-menu, body.page-equipe .bandeau-panne, body.page-equipe .bandeau-cles { display: none; }
  body.page-equipe .entete-int { padding-block: 6px; }
  body.page-equipe .entete-logo img { width: 88px; }
  body.page-equipe .entete-titre { display: none; }
}

/* les centres à appeler, dans Commercial (19/11) : un centre par ligne, son téléphone, pourquoi, « Appel réussi » */
.eq-appels { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 6px; }
.eq-appel { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; background: var(--blanc); border: 1px solid var(--bordure); }
.eq-appel-fait { background: var(--vert-fond); border-color: var(--vert-badge); }
.eq-appel-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.eq-appel-tete a { color: var(--nuit); }
.eq-appel-tete span { font-size: 12px; color: var(--gris-texte); }
.eq-appel-tel { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--nuit); text-decoration: none; width: fit-content; }
.eq-appel-tel:hover { text-decoration: underline; }
.eq-appel-sans { font-weight: 400; font-size: 12.5px; color: var(--gris-texte); }
.eq-boite .eq-appel-raisons { margin: 0; font-size: 13px; color: #7a5200; }
.eq-boite .eq-appel-ok { margin: 0; font-size: 13px; font-weight: 600; color: #2f6b1f; }
.eq-boite .eq-appel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 0; }
.eq-dialogue textarea { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #cfd4de; border-radius: 8px; resize: vertical; }

/* ---------------------------------------------------------------- l'assistant dans Équipe (19/11) */
.eq-av-assistant { background: #e3ecfb; color: #1f4f9c; }
.eq-av-assistant svg, .eq-ico-assistant svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eq-ico-assistant { background: #e3ecfb; color: #1f4f9c; }
.eq-item-assistant .eq-item-apercu { white-space: normal; }
.eq-bulle-assistant { background: #f3f7fe; border-color: #c9d8f2; max-width: min(680px, 100%); }
.eq-msg.eq-moi .eq-bulle-assistant { background: #f3f7fe; border-color: #c9d8f2; color: inherit; border-radius: 14px 4px 14px 14px; }
.eq-bulle-assistant p { margin: 0 0 6px; }
.eq-bulle-assistant p:last-child, .eq-bulle-assistant ul:last-child, .eq-bulle-assistant ol:last-child { margin-bottom: 0; }
.eq-bulle-assistant ul, .eq-bulle-assistant ol { margin: 0 0 6px; padding-left: 20px; }
.eq-bulle-assistant li { margin: 2px 0; }
.eq-bulle-assistant .titre-reponse { margin-top: 4px; }
.eq-bulle-assistant code { font-size: 13px; background: #e6edf9; padding: 0 4px; border-radius: 4px; }
.eq-bulle-assistant pre { overflow-x: auto; background: #e6edf9; padding: 6px 8px; border-radius: 6px; }
.eq-assistant-marque { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #1f4f9c; }
.eq-assistant-marque svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eq-assistant-erreur { margin: 0; color: #7a5200; }
.tuto-cite { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0; }
.eq-bulle-assistant .lien-tuto { font-weight: 700; color: #1f4f9c; text-decoration: none; padding: 3px 9px; border-radius: 999px; background: #dfe9fa; }
.eq-bulle-assistant .lien-tuto:hover, .eq-bulle-assistant .lien-tuto:focus-visible { background: #1f4f9c; color: var(--blanc); }
.lien-tuto-copier, .eq-copier { font: inherit; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid #c9d0dc; background: var(--blanc); color: var(--nuit); cursor: pointer; }
.lien-tuto-copier:hover, .eq-copier:hover, .lien-tuto-copier:focus-visible, .eq-copier:focus-visible { border-color: var(--nuit); }
.eq-copie { background: #e2f2da !important; border-color: #5aa33a !important; color: #2f6b1f !important; }
.eq-attente { align-self: flex-start; margin: 4px 0 0 44px; padding: 6px 12px; border-radius: 12px; background: #f3f7fe; border: 1px dashed #c9d8f2; color: #1f4f9c;
  font-size: 13.5px; animation: eq-attente 1.6s ease-in-out infinite; }
@keyframes eq-attente { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .eq-attente { animation: none; } }
.eq-fenetre-tuto[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 64px 16px 24px; overflow-y: auto; }
.eq-fenetre-tuto h2 { margin: 0; color: var(--blanc); font-size: 18px; text-align: center; max-width: 900px; }
.eq-fenetre-tuto > div { width: min(900px, 100%); }
.eq-fenetre-tuto .eq-tuto p { color: #dfe4ee; }
.eq-fenetre-tuto .eq-tuto .aide { color: #b9c1d1; }
.eq-tuto { display: flex; flex-direction: column; gap: 8px; }
.eq-tuto video { width: 100%; max-height: calc(var(--eq-h, 100vh) - 220px); border-radius: 8px; background: #000; }
.eq-tuto p { margin: 0; }
.eq-tuto .eq-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* ---------------------------------------------------------------- « Infos » : la fiche d'un centre ou d'un client (19/11) */
.eq-bouton-infos { display: inline-flex; align-items: center; gap: 4px; }
.eq-bouton-infos svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.eq-fiche { gap: 12px; }
.eq-fiche-carte { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.eq-fiche-carte h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris-texte); }
.eq-fiche-carte h3 svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eq-fiche-carte h3 .aide { margin: 0; text-transform: none; letter-spacing: 0; }
.eq-fiche-nom { margin: 0; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.eq-fiche-nom a { color: var(--nuit); font-weight: 700; }
.eq-fiche-lignes { margin: 0; display: grid; gap: 6px; }
.eq-fiche-lignes > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.eq-fiche-lignes dt { font-size: 12.5px; color: var(--gris-texte); }
.eq-fiche-lignes dd { margin: 0; overflow-wrap: anywhere; }
.eq-contact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.eq-contact a { font-weight: 600; }
.eq-fiche-comptes, .eq-fiche-centres, .eq-fiche-journal { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eq-fiche-comptes li, .eq-fiche-centres li { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; border-top: 1px solid var(--bordure); }
.eq-fiche-comptes li:first-child, .eq-fiche-centres li:first-child { padding-top: 0; border-top: 0; }
.eq-fc-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.eq-fc-admin { background: #e3ecfb; color: #1f4f9c; }
.eq-fiche-comptes .aide, .eq-fiche-centres .aide { margin: 0; font-size: 12.5px; }
.eq-fiche-journal li { font-size: 13.5px; }
.eq-fiche .eq-carte-centre { margin: 0; }
@media (max-width: 560px) { .eq-fiche-lignes > div { grid-template-columns: 1fr; gap: 0; } }

/* ---------------------------------------------------------------- « Partager dans… » (19/11) */
.eq-citation-fixe { background: var(--blanc); }
.eq-cibles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.eq-cible { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--blanc); border: 1px solid var(--bordure); }
.eq-cible .eq-item-texte { flex: 1; min-width: 0; }

/* les notifications de cet appareil dans Réglages (19/11) ; « Actualiser » à côté de « Nouveau » */
.eq-notifs-reglages { font-size: 14.5px; color: var(--nuit); gap: 8px 14px; }
.eq-lien-reglages svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* « Chercher les infos » d'une fiche de LDRD (19/11, vues/recherche-infos.js) : le bouton en tête du formulaire, le
   panneau des propositions à côté (au-dessus sous 1080 px), un champ rempli par une proposition */
.fiche-cote { display: grid; grid-template-columns: minmax(0, 820px); gap: 24px; align-items: start; }
.fiche-cote.avec-propositions { grid-template-columns: minmax(0, 820px) minmax(300px, 400px); }
.fiche-cote > .formulaire-large { max-width: none; }
@media (max-width: 1080px) {
  .fiche-cote.avec-propositions { grid-template-columns: minmax(0, 1fr); }
  .fiche-cote .propositions { order: -1; position: static; }
}
.chercher-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--bordure); }
.chercher-tete[hidden] { display: none; }
.chercher-tete p { margin: 0; flex: 1 1 260px; }
.bouton-chercher { white-space: nowrap; }
.champ-propose input { background: var(--vert-fond); border-color: var(--vert-soutenu); }
.champ-avant { font-size: 12px; color: var(--gris-texte); margin: 4px 0 0; }
.champ-avant button { font: inherit; color: var(--nuit); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.propositions { position: sticky; top: 16px; padding: 22px; min-width: 0; }
.propositions-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.propositions-tete h2 { font-size: 18px; margin: 0; }
.propositions-tete .bouton-lien { padding: 3px 10px; }
.prop-source { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bordure); }
.prop-source h3 { font-size: 14px; margin: 0 0 2px; font-family: var(--police-titre); }
.prop-source > .aide { display: block; margin-bottom: 6px; }
.prop-attente { font-style: italic; }
.prop-erreur { margin: 8px 0 0; font-size: 13px; }
.prop-pour { margin: 0 0 4px; }
.prop { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.prop + .prop { border-top: 1px dashed var(--bordure); }
.prop-quoi { font-size: 12px; color: var(--gris-texte); }
.prop-valeur { overflow-wrap: anywhere; }
.prop-valeur .aide { display: block; font-size: 12px; }
.prop .bouton-lien, .etab .bouton-lien { padding: 5px 11px; font-size: 12px; white-space: nowrap; }
.prop .bouton-lien[disabled], .etab .bouton-lien[disabled] { opacity: .6; cursor: default; }
.bouton-lien.bouton-copier { padding: 2px 9px; font-size: 11px; }
.pastille-verifier { background: #fdf1dc; color: #7a4a06; font-size: 11px; }
.pastille-sure { background: var(--vert-badge); font-size: 11px; }
.pastille-ferme { background: var(--gris-pastille); color: var(--gris-texte); font-size: 11px; }
.etab { padding: 9px 10px; border: 1px solid var(--bordure); border-radius: 10px; margin-bottom: 8px; font-size: 13px; overflow-wrap: anywhere; }
.etab.meilleur { border-color: var(--vert-soutenu); background: var(--vert-fond); }
.etab b { font-size: 14px; }
.etab .ligne { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.etab-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.liens-externes { display: flex; gap: 8px; flex-wrap: wrap; }
.liens-externes a { font-size: 13px; }
details.autres summary { cursor: pointer; font-size: 13px; color: var(--nuit); margin: 4px 0 8px; }
.note-recherche { font-size: 12px; color: var(--gris-texte); margin: 14px 0 0; }

/* Équipe : les demandes de contact de hearfit.fr (20/11) — la carte, les mails échangés sous elle */
.eq-contact-carte { align-items: stretch; background: #fff7e6; border: 1px solid #f3dcae; }
.eq-contact-qui { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.eq-contact-qui b { font-family: var(--police-titre); font-size: 15px; }
.eq-contact-qui span { font-size: 13px; color: var(--gris-texte); }
.eq-boite .eq-contact-coord { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.eq-contact-coord a, .eq-contact-coord span { font-weight: 700; color: var(--nuit); text-decoration: none; overflow-wrap: anywhere; }
.eq-contact-coord a:hover { text-decoration: underline; }
.eq-contact-message { padding: 8px 10px; border-radius: 8px; background: var(--blanc); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.eq-boite .eq-contact-date { font-size: 12px; color: var(--gris-texte); }
.eq-boite .eq-contact-etat { font-size: 13px; color: var(--gris-texte); }
.eq-boite .eq-contact-fait { font-weight: 600; color: #2f6b1f; }
.eq-boite .eq-contact-recu { font-weight: 600; color: #7a5200; }
.eq-contact-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 0; }
.eq-contact-mail { display: flex; flex-direction: column; gap: 4px; white-space: normal; }
.eq-contact-mail-tete { margin: 0; font-size: 12.5px; opacity: .8; }
.eq-contact-mail-tete span { font-size: 12px; }
.eq-contact-mail-texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.eq-contact-mail-entrant { background: #fff7e6; border-color: #f3dcae; }
.eq-contact-mail .eq-contact-actions { margin-top: 4px; }
.eq-dialogue-contact { width: min(560px, calc(100vw - 32px)); }
.eq-dialogue-contact textarea { width: 100%; }
