/* ==========================================================================
   CHAN BRA — Design system « premium »
   Cible : tablette 10 pouces, utilisateurs débutants.
   Règles : tout est GROS et lisible, une action = un bouton,
            icônes vectorielles (aucun emoji), palette orange / blanc / gris.
   ========================================================================== */

:root {
    --orange:        #F07800;
    --orange-clair:  #FFA23D;
    --orange-fonce:  #C85E00;
    --orange-voile:  #FFF4E8;
    --or:            #C9A227;

    --blanc:         #FFFFFF;
    --fond:          #F6F7F9;
    --gris-clair:    #EFF1F4;
    --bordure:       #E3E7EC;
    --gris-moyen:    #9AA6B1;
    --gris-doux:     #6B7A86;
    --gris-texte:    #2F3A42;
    --encre:         #1B2429;

    --vert:          #1F7A45;
    --vert-clair:    #34A264;
    --vert-voile:    #E9F6EE;
    --rouge:         #C0392B;
    --rouge-voile:   #FCEDEB;
    --bleu:          #12658F;
    --bleu-voile:    #E8F3F9;

    --rayon:    18px;
    --rayon-l:  24px;
    --rayon-xl: 30px;

    --ombre-douce: 0 1px 2px rgba(27,36,41,.04), 0 4px 16px rgba(27,36,41,.06);
    --ombre:       0 2px 4px rgba(27,36,41,.04), 0 10px 30px rgba(27,36,41,.09);
    --ombre-forte: 0 24px 60px rgba(27,36,41,.26);
    --transition:  .22s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0; padding: 0; min-height: 100%;
    font-family: "Inter", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    color: var(--gris-texte);
    background: var(--fond);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overscroll-behavior: none;
}

h1, h2, h3 { margin: 0 0 10px; font-weight: 750; letter-spacing: -.5px; color: var(--encre); }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p  { line-height: 1.65; }

/* ---------- Icônes ---------- */
.ico-svg { display: block; flex: none; }
.chip-ico {
    width: 52px; height: 52px; border-radius: 15px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--orange-voile); color: var(--orange);
}
.chip-ico.vert  { background: var(--vert-voile);  color: var(--vert); }
.chip-ico.bleu  { background: var(--bleu-voile);  color: var(--bleu); }
.chip-ico.rouge { background: var(--rouge-voile); color: var(--rouge); }
.chip-ico.gris  { background: var(--gris-clair);  color: var(--gris-doux); }
.chip-ico.petit { width: 42px; height: 42px; border-radius: 12px; }

/* ---------- Boutons ---------- */
.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 64px; padding: 0 26px;
    font-size: 19px; font-weight: 700; font-family: inherit; letter-spacing: -.2px;
    border: none; border-radius: var(--rayon); cursor: pointer;
    background: var(--gris-clair); color: var(--encre);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none; user-select: none; white-space: nowrap;
}
.bouton:hover  { transform: translateY(-2px); }
.bouton:active { transform: translateY(0) scale(.97); }
.bouton:disabled, .bouton.desactive { opacity: .4; pointer-events: none; box-shadow: none; }

