/* Site de suivi : apparence de la société de transport (bleu, rouge, gris). Polices du projet, rien d'externe. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/sora-700.woff2') format('woff2'); }

:root {
  --bleu: #232D66; --bleu-f: #1a2250; --rouge: #D7313E; --gris: #9A9DAB;
  --fond: #f3f4f8; --carte: #ffffff; --texte: #1c2140; --doux: #5d6178; --ligne: #e4e6ee;
  --vert: #1f8a5b; --vert-f: #e5f4ec; --rouge-f: #fbe9ea; --bleu-l: #e8eaf4;
  --ombre: 0 1px 2px rgba(20, 26, 60, .06), 0 6px 20px rgba(20, 26, 60, .07);
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--texte); background: var(--fond); line-height: 1.5; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: Sora, Manrope, Arial, sans-serif; line-height: 1.2; margin: 0; }
a { color: var(--bleu); }
button { font: inherit; }
[hidden] { display: none !important; }

.haut { background: var(--bleu); color: #fff; padding-top: env(safe-area-inset-top); }
.haut-in { max-width: 860px; margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marque img { display: block; height: 30px; width: auto; }
.langue { background: rgba(255,255,255,.12); color: #fff; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .5px; cursor: pointer; border: 0; }
.langue:hover, .langue:focus-visible { background: rgba(255,255,255,.22); outline: none; }

.page { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 0 18px 32px; }
.recherche { background: var(--bleu); color: #fff; margin: 0 -18px; padding: 8px 18px 26px; border-radius: 0 0 22px 22px; }
.recherche h1 { font-size: 26px; }
.recherche .sous { margin: 6px 0 16px; color: rgba(255,255,255,.8); font-size: 15px; }
.lbl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: rgba(255,255,255,.85); }
.ligne { display: flex; gap: 8px; }
.ligne input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; border: 0; font: 700 18px Manrope, Arial, sans-serif; letter-spacing: .5px; color: var(--texte); background: #fff; text-transform: uppercase; }
.ligne input::placeholder { color: #b0b3c2; font-weight: 600; text-transform: none; }
.ligne input:focus { outline: none; box-shadow: 0 0 0 3px rgba(215, 49, 62, .55); }
.btn { height: 52px; padding: 0 22px; border-radius: 12px; background: var(--rouge); color: #fff; font-weight: 800; cursor: pointer; border: 0; white-space: nowrap; }
.btn:hover { background: #c22834; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.btn[disabled] { opacity: .7; cursor: wait; }
.erreur { margin: 12px 0 0; background: var(--rouge-f); color: #8f1d26; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }

.resultat { margin-top: 18px; display: grid; gap: 14px; }
.carte { background: var(--carte); border-radius: var(--r); box-shadow: var(--ombre); padding: 18px; }
.entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.numero { font: 800 21px Sora, Arial, sans-serif; letter-spacing: .3px; word-break: break-all; }
.quoi { color: var(--doux); font-size: 14.5px; margin-top: 2px; }
.etat { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13.5px; background: var(--bleu-l); color: var(--bleu); }
.etat.fini { background: var(--vert-f); color: var(--vert); }
.etat.dispo { background: var(--rouge); color: #fff; }
.trajet { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; flex-wrap: wrap; }
.trajet svg { flex: none; color: var(--gris); }
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; }
.info { background: var(--fond); border-radius: 10px; padding: 10px 12px; }
.info .k { font-size: 12px; color: var(--doux); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.info .v { font-weight: 700; margin-top: 2px; }
.alerte { margin-top: 14px; background: var(--rouge-f); color: #8f1d26; border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.alerte.ok { background: var(--vert-f); color: var(--vert); }

.carte h2 { font-size: 17px; margin-bottom: 12px; }
.frise { list-style: none; margin: 0; padding: 0; position: relative; }
.etape { position: relative; padding: 0 0 18px 34px; }
.etape:last-child { padding-bottom: 0; }
.etape::before { content: ''; position: absolute; left: 9px; top: 18px; bottom: -2px; width: 2px; background: var(--ligne); }
.etape:last-child::before { display: none; }
.etape.fait::before { background: var(--bleu); }
.point { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--ligne); }
.etape.fait .point { background: var(--bleu); box-shadow: none; }
.etape.fait .point::after { content: ''; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; transform: rotate(45deg); box-shadow: 2px 2px 0 0 #fff; }
.etape.prochaine .point { box-shadow: inset 0 0 0 3px var(--rouge); }
.etape .lib { font-weight: 700; }
.etape:not(.fait) .lib { color: var(--doux); font-weight: 600; }
.etape.prochaine .lib { color: var(--texte); font-weight: 700; }
.etape .det { font-size: 13.5px; color: var(--doux); }

.liste-colis { display: grid; gap: 8px; }
.colis { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--fond); border-radius: 10px; padding: 10px 12px; cursor: pointer; text-align: left; width: 100%; color: inherit; border: 0; }
.colis:hover, .colis:focus-visible { background: var(--bleu-l); outline: none; }
.colis .n { font-weight: 800; }
.colis .l { font-size: 13.5px; color: var(--doux); }

.chargement { text-align: center; color: var(--doux); padding: 26px; }

.bas { background: #fff; box-shadow: 0 -1px 0 var(--ligne); padding-bottom: env(safe-area-inset-bottom); }
.bas-in { max-width: 860px; margin: 0 auto; padding: 20px 18px 24px; display: grid; gap: 14px; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.contact { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--fond); text-decoration: none; color: var(--texte); font-weight: 700; font-size: 14.5px; }
.contact.wa { background: #e7f6ec; color: #11733f; }
.contact svg { flex: none; }
.liens { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 700; font-size: 14.5px; }
.liens a { text-decoration: none; }
.liens a:hover { text-decoration: underline; }
.mention { margin: 0; font-size: 12.5px; color: var(--doux); }

@media (min-width: 700px) {
  .recherche { margin: 0; border-radius: 0 0 26px 26px; padding: 14px 28px 30px; }
  .recherche h1 { font-size: 30px; }
  .carte { padding: 22px 24px; }
}
@media print {
  .haut, .bas, .recherche { display: none; }
  body { background: #fff; }
  .carte { box-shadow: none; }
}
