/* Chantier n° 14 (31/10) — Transports façon SpiderVO. Bureau : des colonnes courtes (véhicule, état, compagnie,
   lieu, prévue / arrivée, jours, pickup, facture, CMR), un mot et une couleur par voiture (détail au survol), les
   filtres en puces, la fiche en volet avec Précédente / Suivante et un seul bouton bleu (la prochaine action).
   Téléphone : une ligne par voiture (le mot, le nom, compagnie · arrivée), « Filtres ▾ » seul, textes ≥ 15 px,
   cibles ≥ 44 px, rien qui glisse de côté. Préfixe « tp- ». Chargé après agenda-ag.css (écrase transports-v1.css). */

section.tp{--tp-ardoise:192 55% 32%;--tp-ardoise-doux:190 45% 93%;--tp-violet:262 52% 50%;--tp-violet-doux:262 80% 96%}

/* Le mot : une couleur par état. */
.tp-tag{display:inline-flex;align-items:center;justify-content:center;padding:2px 10px;border-radius:999px;font-size:13px;font-weight:600;line-height:1.5;white-space:nowrap;background:hsl(var(--td,var(--ap-gris-doux)));color:hsl(var(--t,var(--ap-doux)))}
.tp :is(.tp-tag,.tp-mot,.tp-bascule,.tp-puce)[data-ton="orange"]{--t:var(--ap-ambre);--td:var(--ap-ambre-doux)}
.tp :is(.tp-tag,.tp-mot,.tp-bascule,.tp-puce)[data-ton="bleu"]{--t:var(--ap-action-fort);--td:var(--ap-action-doux)}
.tp :is(.tp-tag,.tp-mot,.tp-bascule,.tp-puce)[data-ton="ardoise"]{--t:var(--tp-ardoise);--td:var(--tp-ardoise-doux)}
.tp :is(.tp-tag,.tp-mot,.tp-bascule,.tp-puce)[data-ton="rouge"]{--t:var(--ap-rouge);--td:var(--ap-rouge-doux)}
.tp :is(.tp-tag,.tp-mot,.tp-bascule,.tp-puce)[data-ton="violet"]{--t:var(--tp-violet);--td:var(--tp-violet-doux)}
.tp :is(.tp-tag,.tp-mot,.tp-bascule,.tp-puce)[data-ton="vert"]{--t:var(--ap-vert);--td:var(--ap-vert-doux)}
.tp :is(.tp-tag,.tp-mot,.tp-bascule,.tp-puce)[data-ton="gris"]{--t:var(--ap-doux);--td:var(--ap-gris-doux)}
.tp-mot{font-size:13px;font-weight:600;color:hsl(var(--t,var(--ap-doux)));white-space:nowrap}
.tp-doux{color:hsl(var(--ap-doux))}

