:root{--bleu:#0b5fff;--bleu-fonce:#0a4fd6;--fond:#f4f6f8;--carte:#fff;--texte:#1c2733;--texte-doux:#5c6b7a;--bordure:#e1e6eb;--danger:#d6392f;--ok:#1f9d55;--rayon:12px;--ombre:0 1px 3px #1020301a;color:var(--texte);background:var(--fond);font-family:Segoe UI,system-ui,-apple-system,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100dvh;margin:0}body{background:var(--fond);-webkit-font-smoothing:antialiased}h1,h2,h3{margin:0 0 .5rem;font-weight:600}button{font:inherit;cursor:pointer;border-radius:var(--rayon);color:inherit;background:0 0;border:none}input,select,textarea{font:inherit;border:1px solid var(--bordure);border-radius:var(--rayon);background:var(--carte);width:100%;color:var(--texte);padding:.7rem .9rem}input:focus,select:focus,textarea:focus{outline:2px solid var(--bleu);outline-offset:-1px}.btn{border-radius:var(--rayon);justify-content:center;align-items:center;gap:.5rem;min-height:48px;padding:.75rem 1.2rem;font-weight:600;display:inline-flex}.btn-primaire{background:var(--bleu);color:#fff}.btn-primaire:active{background:var(--bleu-fonce)}.btn-secondaire{background:var(--carte);color:var(--bleu);border:1px solid var(--bordure)}.carte{background:var(--carte);border-radius:var(--rayon);box-shadow:var(--ombre);padding:1rem}.barre-haut{z-index:20;padding:.5rem .75rem;padding-top:calc(.5rem + env(safe-area-inset-top));background:var(--carte);border-bottom:1px solid var(--bordure);position:sticky;top:0}.barre-haut .rangee-barre{justify-content:space-between;align-items:center;display:flex}.barre-haut .titre-page{font-size:1.05rem;font-weight:600}.barre-haut .groupe-gauche{align-items:center;gap:.25rem;display:flex}.bandeau-horsligne{text-align:center;color:#fff;background:#555e68;border-radius:8px;margin-top:.5rem;padding:.3rem .75rem;font-size:.85rem}.bandeau-sync{background:var(--accent,#0b5fff)}.bandeau-erreur{cursor:pointer;background:#c0392b}.fleche-retour{color:var(--texte);font-size:1.4rem;line-height:1}.bouton-rond{border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.bouton-rond:active{background:var(--fond)}.logo-dplus{object-fit:contain;width:36px;height:36px;display:inline-block}.avatar-usager{background:var(--fond);border:1px solid var(--bordure);width:36px;height:36px;color:var(--texte-doux);border-radius:50%;justify-content:center;align-items:center;font-weight:600;display:inline-flex}.voile{z-index:30;background:#10203066;position:fixed;inset:0}.tiroir{background:var(--carte);z-index:31;width:min(300px,82vw);padding:1rem .75rem;padding-top:calc(1rem + env(safe-area-inset-top));flex-direction:column;gap:.25rem;display:flex;position:fixed;top:0;bottom:0;left:0;box-shadow:2px 0 12px #10203026}.tiroir .entete-tiroir{align-items:center;gap:.75rem;padding:.5rem .75rem 1rem;font-size:1.1rem;font-weight:700;display:flex}.lien-tiroir{border-radius:var(--rayon);color:var(--texte);align-items:center;gap:.75rem;padding:.85rem .9rem;font-size:1rem;font-weight:500;text-decoration:none;display:flex}.lien-tiroir.actif{color:var(--bleu);background:#e8f0ff;font-weight:600}.contenu-page{padding:1rem;padding-bottom:calc(1.5rem + env(safe-area-inset-bottom));flex-direction:column;gap:1rem;max-width:900px;margin:0 auto;display:flex}.texte-doux{color:var(--texte-doux)}.fil-ariane{color:var(--texte-doux);overflow-wrap:anywhere;margin-bottom:.35rem;font-size:.85rem}.fil-ariane a{color:inherit;text-decoration:underline}.fil-ariane-courant{font-weight:600}.pastille{background:var(--fond);color:var(--texte-doux);border-radius:999px;padding:.15rem .6rem;font-size:.8rem;font-weight:600;display:inline-block}.pastille-demo{color:#9a6400;background:#fff4e0}.ecran-connexion{flex-direction:column;justify-content:center;align-items:center;gap:1.5rem;min-height:100dvh;padding:1.5rem;display:flex}.ecran-connexion .carte{flex-direction:column;gap:.9rem;width:min(380px,100%);padding:1.5rem;display:flex}.marque{flex-direction:column;align-items:center;gap:.5rem;display:flex}.marque .logo-dplus{width:64px;height:64px}.cadre-scan{aspect-ratio:1;border:3px dashed var(--bordure);width:100%;max-width:340px;color:var(--texte-doux);text-align:center;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:.75rem;margin:1.5rem auto 0;padding:1rem;display:flex}.erreur{color:var(--danger);font-size:.9rem}.grille-items{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.75rem;display:grid}.carte-item{text-align:left;flex-direction:column;align-items:stretch;padding:0;display:flex;position:relative;overflow:hidden}.carte-item:active{background:#e8f0ff}.tuile-photo{object-fit:cover;width:100%;height:96px;display:block}.tuile-sans-photo{background:#e3e8ef;justify-content:center;align-items:center;display:flex}.tuile-initiales{color:#fff;background:#c6cfdc;border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.05rem;font-weight:700;display:flex}.tuile-texte{flex-direction:column;gap:.15rem;padding:.55rem .7rem .7rem;display:flex}.pastille-tuile{z-index:1;position:absolute;top:8px;left:8px}.texte-alerte{color:#b3261e;font-weight:600}.tuile-ajout{color:#6b7480;cursor:pointer;background:0 0;border:2px dashed #b9c2cf;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:.35rem;min-height:150px;font-size:.85rem;font-weight:600;display:flex}.tuile-ajout-plus{font-size:1.6rem;line-height:1}.carte-item-nom{font-weight:600;line-height:1.2}.carte-item-sous{font-size:.82rem}.icone-item{color:var(--bleu);background:#e8f0ff;border-radius:10px;justify-content:center;align-items:center;font-weight:700;display:inline-flex}.photo-item{object-fit:cover;border-radius:10px}.ligne-entete{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.ligne-entete h2,.ligne-entete h3{margin:0}.entete-item{align-items:center;gap:.75rem;display:flex}.formulaire{flex-direction:column;gap:.8rem;display:flex}.formulaire label{flex-direction:column;gap:.3rem;font-weight:500;display:flex}.ligne-double{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}.ligne-boutons{flex-wrap:wrap;gap:.5rem;margin-top:.75rem;display:flex}.btn-danger{color:var(--danger)}.pastille-alerte{color:var(--danger);background:#fdeceb;margin-left:.5rem}.descriptif{flex-direction:column;gap:.45rem;margin:0;display:flex}.descriptif dt{color:var(--texte-doux);font-size:.8rem}.descriptif dd{margin:0;font-weight:500}.zone-scan{width:100%;max-width:420px;margin:0 auto}.video-scan{aspect-ratio:1;object-fit:cover;background:#0f1720;border-radius:20px;width:100%}.bloc-qr{flex-direction:column;align-items:center;gap:.4rem;display:flex}.bloc-qr img{width:200px;height:200px}.bloc-qr .texte-doux{word-break:break-all;text-align:center;font-size:.72rem}@media print{.barre-haut,.bandeau-horsligne,.tiroir,.voile,.btn,.formulaire{display:none!important}body{background:#fff}.contenu-page{max-width:none;padding:0}.carte{box-shadow:none;break-inside:avoid;border:1px solid #bbb}.bloc-qr img{width:150px;height:150px}}.prio-1{color:var(--danger);background:#fdeceb}.prio-2{color:#9a6400;background:#fff4e0}.prio-3{color:var(--bleu);background:#e8f0ff}.pastille-ouvert{color:var(--ok);background:#e4f6ec}.liste-pieces-bt{flex-direction:column;display:flex}.ligne-piece-bt{border-bottom:1px solid var(--bordure);justify-content:space-between;align-items:center;gap:.75rem;padding:.45rem 0;display:flex}.ligne-piece-bt:last-child{border-bottom:none}.ligne-piece-bt input{text-align:center;width:90px}.lien-piece{text-align:left;color:var(--bleu);padding:.2rem 0;font-weight:500}.banniere-retard{color:#c0392b;background:#fdecea;border:1px solid #e74c3c;border-radius:8px;padding:.6rem .8rem;font-weight:500}.variation-hausse{color:#c0392b;font-weight:600}.variation-baisse{color:#1e8e4e;font-weight:600}.fenetre-modale{z-index:40;background:#fff;border-radius:12px;flex-direction:column;gap:.75rem;width:min(92vw,380px);padding:1rem;display:flex;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 12px 40px #10203059}.fenetre-commander{max-height:80vh;overflow-y:auto}.carte-arbre{padding:.25rem 0}.ligne-arbre{text-align:left;width:100%;font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;border-bottom:1px solid #eef1f5;justify-content:space-between;align-items:baseline;gap:.6rem;padding:.5rem .9rem .5rem .6rem;display:flex}.ligne-arbre:last-child{border-bottom:0}.ligne-arbre:active{background:#e8f0ff}.ligne-arbre-groupe .ligne-arbre-nom{font-weight:650}.entete-groupe-pieces{text-transform:uppercase;letter-spacing:.03em;color:#6b7480;margin:.5rem 0 .15rem;font-size:.78rem;font-weight:700}.fenetre-import{width:min(94vw,560px);max-height:85vh;overflow-y:auto}.fenetre-import .rangee-boutons{justify-content:flex-end;gap:.5rem;margin-top:.75rem;display:flex}.apercu-arbre{border:1px solid var(--bordure);border-radius:8px;max-height:40vh;padding:.5rem .75rem;font-size:.9rem;line-height:1.7;overflow-y:auto}.bloc-erreurs-import{color:#b3261e;background:#fdecea;border-radius:8px;margin-bottom:.5rem;padding:.5rem .75rem;font-size:.9rem}.bloc-erreurs-import ul{margin:.25rem 0 0;padding-left:1.1rem}.fenetre-modale .video-scan{border-radius:8px;width:100%}.ligne-qte-piece{align-items:center;gap:.4rem;display:inline-flex}.btn-retirer{min-width:auto;padding:.3rem .6rem}.recherche-pieces{flex-direction:column;gap:.4rem;display:flex}.resultat-piece{text-align:left;border:1px solid var(--bordure);background:var(--fond);border-radius:8px;padding:.5rem .6rem;font-weight:500}.resultat-interdit{opacity:.65;cursor:not-allowed;border-color:#e74c3c}.photo-bt{border-radius:var(--rayon);max-width:100%;margin-top:.5rem}.case-cocher{align-items:center;flex-direction:row!important;gap:.5rem!important}.case-cocher input{width:auto}.carte-tableau{padding:0;overflow-x:auto}.tableau-bts{border-collapse:collapse;width:100%;font-size:.92rem}.tableau-bts th,.tableau-bts td{text-align:left;border-bottom:1px solid var(--bordure);white-space:nowrap;padding:.65rem .75rem}.tableau-bts th{color:var(--texte-doux);cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:600}.tableau-bts th.tri-actif{color:var(--bleu)}.tableau-bts tbody tr{cursor:pointer}.tableau-bts tbody tr:active{background:#e8f0ff}.cellule-description{text-overflow:ellipsis;max-width:320px;overflow:hidden}.champ-copies{color:#444;align-items:center;gap:6px;font-size:14px;display:inline-flex}.champ-copies input{width:60px;padding:6px 8px}
