/* Le catalogue, le panier, la photo posée depuis le panel, l'aperçu du message. */
[hidden] { display: none !important; }
.page { min-height: 100svh; padding-bottom: calc(var(--barre) + 24px); background: #070505; }
.corps { padding: calc(26px + env(safe-area-inset-top)) 24px 0; }
.petit { font-size: 14px; color: #a89d9d; margin: 12px 0; }
.champ { display: block; font-weight: 700; margin: 0 0 14px; }
.champ small { font-weight: 500; color: #a89d9d; }
.champ input, .champ textarea { display: block; width: 100%; margin-top: 8px; padding: 14px 16px; border: 1px solid #3a2a2c; border-radius: 14px; background: #170f10; color: #fff; font: 600 17px/1.3 Archivo, system-ui, sans-serif; resize: none; user-select: text; -webkit-user-select: text; }
.champ input:focus, .champ textarea:focus { outline: 2px solid #fff; outline-offset: 0; }
.champ .faux { border-color: #ff6b6b; }
.bouton.clair { background: #241719; margin-top: 10px; }
.bouton:disabled { opacity: .45; }
.puces .off span { opacity: .35; text-decoration: line-through; }
.feuille .petit { font-size: 15px; font-weight: 500; margin: -8px 0 16px; }

/* Le catalogue */
#pieces { position: relative; z-index: 2; min-height: 100svh; background: #070505; padding: 0 16px calc(var(--barre) + 28px); }
.rayons { position: sticky; top: 0; z-index: 6; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; background: #070505; margin: 0 -16px; padding: calc(14px + env(safe-area-inset-top)) 16px 14px; overscroll-behavior-x: contain; }
.rayons::-webkit-scrollbar { display: none; }
.rayons button { flex: none; min-height: 44px; padding: 0 18px; border-radius: 22px; background: #241719; font-weight: 700; }
.rayons [aria-pressed="true"] { background: #fff; color: #070505; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; padding-top: 6px; }
.rayons[hidden] + .grille { padding-top: calc(20px + env(safe-area-inset-top)); }
.carte { text-align: left; min-width: 0; }
.carte.une { grid-column: 1 / -1; order: -1; }
.cadre-photo { display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #170f10; margin-bottom: 10px; }
.carte.une .cadre-photo { aspect-ratio: 1; }
.carte img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carte img.plein { object-position: 50% 57%; }
.carte b, .carte em { display: block; overflow-wrap: anywhere; }
.carte b { font-weight: 800; line-height: 1.2; }
.carte.une b { font-size: 24px; letter-spacing: -.02em; }
.carte em { font-style: normal; font-weight: 600; color: #cbbfbd; margin-top: 3px; }

/* Panier */
#panier .titre { margin-bottom: 20px; }
.ligne { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #241719; }
.ligne img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: #170f10; }
.ligne img.plein { object-position: 50% 57%; }
.ligne b, .ligne span, .ligne em { display: block; overflow-wrap: anywhere; }
.ligne span { font-size: 14px; color: #a89d9d; }
.ligne em { font-style: normal; font-weight: 700; margin-top: 3px; }
.qte { display: flex; align-items: center; gap: 2px; }
.qte button { width: 40px; height: 44px; font-size: 22px; font-weight: 700; }
.qte output { min-width: 16px; text-align: center; font-weight: 700; }
#form-panier { margin-top: 24px; }
.total { margin: 6px 0 14px; }
.total div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: #e9dfdd; }
.total .fort { font-size: 20px; font-weight: 800; color: #fff; }
.total span:last-child { text-align: right; }
.liens { margin: 22px 0 8px; } .liens a { color: #fff; font-weight: 700; margin-left: 8px; }
dialog { width: min(calc(100vw - 32px), 430px); max-height: 86svh; margin: auto; border: 0; border-radius: 22px; padding: 20px; background: #170f10; color: #fff; overscroll-behavior: contain; }
dialog::backdrop { background: rgb(0 0 0 / .7); }
dialog .haut { color: #a89d9d; font-size: 14px; margin-bottom: 12px; } dialog .haut b { display: block; color: #fff; font-size: 18px; }
.bulle { background: #d9fdd3; color: #111b21; border-radius: 4px 16px 16px; padding: 12px 14px; font: 400 15px/1.45 system-ui, sans-serif; overflow-wrap: anywhere; }
dialog .bouton { margin-top: 8px; }

/* Une photo du panel : montrée en entier */
.feuille.perso .feuille-photo img { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.feuille.perso .feuille-photo { height: min(58svh, calc(var(--col) * 1.3)); }
.feuille.perso .feuille-bas { margin-top: 12px; } .feuille.perso .feuille-photo::after { display: none; }
.install-btn { display: none !important; }
html:not(.charge, .sertit) body:has(#barre[data-ici="accueil"]) .install-btn:not([hidden]) { display: inline-flex !important; } /* sur l'accueil seulement, après le lancement */