.bouton-orange {
    background: linear-gradient(160deg, var(--orange-clair) -20%, var(--orange) 55%, var(--orange-fonce) 130%);
    color: #fff; box-shadow: 0 6px 18px rgba(240,120,0,.28);
}
.bouton-orange:hover { box-shadow: 0 10px 26px rgba(240,120,0,.36); }
.bouton-vert {
    background: linear-gradient(160deg, var(--vert-clair) -10%, var(--vert) 100%);
    color: #fff; box-shadow: 0 6px 18px rgba(31,122,69,.26);
}
.bouton-vert:hover { box-shadow: 0 10px 26px rgba(31,122,69,.34); }
.bouton-rouge {
    background: linear-gradient(160deg, #E15E4F, var(--rouge));
    color: #fff; box-shadow: 0 6px 18px rgba(192,57,43,.24);
}
.bouton-blanc {
    background: #fff; color: var(--encre);
    border: 2px solid var(--bordure); box-shadow: var(--ombre-douce);
}
.bouton-blanc:hover { border-color: var(--orange-clair); color: var(--orange-fonce); }

.bouton-grand { min-height: 82px; font-size: 22px; padding: 0 34px; width: 100%; }
.bouton-geant { min-height: 104px; font-size: 27px; border-radius: var(--rayon-l); width: 100%; }
.bouton-icone { min-width: 62px; min-height: 62px; padding: 0 16px; }

/* ---------- Champs de formulaire ---------- */
.champ { margin-bottom: 24px; }
.champ label {
    display: flex; align-items: center; gap: 10px;
    font-size: 19px; font-weight: 700; color: var(--encre); margin-bottom: 10px;
}
.champ .aide-champ {
    background: var(--orange-voile); border: none; border-radius: 12px;
    width: 42px; height: 42px; cursor: pointer; color: var(--orange);
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition); flex: none;
}
.champ .aide-champ:hover { background: var(--orange); color: #fff; transform: scale(1.06); }
.champ .indice { font-size: 15px; color: var(--gris-moyen); margin-top: 8px; display: block; font-weight: 600; }

input[type=text], input[type=number], input[type=tel], input[type=date],
input[type=password], input[type=file], select, textarea {
    width: 100%; min-height: 64px; padding: 14px 18px;
    font-size: 21px; font-family: inherit; font-weight: 600; color: var(--encre);
    background: #fff; border: 2px solid var(--bordure); border-radius: 14px;
    transition: var(--transition); outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,120,0,.14);
}
input[type=file] { padding: 16px; background: var(--gris-clair); border-style: dashed; font-size: 17px; }
textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
select {
    appearance: none; padding-right: 52px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gris-doux) 50%),
        linear-gradient(135deg, var(--gris-doux) 50%, transparent 50%);
    background-position: calc(100% - 26px) 29px, calc(100% - 19px) 29px;
    background-size: 7px 7px; background-repeat: no-repeat;
}

