/* Traça’Prépa — feuille de style.
 * Couleurs d'Intermarché (rouge, noir, blanc) sur un fond gris inox, comme les plans du labo.
 * Une seule audace : le « ticket » de traçabilité et son tampon. Tout le reste reste sobre.
 */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../vendor/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../vendor/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../vendor/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../vendor/fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --rouge: #e2001a;
  --rouge-fonce: #a30012;
  --rouge-pale: #fde8ea;
  --noir: #000;
  --texte: #2a2a2a;
  --gris: #6b7075;
  --filet: #d5d9dd;
  --inox: #e9ecef;
  --blanc: #fff;
  --conforme: #0b7a43;
  --conforme-pale: #e3f3ea;
  --verifier: #c96a00;
  --verifier-pale: #fff1dc;
  --depasse: #b00020;
  --condense: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --corps: "Barlow", Roboto, "Segoe UI", sans-serif;
  --nav: 74px;
  --entete: 58px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--corps); font-size: 17px; line-height: 1.55; color: var(--texte);
  background: var(--inox); overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--noir); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--condense); color: var(--noir); margin: 0; line-height: 1.1; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 23px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 10px; }
.discret { color: var(--gris); font-size: 15px; }
.cache { display: none !important; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20; height: var(--entete);
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: var(--rouge); color: var(--blanc);
  padding-top: env(safe-area-inset-top); height: calc(var(--entete) + env(safe-area-inset-top));
}
.logo-reserve {
  flex: none; width: 74px; height: 38px; border: 2px dashed rgba(255,255,255,.75); border-radius: 6px;
  display: grid; place-items: center; text-align: center; font-size: 10.5px; line-height: 1.05; color: rgba(255,255,255,.92);
}
.marque { font-family: var(--condense); font-weight: 800; font-size: 22px; letter-spacing: .2px; line-height: 1; flex: 1; min-width: 0; }
.marque small { display: block; font-family: var(--corps); font-weight: 500; font-size: 12px; opacity: .85; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qui {
  flex: none; display: flex; align-items: center; gap: 6px; border: 0; background: rgba(0,0,0,.18);
  color: var(--blanc); border-radius: 999px; padding: 4px 10px 4px 4px; font-weight: 600; font-size: 15px;
}
.pastille {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--condense); font-weight: 800; font-size: 16px; background: var(--blanc); color: var(--rouge);
}

