/* ==========================================================================
   Pepita — design system (assemblée UI/UX, 15/10/2026)
   Noir = agir · Bleu ciel = informer / sélection · Corail = « à faire » uniquement.
   Plus Jakarta Sans · cartes 24px · pilules · feuilles du bas · cibles ≥ 48px.
   ========================================================================== */
:root {
  --fond: #F4F5F7; --surface: #FFFFFF; --encre: #111111; --texte: #111111; --texte-2: #6B7280; --texte-3: #9CA3AF; --ligne: #E6E8EC;
  --bleu: #4BA9C8; --bleu-fonce: #2B7F9C; --bleu-doux: #E6F4F9;
  --corail: #F08A8A; --corail-fonce: #C94F4F; --corail-doux: #FDECEC;
  --vert: #2E9E6A; --vert-doux: #E3F5EC; --orange: #B97814; --orange-doux: #FFF3DC;
  --sable: #E9C79A; --matcha: #8DB580; --ube: #A68BD1;
  --sable-doux: #FBF3E8; --matcha-doux: #EEF5EB; --ube-doux: #F2EDFA;
  --accent: var(--bleu-fonce); --accent-2: #1F5F78; --rouge: var(--corail-fonce); --rouge-fond: var(--corail-doux);
  --vert-fond: var(--vert-doux); --orange-fond: var(--orange-doux); --gris-fond: #EEF0F3; --carte: var(--surface);
  --r-carte: 24px; --r-bloc: 16px; --r-pilule: 999px;
  --ombre: 0 1px 2px rgba(17,17,17,.04), 0 8px 24px rgba(17,17,17,.06);
  --ombre-forte: 0 12px 40px rgba(17,17,17,.18);
  --tab-h: 68px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --police: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rapide: 160ms; --doux: 260ms cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 16px/1.45 var(--police); color: var(--texte); background: var(--fond); padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px); }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 6vw, 2rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.06rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
