/* Zecall : téléphone compact, utilisable en petite fenêtre (ouverte depuis Zespot) comme en plein écran */
body { min-height: 100vh; }
.tel { max-width: 440px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; }
.tel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.ligne { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ligne .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ligne.ok .pt { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.ligne.attente .pt { background: var(--warn); }
.ligne.erreur { color: var(--danger); } .ligne.erreur .pt { background: var(--danger); }
.bandeau { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--text); font-size: 12px; padding: 6px 16px; text-align: center; }
.tel-nav { display: flex; border-bottom: 1px solid var(--line); }
.tel-nav a { flex: 1; text-align: center; padding: 9px 0 7px; color: var(--muted); font-weight: 600; font-size: 12px; border-bottom: 2px solid transparent; display: flex; flex-direction: column; gap: 1px; }
.tel-nav a span { font-size: 16px; }
.tel-nav a.active { color: var(--text); border-color: var(--brand); }
.tel-nav a:hover { text-decoration: none; color: var(--text); }
#vue { flex: 1; padding: 16px; overflow: auto; }

/* Clavier */
.clavier { display: flex; flex-direction: column; gap: 10px; }
.saisie { display: flex; align-items: center; gap: 4px; border-bottom: 2px solid var(--line); padding-bottom: 4px; }
.saisie:focus-within { border-color: var(--brand); }
.saisie input { border: 0 !important; outline: 0 !important; font-size: 24px; font-weight: 600; text-align: center; padding: 6px 0; background: transparent; letter-spacing: .02em; }
.saisie input::placeholder { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.cible { display: flex; gap: 10px; align-items: center; background: var(--brand-soft); border-radius: 10px; padding: 8px 12px; }
.sugg { display: flex; flex-direction: column; max-height: 220px; overflow: auto; }
.sugg-l { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 7px 6px; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.sugg-l:hover { background: var(--bg); }
.sugg-l .grow { display: flex; flex-direction: column; min-width: 0; }
.sugg-l .grow > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-tel { color: var(--ok); display: inline-flex; } .mini-tel svg { width: 18px; height: 18px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; justify-items: center; margin: 4px 0; }
.touche { width: 70px; height: 58px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; user-select: none; }
.touche b { font-size: 22px; font-weight: 600; line-height: 1.1; }
.touche small { font-size: 9px; color: var(--muted); letter-spacing: .12em; min-height: 11px; }
.touche:hover { border-color: var(--brand); } .touche:active { transform: scale(.96); background: var(--brand-soft); }
.rond { width: 64px; height: 64px; border-radius: 50%; border: 0; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin: 6px auto; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.rond:hover { filter: brightness(1.08); } .rond:active { transform: scale(.96); }
.rond.vert { background: #16a34a; } .rond.rouge { background: var(--danger); }

/* Écran d'appel (au-dessus de tout) */
#couche { display: none; }
#couche.ouverte { display: block; position: absolute; inset: 0; background: var(--surface); z-index: 50; overflow: auto; }
.ecran-appel { min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 18px 20px; }
.ecran-appel .qui { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ecran-appel .qui .avatar { width: 76px; height: 76px; font-size: 26px; margin-bottom: 6px; }
.ecran-appel .nom { font-size: 22px; font-weight: 700; }
.ecran-appel .ent { font-weight: 600; }
.ecran-appel .etat { color: var(--muted); font-weight: 600; } .ecran-appel .etat b { color: var(--text); margin-left: 4px; font-variant-numeric: tabular-nums; }
.ecran-appel textarea { width: 100%; min-height: 90px; }
.ecran-appel audio { width: 100%; height: 36px; margin: 2px 0 8px; }
.ecran-appel.resume { padding-top: 18px; }
.actions-appel { display: flex; gap: 14px; justify-content: center; }
.act { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 14px; padding: 9px 14px; min-width: 76px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.act span { font-size: 20px; } .act.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.actions-entrant { display: flex; gap: 60px; margin-top: 30px; }
.actions-entrant .rond.vert { animation: sonne 1.2s infinite; }
@keyframes sonne { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } 50% { transform: rotate(0); } }
#rec { display: inline-flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 600; }
.rec-pt { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: clignote 1.4s infinite; }
@keyframes clignote { 50% { opacity: .25; } }
.chips, .filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.chip-btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Historique */
.histo { display: flex; flex-direction: column; gap: 10px; }
.hl { display: flex; flex-direction: column; }
.hl-l { display: flex; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 4px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.hl-l:hover { background: var(--bg); }
.hl-l .grow { display: flex; flex-direction: column; min-width: 0; }
.hl-l .sens { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ok); flex: none; }
.hl-l .sens.rouge { color: var(--danger); }
.vide { text-align: center; color: var(--muted); padding: 40px 0; }

/* Réglages */
.reglages h3 { margin-bottom: 6px; }
.num-l { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; font-weight: 500; cursor: pointer; }
.num-l.pris { opacity: .55; cursor: not-allowed; }
.num-l input { accent-color: var(--brand); }
.info { background: var(--brand-soft); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 8px; }
.vu { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; margin-top: 10px; } .vu span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .08s; }
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
@media (max-width: 440px) { .tel { border: 0; } .touche { width: 64px; } }
