/* Enrôlement Pilot 2 — écran de radiocommande RC Plus : large, peu haut, et le
   télépilote n'a pas à faire défiler pour voir l'état de sa liaison. D'où un menu à
   gauche (toujours visible, avec le voyant de liaison) et la rubrique choisie à droite. Repris du code d'origine (drone_pilot.css, 7f426b2). */
body.fv-pilot { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #0f172a; background: #ffffff; font-size: 15px; }
.fv-pilot__page { margin: 0; }

/* --- Menu à gauche, rubrique à droite (écran paysage, pas de défilement de la page) ------- */
.fv-pilot__appli { display: flex; height: 100vh; }
.fv-pilot__menu {
    flex: 0 0 210px; display: flex; flex-direction: column; gap: 6px; padding: 8px;
    background: #0f172a; color: #e2e8f0; overflow-y: auto;
}
.fv-pilot__entete { display: flex; flex-direction: column; gap: 3px; padding: 2px 4px 8px; border-bottom: 1px solid #334155; margin-bottom: 4px; }
.fv-pilot__marque { font-weight: 800; font-size: 1.15rem; color: #ffffff; }
.fv-pilot__nom-rc { font-size: .95rem; color: #cbd5e1; }
.fv-pilot__voyant { align-self: flex-start; font-size: .85rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #b45309; color: #fff; }
.fv-pilot__voyant[data-niveau="ok"] { background: #15803d; }
.fv-pilot__voyant[data-niveau="err"] { background: #b91c1c; }
.fv-pilot__lien {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
    min-height: 52px; padding: 10px 12px; font-size: 1.1rem; font-weight: 600; text-align: left;
    color: #e2e8f0; background: #1e293b; border: 1px solid #334155; border-radius: 10px; cursor: pointer;
}
.fv-pilot__lien.is-active { background: #2563eb; border-color: #93c5fd; color: #ffffff; }
.fv-pilot__signal:empty { display: none; }
.fv-pilot__signal--err { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #fff; }
.fv-pilot__signal--err:empty { display: inline-block; }
.fv-pilot__signal--live { font-size: .75rem; font-weight: 800; color: #fff; background: #dc2626; border-radius: 6px; padding: 2px 6px; }
.fv-pilot__contenu { flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 10px 12px; }
.fv-pilot__rubrique { display: none; }
.fv-pilot__rubrique.is-active { display: block; }
.fv-pilot__rubrique h2 { font-size: 1.25rem; margin: 0 0 8px; }
/* Message tant que la rubrique n'est pas prête (sa carte est encore masquée). */
.fv-pilot__attente { color: #64748b; font-size: .95rem; }
.fv-pilot__carte:not([hidden]) ~ .fv-pilot__attente { display: none; }
.fv-pilot__qr { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.fv-pilot__qr-code { flex: 0 0 132px; width: 132px; height: 132px; background: #fff; }
.fv-pilot__qr-code svg { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) {
    .fv-pilot__appli { flex-direction: column; height: auto; }
    .fv-pilot__menu { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; }
    .fv-pilot__lien { width: auto; flex: 1 1 40%; min-height: 44px; }
}
.fv-pilot__page h1 { font-size: 1.05rem; margin: 0 0 8px; }
.fv-pilot__carte {
    border: 1px solid #64748b; border-radius: 8px; padding: 8px 10px; margin: 0 0 5px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .05);
}
.fv-pilot__carte p { margin: 0 0 6px; }
.fv-pilot__liste { list-style: none; padding: 0; margin: 0 0 8px; }
.fv-pilot__liste li { padding: 2px 0; }
.fv-pilot__liste li.ok::before  { content: "✔ "; color: #15803d; }
.fv-pilot__liste li.err::before { content: "✖ "; color: #b91c1c; }
.fv-pilot__ids { color: #64748b; font-size: .85rem; }
.fv-pilot__statut { font-weight: 600; }
.fv-pilot__statut.ok   { color: #15803d; }
/* Missions : liste déroulante pleine largeur (écran de radiocommande). */
.fv-pilot__missions { margin-bottom: 4px; }
.fv-pilot__select {
    display: block; width: 100%; margin: 4px 0; padding: 10px; font-size: 1.05rem;
    border: 1px solid #64748b; border-radius: 8px; background: #ffffff;
}
.fv-pilot__mission {
    display: block; width: 100%; margin: 4px 0; padding: 8px 10px; font-size: 1rem; text-align: left;
    border: 1px solid #64748b; border-radius: 8px; background: #ffffff; cursor: pointer;
}
.fv-pilot__mission:active { background: #eff6ff; }
.fv-pilot__mission.is-courante { border-color: #15803d; background: #f0fdf4; font-weight: 600; }
/* Orange : transitoire (rétablissement), pas une panne. */
.fv-pilot__statut.warn { color: #b45309; }
.fv-pilot__statut.err  { color: #b91c1c; }
/* Photos : interrupteur Manuel / Auto en deux gros boutons (gants, écran de radiocommande). */
.fv-pilot__bascule { display: flex; gap: 6px; margin: 4px 0 6px; }
.fv-pilot__choix {
    flex: 1; padding: 10px; font-size: 1rem; font-weight: 600; border: 1px solid #64748b; border-radius: 8px;
    background: #ffffff; color: #0f172a; cursor: pointer;
}
.fv-pilot__choix[aria-pressed="true"] { border-color: #15803d; background: #f0fdf4; color: #15803d; }
.fv-pilot__choix:disabled { opacity: .6; cursor: wait; }
.fv-pilot__nouvelle { display: flex; gap: 6px; margin-top: 8px; }
.fv-pilot__nouvelle input { flex: 1 1 auto; min-width: 0; padding: 8px; font-size: 1rem; border: 1px solid #64748b; border-radius: 6px; }
.fv-pilot__adresse { width: 100%; font-family: ui-monospace, monospace; font-size: .8rem; padding: 6px; margin: 4px 0 6px;
    border: 1px solid #64748b; border-radius: 6px; background: #f8fafc; }
.fv-pilot__direct-actif { color: #b91c1c; font-weight: 700; }
/* Partage de la mission : grand QR code (flashé à un ou deux mètres), liens en cours. */
.fv-pilot__partage { display: flex; gap: 14px; align-items: center; margin: 8px 0; padding: 8px; border: 1px solid #000; border-radius: 8px;
    background: #f0fdf4; box-shadow: 0 2px 5px rgba(0, 0, 0, .18); }
.fv-pilot__partage-qr { flex: 0 0 240px; width: 240px; height: 240px; background: #fff; }
.fv-pilot__partage-qr svg { width: 100%; height: 100%; display: block; }
.fv-pilot__lien-partage { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #e2e8f0; }
/* Champs à saisir et listes déroulantes : fond vert pastel pour qu'ils ressortent du texte. */
body.fv-pilot select, body.fv-pilot input[type="text"], body.fv-pilot input[type="number"], body.fv-pilot textarea { background-color: #e6f6ea; }
body.fv-pilot select:disabled, body.fv-pilot input:disabled, body.fv-pilot input[readonly] { background-color: #e9ecef; }
