/* Thème sobre et professionnel, texte grand et contrasté pour rester lisible par des personnes âgées */
:root {
  --fond: #f4f6f8;
  --carte: #ffffff;
  --texte: #111827;
  --texte-doux: #5f6b7a;
  --bordure: #dfe3e8;
  --principal: #1d4f91;
  --principal-fonce: #163d71;
  --principal-clair: #eaf0f8;
  --rouge: #c62828;
  --rouge-fonce: #a31f1f;
  --rouge-clair: #fdecec;
  --vert: #1f7a4d;
  --orange: #9a5b00;
  --grise: #eef1f4;
  --rayon: 10px;
  --ombre: 0 1px 2px rgba(16, 24, 40, .05);
  --bordure-champ: #c9d0d8;
  --focus: rgba(29, 79, 145, .2);
  --police: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --police-titres: var(--police);
}

/* Thème « Chaleureux » : activé par le bouton Style */
:root[data-theme="chaleureux"] {
  --fond: #faf6f0;
  --carte: #fffdf9;
  --texte: #2b2118;
  --texte-doux: #7a6a5a;
  --bordure: #e8dfd2;
  --bordure-champ: #d6c9b8;
  --principal: #9c4a24;
  --principal-fonce: #7d3a1c;
  --principal-clair: #f6e9df;
  --rouge: #b3261e;
  --rouge-fonce: #8f1e18;
  --rouge-clair: #f9e4e1;
  --grise: #f1ebe2;
  --rayon: 8px;
  --focus: rgba(156, 74, 36, .2);
  --police: "Source Sans 3", "Segoe UI", system-ui, Arial, sans-serif;
  --police-titres: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.5;
  background: var(--fond);
  color: var(--texte);
  -webkit-font-smoothing: antialiased;
}

/* ---------- En-tête ---------- */
.entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--carte);
  border-bottom: 1px solid var(--bordure);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo-marque { width: 12px; height: 12px; border-radius: 3px; background: var(--principal); }
.droite-entete { display: flex; gap: 12px; align-items: center; }
#zone-utilisateur { display: flex; gap: 16px; align-items: center; font-size: 15px; color: var(--texte-doux); }

main { max-width: 920px; margin: 0 auto; padding: 32px 16px 64px; }

h1, h2 { font-family: var(--police-titres); }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 19px; font-weight: 600; margin: 0 0 16px; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .04em; }
.sous-titre { color: var(--texte-doux); margin: 4px 0 0; }

.carte {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--ombre);
}