a { color: var(--bleu-fonce); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.i { width: 22px; height: 22px; flex: none; vertical-align: middle; }
svg.i.p { width: 18px; height: 18px; } svg.i.g { width: 28px; height: 28px; }
.cache { display: none !important; }
.muet { color: var(--texte-2); } .petit { font-size: .86rem; } .tres-petit { font-size: .76rem; }
.gras { font-weight: 800; } .num { font-variant-numeric: tabular-nums; }
.vert { color: var(--vert); } .rouge { color: var(--corail-fonce); } .orange { color: var(--orange); } .bleu { color: var(--bleu-fonce); }
.centre { text-align: center; }
.ligne-flex { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.espace { flex: 1; }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; } .mt-s { margin-top: .5rem; }
.pile > * + * { margin-top: .75rem; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 6; background: rgba(244,245,247,.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  padding: calc(.55rem + var(--safe-t)) 1rem .55rem; display: flex; align-items: center; gap: .6rem; }
.entete .titre { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.entete .pastille { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.btn-entete { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .25rem .4rem .25rem .8rem; border: 0; border-radius: var(--r-pilule); background: var(--surface); box-shadow: var(--ombre); font-weight: 700; font-size: .92rem; }
.btn-entete .avatar { width: 34px; height: 34px; }
.hors-ligne { background: var(--orange-doux); color: var(--orange); font-size: .85rem; padding: .4rem 1rem; text-align: center; font-weight: 600; }

/* ---------- Vue ---------- */
.vue { padding: .6rem 1rem 1.5rem; max-width: 760px; margin: 0 auto; }
.vue.large { max-width: 1120px; }
.vue-entree { animation: entree var(--doux); }
@keyframes entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.titre-ecran { display: flex; align-items: flex-end; gap: .75rem; margin: .4rem 0 1rem; }
.titre-ecran h1 { margin: 0; }
.titre-ecran .sur-titre { display: block; font-size: .9rem; font-weight: 600; color: var(--texte-2); letter-spacing: 0; margin-bottom: .1rem; }
.section-titre { display: flex; align-items: center; gap: .5rem; margin: 1.4rem 0 .6rem; }
.section-titre h2 { margin: 0; font-size: 1.1rem; }
.section-titre a, .section-titre button.lien { margin-left: auto; font-size: .88rem; font-weight: 700; color: var(--bleu-fonce); text-decoration: none; background: none; border: 0; padding: .4rem 0; }

/* ---------- Cartes ---------- */
.carte { background: var(--surface); border-radius: var(--r-carte); box-shadow: var(--ombre); padding: 1rem 1.1rem; margin-bottom: .8rem; }
.carte.serree { padding: .75rem .9rem; border-radius: 20px; }
.carte.tap { display: block; text-decoration: none; color: inherit; transition: transform var(--rapide); }
.carte.tap:active { transform: scale(.985); }
.carte.sombre { background: #141517; color: #fff; }
.carte.sombre .muet { color: #A1A6AE; }
.carte.bleue { background: var(--bleu); color: var(--encre); }
.carte.module { display: flex; gap: .9rem; align-items: center; }
.ico-module { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.ico-module.planning { background: var(--bleu-doux); color: var(--bleu-fonce); }
.ico-module.stock { background: var(--sable-doux); color: #9A6A2A; }
.ico-module.hoplunch { background: var(--matcha-doux); color: #4E7A40; }
.ico-module.atelier { background: var(--ube-doux); color: #6E4FA6; }
.ico-module.corail { background: var(--corail-doux); color: var(--corail-fonce); }
.carte .gros-chiffre { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .8rem; }
.grille-cartes .carte { margin: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.duo .carte { margin: 0; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .6rem 1.15rem; border-radius: var(--r-pilule);
  border: 1.5px solid var(--ligne); background: var(--surface); color: var(--encre); font-weight: 700; text-decoration: none; transition: transform var(--rapide), background var(--rapide); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.principal, .btn.noir { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn.bleu { background: var(--bleu); border-color: var(--bleu); color: var(--encre); }
.btn.vert { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn.rouge, .btn.corail { background: var(--corail-fonce); border-color: var(--corail-fonce); color: #fff; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.discret { background: transparent; border-color: transparent; color: var(--bleu-fonce); }
.btn.petit { min-height: 40px; padding: .35rem .9rem; font-size: .9rem; }
.btn.bloc { width: 100%; white-space: normal; text-align: center; }
.btn.geant { min-height: 58px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .fleche { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--encre); display: grid; place-items: center; margin-right: -.7rem; }
.btn-rond { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--surface); box-shadow: var(--ombre); color: var(--encre); flex: none; }
.btn-rond.noir { background: var(--encre); color: #fff; }
.btn-rond.petit { width: 40px; height: 40px; }
.btn-rangee { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-rangee .btn { flex: 1 1 140px; white-space: normal; }
@media (max-width: 420px) { .btn-rangee .btn { flex: 1 1 calc(50% - .3rem); min-height: 46px; padding: .5rem .8rem; font-size: .92rem; } }
.grille-planning th .puce svg.i.p { width: 13px; height: 13px; }
.btn-rangee.compacte .btn { flex: 0 0 auto; }
.action-bas { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 4; margin-top: 1rem; }
.action-bas .btn { box-shadow: var(--ombre-forte); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .1rem .1rem .5rem; margin: 0 -1rem .3rem; padding-left: 1rem; padding-right: 1rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: .4rem 1rem; border-radius: var(--r-pilule); border: 1.5px solid var(--ligne); background: var(--surface); font-weight: 700; font-size: .92rem; color: var(--encre); display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.chip.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
.chip .compte { background: var(--corail-fonce); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 .45rem; min-width: 20px; text-align: center; }
.chip.actif .compte { background: #fff; color: var(--encre); }

/* ---------- Badges / puces ---------- */
.puce { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--gris-fond); color: var(--texte-2); white-space: nowrap; }
.puce.ok, .puce.vert { background: var(--vert-doux); color: var(--vert); }
.puce.rouge, .puce.corail { background: var(--corail-doux); color: var(--corail-fonce); }
.puce.orange { background: var(--orange-doux); color: var(--orange); }
.puce.bleu { background: var(--bleu-doux); color: var(--bleu-fonce); }
.puce.ube { background: var(--ube-doux); color: #6E4FA6; }
.puce.noir { background: var(--encre); color: #fff; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--corail-fonce); display: inline-block; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: .95rem; }
.avatars { display: flex; } .avatars .avatar { border: 2.5px solid var(--surface); margin-left: -10px; } .avatars .avatar:first-child { margin-left: 0; }

/* ---------- Listes ---------- */
.liste { background: var(--surface); border-radius: var(--r-carte); box-shadow: var(--ombre); overflow: hidden; margin-bottom: .8rem; }
.liste > .item { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; min-height: 60px; border-top: 1px solid var(--ligne); text-decoration: none; color: inherit; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.liste > .item:first-child { border-top: 0; }
.liste > .item:active { background: var(--gris-fond); }
.item .corps { flex: 1; min-width: 0; }
.item .corps .t { font-weight: 700; display: block; } .item .corps .s { font-size: .84rem; color: var(--texte-2); display: block; margin-top: .1rem; }
.item .chevron { color: var(--texte-3); }
.item.fait .t { text-decoration: line-through; color: var(--texte-3); }

/* ---------- Stepper ---------- */
.stepper { display: inline-flex; align-items: center; gap: .35rem; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gris-fond); color: var(--encre); display: grid; place-items: center; }
.stepper button.plus { background: var(--encre); color: #fff; }
.stepper button:active { transform: scale(.92); }
.stepper .valeur { min-width: 3.2rem; text-align: center; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; border: 0; background: transparent; padding: 0; }
.stepper .valeur.vide { color: var(--texte-3); }

/* ---------- Formulaires ---------- */
label { display: block; font-size: .84rem; color: var(--texte-2); margin-bottom: .3rem; font-weight: 600; }
.champ { margin-bottom: .85rem; }
input[type=text], input[type=number], input[type=time], input[type=date], input[type=password], input[type=tel], input[type=email], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: .6rem .9rem; border: 1.5px solid var(--ligne); border-radius: 14px; background: var(--surface); font-size: 16px; font-weight: 600; transition: border-color var(--rapide); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px var(--bleu-doux); }
textarea { min-height: 96px; font-weight: 500; }
input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--encre); vertical-align: middle; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; } .grille-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
.case { display: flex; align-items: center; gap: .6rem; min-height: 48px; }
.case label { margin: 0; color: var(--texte); font-size: 1rem; font-weight: 600; }
.recherche { position: relative; margin-bottom: .8rem; }
.recherche svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--texte-3); }
.recherche input { padding-left: 2.6rem; border-radius: var(--r-pilule); border-color: transparent; box-shadow: var(--ombre); }
.segment { display: flex; background: var(--gris-fond); border-radius: var(--r-pilule); padding: 4px; gap: 4px; }
.segment button { flex: 1; min-height: 42px; border: 0; border-radius: var(--r-pilule); background: transparent; font-weight: 700; color: var(--texte-2); }
.segment button.actif { background: var(--surface); color: var(--encre); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- Barre d'onglets ---------- */
.onglets { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding: 0 .4rem var(--safe-b); background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--ligne); display: flex; z-index: 10; }
.onglets a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--texte-2); font-size: .68rem; font-weight: 700; min-width: 48px; position: relative; }
.onglets a .rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background var(--rapide), color var(--rapide); }
.onglets a.actif { color: var(--encre); }
.onglets a.actif .rond { background: var(--encre); color: #fff; }
.onglets a .badge { position: absolute; top: 6px; left: calc(50% + 8px); background: var(--corail-fonce); color: #fff; font-size: .62rem; border-radius: 10px; padding: 0 5px; min-width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid #fff; }

/* ---------- Feuille du bas (remplace les modales) ---------- */
.modale-fond { position: fixed; inset: 0; background: rgba(17,17,17,.42); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fondu var(--rapide); }
@keyframes fondu { from { opacity: 0; } }
.modale { background: var(--surface); width: 100%; max-width: 620px; border-radius: 28px 28px 0 0; padding: .6rem 1.1rem calc(1.1rem + var(--safe-b)); max-height: 90vh; overflow: auto; animation: monte var(--doux); box-shadow: var(--ombre-forte); }
.modale::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--ligne); margin: 0 auto .9rem; }
.modale h3 { font-size: 1.2rem; font-weight: 800; }
@keyframes monte { from { transform: translateY(40px); opacity: .5; } }
@media (min-width: 760px) { .modale-fond { align-items: center; } .modale { border-radius: 28px; } .modale::before { display: none; } }

/* ---------- Connexion ---------- */
.connexion { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
.marque { font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; text-align: center; margin-bottom: .4rem; }
.marque span { color: var(--bleu); }
.choix-salariee { display: grid; gap: .7rem; margin-top: 1.4rem; }
.choix-salariee button { min-height: 72px; font-size: 1.15rem; font-weight: 800; border-radius: var(--r-carte); border: 0; box-shadow: var(--ombre); background: var(--surface); display: flex; align-items: center; gap: .9rem; padding: 0 1.1rem; text-align: left; }
.choix-salariee button:active { transform: scale(.985); }
.pin-points { display: flex; gap: 1rem; justify-content: center; margin: 1.2rem 0; }
.pin-points span { width: 16px; height: 16px; border-radius: 50%; background: var(--ligne); transition: background var(--rapide), transform var(--rapide); }
.pin-points span.plein { background: var(--encre); transform: scale(1.1); }
.clavier { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; max-width: 320px; margin: 0 auto; }
.clavier button { min-height: 68px; font-size: 1.6rem; font-weight: 800; border-radius: 50%; aspect-ratio: 1; border: 0; background: var(--surface); box-shadow: var(--ombre); justify-self: center; width: 78px; }
.clavier button:active { background: var(--encre); color: #fff; }
.erreur { color: var(--corail-fonce); background: var(--corail-doux); padding: .7rem .9rem; border-radius: 14px; margin: .5rem 0; font-weight: 600; }
.info { color: var(--bleu-fonce); background: var(--bleu-doux); padding: .7rem .9rem; border-radius: 14px; margin: .5rem 0; font-weight: 600; }
.succes { color: var(--vert); background: var(--vert-doux); padding: .7rem .9rem; border-radius: 14px; margin: .5rem 0; font-weight: 600; }

/* ---------- Aujourd'hui ---------- */
.bonjour { margin: .6rem 0 1.1rem; }
.bonjour h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); margin: 0; }
.bonjour .date { color: var(--texte-2); font-weight: 600; text-transform: capitalize; }
.resume-jour { font-weight: 700; margin-top: .35rem; color: var(--texte-2); }
.alerte-ligne { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 20px; text-decoration: none; color: var(--encre); font-weight: 700; margin-bottom: .55rem; }
.alerte-ligne.urgent { background: var(--corail-doux); } .alerte-ligne.urgent svg { color: var(--corail-fonce); }
.alerte-ligne.info { background: var(--bleu-doux); } .alerte-ligne.info svg { color: var(--bleu-fonce); }
.alerte-ligne .chevron { margin-left: auto; color: var(--texte-3); }
.hero-hoplunch { background: linear-gradient(135deg, #1A1C1F, #2A2E33); color: #fff; border-radius: 28px; padding: 1.15rem 1.2rem; box-shadow: var(--ombre); margin-bottom: .8rem; position: relative; overflow: hidden; }
.hero-hoplunch::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(141,181,128,.45), transparent 70%); }
.hero-hoplunch .gros-chiffre { font-size: 2.6rem; }
.hero-hoplunch .muet { color: #A1A6AE; }
.equipe-ligne { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; }
.equipe-ligne + .equipe-ligne { border-top: 1px solid var(--ligne); }
.note-passation { background: #FFF8D6; border-radius: 20px; padding: .85rem 1rem; margin-bottom: .55rem; box-shadow: var(--ombre); }
.note-passation .qui { font-size: .78rem; color: #8A7A2E; font-weight: 700; }

/* ---------- Stock ---------- */
.barre-progression { height: 8px; border-radius: 4px; background: var(--gris-fond); overflow: hidden; }
.barre-progression span { display: block; height: 100%; background: var(--bleu); border-radius: 4px; transition: width var(--doux); }
.ligne-stock { display: grid; grid-template-columns: 1fr auto; gap: .5rem .75rem; align-items: center; padding: .8rem 1rem; border-top: 1px solid var(--ligne); }
.ligne-stock:first-child { border-top: 0; }
.ligne-stock .nom { font-weight: 700; line-height: 1.25; }
.ligne-stock .detail { font-size: .8rem; color: var(--texte-2); margin-top: .1rem; }
.ligne-stock.comptee { background: linear-gradient(90deg, var(--vert-doux), transparent 60%); }
.ligne-stock .actions { display: flex; align-items: center; gap: .4rem; }
.btn-ok { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ligne); background: var(--surface); display: grid; place-items: center; color: var(--texte-3); }
.btn-ok.fait { background: var(--vert); border-color: var(--vert); color: #fff; }
.niveaux { display: flex; gap: .3rem; }
.niveaux button { min-height: 40px; padding: .25rem .75rem; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--surface); font-weight: 700; font-size: .85rem; }
.niveaux button.actif.ok { background: var(--vert); border-color: var(--vert); color: #fff; }
.niveaux button.actif.bas { background: var(--orange); border-color: var(--orange); color: #fff; }
.niveaux button.actif.vide { background: var(--corail-fonce); border-color: var(--corail-fonce); color: #fff; }
.etat { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.etat.vide { background: var(--corail-fonce); } .etat.bas { background: var(--orange); } .etat.ok { background: var(--vert); } .etat.inconnu { background: var(--ligne); }
.panier-sombre { background: #141517; color: #fff; border-radius: 28px; padding: 1.1rem; margin-bottom: .9rem; }
.panier-sombre .ligne-cmd { display: flex; align-items: center; gap: .7rem; padding: .65rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.panier-sombre .ligne-cmd:first-of-type { border-top: 0; }
.panier-sombre .muet { color: #9AA0A8; }
.panier-sombre .stepper button { background: #2A2D31; color: #fff; width: 38px; height: 38px; }
.panier-sombre .stepper button.plus { background: var(--bleu); color: var(--encre); }
.panier-sombre .stepper .valeur { font-size: 1.1rem; min-width: 2.2rem; color: #fff; }
.panier-sombre .btn { border-color: #fff; }

/* ---------- Hoplunch ---------- */
.carte-recette { display: flex; align-items: center; gap: .9rem; }
.visuel { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; flex: none; background: var(--matcha-doux); }
.visuel.mini { width: 42px; height: 42px; font-size: 1.4rem; border-radius: 14px; }
.visuel.grand { width: 84px; height: 84px; font-size: 2.6rem; border-radius: 24px; }
.fois { font-size: 2rem; font-weight: 800; margin-left: auto; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.colis { border: 2px dashed var(--ligne); border-radius: 22px; padding: .9rem 1rem; margin-bottom: .8rem; background: var(--surface); }
.colis.prete { border-style: solid; border-color: var(--vert); background: var(--vert-doux); }
.allergenes { display: flex; flex-wrap: wrap; gap: .3rem; }
.choix-allergenes { display: flex; flex-wrap: wrap; gap: .4rem; }
.choix-allergenes label { margin: 0; display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border: 1.5px solid var(--ligne); border-radius: 999px; font-size: .85rem; color: var(--encre); }
.choix-allergenes input { width: 18px; height: 18px; }
.mode-production { background: #0F1012; color: #fff; min-height: 100vh; }

/* ---------- Ateliers ---------- */
.carte-atelier { display: flex; gap: .9rem; }
.date-bloc { width: 58px; flex: none; border-radius: 18px; background: var(--ube-doux); color: #5B3E92; text-align: center; padding: .45rem 0; }
.date-bloc .j { font-size: 1.5rem; font-weight: 800; line-height: 1; } .date-bloc .m { font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.date-bloc.prive { background: var(--sable-doux); color: #8A5A1E; }
.jauge { height: 8px; border-radius: 4px; background: var(--gris-fond); overflow: hidden; margin-top: .4rem; }
.jauge span { display: block; height: 100%; background: var(--ube); border-radius: 4px; }
.jauge.pleine span { background: var(--vert); }
.etapes-demande { display: flex; gap: 4px; margin-top: .5rem; }
.etapes-demande span { flex: 1; height: 5px; border-radius: 3px; background: var(--ligne); }
.etapes-demande span.fait { background: var(--ube); }
.cal-mois { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-mois .jn { font-size: .7rem; font-weight: 800; color: var(--texte-3); text-align: center; padding: .2rem 0; }
.cal-mois .case-j { min-height: 54px; border-radius: 14px; background: var(--surface); padding: .3rem; font-size: .8rem; font-weight: 700; position: relative; border: 0; text-align: left; }
.cal-mois .case-j.hors { opacity: .35; } .cal-mois .case-j.auj { outline: 2px solid var(--encre); }
.cal-mois .case-j .pts { display: flex; gap: 3px; flex-wrap: wrap; margin-top: .25rem; }
.cal-mois .case-j .pts i { width: 7px; height: 7px; border-radius: 50%; background: var(--ube); }
.cal-mois .case-j .pts i.prive { background: var(--sable); }

/* ---------- Planning (existant, ré-habillé) ---------- */
.semaine-nav { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.semaine-nav .titre-sem { flex: 1; text-align: center; font-weight: 800; line-height: 1.25; }
.semaine-nav .btn.petit { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; box-shadow: var(--ombre); }
.grille-planning { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border-radius: var(--r-carte); box-shadow: var(--ombre); padding: .4rem; }
.grille-planning table { border-collapse: separate; border-spacing: 4px; min-width: 720px; width: 100%; }
.grille-planning th { font-size: .78rem; color: var(--texte-2); font-weight: 700; padding: .3rem .2rem; }
.grille-planning th.ferie { color: var(--corail-fonce); }
.grille-planning th .eff { display: block; font-weight: 600; } .grille-planning th .eff.manque { color: var(--corail-fonce); font-weight: 800; }
.grille-planning th .charge { display: block; margin-top: 2px; }
.grille-planning td { vertical-align: top; } .grille-planning td.nom { font-weight: 800; white-space: nowrap; font-size: .9rem; padding-right: .3rem; }
.cellule { min-height: 64px; border-radius: 16px; padding: .45rem .5rem; font-size: .8rem; line-height: 1.25; cursor: pointer; border: 2px solid transparent; background: var(--gris-fond); color: var(--texte-2); position: relative; font-weight: 600; transition: transform var(--rapide); }
.cellule:active { transform: scale(.96); }
.cellule.travail { color: #fff; }
.cellule.ecole { background: repeating-linear-gradient(135deg, var(--vert-doux), var(--vert-doux) 6px, #D3EEDF 6px, #D3EEDF 12px); color: var(--vert); }
.cellule.ferie { background: var(--corail-doux); color: var(--corail-fonce); }
.cellule.conge, .cellule.maladie { background: var(--orange-doux); color: var(--orange); }
.cellule.recup { background: var(--ube-doux); color: #5B2D91; border-color: #CDB8EE; }
.cellule.proposition { border-style: dashed; border-color: var(--encre); }
.cellule.selectionnee { outline: 3px solid var(--encre); outline-offset: -1px; }
.cellule.selectionnee::after { content: '✓'; position: absolute; top: 3px; right: 7px; font-weight: 800; color: var(--encre); }
.cellule .verrou { position: absolute; top: 3px; right: 6px; font-size: .75rem; }
.cellule .duree { font-weight: 800; display: block; font-size: .92rem; }
.mode-selection .cellule { cursor: copy; }
.barre-selection { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + .6rem); background: var(--encre); color: #fff; border-radius: var(--r-pilule); padding: .45rem .5rem .45rem 1.1rem; display: flex; gap: .5rem; align-items: center; margin-top: .7rem; z-index: 4; box-shadow: var(--ombre-forte); font-weight: 700; }
.barre-selection .btn { min-height: 40px; }
.legende { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .8rem; color: var(--texte-2); margin: .7rem 0; }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }
.alertes { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .9rem; }
.alerte { border-radius: 16px; padding: .65rem .9rem; font-size: .9rem; display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.alerte.blocage { background: var(--corail-doux); color: var(--corail-fonce); }
.alerte.avertissement { background: var(--orange-doux); color: var(--orange); }
.alerte.ok { background: var(--vert-doux); color: var(--vert); }
.alerte .btn { min-height: 36px; padding: .2rem .7rem; font-size: .84rem; background: #fff; }

/* Écrans salariée existants */
.jours { display: flex; flex-direction: column; gap: .55rem; }
.jour { background: var(--surface); border-radius: 20px; box-shadow: var(--ombre); padding: .8rem 1rem; display: grid; grid-template-columns: 4.6rem 1fr auto; gap: .6rem; align-items: center; }
.jour.aujourdhui { outline: 2px solid var(--encre); }
.jour.ecole { background: var(--vert-doux); } .jour.recup { background: var(--ube-doux); } .jour.repos { opacity: .7; }
.jour .d { font-weight: 800; line-height: 1.15; } .jour .d small { display: block; font-weight: 600; color: var(--texte-2); }
.jour .h { font-variant-numeric: tabular-nums; } .jour .ecart { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.total-bas { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + .6rem); }
.stat-rangee { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.stat-rangee .val { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-rangee .lib { font-size: .76rem; color: var(--texte-2); font-weight: 600; }
.pointage-bouton { width: min(76vw, 290px); height: min(76vw, 290px); border-radius: 50%; border: none; color: #fff; font-size: 1.6rem; font-weight: 800; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; margin: 1rem auto; box-shadow: var(--ombre-forte); }
.pointage-bouton.commencer { background: var(--encre); } .pointage-bouton.terminer { background: var(--corail-fonce); } .pointage-bouton.reprendre { background: var(--orange); } .pointage-bouton.fini { background: #9CA3AF; }
.compteur { font-size: 2.6rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau th, .tableau td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { color: var(--texte-2); font-weight: 700; font-size: .8rem; }
.tableau td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pointage-ligne { display: grid; grid-template-columns: 24px 1fr auto; gap: .6rem; align-items: center; }
.etapes { display: flex; gap: .4rem; margin-bottom: 1rem; } .etapes span { flex: 1; height: 6px; border-radius: 3px; background: var(--ligne); } .etapes span.fait { background: var(--encre); }
.horaires-jour { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr 1fr; gap: .4rem; align-items: center; margin-bottom: .4rem; font-size: .9rem; }
.horaires-jour input, .horaires-jour select { min-height: 44px; padding: .3rem .5rem; }
@media (max-width: 480px) { .horaires-jour { grid-template-columns: 1fr 1fr; } .horaires-jour.entete-h { display: none; } .horaires-jour .nomj { grid-column: 1 / -1; font-weight: 800; margin-top: .4rem; } }
details > summary { cursor: pointer; font-weight: 700; list-style: none; } details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ' ›'; color: var(--texte-3); } details[open] > summary::after { content: ' ⌄'; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 14px); background: var(--encre); color: #fff; padding: .7rem 1.2rem; border-radius: var(--r-pilule); z-index: 30; font-size: .92rem; font-weight: 700; box-shadow: var(--ombre-forte); max-width: 90vw; animation: monte var(--doux); }
.chargement { padding: 1rem 0; }
.squelette { height: 84px; border-radius: var(--r-carte); background: linear-gradient(90deg, #ECEEF1, #F6F7F9, #ECEEF1); background-size: 200% 100%; animation: luire 1.2s infinite; margin-bottom: .8rem; }
@keyframes luire { to { background-position: -200% 0; } }
.vide-etat { text-align: center; padding: 2rem 1rem; color: var(--texte-2); }
.vide-etat .ico-module { margin: 0 auto .8rem; width: 64px; height: 64px; border-radius: 22px; }
@media print {
  body { background: #fff; padding: 0; } .entete, .onglets, .no-print, .action-bas { display: none !important; }
  .carte, .colis, .liste { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .etiquettes { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; } .etiquette { border: 1px solid #000; padding: 3mm; font-size: 9pt; break-inside: avoid; }
}
.etiquette { border: 1.5px solid var(--encre); border-radius: 12px; padding: .7rem .8rem; font-size: .85rem; background: #fff; }
.etiquette .t { font-weight: 800; font-size: 1rem; } .etiquette .alg { font-weight: 800; text-transform: uppercase; }
.etiquettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }

@media (max-width: 420px) {
  .ligne-stock { padding: .7rem .75rem; gap: .4rem .5rem; }
  .ligne-stock .stepper button { width: 40px; height: 40px; }
  .ligne-stock .stepper .valeur { min-width: 2.4rem; font-size: 1.15rem; }
  .ligne-stock .btn-ok { width: 40px; height: 40px; }
  .ligne-stock .niveaux button { padding: .25rem .6rem; }
}

/* --- corrections test complet (16/10/2026) --- */
.modale { position: relative; max-height: 88dvh; }
.btn-fermer { position: absolute; top: .55rem; right: .6rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gris-fond); color: var(--texte-2); display: grid; place-items: center; z-index: 2; }
.modale h3 { padding-right: 2.6rem; }
.barre-selection { flex-wrap: wrap; }
.barre-selection .espace { min-width: 0; }
@media (max-width: 420px) { .barre-selection .espace { flex: 1 1 100%; } .barre-selection .btn { flex: 1 1 auto; } }
.grille-planning td.nom { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.grille-planning th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
@media (max-width: 480px) { .grille-3 { grid-template-columns: 1fr 1fr; } .grille-3 > .champ:last-child:nth-child(3) { grid-column: 1 / -1; } }
input, select, textarea { min-width: 0; max-width: 100%; }
.cible-44 { min-height: 44px; display: inline-flex; align-items: center; }