/* En-tête. */
.tp-tete{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
.tp-tete h1{margin:0;font-size:var(--ap-t-titre);font-weight:var(--ap-g-chiffre);letter-spacing:-.025em}
.tp-n{font-size:15px;font-weight:600;color:hsl(var(--ap-doux))}
.tp-seg{display:inline-flex;border-radius:10px;box-shadow:0 0 0 1px hsl(var(--ap-trait)) inset;overflow:hidden;margin-left:8px}
.tp-seg button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:0;background:none;font:inherit;font-size:14px;font-weight:600;color:hsl(var(--ap-doux));cursor:pointer}
.tp-seg button b{font-weight:600;color:hsl(var(--ap-encre))}
.tp-seg button.on{background:hsl(var(--ap-action-doux));color:hsl(var(--ap-action-fort))}
.tp-cherche{width:280px;margin-left:auto}
.tp-cherche-tel{display:none}
.tp-fbtn{display:none}
.tp-outils{display:inline-flex;gap:6px}
.tp-o{height:36px;padding:0 12px;font-size:14px;text-decoration:none;color:hsl(var(--ap-encre))}
.tp-note{margin:0;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:hsl(var(--ap-doux))}
.tp-filtres{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tp-puce{height:32px}
.tp-puce.on{background:hsl(var(--td,var(--ap-action-doux)));color:hsl(var(--t,var(--ap-action-fort)));box-shadow:0 0 0 1px hsl(var(--t,var(--ap-action))) inset}
.tp-puce.on b{color:inherit}
.tp-sel{height:32px;padding:0 8px;border:0;border-radius:999px;background:hsl(var(--ap-carte));box-shadow:0 0 0 1px hsl(var(--ap-trait)) inset;font:inherit;font-size:13px;font-weight:600;color:hsl(var(--ap-doux))}
.tp-v1{display:inline-flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.tp-outils-tel{display:none}

/* Bureau : les colonnes. */
section.tp .tp-liste{border-radius:var(--ap-r-l);background:hsl(var(--ap-carte));box-shadow:0 0 0 1px hsl(var(--ap-trait)) inset;overflow:hidden;min-width:0}
section.tp .tp-th,section.tp .tp-l.trv-ln{display:grid;grid-template-columns:24px 56px minmax(180px,1.6fr) 92px minmax(110px,1fr) minmax(80px,.8fr) 64px 44px 52px 56px 64px;align-items:center;column-gap:10px;padding:0 14px}
section.tp .tp-th{height:34px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:hsl(var(--ap-doux));border-bottom:1px solid hsl(var(--ap-trait))}
section.tp .tp-l.trv-ln{position:relative;min-height:56px;padding-top:4px;padding-bottom:4px;border-bottom:1px solid hsl(var(--ap-trait)/.7);cursor:pointer;row-gap:0}
section.tp .tp-l>*{min-width:0}
section.tp .tp-l:hover{background:hsl(var(--ap-action-doux)/.45)}
section.tp .tp-l.on{background:hsl(var(--ap-action-doux));box-shadow:3px 0 0 hsl(var(--ap-action)) inset}
section.tp .tp-l.sel{background:hsl(var(--ap-action-doux)/.7)}
section.tp .tp-l[data-ton="rouge"]::after{content:"";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:0 3px 3px 0;background:hsl(var(--ap-rouge))}
section.tp .tp-ph{width:56px;height:40px;border-radius:6px;object-fit:cover}
section.tp .tp-ve{display:flex;flex-direction:column;line-height:1.25}
section.tp .tp-ve b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
section.tp .tp-ve small{font-size:12px;color:hsl(var(--ap-doux));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
section.tp .tp-ve-t{display:none}
section.tp .tp-co{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
section.tp .tp-co i{width:9px;height:9px;border-radius:50%;flex:none}
section.tp .tp-tx{font-size:13px;color:hsl(var(--ap-doux));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
section.tp .tp-dt{display:flex;flex-direction:column;font-size:13px;font-weight:600;line-height:1.2}
section.tp .tp-dt small{font-size:11px;font-weight:600;color:hsl(var(--ap-doux))}
section.tp .tp-dt.rouge,section.tp .tp-dt.rouge small{color:hsl(var(--ap-rouge))}
section.tp .tp-jr{font-size:13px;color:hsl(var(--ap-doux))}
section.tp .tp-jr.ambre{color:hsl(var(--ap-ambre));font-weight:600}
section.tp .tp-vide{padding:32px 14px;text-align:center;color:hsl(var(--ap-doux));font-weight:600;margin:0}
section.tp .trv-ck{width:22px;height:22px}
@media (max-width:1279px){
  section.tp .tp-th,section.tp .tp-l.trv-ln{grid-template-columns:24px 56px minmax(160px,1.6fr) 92px minmax(100px,1fr) 64px 44px 52px 56px}
  section.tp .tp-c-lieu,section.tp .tp-c-jours{display:none}
}

/* La fiche (volet). */
.tp-vt{flex-wrap:wrap}
.tp-vt .tp-retour{display:none}
.tp-vt .or-vtx{flex:1 1 220px}
.tp-voisines{margin-left:auto}
.tp-fiche{flex:1;padding:16px 20px;overflow:auto}
.tp-fiche dl{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 14px;margin:0;align-items:center}
.tp-fiche dt{font-size:13px;font-weight:600;color:hsl(var(--ap-doux))}
.tp-fiche dd{margin:0;font-size:15px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;overflow-wrap:anywhere}
.tp-champ{height:38px;min-width:0;max-width:100%;padding:0 10px;border:0;border-radius:var(--ap-r-s);background:hsl(var(--ap-carte));box-shadow:0 0 0 1px hsl(var(--ap-trait-fort)) inset;font:inherit;font-size:15px}
input.tp-champ[type=text]{width:260px}
.tp-bascule{height:36px;padding:0 14px;border:0;border-radius:999px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;background:hsl(var(--td));color:hsl(var(--t));box-shadow:0 0 0 1px hsl(var(--t)/.4) inset}
.tp-mini{height:32px;padding:0 12px;font-size:13px}
.tp-lien{color:hsl(var(--ap-action-fort));font-weight:600}
.tp-fiche .tp-v1{display:flex;margin:18px 0 0}
.tp-pied{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;background:hsl(var(--ap-carte));box-shadow:0 -1px 0 hsl(var(--ap-trait))}
.tp-pied:empty{display:none}
.tp-pied .or-btn{height:42px}
.trv-appl{font-weight:600}

/* Téléphone (≤ 767 px) : une ligne par voiture ; tout le reste derrière « Filtres ▾ ». */
@media (max-width:767px){
  body:has(section.tp) .n1-puce-filtres{display:none!important}
  section.tp{padding:10px 16px 96px;font-size:15px}
  .tp-tete{gap:8px}
  .tp-tete h1{flex:0 0 auto}
  .tp-seg{margin-left:auto}
  .tp-seg button{height:44px;padding:0 12px;font-size:15px}
  .tp-cherche,.tp-outils{display:none}
  .tp-outils-tel{display:flex;flex-wrap:wrap;gap:8px}
  .tp-outils-tel .tp-o{flex:1 1 auto}
  .tp-o{height:44px;min-width:44px}
  .tp-fbtn{display:inline-flex;align-items:center;gap:4px;height:44px;padding:0 16px;border:0;border-radius:999px;font:inherit;font-size:15px;font-weight:600;background:hsl(var(--ap-carte));box-shadow:0 0 0 1px hsl(var(--ap-trait)) inset;color:hsl(var(--ap-encre));cursor:pointer;flex:1 1 auto;justify-content:center}
  .tp-note{font-size:15px}
  .tp-filtres{display:none;flex-direction:column;align-items:stretch;gap:8px;padding:12px;border-radius:var(--ap-r-l);background:hsl(var(--ap-carte));box-shadow:0 0 0 1px hsl(var(--ap-trait)) inset}
  .tp-filtres.tp-ouvert{display:flex}
  .tp-cherche-tel{display:block;width:100%;margin:0}
  .tp-cherche-tel input{height:44px;font-size:16px}
  .tp-filtres .tp-puce,.tp-filtres .tp-sel,.tp-filtres .ds-lien{height:44px;font-size:15px;justify-content:space-between;width:100%}
  .tp-filtres .tp-v1{margin:0}
  .tp-filtres .tp-v1>*{min-height:44px;font-size:15px}
  section.tp .tp-th{display:none}
  section.tp .tp-liste{border-radius:var(--ap-r-l)}
  section.tp .tp-l.trv-ln{grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;min-height:60px;padding:8px 12px}
  section.tp .tp-l>:not(.tp-c-et):not(.tp-ve):not(.tp-c-k){display:none}
  section.tp .tp-l>.tp-c-k{display:none}
  section.tp .tp-l.trv-ln{grid-template-columns:96px minmax(0,1fr)}
  section.tp .tp-c-et .tp-tag{min-width:84px}
  section.tp .tp-c-et{order:0}
  section.tp .tp-ve{order:1}
  section.tp .tp-ve b{font-size:15px}
  section.tp .tp-ve-d{display:none}
  section.tp .tp-ve-t{display:block;font-size:15px}
  section.tp .tp-tag{font-size:15px;padding:3px 10px}
  section.tp .trv-ck{width:44px;height:44px}
  .tp-volet{width:100vw}
  .tp-vt{padding:10px 16px;gap:8px}
  .tp-vt .tp-retour{display:inline-flex;height:44px;order:-2}
  .tp-vt .or-x{display:none}
  .tp-vt .or-vtx{flex:1 1 100%;order:2}
  .tp-voisines .or-btn{min-width:44px;height:44px}
  .tp-fiche{padding:12px 16px}
  .tp-fiche dl{grid-template-columns:minmax(0,1fr);gap:4px}
  .tp-fiche dt{font-size:15px;margin-top:8px}
  .tp-fiche dd{font-size:15px}
  .tp-champ{height:44px;width:100%;font-size:16px}
  input.tp-champ[type=text]{width:100%}
  .tp-bascule,.tp-mini{height:44px;font-size:15px}
  .tp-fiche .tp-v1>*{min-height:44px;font-size:15px}
  .tp-pied{padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
  .tp-pied .or-btn{flex:1;height:48px;font-size:16px}
  section.tp .trv-plus{min-height:44px;font-size:15px}
}
@media (max-width:767px){
  .tp-lien{display:inline-flex;align-items:center;min-height:44px}
}
/* Les fenêtres (réception, facture, compagnies) passent au-dessus du volet de la fiche. */
section.tp .trv-fen{z-index:230}
/* L'icône de recherche et la croix (classe .or-i, dimensionnée seulement sous section.or). */
section.tp svg.or-i{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
