/* 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; } }

/* Etape 5 : cartes du suivi GPS (Leaflet) */
.carte-gps { height: 380px; border-radius: 22px; overflow: hidden; background: #EEF1E8; margin-top: 4px; z-index: 0; }
.camion-carte { position: relative; }
.leaflet-container .leaflet-marker-pane .camion-carte img { position: absolute; left: 0; top: 0; width: 52px; filter: drop-shadow(0 8px 8px rgba(20,33,61,.25)); }
.camion-carte .halo { position: absolute; left: 17px; top: 25px; width: 18px; height: 18px; border-radius: 50%; background: var(--bleu); box-shadow: 0 0 0 9px rgba(47,111,237,.2), 0 0 0 20px rgba(47,111,237,.08); animation: respire 2s ease-in-out infinite; }
@keyframes respire { 50% { box-shadow: 0 0 0 13px rgba(47,111,237,.14), 0 0 0 26px rgba(47,111,237,.04); } }
@media (prefers-reduced-motion: reduce) { .camion-carte .halo { animation: none; } }
.alerte-carte { width: 30px; height: 30px; border-radius: 50%; background: var(--alerte); color: #fff; display: grid !important; place-items: center; font-weight: 800; font-size: 16px; box-shadow: 0 0 0 8px rgba(229,72,77,.18); }
.ville-carte { background: #fff; border-radius: 12px; padding: 4px 9px; font-size: 11.5px; font-weight: 800; box-shadow: 0 4px 10px rgba(20,33,61,.1); white-space: nowrap; width: auto !important; height: auto !important; font-family: Jakarta, system-ui, sans-serif; }
.point { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.alrt { border-radius: 22px; background: #FDE7E8; padding: 14px; margin-top: 8px; }
.alrt b { font-size: 14.5px; display: block; }
.alrt small { font-size: 12.5px; color: rgba(20,33,61,.7); font-weight: 600; }
.alrt input { width: 100%; background: #fff; border: 0; border-radius: 14px; height: 42px; padding: 0 12px; font: inherit; font-size: 13.5px; margin-top: 10px; }
.alrt .acts { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.fil { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--trait); }
.fil:last-child { border-bottom: 0; }
.fil img { width: 32px; height: 32px; flex: none; }
.fil b { font-size: 14px; display: block; }
.fil small { font-size: 12px; color: var(--doux); font-weight: 600; }
.fil .h { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--doux); white-space: nowrap; }

/* Etape 6 : litiges et signalements */
.lit { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 18px; }
.lit.on, a.lit:hover { background: var(--surface2); }
.cotes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.cote-l { background: var(--surface2); border-radius: 20px; padding: 12px; }
.cote-l h3 { font-size: 13.5px; font-weight: 800; }
.cote-l p { font-size: 13px; font-weight: 600; margin-top: 4px; line-height: 1.4; }
.ph { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ph a { width: 84px; height: 62px; border-radius: 12px; overflow: hidden; position: relative; background: linear-gradient(160deg, #3A4A63, #1E2A40); }
.ph a img { width: 100%; height: 100%; object-fit: cover; }
.ph small { position: absolute; left: 4px; bottom: 3px; font-size: 9.5px; color: #fff; font-weight: 700; background: rgba(0,0,0,.45); padding: 0 4px; border-radius: 5px; }
.decide { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.decide label { font-size: 12px; font-weight: 800; color: var(--doux); display: block; }
.decide input { width: 100%; background: #fff; border: 1.5px solid var(--trait); border-radius: 14px; height: 42px; padding: 0 12px; font: inherit; font-weight: 700; font-size: 14px; margin-top: 4px; }
.repart { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--doux); margin-top: 10px; background: var(--p-bleu); border-radius: 14px; padding: 10px 12px; }
.repart b { color: var(--encre); }
.note { font-size: 13px; font-weight: 600; color: var(--doux); }

/* Etape 7 : tableau de bord, statistiques, reglages */
.legende-c { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--doux); margin-top: 10px; }
.legende-c i { width: 120px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #F5B97A, #F08A24, #E5484D); }
.barres-j { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 12px; padding: 0 4px; }
.barres-j div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--doux); }
.barres-j b { width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #FFB36B, #F08A24); }
.barres-j em { font-style: normal; color: var(--encre); font-size: 11.5px; }
.ligne-t { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--trait); font-size: 13.5px; font-weight: 700; }
.ligne-t:last-child { border: 0; }
.ligne-t span { color: var(--doux); font-size: 12.5px; }
.reg { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.reg img { width: 34px; }
.reg b { font-size: 14.5px; display: block; }
.reg small { font-size: 12px; color: var(--doux); font-weight: 600; }
.reg .val { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.reg input, .plage input { width: 96px; height: 40px; border-radius: 12px; border: 1.5px solid var(--trait); background: #fff; text-align: center; font: inherit; font-weight: 800; font-size: 14px; }
.reg .u { font-size: 12.5px; font-weight: 800; color: var(--doux); width: 38px; }
.plage { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--trait); font-size: 13.5px; font-weight: 700; }
.plage.entete-p { color: var(--doux); font-size: 12px; }
.plage label { font-size: 12.5px; font-weight: 800; color: var(--doux); }
.plage input { width: 100px; }
.courbe { margin-top: 8px; }
.courbe svg { width: 100%; height: 210px; display: block; }
.mois { display: flex; justify-content: space-around; font-size: 11.5px; font-weight: 800; color: var(--doux); margin-top: 4px; }
.leg { display: flex; gap: 14px; font-size: 12px; font-weight: 800; color: var(--doux); }
.leg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.taux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.taux div { background: var(--surface2); border-radius: 18px; padding: 12px; }
.taux b { font-size: 22px; font-weight: 800; display: block; }
.taux small { font-size: 12px; font-weight: 700; color: var(--doux); }
td.n, th.n { text-align: right; }

/* Etape 8 : abonnements */
.lanc { display: flex; align-items: center; gap: 14px; background: var(--p-menthe); border-radius: 22px; padding: 14px 16px; cursor: pointer; }
.lanc b { font-size: 15px; display: block; }
.lanc small { font-size: 12.5px; font-weight: 600; color: rgba(20,33,61,.7); }
.bascule { appearance: none; margin-left: auto; width: 52px; height: 30px; border-radius: 999px; background: #D5DBE6; position: relative; flex: none; cursor: pointer; transition: background .2s; }
.bascule::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; }
.bascule:checked { background: var(--succes); }
.bascule:checked::after { left: 25px; }

/* Etape 9 : connexion en 2 temps */
.connexion form.code-2e { width: 440px; }
.code-2e h1 { font-size: 23px; font-weight: 800; letter-spacing: -.6px; }
.code-2e p { font-size: 14px; font-weight: 600; color: var(--doux); line-height: 1.45; margin-top: 6px; }
.num-etape { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ambre-doux, #FFF1E2); color: var(--ambre); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.qr { width: 190px; height: 190px; margin: 14px auto 10px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 2px var(--trait); }
.qr svg { width: 100%; height: 100%; display: block; }
.appli { display: flex; align-items: center; gap: 12px; background: var(--fond); border-radius: 18px; padding: 10px 12px; font-size: 13px; font-weight: 700; }
.appli img { width: 30px; }
.cle-texte { font-size: 12.5px; font-weight: 600; color: var(--doux); margin-top: 8px; }
.cle-texte summary { cursor: pointer; color: var(--bleu); font-weight: 800; }
.cle-texte b { color: var(--encre); letter-spacing: 1px; }
input.code6 { width: 100%; margin-top: 6px; font-family: inherit; font-size: 30px; font-weight: 800; letter-spacing: 12px; text-align: center; height: 64px; border-radius: 18px; border: 2px solid var(--trait); background: var(--surface2); color: var(--encre); }
input.code6:focus { outline: none; border-color: var(--encre); background: #fff; }
.aide { display: block; font-size: 12px; font-weight: 700; color: var(--doux); margin-top: 6px; }

/* Etape 9 : roles, agent connecte, equipe, journal, profil */
.role { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.r-super { background: var(--encre); color: #fff; }
.r-admin { background: var(--p-bleu); color: var(--bleu); }
.r-finances { background: var(--p-sable); color: #8A5A00; }
.r-support { background: var(--p-lilas); color: #5B3FC4; }
.moi { display: flex; align-items: center; gap: 10px; background: var(--fond); border-radius: 22px; padding: 10px 12px; margin-bottom: 10px; }
.moi:hover { outline: 2px solid var(--trait); }
.menu a.moi { border-radius: 22px; color: var(--encre); }
.menu a.moi.choisi { outline: 3px solid var(--encre); outline-offset: -3px; background: var(--fond); }
.moi b { font-size: 14px; display: block; color: var(--encre); }
.av-r { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13.5px; flex: none; }
.av-r.p { width: 34px; height: 34px; font-size: 12.5px; }
.av-r.super { background: var(--encre); color: #fff; }
.av-r.admin { background: var(--p-bleu); }
.av-r.finances { background: var(--p-sable); }
.av-r.support { background: var(--p-lilas); }
.av-r.personne { background: var(--surface2); }
.qui { display: flex; align-items: center; gap: 10px; }
.tuiles-role { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-role { border-radius: 22px; padding: 12px 14px; position: relative; min-height: 92px; cursor: pointer; display: block; }
.t-role input { position: absolute; opacity: 0; }
.t-role b { font-size: 14.5px; display: block; }
.t-role small { font-size: 11.5px; font-weight: 700; color: rgba(20,33,61,.65); display: block; max-width: 74%; line-height: 1.35; margin-top: 3px; }
.t-role img { position: absolute; right: 10px; bottom: 10px; width: 34px; }
.t-role:has(input:checked) { outline: 3px solid var(--encre); outline-offset: -3px; }
.etiq { display: block; font-size: 12px; font-weight: 800; color: var(--doux); margin: 10px 0 6px; }
.champ-l { width: 100%; margin-bottom: 8px; }
.matrice td, .matrice th { text-align: center; }
.matrice td:first-child, .matrice th:first-child { text-align: left; }
.oui { color: var(--succes); font-weight: 800; }
.non-v { color: #C2C8D4; font-weight: 800; }
.cadenas { display: flex; align-items: center; gap: 10px; background: var(--p-sable); border-radius: 18px; padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: #7A5A12; }
.cadenas img { width: 28px; flex: none; }
.provisoire { background: var(--p-menthe); border-radius: 18px; padding: 14px 16px; font-weight: 700; margin-bottom: 16px; }
.provisoire code { font-size: 20px; font-weight: 800; letter-spacing: 1px; background: #fff; border-radius: 10px; padding: 2px 10px; }
.avant { background: #FDE7E8; color: var(--alerte); border-radius: 8px; padding: 2px 7px; font-weight: 800; text-decoration: line-through; }
.apres { background: var(--p-menthe); color: var(--succes); border-radius: 8px; padding: 2px 7px; font-weight: 800; }
.ligne-p { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); font-weight: 700; font-size: 14px; }
.ligne-p:last-child { border: 0; }
.ligne-p > img { width: 30px; flex: none; }
.ligne-p small { display: block; font-size: 12px; color: var(--doux); font-weight: 700; }
.ligne-p .droite { margin-left: auto; }
.ligne-p form.en-ligne { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.stat-p { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-p div { border-radius: 20px; padding: 12px 14px; }
.stat-p b { font-size: 22px; font-weight: 800; display: block; }
.stat-p small { font-size: 12px; font-weight: 700; color: rgba(20,33,61,.65); }
.tete-p { display: flex; align-items: center; gap: 16px; }
.tete-p .av-r { width: 72px; height: 72px; font-size: 24px; }
.tete-p b { font-size: 21px; display: block; letter-spacing: -.4px; }

/* Le menu defile sur les petits ecrans : « Se deconnecter » reste toujours accessible */
.menu { overflow-y: auto; }
@media (max-height: 900px) {
    .menu { padding-top: 18px; padding-bottom: 14px; gap: 2px; }
    .menu .logo { margin-bottom: 12px; }
    .menu a { min-height: 38px; font-size: 14px; }
    .menu a img { width: 22px; height: 22px; }
    .menu .simulation { padding: 9px 12px; font-size: 12px; line-height: 1.3; margin-bottom: 8px; }
    .menu a.moi { padding: 6px 10px !important; margin-bottom: 6px; }
    .menu .bas .btn { height: 38px; }
}

/* Etape 11 : assistance, notes de l'equipe, double validation */
.liste-t { display: flex; flex-direction: column; gap: 8px; }
.ligne-t { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; border: 1.5px solid var(--trait); color: var(--encre); }
.ligne-t:hover { background: var(--surface2); }
.ligne-t.on { outline: 3px solid var(--encre); outline-offset: -3px; border-color: transparent; }
.ligne-t img { width: 30px; flex: none; }
.ligne-t b { display: block; font-size: 14px; }
.ligne-t small { font-size: 12px; color: var(--doux); font-weight: 700; }
.ligne-t .droite { margin-left: auto; text-align: right; font-size: 12px; font-weight: 800; color: var(--doux); white-space: nowrap; }
.fil-g { background: var(--fond); border-radius: 20px; padding: 6px 14px 14px; max-height: 420px; overflow-y: auto; }
.bulle { max-width: 82%; border-radius: 20px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; line-height: 1.4; margin-top: 10px; width: fit-content; }
.bulle b { display: block; font-size: 12px; }
.bulle small { display: block; font-size: 11px; font-weight: 800; opacity: .65; margin-top: 4px; }
.bulle.moi { background: var(--encre); color: #fff; border-bottom-right-radius: 6px; }
.bulle.equipe { background: var(--surface); box-shadow: var(--ombre); border-bottom-left-radius: 6px; }
.champ-r { min-height: 74px; border-radius: 16px; border: 1.5px solid var(--trait); background: #fff; padding: 10px 12px; font-size: 13.5px; color: var(--encre); font-weight: 600; resize: vertical; }
.note-i { background: var(--p-sable); border-radius: 16px; padding: 10px 12px; margin-top: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.note-i small { display: block; font-size: 11.5px; color: #7A5A12; font-weight: 800; margin-bottom: 2px; }
.cadre-2 { border: 2px dashed var(--ambre); border-radius: 22px; padding: 14px 16px; background: var(--ambre-doux); margin-top: 10px; }
.cadre-2 b.gros { font-size: 22px; font-weight: 800; letter-spacing: -.5px; display: block; }
.btn.vert { background: var(--succes); color: #fff; border-color: var(--succes); }
/* Etape 12 : fiche complete */
.onglets-g { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.onglets-g a { border-radius: 999px; padding: 8px 14px; background: #fff; border: 1.5px solid var(--trait); font-size: 13px; font-weight: 800; color: var(--encre); text-decoration: none; }
.onglets-g a.on { background: var(--encre); color: #fff; border-color: var(--encre); }
.mini-chif { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.mini-chif div { border-radius: 18px; padding: 10px 12px; }
.mini-chif b { font-size: 20px; font-weight: 800; display: block; }
.mini-chif small { font-size: 12px; font-weight: 700; color: rgba(20,33,61,.65); }
.ruban-or { display: inline-flex; align-items: center; gap: 5px; background: #FFF1C2; color: #8A5A00; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 800; vertical-align: middle; }
.fiche-g td { white-space: nowrap; }
.fiche-g > * { min-width: 0; }
.fiche-g > .carte { overflow-x: auto; }
@media (max-width: 900px) { .mini-chif { grid-template-columns: 1fr 1fr; } }
/* Etape 13 : camion modifie, avant / apres */
.avant-apres { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.avant-apres > div { border-radius: 18px; padding: 12px; background: var(--surface2); }
.avant-apres > div.apres { background: var(--ambre-doux); border: 2px solid var(--ambre); }
.avant-apres small { display: block; font-size: 12px; font-weight: 800; color: var(--doux); text-transform: uppercase; letter-spacing: .5px; }
.avant-apres b { display: block; font-size: 16px; margin-top: 4px; }
/* Etape 14 : contenus */
.onglets-g a img { width: 18px; vertical-align: -3px; margin-right: 4px; }
.sorte { border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.s-ville { background: var(--p-bleu); color: var(--bleu); }
.s-front { background: var(--p-peche); color: #A3500B; }
.s-repos { background: var(--p-menthe); color: var(--succes); }
.mini-int { display: inline-block; width: 38px; height: 22px; border-radius: 999px; background: var(--succes); position: relative; vertical-align: middle; border: 0; cursor: pointer; padding: 0; }
.mini-int::after { content: ""; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.mini-int.off { background: #D5DBE6; }
.mini-int.off::after { right: auto; left: 3px; }
.lien-rouge { border: 0; background: none; color: var(--alerte); font-weight: 800; cursor: pointer; font-size: 15px; padding: 2px 4px; }
.puces-r { display: flex; gap: 6px; flex-wrap: wrap; }
.puces-r input { display: none; }
.puces-r span { display: inline-block; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 800; background: var(--surface2); cursor: pointer; }
.puces-r input:checked + span { background: var(--encre); color: #fff; }
.tuiles-m { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.tuiles-m > div { border-radius: 18px; background: var(--p-peche); padding: 10px 10px 12px; position: relative; min-height: 104px; }
.tuiles-m > div.off { background: var(--surface2); }
.tuiles-m > div.off > b, .tuiles-m > div.off > img { opacity: .45; }
.tuiles-m b { font-size: 13.5px; display: block; padding-right: 30px; }
.tuiles-m small { font-size: 11px; font-weight: 700; color: rgba(20,33,61,.6); display: block; }
.tuiles-m > div > img { position: absolute; right: 8px; top: 8px; width: 32px; }
.tuiles-m form { margin-top: 8px; }
.tuiles-m details summary { font-size: 12px; font-weight: 800; color: var(--bleu); cursor: pointer; margin-top: 6px; }
.illus-choix { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.illus-choix input { display: none; }
.illus-choix img { width: 32px; height: 32px; padding: 3px; border-radius: 10px; background: var(--surface2); cursor: pointer; }
.illus-choix input:checked + img { outline: 2.5px solid var(--encre); background: #fff; }
.sms-l { padding: 12px 0; border-bottom: 1px solid var(--trait); }
.sms-l code { background: var(--p-bleu); color: var(--bleu); border-radius: 6px; padding: 0 4px; font-weight: 800; }
.faq-l { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.faq-l .ordre { color: var(--doux); font-weight: 800; width: 18px; }
.faq-l summary { cursor: pointer; list-style: none; }
.faq-l summary b { display: block; font-size: 14px; }
.faq-l summary small { color: var(--doux); font-weight: 600; font-size: 12.5px; }
.faq-l .droite { display: flex; gap: 2px; align-items: center; }
.version { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--trait); font-size: 13.5px; font-weight: 700; }
.texte-cgv { background: var(--surface2); border-radius: 14px; padding: 10px 12px 10px 30px; font-size: 13px; font-weight: 600; line-height: 1.5; margin-top: 8px; }
