/* AppliAG — page servie par Caddy (app.alexandra-gestion.fr). Une colonne téléphone, grandes tuiles à image, texte minimal.
   Aspect clair choisi exprès (lisibilité en extérieur). Aucune ressource externe (CSP default-src 'none'). */
:root { --fond:#F2F4F6; --carte:#FFFFFF; --texte:#14161A; --doux:#5A6170; --trait:#C9CED6; --bleu:#1F5FBF; --violet:#6B3FA0;
  --turquoise:#0E7C7C; --ardoise:#3B414C; --vert:#1E7A46; --orange:#B4500A; --rouge:#B42318; color-scheme: light; }
html, body { height: 100%; margin: 0; }
body { background: var(--fond); color: var(--texte); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; }
* { box-sizing: border-box; }
button { font-family: inherit; cursor: pointer; border: none; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.app { max-width: 480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.app.large { max-width: 900px; }
header { position: sticky; top: 0; z-index: 5; background: var(--carte); border-bottom: 1px solid #E2E5EA; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); }
.retour { width: 52px; height: 52px; border-radius: 16px; background: var(--texte); display: flex; align-items: center; justify-content: center; }
.pastille { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.titre { font-size: 20px; font-weight: 800; flex: 1; }
.moi { width: 44px; height: 44px; border-radius: 22px; background: #E3ECF8; color: var(--bleu); font-weight: 800; display: flex; align-items: center; justify-content: center; }
main { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 14px max(14px, env(safe-area-inset-right, 0px)) 28px max(14px, env(safe-area-inset-left, 0px)); }
.grille2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grille3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tuile { position: relative; height: 170px; border-radius: 26px; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 800; }
.badge { position: absolute; top: 10px; right: 10px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; background: #FFFFFF; color: var(--texte); font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.onglets { display: flex; gap: 10px; flex-wrap: wrap; }
.onglet { flex: 1; min-width: 70px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 800; background: var(--carte); color: var(--texte); border: 2px solid var(--trait); }
.onglet.actif-a { background: var(--orange); color: #FFFFFF; border-color: var(--orange); }
.onglet.actif-v { background: var(--vert); color: #FFFFFF; border-color: var(--vert); }
.onglet.actif-b { background: var(--bleu); color: #FFFFFF; border-color: var(--bleu); }
.propriete { background: var(--carte); border-radius: 20px; overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(20,22,26,.08); }
.bande { height: 64px; display: flex; align-items: center; justify-content: center; }
.ligne { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 18px; font-weight: 800; }
.ligne .nom { flex: 1; min-width: 0; }
.rond { width: 42px; height: 42px; border-radius: 21px; display: flex; align-items: center; justify-content: center; }
.grande { height: 120px; border-radius: 22px; display: flex; align-items: flex-end; padding: 12px; }
.grande span { font-size: 22px; font-weight: 800; color: #FFFFFF; background: rgba(20,22,26,.5); padding: 6px 12px; border-radius: 12px; }
.info { flex: 1; background: var(--carte); border-radius: 16px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; font-weight: 800; }
.action { height: 150px; border-radius: 24px; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 20px; font-weight: 800; }
.bloc { background: var(--carte); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pas { display: flex; align-items: center; gap: 10px; }
.pas button { width: 52px; height: 52px; border-radius: 16px; font-size: 28px; font-weight: 800; }
.pas .moins { background: #E8EEF6; color: var(--texte); }
.pas .plus { background: var(--bleu); color: #FFFFFF; }
.pas b { min-width: 28px; text-align: center; font-size: 26px; }
.bascule { height: 120px; border-radius: 20px; background: var(--carte); color: var(--texte); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 800; }
.bascule[aria-pressed="true"].tache { background: var(--orange); color: #FFFFFF; }
.bascule[aria-pressed="true"].probleme { background: var(--rouge); color: #FFFFFF; }
.entete-produits { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.compte { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; background: var(--texte); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.recherche { display: flex; align-items: center; gap: 8px; background: var(--carte); border: 2px solid var(--trait); border-radius: 16px; padding: 0 12px; height: 56px; }
.recherche input { border: none; outline: none; font: inherit; font-size: 18px; flex: 1; min-width: 0; height: 50px; background: transparent; color: var(--texte); }
.produit { position: relative; display: flex; flex-direction: column; gap: 4px; }
.produit > button.p { width: 100%; height: 108px; border-radius: 18px; border: 3px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; font-size: 12px; font-weight: 700; color: var(--texte); line-height: 1.15; text-align: center; }
.produit > button.p img { width: 48px; height: 48px; object-fit: contain; }
.produit > button.p.pris { border-color: var(--vert); }
.produit .qte { position: absolute; top: -6px; right: -6px; min-width: 32px; height: 32px; border-radius: 16px; background: var(--vert); color: #FFFFFF; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 3px solid var(--fond); }
.produit .retirer { height: 40px; border-radius: 12px; background: #E8EEF6; font-size: 24px; font-weight: 800; color: var(--texte); }
.envoyer { height: 72px; border-radius: 22px; background: var(--vert); color: #FFFFFF; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; font-weight: 800; }
.envoyer:disabled { opacity: .5; }
.fait { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 40px; text-align: center; font-size: 22px; font-weight: 800; }
.fait .ok { width: 140px; height: 140px; border-radius: 70px; background: var(--vert); display: flex; align-items: center; justify-content: center; }
.champ { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.champ input, .champ select, textarea { font: inherit; font-size: 18px; height: 56px; border: 2px solid var(--trait); border-radius: 14px; padding: 0 12px; background: var(--carte); color: var(--texte); }
textarea { height: 90px; padding: 10px 12px; }
.code { letter-spacing: 12px; text-align: center; font-size: 28px !important; font-weight: 800; }
.message { background: var(--carte); border-radius: 16px; padding: 14px; font-size: 18px; font-weight: 700; text-align: center; }
.message.erreur { background: #FDE8E6; color: var(--rouge); }
.table { width: 100%; border-collapse: collapse; background: var(--carte); border-radius: 14px; overflow: hidden; font-size: 14px; }
.table th, .table td { padding: 8px 6px; border-bottom: 1px solid #E2E5EA; text-align: left; vertical-align: middle; }
.table input { width: 100%; min-width: 50px; font: inherit; border: 1px solid var(--trait); border-radius: 8px; padding: 6px; }
.petit { height: 40px; padding: 0 12px; border-radius: 10px; background: var(--bleu); color: #FFFFFF; font-weight: 700; }
.petit.gris { background: #E8EEF6; color: var(--texte); }
.petit.rouge { background: var(--rouge); }
.defile { overflow-x: auto; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: no-preference) { button { transition: transform .08s; } button:active { transform: scale(.97); } }
