/* ============================================================================================================================
   CIT · écrans du TÉLÉPHONE — lot M13 / M14 / M15 (25/09/2026)
   M13 « Aujourd'hui » (mobile.html) ; M14 fiche / M15 nouvelle (fiche-inter.html, mode téléphone) arrivent au sous-lot D.
   Sources : MAQUETTE_tel_aujourdhui (390×844), AMENDEMENTS_M13_M15, REPONSE_ECARTS (C7 couleurs d'état, C8 barre du bas, C9
   « Optimiser »). Mesures de la maquette (± 2 px) ; couleurs = jetons cit-ds.css (clair / sombre suivent data-theme).
   Préfixe .ct- (cit téléphone) : ne touche aucun autre écran.
   ============================================================================================================================ */

/* ── Barre du bas : trait 1 px + 6 px + onglets 66 × 50 (texte 11 px, icône 20 px) + la marge système du bas
   (REPONSE_M14_M15_TEL Q-C4 : « 50 px + env(safe-area-inset-bottom) » — les 84 px de la maquette sur iPhone, 50 px + la zone
   gestuelle sur Android ; même règle pour tous les écrans du téléphone) ───────────────────────────────────────────────────── */
:root, :root[data-skin="ios"] { --nav-h: 57px; }
html body .gp-bottom-nav.ct-nav {
  height: calc(var(--nav-h) + var(--safe-bottom, 0px)); box-sizing: border-box;
  padding: 6px 0 var(--safe-bottom, 0px);
  background: color-mix(in srgb, var(--cit-surface) 94%, transparent);
  border-top: 1px solid var(--cit-border); border-radius: 0; box-shadow: none;
  justify-content: space-around; align-items: flex-start;
}
html .gp-bottom-nav.ct-nav .gp-bottom-nav__item {
  flex: 0 1 66px; width: 66px; min-width: 0; height: 50px; min-height: 0; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 400 11px var(--cit-police); letter-spacing: normal; color: var(--cit-text2); transform: none; opacity: 1;
}
html .gp-bottom-nav.ct-nav .gp-bottom-nav__item.is-active { color: var(--cit-accent); font-weight: 600; }
html body .gp-bottom-nav.ct-nav.ct-nav--6 .gp-bottom-nav__item { font-size: 10px; }   /* admin / responsable : 6 onglets de 65 px */
html .gp-bottom-nav.ct-nav .gp-bottom-nav__item::before { display: none; }
html .gp-bottom-nav.ct-nav .gp-bottom-nav__item svg { display: block; width: 20px; height: 20px; margin: 2px 0; transform: none; stroke: currentColor; }
html .gp-bottom-nav.ct-nav .gp-bottom-nav__item:active { transform: none; opacity: .5; }
html .gp-bottom-nav.ct-nav .gp-nav-new { color: var(--cit-text2); font-weight: 400; }