/* ---------- Cartes ---------- */
.carte {
    background: #fff; border-radius: var(--rayon-l); padding: 26px;
    border: 1px solid var(--bordure); box-shadow: var(--ombre-douce);
}
.carte + .carte { margin-top: 20px; }
.carte-titre { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.carte-titre h3 { margin: 0; }

/* ---------- Structure ---------- */
.app { display: flex; min-height: 100vh; }

.menu-lateral {
    width: 124px; flex-shrink: 0;
    background: linear-gradient(180deg, #232D34 0%, #161E23 100%);
    display: flex; flex-direction: column; align-items: center;
    padding: 18px 0 14px; gap: 6px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    box-shadow: inset -1px 0 0 rgba(255,255,255,.06);
}
.menu-lateral::-webkit-scrollbar { width: 0; }
.menu-logo {
    width: 68px; height: 68px; border-radius: 20px; margin-bottom: 16px; color: #fff;
    background: linear-gradient(150deg, var(--orange-clair), var(--orange-fonce));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(240,120,0,.42);
}
.menu-item {
    width: 100px; padding: 13px 4px; border-radius: 16px; border: none; background: transparent;
    color: #94A3AD; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 700; font-family: inherit; letter-spacing: .1px;
    transition: var(--transition);
}
.menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu-item.actif {
    background: linear-gradient(150deg, var(--orange-clair), var(--orange-fonce));
    color: #fff; box-shadow: 0 6px 18px rgba(240,120,0,.38);
}

.zone { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.barre-haut {
    height: 88px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: 18px; padding: 0 26px;
    border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 40;
}
.barre-haut h2 { margin: 0; }
.barre-haut .espace { flex: 1; }
.profil { display: flex; align-items: center; gap: 12px; }
.profil-rond {
    width: 46px; height: 46px; border-radius: 50%; flex: none;
    background: var(--gris-clair); color: var(--gris-doux);
    display: flex; align-items: center; justify-content: center;
}
.pastille-caisse {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 20px; border-radius: 999px; font-weight: 750; font-size: 16px;
}
.pastille-caisse.ouverte { background: var(--vert-voile); color: var(--vert); }
.pastille-caisse.fermee  { background: var(--rouge-voile); color: var(--rouge); }
.contenu { padding: 26px; flex: 1; }

/* ---------- Tuiles du point de vente ---------- */
.grille-pos { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 16px; }
.tuile {
    background: #fff; border-radius: var(--rayon-l); overflow: hidden; cursor: pointer;
    border: 1px solid var(--bordure); box-shadow: var(--ombre-douce);
    transition: var(--transition); text-align: left; padding: 0; font-family: inherit; position: relative;
}
.tuile:hover  { transform: translateY(-5px); box-shadow: var(--ombre); border-color: var(--orange-clair); }
.tuile:active { transform: scale(.96); }
.tuile.flash  { animation: flash .5s; }
@keyframes flash {
    0%   { box-shadow: 0 0 0 0 rgba(52,162,100,.5); border-color: var(--vert-clair); }
    60%  { box-shadow: 0 0 0 14px rgba(52,162,100,0); border-color: var(--vert-clair); }
    100% { box-shadow: var(--ombre-douce); }
}
.tuile-image {
    height: 126px; background: linear-gradient(160deg, #FAFBFC, var(--gris-clair));
    display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--orange);
}
.tuile-image img { width: 100%; height: 100%; object-fit: cover; }
.tuile-corps { padding: 14px 16px 18px; }
.tuile-nom { font-size: 17px; font-weight: 750; color: var(--encre); line-height: 1.3; min-height: 44px; }
.tuile-prix { font-size: 23px; font-weight: 800; color: var(--orange-fonce); margin-top: 6px; letter-spacing: -.5px; }
.tuile-stock { font-size: 14px; color: var(--gris-moyen); margin-top: 4px; font-weight: 700; }
.tuile.rupture { opacity: .5; pointer-events: none; filter: grayscale(1); }
.tuile .badge-rupture {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(192,57,43,.78); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: 1px;
}

/* ---------- Panier ---------- */
.pos { display: grid; grid-template-columns: 1fr 396px; gap: 22px; align-items: start; }
.panier {
    background: #fff; border-radius: var(--rayon-l); border: 1px solid var(--bordure);
    box-shadow: var(--ombre); position: sticky; top: 114px; overflow: hidden;
}
.panier-entete {
    background: linear-gradient(150deg, #2A343B, #161E23); color: #fff;
    padding: 20px 24px; font-size: 20px; font-weight: 750; display: flex; align-items: center; gap: 12px;
}
.panier-liste { max-height: 42vh; overflow-y: auto; }
.panier-ligne { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--bordure); }
.panier-ligne .nom { flex: 1; font-weight: 700; font-size: 16px; color: var(--encre); }
.panier-ligne .pu { font-size: 13.5px; color: var(--gris-moyen); display: block; font-weight: 600; }
.bt-qte {
    width: 50px; height: 50px; border-radius: 14px; border: none; flex: none;
    background: var(--gris-clair); color: var(--encre); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: var(--transition);
}
.bt-qte:hover  { background: var(--orange-voile); color: var(--orange); }
.bt-qte:active { transform: scale(.9); }
.qte { min-width: 44px; text-align: center; font-size: 23px; font-weight: 800; }
.panier-total { padding: 22px 24px; background: var(--orange-voile); }
.panier-total .libelle { font-size: 16px; font-weight: 700; color: var(--orange-fonce); }
.panier-total .montant { font-size: 42px; font-weight: 800; color: var(--encre); line-height: 1.1; letter-spacing: -1.5px; }
.panier-vide { padding: 44px 24px; text-align: center; color: var(--gris-moyen); font-size: 17px; font-weight: 700; line-height: 1.6; }
.panier-actions { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Statistiques ---------- */
.grille-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(244px, 1fr)); gap: 18px; }
.stat {
    background: #fff; border-radius: var(--rayon-l); padding: 24px;
    border: 1px solid var(--bordure); box-shadow: var(--ombre-douce);
    position: relative; overflow: hidden; animation: monte .5s both;
}
.stat::after {
    content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--orange);
}
.stat.vert::after { background: var(--vert); }
.stat.bleu::after { background: var(--bleu); }
.stat.or::after   { background: var(--or); }
.stat .valeur  { font-size: 34px; font-weight: 800; color: var(--encre); line-height: 1.2; letter-spacing: -1px; margin-top: 14px; }
.stat .libelle { font-size: 15.5px; font-weight: 700; color: var(--gris-doux); margin-top: 6px; }
.stat .sous    { font-size: 14px; color: var(--gris-moyen); font-weight: 700; margin-top: 3px; }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Tableaux ---------- */
.tableau {
    width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
    border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bordure);
}
.tableau th {
    background: #FAFBFC; color: var(--gris-doux); text-align: left; padding: 16px;
    font-size: 14px; font-weight: 750; text-transform: uppercase; letter-spacing: .6px;
    border-bottom: 1px solid var(--bordure); white-space: nowrap;
}
.tableau td { padding: 16px; border-bottom: 1px solid var(--bordure); font-size: 17px; font-weight: 600; color: var(--gris-texte); }
.tableau tr:last-child td { border-bottom: none; }
.tableau tbody tr:hover td, .tableau tr:hover td { background: #FCFDFD; }
.tableau .num { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--encre); }
.tableau .mini-photo { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--gris-clair); display: block; }
.cellule-produit { display: flex; align-items: center; gap: 12px; }
.table-scroll { overflow-x: auto; border-radius: var(--rayon); }

