/* Carton Plein — un entrepôt de carton, de scotch et d'étiquettes d'expédition.
   Mise en page : application d'une seule colonne, bandeau-scotch en haut, barre d'onglets en bas. */
:root {
  --kraft: #c69c62;
  --kraft-clair: #dcbb86;
  --kraft-fonce: #9a7240;
  --kraft-ombre: #7a5830;
  --etiquette: #fbf8ef;
  --encre: #221b13;
  --encre-douce: #5d5244;
  --rouge: #cf3427;
  --bleu: #1d5bb8;
  --vert: #24804a;
  --orange: #d9822b;
  --scotch: rgba(233, 214, 168, 0.72);
  --ligne: rgba(34, 27, 19, 0.16);
  --f-titre: 'Big Shoulders Stencil Display', 'Arial Narrow', Impact, sans-serif;
  --f-texte: 'Barlow Semi Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --f-chiffre: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--kraft-fonce); color: var(--encre);
  font-family: var(--f-texte); font-size: 16px; line-height: 1.35;
  overflow: hidden; overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.chiffre { font-family: var(--f-chiffre); font-variant-numeric: tabular-nums; }

/* ---------- Cadre de l'application ---------- */
#app {
  height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column;
  background-color: var(--kraft);
  background-image:
    repeating-linear-gradient(90deg, rgba(122, 88, 48, 0.07) 0 2px, transparent 2px 7px),
    radial-gradient(circle at 20% 10%, rgba(255, 240, 210, 0.25), transparent 60%);
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 0 60px rgba(0,0,0,.25);
}
.gouttiere { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- En-tête (bande de scotch) ---------- */
#entete { flex: none; background: var(--encre); color: var(--etiquette); }
#entete .gouttiere { padding-block: 8px 10px; display: grid; gap: 8px; min-width: 0; }
.ligne-date { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ligne-date .date { font-family: var(--f-chiffre); font-size: 12px; letter-spacing: .02em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vitesses { display: flex; gap: 3px; flex: none; }
.vitesses button, .btn-icone {
  border: 1px solid rgba(251,248,239,.25); background: transparent; color: var(--etiquette);
  border-radius: 6px; min-width: 32px; height: 32px; font-size: 12px; font-weight: 700; padding: 0 4px; flex: none; letter-spacing: -2px;
}
.vitesses button[aria-pressed="true"] { background: var(--kraft-clair); color: var(--encre); border-color: var(--kraft-clair); }
.jauges { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,.9fr); gap: 5px; }
.jauge { background: rgba(251,248,239,.08); border-radius: 6px; padding: 4px 7px; min-width: 0; }
.jauge .lib { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.jauge .val { font-family: var(--f-chiffre); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jauge .val.neg { color: #ff8a7a; }
.barre { height: 5px; background: rgba(251,248,239,.18); border-radius: 3px; overflow: hidden; margin-top: 3px; }
.barre i { display: block; height: 100%; background: var(--vert); border-radius: 3px; transition: width .3s; }
.barre i.bas { background: var(--orange); } .barre i.critique { background: var(--rouge); }
.scotch-bande { height: 10px; background: var(--scotch); border-top: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.12); }

/* ---------- Zone principale ---------- */
#principal { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
#principal .gouttiere { padding-block: 14px 24px; display: grid; gap: 14px; }
h2.titre-section {
  margin: 4px 0 -4px; font-family: var(--f-titre); font-weight: 800; font-size: 26px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--encre); text-wrap: balance; line-height: 1;
}
.sous { font-size: 14px; color: var(--encre-douce); }

/* ---------- Étiquette (carte) ---------- */
.etiq {
  background: var(--etiquette); border-radius: 4px; padding: 12px 14px; position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 3px 10px rgba(80,55,20,.18); min-width: 0;
}
.etiq h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.etiq p { margin: 0; }
.etiq .meta { font-size: 13px; color: var(--encre-douce); }
.etiq.bord-rouge { border-left: 5px solid var(--rouge); }
.etiq.bord-vert { border-left: 5px solid var(--vert); }
.etiq.bord-orange { border-left: 5px solid var(--orange); }
.tampon {
  display: inline-block; font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--rouge); border: 2px solid var(--rouge); border-radius: 3px; padding: 0 6px; font-size: 13px; transform: rotate(-3deg);
}
.tampon.vert { color: var(--vert); border-color: var(--vert); }
.tampon.bleu { color: var(--bleu); border-color: var(--bleu); }

/* ---------- Boutons ---------- */
.btn {
  border: 2px solid var(--encre); background: var(--encre); color: var(--etiquette); border-radius: 6px;
  padding: 9px 14px; font-weight: 700; font-size: 15px; min-height: 42px; line-height: 1.15;
}
.btn.clair { background: var(--etiquette); color: var(--encre); }
.btn.rouge { background: var(--rouge); border-color: var(--rouge); }
.btn.vert { background: var(--vert); border-color: var(--vert); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn.petit { min-height: 34px; padding: 5px 10px; font-size: 14px; }
.btn.large { width: 100%; }
.segments { display: flex; border: 2px solid var(--encre); border-radius: 6px; overflow: hidden; }
.segments button { flex: 1; border: 0; border-right: 1px solid var(--ligne); background: var(--etiquette); padding: 7px 2px; font-size: 13px; font-weight: 600; min-height: 36px; min-width: 0; }
.segments button:last-child { border-right: 0; }
.segments button[aria-pressed="true"] { background: var(--encre); color: var(--etiquette); }

/* ---------- Scène : l'entrepôt ---------- */
.scene {
  position: relative; height: 260px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(#e9dcc0 0 62%, #8f6a3d 62% 64%, #b88f5a 64%);
  box-shadow: inset 0 0 0 2px rgba(34,27,19,.25);
}
.etageres { position: absolute; left: 10px; top: 10px; width: 46%; display: grid; gap: 4px; }
.etagere { position: relative; height: 24px; border-bottom: 4px solid var(--kraft-ombre); display: flex; align-items: flex-end; gap: 2px; padding-left: 26px; }
.etagere .ico { position: absolute; left: 0; bottom: 2px; font-size: 16px; }
.boite { width: 13px; height: 14px; background: var(--kraft); border: 1px solid var(--kraft-ombre); border-radius: 1px; position: relative; flex: none; }
.boite::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--scotch); }
.boite.grande { height: 18px; width: 15px; }
.etagere .vide { font-size: 11px; color: var(--rouge); font-weight: 700; margin-bottom: 2px; }
.ecran {
  position: absolute; right: 12px; top: 14px; width: 40%; background: var(--encre); color: #9ef0b2;
  border-radius: 5px 5px 2px 2px; padding: 6px 8px; font-family: var(--f-chiffre); font-size: 11px; line-height: 1.35;
  box-shadow: 0 6px 0 -2px #444, 0 8px 0 -2px #222;
}
.ecran b { color: #fff; font-weight: 600; }
.pile {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-60%); width: 138px; height: 108px;
  border: 0; background: transparent; padding: 0; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center; gap: 2px;
}
.pile .colis { width: 30px; height: 22px; background: var(--kraft); border: 1px solid var(--kraft-ombre); border-radius: 2px; position: relative; }
.pile .colis::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 5px; background: var(--scotch); }
.pile .colis.f::after { content: 'FRAGILE'; position: absolute; left: 1px; bottom: 1px; font-size: 5px; font-weight: 800; color: var(--rouge); letter-spacing: .02em; }
.pile .plus { position: absolute; bottom: 70px; right: -14px; background: var(--rouge); color: #fff; font-family: var(--f-chiffre); font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.pile .vide-txt { align-self: flex-end; font-size: 12px; color: var(--encre-douce); text-align: center; width: 100%; }
.pile .chat { width: 30px; height: 24px; font-size: 22px; line-height: 24px; text-align: center; }
.pile:active { transform: translateX(-60%) scale(.96); }
.tape-hint { position: absolute; left: 50%; bottom: 4px; transform: translateX(-60%); font-size: 11px; font-weight: 700; color: var(--encre); background: var(--scotch); padding: 1px 8px; border-radius: 3px; white-space: nowrap; }
.camion { position: absolute; bottom: 12px; right: 8px; width: 112px; height: 58px; transition: none; }
.camion.roule { animation: camion 1.6s ease-in-out; }
@keyframes camion { 0% { right: 8px; } 45% { right: 110%; } 45.1% { right: -150px; } 100% { right: 8px; } }
.camion .caisse { position: absolute; left: 0; bottom: 12px; width: 76px; height: 42px; border-radius: 4px 2px 2px 4px; background: var(--couleur-camion, #f2c230); border: 2px solid var(--encre); }
.camion .cabine { position: absolute; left: 74px; bottom: 12px; width: 36px; height: 32px; border-radius: 2px 12px 3px 2px; background: var(--couleur-camion, #f2c230); border: 2px solid var(--encre); }
.camion .cabine::after { content: ''; position: absolute; right: 4px; top: 5px; width: 13px; height: 11px; background: #bfe1f2; border-radius: 1px 7px 1px 1px; }
.camion .roue { position: absolute; bottom: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--encre); border: 4px solid #777; }
.camion .roue.r1 { left: 10px; } .camion .roue.r2 { left: 82px; }
.camion .logo { position: absolute; left: 6px; top: 10px; font-family: var(--f-titre); font-size: 13px; font-weight: 800; color: var(--encre); letter-spacing: .03em; white-space: nowrap; }
.bulle {
  position: absolute; pointer-events: none; font-family: var(--f-chiffre); font-weight: 700; font-size: 14px; color: var(--vert);
  background: var(--etiquette); border-radius: 10px; padding: 1px 7px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
  animation: bulle 1.4s ease-out forwards; white-space: nowrap; z-index: 3;
}
.bulle.rouge { color: var(--rouge); }
@keyframes bulle { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }
.vacances-voile { position: absolute; inset: 0; background: rgba(34,27,19,.55); color: var(--etiquette); display: grid; place-items: center; text-align: center; font-family: var(--f-titre); font-size: 28px; font-weight: 800; text-transform: uppercase; z-index: 2; }

/* ---------- Chiffres du jour ---------- */
.du-jour { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.du-jour > div { background: var(--etiquette); border-radius: 4px; padding: 6px 8px; min-width: 0; box-shadow: 0 1px 4px rgba(80,55,20,.15); }
.du-jour .lib { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-douce); }
.du-jour .val { font-family: var(--f-chiffre); font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Objectif ---------- */
.objectif { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.objectif .num { grid-row: span 3; font-family: var(--f-titre); font-weight: 800; font-size: 34px; line-height: .9; color: var(--rouge); }
.objectif .num small { display: block; font-size: 12px; color: var(--encre-douce); letter-spacing: .04em; }
.objectif .aide { font-size: 14px; color: var(--encre-douce); }
.objectif .prime { font-family: var(--f-chiffre); font-size: 13px; color: var(--vert); font-weight: 600; }

/* ---------- Journal ---------- */
.journal { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--ligne); border-radius: 4px; overflow: hidden; }
.journal li { background: var(--etiquette); padding: 8px 10px; display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; font-size: 14px; align-items: start; }
.journal li .q { font-family: var(--f-chiffre); font-size: 11px; color: var(--encre-douce); white-space: nowrap; }
.journal li.alerte { background: #fbe9e3; }
.journal li.objectif, .journal li.succes { background: #e8f3e8; }
.journal li .m { color: var(--vert); font-family: var(--f-chiffre); font-weight: 600; }
.etoiles { color: var(--orange); letter-spacing: 1px; white-space: nowrap; }

/* ---------- Produits ---------- */
.capacite { display: grid; gap: 4px; }
.capacite .barre { background: rgba(34,27,19,.15); height: 8px; }
.rayon-entete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.produit { display: grid; gap: 8px; }
.produit .haut { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.vignette { width: 34px; height: 34px; border-radius: 4px; display: grid; place-items: center; font-size: 18px; border: 2px solid var(--encre); }
.produit .nom { font-weight: 700; font-size: 16px; line-height: 1.15; }
.produit .infos { font-size: 13px; color: var(--encre-douce); }
.produit .stockv { text-align: right; font-family: var(--f-chiffre); font-size: 18px; font-weight: 600; line-height: 1; }
.produit .stockv small { display: block; font-size: 10px; font-family: var(--f-texte); text-transform: uppercase; letter-spacing: .05em; color: var(--encre-douce); font-weight: 400; margin-top: 2px; }
.produit .stockv.rupture { color: var(--rouge); }
.achats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.achats button { border: 2px solid var(--encre); background: var(--etiquette); border-radius: 5px; padding: 4px 2px; min-height: 40px; line-height: 1.1; min-width: 0; }
.achats button b { display: block; font-size: 15px; }
.achats button span { font-family: var(--f-chiffre); font-size: 11px; color: var(--encre-douce); }
.achats button:active { background: var(--kraft-clair); }
.prix-lib { font-size: 12px; color: var(--encre-douce); display: flex; justify-content: space-between; gap: 6px; }
.lot-vintage { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.liste-vintage { max-height: 220px; overflow-y: auto; font-size: 13px; display: grid; gap: 2px; margin-top: 6px; }
.liste-vintage div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--ligne); padding: 2px 0; }

/* ---------- Choix (radio en cartes) ---------- */
.choix-liste { display: grid; gap: 8px; }
.choix-carte { text-align: left; border: 2px solid var(--ligne); background: var(--etiquette); border-radius: 6px; padding: 9px 12px; display: grid; gap: 2px; }
.choix-carte[aria-pressed="true"] { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.choix-carte b { font-size: 15px; }
.choix-carte span { font-size: 13px; color: var(--encre-douce); }
.choix-carte .coche { float: right; font-weight: 800; }

/* ---------- Améliorations ---------- */
.amelio { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.amelio .eff { font-size: 13px; color: var(--vert); font-weight: 600; }
.amelio .prix { font-family: var(--f-chiffre); font-size: 13px; text-align: right; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--etiquette); border-radius: 4px; padding: 8px 10px; box-shadow: 0 1px 4px rgba(80,55,20,.15); min-width: 0; }
.stat .lib { font-size: 12px; color: var(--encre-douce); }
.stat .val { font-family: var(--f-chiffre); font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Graphique ---------- */
.graphe { width: 100%; height: auto; display: block; }
.graphe text { font-family: var(--f-chiffre); font-size: 9px; fill: var(--encre-douce); }
.legende { display: flex; gap: 14px; font-size: 12px; color: var(--encre-douce); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* ---------- Onglets ---------- */
#onglets { flex: none; background: var(--encre); }
#onglets .gouttiere { display: grid; grid-template-columns: repeat(5, 1fr); padding-block: 4px; }
#onglets button { border: 0; background: transparent; color: rgba(251,248,239,.62); padding: 6px 0 5px; display: grid; justify-items: center; gap: 1px; font-size: 11px; font-weight: 600; letter-spacing: .02em; min-width: 0; position: relative; }
#onglets button .i { font-size: 19px; line-height: 1.1; filter: grayscale(.5); }
#onglets button[aria-selected="true"] { color: var(--etiquette); }
#onglets button[aria-selected="true"] .i { filter: none; }
#onglets button[aria-selected="true"]::before { content: ''; position: absolute; top: -4px; left: 22%; right: 22%; height: 3px; background: var(--kraft-clair); border-radius: 0 0 3px 3px; }
#onglets .pastille { position: absolute; top: 2px; right: calc(50% - 20px); background: var(--rouge); color: #fff; border-radius: 8px; font-size: 10px; padding: 0 5px; line-height: 15px; }

/* ---------- Fenêtres ---------- */
.voile { position: absolute; inset: 0; background: rgba(34,27,19,.6); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fondu .2s; }
@keyframes fondu { from { opacity: 0; } }
.fenetre {
  width: 100%; max-height: 92%; overflow-y: auto; background: var(--etiquette); border-radius: 12px 12px 0 0;
  padding: 18px max(18px, env(safe-area-inset-right, 0px)) 22px max(18px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -10px 40px rgba(0,0,0,.3); animation: monte .25s ease-out; display: grid; gap: 12px;
}
@keyframes monte { from { transform: translateY(40px); } }
.fenetre .entete-evt { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 2px dashed var(--ligne); }
.fenetre .entete-evt .gros-ico { font-size: 40px; line-height: 1; }
.fenetre h2 { margin: 0; font-family: var(--f-titre); font-weight: 800; font-size: 28px; text-transform: uppercase; line-height: 1; text-wrap: balance; }
.fenetre .texte { font-size: 17px; line-height: 1.4; }
.fenetre .choix-evt { display: grid; gap: 8px; }
.fenetre .choix-evt button { text-align: left; border: 2px solid var(--encre); background: #fff; border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.fenetre .choix-evt button b { font-size: 16px; }
.fenetre .choix-evt button span { font-size: 13px; color: var(--encre-douce); }
.fenetre .choix-evt button:active { background: var(--kraft-clair); }
.resultat { font-size: 17px; background: #fff7e2; border-radius: 6px; padding: 10px 12px; border-left: 4px solid var(--orange); }
.code-barre { height: 26px; background: repeating-linear-gradient(90deg, var(--encre) 0 2px, transparent 2px 4px, var(--encre) 4px 5px, transparent 5px 8px, var(--encre) 8px 11px, transparent 11px 12px); opacity: .85; }
.bilan-lignes { display: grid; gap: 0; font-size: 15px; }
.bilan-lignes div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--ligne); }
.bilan-lignes div span:last-child { font-family: var(--f-chiffre); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bilan-lignes .total { font-weight: 700; border-bottom: 2px solid var(--encre); }
.pos { color: var(--vert); } .neg { color: var(--rouge); }

/* ---------- Toast ---------- */
#toast { position: absolute; left: 50%; top: 118px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); width: max-content; background: var(--encre); color: var(--etiquette); border-radius: 8px; padding: 9px 14px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.3); animation: fondu .2s; }
#toast.erreur { background: var(--rouge); }

/* ---------- Écran titre ---------- */
.accueil { height: 100%; overflow-y: auto; }
.accueil .gouttiere { padding-block: 26px 30px; display: grid; gap: 16px; }
.carton-titre {
  position: relative; background: var(--kraft-clair); border: 3px solid var(--kraft-ombre); border-radius: 6px; padding: 30px 16px 22px; text-align: center;
  box-shadow: 0 10px 0 -2px var(--kraft-fonce), 0 12px 24px rgba(0,0,0,.25);
}
.carton-titre::before { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 46px; transform: translateX(-50%); background: var(--scotch); }
.carton-titre h1 {
  position: relative; margin: 0; font-family: var(--f-titre); font-weight: 900; font-size: clamp(54px, 17vw, 84px); line-height: .86;
  text-transform: uppercase; color: var(--encre); letter-spacing: .01em;
}
.carton-titre .sous-titre { position: relative; margin-top: 10px; font-size: 16px; font-weight: 600; }
.carton-titre .tampon { position: absolute; right: 10px; top: 10px; font-size: 14px; transform: rotate(8deg); background: var(--kraft-clair); }
.carton-titre .fleches { position: absolute; left: 12px; top: 10px; font-size: 18px; letter-spacing: -2px; color: var(--encre); }
.durees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.durees button { border: 2px solid var(--encre); background: var(--etiquette); border-radius: 8px; padding: 12px 6px; display: grid; gap: 2px; }
.durees button b { font-family: var(--f-titre); font-size: 26px; font-weight: 800; line-height: 1; }
.durees button span { font-size: 12px; color: var(--encre-douce); }
.succes-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.succes-grille div { background: var(--etiquette); border-radius: 4px; padding: 6px 8px; font-size: 13px; opacity: .45; }
.succes-grille div.ok { opacity: 1; box-shadow: inset 3px 0 0 var(--vert); }
.succes-grille b { display: block; font-size: 14px; }
.regles { font-size: 15px; display: grid; gap: 6px; }
.regles p { margin: 0; }

/* ---------- Fin de partie ---------- */
.rang-tampon {
  justify-self: center; font-family: var(--f-titre); font-weight: 900; text-transform: uppercase; font-size: 32px; line-height: 1;
  color: var(--rouge); border: 4px solid var(--rouge); border-radius: 6px; padding: 8px 14px; transform: rotate(-4deg); text-align: center;
  animation: tampon .5s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes tampon { from { transform: rotate(-4deg) scale(2.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
}
@media (min-width: 600px) and (min-height: 700px) {
  #app { height: calc(100% - 24px); margin-top: 12px; border-radius: 14px; }
}

/* fenêtre de l'entrepôt : la météo bretonne suit la saison */
.fenetre-mur { position: absolute; right: 112px; top: 104px; width: 62px; height: 46px; border: 4px solid var(--kraft-ombre); border-radius: 3px; overflow: hidden; background: var(--ciel, #9cc7e6); }
.fenetre-mur::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: var(--kraft-ombre); }
.fenetre-mur::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); background: var(--kraft-ombre); }
.fenetre-mur .pluie { position: absolute; inset: -20px 0 0; background: repeating-linear-gradient(105deg, transparent 0 7px, rgba(255,255,255,.55) 7px 8px); animation: pluie .6s linear infinite; }
@keyframes pluie { to { transform: translateY(20px); } }
.fenetre-mur .soleil { position: absolute; right: 6px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #ffd34d; box-shadow: 0 0 10px #ffd34d; }
.affiche { position: absolute; right: 58px; top: 102px; width: 40px; height: 52px; background: var(--rouge); color: var(--etiquette); font-family: var(--f-titre); font-weight: 800; font-size: 9px; line-height: 1; text-align: center; padding-top: 6px; transform: rotate(-3deg); box-shadow: 1px 2px 3px rgba(0,0,0,.25); }
.affiche b { display: block; font-size: 15px; margin-top: 3px; }
