/* Gestion de TransportBF : meme style que la maquette validee (doux 3D, menu blanc, pilule bleu nuit). */
@font-face { font-family: Jakarta; src: url('../polices/Jakarta-500.ttf'); font-weight: 400 500; }
@font-face { font-family: Jakarta; src: url('../polices/Jakarta-700.ttf'); font-weight: 600 700; }
@font-face { font-family: Jakarta; src: url('../polices/Jakarta-800.ttf'); font-weight: 800; }

:root {
  --fond: #F6F8FC; --surface: #fff; --surface2: #F0F3F9; --encre: #14213D; --doux: #6B7488; --trait: #E6EAF2;
  --ambre: #F08A24; --ambre-doux: #FFF1E2; --bleu: #2F6FED; --succes: #0F9C8B; --attention: #B7791F; --alerte: #E5484D;
  --p-bleu: #E3EEFF; --p-peche: #FFEBD9; --p-menthe: #DDF5EE; --p-sable: #FFF5D6; --p-lilas: #ECE6FF;
  --ombre: 0 8px 22px rgba(20, 33, 61, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Jakarta, system-ui, sans-serif; color: var(--encre); background: var(--fond); font-size: 14.5px; }
a { color: inherit; text-decoration: none; }
.cadre { display: flex; min-height: 100vh; }

/* Menu blanc a gauche */
.menu { width: 250px; background: var(--surface); padding: 26px 16px; box-shadow: var(--ombre); flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.5px; margin: 0 8px 22px; }
.logo i { font-style: normal; color: var(--ambre); }
.marque { width: 38px; height: 38px; border-radius: 12px; background: var(--encre); display: grid; place-items: center; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 50px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--doux); }
.menu a img { width: 26px; height: 26px; }
.menu a:hover { background: var(--surface2); }
.menu a.actif { background: var(--encre); color: #fff; }
.menu .nb { margin-left: auto; background: var(--ambre); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.menu .bas { margin-top: auto; }
.simulation { background: var(--p-sable); border-radius: 22px; padding: 14px; font-size: 13px; font-weight: 600; color: #7A5A12; line-height: 1.4; margin-bottom: 10px; }

/* Contenu */
.contenu { flex: 1; padding: 28px 34px 60px; min-width: 0; }
.haut { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.haut h1 { font-size: 28px; font-weight: 800; letter-spacing: -.7px; }
.date { color: var(--doux); font-weight: 600; }
.flash { background: var(--p-menthe); color: var(--succes); border-radius: 16px; padding: 12px 16px; font-weight: 700; margin-bottom: 16px; }
.erreur { background: #FDE7E8; color: var(--alerte); border-radius: 16px; padding: 12px 16px; font-weight: 700; margin-bottom: 16px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--trait); background: #fff; border-radius: 999px; padding: 0 18px; height: 42px; font-weight: 800; font-size: 13.5px; cursor: pointer; font-family: inherit; color: var(--encre); white-space: nowrap; }
.btn.encre { background: var(--encre); color: #fff; border-color: var(--encre); }
.btn.rouge { border: 2px solid var(--alerte); color: var(--alerte); }
.btn.grand { height: 52px; font-size: 15px; flex: 1; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.chif { border-radius: 26px; padding: 18px; position: relative; overflow: hidden; box-shadow: var(--ombre); min-height: 128px; }
.chif span { font-size: 14px; font-weight: 700; color: rgba(20,33,61,.65); }
.chif b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-top: 8px; }
.chif small { font-size: 12px; font-weight: 700; color: var(--succes); }
.chif small.attente { color: var(--doux); }
.chif img { position: absolute; right: 12px; bottom: 10px; width: 62px; }

/* Cartes */
.grille { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-top: 16px; }
.carte { background: var(--surface); border-radius: 28px; box-shadow: var(--ombre); padding: 20px 22px; min-width: 0; }
.carte h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.carte h2 a { font-size: 13px; color: var(--bleu); }
.vide { color: var(--doux); padding: 22px 0; text-align: center; font-weight: 600; }
.vide img { width: 64px; display: block; margin: 0 auto 8px; }
.ligne { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--trait); }
.ligne:last-child { border-bottom: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--p-bleu); flex: none; }
.avatar.chargeur { background: var(--p-peche); }
.qui { flex: 1; min-width: 0; }
.qui b { font-size: 15px; display: block; }
.qui small { font-size: 12.5px; color: var(--doux); font-weight: 600; }
.pastille { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pastille.ok { background: var(--p-menthe); color: var(--succes); }
.pastille.attente { background: var(--p-sable); color: var(--attention); }
.pastille.non { background: #FDE7E8; color: var(--alerte); }
.pastille.gris { background: var(--surface2); color: var(--doux); }
.axe { margin-top: 14px; }
.axe .t { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.axe .t span { color: var(--doux); }
.axe .b { height: 12px; border-radius: 999px; background: var(--surface2); margin-top: 6px; overflow: hidden; }
.axe .b i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFB36B, #F08A24); }

/* Tableaux et filtres */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--doux); font-size: 12px; font-weight: 800; padding: 10px 8px; border-bottom: 1.5px solid var(--trait); }
td { padding: 10px 8px; border-bottom: 1px solid var(--trait); font-weight: 600; vertical-align: middle; }
td small { color: var(--doux); font-weight: 500; display: block; }
tr.lien:hover td { background: #FAFBFE; cursor: pointer; }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.puce { border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; background: #fff; border: 1.5px solid var(--trait); }
.puce.actif { background: var(--encre); color: #fff; border-color: var(--encre); }
input[type=text], input[type=email], input[type=password], input[type=search] { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--encre); background: #fff; border: 1.5px solid var(--trait); border-radius: 14px; padding: 10px 12px; }
nav[role=navigation] { margin-top: 14px; }

/* Fiche d'un compte */
.retour { color: var(--bleu); font-weight: 800; font-size: 14px; }
.entete { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.entete .avatar { width: 58px; height: 58px; font-size: 20px; }
.entete h1 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.infos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.infos span { background: var(--surface2); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; color: var(--doux); }
.dossier { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 18px; align-items: start; }
.onglets { display: flex; gap: 8px; flex-wrap: wrap; }
.onglets a { flex: 1; min-width: 130px; border-radius: 18px; padding: 10px; display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; background: var(--surface2); }
.onglets a img { width: 28px; }
.onglets a.on { background: var(--encre); color: #fff; }
.onglets a i { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--trait); }
.onglets a i.envoye { background: var(--ambre); } .onglets a i.valide { background: var(--succes); } .onglets a i.refuse { background: var(--alerte); }
.apercu { margin-top: 14px; min-height: 360px; border-radius: 22px; background: #E9EDF5; display: grid; place-items: center; padding: 14px; }
.apercu img { max-width: 100%; max-height: 520px; border-radius: 12px; box-shadow: 0 10px 30px rgba(20,33,61,.18); }
.faces { display: flex; gap: 8px; margin-top: 10px; }
.miniatures { display: flex; gap: 8px; }
.miniatures a { flex: 1; height: 90px; border-radius: 16px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; position: relative; font-weight: 700; color: var(--doux); font-size: 12.5px; }
.miniatures a img { width: 100%; height: 100%; object-fit: cover; }
.miniatures a span { position: absolute; left: 8px; bottom: 6px; background: rgba(255,255,255,.9); border-radius: 999px; padding: 2px 8px; color: var(--encre); }
.verif .point { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--trait); font-weight: 700; font-size: 14.5px; }
.verif .point:last-child { border: 0; }
.choix { margin-left: auto; display: flex; gap: 6px; }
.choix input { display: none; }
.choix label { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--surface2); color: var(--doux); cursor: pointer; }
.choix input:checked + label.oui { background: var(--p-menthe); color: var(--succes); }
.choix input:checked + label.non { background: #FDE7E8; color: var(--alerte); }
.motifs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.motifs label { border: 1.5px solid var(--trait); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.motifs input { display: none; }
.motifs input:checked + span { color: var(--alerte); }
.motifs label:has(input:checked) { border-color: var(--alerte); background: #FDE7E8; }
.refaire label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 700; padding: 4px 0; }
.note { font-size: 12.5px; color: var(--doux); margin-top: 14px; font-weight: 600; line-height: 1.45; }

/* Connexion */
.connexion { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(70% 70% at 0% 0%, #FFE3C8 0%, transparent 60%), radial-gradient(70% 80% at 100% 100%, #DCE7FF 0%, transparent 60%), var(--fond); }
.connexion form { width: 380px; background: #fff; border-radius: 30px; padding: 32px; box-shadow: 0 20px 50px rgba(20,33,61,.14); }
.connexion label { display: block; font-size: 12px; font-weight: 800; color: var(--doux); margin-top: 14px; }
.connexion input[type=email], .connexion input[type=password] { width: 100%; margin-top: 5px; }

@media (max-width: 1100px) { .chiffres { grid-template-columns: 1fr 1fr; } .grille, .dossier { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .menu { display: none; } .contenu { padding: 18px; } }