/* ---------- Boutons ---------- */
.btn {
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  background: var(--principal);
  color: #fff;
}
.btn:hover { background: var(--principal-fonce); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondaire { background: var(--carte); color: var(--texte); border-color: var(--bordure); }
.btn-secondaire:hover { background: var(--grise); }
.btn-petit { padding: 8px 14px; font-size: 15px; }
.btn-lien { background: none; color: var(--principal); padding: 4px 6px; font-weight: 500; }
.btn-lien:hover { background: none; text-decoration: underline; }
.btn-retirer { background: none; border: none; color: var(--texte-doux); padding: 8px; cursor: pointer; border-radius: 6px; font-size: 20px; line-height: 1; }
.btn-retirer:hover { color: var(--rouge); background: var(--rouge-clair); }

/* ---------- Connexion ---------- */
.connexion { max-width: 440px; margin: 24px auto; }
.connexion h1 { margin-bottom: 6px; }
.connexion .sous-titre { margin-bottom: 24px; }
.onglets { display: flex; background: var(--grise); padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.onglet {
  flex: 1;
  font: inherit;
  font-weight: 600;
  padding: 10px;
  border: none;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  color: var(--texte-doux);
}
.onglet.actif { background: var(--carte); color: var(--texte); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.aide { font-size: 14px; color: var(--texte-doux); margin: 16px 0 0; }

/* ---------- Champs ---------- */
label, .libelle { display: block; font-weight: 500; margin-bottom: 6px; font-size: 15px; }
.obligatoire { color: var(--rouge); margin-left: 2px; }
input[type="text"], input[type="password"] {
  font: inherit;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--bordure-champ);
  border-radius: 8px;
  background: var(--carte);
  color: var(--texte);
}
input:focus { outline: none; border-color: var(--principal); box-shadow: 0 0 0 3px var(--focus); }
input[readonly] { background: var(--grise); color: var(--texte-doux); border-color: var(--grise); }
input.invalide { border-color: var(--rouge); background: #fffafa; }
input.invalide:focus { box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.msg-erreur { color: var(--rouge); font-size: 14px; font-weight: 500; margin: 6px 0 0; }
.msg-erreur:empty { display: none; }
.champ { margin-bottom: 18px; }
.champ-unite { position: relative; }
.champ-unite input { padding-right: 48px; }
.champ-unite .unite { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--texte-doux); font-size: 15px; pointer-events: none; }
.indication { font-size: 13px; color: var(--texte-doux); margin-top: 4px; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grille-3 { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; }

/* ---------- Accueil patient ---------- */
.entete-accueil { margin-bottom: 24px; }
.grille-accueil { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }

.carte-appel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 32px 24px;
}
.carte-appel h2 { margin: 20px 0 4px; }
.carte-appel p { margin: 0; color: var(--texte-doux); font-size: 15px; }
.bouton-appel {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: none;
  background: var(--rouge);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 0 10px var(--rouge-clair), 0 8px 24px rgba(198, 40, 40, .3);
  transition: transform .1s;
}
.bouton-appel:hover { background: var(--rouge-fonce); }
.bouton-appel:active { transform: scale(.97); }
.bouton-appel svg { width: 44px; height: 44px; }

.actions-accueil { display: flex; flex-direction: column; gap: 20px; }
.action {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 24px;
  border-radius: var(--rayon);
  border: 1px solid var(--bordure);
  background: var(--carte);
  color: var(--texte);
  cursor: pointer;
  box-shadow: var(--ombre);
}
.action:hover { border-color: var(--principal); }
.action-icone { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--principal-clair); color: var(--principal); display: flex; align-items: center; justify-content: center; }
.action-icone svg { width: 26px; height: 26px; }
.action-texte { flex: 1; }
.action-titre { display: block; font-size: 19px; font-weight: 600; }
.action-detail { display: block; color: var(--texte-doux); font-size: 15px; margin-top: 2px; }
.action-fleche { color: var(--texte-doux); }

.derniere { margin-top: 20px; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chiffre-libelle { font-size: 14px; color: var(--texte-doux); }
.chiffre-valeur { font-size: 22px; font-weight: 600; }

/* ---------- Formulaire ---------- */
.choix-moment { display: flex; gap: 10px; flex-wrap: wrap; }
.choix-moment label {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 11px;
  border: 1px solid var(--bordure-champ);
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}
.choix-moment input { position: absolute; opacity: 0; pointer-events: none; }
.choix-moment label:has(input:checked) { border-color: var(--principal); background: var(--principal-clair); color: var(--principal); font-weight: 600; }
.choix-moment label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus); }

.echelle-bornes { display: flex; justify-content: space-between; font-size: 13px; color: var(--texte-doux); }

/* Cases à cocher de 1 à 10 (douleur) */
.cases { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.cases label { margin: 0; }
.cases input { position: absolute; opacity: 0; pointer-events: none; }
.cases span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--bordure-champ);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  background: var(--carte);
}
.cases span:hover { border-color: var(--principal); }
.cases input:checked + span { background: var(--principal); border-color: var(--principal); color: #fff; }
.cases input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }
.cases.invalide span { border-color: var(--rouge); }

.position { border-top: 1px solid var(--bordure); padding-top: 18px; margin-top: 18px; }
.position:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.tableau-tension { width: 100%; border-collapse: collapse; }
.tableau-tension th { text-align: center; font-size: 14px; color: var(--texte-doux); font-weight: 500; padding: 4px 6px; }
.tableau-tension th:first-child { text-align: left; }
.tableau-tension td { padding: 4px 6px; }
.tableau-tension td:first-child { font-weight: 500; white-space: nowrap; }
.tableau-tension input { padding: 9px; text-align: center; }
.unite-ligne { color: var(--texte-doux); font-weight: 400; font-size: 13px; display: block; }
.moyenne { font-weight: 600; color: var(--principal); text-align: center; white-space: nowrap; min-width: 70px; }