/* ── Écran Aujourd'hui : cadre ───────────────────────────────────────────────────────────────────────────────────────────── */
body:has(#view-today.active) #app-header { display: none !important; }   /* l'écran a son propre en-tête (maquette) */
#view-today { padding-top: 0; font-family: var(--cit-police); font-size: 15px; line-height: normal; color: var(--cit-text); }
/* les boutons et liens de l'écran gardent la police de la maquette (l'habillage iOS leur en donne une autre, plus étroite) */
#view-today button, #view-today a, #view-today h1, .ct-feuille button { font-family: var(--cit-police); letter-spacing: normal; }
#view-today:not(.ct-cherche) .gp-search { display: none !important; }    /* recherche derrière ⌕ (amendement M13) */
#view-today .gp-search { margin: 0 0 12px; }
#today-list { display: flex; flex-direction: column; gap: 12px; }
#today-list > * { margin: 0; }

/* En-tête : 8 px + rangée de 44 px + 8 px, fond translucide, trait bas */
.ct-head {
  position: sticky; top: var(--safe-top, 0px); z-index: 400; margin: 0 -16px 12px; padding: 8px 16px;
  background: color-mix(in srgb, var(--cit-surface) 92%, transparent); border-bottom: 1px solid var(--cit-border);
}
.ct-head__rang { display: flex; align-items: center; height: 44px; gap: 8px; }
.ct-head__txt { flex-grow: 1; min-width: 0; }
.ct-head__titre { margin: 0; font-size: 22px; line-height: normal; font-weight: 700; color: var(--cit-text); }
.ct-head__sous { font-size: 13px; color: var(--cit-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-reseau { color: var(--cit-ok-text); }
.ct-reseau.is-hors { color: var(--cit-warn-text); }
.ct-rond {
  position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; border: 0; padding: 0;
  background: var(--cit-fill); color: var(--cit-text); font-size: 17px; line-height: 44px; text-align: center; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ct-rond[aria-expanded="true"] { background: var(--cit-accent-weak); color: var(--cit-accent-text); }
.ct-rond__badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; box-sizing: border-box; padding: 0 4px; border-radius: 9px;
  background: var(--cit-danger); color: #ffffff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.ct-rond__badge[hidden] { display: none; }

/* Compteurs : 3 tuiles, écart 8 px */
.ct-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ct-kpi { background: var(--cit-surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--cit-grid); padding: 8px; text-align: center; }
.ct-kpi__v { font-size: 22px; font-weight: 700; color: var(--cit-text); font-variant-numeric: tabular-nums; }
.ct-kpi__v.is-ok { color: var(--cit-ok-text); }
.ct-kpi__v.is-warn { color: var(--cit-warn-text); }
.ct-kpi__v.is-danger { color: var(--cit-danger-text); }
.ct-kpi__l { font-size: 12px; color: var(--cit-text2); }

/* Carte « Prochaine intervention » : bleu de la marque, texte blanc (sombre : bleu foncé, contraste gardé) */
.ct-next {
  --ct-bleu: var(--cit-accent); --ct-bleu-texte: var(--cit-accent-text);
  border-radius: 16px; background: var(--ct-bleu); color: #ffffff; padding: 14px; box-shadow: 0 6px 18px rgba(10,102,214,.3); cursor: pointer;
}
:root[data-theme="dark"] .ct-next { --ct-bleu: var(--cit-accent-on-dark); --ct-bleu-texte: var(--cit-accent-on-dark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ct-next { --ct-bleu: var(--cit-accent-on-dark); --ct-bleu-texte: var(--cit-accent-on-dark); } }
.ct-next__quand { font-size: 12px; opacity: .9; }
.ct-next__l2 { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.ct-next__h { font-size: 20px; }
.ct-next__ot { font-variant-numeric: tabular-nums; }
.ct-next__do { font-size: 11px; opacity: .85; }
.ct-next__type { font-size: 17px; font-weight: 600; margin-top: 2px; }
.ct-next__adr { font-size: 13px; opacity: .92; margin-top: 2px; }
.ct-next__btns { display: flex; gap: 8px; margin-top: 12px; }
.ct-next__nav {
  flex-grow: 1; height: 44px; border-radius: 12px; border: 0; background: #ffffff; color: var(--ct-bleu-texte);
  font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.ct-next__ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; border: 0; padding: 0; background: rgba(255,255,255,.2); color: #ffffff;
  font-size: 18px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
}
.ct-next__nav:disabled, .ct-next__ic:disabled { opacity: .45; cursor: default; }
.ct-next .ct-jour { color: #ffffff; background: rgba(255,255,255,.2); margin-left: 6px; vertical-align: 2px; }
.ct-retard { padding: 0 6px; border-radius: 9px; font-weight: 600; color: var(--cit-warn-text); background: var(--cit-warn-weak); }
.ct-retard.is-rouge { color: var(--cit-danger-text); background: var(--cit-danger-weak); }

/* « Toutes les interventions du jour » */
.ct-liste__tete { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 6px; }
.ct-liste__titre { font-size: 13px; font-weight: 600; color: var(--cit-text2); text-transform: uppercase; letter-spacing: .3px; }
.ct-lien { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--cit-accent); cursor: pointer; }
.ct-lien:disabled { opacity: .5; }
.ct-cartes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

/* Carte d'intervention : bord gauche = couleur d'état (C7), Réalisée / Terminée grisée */
#today-list .ct-carte {   /* #today-list : passe avant les styles de l'ancienne carte .gp-inter-card (marge, bord gris, grille) */
  display: flex; align-items: stretch; gap: 10px; margin: 0; padding: 10px 10px 10px 12px; border: 0; border-radius: 12px; background: var(--cit-surface);
  box-shadow: 0 0 0 1px var(--cit-grid); border-left: 4px solid var(--ct-st-bord, var(--cit-gray)); opacity: 1; cursor: pointer;
}
#today-list .ct-carte.is-fini { opacity: .75; }
.ct-carte__h { width: 56px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ct-carte__h b { display: block; font-weight: 700; }
.ct-carte__h span { display: block; font-size: 12px; color: var(--cit-text2); }
.ct-carte__c { flex-grow: 1; min-width: 0; }
.ct-carte__l1 { display: flex; gap: 6px; align-items: center; min-width: 0; }
.ct-ot { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-ot.is-vide { font-weight: 400; color: var(--cit-text2); }
.ct-do { font-size: 11px; font-weight: 700; color: var(--cit-text2); }
.ct-pastille {
  margin-left: auto; flex-shrink: 0; padding: 0 7px; border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 18px;
  color: var(--ct-st-texte); background: var(--ct-st-fond);
}
.ct-jour { flex-shrink: 0; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 18px; color: var(--cit-neutral-text); background: var(--cit-neutral-weak); }
.ct-carte__h .ct-jour { display: inline-block; margin-top: 3px; }   /* plusieurs jours : sous les heures (la ligne du n° d'OT reste lisible) */
.ct-carte__type { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-carte__adr { font-size: 13px; color: var(--cit-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-carte__manque { font-size: 12px; color: var(--cit-warn-text); margin-top: 2px; }
.ct-carte__nav {
  width: 44px; height: 44px; flex-shrink: 0; align-self: center; border-radius: 22px; border: 0; background: var(--cit-accent-weak);
  color: var(--cit-accent-text); font-size: 17px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.ct-carte__nav.is-off { opacity: .35; }
.ct-st--ok      { --ct-st-bord: var(--cit-ok);     --ct-st-texte: var(--cit-ok-text);      --ct-st-fond: var(--cit-ok-weak); }
.ct-st--warn    { --ct-st-bord: var(--cit-warn);   --ct-st-texte: var(--cit-warn-text);    --ct-st-fond: var(--cit-warn-weak); }
.ct-st--accent  { --ct-st-bord: var(--cit-accent); --ct-st-texte: var(--cit-accent-text);  --ct-st-fond: var(--cit-accent-weak); }
.ct-st--violet  { --ct-st-bord: var(--cit-violet); --ct-st-texte: var(--cit-violet);       --ct-st-fond: var(--cit-violet-weak); }
.ct-st--danger  { --ct-st-bord: var(--cit-danger); --ct-st-texte: var(--cit-danger-text);  --ct-st-fond: var(--cit-danger-weak); }
.ct-st--neutral { --ct-st-bord: var(--cit-gray);   --ct-st-texte: var(--cit-neutral-text); --ct-st-fond: var(--cit-neutral-weak); }

/* Journée vide (préconisation retenue) */
.ct-vide { padding: 28px 16px; text-align: center; background: var(--cit-surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--cit-grid); }
.ct-vide__titre { font-size: 15px; font-weight: 600; color: var(--cit-text); }
.ct-vide__btn {
  margin-top: 12px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--cit-accent-weak);
  color: var(--cit-accent-text); font: inherit; font-weight: 600; cursor: pointer;
}

/* Feuille « Tournée du jour » (C9 : ordre proposé, distance avant → après, Appliquer / Garder l'ordre actuel) */
.ct-voile { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; }
.ct-feuille {
  width: 100%; max-height: 85vh; overflow: auto; box-sizing: border-box; background: var(--cit-surface); color: var(--cit-text);
  border-radius: 14px 14px 0 0; padding: 16px 16px calc(16px + var(--safe-bottom, 0px)); font-family: var(--cit-police); font-size: 15px;
}
.ct-feuille__titre { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.ct-feuille__resume { font-size: 13px; color: var(--cit-text2); margin-bottom: 10px; }
.ct-feuille__resume b { color: var(--cit-text); font-variant-numeric: tabular-nums; }
.ct-feuille__liste { list-style: none; margin: 0 0 10px; padding: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--cit-grid); overflow: hidden; }
.ct-feuille__liste li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; font-size: 13px; }
.ct-feuille__liste li + li { border-top: 1px solid var(--cit-grid); }
.ct-feuille__n { width: 18px; flex-shrink: 0; font-weight: 700; color: var(--cit-accent-text); font-variant-numeric: tabular-nums; }
.ct-feuille__hh { width: 40px; flex-shrink: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-feuille__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cit-text2); }
.ct-feuille__note { font-size: 12px; color: var(--cit-warn-text); margin-bottom: 10px; }
.ct-feuille__sous { font-size: 12px; font-weight: 600; color: var(--cit-text2); text-transform: uppercase; letter-spacing: .3px; margin: 2px 4px 6px; }
.ct-feuille__liste.is-faites { opacity: .6; }   /* Réalisées / Terminées : hors du calcul, grisées à leur heure (Q-C3) */
.ct-feuille__btns { display: flex; gap: 8px; }
.ct-feuille__btns button { flex: 1; min-height: 44px; border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.ct-btn-plein { border: 0; background: var(--cit-accent); color: #ffffff; }
.ct-btn-contour { border: 1px solid var(--cit-border); background: var(--cit-surface); color: var(--cit-text); }
.ct-feuille__aide { margin-top: 8px; font-size: 12px; color: var(--cit-text2); text-align: center; }

/* ── Fiche du téléphone (fiche-inter.html?from=mobile) : M14 « à lire » + suite, M15 « Nouvelle / Modifier » (js/fiche-tel.js) ── */
body.ct-fi-page { margin: 0; background: var(--cit-bg); }
body.ct-fige { overflow: hidden; }
#app.ct-fi-app { padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important; background: var(--cit-bg); gap: 0 !important; }
.ct-fi, .ct-f { --ct-sep: color-mix(in srgb, var(--cit-grid) 55%, var(--cit-surface)); --ct-chev: color-mix(in srgb, var(--cit-text3) 48%, var(--cit-surface));
  --ct-ph: color-mix(in srgb, var(--cit-text3) 70%, var(--cit-surface));   /* clair : #aeaeb2 (maquette M15) ; sombre : gris lisible */
  font-family: var(--cit-police); font-size: 15px; line-height: normal; color: var(--cit-text); background: var(--cit-bg); min-height: 100vh; }
/* html body … : passe avant l'habillage iOS de la fiche, qui donne aux boutons et aux champs une autre police et d'autres fonds */
html body .ct-fi button, html body .ct-fi a, html body .ct-fi input, html body .ct-fi select, html body .ct-fi textarea,
html body .ct-f button, html body .ct-f a, html body .ct-f input, html body .ct-f select, html body .ct-f textarea,
html body .ct-fi-voile button, html body .ct-fi-voile a, html body .ct-fi-voile input, html body .ct-fi-voile select, html body .ct-fi-voile textarea { font-family: var(--cit-police); letter-spacing: normal; }
.ct-fi-l[hidden] { display: none; }
.ct-fi { padding-bottom: calc(var(--nav-h) + var(--safe-bottom, 0px) + 16px); }
.ct-fi-esp { flex-grow: 1; }
.ct-fi-tete { background: color-mix(in srgb, var(--cit-surface) 92%, transparent); border-bottom: 1px solid var(--cit-border); padding: calc(6px + var(--safe-top, 0px)) 12px 10px; }
.ct-fi-r1 { display: flex; align-items: center; height: 44px; }
.ct-fi-retour { display: inline-flex; align-items: center; height: 44px; padding: 0 4px; color: var(--cit-accent); text-decoration: none; font-size: 15px; }
.ct-fi-modif { height: 36px; padding: 0 14px; border-radius: 18px; border: 0; background: var(--cit-accent-weak); color: var(--cit-accent-text); font-size: 15px; font-weight: 600; cursor: pointer; }
.ct-fi-plus-z { position: relative; }
.ct-fi-plus { width: 36px; height: 36px; margin-left: 6px; border-radius: 18px; border: 0; background: var(--cit-fill); color: var(--cit-text); font-size: 18px; cursor: pointer; }
.ct-fi-menu { position: absolute; right: 0; top: 42px; z-index: 50; min-width: 250px; display: none; background: var(--cit-surface); border-radius: 12px;
  box-shadow: 0 0 0 1px var(--cit-grid), 0 10px 30px rgba(0,0,0,.18); overflow: hidden; }
.ct-fi-menu.on { display: block; }
.ct-fi-plus-z .ct-fi-menu { left: auto; right: 0; }   /* la fiche pose .menu { left: 0 } sous 640 px : le menu sortait de l'écran */
.ct-fi-menu > div { min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-size: 15px; color: var(--cit-text); cursor: pointer; }
.ct-fi-menu > div + div { border-top: 1px solid var(--ct-sep); }
html body .ct-fi-menu > div.is-danger { color: var(--cit-danger-text) !important; }   /* la fiche colore les lignes de son menu */
.ct-fi-r2 { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.ct-fi-ot { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ct-fi-do { font-size: 12px; font-weight: 700; color: var(--cit-accent-text); background: var(--cit-accent-weak); padding: 1px 6px; border-radius: 5px; }
.ct-fi-st { height: 28px; padding: 0 10px; border-radius: 14px; border: 0; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center;
  color: var(--ct-st-texte); background: var(--ct-st-fond); }
button.ct-fi-st { cursor: pointer; }
.ct-fi-r3 { padding: 2px 4px 0; }
.ct-fi-type { font-size: 17px; font-weight: 600; }
.ct-fi-quand { font-size: 13px; color: var(--cit-text2); }
.ct-fi-act { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.ct-fi-a { height: 56px; border-radius: 12px; border: 0; font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  background: var(--cit-surface); color: var(--cit-accent-text); box-shadow: 0 0 0 1px var(--cit-grid); text-decoration: none; cursor: pointer; }
.ct-fi-a.is-plein { background: var(--cit-accent); color: #ffffff; box-shadow: none; }
.ct-fi-a.is-off { opacity: .45; cursor: default; }
.ct-fi-mini { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: calc(53px + var(--safe-top, 0px)); box-sizing: border-box;   /* maquette : 52 + filet */ padding: var(--safe-top, 0px) 12px 0;
  display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--cit-surface) 92%, transparent); border-bottom: 1px solid var(--cit-border); }
.ct-fi-mini[hidden] { display: none; }
.ct-fi-mini .ct-fi-ot { font-size: 15px; }
.ct-fi-mini .ct-fi-retour { padding: 0; }   /* maquette « suite » : « ‹ » collé au bord (12 px) */
.ct-fi-corps { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.ct-fi-g__t { font-size: 13px; font-weight: 600; color: var(--cit-text2); text-transform: uppercase; letter-spacing: .3px; padding: 0 4px 6px; }
.ct-fi-g__l { list-style: none; margin: 0; padding: 0; background: var(--cit-surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--cit-grid); overflow: hidden; }
.ct-fi-l { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 12px; border-bottom: 1px solid var(--ct-sep); box-sizing: border-box; }
.ct-fi-g--suite .ct-fi-l { min-height: 48px; }
.ct-fi-l[role="button"] { cursor: pointer; }
.ct-fi-l__l { width: 96px; flex-shrink: 0; font-size: 13px; color: var(--cit-text2); }
.ct-fi-g--suite .ct-fi-l__l { width: 118px; }
.ct-fi-l__v { flex-grow: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.ct-fi-l__t { flex-grow: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.ct-fi-note { white-space: pre-wrap; font-weight: 400; }
.ct-fi-l__b { flex-shrink: 0; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--cit-border); background: var(--cit-surface); color: var(--cit-accent-text);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.ct-fi-l__b.is-plein { background: var(--cit-accent); border-color: var(--cit-accent); color: #ffffff; }
.ct-fi-l__b:disabled { opacity: .5; }
.ct-fi-pill { flex-shrink: 0; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.ct-p--ok { color: var(--cit-ok-text); background: var(--cit-ok-weak); }
.ct-p--w { color: var(--cit-warn-text); background: var(--cit-warn-weak); }
.ct-p--n { color: var(--cit-neutral-text); background: var(--cit-neutral-weak); }
.ct-p--b { color: var(--cit-accent-text); background: var(--cit-accent-weak); }
.ct-p--danger { color: var(--cit-danger-text); background: var(--cit-danger-weak); }
.ct-fi-chev { color: var(--ct-chev); font-size: 18px; flex-shrink: 0; }
.ct-warn { color: var(--cit-warn-text); }
.ct-ok { color: var(--cit-ok-text); font-weight: 600; font-size: 13px; }
.ct-muted { color: var(--cit-text2); font-weight: 400; }
.ct-ocr { color: var(--cit-accent-text); font-weight: 700; }
.ct-fi-loc { display: block; padding: 8px 12px; border-bottom: 1px solid var(--ct-sep); font-size: 13px; }
.ct-fi-histo { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.ct-fi-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.ct-fi-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.ct-fi-ajoutphoto, .ct-fi-lien { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ct-fi-choix { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; font-size: 15px; color: var(--cit-text); }
.ct-fi-recap { list-style: none; margin: 0 0 10px; padding: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--cit-grid); overflow: hidden; }
.ct-fi-recap li { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; font-size: 14px; }
.ct-fi-recap li + li { border-top: 1px solid var(--ct-sep); }
.ct-fi-recap .ct-fi-l__l { width: 110px; }
.ct-fi-voile[hidden] { display: none !important; }
.ct-feuille__tete { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ct-feuille__tete .ct-feuille__titre { flex-grow: 1; margin: 0; }
.ct-feuille__fermer { width: 36px; height: 36px; border-radius: 18px; border: 0; background: var(--cit-fill); color: var(--cit-text); font-size: 15px; cursor: pointer; }
.ct-btn-contour.is-danger { color: var(--cit-danger-text); }
.ct-btn-plein { min-height: 44px; }
/* barre du bas de la fiche : mêmes onglets que la barre du téléphone (M13 / Q-C4) */
.ct-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; align-items: flex-start; box-sizing: border-box;
  height: calc(var(--nav-h) + var(--safe-bottom, 0px)); padding: 6px 0 var(--safe-bottom, 0px);
  background: color-mix(in srgb, var(--cit-surface) 94%, transparent); border-top: 1px solid var(--cit-border); }
.ct-tab { flex: 0 1 66px; width: 66px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 400 11px var(--cit-police); color: var(--cit-text2); text-decoration: none; }
.ct-tab svg { display: block; width: 20px; height: 20px; margin: 2px 0; }
.ct-tab.is-active { color: var(--cit-accent); font-weight: 600; }
html body .ct-tabs a.ct-tab { color: var(--cit-text2); }              /* la fiche colore ses liens en bleu : onglets inactifs gris (maquette) */
html body .ct-tabs a.ct-tab.is-active { color: var(--cit-accent); }
.ct-tabs--6 .ct-tab { font-size: 10px; }
/* M15 : Nouvelle / Modifier */
.ct-f-tete { height: calc(53px + var(--safe-top, 0px)); box-sizing: border-box;   /* maquette : 52 + filet */ padding: var(--safe-top, 0px) 8px 0; display: flex; align-items: center;
  background: color-mix(in srgb, var(--cit-surface) 92%, transparent); border-bottom: 1px solid var(--cit-border); position: sticky; top: 0; z-index: 20; }
.ct-f-annuler { height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--cit-accent); font-size: 15px; cursor: pointer; }
.ct-f-titre { margin: 0; flex-grow: 1; text-align: center; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-f-esp70 { width: 70px; flex-shrink: 0; }
.ct-f-corps { padding: 12px 16px calc(24px + var(--safe-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.ct-f-src { display: flex; gap: 8px; }
.ct-f-src__b { flex: 1 1 auto; min-width: 0; height: 52px; border-radius: 12px; border: 1px solid var(--cit-border); background: var(--cit-surface); color: var(--cit-accent-text); font-size: 15px; font-weight: 600; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 26/09 (REVUE n°48, Q-D3) : libellés courts, sur une ligne */
@media (max-width: 379px) { .ct-f-src__i { display: none; } }   /* écran plus étroit que la maquette (390) : l'icône cède la place au libellé */
.ct-f-src__b.is-plein { border: 0; background: var(--cit-accent); color: #ffffff; }
.ct-f-aide { font-size: 12px; color: var(--cit-text2); padding: 0 4px; }
.ct-f-aide--haut { margin-top: -6px; }
.ct-f-ocr { flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; border: 1.5px dashed var(--cit-border); background: var(--cit-surface); }
.ct-f-ocr__r { display: flex; gap: 8px; align-items: center; }
.ct-f-ocr__liste { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.ct-f-g__b { background: var(--cit-surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--cit-grid); overflow: hidden; }
.ct-f-c { display: block; padding: 8px 12px; border-bottom: 1px solid var(--ct-sep); }
.ct-f-c__l { display: block; font-size: 12px; color: var(--cit-text2); margin-bottom: 3px; }
.ct-f-c__r { display: flex; gap: 8px; align-items: center; }
/* !important : l'habillage iOS de la fiche vise tous les champs par html[data-skin="ios"] input:not(…)×4 (fond gris, sans bordure) et,
   sous 640 px, leur donne 17 px (anti-zoom iPhone) ; la maquette M15 dit 15 px — 26/09 (REVUE n°48, Q-D2) : 16 px, écart de maquette
   accepté (sous 16 px, l'iPhone agrandit la page quand on touche un champ) */
html body .ct-f .ct-f-in { flex-grow: 1; min-width: 0; height: 40px; box-sizing: border-box; padding: 0 10px; border-radius: 8px !important; border: 1px solid var(--cit-border) !important;
  background: var(--cit-surface) !important; color: var(--cit-text); font-size: 16px !important; line-height: normal; box-shadow: none !important; margin: 0; }
html body .ct-f .ct-f-in:focus { outline: none; border-color: var(--cit-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-accent) 25%, transparent) !important; }
html body .ct-f .ct-f-in.is-alerte { border-color: var(--cit-warn) !important; }   /* adresse introuvable / douteuse (maquette M15) */
html body .ct-f #f-ot.ct-f-in, html body .ct-f #f-client.ct-f-in { font-size: 16px !important; }   /* la fiche impose #f-ot 18 px / #f-client 17 px (!important) sous 640 px ; Q-D2 : 16 px */
html body .ct-f .ct-f-in::placeholder { color: var(--ct-ph); }
html body .ct-f input.ct-f-in:disabled::-webkit-calendar-picker-indicator { display: none; }   /* champ verrouillé : pas de calendrier / horloge (coupait « 10:00 ») */
html body .ct-f .ct-f-in.is-lecture { display: flex; align-items: center; }   /* « Moi (…) » : champ de la maquette, sans choix possible */
html body .ct-f .ct-f-in:disabled, html body .ct-f .ct-f-in.is-verrou { background: var(--cit-surface2) !important; color: var(--cit-text2); opacity: 1; }
html body .ct-f .ct-f-in--96 { flex: 0 0 96px; width: 96px; }
html body .ct-f .ct-f-in--texte { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; }
.ct-f-sel { appearance: auto; }
.ct-f-btn { flex-shrink: 0; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--cit-border); background: var(--cit-surface); color: var(--cit-accent-text);
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.ct-f-btn[hidden] { display: none; }
html body .ct-f a.ct-f-btn { color: var(--cit-accent-text); }   /* lien « Appeler » : pas la couleur générique des liens */
.ct-f-c__r { position: relative; }
.ct-ocr--champ { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); z-index: 1; pointer-events: none; font-size: 15px; }   /* ◉ dans le champ (maquette) */
html body .ct-f .ct-ocr--champ + .ct-f-in { padding-left: 30px; }
.ct-f-loc { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--cit-warn-weak); color: var(--cit-warn-text); font-size: 13px; }
.ct-f-loc[hidden] { display: none; }
.ct-f-loc__s { display: flex; align-items: center; gap: 8px; }
.ct-f-loc__s > span { flex-grow: 1; }
.ct-f-loc__b { flex-shrink: 0; height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--cit-warn-text); color: var(--cit-surface); font-size: 13px; font-weight: 600; cursor: pointer; }
.ct-f-we { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ct-f-admin { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 12px; border: 0;
  background: var(--cit-surface); box-shadow: 0 0 0 1px var(--cit-grid); color: color-mix(in srgb, var(--cit-text) 87%, var(--cit-surface)); font-size: 15px; text-align: left; cursor: pointer; }   /* clair : #3a3a3c (maquette) */
.ct-f-admin-corps { display: flex; flex-direction: column; gap: 14px; }
.ct-f-admin-corps[hidden] { display: none; }
.ct-f-libre { padding: 10px 12px; }
.ct-f-fin { margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--cit-border); }
.ct-f-creer { width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--cit-accent); background: var(--cit-surface); color: var(--cit-accent-text); font-size: 15px; font-weight: 600; cursor: pointer; }
.ct-f-note { font-size: 12px; color: var(--cit-text2); text-align: center; margin-top: 4px; }
/* champs date / heure de la fiche (gpOutlookFields) dans le formulaire : champs simples de la maquette, sans ▼ (amendement M15).
   !important : l'habillage iOS de la fiche leur donne fond gris, sans bordure, 44 px et le texte en bleu 17 px */
html body .ct-f .gp-ol { display: flex; height: 40px !important; flex-grow: 1; border-radius: 8px !important; border: 1px solid var(--cit-border) !important;
  background: var(--cit-surface) !important; box-sizing: border-box; box-shadow: none !important; font-size: 16px; }   /* Q-D2 : 16 px (le texte est dans .gp-ol-in) */
html body .ct-f .gp-ol:focus-within { border-color: var(--cit-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-accent) 25%, transparent) !important; }
html body .ct-f .gp-ol:has(input:disabled) { background: var(--cit-surface2) !important; }
html body .ct-f .gp-ol .gp-ol-in { height: 38px !important; font: 400 16px var(--cit-police) !important; color: var(--cit-text) !important; width: 100%; padding: 0 10px; }   /* Q-D2 : 16 px */
html body .ct-f .gp-ol .gp-ol-in:disabled { color: var(--cit-text2) !important; }
.ct-f .ct-f-in--96 + .gp-ol, .ct-f .gp-ol:has(input[type="time"]) { flex: 0 0 96px; width: 96px; }
.ct-f .gp-ol-btn { display: none; }

/* ── Fin d'intervention (M14, SPEC_BOUTON_TERMINER) : fiche du téléphone ET fiche bureau d'un technicien ─────────────────────── */
.ct-fin { margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--cit-border); font-family: var(--cit-police); font-size: 15px; }
.ct-fin__titre { font-size: 13px; font-weight: 600; color: var(--cit-text2); text-transform: uppercase; letter-spacing: .3px; padding: 0 4px 6px; }
.ct-fin__btn {
  width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--cit-ok-text); background: var(--cit-surface); color: var(--cit-ok-text);
  font: inherit; font-family: var(--cit-police); font-weight: 600; letter-spacing: normal; cursor: pointer;
}
.ct-fin__note { font-size: 12px; color: var(--cit-text2); text-align: center; margin-top: 4px; }
.ct-fin__etat { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--cit-ok-weak); color: var(--cit-ok-text); font-weight: 600; }
.ct-champ { display: block; margin-bottom: 10px; }
.ct-champ__l { display: block; font-size: 12px; color: var(--cit-text2); margin-bottom: 3px; }
.ct-champ__in {
  display: block; width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--cit-border);
  background: var(--cit-surface); color: var(--cit-text); font: inherit; font-family: var(--cit-police);
}
.ct-btn-vert { border: 0; background: var(--cit-ok-text); color: var(--cit-surface); }
.ct-toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom, 0px)); transform: translateX(-50%); z-index: 3100; display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; white-space: nowrap;
  padding: 8px 10px 8px 16px; border-radius: 12px; background: var(--cit-toast); color: var(--cit-toast-text); font: 600 14px var(--cit-police); box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.ct-toast button { border: 0; background: transparent; color: var(--cit-accent-on-dark); font: inherit; font-weight: 700; min-height: 36px; padding: 0 6px; cursor: pointer; }