/* ---------- Pages ---------- */
main { padding: 26px 20px calc(var(--nav) + 40px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.page-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 22px; }
.bloc { background: var(--blanc); border-radius: 16px; padding: 22px 20px; margin-bottom: 20px; }
.bloc h2 { margin-bottom: 14px; }

/* Bandeau « données d'exemple » */
.exemple-bandeau {
  display: flex; gap: 10px; align-items: center; background: var(--blanc); border-left: 5px solid var(--noir);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 24px; font-size: 15px;
}
.exemple-bandeau p { margin: 0; flex: 1; }
.badge-exemple {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  background: var(--noir); color: var(--blanc); vertical-align: middle;
}

/* ---------- Boutons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 58px; padding: 12px 18px; border-radius: 14px; border: 0;
  font-family: var(--condense); font-weight: 700; font-size: 22px; letter-spacing: .2px;
  background: var(--rouge); color: var(--blanc); text-decoration: none;
}
.btn:active { background: var(--rouge-fonce); transform: translateY(1px); }
.btn + .btn { margin-top: 12px; }
.btn[disabled] { background: #c9cdd1; color: #7b8086; transform: none; }
.btn.secondaire { background: var(--blanc); color: var(--noir); border: 2px solid var(--noir); }
.btn.secondaire:active { background: var(--inox); }
.btn.discret-btn { background: transparent; color: var(--noir); min-height: 48px; font-size: 19px; text-decoration: underline; text-underline-offset: 4px; }
.btn svg { width: 26px; height: 26px; flex: none; }
.rangee-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.petit-btn { border: 0; background: var(--inox); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 15px; color: var(--noir); }

/* ---------- Accueil ---------- */
.bonjour { font-family: var(--condense); font-weight: 800; font-size: 36px; color: var(--noir); line-height: 1.05; margin: 4px 0 6px; }
.date-jour { color: var(--gris); margin-bottom: 26px; }
.grand-scan {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; width: 100%;
  border: 0; border-radius: 20px; padding: 28px 22px; background: var(--rouge); color: var(--blanc); text-align: left;
  margin-bottom: 26px;
}
.grand-scan:active { background: var(--rouge-fonce); }
.grand-scan svg { width: 54px; height: 54px; flex: none; }
.grand-scan strong { display: block; font-family: var(--condense); font-weight: 800; font-size: 30px; line-height: 1; }
.grand-scan span { font-size: 15px; opacity: .9; display: block; margin-top: 6px; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.chiffre { background: var(--blanc); border-radius: 16px; padding: 18px 14px 16px; border: 0; text-align: left; }
.chiffre b { display: block; font-family: var(--condense); font-weight: 800; font-size: 38px; line-height: 1; color: var(--noir); }
.chiffre span { font-size: 14px; color: var(--gris); line-height: 1.3; display: block; margin-top: 8px; }
.chiffre.alerte b { color: var(--depasse); }
.chiffre.attention b { color: var(--verifier); }

/* ---------- Lignes du registre ---------- */
.jour { font-family: var(--condense); font-weight: 700; font-size: 18px; color: var(--gris); margin: 30px 4px 12px; }
.ligne {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; width: 100%;
  background: var(--blanc); border: 0; border-radius: 16px; padding: 16px 16px 16px 14px; margin-bottom: 12px; text-align: left;
}
.ligne:active { background: #f4f5f6; }
.vignette { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--inox); display: grid; place-items: center; color: var(--gris); }
.vignette svg { width: 26px; height: 26px; }
.ligne-produit { font-weight: 600; color: var(--noir); line-height: 1.2; }
.ligne-meta { font-size: 14px; color: var(--gris); margin-top: 6px; }
.ligne-lot { font-family: var(--condense); font-weight: 700; font-size: 17px; color: var(--noir); letter-spacing: .3px; }
.etat-dlc { font-family: var(--condense); font-weight: 700; font-size: 16px; text-align: right; line-height: 1.1; white-space: nowrap; }
.etat-dlc small { display: block; font-family: var(--corps); font-weight: 500; font-size: 12px; color: var(--gris); }
.etat-dlc.depassee, .etat-dlc.aujourdhui { color: var(--depasse); }
.etat-dlc.bientot { color: var(--verifier); }
.etat-dlc.ok { color: var(--conforme); }

.recherche { position: relative; margin-bottom: 16px; }
.recherche input {
  width: 100%; min-height: 54px; border-radius: 14px; border: 2px solid var(--filet); background: var(--blanc);
  padding: 10px 14px 10px 46px; font-size: 18px;
}
.recherche input:focus { border-color: var(--noir); outline: none; }
.recherche svg { position: absolute; left: 14px; top: 15px; width: 24px; height: 24px; color: var(--gris); }
.puces { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.puce {
  flex: none; border: 2px solid var(--filet); background: var(--blanc); border-radius: 999px; padding: 8px 16px;
  font-weight: 600; font-size: 15px; color: var(--texte);
}
.puce[aria-pressed="true"] { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.vide { text-align: center; padding: 34px 16px; color: var(--gris); }
.vide h2 { margin-bottom: 8px; }

/* ---------- Scanner ---------- */
.scanner { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner .cadre {
  position: absolute; left: 7%; right: 7%; top: 22%; bottom: 34%; border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45); border: 3px solid rgba(255,255,255,.9);
}
.scanner .cadre.trouve { border-color: #3ddc84; }
.scanner .haut, .scanner .bas { position: relative; z-index: 2; color: var(--blanc); padding: 14px 16px; }
.scanner .haut { display: flex; justify-content: space-between; align-items: center; padding-top: calc(14px + env(safe-area-inset-top)); }
.scanner .bas { margin-top: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.consigne { text-align: center; font-size: 17px; margin-bottom: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.8); min-height: 50px; }
.rond { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: var(--blanc); display: grid; place-items: center; }
.rond svg { width: 26px; height: 26px; }
.rond[aria-pressed="true"] { background: var(--blanc); color: var(--noir); }
.declencheur-rangee { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.declencheur { width: 84px; height: 84px; border-radius: 50%; border: 5px solid var(--blanc); background: var(--rouge); flex: none; }
.declencheur:active { transform: scale(.94); }
.scanner .erreur-camera { position: relative; z-index: 2; margin: auto 20px; background: var(--blanc); color: var(--texte); border-radius: 14px; padding: 18px; }

/* ---------- Écran d'attente (bloque les appuis) ---------- */
.attente {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.72); display: grid; place-items: center; color: var(--blanc);
  text-align: center; padding: 24px;
}
.attente .roue { width: 56px; height: 56px; border-radius: 50%; border: 5px solid rgba(255,255,255,.25); border-top-color: var(--blanc); margin: 0 auto 16px; animation: tourne 0.9s linear infinite; }
.attente strong { font-family: var(--condense); font-weight: 700; font-size: 26px; display: block; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Le ticket de traçabilité (le moment fort) ---------- */
.ticket {
  position: relative; background: var(--blanc); border-radius: 6px 6px 16px 16px; margin: 10px 0 26px;
  box-shadow: 0 1px 0 var(--filet), 0 14px 30px -18px rgba(0,0,0,.45); overflow: hidden;
}
.ticket::before { /* bord prédécoupé, comme un rouleau d'étiquettes */
  content: ""; display: block; height: 12px; background:
    radial-gradient(circle at 8px -2px, var(--inox) 7px, transparent 7.5px) 0 0 / 16px 12px repeat-x, var(--rouge);
}
.ticket-tete { background: var(--rouge); color: var(--blanc); padding: 8px 20px 18px; }
.ticket-tete .produit { font-family: var(--condense); font-weight: 800; font-size: 27px; line-height: 1.05; }
.ticket-tete .fournisseur { font-size: 15px; opacity: .92; }
.ticket-tete input::placeholder { color: rgba(255,255,255,.7); }
.ticket-tete textarea:placeholder-shown, .ticket-tete input:placeholder-shown { border-bottom: 2px dashed rgba(255,255,255,.7) !important; }
.ticket-tete textarea:focus, .ticket-tete input:focus { outline: none; background: rgba(0,0,0,.12); }
.ticket-corps { padding: 10px 20px 24px; }
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.champ { border-bottom: 1px solid var(--filet); padding: 16px 0 12px; min-width: 0; }
.champ.large { grid-column: 1 / -1; }
.champ label { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13.5px; color: var(--gris); font-weight: 500; }
.champ input, .champ select {
  width: 100%; border: 0; background: transparent; padding: 2px 0; min-height: 40px;
  font-family: var(--condense); font-weight: 800; font-size: 28px; color: var(--noir); letter-spacing: .3px;
}
.champ input.normal { font-family: var(--corps); font-weight: 600; font-size: 19px; }
.champ input:focus { outline: none; background: #f6f7f8; }
.champ.lot input { font-size: 36px; }
.source { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.source.sure { background: var(--conforme-pale); color: var(--conforme); }
.source.douteuse { background: var(--verifier-pale); color: var(--verifier); }
.champ.a-verifier { border-bottom: 3px solid var(--verifier); }
.champ.a-verifier.verifie { border-bottom-color: var(--conforme); }
.verifier-btn {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; border: 2px solid var(--verifier); color: var(--verifier);
  background: var(--verifier-pale); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 15px; width: 100%;
}
.champ.verifie .verifier-btn { border-color: var(--conforme); color: var(--conforme); background: var(--conforme-pale); }
.douteux-note { font-size: 13.5px; color: var(--verifier); margin-top: 4px; }
.photo-etiquette { width: 100%; max-height: 240px; object-fit: contain; background: #111; border-radius: 12px; margin-top: 20px; display: block; }
.preuve { margin-top: 16px; font-size: 14px; color: var(--gris); }

.tampon {
  position: absolute; right: 12px; top: 118px; transform: rotate(-9deg); pointer-events: none;
  border: 4px solid var(--rouge); color: var(--rouge); border-radius: 10px; padding: 6px 12px 4px; text-align: center;
  font-family: var(--condense); font-weight: 800; line-height: 1; background: rgba(255,255,255,.82); mix-blend-mode: multiply;
}
.tampon b { display: block; font-size: 30px; letter-spacing: 3px; }
.tampon span { display: block; font-size: 15px; margin-top: 3px; letter-spacing: .5px; }
.tampon.pose { animation: tamponne .38s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes tamponne { from { transform: rotate(-9deg) scale(2.2); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }

/* ---------- Alertes ---------- */
.alerte-groupe h2 { display: flex; align-items: center; gap: 10px; margin: 30px 4px 12px; font-size: 21px; }
.alerte-groupe h2 .compte { font-size: 15px; background: var(--noir); color: var(--blanc); border-radius: 999px; padding: 1px 9px; font-family: var(--corps); font-weight: 600; }
.alerte-groupe.rouge h2 { color: var(--depasse); }
.alerte-groupe.orange h2 { color: var(--verifier); }
.retire { opacity: .55; }
.retire .ligne-produit { text-decoration: line-through; }

/* ---------- Menus « Plus » et réglages ---------- */
.menu-ligne {
  display: flex; align-items: center; gap: 16px; width: 100%; background: var(--blanc); border: 0; border-radius: 16px;
  padding: 20px 18px; margin-bottom: 12px; text-align: left; color: var(--noir);
}
.menu-ligne svg { width: 28px; height: 28px; color: var(--rouge); flex: none; }
.menu-ligne b { display: block; font-weight: 600; }
.menu-ligne span { font-size: 14px; color: var(--gris); }
.formulaire label { display: block; font-weight: 600; margin: 18px 0 8px; color: var(--noir); }
.formulaire input[type=text], .formulaire input[type=email], .formulaire select, .formulaire textarea {
  width: 100%; min-height: 52px; border-radius: 12px; border: 2px solid var(--filet); background: var(--blanc); padding: 10px 12px; font-size: 18px;
}
.formulaire input:focus, .formulaire select:focus { border-color: var(--noir); outline: none; }
.apercu {
  white-space: pre-wrap; font-family: ui-monospace, "Roboto Mono", monospace; font-size: 12.5px; line-height: 1.4;
  background: #f6f7f8; border-radius: 10px; padding: 12px; max-height: 300px; overflow: auto; color: var(--texte);
}

/* ---------- Choix de la personne ---------- */
.accueil-profils { min-height: 100vh; background: var(--rouge); color: var(--blanc); padding: calc(40px + env(safe-area-inset-top)) 24px 40px; }
.accueil-profils .logo-reserve { width: 120px; height: 56px; font-size: 13px; margin-bottom: 22px; }
.accueil-profils h1 { color: var(--blanc); font-size: 44px; line-height: .95; margin-bottom: 8px; }
.accueil-profils p { opacity: .92; margin-bottom: 30px; max-width: 30em; }
.profils { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.profil {
  border: 0; border-radius: 16px; background: var(--blanc); color: var(--noir); padding: 16px 12px; text-align: left;
  display: flex; flex-direction: column; gap: 14px; min-height: 132px; padding: 20px 16px;
}
.profil:active { transform: scale(.98); }
.profil .pastille { width: 46px; height: 46px; font-size: 22px; background: var(--rouge); color: var(--blanc); }
.profil b { font-family: var(--condense); font-weight: 800; font-size: 25px; line-height: 1; }
.profil span { font-size: 14px; color: var(--gris); }
.mention { font-size: 13.5px; opacity: .85; margin-top: 22px; max-width: 34em; }

/* ---------- Barre du bas ---------- */
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--blanc);
  border-top: 1px solid var(--filet); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
}
.barre a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--nav);
  color: var(--gris); text-decoration: none; font-size: 12.5px; font-weight: 600; position: relative;
}
.barre a svg { width: 27px; height: 27px; }
.barre a[aria-current="page"] { color: var(--noir); }
.barre a[aria-current="page"]::after { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; background: var(--rouge); border-radius: 0 0 3px 3px; }
.barre .scan-centre { color: var(--noir); }
.barre .scan-centre span.bouton {
  width: 64px; height: 64px; border-radius: 50%; background: var(--rouge); color: var(--blanc); display: grid; place-items: center;
  margin-top: -26px; border: 5px solid var(--inox);
}
.barre .scan-centre span.bouton svg { width: 30px; height: 30px; }
.compteur { position: absolute; top: 8px; left: 56%; min-width: 19px; height: 19px; border-radius: 999px; background: var(--depasse); color: var(--blanc); font-size: 12px; display: grid; place-items: center; padding: 0 5px; }

/* Message bref en bas d'écran */
.message {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav) + 16px + env(safe-area-inset-bottom)); z-index: 70;
  background: var(--noir); color: var(--blanc); border-radius: 12px; padding: 14px 16px; font-weight: 500;
  transform: translateY(20px); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; max-width: 600px; margin: 0 auto;
}
.message.visible { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
@media (max-width: 370px) { /* écran extérieur du Z Flip */
  body { font-size: 16px; }
  .chiffre b { font-size: 30px; }
  .bonjour { font-size: 28px; }
  .grand-scan strong { font-size: 25px; }
  .zone { grid-template-columns: 1fr; }
  .logo-reserve { width: 58px; font-size: 9.5px; }
}

/* ---------- Ouverture de l'appli (une seule fois, environ 1,4 s) ---------- */
#ouverture {
  position: fixed; inset: 0; z-index: 100; background: var(--rouge); display: grid; place-content: center; justify-items: center; gap: 22px;
  animation: ouv-sortie .45s cubic-bezier(.6,0,.3,1) 1.05s both;
}
.ouv-etiquette {
  position: relative; width: 132px; height: 104px; border-radius: 14px; background: var(--blanc);
  display: grid; place-items: center; animation: ouv-pose .55s cubic-bezier(.2,1.5,.4,1) both;
}
.ouv-etiquette::before { content: ""; position: absolute; left: 11px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); }
.ouv-etiquette span { font-family: var(--condense); font-weight: 800; font-size: 58px; line-height: 1; color: var(--noir); margin-top: -10px; }
.ouv-etiquette i {
  position: absolute; left: 22px; right: 22px; bottom: 17px; height: 5px; background: var(--rouge); transform-origin: left;
  animation: ouv-trait .4s ease-out .45s both;
}
.ouv-nom { font-family: var(--condense); font-weight: 800; font-size: 30px; color: var(--blanc); animation: ouv-nom .4s ease-out .6s both; }
@keyframes ouv-pose { from { transform: translateY(-36px) scale(.7) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ouv-trait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ouv-nom { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ouv-sortie { to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { #ouverture { display: none; } }

/* Mention discrète des réceptions d'exemple, sur sa propre ligne */
.ligne-exemple { display: block; font-size: 12.5px; color: var(--gris); margin-top: 4px; font-style: italic; }

/* ---------- Plan du rayon ---------- */
.plan-carte { background: var(--blanc); border-radius: 18px; padding: 10px 6px 4px; margin-bottom: 16px; position: relative; touch-action: manipulation; }
.plan-svg { display: block; width: 100%; height: auto; }
.plan-svg .zone { cursor: pointer; transition: opacity .25s; }
.plan-svg .zone.cible .dessus { filter: drop-shadow(0 0 1.5px rgba(226,0,26,.7)); }
.plan-svg .nom-zone { font-family: var(--condense); font-weight: 700; fill: var(--noir); paint-order: stroke; stroke: rgba(255,255,255,.92); stroke-width: .9px; pointer-events: none; }
.plan-svg .nom-zone.eteint { fill: #9aa1a8; }
.plan-svg .repere .onde { fill: rgba(226,0,26,.25); stroke: none; transform-origin: 0 0; animation: onde 1.6s ease-out infinite; }
.plan-svg .repere path { animation: rebond 1.6s ease-in-out infinite; }
@keyframes onde { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4px); } }
.plan-vue { position: absolute; right: 12px; top: 12px; z-index: 2; border: 0; border-radius: 999px; background: var(--noir); color: var(--blanc); font-weight: 600; font-size: 14px; padding: 8px 14px; }
.legende { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13.5px; color: var(--gris); margin: 4px 10px 12px; }
.legende span { display: flex; align-items: center; gap: 8px; }
.legende i { width: 16px; height: 12px; border-radius: 3px; flex: none; border: 1.5px solid; }
.ou-est { position: relative; margin-bottom: 14px; }
.ou-est input { width: 100%; min-height: 58px; border-radius: 16px; border: 2px solid var(--noir); background: var(--blanc); padding: 10px 14px 10px 48px; font-size: 19px; }
.ou-est input:focus { outline: none; box-shadow: 0 0 0 4px var(--rouge-pale); }
.ou-est svg { position: absolute; left: 14px; top: 17px; width: 24px; height: 24px; }
.trouve-carte { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; background: var(--blanc); border-radius: 16px; padding: 12px; margin-bottom: 16px; border-left: 5px solid var(--rouge); }
.trouve-carte img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; }
.trouve-carte b { display: block; font-family: var(--condense); font-weight: 800; font-size: 22px; color: var(--noir); line-height: 1.1; }
.trouve-carte span { font-size: 14.5px; color: var(--gris); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }

/* Fiche d'un meuble (glisse depuis le bas) */
.voile { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.4); animation: apparait .2s both; }
.feuille {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--blanc); border-radius: 22px 22px 0 0;
  max-height: 86vh; overflow: auto; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); animation: monte .32s cubic-bezier(.2,.9,.3,1) both;
  max-width: 640px; margin: 0 auto;
}
.feuille .poignee { width: 44px; height: 5px; border-radius: 3px; background: var(--filet); margin: 10px auto 6px; }
.feuille .photo { width: 100%; height: 170px; object-fit: cover; display: block; }
.feuille .contenu { padding: 18px 20px 4px; }
.feuille .type { font-size: 14px; color: var(--gris); margin-bottom: 4px; }
@keyframes monte { from { transform: translateY(100%); } to { transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
.temp-grand { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--inox); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.temp-grand b { font-family: var(--condense); font-weight: 800; font-size: 40px; line-height: 1; }
.temp-grand b.ok { color: var(--conforme); } .temp-grand b.chaud { color: var(--verifier); } .temp-grand b.alerte { color: var(--depasse); }
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; margin: 10px 0 14px; }
.stepper button { height: 64px; border-radius: 14px; border: 2px solid var(--noir); background: var(--blanc); font-size: 30px; font-weight: 700; }
.stepper output { text-align: center; font-family: var(--condense); font-weight: 800; font-size: 46px; color: var(--noir); }
.emplacement {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: var(--rouge-pale);
  color: var(--noir); border-radius: 14px; padding: 14px 16px; margin: 4px 0 18px;
}
.emplacement svg { width: 28px; height: 28px; color: var(--rouge); flex: none; }
.emplacement b { display: block; font-weight: 600; }
.emplacement span { font-size: 14px; color: var(--gris); }

/* ---------- Chargement : un jambon qui tourne sur son présentoir ---------- */
.jambon-tourne { width: 110px; height: 110px; margin: 0 auto 18px; perspective: 400px; }
.jambon-tourne svg { width: 100%; height: 100%; transform-style: preserve-3d; animation: tourne-jambon 2.4s linear infinite; }
@keyframes tourne-jambon { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.jambon-socle { width: 74px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); margin: -14px auto 18px; }

/* ---------- Tutoriel ---------- */
.tuto { position: fixed; inset: 0; z-index: 90; background: var(--blanc); display: flex; flex-direction: column; animation: apparait .25s both; }
.tuto-scene { flex: 1; display: grid; place-items: center; background: var(--inox); position: relative; overflow: hidden; min-height: 0; }
.tuto-texte { padding: 26px 24px 8px; }
.tuto-texte h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.tuto-texte p { color: var(--texte); font-size: 18px; }
.tuto-pied { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 24px calc(22px + env(safe-area-inset-bottom)); }
.tuto-points { display: flex; gap: 8px; }
.tuto-points i { width: 9px; height: 9px; border-radius: 50%; background: var(--filet); transition: width .3s, background .3s; }
.tuto-points i.actif { width: 26px; border-radius: 6px; background: var(--rouge); }
.tuto-pied .btn { width: auto; min-width: 150px; }
.tuto-passer { border: 0; background: none; color: var(--gris); font-weight: 600; font-size: 16px; position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 2; }

/* Scène 1 : le téléphone scanne une étiquette */
.sc-tel { width: 170px; height: 300px; border-radius: 28px; border: 6px solid var(--noir); background: #1b1b1b; position: relative; overflow: hidden; }
.sc-etiq { position: absolute; left: 18px; right: 18px; top: 70px; height: 150px; background: var(--blanc); border-radius: 8px; padding: 12px; }
.sc-etiq .l { height: 7px; border-radius: 4px; background: #c9cdd1; margin-bottom: 8px; }
.sc-etiq .cb { display: flex; gap: 3px; height: 46px; margin-top: 12px; }
.sc-etiq .cb i { flex: 1; background: var(--noir); } .sc-etiq .cb i:nth-child(3n) { flex: .4; } .sc-etiq .cb i:nth-child(4n) { flex: 1.8; }
.sc-ligne { position: absolute; left: 10px; right: 10px; height: 3px; background: var(--rouge); box-shadow: 0 0 12px 3px rgba(226,0,26,.7); top: 80px; animation: balaye 1.8s ease-in-out infinite alternate; }
@keyframes balaye { from { top: 80px; } to { top: 210px; } }
.sc-ok { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: #3ddc84; color: #000; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; animation: clignote 3.6s infinite; }
@keyframes clignote { 0%, 45% { opacity: 0; transform: translate(-50%, 8px); } 55%, 100% { opacity: 1; transform: translate(-50%, 0); } }

/* Scène 2 : les valeurs passent de l'orange au vert */
.sc-champs { width: 260px; background: var(--blanc); border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 30px -16px rgba(0,0,0,.4); }
.sc-champ { border-bottom: 3px solid var(--verifier); padding: 8px 0 6px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; animation: verifie 4s infinite; }
.sc-champ b { font-family: var(--condense); font-weight: 800; font-size: 24px; color: var(--noir); }
.sc-champ span { font-size: 12px; color: var(--gris); display: block; }
.sc-champ em { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; background: var(--verifier); font-weight: 700; animation: verifie-pastille 4s infinite; }
.sc-champ:nth-child(2), .sc-champ:nth-child(2) em { animation-delay: .7s; }
.sc-champ:nth-child(3), .sc-champ:nth-child(3) em { animation-delay: 1.4s; }
@keyframes verifie { 0%, 25% { border-color: var(--verifier); } 35%, 100% { border-color: var(--conforme); } }
@keyframes verifie-pastille { 0%, 25% { background: var(--verifier); } 35%, 100% { background: var(--conforme); } }

/* Scène 3 : le tampon tombe sur le ticket */
.sc-ticket { width: 250px; background: var(--blanc); border-radius: 6px 6px 14px 14px; overflow: hidden; position: relative; box-shadow: 0 14px 30px -16px rgba(0,0,0,.45); }
.sc-ticket .tete { background: var(--rouge); color: #fff; padding: 14px 16px; font-family: var(--condense); font-weight: 800; font-size: 22px; }
.sc-ticket .corps { padding: 14px 16px 20px; }
.sc-ticket .corps .l { height: 8px; border-radius: 4px; background: #d5d9dd; margin-bottom: 10px; }
.sc-ticket .tampon { top: 64px; right: 8px; animation: tamponne-boucle 3.2s infinite; }
@keyframes tamponne-boucle { 0%, 30% { transform: rotate(-9deg) scale(2.2); opacity: 0; } 42%, 100% { transform: rotate(-9deg) scale(1); opacity: 1; } }

/* Scènes intérimaire : la recherche, puis le repère sur le plan */
.sc-recherche { width: 270px; }
.sc-recherche .champ-r { background: var(--blanc); border: 2px solid var(--noir); border-radius: 14px; padding: 12px 14px; font-size: 18px; margin-bottom: 14px; overflow: hidden; white-space: nowrap; }
.sc-recherche .champ-r span { display: inline-block; overflow: hidden; vertical-align: bottom; border-right: 2px solid var(--rouge); animation: tape 3.2s steps(9) infinite; }
@keyframes tape { 0% { width: 0; } 45%, 100% { width: 6.2em; } }
.sc-recherche .plan-mini { background: var(--blanc); border-radius: 14px; padding: 8px; }
.sc-contacts { display: flex; gap: 22px; }
.sc-contact { text-align: center; animation: monte-doux .6s both; }
.sc-contact:nth-child(2) { animation-delay: .25s; }
.sc-contact .pastille { width: 84px; height: 84px; font-size: 40px; background: var(--rouge); color: #fff; margin: 0 auto 10px; }
.sc-contact b { font-family: var(--condense); font-weight: 800; font-size: 24px; color: var(--noir); display: block; }
.sc-contact span { color: var(--gris); }
@keyframes monte-doux { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Espace intérimaire ---------- */
.interim-tete { margin: -26px -20px 22px; position: relative; height: 210px; overflow: hidden; }
.interim-tete img { width: 100%; height: 100%; object-fit: cover; display: block; }
.interim-tete div { position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; }
.interim-tete h1 { color: #fff; font-size: 34px; }
.interim-tete p { margin: 4px 0 0; opacity: .92; }
.contact { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--filet); }
.contact:last-child { border-bottom: 0; }
.contact .pastille { width: 46px; height: 46px; font-size: 22px; background: var(--rouge); color: #fff; flex: none; }
.contact b { display: block; color: var(--noir); }
.contact span { font-size: 14.5px; color: var(--gris); }
.profil.interim { background: var(--noir); color: var(--blanc); }
.profil.interim .pastille { background: var(--blanc); color: var(--noir); }
.profil.interim span { color: #c9cdd1; }
.plan-svg .mot-mur { font-family: var(--condense); font-weight: 800; fill: var(--rouge); letter-spacing: .6px; }
.plan-svg .nom-zone.service { fill: #8a9097; font-weight: 600; }
.temp-grand b { white-space: nowrap; }
.ligne-produit, .ligne-meta { display: block; }

/* ---------- Dictée vocale ---------- */
.micro {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--rouge); background: var(--blanc); color: var(--rouge);
  display: grid; place-items: center;
}
.micro svg { width: 26px; height: 26px; }
.micro:active { background: var(--rouge); color: var(--blanc); }
.micro.clair { border-color: rgba(255,255,255,.85); background: rgba(255,255,255,.12); color: var(--blanc); }
.avec-micro { display: flex; align-items: center; gap: 10px; }
.avec-micro input { flex: 1; min-width: 0; }
.ou-est .micro, .recherche .micro { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-width: 0; background: transparent; }
.ou-est.a-micro input, .recherche.a-micro input { padding-right: 56px; }
.ecoute {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom)); z-index: 80; max-width: 616px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; background: var(--noir); color: var(--blanc); border-radius: 18px; padding: 14px 16px; animation: monte-doux .25s both;
}
.ecoute b { display: block; font-family: var(--condense); font-size: 21px; }
.ecoute div { flex: 1; min-width: 0; }
.ecoute #dicte { display: block; font-size: 16px; color: #d5d9dd; }
.micro-anime { width: 48px; height: 48px; border-radius: 50%; background: var(--rouge); display: grid; place-items: center; flex: none; animation: ecoute 1.2s ease-in-out infinite; }
.micro-anime svg { width: 26px; height: 26px; }
@keyframes ecoute { 0%, 100% { box-shadow: 0 0 0 0 rgba(226,0,26,.6); } 50% { box-shadow: 0 0 0 12px rgba(226,0,26,0); } }

/* ---------- « Vouliez-vous dire … ? » ---------- */
.suggestion { background: var(--blanc); border: 2px solid var(--noir); border-radius: 16px; padding: 16px; margin: 0 0 16px; animation: monte-doux .3s both; }
.suggestion p { margin: 0 0 12px; }
.suggestion b { font-family: var(--condense); font-weight: 800; font-size: 24px; color: var(--noir); display: block; margin-top: 2px; }
.suggestion .rangee-btn .btn { min-height: 54px; }

/* ---------- Mon espace ---------- */
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.qui .avatar { border: 2px solid var(--blanc); }
.profil .avatar { width: 46px; height: 46px; }
.moi-tete { text-align: center; margin: 6px 0 24px; }
.moi-photo { position: relative; width: 132px; height: 132px; margin: 0 auto 14px; }
.moi-photo .grande, .moi-photo .pastille { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; font-size: 60px; background: var(--rouge); color: var(--blanc); }
.moi-photo button { position: absolute; right: -2px; bottom: 2px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--inox); background: var(--noir); color: var(--blanc); display: grid; place-items: center; }
.moi-photo button svg { width: 22px; height: 22px; }
.moi-tete h1 { font-size: 36px; }
.carte-employe { border-radius: 18px; overflow: hidden; background: var(--rouge); color: var(--blanc); box-shadow: 0 18px 34px -20px rgba(0,0,0,.55); margin-bottom: 16px; }
.carte-employe .haut { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px 14px; }
.carte-employe .haut b { font-family: var(--condense); font-weight: 800; font-size: 26px; display: block; line-height: 1; }
.carte-employe .haut span { font-size: 14px; opacity: .9; }
.carte-employe .remise { font-family: var(--condense); font-weight: 800; font-size: 40px; line-height: .9; text-align: right; }
.carte-employe .remise small { display: block; font-family: var(--corps); font-size: 12px; font-weight: 500; }
.carte-employe .bas { background: var(--blanc); margin: 0 14px 14px; border-radius: 10px; padding: 12px 12px 8px; text-align: center; color: var(--noir); }
.code-barres { width: 100%; height: 70px; display: block; }
.carte-employe .numero { font-family: ui-monospace, monospace; font-size: 15px; letter-spacing: 2px; margin-top: 4px; }
.caisse { position: fixed; inset: 0; z-index: 95; background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 24px; text-align: center; animation: apparait .2s both; }
.caisse .code-barres { height: 160px; }
.caisse h2 { font-size: 30px; margin-bottom: 4px; }
.caisse p { color: var(--gris); }
.caisse .numero { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: 3px; margin: 10px 0 26px; color: #000; }

/* ---------- Votre avis ---------- */
.mot-anthony { background: var(--blanc); border-radius: 18px; padding: 22px 20px; margin-bottom: 20px; border-left: 6px solid var(--rouge); }
.mot-anthony p { font-size: 18px; line-height: 1.6; }
.mot-anthony .signature { font-family: var(--condense); font-weight: 700; font-size: 20px; color: var(--noir); margin: 0; }
.frimousses { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 6px; }
.frimousse { border: 2px solid var(--filet); background: var(--blanc); border-radius: 16px; min-height: 74px; font-size: 34px; display: grid; place-items: center; transition: transform .15s; }
.frimousse[aria-pressed="true"] { border-color: var(--rouge); background: var(--rouge-pale); transform: scale(1.08); }
.frimousse-nom { text-align: center; color: var(--gris); min-height: 24px; font-weight: 600; }
.formulaire textarea { min-height: 96px; line-height: 1.45; resize: vertical; }
.question { display: flex; gap: 10px; align-items: flex-start; }
.question textarea { flex: 1; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0; }
.interrupteur input { width: 52px; height: 30px; accent-color: var(--rouge); }
.carte-avis { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; border: 0; background: var(--noir); color: var(--blanc); border-radius: 18px; padding: 18px; margin-top: 26px; }
.carte-avis b { display: block; font-family: var(--condense); font-weight: 800; font-size: 22px; }
.carte-avis span { opacity: .85; font-size: 15px; }
.carte-avis em { font-size: 34px; font-style: normal; }

/* ---------- Planning ---------- */
.onglets { display: grid; grid-template-columns: 1fr 1fr; background: var(--blanc); border-radius: 14px; padding: 5px; margin-bottom: 20px; }
.onglets button { border: 0; background: none; border-radius: 10px; min-height: 48px; font-weight: 600; font-size: 16px; color: var(--gris); }
.onglets button[aria-selected="true"] { background: var(--noir); color: var(--blanc); }
.semaine-total { background: var(--noir); color: var(--blanc); border-radius: 18px; padding: 18px 20px; margin-bottom: 18px; }
.semaine-total b { font-family: var(--condense); font-weight: 800; font-size: 40px; line-height: 1; display: block; }
.semaine-total span { opacity: .85; }
.jour-ligne { background: var(--blanc); border-radius: 16px; padding: 16px; margin-bottom: 12px; border-left: 5px solid transparent; }
.jour-ligne.aujourdhui { border-left-color: var(--rouge); }
.jour-ligne .entete-jour { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.jour-ligne h3 { font-size: 21px; }
.jour-ligne .duree { font-family: var(--condense); font-weight: 700; font-size: 19px; color: var(--noir); white-space: nowrap; }
.creneaux { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.creneau { font-family: var(--condense); font-weight: 700; font-size: 22px; color: var(--noir); background: var(--inox); border-radius: 10px; padding: 4px 12px; }
.creneau.cours { background: #e3f3ea; color: var(--conforme); }
.etiquette-jour { display: inline-block; font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 3px 11px; margin-top: 10px; }
.etiquette-jour.repos { background: #fff4bf; color: #6b5800; }
.etiquette-jour.cours { background: #e3f3ea; color: var(--conforme); }
.etiquette-jour.absence { background: #fde3e6; color: var(--depasse); }
.etiquette-jour.plus { background: var(--rouge); color: var(--blanc); }
.badge-auj { font-size: 13px; font-weight: 600; color: var(--rouge); margin-left: 6px; }
.plus-tard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.plus-tard button { min-height: 56px; border-radius: 12px; border: 2px solid var(--noir); background: var(--blanc); font-family: var(--condense); font-weight: 800; font-size: 20px; }
/* Frise de l'équipe */
.frise { background: var(--blanc); border-radius: 18px; padding: 16px 14px 10px; }
.frise-ligne { display: grid; grid-template-columns: 94px 1fr; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid #eef0f2; }
.frise-ligne:last-child { border-bottom: 0; }
.frise-nom { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--noir); min-width: 0; }
.frise-nom .pastille, .frise-nom .avatar { width: 30px; height: 30px; font-size: 15px; background: var(--rouge); color: var(--blanc); flex: none; }
.frise-piste { position: relative; height: 30px; background: repeating-linear-gradient(90deg, #f3f5f7 0 calc(100%/15 - 1px), #e4e7ea calc(100%/15 - 1px) calc(100%/15)); border-radius: 6px; }
.frise-bloc { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; background: var(--rouge); color: #fff; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.frise-bloc.cours { background: var(--conforme); }
.frise-bloc.plus { background: repeating-linear-gradient(45deg, #a30012 0 4px, #e2001a 4px 8px); }
.frise-texte { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 10px; font-size: 13.5px; font-weight: 600; }
.frise-texte.repos { color: #6b5800; background: #fff4bf; border-radius: 6px; }
.frise-texte.absence { color: var(--depasse); background: repeating-linear-gradient(45deg, #fde3e6 0 6px, #fbd2d7 6px 12px); border-radius: 6px; }
.frise-heures { display: grid; grid-template-columns: 94px 1fr; gap: 10px; font-size: 11.5px; color: var(--gris); margin-bottom: 4px; }
.frise-heures div { display: flex; justify-content: space-between; }
.maintenant { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--noir); z-index: 2; }
.carte-planning { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--blanc); border: 0; border-radius: 16px; padding: 16px 18px; margin-bottom: 26px; text-align: left; }
.carte-planning svg { width: 30px; height: 30px; color: var(--rouge); flex: none; }
.carte-planning b { display: block; font-family: var(--condense); font-weight: 800; font-size: 22px; color: var(--noir); }
.carte-planning span { color: var(--gris); font-size: 15px; }

/* ---------- Logo de l'appli ---------- */
.logo-appli { width: 38px; height: 38px; border-radius: 10px; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.logo-accueil { width: 104px; height: 104px; border-radius: 26px; display: block; margin-bottom: 18px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); }
.ouv-logo { width: 150px; height: 150px; border-radius: 36px; box-shadow: 0 22px 44px -18px rgba(0,0,0,.6); animation: ouv-pose .6s cubic-bezier(.2,1.5,.4,1) both; }
#ouverture { background: #1d1d1b; }
@media (max-width: 370px) { .logo-appli { display: none; } }
/* Le tampon se pose dans la partie blanche du ticket, à côté du lot, quelle que soit la hauteur du bandeau. */
.ticket-corps { position: relative; }
.ticket-corps > .tampon { top: 14px; right: 6px; }

/* =====================================================================
 * Version prépas (11/10/2026) : scanner automatique, dossiers de commande, devis, alerte du matin.
 * ===================================================================== */

/* Fiche : les deux lignes du bandeau rouge sont des champs */
.ticket-tete textarea.produit { display: block; resize: none; overflow: hidden; line-height: 1.05; padding: 2px 0; width: 100%; border: 0; background: transparent; color: #fff; font: inherit; font-family: var(--condense); font-weight: 800; font-size: 27px; }
.ticket-tete input.fournisseur { width: 100%; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; opacity: .95; }
.select-ticket { width: 100%; min-height: 52px; border: 2px solid var(--filet); border-radius: 12px; padding: 8px 10px; background: var(--blanc); margin-top: 6px; font-weight: 600; }
.champ .valeur { font-family: var(--condense); font-weight: 800; font-size: 24px; color: #000; line-height: 1.15; padding: 4px 0; }
.champ .valeur.grande { font-size: 36px; }
.champ .valeur.petite { font-size: 19px; }
.habituel { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--conforme); font-weight: 600; font-size: 15px; }
.habituel svg { width: 20px; height: 20px; flex: none; }

/* Tuiles : un choix parmi quelques-uns, à toucher avec des gants */
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tuile { min-height: 60px; border-radius: 12px; border: 2px solid var(--filet); background: var(--blanc); font-weight: 600; font-size: 15px; line-height: 1.15; padding: 6px; color: var(--noir); }
.tuile[aria-pressed="true"] { border-color: var(--noir); background: var(--noir); color: var(--blanc); }
.puces.enroule { flex-wrap: wrap; overflow: visible; margin-top: 10px; }
.puce.active { background: var(--noir); border-color: var(--noir); color: var(--blanc); }

/* Le gros bouton Valider reste toujours à portée de pouce */
.valider-fixe { position: sticky; bottom: calc(var(--nav) + 10px + env(safe-area-inset-bottom)); z-index: 15; margin-top: 18px; }
.btn.tres-grand { min-height: 76px; font-size: 26px; box-shadow: 0 8px 24px rgba(226, 0, 26, .35); }
.btn.tres-grand[disabled] { box-shadow: none; }
.btn.alerte-btn { background: var(--depasse); }

/* Scanner */
.scanner .haut { gap: 8px; }
.scanner .cadre { top: 15%; bottom: 44%; }
.puce-scan { display: flex; align-items: center; gap: 6px; min-height: 44px; max-width: 46%; border: 0; border-radius: 999px; padding: 4px 12px 4px 4px; background: rgba(0,0,0,.55); color: var(--blanc); font-weight: 600; font-size: 14px; }
.puce-scan span:not(.pastille) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puce-scan svg { width: 22px; height: 22px; flex: none; margin-left: 8px; }
.puce-scan.active { background: var(--blanc); color: var(--noir); }
.puce-scan .pastille { width: 34px; height: 34px; }
.scanner .cadre .anneau { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 5; }
.anneau circle:first-child { stroke: rgba(255,255,255,.25); }
.anneau #anneau { stroke: #3ddc84; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.rond.grand { width: 74px; height: 74px; flex-direction: column; gap: 2px; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.rond.grand small { font-size: 11px; font-weight: 600; }
.liens-scan { display: flex; justify-content: center; gap: 22px; margin-top: 14px; }
.liens-scan button { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: rgba(255,255,255,.9); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.liens-scan svg { width: 18px; height: 18px; }
.panier-barre { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 14px; background: var(--blanc); color: var(--noir); padding: 10px 12px; margin-bottom: 14px; text-align: left; font-size: 14px; line-height: 1.25; }
.panier-barre svg { width: 26px; height: 26px; color: var(--rouge); flex: none; }
.panier-barre span { flex: 1; }
.panier-barre em { font-style: normal; font-weight: 700; color: var(--rouge); }

/* Registre */
.recherche-rangee { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.bouton-filtres { display: flex; align-items: center; gap: 6px; min-height: 56px; border: 2px solid var(--filet); border-radius: 14px; background: var(--blanc); padding: 0 14px; font-weight: 600; color: var(--noir); }
.bouton-filtres svg { width: 22px; height: 22px; }
.bouton-filtres b { background: var(--rouge); color: var(--blanc); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 13px; }
.bouton-filtres.actif { border-color: var(--noir); }
.resultat-rangee { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 4px; color: var(--gris); font-size: 15px; }
.resultat-rangee .petit-btn { display: flex; align-items: center; gap: 6px; }
.ligne-cmd { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--rouge); }
.ligne-cmd svg { width: 16px; height: 16px; flex: none; }
.feuille h3 { font-size: 15px; margin: 18px 0 2px; color: var(--noir); }
.feuille-pied { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; background: var(--blanc); padding: 14px 0 4px; margin-top: 16px; }
.feuille-pied .btn + .btn { margin-top: 0; }
.date-filtre { width: 100%; min-height: 52px; border-radius: 12px; border: 2px solid var(--filet); padding: 8px; background: var(--blanc); }
.feuille label { display: block; font-weight: 600; margin: 12px 0 6px; }
.menu-ligne.choisi { outline: 3px solid var(--noir); }
.menu-ligne.mise-en-avant { border: 2px solid var(--rouge); }

/* Cases à cocher en liste */
.liste-cases { margin: 12px 0 16px; }
.case-ligne { display: flex; align-items: center; gap: 14px; background: var(--blanc); border-radius: 14px; padding: 14px; margin-bottom: 8px; border: 2px solid var(--filet); }
.case-ligne input { width: 28px; height: 28px; accent-color: var(--rouge); flex: none; }
.case-ligne b { display: block; color: var(--noir); }
.case-ligne span span { font-size: 14px; color: var(--gris); }

/* Commandes : des dossiers */
.carte-commande { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 14px; width: 100%; text-align: left; border: 0; background: var(--blanc); border-radius: 4px 16px 16px 16px; padding: 18px 16px; margin-bottom: 14px; border-left: 6px solid var(--rouge); }
.carte-commande.statut-retiree { border-left-color: var(--filet); opacity: .85; }
.carte-commande.statut-prete { border-left-color: var(--conforme); }
.onglet-dossier { width: 48px; height: 48px; border-radius: 12px; background: var(--rouge-pale); color: var(--rouge); display: grid; place-items: center; }
.onglet-dossier svg { width: 28px; height: 28px; }
.cc-titre { display: block; font-family: var(--condense); font-weight: 800; font-size: 22px; line-height: 1.1; color: var(--noir); }
.cc-quand { display: block; margin-top: 4px; font-weight: 600; color: var(--texte); }
.cc-quand.urgent { color: var(--depasse); }
.cc-meta { display: block; font-size: 14px; color: var(--gris); margin-top: 4px; line-height: 1.35; }
.cc-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 14px; color: var(--gris); }
.cc-pied b { margin-left: auto; font-family: var(--condense); font-size: 20px; color: var(--noir); }
.statut { background: var(--inox); color: var(--noir); border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 13px; }
.cc-encours { position: absolute; top: -10px; right: 14px; background: var(--noir); color: var(--blanc); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.dossier-tete { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; margin: 4px 0 18px; }
.dossier-tete .onglet-dossier { width: 56px; height: 56px; }
.dossier-tete h1 { font-size: 30px; line-height: 1.05; }
.dossier-tete p { margin: 6px 0 10px; color: var(--gris); font-size: 15px; }
.statuts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 2px; }
.statuts button { flex: none; min-height: 44px; border-radius: 999px; border: 2px solid var(--filet); background: var(--blanc); padding: 0 14px; font-weight: 600; font-size: 14px; color: var(--gris); }
.statuts button.passe { border-color: var(--conforme); color: var(--conforme); }
.statuts button.actuel { border-color: var(--noir); background: var(--noir); color: var(--blanc); }
.dates-commande { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; }
.dates-commande span { display: block; font-size: 13px; color: var(--gris); }
.dates-commande b { font-family: var(--condense); font-size: 21px; color: var(--noir); }
.bloc h2 .compte, .alerte-groupe .compte { font-family: var(--corps); font-size: 14px; background: var(--inox); border-radius: 999px; padding: 1px 9px; vertical-align: middle; }
.prepa { border-bottom: 1px solid var(--filet); padding: 12px 0; }
.prepa-nom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prepa-nom b { font-size: 18px; color: var(--noir); }
.prepa-reglages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.prepa-reglages select, .prix input { width: 100%; min-height: 54px; border: 2px solid var(--filet); border-radius: 12px; padding: 6px 10px; background: var(--blanc); font-weight: 700; font-size: 17px; }
.prix { position: relative; display: block; }
.prix input { padding-bottom: 18px; }
.prix span { position: absolute; left: 12px; bottom: 5px; font-size: 11px; color: var(--gris); }
.prepa-total { text-align: right; font-family: var(--condense); font-weight: 700; font-size: 20px; margin-top: 6px; color: var(--noir); }
.total-commande { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.total-commande b { font-family: var(--condense); font-weight: 800; font-size: 30px; color: var(--rouge); }
.attendus { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.attendus span { border: 2px dashed var(--filet); border-radius: 999px; padding: 3px 11px; font-size: 14px; color: var(--gris); }
.attendus span.ok { border-style: solid; border-color: var(--conforme); color: var(--conforme); background: var(--conforme-pale); font-weight: 600; }
.allergenes { display: flex; flex-wrap: wrap; gap: 8px; }
.allergenes span { background: var(--verifier-pale); color: #7a3f00; border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.alerte-texte { color: var(--verifier); font-size: 15px; margin-top: 12px; }
.ingredient { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--filet); padding: 10px 0; }
.ingredient small { display: block; color: var(--gris); font-size: 13px; }
.equipe-ligne { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--filet); }
.centre { text-align: center; }

/* Aperçu du devis : une feuille de papier */
.feuille-devis { background: var(--blanc); border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 22px 20px; margin-bottom: 20px; border-top: 6px solid var(--rouge); }
.fd-tete { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.fd-tete b { display: block; color: var(--noir); }
.fd-tete span { font-size: 13px; color: var(--gris); }
.fd-mot { font-family: var(--condense); font-weight: 800; font-size: 34px; color: var(--rouge); line-height: 1; }
.fd-client { margin: 18px 0 12px; }
.fd-client span { display: block; font-size: 13px; color: var(--gris); }
.fd-client b { font-family: var(--condense); font-size: 22px; color: var(--noir); }
.fd-lignes div, .fd-totaux div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--filet); }
.fd-lignes small { display: block; font-size: 12.5px; color: var(--gris); }
.fd-totaux div { border: 0; padding: 4px 0; }
.fd-totaux { margin-top: 8px; }
.fd-ttc { font-weight: 700; color: var(--rouge); font-size: 20px; }
.fd-signature { margin-top: 18px; border: 1px dashed var(--filet); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--gris); }
.fd-signature img { display: block; max-height: 64px; margin-top: 4px; }
.fd-signature em { display: block; margin-top: 6px; color: var(--verifier); }
.avertissement { display: flex; gap: 12px; background: var(--verifier-pale); color: #6b3700; border-radius: 14px; padding: 14px; margin-bottom: 16px; font-size: 15px; }
.avertissement svg { width: 24px; height: 24px; flex: none; }
.lien { border: 0; background: none; padding: 0; color: inherit; font-weight: 700; text-decoration: underline; }
.pad { width: 100%; height: 160px; border: 2px dashed var(--filet); border-radius: 12px; background: #fcfcfd; touch-action: none; margin: 10px 0 12px; display: block; }
.signature-vue { display: block; max-width: 100%; max-height: 90px; margin: 8px 0; }

/* L'alerte du matin : impossible à manquer */
.urgence { position: fixed; inset: 0; z-index: 90; background: var(--depasse); color: var(--blanc); display: flex; flex-direction: column; animation: apparait .25s both; padding-top: env(safe-area-inset-top); }
.urg-tete { display: flex; gap: 14px; align-items: center; padding: 26px 20px 18px; }
.urg-tete > svg { width: 64px; height: 64px; flex: none; animation: sonne 1s ease-in-out 3; }
.urg-tete h1 { color: var(--blanc); font-size: 32px; line-height: 1; }
.urg-tete p { margin: 6px 0 0; font-size: 16px; opacity: .95; }
.urg-liste { flex: 1; overflow: auto; background: var(--inox); color: var(--texte); border-radius: 22px 22px 0 0; padding: 8px 16px 16px; }
.urg-liste h2 { font-size: 17px; margin: 16px 4px 10px; color: var(--noir); }
.urg-ligne { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--blanc); border-radius: 14px; padding: 14px; margin-bottom: 10px; border-left: 6px solid var(--verifier); }
.urg-ligne.rouge { border-left-color: var(--depasse); }
.urg-ligne b { display: block; color: var(--noir); font-size: 17px; }
.urg-ligne span span { font-size: 14px; color: var(--gris); }
.urg-ligne button { display: flex; align-items: center; gap: 6px; min-height: 56px; border: 0; border-radius: 12px; background: var(--depasse); color: var(--blanc); font-weight: 700; padding: 0 16px; font-size: 16px; }
.urg-ligne button svg { width: 22px; height: 22px; }
.urg-ligne.fait { opacity: .6; }
.urg-fait { display: flex; align-items: center; gap: 6px; color: var(--conforme); font-weight: 700; }
.urg-fait svg { width: 22px; height: 22px; }
.urg-pied { background: var(--inox); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.urg-pied .btn { background: var(--noir); }
@keyframes sonne { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }

/* Tutoriel : scènes des dossiers et du devis */
.sc-dossier .corps, .sc-devis .corps { padding: 14px 16px; }
.sc-prepa { font-size: 15px; margin-bottom: 6px; }
.sc-prepa b { font-family: var(--condense); font-size: 22px; color: var(--rouge); margin-right: 6px; }
.sc-coches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sc-coches span { font-size: 12px; border-radius: 999px; padding: 2px 8px; background: var(--conforme-pale); color: var(--conforme); font-weight: 600; }
.sc-coches span.attendu { background: none; border: 1px dashed var(--filet); color: var(--gris); }
.sc-total { margin-top: 12px; display: flex; justify-content: space-between; font-size: 14px; }
.sc-total b { color: var(--rouge); font-family: var(--condense); font-size: 22px; }
.sc-envoi { margin-top: 12px; background: var(--rouge); color: #fff; border-radius: 10px; text-align: center; padding: 8px; font-weight: 700; animation: tamponne-boucle 3.2s infinite; }
.avec-micro.clair { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }

@media (max-width: 370px) {
  .tuiles { grid-template-columns: 1fr; }
  .puce-scan { font-size: 13px; }
  .rond.grand { width: 64px; height: 64px; }
  .prepa-reglages { grid-template-columns: 1fr; }
}

/* =====================================================================
 * Demandes du 11/10 (après-midi) : question avant le scan, carnet, croix, poids, alertes discrètes.
 * ===================================================================== */

/* « Que scannez-vous ? » : quatre grosses cases par-dessus la caméra */
.choix-mode { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.82); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); animation: apparait .2s both; }
.choix-mode h2 { color: var(--blanc); text-align: center; font-size: 30px; margin-bottom: 8px; }
.choix-mode button { text-align: left; border: 0; border-radius: 16px; background: var(--blanc); color: var(--noir); padding: 16px 18px; min-height: 76px; }
.choix-mode button.actuel { outline: 4px solid var(--rouge); }
.choix-mode b { display: block; font-family: var(--condense); font-weight: 800; font-size: 23px; line-height: 1.1; }
.choix-mode span { font-size: 14px; color: var(--gris); }
.mode-scan { display: flex; align-items: center; gap: 8px; margin: 0 auto 12px; border: 0; border-radius: 999px; background: rgba(0,0,0,.6); color: var(--blanc); padding: 8px 16px; font-size: 15px; }
.mode-scan span { text-decoration: underline; text-underline-offset: 3px; opacity: .85; font-size: 13px; }
.scanner .bas { text-align: center; }
.scanner.mode-carnet .cadre { left: 5%; right: 5%; top: 11%; bottom: 40%; }
.petit-lien { border: 0; background: rgba(0,0,0,.55); color: var(--blanc); border-radius: 999px; padding: 8px 14px; font-size: 14px; text-decoration: underline; margin-bottom: 12px; }

/* Alertes DLC : bandeau et pastille, jamais d'écran qui interrompt */
.bandeau-urgence { position: sticky; top: calc(var(--entete) + env(safe-area-inset-top)); z-index: 19; display: flex; align-items: center; gap: 10px; background: var(--depasse); color: var(--blanc); padding: 10px 16px; text-decoration: none; font-weight: 600; font-size: 15px; }
.bandeau-urgence svg { width: 22px; height: 22px; flex: none; }
.bandeau-urgence span { flex: 1; }
.bandeau-urgence b { background: var(--blanc); color: var(--depasse); border-radius: 999px; padding: 2px 12px; }
.pastille-urgence { display: inline-flex; align-items: center; gap: 6px; background: var(--depasse); color: var(--blanc); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; text-decoration: none; margin-bottom: 10px; }
.pastille-urgence svg { width: 18px; height: 18px; }

/* Croix : supprimer une photo, une fiche du registre */
.ligne-boite { position: relative; }
.ligne-boite .ligne { padding-right: 34px; }
.croix { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: var(--blanc); font-size: 18px; line-height: 1; display: grid; place-items: center; }
.croix.discrete { top: 4px; right: 4px; width: 34px; height: 34px; background: transparent; color: #a3a8ad; font-size: 15px; }
.croix.discrete:active { background: var(--inox); color: var(--depasse); }
.photo-boite { position: relative; }
.message.avec-action { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.message button { border: 0; background: var(--blanc); color: var(--noir); border-radius: 10px; padding: 8px 14px; font-weight: 700; }

/* Recherche : on peut tout taper */
.aide-recherche { background: var(--blanc); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; font-size: 14.5px; color: var(--texte); }
.aide-recherche p { margin: 0 0 4px; }
.aide-recherche .puce { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; padding: 6px 12px; }
.aide-recherche .puce small { font-size: 11px; color: var(--gris); font-weight: 500; }

/* Adresse ajoutée sur place */
.ajout-adresse { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
.ajout-adresse input { min-height: 52px; border-radius: 12px; border: 2px solid var(--noir); padding: 8px 12px; }
.ajout-adresse .btn { min-height: 52px; padding: 0 18px; }
.cache { display: none !important; }

/* Date d'ouverture : trois cases et un calendrier */
.tuiles.quatre { grid-template-columns: repeat(4, 1fr); }
.date-tuile { position: relative; display: grid; place-items: center; text-align: center; cursor: pointer; }
.date-tuile[aria-pressed="true"] { border-color: var(--noir); background: var(--noir); color: var(--blanc); }
.date-tuile input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }

/* Poids : kg ou g, d'un coup d'œil */
.poids { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.unites { display: flex; border: 2px solid var(--noir); border-radius: 12px; overflow: hidden; }
.unites button { border: 0; background: var(--blanc); min-width: 48px; min-height: 44px; font-weight: 800; font-size: 17px; color: var(--noir); }
.unites button[aria-pressed="true"] { background: var(--noir); color: var(--blanc); }
.poids-compris { font-size: 13px; color: var(--gris); margin-top: 4px; min-height: 18px; }

/* Commande lue dans le carnet */
.ligne-lue { display: grid; grid-template-columns: 84px 1fr 40px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--filet); position: relative; }
.ligne-lue select { min-height: 52px; border: 2px solid var(--filet); border-radius: 12px; padding: 6px 8px; background: var(--blanc); font-weight: 600; width: 100%; }
.ligne-lue .croix.discrete { position: static; }
.ligne-lue small { grid-column: 1 / -1; color: var(--gris); }
.evenement { font-weight: 600; color: var(--noir) !important; }
.btn.devis-btn { margin-bottom: 0; }

@media (max-width: 370px) {
  .tuiles.quatre { grid-template-columns: 1fr 1fr; }
  .ligne-lue { grid-template-columns: 70px 1fr 36px; }
}

/* Préparations : quantité et prix étiquetés, calcul écrit en toutes lettres */
.prepa-reglages label { display: block; }
.prepa-reglages label > span { display: block; font-size: 13px; color: var(--gris); font-weight: 600; margin-bottom: 4px; }
.prepa-reglages input { width: 100%; min-height: 54px; border: 2px solid var(--filet); border-radius: 12px; padding: 6px 10px; background: var(--blanc); font-weight: 700; font-size: 17px; }
.prepa-total { font-family: var(--corps); font-size: 15px; font-weight: 600; color: var(--texte); }
.tuiles.deux { grid-template-columns: 1fr 1fr; }
.tuiles.cinq { grid-template-columns: repeat(3, 1fr); }
.tuile small { font-weight: 500; font-size: 12px; opacity: .8; }
.prix-euro { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.prix-euro span { font-weight: 800; font-size: 22px; color: var(--noir); }
.calcul { margin: 18px 0 14px; background: var(--inox); border-radius: 12px; padding: 14px; font-weight: 700; font-size: 18px; color: var(--noir); text-align: center; }

/* Lecture continue : ce qui est déjà trouvé se coche, « Terminé » en bas à droite */
.trouves { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: -4px 0 12px; }
.trouves span { border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.55); color: rgba(255,255,255,.75); border: 1px dashed rgba(255,255,255,.5); }
.trouves span.ok { background: #0b7a43; color: #fff; border: 1px solid #0b7a43; }
.rond.termine { background: rgba(0,0,0,.55); border: 0; color: var(--blanc); }
.rond.termine.pret { background: #0b7a43; box-shadow: 0 0 0 4px rgba(61,220,132,.35); }
.scanner .cadre.lit { border-color: #ffd34d; }

/* Calendrier de la date limite, déjà ouvert : on touche le jour */
.cal { margin-top: 8px; border: 2px solid var(--filet); border-radius: 14px; padding: 10px; }
.cal-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-tete b { font-family: var(--condense); font-size: 21px; color: var(--noir); }
.cal-tete button { width: 48px; height: 44px; border: 0; border-radius: 10px; background: var(--inox); font-size: 24px; font-weight: 700; }
.cal-jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-jours i { font-style: normal; text-align: center; font-size: 12px; color: var(--gris); font-weight: 600; }
.cal-jours button { min-height: 42px; border: 0; border-radius: 10px; background: var(--inox); font-weight: 700; font-size: 16px; color: var(--noir); }
.cal-jours button.passe { color: #aab0b5; background: #f3f4f6; }
.cal-jours button.auj { outline: 2px solid var(--noir); }
.cal-jours button.choisi { background: var(--rouge); color: var(--blanc); }
.cal-replie { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.cal-replie b { font-family: var(--condense); font-size: 21px; color: var(--noir); }
.poids input { font-size: 24px; min-width: 0; }

/* L'assistant : une bulle discrète, une conversation qui glisse depuis le bas */
.assistant-bulle { position: fixed; right: 14px; bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom)); z-index: 30; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(29,29,27,.82); color: var(--blanc); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); opacity: .9; }
.assistant-bulle svg { width: 24px; height: 24px; }
.assistant-bulle:active { transform: scale(.94); }
.assistant-panneau { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-width: 640px; margin: 0 auto; height: min(78vh, 640px); background: var(--inox);
  border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; animation: monte .28s cubic-bezier(.2,.9,.3,1) both; }
.assistant-tete { position: relative; padding: 16px 60px 12px 18px; background: var(--blanc); border-radius: 22px 22px 0 0; }
.assistant-tete b { display: block; font-family: var(--condense); font-size: 22px; color: var(--noir); }
.assistant-tete span { font-size: 14px; color: var(--gris); }
.assistant-tete .croix { top: 12px; right: 12px; background: var(--inox); color: var(--noir); }
.assistant-fil { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.as-msg { max-width: 88%; }
.as-msg p { margin: 0; padding: 10px 14px; border-radius: 16px; line-height: 1.4; font-size: 16px; }
.as-msg.assistant p { background: var(--blanc); color: var(--texte); border-bottom-left-radius: 4px; }
.as-msg.moi { align-self: flex-end; }
.as-msg.moi p { background: var(--noir); color: var(--blanc); border-bottom-right-radius: 4px; }
.as-boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.as-boutons .btn.petit { min-height: 46px; width: auto; padding: 0 16px; font-size: 16px; }
.assistant-sugg { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.assistant-sugg .puce { white-space: nowrap; }
.assistant-saisie { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--blanc); }
.assistant-saisie input { min-height: 52px; border: 2px solid var(--filet); border-radius: 999px; padding: 0 16px; font-size: 16px; }
.assistant-saisie input:focus { border-color: var(--noir); outline: none; }
.assistant-envoi { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--rouge); color: var(--blanc); display: grid; place-items: center; }
.assistant-envoi svg { width: 24px; height: 24px; }

/* Le mousquetaire : sa tête est la bulle, son personnage anime la conversation */
.assistant-bulle { width: 58px; height: 58px; padding: 0; background: var(--blanc); border: 3px solid var(--blanc); opacity: 1; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.28); animation: bulle-arrive .5s cubic-bezier(.2,1.4,.4,1) .6s both; }
.assistant-bulle img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes bulle-arrive { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.assistant-tete { display: flex; align-items: flex-end; gap: 12px; padding: 10px 60px 12px 14px; min-height: 118px; }
.as-perso { width: auto; height: 132px; margin: -36px 0 -12px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); transform-origin: 50% 100%; animation: perso-arrive .45s cubic-bezier(.2,1.3,.4,1) both; }
.as-perso.change { animation: perso-change .32s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes perso-arrive { from { transform: translateY(40px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes perso-change { 0% { transform: scale(.94) translateY(4px); } 100% { transform: none; } }
.assistant-tete > div { padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .as-perso, .assistant-bulle { animation: none !important; } }

/* =====================================================================
 * Refonte « simple tout le temps » (11/10/2026) : 3 boutons, Aujourd'hui, l'essentiel en grand, le reste replié.
 * ===================================================================== */
.barre.trois { grid-template-columns: 1fr 1.1fr 1fr; }
.barre.trois .scan-centre span.bouton { width: 76px; height: 76px; margin-top: -34px; box-shadow: 0 8px 20px rgba(226,0,26,.35); }
.barre.trois .scan-centre span.bouton svg { width: 36px; height: 36px; }
.barre.trois a { font-size: 13.5px; }
.tete-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.18); color: var(--blanc); display: grid; place-items: center; }
.tete-btn svg { width: 22px; height: 22px; }
.qui { padding: 4px; }
.qui .pastille { width: 36px; height: 36px; }
.assistant-bulle { bottom: calc(var(--nav) + 18px + env(safe-area-inset-bottom)); }

/* Menu de l'avatar */
.menu-tete { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.pastille.grande { width: 56px; height: 56px; font-size: 26px; background: var(--rouge); color: var(--blanc); }
.menu-tete b { display: block; font-size: 20px; color: var(--noir); }
.menu-plus summary { list-style: none; cursor: pointer; padding: 14px 4px; color: var(--gris); font-weight: 600; }
.menu-plus summary::-webkit-details-marker { display: none; }
.menu-plus summary::after { content: " ▾"; }
.menu-plus[open] summary::after { content: " ▴"; }
a.menu-ligne { text-decoration: none; color: inherit; }

/* Aujourd'hui */
.bonjour-ligne { margin: 4px 0 18px; }
.bonjour-ligne b { display: block; font-family: var(--condense); font-weight: 800; font-size: 32px; color: var(--noir); line-height: 1.05; }
.bonjour-ligne span { color: var(--gris); }
.carte-jour { display: block; width: 100%; background: var(--blanc); border-radius: 18px; padding: 16px; margin-bottom: 14px; border: 0; text-align: left; color: inherit; }
.carte-jour h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 10px; }
.carte-jour h2 svg { width: 24px; height: 24px; color: var(--rouge); flex: none; }
details.carte-jour summary { list-style: none; cursor: pointer; }
details.carte-jour summary::-webkit-details-marker { display: none; }
details.carte-jour summary h2 { margin: 0; }
details.carte-jour summary h2::after { content: "▾"; margin-left: auto; color: var(--gris); font-size: 16px; }
details.carte-jour[open] summary h2::after { content: "▴"; }
.carte-jour.rappel { border: 3px solid var(--depasse); }
.carte-jour.rappel h2, .carte-jour.rappel h2 svg { color: var(--depasse); }
.rap-ligne { border-top: 1px solid var(--filet); padding: 10px 0; }
.rap-ligne b { display: block; color: var(--noir); }
.rap-ligne span { display: block; font-size: 14.5px; margin-top: 3px; }
.rap-ligne.produit b::before { content: "À vérifier · "; color: var(--verifier); }
.rap-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
a.petit-btn { text-decoration: none; display: inline-flex; align-items: center; }
.petit-btn.rouge { background: var(--depasse); color: var(--blanc); }
.source-mini { font-size: 12px; color: var(--gris); margin: 8px 0 0; }
.carte-jour.urgence-jour h2, .carte-jour.urgence-jour h2 svg { color: var(--depasse); }
.jour-ligne { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border-top: 1px solid var(--filet); padding: 10px 0; }
.jl-texte { border: 0; background: none; text-align: left; padding: 0; }
.jl-texte b, .retrait-ligne b { display: block; color: var(--noir); font-weight: 600; }
.jl-texte span, .retrait-ligne span span { font-size: 14px; color: var(--gris); }
.jour-ligne .petit-btn { min-height: 44px; padding: 0 16px; }
.retrait-ligne { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; width: 100%; border: 0; border-top: 1px solid var(--filet); background: none; padding: 10px 0; text-align: left; }
.rl-heure { font-size: 12.5px; color: var(--gris); text-align: center; background: var(--inox); border-radius: 12px; padding: 6px 4px; }
.rl-heure b { display: block; font-family: var(--condense); font-size: 19px; color: var(--noir); }
.rl-heure.retard { background: var(--rouge-pale); color: var(--depasse); }
.liste-prod { margin: 12px 0 0; padding: 0; list-style: none; }
.liste-prod li { padding: 8px 0; border-top: 1px solid var(--filet); }
.liste-prod b { font-family: var(--condense); font-size: 19px; color: var(--rouge); margin-right: 6px; }
.lien-carte { display: flex; align-items: center; gap: 12px; }
.lien-carte svg { width: 26px; height: 26px; color: var(--rouge); flex: none; }
.lien-carte b { display: block; color: var(--noir); }
.lien-carte span span { font-size: 14px; color: var(--gris); }
.tout-va { text-align: center; padding: 36px 10px; }
.tout-va span { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--conforme-pale); color: var(--conforme); font-size: 38px; font-weight: 800; }
.tout-va b { display: block; font-family: var(--condense); font-size: 26px; color: var(--noir); margin-top: 12px; }
.tout-va p { color: var(--gris); }
.activite { text-align: center; color: var(--gris); font-size: 14px; margin-top: 20px; }
.activite .lien { color: var(--gris); font-weight: 600; }

/* Fiche : les détails déduits tiennent sur une ligne */
.details-auto { margin-top: 12px; border-top: 1px solid var(--filet); padding-top: 10px; }
.details-auto summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.details-auto summary::-webkit-details-marker { display: none; }
.da-titre { font-size: 13.5px; color: var(--gris); font-weight: 600; }
.da-titre::after { content: " · toucher pour corriger"; font-weight: 500; }
.details-auto[open] .da-titre::after { content: " ▴"; }
.da-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.da-puces i { font-style: normal; background: var(--conforme-pale); color: var(--conforme); border-radius: 999px; padding: 3px 10px; font-size: 13.5px; font-weight: 600; }
.cal-titre { font-size: 13.5px; color: var(--gris); font-weight: 600; margin: 0 0 4px; }
.cal-replie span { display: block; font-size: 13.5px; color: var(--gris); }
.cal-replie span b { display: block; }

/* Dossier de commande */
.retrait-tete { font-weight: 700; color: var(--noir) !important; }
.statut-btn { border: 2px solid var(--noir); background: var(--blanc); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; margin-top: 4px; }
.statut-btn.statut-prete { border-color: var(--conforme); color: var(--conforme); }
.statut-btn.statut-retiree { border-color: var(--filet); color: var(--gris); }
.actions-dossier { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin: 6px 0 18px; }
.actions-dossier .btn { margin: 0; min-height: 62px; font-size: 19px; }
.actions-dossier .btn + .btn { margin-top: 0; }
details.repli summary { list-style: none; cursor: pointer; }
details.repli summary::-webkit-details-marker { display: none; }
details.repli summary h2 { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
details.repli summary h2::after { content: "▾"; margin-left: auto; color: var(--gris); font-size: 16px; }
details.repli[open] summary h2::after { content: "▴"; }
.resume { display: block; font-size: 14.5px; color: var(--gris); }
.allergenes-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; }
.notes-dossier { background: var(--inox); border-radius: 12px; padding: 12px; }
.champ select.select-ticket { font-family: var(--corps); font-size: 17px; font-weight: 600; }

/* Chaque rubrique a sa couleur : un filet sous l'en-tête, une tuile-icône devant le titre, un liseré sur les lignes. */
main.rubrique::before { content: ""; display: block; height: 5px; background: var(--teinte); margin: -26px -20px 22px; }
.page-titre h1 { display: flex; align-items: center; }
.icone-rubrique { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--teinte); color: var(--blanc); margin-right: 12px; }
.icone-rubrique svg { width: 26px; height: 26px; }
main.rubrique .ligne { border-left: 5px solid var(--teinte); }
main.rubrique .menu-ligne > svg { color: var(--teinte); }
main.rubrique .dossier-tete .onglet-dossier { background: var(--teinte); color: var(--blanc); }
/* Le bouton Menu (remplace le « ? ») */
.bouton-menu { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 54px; height: 50px; border: 0; border-radius: 14px; background: rgba(0,0,0,.18); color: var(--blanc); }
.bouton-menu svg { width: 24px; height: 24px; }
.bouton-menu span { font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.bientot-ligne { display: block; width: 100%; border-top: 1px solid var(--filet); padding: 10px 0; }
