/* ChauffApp : liste prioritaire des chauffeurs et « + » de la barre du bas (owner, 2026-11-24, prio.js).
   Barre façon YouTube (design-lab/bottom-bar-youtube-style.html) : minimaliste, sans texte, icônes tout en bas,
   « + » = simple cercle au centre ; menu A « Carte flottante » au-dessus de la barre, avec une pointe vers le « + ». */

/* « + » : cercle simple, tourne en × quand le menu est ouvert */
html .tabs.mode-tabs button.tab-plus svg { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
html .tabs.mode-tabs button.tab-plus.pq-open svg { transform: rotate(45deg); }
html .tabs.mode-tabs button.tab-plus::before, html .tabs.mode-tabs button.tab-plus::after { display: none !important; }
/* ordinateur : colonne de gauche, bouton doré « Ajouter » en haut (sous le logo) */
@media (min-width: 1000px) {
  html .tabs.mode-tabs > .side-top { order: -2; }
  html .tabs.mode-tabs > button.tab-plus { order: -1; flex: none; align-self: stretch; margin: 0 0 10px; padding: 11px 14px; border: 0; border-radius: 10px; display: flex; justify-content: flex-start; gap: 12px;
    background: var(--gold) !important; color: #fff !important; transition: background-color .3s, color .3s; }
  html .tabs.mode-tabs > button.tab-plus svg { width: 22px; height: 22px; color: #fff; stroke: currentColor; }
}
@media (min-width: 1000px) and (hover: hover) {
  html .tabs.mode-tabs > button.tab-plus:hover { background: var(--text) !important; color: var(--bg) !important; }
  html .tabs.mode-tabs > button.tab-plus:hover svg { color: var(--bg); }
}

/* Menu A « Carte flottante » */
.pq-dim { position: fixed; inset: 0; z-index: 590; background: rgba(0, 0, 0, .18); opacity: 0; transition: opacity .3s; }
.pq-dim.in { opacity: 1; }
.pq-menu { position: fixed; left: 12px; right: 12px; z-index: 595; max-width: 420px; margin: 0 auto; background: var(--bg); border-radius: 20px; padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .04); opacity: 0; transform: translateY(10px) scale(.98); transform-origin: 50% 100%;
  transition: opacity .25s, transform .35s cubic-bezier(.16, 1, .3, 1); }
html.dt[data-theme="dark"] .pq-menu, html[data-theme="dark"] .pq-menu { background: #212121; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.pq-menu.in { opacity: 1; transform: none; }
.pq-menu::after { content: ""; position: absolute; left: var(--pq-tip, 50%); bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.pq-menu.desk { left: auto; right: auto; width: 340px; margin: 0; transform-origin: 0 0; }
.pq-menu.desk::after { left: -7px; top: 22px; bottom: auto; margin: 0; border-radius: 0 0 0 3px; }
.pq-menu button { appearance: none; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; width: 100%; transition: background-color .3s, color .3s; }
.pq-lv { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2) !important; font-size: 13.5px; }
.pq-lv svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; }
.pq-lv b { font-weight: 800; }
.pq-lv .pq-pips { margin-left: auto; display: flex; gap: 3px; flex: none; }
.pq-lv .pq-pips i { width: 14px; height: 5px; border-radius: 4px; background: var(--line); }
.pq-lv .pq-pips i.f { background: var(--gold); }
.pq-mi { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; }
.pq-mi b { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 1.25; font-weight: 600; }
.pq-mi small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; transition: color .3s; }
.pq-mi em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.pq-mi:disabled { cursor: default; opacity: .45; }
.pq-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--text); transition: background-color .3s, color .3s; }
.pq-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .pq-mi:not(:disabled):hover, .pq-lv:hover { background: var(--text) !important; color: var(--bg); }
  .pq-mi:not(:disabled):hover small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
  .pq-mi:not(:disabled):hover .pq-ic { background: var(--gold); color: #fff; }
}

/* niveaux : 5 traits (carte noire des Réglages) */
.pq-hero .pq-pips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.pq-hero .pq-pips i { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); }
.pq-hero .pq-pips i.f { background: var(--gold); }

