/* MODULE — « Envoyer depuis mon téléphone » (ordinateur uniquement), voir transfert-mobile.js */

#custom-file .tm-bouton {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 50px; margin-top: 10px; padding: 8px 16px;
    background: #fff; color: #000; border: 1.5px solid #000; border-radius: 12px;
    font: inherit; font-size: 14px; font-weight: 400; text-transform: uppercase; cursor: pointer;
    transition: background-color .15s, color .15s;
}
#custom-file .tm-bouton:hover { background: #000; color: #fff; }
#custom-file .tm-bouton:focus-visible { outline: 3px solid #d7ff00; outline-offset: 2px; }
#custom-file .tm-bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.tm-fond {
    position: fixed; inset: 0; z-index: 2000; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(20, 20, 35, .55);
}
.tm-fond.tm-ouvert { display: flex; }
.tm-fenetre {
    position: relative; width: 100%; max-width: 560px; padding: 28px 28px 22px;
    background: #fff; color: #1f1f2e; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.tm-fenetre h3 { margin: 0 32px 20px 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.tm-fermer {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
    border: 0; border-radius: 8px; background: transparent; color: #6b6b80; font-size: 18px; cursor: pointer;
}
.tm-fermer:hover { background: #f4f5f7; color: #1f1f2e; }
.tm-corps { display: flex; gap: 24px; align-items: center; }
.tm-qr {
    flex: 0 0 220px; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; background: #fff;
}
.tm-qr svg { display: block; width: 100%; height: 100%; }
.tm-etapes { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.tm-etapes li + li { margin-top: 10px; }
.tm-etat { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: #f4f5f7; font-size: 14px; font-weight: 600; }
.tm-etat.tm-attente { background: #f4f5f7; color: #000; }
.tm-etat.tm-recu { background: #e6f6ec; color: #1f9d55; }
.tm-etat.tm-erreur { background: #fbeaea; color: #c0392b; }
.tm-delai { float: right; font-variant-numeric: tabular-nums; font-weight: 500; opacity: .8; }
.tm-point {
    display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%;
    background: #000; box-shadow: 0 0 0 3px #d7ff00; vertical-align: middle; animation: tm-pulse 1.2s ease-in-out infinite;
}
@keyframes tm-pulse { 50% { opacity: .25; } }
.tm-lien { margin-left: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.tm-note { margin: 12px 0 0; color: #6b6b80; font-size: 13px; }
.tm-chargement {
    width: 32px; height: 32px; border: 3px solid #e0e0e0; border-top-color: #000; border-radius: 50%;
    animation: tm-tour .8s linear infinite;
}
@keyframes tm-tour { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tm-point, .tm-chargement { animation: none; } }
