/* Centre de gestion · Marché des Marques — bleu du logo + noir, clair et rapide */
:root {
  --bleu: #0a4bee; --bleu-f: #0838b8; --bleu-c: #e7eefe; --noir: #0d0b10;
  --bg: #f4f6fb; --carte: #ffffff; --alt: #f0f3f9; --ligne: #e1e6f0; --texte: #0d0b10; --doux: #5f6678; --pale: #8a91a3;
  --ok: #12855a; --ok-c: #e3f5ec; --att: #b26a00; --att-c: #fff3dc; --non: #c4312b; --non-c: #fde8e6; --vio: #6a3fd1; --vio-c: #efe9fd; --cyan: #0b7fa6; --cyan-c: #e2f4fa;
  --r: 14px; --ombre: 0 1px 2px rgba(13, 11, 16, .05), 0 4px 16px rgba(13, 11, 16, .05);
  --titre: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --corps: "Figtree", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--texte); font: 15px/1.45 var(--corps); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--bleu); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--titre); margin: 0; letter-spacing: -.01em; }

/* ---------- mise en page : barre en haut (ordinateur), barre en bas (téléphone) ---------- */
.app { min-height: 100vh; }
.haut { position: sticky; top: 0; z-index: 40; background: rgba(13, 11, 16, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; display: flex; align-items: center; gap: 18px; padding: 10px clamp(16px, 3vw, 40px); }
.logo { display: flex; align-items: center; gap: 9px; color: #fff; font: 800 16px/1 var(--titre); flex: none; }
.logo img { width: 30px; height: 30px; object-fit: contain; }
.menu { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.menu::-webkit-scrollbar { display: none; }
.menu a { flex: none; padding: 8px 13px; border-radius: 9px; color: #b9bfcc; font-weight: 700; font-size: 14px; transition: background .15s, color .15s; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.menu a.actif { background: var(--bleu); color: #fff; }
.vers-admin { background: transparent !important; color: #fff !important; border-color: #3a3d48 !important; flex: none; }
.zone { padding: 24px clamp(16px, 3vw, 40px) 70px; max-width: 1240px; margin: 0 auto; width: 100%; outline: none; }
.bas { display: none; }
@media (max-width: 860px) {
  .haut { padding: 10px 16px; }
  .menu, .vers-admin { display: none; }
  .zone { padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); }
  .bas { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 30; background: rgba(13, 11, 16, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bas a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #a9aebb; font-size: 11px; font-weight: 600; padding: 6px 0; min-height: 50px; justify-content: center; }
  .bas a i { font-style: normal; font-size: 20px; }
  .bas a.actif { color: #fff; }
}

/* ---------- en-tête de chaque écran : ← toujours en haut à gauche ---------- */
.tete { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.tete h1 { font-size: clamp(22px, 3vw, 28px); flex: 1; min-width: 0; }
.tete .sous { display: block; font: 500 13px var(--corps); color: var(--doux); margin-top: 2px; letter-spacing: 0; }
.retour { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--carte); border: 1px solid var(--ligne); color: var(--noir); font-size: 20px; font-weight: 700; box-shadow: var(--ombre); }
.retour:hover { border-color: var(--bleu); color: var(--bleu); }
.tete-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 11px; padding: 10px 16px; min-height: 42px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform .08s, background .15s, border-color .15s, opacity .15s; white-space: nowrap; touch-action: manipulation; }
.btn:active { transform: scale(.97); }
.btn.plein { background: var(--bleu); color: #fff; }
.btn.plein:hover { background: var(--bleu-f); }
.btn.noir { background: var(--noir); color: #fff; }
.btn.ligne { background: var(--carte); border-color: var(--ligne); color: var(--texte); }
.btn.ligne:hover { border-color: var(--bleu); color: var(--bleu); }
.btn.danger { background: var(--carte); border-color: #f1c4c0; color: var(--non); }
.btn.petit { min-height: 34px; padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn[disabled], .btn.charge { opacity: .55; pointer-events: none; }
.btn.charge::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: tourne .7s linear infinite; }
@keyframes tourne { to { transform: rotate(1turn); } }
.lien-btn { background: none; border: 0; padding: 0; color: var(--bleu); font-weight: 700; cursor: pointer; }

/* ---------- cartes, tuiles ---------- */
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r); padding: 18px; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 14px; }
.carte h2 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tuile { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r); padding: 16px; box-shadow: var(--ombre); color: var(--texte); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
a.tuile:hover { border-color: var(--bleu); transform: translateY(-1px); }
.tuile .n { font: 800 28px/1.1 var(--titre); font-variant-numeric: tabular-nums; }
.tuile .l { font-size: 13px; color: var(--doux); font-weight: 600; }
.tuile.accent { background: var(--noir); color: #fff; border-color: var(--noir); }
.tuile.accent .l { color: #b8bdca; }
.tuile.vide .n { color: var(--pale); }

/* ---------- listes ---------- */
.outils { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.cherche { flex: 1; min-width: 200px; height: 44px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--carte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238a91a3' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 13px 50% no-repeat; padding: 0 14px 0 40px; outline: none; }
.cherche:focus { border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-c); }
.puces { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 14px; }
.puces::-webkit-scrollbar { display: none; }
.puce { flex: none; border: 1px solid var(--ligne); background: var(--carte); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--doux); }
.puce b { color: var(--pale); font-weight: 700; margin-left: 4px; }
.puce.actif { background: var(--noir); color: #fff; border-color: var(--noir); }
.puce.actif b { color: #9aa0b0; }
.liste { display: flex; flex-direction: column; gap: 8px; }
.ligne-l { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 14px; color: var(--texte); transition: border-color .15s; }
.ligne-l:hover { border-color: var(--bleu); }
.ligne-l .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--alt); display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.ligne-l .ico img { width: 100%; height: 100%; object-fit: cover; }
.ligne-l .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-l .s { font-size: 13px; color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-l .d { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ligne-l .m { font-weight: 800; font-variant-numeric: tabular-nums; }
.ligne-l > div { min-width: 0; }
.vide-etat { text-align: center; padding: 42px 20px; color: var(--doux); }
.vide-etat .e { font-size: 38px; }
.vide-etat h3 { color: var(--texte); margin: 8px 0 4px; font-size: 18px; }
.vide-etat p { margin: 0 0 16px; }

/* ---------- statuts ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--alt); color: var(--doux); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-brouillon { background: var(--alt); color: var(--doux); }
.st-validee { background: var(--bleu-c); color: var(--bleu); }
.st-paiement_attente { background: var(--att-c); color: var(--att); }
.st-payee { background: var(--ok-c); color: var(--ok); }
.st-preparation { background: var(--vio-c); color: var(--vio); }
.st-exp_partielle, .st-exp_totale { background: var(--cyan-c); color: var(--cyan); }
.st-rec_partielle { background: var(--att-c); color: var(--att); }
.st-rec_totale, .st-terminee { background: var(--ok-c); color: var(--ok); }
.st-annulee { background: var(--non-c); color: var(--non); }

/* ---------- formulaires ---------- */
.champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.champ { display: flex; flex-direction: column; gap: 5px; }
.champ.large { grid-column: 1 / -1; }
.champ label, .etq { font-size: 13px; font-weight: 700; color: var(--doux); }
.champ input, .champ select, .champ textarea, .entree { height: 44px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--carte); padding: 0 12px; outline: none; width: 100%; min-width: 0; font-size: 16px; }
.champ textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus, .entree:focus { border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-c); }
.champ.erreur input, .champ.erreur select, .modele.erreur { border-color: var(--non) !important; box-shadow: 0 0 0 3px var(--non-c); }
.aide { font-size: 12.5px; color: var(--pale); }
.rangee { display: flex; gap: 8px; align-items: center; }

.modele { border: 1px solid var(--ligne); border-radius: 12px; padding: 14px; background: var(--alt); }
.modele + .modele { margin-top: 12px; }
.modele-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.modele-haut b { font-family: var(--titre); }
.modele .champs { grid-template-columns: 2fr 1.2fr 1.2fr 1fr .8fr; }
@media (max-width: 1100px) { .modele .champs { grid-template-columns: 1fr 1fr; } .modele .champs .champ:first-child { grid-column: 1 / -1; } }
.modele .champ input { background: #fff; }
.tailles-rapides { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 8px; align-items: center; }
.tr-btn { border: 1px dashed #b9c2d6; background: #fff; border-radius: 9px; min-width: 42px; height: 36px; padding: 0 10px; font-weight: 700; cursor: pointer; color: var(--doux); }
.tr-btn:hover { border-color: var(--bleu); color: var(--bleu); }
.tr-btn.pris { border-style: solid; border-color: var(--bleu); background: var(--bleu-c); color: var(--bleu); }
.tailles { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 8px; }
.taille { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--ligne); border-radius: 10px; padding: 6px 6px 6px 12px; }
.taille b { min-width: 34px; }
.taille.annulee { opacity: .5; }
.taille.annulee b { text-decoration: line-through; }
.pas { display: flex; align-items: center; margin-left: auto; }
.pas button { width: 32px; height: 32px; border: 0; background: var(--alt); border-radius: 8px; font-weight: 800; font-size: 17px; cursor: pointer; touch-action: manipulation; }
.pas input { width: 46px; height: 32px; text-align: center; border: 0; background: transparent; font-weight: 800; font-size: 16px; outline: none; -moz-appearance: textfield; }
.pas input::-webkit-inner-spin-button { display: none; }
.taille .x { border: 0; background: none; color: var(--pale); cursor: pointer; font-size: 15px; padding: 4px; }
.sous-total { margin-top: 10px; font-size: 14px; color: var(--doux); }
.sous-total b { color: var(--texte); }

.barre-total { position: sticky; bottom: 0; z-index: 5; margin-top: 16px; background: var(--noir); color: #fff; border-radius: var(--r); padding: 14px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: 0 -4px 24px rgba(13, 11, 16, .15); }
.barre-total .chiffres { flex: 1; display: flex; gap: 18px; flex-wrap: wrap; }
.barre-total .chiffres span { font-size: 12px; color: #a9aebb; display: block; }
.barre-total .chiffres b { font: 800 19px var(--titre); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .barre-total, .barre-choix { bottom: calc(74px + env(safe-area-inset-bottom)); } }

/* ---------- fiche ---------- */
.fiche-grille { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .fiche-grille { grid-template-columns: 1fr; } }
.infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; }
.infos div span { display: block; font-size: 12px; color: var(--pale); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.infos div b { font-weight: 700; word-break: break-word; }
.produit-v { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ligne); align-items: start; }
.produit-v:first-of-type { border-top: 0; padding-top: 0; }
.produit-v .ph { width: 56px; height: 56px; border-radius: 10px; background: var(--alt); display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.produit-v .ph img { width: 100%; height: 100%; object-fit: cover; }
.produit-v .nom { font-weight: 800; }
.produit-v .meta { font-size: 13px; color: var(--doux); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.chip { background: var(--alt); border-radius: 7px; padding: 3px 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.barre { text-decoration: line-through; opacity: .5; }
.prix-v { text-align: right; font-variant-numeric: tabular-nums; }
.prix-v b { display: block; }
.prix-v span { font-size: 12.5px; color: var(--doux); }
.totaux { display: flex; flex-direction: column; gap: 8px; }
.totaux div { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.totaux .grand { border-top: 1px solid var(--ligne); padding-top: 10px; font: 800 18px var(--titre); }
.histo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.histo li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; font-size: 13.5px; }
.histo li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu); margin-top: 6px; }
.histo time { display: block; font-size: 12px; color: var(--pale); }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid var(--ligne); }

/* ---------- toasts, modale, verrou ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
@media (max-width: 860px) { .toasts { bottom: calc(88px + env(safe-area-inset-bottom)); } }
.toast { background: var(--noir); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: monte .22s ease-out; pointer-events: auto; display: flex; gap: 10px; align-items: center; }
.toast.ok::before { content: "✓"; color: #5ee0a4; font-weight: 900; }
.toast.err { background: var(--non); }
.toast.err::before { content: "!"; font-weight: 900; }
@keyframes monte { from { opacity: 0; transform: translateY(8px); } }
.modale { position: fixed; inset: 0; z-index: 80; background: rgba(13, 11, 16, .45); display: grid; place-items: center; padding: 16px; animation: fondu .15s; }
@keyframes fondu { from { opacity: 0; } }
.modale-boite { background: #fff; border-radius: 18px; padding: 22px; width: min(440px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: monte .2s ease-out; }
.modale-boite h3 { font-size: 19px; margin-bottom: 8px; }
.modale-boite p { color: var(--doux); margin: 0 0 6px; }
.modale-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.verrou { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--noir); }
.verrou form { position: relative; background: #fff; border-radius: 20px; padding: 34px 26px 26px; width: min(360px, 100%); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.verrou .retour { position: absolute; left: 14px; top: 14px; box-shadow: none; }
.verrou img { width: 56px; }
.verrou h1 { font-size: 22px; }
.verrou p { margin: 0; color: var(--doux); }
.verrou input { width: 100%; height: 48px; border: 1px solid var(--ligne); border-radius: 12px; text-align: center; font-size: 18px; outline: none; }
.verrou input:focus { border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-c); }
.verrou .btn { width: 100%; }
.erreur { color: var(--non) !important; font-weight: 600; }
.squelette { height: 64px; border-radius: 12px; background: linear-gradient(90deg, #eceff5 0, #f6f8fb 50%, #eceff5 100%); background-size: 200% 100%; animation: brille 1.1s infinite; }
@keyframes brille { to { background-position: -200% 0; } }
.ecran { animation: fondu .14s ease-out; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
.fiche-grille + .carte, .tuiles + .carte { margin-top: 14px; }
@media (max-width: 860px) {
  .barre-total { padding: 10px 12px; gap: 10px; }
  .barre-total .chiffres { flex-basis: 100%; gap: 14px; }
  .barre-total .chiffres b { font-size: 17px; }
  .barre-total .btn { flex: 1; }
}

/* ---------- le trajet d'une commande (accueil) ---------- */
.trajet { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin-bottom: 18px; }
.etape-t { position: relative; background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 14px 12px 12px; color: var(--texte); display: flex; flex-direction: column; gap: 3px; box-shadow: var(--ombre); transition: border-color .15s, transform .15s; }
a.etape-t:hover { border-color: var(--bleu); transform: translateY(-1px); }
.etape-t .e { font-size: 20px; }
.etape-t .n { font: 800 26px/1 var(--titre); font-variant-numeric: tabular-nums; }
.etape-t .l { font-size: 12.5px; font-weight: 700; color: var(--doux); line-height: 1.25; }
.etape-t.zero { opacity: .55; box-shadow: none; }
.etape-t.chaud { border-color: var(--bleu); background: var(--bleu-c); }
.etape-t.ext { border-style: dashed; }
.etape-t .pas-n { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 800; color: var(--pale); }

/* ---------- articles clients ---------- */
.art { display: grid; grid-template-columns: auto 52px 1fr auto; gap: 12px; align-items: center; background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: 10px 12px; transition: border-color .12s, background .12s; }
.art.sans-case { grid-template-columns: 52px 1fr auto; }
.art.choisi { border-color: var(--bleu); background: #f6f9ff; }
.art .ph { width: 52px; height: 52px; border-radius: 10px; background: var(--alt); display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.art .ph img { width: 100%; height: 100%; object-fit: cover; }
.art .t { font-weight: 800; }
.art .s { font-size: 13px; color: var(--doux); }
.art .d { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.art > div { min-width: 0; }
.case { width: 24px; height: 24px; accent-color: var(--bleu); cursor: pointer; }
.groupe-client { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r); padding: 14px; box-shadow: var(--ombre); }
.groupe-client + .groupe-client { margin-top: 12px; }
.gc-haut { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gc-haut h3 { font-size: 17px; flex: 1; min-width: 0; }
.gc-haut h3 small { display: block; font: 500 13px var(--corps); color: var(--doux); }
.groupe-client .art { border-color: transparent; background: var(--alt); }
.groupe-client .art + .art { margin-top: 6px; }
.gc-bas { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.gc-bas .entree { flex: 1; min-width: 180px; }
.mode { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #fff4d6; color: #8a5a00; white-space: nowrap; }
.mode.mr { background: #fde7ef; color: #b0164e; }
.mode.direct { background: var(--vio-c); color: var(--vio); }
.mode.main { background: var(--ok-c); color: var(--ok); }
.e-a_commander { background: var(--att-c); color: var(--att); }
.e-commandee, .e-vers_transitaire { background: var(--bleu-c); color: var(--bleu); }
.e-chez_transitaire { background: var(--vio-c); color: var(--vio); }
.e-en_route { background: var(--cyan-c); color: var(--cyan); }
.e-arrive { background: #fff0e0; color: #b4530a; }
.e-expedie { background: #fde7ef; color: #b0164e; }
.e-livre { background: var(--ok-c); color: var(--ok); }
.section-t { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.section-t h2 { font-size: 18px; }
.section-t .aide { flex: 1; }
.section-t:first-of-type { margin-top: 4px; }
.barre-choix { position: sticky; bottom: 14px; z-index: 6; margin-top: 14px; background: var(--noir); color: #fff; border-radius: var(--r); padding: 12px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(13, 11, 16, .25); animation: monte .18s ease-out; }
.barre-choix b { flex: 1; min-width: 140px; }
.barre-choix .btn.ligne { background: transparent; color: #fff; border-color: #3a3d48; }
.cartons-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.carton-c { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r); padding: 16px; color: var(--texte); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.carton-c:hover { border-color: var(--bleu); transform: translateY(-1px); }
.carton-c .num { font: 800 22px var(--titre); display: flex; align-items: center; gap: 8px; }
.carton-c .num span { font-size: 26px; }
.carton-c .chiffres { display: flex; gap: 14px; font-size: 13px; color: var(--doux); flex-wrap: wrap; }
.carton-c .chiffres b { color: var(--texte); }
.c-a_inventorier { background: var(--att-c); color: var(--att); }
.c-preparation { background: var(--vio-c); color: var(--vio); }
.c-parti { background: var(--cyan-c); color: var(--cyan); }
.c-arrive { background: #fff0e0; color: #b4530a; }
.c-termine { background: var(--ok-c); color: var(--ok); }
.etape-carton { display: flex; flex-direction: column; gap: 10px; }
.etape-carton .grand-btn { min-height: 52px; font-size: 16px; width: 100%; }
.frise { display: flex; gap: 4px; margin: 4px 0 6px; }
.frise span { flex: 1; height: 6px; border-radius: 3px; background: var(--ligne); }
.frise span.ok { background: var(--bleu); }
.mini-frise { display: flex; gap: 2px; width: 96px; }
.mini-frise span { flex: 1; height: 5px; border-radius: 3px; background: var(--ligne); }
.mini-frise span.ok { background: var(--bleu); }
.conseil { background: var(--bleu-c); color: #0a2f8f; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; }
.ligne-inv { display: grid; grid-template-columns: 2fr 1fr .8fr .7fr auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.ligne-inv input, .ligne-inv select { height: 40px; border: 1px solid var(--ligne); border-radius: 9px; padding: 0 10px; min-width: 0; font-size: 15px; background: #fff; }
@media (max-width: 600px) { .ligne-inv { grid-template-columns: 1fr 1fr; } .ligne-inv input:first-child { grid-column: 1 / -1; } }
.modale-boite { max-height: calc(100vh - 32px); overflow-y: auto; }
.modale-boite .champ + .champ { margin-top: 10px; }
.m-liste { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.m-ligne { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center; background: var(--alt); border-radius: 10px; padding: 8px 10px; }
.m-ligne input { height: 40px; border: 1px solid var(--ligne); border-radius: 9px; padding: 0 10px; width: 100%; font-size: 16px; }
.choix-carton { display: flex; flex-direction: column; gap: 6px; }
.choix-carton label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--ligne); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.choix-carton label:has(input:checked) { border-color: var(--bleu); background: var(--bleu-c); }
/* téléphone : étapes compactes, et les étiquettes passent sous le texte au lieu de l'écraser */
@media (max-width: 600px) {
  .trajet { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .etape-t { padding: 10px 9px; gap: 1px; }
  .etape-t .e { font-size: 16px; }
  .etape-t .n { font-size: 21px; }
  .etape-t .l { font-size: 11.5px; }
  .ligne-l { grid-template-columns: auto 1fr; }
  .ligne-l > span:last-child:not(.ico) { display: none; }
  .ligne-l .d { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 6px 10px; }
  .art { grid-template-columns: auto 52px 1fr; }
  .art.sans-case { grid-template-columns: 52px 1fr; }
  .art .d { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; }
  .art.sans-case .d { grid-column: 1 / -1; }
  .gc-bas .btn, .gc-bas .entree { flex: 1 1 100%; }
  .tete { gap: 10px; }
  .tete-actions { width: 100%; }
}
/* accueil simple : 3 gros blocs */
.gros-blocs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { .gros-blocs { grid-template-columns: 1fr; } }
.gros-bloc { background: var(--carte); border: 1px solid var(--ligne); border-radius: 18px; padding: 20px; color: var(--texte); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--ombre); transition: border-color .15s, transform .15s; }
.gros-bloc:hover { border-color: var(--bleu); transform: translateY(-1px); }
.gros-bloc.chaud { border-color: var(--bleu); background: var(--bleu-c); }
.gros-bloc .e { font-size: 28px; }
.gros-bloc .n { font: 800 38px/1 var(--titre); font-variant-numeric: tabular-nums; margin-top: 4px; }
.gros-bloc b { font: 800 18px var(--titre); }
.rangement { margin: 10px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rangement li { background: var(--alt); border-radius: 10px; padding: 10px 12px; }

/* =================== PAGE UNIQUE : deux colonnes =================== */
.haut .retour.sombre { background: transparent; border-color: #3a3d48; color: #fff; box-shadow: none; width: 38px; height: 38px; }
.cherche.sombre { background-color: #1c1b22; border-color: #2c2b33; color: #fff; max-width: 420px; height: 40px; }
.cherche.sombre::placeholder { color: #8b8f9c; }
.chiffres-haut { margin-left: auto; display: flex; gap: 14px; color: #b9bfcc; font-size: 13px; white-space: nowrap; }
.chiffres-haut b { color: #fff; }
.zone.large { max-width: 1500px; }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .deux-col { grid-template-columns: 1fr; } .chiffres-haut { display: none; } }
@media (max-width: 600px) { .haut .logo span { display: none; } .cherche.sombre { min-width: 0; } }
.col { background: #e9edf6; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.col-mr { background: linear-gradient(180deg, #fde9f0 0, #f6eef3 140px, #eef0f6 400px); }
.col-lui { background: linear-gradient(180deg, #ece6fd 0, #f0edf9 140px, #eef0f6 400px); }
.col-haut { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 4px 6px; }
.col-haut h2 { font-size: 22px; }
.col-haut .aide { flex: 1; min-width: 140px; }
.col-n { font: 800 15px var(--titre); background: var(--noir); color: #fff; border-radius: 999px; padding: 3px 11px; }
.bloc-etape { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 10px; }
.bloc-etape.vide-case { background: transparent; border-style: dashed; padding: 8px 10px; }
.bloc-etape.vide-case .case-haut { opacity: .5; margin: 0; }
.bloc-etape.chaude { border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-c); }
.case-haut { display: flex; align-items: center; gap: 8px; margin: 2px 2px 8px; flex-wrap: wrap; }
.case-haut h3 { font-size: 15px; flex: 1; min-width: 0; }
.case-haut > b { font: 800 13px var(--titre); background: var(--alt); border-radius: 999px; padding: 2px 9px; }
.bloc-etape.case-livre { opacity: .85; }
.cartes { display: flex; flex-direction: column; gap: 6px; }
.cc { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; background: var(--alt); border: 1px solid transparent; border-radius: 12px; padding: 8px; cursor: pointer; transition: border-color .12s, background .12s; }
.cc:hover { border-color: var(--bleu); background: #f6f9ff; }
.cc .ph { width: 46px; height: 46px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.cc .ph img { width: 100%; height: 100%; object-fit: cover; }
.cc-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.cc-txt b { font-weight: 800; }
.cc-txt > span:not(.pastille) { font-size: 13px; color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (max-width: 520px) { .cc { grid-template-columns: 46px 1fr; } .cc-btn { grid-column: 1 / -1; } .cc-btn .btn { width: 100%; } }
.pastille { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: var(--alt); color: var(--doux); white-space: normal; }
.pastille.bleu { background: var(--bleu-c); color: var(--bleu); } .pastille.ambre { background: var(--att-c); color: var(--att); }
.pastille.vert { background: var(--ok-c); color: var(--ok); } .pastille.rouge { background: var(--non-c); color: var(--non); }
.pastille.rose { background: #fde7ef; color: #b0164e; } .pastille.gris { background: #fff; }
.centre { text-align: center; }

/* =================== la fiche (panneau par-dessus) =================== */
body.fige { overflow: hidden; }
.fiche-fond { position: fixed; inset: 0; z-index: 60; background: rgba(13, 11, 16, .4); animation: fondu .15s; }
.fiche { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(980px, 100%); background: var(--bg); overflow-y: auto; box-shadow: -20px 0 60px rgba(0, 0, 0, .25); animation: glisse .22s ease-out; overscroll-behavior: contain; }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } }
.fiche-haut { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(244, 246, 251, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.fiche-haut > div { flex: 1; min-width: 0; }
.fiche-haut h2 { font-size: 21px; }
.fiche-corps { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; padding: 18px 20px 60px; }
@media (max-width: 760px) { .fiche-corps { grid-template-columns: 1fr; padding: 14px 16px 80px; } .fiche-haut { padding: 12px 16px; } }
.fiche-g, .fiche-d { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fiche-d { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 14px; align-self: start; }
.fiche h3 { font-size: 15px; margin-top: 4px; }
.champs.deux { grid-template-columns: 1fr 1fr; }
.total-prix { grid-column: 1 / -1; display: flex; gap: 10px; }
.total-prix div { flex: 1; background: var(--noir); color: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.total-prix span { font-size: 12px; color: #a9aebb; }
.total-prix b { font: 800 20px var(--titre); }
.vert-t { color: #5ee0a4; } .rouge-t { color: #ff8a80; }
.fiche-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding-top: 14px; }
.fiche-actions .btn.plein { flex: 1; min-height: 50px; font-size: 16px; }
.photos .mv { position: relative; }
.photos .mv img, .photos .mv video { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; border: 1px solid var(--ligne); background: #000; display: block; }
.photos .mv button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--ligne); background: #fff; cursor: pointer; font-size: 12px; }
.ajout-media { width: 84px; height: 84px; border-radius: 10px; border: 2px dashed #b9c2d6; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 26px; color: var(--bleu); cursor: pointer; background: #fff; }
.ajout-media small { font-size: 10.5px; font-weight: 700; color: var(--doux); }
.ajout-media.charge { opacity: .5; pointer-events: none; }
.etape-form { background: var(--carte); border: 2px solid var(--bleu); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.journal { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.journal figure { margin: 0; background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; overflow: hidden; }
.journal img, .journal video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #000; }
.journal figcaption { font-size: 12px; padding: 6px 8px; color: var(--doux); }
.journal time { display: block; color: var(--pale); }
.frise-v { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.frise-v li { position: relative; padding: 6px 0 6px 24px; font-size: 13.5px; color: var(--pale); display: flex; justify-content: space-between; gap: 8px; }
.frise-v li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--ligne); }
.frise-v li::after { content: ""; position: absolute; left: 8px; top: 21px; bottom: -11px; width: 2px; background: var(--ligne); }
.frise-v li:last-child::after { display: none; }
.frise-v li.fait { color: var(--texte); } .frise-v li.fait::before, .frise-v li.fait::after { background: var(--bleu); }
.frise-v li.ici { color: var(--bleu); font-weight: 800; } .frise-v li.ici::before { background: #fff; border: 3px solid var(--bleu); left: 2px; top: 9px; }
.frise-v time { font-size: 12px; color: var(--pale); font-weight: 600; }
.arts { display: flex; flex-direction: column; gap: 6px; }
.arts .art { background: var(--alt); border: 0; }
.arts .s { font-size: 13px; color: var(--doux); }
.carte-mini { background: var(--carte); border: 1px solid var(--ligne); border-radius: 14px; padding: 14px; }
.conseil.rouge { background: var(--non-c); color: var(--non); }
.preuve img { max-width: 220px; border-radius: 12px; border: 1px solid var(--ligne); }
@media (max-width: 600px) { .case-haut .btn { order: 3; flex-basis: 100%; } }

/* =================== page fusionnée « Mes commandes » =================== */
.entete { background: var(--carte); border-bottom: 1px solid var(--ligne); padding: 14px clamp(16px, 3vw, 40px) 16px; }
.entete-l1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1500px; margin: 0 auto; }
.titre-page { display: flex; align-items: center; gap: 10px; color: var(--texte); font: 800 clamp(22px, 3vw, 30px) var(--titre); flex: 1; min-width: 200px; }
.titre-page img { width: 44px; height: 44px; object-fit: contain; }
.nav-d { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav-d .ap-btn { min-height: 36px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1500px; margin: 14px auto 0; }
.stats button { all: unset; cursor: pointer; background: var(--alt); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; transition: background .15s; }
.stats button:hover { background: var(--bleu-c); }
.stats span { font-size: 13px; color: var(--doux); font-weight: 600; }
.stats b { font: 800 clamp(20px, 2.4vw, 26px) var(--titre); font-variant-numeric: tabular-nums; }
.stats b.vert, td.vert, .vert { color: var(--ok); } td.rouge, .rouge { color: var(--non); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .nav-d { width: 100%; } .titre-page img { width: 34px; height: 34px; } }
.onglets { position: sticky; top: 0; z-index: 30; background: rgba(13, 11, 16, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px clamp(10px, 3vw, 40px); }
.onglets::-webkit-scrollbar { display: none; }
.onglet { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #b9bfcc; font: 700 14px var(--corps); padding: 9px 13px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; }
.onglet:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.onglet.actif { background: var(--bleu); color: #fff; }
.onglet b { background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.onglet.chaud b { background: #ff4d6d; }
.point-rouge { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 2px #0d0b10; }
.barre-cherche { max-width: 1500px; margin: 16px auto 0; padding: 0 clamp(16px, 3vw, 40px); }
.barre-cherche .cherche { width: 100%; }
.zone.large { padding-top: 14px; }
.onglet-titre { margin: 4px 0 14px; }
.onglet-titre h1 { font-size: clamp(22px, 3vw, 28px); }
.onglet-titre p { margin: 4px 0 0; }
.alerte { all: unset; display: block; box-sizing: border-box; width: 100%; cursor: pointer; background: var(--non-c); color: var(--non); border: 1px solid #f1c4c0; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; font-weight: 600; }
.deux-col.une { grid-template-columns: 1fr; max-width: 760px; }
.col-haut h2 { font-size: 20px; }
.vide-col { color: var(--pale); text-align: center; padding: 26px 10px; margin: 0; background: rgba(255, 255, 255, .55); border-radius: 14px; border: 1px dashed var(--ligne); }
.rangee.fin { justify-content: flex-end; }
.ligne-pastilles { display: flex; gap: 4px; flex-wrap: wrap; }
.pastille.cyan { background: var(--cyan-c); color: var(--cyan); }
.carton-bloc { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.carton-bloc + .carton-bloc { margin-top: 10px; }
.carton-bloc.urgent { border: 2px solid var(--non); box-shadow: 0 0 0 4px var(--non-c); }
.cb-haut { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cb-haut h3 { font-size: 18px; flex: 1; }
.cb-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cb-liste li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; background: var(--alt); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.cb-liste li:hover { background: var(--bleu-c); }
.cb-liste li.attend { opacity: .65; }
.cb-liste li div { min-width: 0; display: flex; flex-direction: column; }
.cb-liste li small { color: var(--doux); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-liste li em { font-style: normal; font-size: 12px; color: var(--doux); text-align: right; }
.cb-bas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cb-bas .aide { flex: 1; min-width: 180px; }
.feuille { background: var(--carte); border: 1px solid var(--ligne); border-radius: 18px; padding: 16px; }
.f-haut { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.f-haut select { height: 42px; border-radius: 10px; border: 1px solid var(--ligne); padding: 0 12px; font-weight: 700; background: #fff; }
.f-totaux { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.f-totaux div { background: var(--alt); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.f-totaux span { font-size: 12.5px; color: var(--doux); }
.f-totaux b { font: 800 20px var(--titre); }
.f-totaux .g { background: var(--noir); color: #fff; } .f-totaux .g span { color: #a9aebb; } .f-totaux .g b { color: #5ee0a4; }
.f-table { overflow-x: auto; }
.f-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.f-table th { text-align: left; font-size: 12px; color: var(--pale); text-transform: uppercase; letter-spacing: .04em; padding: 8px; border-bottom: 1px solid var(--ligne); }
.f-table td { padding: 10px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.f-table td small { display: block; color: var(--pale); }
.f-table td em { font-style: normal; background: var(--alt); border-radius: 6px; padding: 0 5px; font-size: 12px; font-weight: 700; }
.f-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .f-totaux { grid-template-columns: 1fr 1fr; }
  .f-table thead { display: none; }
  .f-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
  .f-table td { border: 0; padding: 2px 0; }
  .f-table td::before { content: attr(data-l); display: block; font-size: 11px; color: var(--pale); text-transform: uppercase; }
  .f-table .n { text-align: left; }
}
/* KAZA / AMZ */
.qui { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.qui label { cursor: pointer; }
.qui input { position: absolute; opacity: 0; pointer-events: none; }
.qui span { display: block; padding: 14px 8px; border-radius: 14px; border: 2px solid var(--ligne); font: 800 17px var(--titre); text-align: center; }
.qui input:checked + span { border-color: var(--bleu); background: var(--bleu-c); color: var(--bleu); }
.pastille.amz { background: #fff1d6; color: #9a5b00; }
.bloc-amz { background: #fff7e6; border: 1px solid #f3d9a4; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bloc-amz span { font-size: 14px; color: #6b4a10; }
.bloc-amz small { font-weight: 600; color: #9a5b00; }
.nom-art + .nom-art { margin-top: 6px; }
.total-prix { flex-wrap: wrap; }
.total-prix div { min-width: 120px; }
#btn-amz .n { position: absolute; top: -8px; right: -8px; background: #e11d48; color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 11px; }
#btn-amz { position: relative; }
/* écran de connexion : plein écran fixe, rien ne se décale quand le clavier de l'iPhone s'ouvre */
html, body { overflow-x: hidden; }
.verrou { position: fixed; inset: 0; z-index: 100; min-height: 0; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: max(9vh, calc(env(safe-area-inset-top) + 24px)) 16px calc(env(safe-area-inset-bottom) + 24px); }
.verrou form { flex: none; width: 100%; max-width: 360px; margin: 0 auto; }
.verrou input { font-size: 18px; max-width: 100%; }
.qui label { position: relative; min-width: 0; }
.qui span { white-space: nowrap; }
.cb-suivi { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cb-suivi .entree { flex: 1; min-width: 160px; height: 40px; }

/* Petite animation quand on passe d'une page à l'autre (Safari 18 / Chrome : natif, sans librairie) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-sort .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-entre .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-sort { to { opacity: 0; transform: translateY(-10px) scale(.99); } }
@keyframes vt-entre { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