/* Tiroir « Inviter un collègue » */
.overlay.pq-ov > .dialog.pq-dialog { width: min(440px, 100%); padding: 18px 18px 22px; }
.pq-dialog h2 { margin: 0 0 6px; font: 400 21px/1.3 "Libre Baskerville", Georgia, serif; }
.pq-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pq-form { display: grid; gap: 16px; }
.pq-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 340px) { .pq-two { grid-template-columns: minmax(0, 1fr); } }
.pq-u { display: grid; gap: 2px; min-width: 0; padding: 0 0 8px; border-bottom: 1px solid color-mix(in srgb, var(--text) 16%, transparent); transition: border-color .3s, box-shadow .3s; }
.pq-u:focus-within { border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.pq-u > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pq-u input { width: 100%; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; padding: 3px 0 0 !important; height: auto !important; min-height: 0 !important; font-size: 17px; font-weight: 500; color: var(--text); outline: none; }
.pq-req-t { margin: 0 0 -8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pq-req { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 14px; background: var(--panel-2); }
.pq-req li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.pq-req svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pq-48 { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.pq-err { margin: -4px 0 0; color: var(--red, #d64545); font-size: 13.5px; font-weight: 600; }
.pq-cta { width: 100%; height: 50px; border-radius: 99px; border: 1px solid var(--gold); background: var(--gold); color: #fff; font: inherit; font-weight: 800; font-size: 15.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.pq-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pq-cta:disabled { opacity: .6; cursor: default; }
.pq-link { display: block; margin: 12px auto 0; padding: 6px 4px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); cursor: pointer; transition: color .3s; }
.pq-link.left { margin: 8px 0 0; padding: 4px 0; font-size: 13px; color: var(--muted); text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
@media (hover: hover) { .pq-cta:not(:disabled):hover { background: var(--text); color: var(--bg); border-color: var(--text); } .pq-link:hover { color: var(--gold); } }
.pq-done { text-align: center; padding: 6px 0 0; }
.pq-done-i { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--green, #1f9d55); color: #fff; display: grid; place-items: center; }
.pq-done-i svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pq-done p { margin: 0 auto 18px; max-width: 34ch; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Réglages › Liste prioritaire */
.pq-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 18px; margin: 0 0 22px; background: #111; color: #fff; }
.pq-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; border: 1.5px solid rgba(205, 165, 91, .5); box-shadow: 0 0 0 22px rgba(205, 165, 91, .08); pointer-events: none; }
.pq-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pq-big { font: 400 40px/1.1 "Libre Baskerville", Georgia, serif; margin: 6px 0 4px; }
.pq-big small { font: 600 15px Inter, system-ui, sans-serif; color: #cfcfcb; margin-left: 6px; }
.pq-hero p { margin: 0 0 14px; color: #cfcfcb; font-size: 14px; max-width: 32ch; line-height: 1.45; position: relative; z-index: 1; }
.pq-hero .pq-pips { position: relative; z-index: 1; }
.pq-pipl { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: #9b9b98; }
.pq-sec-t { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pq-col { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 0 0 10px; }
.pq-col.sm { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pq-col.gone { opacity: .6; }
.pq-col-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.pq-ini { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #111; color: var(--gold); display: grid; place-items: center; font: 400 12px/1 "Libre Baskerville", Georgia, serif; }
.pq-who { min-width: 0; }
.pq-who b { display: block; font-size: 14.5px; line-height: 1.25; }
.pq-who small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-plus { margin-left: auto; color: var(--green, #1f9d55); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pq-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pq-steps i { height: 4px; border-radius: 4px; background: var(--panel-2); }
.pq-steps i.d { background: var(--green, #1f9d55); }
.pq-steps i.n { background: var(--gold); }
.pq-stl { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.pq-now { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--gold); }
.pq-slot { width: 100%; display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 12px 14px; margin: 0 0 10px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.pq-slot .pq-ini { background: var(--panel-2); color: var(--gold); font: 700 18px/1 Inter, system-ui, sans-serif; transition: background-color .3s; }
@media (hover: hover) { .pq-slot:hover { background: var(--text); color: var(--bg); border-color: var(--text); } .pq-slot:hover .pq-ini { background: var(--gold); color: #fff; } }
.pq-faq { margin-top: 18px; border-top: 1px solid var(--line); }
.pq-faq div { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.pq-faq div:last-child { border-bottom: 0; padding-bottom: 0; }
.pq-faq b { display: block; font-size: 14px; margin-bottom: 2px; }
.pq-faq span { color: var(--muted); }

/* Carte de proposition : « Niveau N · 0:08 » dans le bandeau */
.pq-of { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 3px 9px; border-radius: 99px; background: #111; color: var(--gold); font-size: 12px; font-weight: 800; white-space: nowrap; }
.pq-of svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.pq-of i { font-style: normal; color: #fff; font-variant-numeric: tabular-nums; }

/* Inscription chauffeur : conditions ChauffApp */
.reg-sec.pq-regbox h2 { margin-bottom: 4px; }
.reg-sec.pq-regbox p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .pq-menu, .pq-dim, html .tabs.mode-tabs button.tab-plus svg { transition: opacity .2s; } }

/* Barre des chauffeurs façon YouTube (html.ctl-bar, cltimeline.css) : fond de la page, sans ombre ni coins arrondis,
   sans texte, icônes tout en bas ; onglet ouvert = icône plus épaisse et noire ; « + » simple cercle au centre. */
@media (max-width: 999px) {
  html.ctl-bar .tabs.mode-tabs:has(> .tab-plus) { border-radius: 0 !important; filter: none !important; box-shadow: none !important; border-top: 0 !important;
    align-items: flex-end !important; min-height: 0 !important; padding: 0 4px env(safe-area-max-inset-bottom, env(safe-area-inset-bottom, 0px)) !important; }
  html.ctl-bar .tabs.mode-tabs:has(> .tab-plus) > button:not(.tab-signout) { height: 50px; padding: 0 0 6px !important; justify-content: flex-end !important; gap: 0; }
  html.ctl-bar .tabs.mode-tabs:has(> .tab-plus) > button .tab-lbl { display: none !important; }
  html.ctl-bar .tabs.mode-tabs:has(> .tab-plus) > button svg { width: 26px; height: 26px; stroke-width: 1.6; color: var(--text) !important; stroke: var(--text) !important; transform: none !important; }
  html.ctl-bar .tabs.mode-tabs:has(> .tab-plus) > button.on svg { stroke-width: 2.3; }
  html.ctl-bar .tabs.mode-tabs:has(> .tab-plus) > button.on, html.ctl-bar .tabs.mode-tabs:has(> .tab-plus) > button { color: var(--text) !important; }
  html.ctl-bar .tabs.mode-tabs:has(> .tab-plus) > button .drv-ava, html.ctl-bar .tabs.mode-tabs:has(> .tab-plus) > button .tab-badge { transform: none !important; }
  html.ctl-bar .tabs.mode-tabs > button.tab-plus svg { width: 34px; height: 34px; stroke-width: 1.5; margin-bottom: -4px; }
  html.ctl-bar .tabs.mode-tabs > button.tab-plus.pq-open svg { transform: rotate(45deg) !important; }
}
/* menu ouvert : la bulle de discussion et les autres boutons flottants s'effacent */
html.pq-menu-open .rc-fab, html.pq-menu-open .fab { opacity: 0 !important; pointer-events: none !important; transition: opacity .2s; }

/* Menu du « + », design 6 « Tout en un » (owner, 2026-11-24) : niveau et invitation dans un seul bloc doré */
.pq-h6 { margin: 0 0 4px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(205, 165, 91, .28), rgba(205, 165, 91, .08)); }
.pq-menu button.pq-h6-top { display: grid; gap: 2px; padding: 0; background: none !important; border-radius: 0; }
.pq-chip { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 3px 9px; border-radius: 99px; background: var(--bg); font-size: 11.5px; font-weight: 800; color: var(--text); }
.pq-chip .pq-pips { display: inline-flex; gap: 2px; }
.pq-chip .pq-pips i { width: 8px; height: 4px; border-radius: 3px; background: var(--line); }
.pq-chip .pq-pips i.f { background: var(--gold); }
.pq-h6-t { margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.pq-h6-d { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pq-h6-d b { color: var(--text); font-weight: 700; }   /* « 10 secondes avant » en gras (version 4, owner 2026-11-25) */
.pq-menu button.pq-h6-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; height: 42px; border-radius: 99px; background: var(--gold); color: #fff; font-weight: 800; font-size: 14px; text-align: center; }
.pq-h6-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .pq-menu button.pq-h6-cta:hover { background: var(--text); color: var(--bg); } .pq-menu button.pq-h6-top:hover .pq-h6-t { color: var(--gold); } }

.pq-gold { color: var(--gold); font-weight: 700; }   /* « 2 secondes » (Créer une facture, owner 2026-11-24) */

/* Tiroir d'invitation : champs « Contour arrondi » (design 2, owner 2026-11-24) — remplace le trait sous chaque champ */
.pq-form { gap: 20px; padding-top: 8px; }
.pq-two { gap: 10px; }
.pq-u { position: relative; display: block; padding: 0; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: none !important; transition: border-color .25s; }
.pq-u:focus-within { border-color: var(--gold); box-shadow: none; }
.pq-u > span { position: absolute; left: 12px; top: -9px; padding: 0 6px; background: var(--pq-dlg-bg, var(--panel, var(--bg))); font-size: 12px; font-weight: 700; line-height: 16px; color: var(--muted); transition: color .25s; pointer-events: none; }
.pq-u:focus-within > span { color: var(--gold); }
.pq-u input { padding: 15px 16px 13px !important; font-size: 16px; }
.pq-u:has(input.fbad), .pq-u.bad { border-color: var(--red); }
.pq-done h2 { text-align: center !important; margin: 0 0 8px !important; }   /* « Invitation envoyée » centré (owner, 2026-11-24) */

/* « Votre collègue doit » : cadre fin titré au lieu du fond gris (design 1, owner 2026-11-24) */
.pq-req { background: none; border: 1.5px solid var(--line); padding: 18px 14px 12px; }
.pq-req-t { position: relative; z-index: 1; justify-self: start; width: max-content; margin: 0 0 -22px 12px !important; padding: 0 6px; background: var(--pq-dlg-bg, var(--panel, var(--bg))); font-size: 12px; line-height: 16px; letter-spacing: 0; text-transform: none; }

/* Collègues de confiance, version 2 « Deux zones » (prio.js pqPaint, owner 2026-11-25). */
.pqg-h { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; }
.pqg-p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pqg-p b { color: var(--text); }
.pqg-zone { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 18px 8px 12px; margin-top: 20px; }
.pqg-zone.gold { border-color: var(--gold); }
.pqg-zt { position: absolute; top: -9px; left: 12px; padding: 0 6px; background: var(--bg); font-size: 12px; font-weight: 800; line-height: 18px; color: var(--muted); white-space: nowrap; }
.pqg-zone.gold .pqg-zt { color: var(--gold); }
.pqg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px; }
.pqg-sp { display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pqg-av { flex: none; width: 44px; height: 44px; aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; text-align: center; line-height: 1; font-size: 13px; font-weight: 800; color: #fff; transition: box-shadow .3s, opacity .3s; }
.pqg-av.top { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.pqg-av.pale { opacity: .45; }
.pqg-av.free { background: none; border: 1.5px dashed var(--line); color: var(--muted); font-size: 15px; font-weight: 700; }
.pqg-av.free.top { border-color: var(--gold); color: var(--gold); box-shadow: none; }
.pqg-sp small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; color: var(--muted); }
.pqg-sp small.gold { color: var(--gold); font-weight: 800; }
.pqg-sp.on .pqg-av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); opacity: 1; }
@media (hover: hover) { .pqg-sp:hover .pqg-av.free { border-color: var(--gold); color: var(--gold); } .pqg-sp:hover .pqg-av:not(.free) { opacity: 1; } }
.pqg-sel { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.pqg-sel b { display: block; font-size: 14.5px; }
.pqg-sel small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.pqg-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.pqg-track span { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.pqg-track span i { display: block; height: 4px; border-radius: 2px; margin-bottom: 3px; background: var(--line); }
.pqg-track span.on { color: var(--gold); } .pqg-track span.on i { background: var(--gold); }
.pqg-sel .pq-link { margin-top: 10px; }
.pqg-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pqg-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 16px; border: 0; border-radius: 99px; background: var(--gold); color: #fff; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; transition: background-color .3s, color .3s; }
.pqg-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .pqg-cta:hover { background: var(--text); color: var(--bg); } }
