/* Compléments à styles.css (repris de la maquette) : connexion, admin, mobile chauffeur. */
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
.logo-badge { width: 44px; height: 48px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 8px; padding: 3px; }
.logo-badge img { max-width: 100%; max-height: 100%; display: block; }
.who-pill { font-size: 13px; opacity: .9; }
.top .btn.ghost { background: transparent; color: var(--on-brand); border-color: color-mix(in srgb, var(--on-brand) 40%, transparent); }
.top .btn.ghost:hover { background: color-mix(in srgb, var(--on-brand) 14%, transparent); }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.auth-head { background: var(--brand); color: var(--on-brand); padding: 20px 22px; display: flex; gap: 14px; align-items: center; }
.auth-head h1 { font-size: 21px; }
.auth-head small { display: block; opacity: .85; font-size: 13px; }
.auth-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.auth-body h2 { font-size: 19px; }
.auth-body p { margin: 0; }
.auth-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.auth-foot a, .linkish { color: var(--focus); background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; text-decoration: underline; }
.err { color: var(--alert); font-weight: 700; font-size: 14px; }
.demo-box { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.demo-box b { font-family: var(--f-mono); font-size: 16px; letter-spacing: .08em; }
.qr { display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 10px; border: 1px solid var(--line); }
.qr svg { width: 190px; height: 190px; }
.secret { font-family: var(--f-mono); font-size: 13px; word-break: break-all; background: var(--surface-2); padding: 6px 8px; border-radius: 6px; }
.code-input { font-family: var(--f-mono); font-size: 22px !important; letter-spacing: .3em; text-align: center; }

.dir { max-width: 720px; margin: 0 auto; padding: 48px 16px; }
.dir h1 { font-size: 30px; margin-bottom: 8px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.dir-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--fg); }
.dir-card:hover { box-shadow: var(--shadow); }
.dir-card img { width: 46px; height: 52px; object-fit: contain; }
.dir-card b { display: block; font-size: 16px; }
.dir-card small { color: var(--muted); }

.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.pill-s { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.pill-s.ok { background: var(--ok-bg); color: var(--ok); }
.pill-s.warn { background: var(--warn-bg); color: var(--warn); }
.pill-s.off { background: var(--surface-2); color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions .btn { padding: 4px 9px; font-size: 13px; }
td.wrap-cell { white-space: normal; min-width: 180px; }
.swatch { display: inline-flex; gap: 8px; align-items: center; }
.swatch input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }

/* Chauffeur : plein écran sur cellulaire */
.drv { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.drv .ph-top { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.drv .ph-body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.drv .who .btn { padding: 4px 10px; font-size: 13px; }
.leg-addr { font-weight: 700; }

/* Politique de confidentialité */
.policy { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.policy .auth-head { border-radius: 14px 14px 0 0; }
.policy-body { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 8px 24px 24px; line-height: 1.6; }
.policy-body h2 { font-size: 24px; margin-top: 18px; }
.policy-body h3 { font-size: 17px; margin-top: 22px; }
.policy-body .demo-box { margin-top: 16px; }
.policy-link { text-align: center; margin: 16px 0 28px; }
.auth .policy-link { margin: 14px 0 0; }
.auth { grid-template-rows: 1fr auto; }
fieldset.box { margin: 0; }

/* carte du trajet (chauffeur) */
.rmap { height: 230px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; margin: 4px 0 0; background: var(--surface-2); z-index: 0; }
.rmap-info { margin: -2px 0 4px; font-size: 13px; }
.rmap-info:empty { display: none; }
.mpin { display: block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); box-sizing: border-box; }
.mpin.from { background: #fff; border-color: var(--brand); border-width: 4px; }
.mpin.to { background: var(--brand); }
.leaflet-tooltip.mtip { font: 700 12px/1.2 'Atkinson Hyperlegible', system-ui, sans-serif; padding: 2px 6px; border-radius: 6px; }
.ride > .btn.big { width: 100%; }