/* ---------- Alertes et puces ---------- */
.alerte {
    padding: 20px 22px; border-radius: var(--rayon); font-size: 17.5px; font-weight: 650;
    margin-bottom: 20px; display: flex; align-items: center; gap: 16px; line-height: 1.55;
}
.alerte .chip-ico { background: rgba(255,255,255,.65); }
.alerte-orange { background: var(--orange-voile); color: var(--orange-fonce); box-shadow: inset 4px 0 0 var(--orange); }
.alerte-rouge  { background: var(--rouge-voile);  color: var(--rouge);        box-shadow: inset 4px 0 0 var(--rouge); }
.alerte-vert   { background: var(--vert-voile);   color: var(--vert);         box-shadow: inset 4px 0 0 var(--vert); }
.alerte-bleu   { background: var(--bleu-voile);   color: var(--bleu);         box-shadow: inset 4px 0 0 var(--bleu); }
.alerte strong { font-weight: 800; }

.puce { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 750; letter-spacing: .2px; }
.puce-vert   { background: var(--vert-voile);   color: var(--vert); }
.puce-rouge  { background: var(--rouge-voile);  color: var(--rouge); }
.puce-orange { background: var(--orange-voile); color: var(--orange-fonce); }

.rangee { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rangee-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rangee-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.centre { text-align: center; }
.mt { margin-top: 20px; } .mb { margin-bottom: 20px; }

/* ---------- Fenêtre modale ---------- */
.voile {
    position: fixed; inset: 0; background: rgba(27,36,41,.55); backdrop-filter: blur(5px);
    z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fondu .18s;
}
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.modale {
    background: #fff; border-radius: var(--rayon-xl); width: 100%; max-width: 600px;
    max-height: 92vh; overflow-y: auto; box-shadow: var(--ombre-forte);
    animation: surgit .28s cubic-bezier(.34, 1.4, .64, 1);
}
.modale.large { max-width: 940px; }
@keyframes surgit { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.modale-entete { padding: 22px 26px; border-bottom: 1px solid var(--bordure); display: flex; align-items: center; gap: 14px; }
.modale-entete h2 { margin: 0; }
.modale-corps { padding: 26px; }
.modale-pied { padding: 18px 26px 26px; display: flex; gap: 14px; }
.modale-pied .bouton { flex: 1; }

/* ---------- Bulle d'aide (personne qui lève la main) ---------- */
.aide-bulle {
    position: fixed; right: 26px; bottom: 26px; z-index: 80;
    width: 88px; height: 88px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(150deg, var(--orange-clair), var(--orange-fonce));
    color: #fff; box-shadow: 0 12px 30px rgba(240,120,0,.45);
    display: flex; align-items: center; justify-content: center;
    animation: pulseAide 2.6s infinite;
}
.aide-bulle .main { display: inline-flex; animation: leveMain 2.6s infinite; transform-origin: 60% 85%; }
@keyframes leveMain {
    0%, 62%, 100% { transform: rotate(0); }
    70% { transform: rotate(-14deg); }
    80% { transform: rotate(11deg); }
    90% { transform: rotate(-7deg); }
}
@keyframes pulseAide {
    0%   { box-shadow: 0 12px 30px rgba(240,120,0,.45), 0 0 0 0 rgba(240,120,0,.4); }
    70%  { box-shadow: 0 12px 30px rgba(240,120,0,.45), 0 0 0 24px rgba(240,120,0,0); }
    100% { box-shadow: 0 12px 30px rgba(240,120,0,.45), 0 0 0 0 rgba(240,120,0,0); }
}
.aide-bulle .etiquette {
    position: absolute; right: 102px; white-space: nowrap;
    background: var(--encre); color: #fff; font-size: 15px; font-weight: 750;
    padding: 11px 16px; border-radius: 12px; box-shadow: var(--ombre);
}
.aide-texte { font-size: 23px; line-height: 1.75; font-weight: 550; color: var(--gris-texte); }
.parle .aide-bulle { animation: pulseAide 1s infinite; }

/* ---------- Notifications parlantes ---------- */
.pile-notif { position: fixed; top: 104px; right: 26px; z-index: 95; display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.notif {
    background: #fff; border-radius: var(--rayon); padding: 16px 20px;
    box-shadow: var(--ombre-forte); border: 1px solid var(--bordure);
    display: flex; gap: 14px; align-items: center; animation: glisse .3s;
    font-weight: 650; font-size: 16.5px; line-height: 1.5; cursor: pointer;
}
.notif-rond {
    width: 44px; height: 44px; border-radius: 13px; flex: none;
    background: var(--orange-voile); color: var(--orange);
    display: flex; align-items: center; justify-content: center;
}
.notif.succes .notif-rond { background: var(--vert-voile); color: var(--vert); }
.notif.danger .notif-rond { background: var(--rouge-voile); color: var(--rouge); }
@keyframes glisse { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }

/* ---------- Connexion ---------- */
.page-connexion {
    background: radial-gradient(120% 120% at 15% 0%, #2E3A42 0%, #1B2429 55%, #23191122 100%), #1B2429;
    display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px;
}
.boite-connexion {
    background: #fff; border-radius: 32px; padding: 42px; width: 100%; max-width: 500px;
    box-shadow: 0 40px 90px rgba(0,0,0,.45); text-align: center;
}
.boite-connexion h1 { font-size: 27px; letter-spacing: -.6px; }
.boite-connexion .logo {
    width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 28px; color: #fff;
    background: linear-gradient(150deg, var(--orange-clair), var(--orange-fonce));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 34px rgba(240,120,0,.42);
}
.ecran-pin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.touche {
    height: 78px; border-radius: 18px; border: none; background: var(--gris-clair);
    font-size: 29px; font-weight: 750; font-family: inherit; color: var(--encre);
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.touche:hover  { background: var(--orange-voile); color: var(--orange-fonce); }
.touche:active { transform: scale(.93); background: var(--orange); color: #fff; }
.touche.action { background: #E7EBEF; color: var(--gris-doux); }
.affichage-pin { display: flex; justify-content: center; gap: 16px; margin: 24px 0; }
.point-pin { width: 22px; height: 22px; border-radius: 50%; background: transparent; border: 2.5px solid var(--gris-moyen); transition: var(--transition); }
.point-pin.plein { background: var(--orange); border-color: var(--orange); transform: scale(1.2); }
.saisie-numero { font-size: 30px !important; text-align: center; letter-spacing: 3px; min-height: 78px !important; }

/* ---------- Installation ---------- */
.page-install { padding: 40px 20px; background: var(--fond); }
.install-boite { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--rayon-xl); padding: 40px; box-shadow: var(--ombre); border: 1px solid var(--bordure); }
.liste-install { columns: 2; font-size: 14.5px; color: var(--gris-doux); line-height: 1.9; }

/* ---------- Chargement ---------- */
.chargement { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px; gap: 18px; color: var(--gris-moyen); font-weight: 700; }
.roue { width: 56px; height: 56px; border: 5px solid var(--gris-clair); border-top-color: var(--orange); border-radius: 50%; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Animations d'entrée ---------- */
.anim-entree > * { animation: monte .45s both; }
.anim-entree > *:nth-child(2) { animation-delay: .05s; }
.anim-entree > *:nth-child(3) { animation-delay: .1s; }
.anim-entree > *:nth-child(4) { animation-delay: .15s; }
.anim-entree > *:nth-child(5) { animation-delay: .2s; }

/* ---------- Tablette et petits écrans ---------- */
@media (max-width: 1100px) {
    .pos { grid-template-columns: 1fr; }
    .panier { position: static; }
    .rangee-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
    .menu-lateral { width: 92px; }
    .menu-item { width: 78px; font-size: 11px; }
    .rangee-2, .rangee-3 { grid-template-columns: 1fr; }
    .grille-pos { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
    .contenu { padding: 18px; }
}

/* ---------- Impression du ticket 80 mm ---------- */
@media print {
    body * { visibility: hidden; }
    #ticket, #ticket * { visibility: visible; }
    #ticket { position: absolute; left: 0; top: 0; width: 80mm; font-family: "Courier New", monospace; color: #000; }
    .aide-bulle, .pile-notif { display: none !important; }
}
#ticket { display: none; }
#ticket.pret { display: block; }
.ticket-papier { width: 80mm; padding: 6mm 4mm; font-family: "Courier New", monospace; font-size: 12px; }
.ticket-papier h3 { text-align: center; font-size: 15px; margin: 0 0 6px; }
.ticket-papier table { width: 100%; border-collapse: collapse; }
.ticket-papier td { padding: 2px 0; font-size: 12px; }
.ticket-papier .sep { border-top: 1px dashed #000; margin: 6px 0; }
.ticket-papier .tot { font-size: 15px; font-weight: bold; }
