/* ==========================================================================
   interventions.css — T1 : la liste des interventions ouvertes, 06 a 11
   ==========================================================================
   Ne le 2026-09-24. Spec : docs/design/SPEC-2026-09-24-t1-interventions-
   ouvertes.md, § 3 et § 5. Telephone : des cartes empilees. Portable : un
   tableau aux colonnes de l'ERP. Les deux sont dans la page ; la largeur
   choisit (1024px, comme `CONFIG.acces.largeur_portable`).
   Une carte se LIT, elle ne s'ouvre pas en T1 : aucun effet de survol ni
   d'appui, rien qui la fasse passer pour un bouton.
   ========================================================================== */

.liste-entete { display: flex; align-items: center; gap: 10px; margin: 0; }
.liste-entete h1 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.compteur {
  min-width: 32px; height: 26px; padding: 0 9px; border-radius: 999px;
  background: var(--brume); display: grid; place-items: center;
  font: 800 13px ui-monospace, Consolas, monospace;
}
.liste-sous { margin: 3px 0 12px; font-size: 12.5px; color: var(--texte2); }
/* Compte de Thomas : ni alerte ni succes (spec passe 3, § 7). */
.liste-lecture { margin-top: -6px; }
.pastille-lecture {
  display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(124, 135, 146, .55); background: #FFFEFB; color: var(--nuit); font-weight: 750;
}

.carte-int {
  margin-bottom: 10px; padding: 11px 14px 12px;
  background: rgba(255, 254, 251, .96); border: 1px solid var(--ligne); border-radius: 16px;
  box-shadow: var(--ombre), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.carte-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.carte-ref, .cellule-ref { font: 750 13.5px ui-monospace, Consolas, monospace; letter-spacing: .2px; }
.carte-statut {
  padding: 4px 9px; border-radius: 999px; background: var(--brume); color: #3F5163;
  font-size: 10.5px; font-weight: 750; white-space: nowrap;
}
.carte-client { margin-top: 6px; font-size: 15px; font-weight: 750; }
.carte-objet { margin-top: 2px; font-size: 13.5px; font-weight: 500; color: #22334A; }
.carte-meta { margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--texte2); }

/* Chargement : des cartes grises FIXES. Aucune animation (batterie). */
.fantome .barre-g { height: 12px; margin-top: 9px; border-radius: 6px; background: #E4E0D8; }
.fantome .barre-g:first-child { margin-top: 2px; }

.tableau-int { display: none; }

@media (min-width: 1024px) {
  .liste-entete h1 { font-size: 21px; }
  .cartes-int { display: none; }
  .tableau-int {
    display: table; width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
    background: #FFFEFB; border: 1px solid var(--ligne); border-radius: 16px; box-shadow: var(--ombre);
  }
  .tableau-int th {
    padding: 11px 14px; text-align: left; white-space: nowrap;
    background: #EFEBE2; color: #3D4955; font-size: 12px; font-weight: 750;
  }
  .tableau-int td {
    padding: 12px 14px; vertical-align: top;
    border-top: 1px solid rgba(124, 135, 146, .18); font-size: 13.5px;
  }
  .cellule-ref { font-size: 13px; }
}

/* ================================================= passe 5 (spec, § 4 quater)
   « Relire » : bouton clair a filet Gris Pierre, 48 px, a droite de la bande.
   « Changer de compte » : en haut de l'ecran du code, a droite, loin du pave.
   03c, 03d : feuille qui monte du bas ; panneau centre sur portable. */
.bande .bouton-relire {
  margin-left: auto; flex: none; min-height: 48px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #7C8792; border-radius: 10px; background: #FFFEFB;
  color: #10243E; font: inherit; font-weight: 600; cursor: pointer;
}
/* Inactif (06d, 09) : grise, comme l'image validee 09 (seconde recette, reserve 2 :
   il paraissait actif). Mot et signe plus clairs que le Gris Pierre, filet estompe. */
.bande .bouton-relire:disabled {
  color: #9AA3AB; border-color: #DDD7CD; background: #F7F4EE; cursor: default;
}
.tirer-relire { margin: 0; padding: 10px 0; text-align: center; color: #56616C; font-weight: 600; }
.verrou-changer {
  display: block; margin: 0 0 0 auto; min-height: 48px; padding: 0 4px;
  background: none; border: 0; color: #10243E; text-decoration: underline; font: inherit; cursor: pointer;
}
.acces-voile { position: fixed; inset: 0; background: rgba(16, 36, 62, .45); z-index: 60; }
.acces-feuille {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #FFFEFB; color: #10243E; border-radius: 16px 16px 0 0; text-align: left;
}
.acces-feuille[hidden], .acces-voile[hidden], .tirer-relire[hidden] { display: none; }

/* 13 : la reserve hors ligne manque (spec du 2026-09-25, § 2). Une ligne,
   pas une bande : sur l'ivoire, losange ambre, texte ambre fonce, note en
   gris. Aucun rouge, aucune animation, rien a toucher. */
.reserve-absente {
  display: flex; gap: 9px; align-items: flex-start; margin: 0 0 12px;
  font-size: 13px; font-weight: 650; line-height: 1.35; color: var(--ambre-texte);
}
.reserve-absente[hidden] { display: none; }
.reserve-absente .forme-losange { margin-top: 4px; }
.reserve-absente small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--texte2); }
.reserve-absente .seul-portable { display: none; }
@media (min-width: 1024px) {
  .reserve-absente .seul-telephone { display: none; }
  .reserve-absente .seul-portable { display: inline; }
}
.acces-feuille h2 { margin: 0; font-size: 1.15rem; }
.acces-feuille p { margin: 0; color: #56616C; }
.acces-feuille button { width: 100%; min-height: 64px; }
@media (min-width: 1024px) {
  .acces-feuille {
    left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%);
    width: 480px; border-radius: 12px; padding: 24px;
  }
  .acces-feuille button { min-height: 52px; }
}
