/* Le gabarit « téléphone » de la charte (§3.10), commun aux écrans de terrain
   (INTV-006 ; né avec « Ma tournée », LIV-013). Une colonne, la consigne
   d'abord, de gros boutons : 52 px pour les gestes, 44 px au moins pour toute
   cible (charte §7). En haut, toujours : l'état du réseau, ce qui attend, et
   l'action qui met le travail en pause. Feuille globale plutôt qu'isolée :
   les briques de terrain du socle (FieldHeader, SignaturePad, RouteButtons)
   et les écrans des modules se partagent ces classes. */

.telephone {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
    margin: 0 auto;
}

.telephone-tete {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    background: var(--fond-travail);
}

.telephone-societe {
    color: var(--texte);
    font-weight: 800;
}

.telephone-reseau {
    padding: 4px 10px;
    border-radius: var(--rayon-pastille);
    background: var(--pastille-vert-fond);
    color: var(--pastille-vert-texte);
    font-size: var(--taille-pastille);
    font-weight: 700;
}

.telephone-hors-reseau {
    background: var(--pastille-ambre-fond);
    color: var(--pastille-ambre-texte);
}

.telephone-pause {
    min-height: 44px;
    margin-left: auto;
    padding: 0 18px;
    border: 1px solid var(--bouton-bordure);
    border-radius: var(--rayon-champ);
    background: var(--surface);
    color: var(--texte-bouton);
    font: inherit;
    font-weight: 700;
}

.telephone-pause[aria-pressed="true"] {
    border-color: var(--ambre);
    background: var(--attention-bandeau);
    color: var(--attention-bandeau-fort);
}

.telephone-titre {
    margin: 0;
    color: var(--texte);
    font-size: var(--taille-titre-ecran);
    font-weight: 800;
}

.telephone-sur-titre,
.telephone-note,
.telephone-colis {
    margin: 0;
    color: var(--texte-libelle);
}

/* L'application Kofreo Chauffeur à installer (LIV-056) : un encart, une phrase, un bouton. */
.telephone-installer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 2px dashed var(--pointille);
    border-radius: var(--rayon-encart);
}

.telephone-installer p {
    margin: 0;
}

.telephone-vide {
    padding: 18px;
    border: 2px dashed var(--pointille);
    border-radius: var(--rayon-encart);
    color: var(--texte-libelle);
}

.telephone-jours {
    display: flex;
    gap: 6px;
}

.telephone-jour {
    flex: 1;
    min-height: 44px;
    border: 1px solid var(--bouton-bordure);
    border-radius: var(--rayon-champ);
    background: var(--surface);
    color: var(--texte-bouton);
    font: inherit;
    font-weight: 700;
}

.telephone-jour-actif {
    border-color: var(--accent);
    background: var(--accent-doux);
    color: var(--accent-fonce);
}

.telephone-tournee,
.telephone-arret,
.telephone-remise {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telephone-consignes {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--rayon-encart);
    background: var(--attention-bandeau);
    color: var(--attention-bandeau-fort);
    font-size: var(--taille-titre-section);
}

.telephone-adresse {
    margin: 0;
    color: var(--texte);
    font-size: var(--taille-titre-section);
    font-weight: 600;
}

.telephone-gestes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.telephone-principal,
.telephone-bouton {
    display: grid;
    place-items: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: var(--rayon-champ);
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.telephone-principal {
    border: 0;
    background: var(--accent);
    color: var(--surface);
}

.telephone-principal:disabled,
.telephone-bouton:disabled {
    opacity: 0.5;
}

.telephone-bouton {
    border: 1px solid var(--bouton-bordure);
    background: var(--surface);
    color: var(--texte-bouton);
}

.telephone-lien,
.telephone-retour {
    align-self: flex-start;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
}

.telephone-gps,
.telephone-champ {
    display: flex;
    flex-direction: column;
    gap: var(--espace-champs);
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--texte-libelle);
    font-weight: 600;
}

.telephone-champ input[type="text"],
.telephone-champ input[type="number"],
.telephone-champ textarea,
.telephone-gps select {
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--bordure-controle);
    border-radius: var(--rayon-champ);
    background: var(--surface);
    color: var(--texte);
    font: inherit;
}

.telephone-champ textarea {
    padding: 10px 12px;
}

/* Le bouton de la photo (FileButton, UI-152) : pleine largeur et à la hauteur
   des autres gestes de la remise, qui se touchent au doigt (§3.10). */
.telephone .telephone-champ .fichier-bouton {
    display: flex;
}

.telephone .telephone-champ .fichier-bouton-libelle {
    flex: 1;
    min-height: 52px;
}

.telephone-case {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--texte);
    font-weight: 600;
}

.telephone-case input {
    width: 22px;
    height: 22px;
    accent-color: var(--accent);
}

.telephone-signature {
    box-sizing: border-box;
    width: 100%;
    height: 180px;
    border: 1px solid var(--bordure-controle);
    border-radius: var(--rayon-encart);
    background: var(--surface);
    touch-action: none;
}

.telephone-arrets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.telephone-ligne {
    display: flex;
    align-items: stretch;
    gap: 6px;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-encart);
    background: var(--surface);
}

.telephone-ligne-faite {
    background: var(--surface-douce);
    opacity: 0.7;
}

.telephone-ligne-bouton {
    display: flex;
    flex: 1;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 0;
    background: none;
    color: var(--texte);
    font: inherit;
    text-align: left;
}

.telephone-rang {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--rayon-pastille);
    background: var(--accent);
    color: var(--surface);
    font-weight: 800;
}

.telephone-ligne-texte {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: var(--texte-libelle);
}

.telephone-ligne-texte strong {
    color: var(--texte);
}

.telephone-serre {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: var(--rayon-pastille);
    background: var(--pastille-ambre-fond);
    color: var(--pastille-ambre-texte);
    font-size: var(--taille-pastille);
    font-weight: 700;
}

.telephone-fait {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--rayon-encart);
    background: var(--succes-bandeau);
    color: var(--succes-bandeau-fort);
    font-weight: 700;
}

.telephone-ordre {
    display: flex;
    flex-direction: column;
}

.telephone-ordre button {
    flex: 1;
    min-width: 44px;
    border: 0;
    border-left: 1px solid var(--filet);
    background: none;
    color: var(--texte-libelle);
    font: inherit;
    font-weight: 800;
}

.telephone button:focus-visible,
.telephone a:focus-visible,
.telephone input:focus-visible,
.telephone select:focus-visible,
.telephone textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.telephone-camera {
    display: block;
    width: 100%;
    max-height: 14rem;
    margin-top: 0.5rem;
    border-radius: var(--rayon-encart);
    background: var(--surface);
    object-fit: cover;
}

.telephone-camera[hidden] {
    display: none;
}