.traitement-ligne { display: grid; grid-template-columns: 2fr 1fr 1.4fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.entetes-traitement { font-size: 14px; color: var(--texte-doux); font-weight: 500; margin-bottom: 6px; }

.barre-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.alerte-formulaire { background: var(--rouge-clair); color: var(--rouge); border-radius: 8px; padding: 12px 16px; font-weight: 500; margin-bottom: 16px; }
.alerte-formulaire:empty { display: none; }
.note-obligatoire { font-size: 14px; color: var(--texte-doux); margin: 0 0 16px; }

/* ---------- Listes / historique ---------- */
.ligne-saisie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bordure);
}
.ligne-saisie:first-child { padding-top: 0; }
.ligne-saisie:last-child { border-bottom: none; padding-bottom: 0; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 6px; background: var(--principal-clair); color: var(--principal); font-size: 13px; font-weight: 600; margin-left: 6px; }
.badge-orange { background: #fff3e0; color: var(--orange); }
.resume { color: var(--texte-doux); font-size: 15px; }
.vide { text-align: center; color: var(--texte-doux); padding: 24px 0; }
.entete-page { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

.detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 32px; margin: 0; }
.detail dt { color: var(--texte-doux); }
.detail dd { margin: 0; font-weight: 600; }

/* ---------- Fenêtre d'appel ---------- */
.fenetre { position: fixed; inset: 0; background: rgba(17, 24, 39, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.fenetre.cachee { display: none; }
.fenetre-contenu { background: var(--carte); border-radius: 12px; padding: 28px 24px; max-width: 440px; width: 100%; max-height: 92vh; overflow-y: auto; text-align: center; }
.fenetre-contenu p { color: var(--texte-doux); }
.onde { width: 72px; height: 72px; border-radius: 50%; background: var(--rouge); margin: 0 auto 20px; animation: pulsation 1.4s infinite; }
@keyframes pulsation {
  0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .5); }
  100% { box-shadow: 0 0 0 26px rgba(198, 40, 40, 0); }
}

.message-ok { background: #e8f5ee; color: var(--vert); border-radius: 8px; padding: 12px 16px; font-weight: 500; margin-bottom: 20px; }

/* ---------- Téléphone ---------- */

/* ---------- Fenêtre d'appel : liste des soignants et urgence ---------- */
.liste-appel { text-align: left; margin: 0 auto 12px; padding-left: 22px; display: inline-block; }
.liste-appel li { margin-bottom: 4px; font-weight: 500; }
.urgence { background: var(--rouge-clair); border-radius: 10px; padding: 14px; margin: 16px 0 12px; }
.urgence p { margin: 0 0 10px; color: var(--texte); }
.btn-urgence { display: block; text-decoration: none; background: var(--rouge); }
.btn-urgence:hover { background: var(--rouge-fonce); }

/* ---------- Badges supplémentaires ---------- */
.badge-vert { background: #e8f5ee; color: var(--vert); }
.badge-gris { background: var(--grise); color: var(--texte-doux); }
.badge { white-space: nowrap; }
.msg-ok-petit { color: var(--vert); font-size: 14px; font-weight: 500; margin: 0 0 12px; }
#msg-export:empty { display: none; }
.boutons-entete { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Espace soignant : disponibilité ---------- */
.carte-dispo { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-left: 4px solid var(--bordure-champ); }
.carte-dispo.est-dispo { border-left-color: var(--vert); }
.carte-dispo p { margin: 6px 0 0; color: var(--texte-doux); font-size: 15px; }
.statut { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--texte-doux); }
.statut .point { width: 12px; height: 12px; border-radius: 50%; background: var(--bordure-champ); }
.est-dispo .statut { color: var(--vert); }
.est-dispo .statut .point { background: var(--vert); box-shadow: 0 0 0 4px #e8f5ee; }

.interrupteur { flex: none; position: relative; width: 64px; height: 36px; border-radius: 18px; border: none; background: var(--bordure-champ); cursor: pointer; transition: background .2s; }
.interrupteur span { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interrupteur[aria-checked="true"] { background: var(--vert); }
.interrupteur[aria-checked="true"] span { transform: translateX(28px); }
.interrupteur:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 14px; box-shadow: var(--ombre); }
.stat-valeur { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat-libelle { font-size: 13px; color: var(--texte-doux); }
.stat-alerte .stat-valeur { color: var(--orange); }

/* ---------- Liste des patients du soignant ---------- */
.patient-ligne { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--texte); background: none; border: none; border-bottom: 1px solid var(--bordure); padding: 14px 0; cursor: pointer; }
.patient-ligne:last-child { border-bottom: none; padding-bottom: 0; }
.patient-ligne:first-of-type { padding-top: 0; }
.patient-ligne:hover .patient-nom { color: var(--principal); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--principal-clair); color: var(--principal); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.patient-infos { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.patient-infos .badge { margin-left: 0; margin-top: 2px; }
.patient-nom { font-weight: 600; font-size: 18px; }

/* ---------- Administration : import ---------- */
.colonnes-attendues { margin: 12px 0 16px; font-size: 15px; }
.colonnes-attendues summary { cursor: pointer; font-weight: 600; color: var(--principal); }
.colonnes-attendues ul { padding-left: 20px; margin: 10px 0; }
.colonnes-attendues li { margin-bottom: 4px; }
.colonnes-attendues code { background: var(--grise); padding: 1px 6px; border-radius: 4px; font-size: 14px; }
.zone-fichier { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 16px 0 0; padding: 22px 16px; border: 2px dashed var(--bordure-champ); border-radius: var(--rayon); cursor: pointer; text-align: center; color: var(--texte-doux); font-weight: 400; }
.zone-fichier strong { color: var(--principal); font-size: 17px; }
.zone-fichier:hover { border-color: var(--principal); background: var(--principal-clair); }
.apercu { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bordure); }
.apercu h3 { text-transform: none; letter-spacing: 0; color: var(--texte); font-size: 17px; }
.tableau-defilant { overflow-x: auto; margin: 12px 0; border: 1px solid var(--bordure); border-radius: 8px; }
.tableau-simple { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau-simple th { text-align: left; background: var(--grise); padding: 8px 10px; font-weight: 600; font-size: 14px; }
.tableau-simple td { padding: 8px 10px; border-top: 1px solid var(--bordure); vertical-align: top; }
.tableau-simple .resume { font-size: 13px; }

/* ---------- Menu « Exporter » ---------- */
.choix-export { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.option-export { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--texte); background: var(--carte); border: 1px solid var(--bordure-champ); border-radius: var(--rayon); padding: 14px 16px; cursor: pointer; }
.option-export:hover { border-color: var(--principal); background: var(--principal-clair); }
.option-export:disabled { opacity: .5; cursor: not-allowed; }
.option-titre { font-weight: 600; font-size: 17px; color: var(--principal); }

/* ---------- Visionneuse PDF plein écran ---------- */
.visionneuse { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #525659; }
.visionneuse.cachee { display: none; }
.visionneuse-barre { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--carte); border-bottom: 1px solid var(--bordure); }
.visionneuse-titre { flex: 1; text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visionneuse-pages { flex: 1; overflow: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
.visionneuse-pages canvas { display: block; margin: 0 auto 8px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.visionneuse-zoom { position: absolute; right: 16px; bottom: 20px; display: flex; gap: 8px; }
.visionneuse-zoom .btn { width: 52px; height: 52px; padding: 0; font-size: 26px; line-height: 1; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.visionneuse-attente { color: #fff; text-align: center; margin: 40px 16px; }
body.sans-defilement { overflow: hidden; }

@media (max-width: 700px) {
  main { padding-top: 24px; }
  .entete { padding: 12px 16px; }
  .logo, #zone-utilisateur .btn-lien { white-space: nowrap; }
  #zone-utilisateur .nom-utilisateur { display: none; }
  .grille-2, .grille-3, .grille-accueil { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .cases { gap: 4px; }
  .cases span { height: 46px; font-size: 16px; border-radius: 6px; }
  .traitement-ligne { grid-template-columns: 1fr 1fr auto; }
  .traitement-ligne .t-nom { grid-column: 1 / -1; }
  .entetes-traitement { display: none; }
  .tableau-tension td, .tableau-tension th { padding: 3px 2px; }
  .tableau-tension input { padding: 8px 2px; }
  .moyenne { min-width: 44px; font-size: 15px; }
  .tableau-tension .long { display: none; }
  .tableau-tension td:first-child { font-size: 15px; }
  .carte { padding: 18px 14px; }
  .choix-moment label { min-width: 0; }
  .stats { gap: 8px; }
  .stat { padding: 10px; }
  .stat-valeur { font-size: 22px; }
  .stat-libelle { font-size: 12px; }
  .carte-dispo { align-items: flex-start; }
  .entete-page h1 { font-size: 24px; }
}

/* ---------- Administration : fenêtre « Gérer » ---------- */
.gestion { text-align: left; }
.gestion h2 { margin-bottom: 4px; }
.gestion h3 { font-size: 16px; margin: 22px 0 8px; }
.gestion .btn { margin-bottom: 10px; }
.ligne-lien { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.ligne-lien select { flex: 1; min-width: 0; padding: 10px; font-size: 16px; border: 1px solid var(--bordure); border-radius: 8px; background: var(--carte); color: var(--texte); }
.btn-danger { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.gestion .champ select { width: 100%; padding: 12px; font-size: 16px; border: 1px solid var(--bordure); border-radius: 8px; background: var(--carte); color: var(--texte); }
.gestion input[type="date"] { font: inherit; width: 100%; padding: 11px 13px; border: 1px solid var(--bordure-champ); border-radius: 8px; background: var(--carte); color: var(--texte); }

/* ---------- Appel (Agora) ---------- */
.boutons-appel { display: grid; gap: 10px; margin: 12px 0; }
.boutons-appel:empty { display: none; }
.chrono { font-size: 34px; font-weight: 700; color: var(--texte); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.btn-vert { background: var(--vert); color: #fff; border-color: var(--vert); }
.videos { margin: 8px 0 12px; }
.video-distante { width: 100%; aspect-ratio: 4 / 3; background: #111; border-radius: 10px; overflow: hidden; }
.video-locale { width: 96px; aspect-ratio: 4 / 3; background: #111; border-radius: 8px; overflow: hidden; margin: 8px auto 0; }
.video-distante:empty, .video-locale:empty { display: none; }

/* ---------- Champ mot de passe avec l'œil pour voir ce qu'on écrit ---------- */
.champ-mdp { position: relative; }
.champ-mdp input { padding-right: 52px; }
.oeil { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--texte-doux); cursor: pointer; border-radius: 8px; }
.oeil:hover, .oeil.actif { color: var(--texte); }
.oeil:focus-visible { outline: 3px solid var(--focus); }
.oeil .barre { display: none; }
.oeil.actif .barre { display: block; }

/* ---------- Barre d'appel : l'appel continue pendant qu'on utilise l'appli ---------- */
.barre-appel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--vert); color: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, .25); }
.barre-appel.cachee { display: none; }
.barre-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border: none; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.barre-nom { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-chrono { font-size: 14px; opacity: .9; font-variant-numeric: tabular-nums; }
.barre-appel .btn-secondaire { background: #fff; color: var(--texte); border-color: #fff; }
.barre-appel .btn-secondaire.coupe { background: var(--orange); color: #fff; border-color: var(--orange); }
body.avec-appel { padding-bottom: 84px; }

/* Remplissage par photo */
.photo-tension { margin-bottom: 14px; }
.photo-tension .btn { width: 100%; }
.cv-photo { display: block; width: 100%; max-width: 400px; margin: 8px auto 14px; border-radius: 8px; border: 1px solid var(--bordure); cursor: crosshair; }
.lecture-champs input { text-align: center; font-size: 20px; }
.lecture-champs input.invalide { border-color: #d97706; background: #fffbeb; }
.confirmer-lecture { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 14px; font-size: 15px; text-align: left; }
.confirmer-lecture input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
