/* ===== Appli SMASH & SLICE : style appli de livraison (blanc, simple, photos) ===== */
:root {
  --bleu: #1C74E9; --bleu-f: #155DBE; --bleu-c: #EAF2FD;
  --noir: #111827; --gris: #6B7280; --gris-c: #9CA3AF; --ligne: #ECEEF1; --surface: #F4F5F7; --blanc: #fff;
  --vert: #16A34A; --rouge: #DC2626; --jaune: #FFC531;
  --r: 16px; --haut: 56px; --tab: 60px;
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ombre: 0 1px 3px rgba(17, 24, 39, .08), 0 4px 14px rgba(17, 24, 39, .06);
  --ombre-l: 0 10px 40px rgba(17, 24, 39, .18);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--blanc); color: var(--noir); font: 15px/1.45 var(--police); -webkit-font-smoothing: antialiased; }
body { overscroll-behavior-y: none; }
.appli body { -webkit-user-select: none; user-select: none; }
.appli input, .appli textarea { -webkit-user-select: text; user-select: text; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--gris); }

#appli { max-width: 640px; margin: 0 auto; min-height: 100vh; position: relative; }
@media (min-width: 700px) { body { background: var(--surface); } #appli { background: var(--blanc); box-shadow: 0 0 0 1px var(--ligne); } }
#vue { padding-bottom: calc(var(--tab) + 90px + env(safe-area-inset-bottom)); min-height: 100vh; }
.vue-entre { animation: entre .28s cubic-bezier(.2, .8, .2, 1) both; }
.vue-retour { animation: retour .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entre { from { opacity: 0; transform: translateX(28px); } }
@keyframes retour { from { opacity: 0; transform: translateX(-28px); } }
.vue-fondu { animation: fondu .2s both; }
@keyframes fondu { from { opacity: 0; } }

/* ---- barre du haut ---- */
.barre { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: env(safe-area-inset-top) 12px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.barre.ombre { border-bottom-color: var(--ligne); }
.barre-l { display: flex; align-items: center; gap: 10px; height: var(--haut); }
.barre h1 { font-size: 17px; font-weight: 700; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ico-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; position: relative; }
.ico-btn:active { transform: scale(.92); }
.ico-btn svg { width: 22px; height: 22px; }
.ico-btn.vide { background: none; }
.pastille-n { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--bleu); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.logo-s { width: 44px; height: 44px; object-fit: contain; flex: none; }
.lieu { flex: 1; min-width: 0; }
.lieu small { display: block; font-size: 12px; color: var(--gris); }
.lieu b { display: flex; align-items: center; gap: 4px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- accueil ---- */
.etat-l { display: flex; align-items: center; gap: 8px; margin: 4px 16px 0; font-size: 13px; font-weight: 600; }
.etat-l i { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); }
.etat-l.ferme i { background: var(--rouge); }
.recherche { margin: 10px 16px 4px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 12px; padding: 0 12px; height: 44px; }
.recherche svg { width: 18px; height: 18px; color: var(--gris); flex: none; }
.recherche input { border: 0; background: none; outline: none; font: inherit; width: 100%; height: 100%; color: var(--noir); }
.promos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 6px; scrollbar-width: none; }
.promos::-webkit-scrollbar, .chips::-webkit-scrollbar, .rangee::-webkit-scrollbar { display: none; }
.promo { flex: none; width: 82%; max-width: 360px; height: 150px; border-radius: 18px; overflow: hidden; position: relative; scroll-snap-align: start; color: #fff; background: #222 center/cover; cursor: pointer; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .05) 75%); }
.promo div { position: absolute; z-index: 1; left: 16px; top: 16px; bottom: 16px; right: 40%; display: flex; flex-direction: column; justify-content: space-between; }
.promo b { font-size: 20px; line-height: 1.15; font-weight: 800; }
.promo span { align-self: flex-start; background: #fff; color: var(--noir); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 6px 12px; }
.chips { position: sticky; top: calc(var(--haut) + env(safe-area-inset-top)); z-index: 15; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.chip { flex: none; border: 0; background: var(--surface); border-radius: 999px; padding: 9px 15px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip.actif { background: var(--noir); color: #fff; }
.section-p { padding: 14px 16px 4px; scroll-margin-top: 118px; }
.section-p h2 { font-size: 20px; font-weight: 800; }
.section-p .sous { color: var(--gris); font-size: 13px; margin: 2px 0 12px; }
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
@media (min-width: 520px) { .tuiles { grid-template-columns: repeat(3, 1fr); } }
.tuile { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; position: relative; }
.tuile .ph { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface); position: relative; }
.tuile .ph img, .tuile .ph svg { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tuile:active .ph img { transform: scale(.97); }
.tuile .plus { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: var(--ombre); display: grid; place-items: center; color: var(--noir); }
.tuile .plus svg { width: 18px; height: 18px; }
.tuile .eti { position: absolute; left: 8px; top: 8px; background: var(--jaune); color: var(--noir); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.tuile .eti.bleu { background: var(--bleu); color: #fff; }
.tuile h3 { font-size: 15px; font-weight: 600; margin-top: 8px; }
.tuile .px { font-size: 14px; color: var(--noir); margin-top: 1px; }
.tuile .px small { color: var(--gris); }
.tuile.indispo .ph { filter: grayscale(1); opacity: .5; }
.tuile.indispo .plus { display: none; }
.tuile .rupt { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); background: var(--noir); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
.vide-r { text-align: center; color: var(--gris); padding: 30px 16px; }
.info-l { display: flex; gap: 10px; margin: 8px 16px 0; font-size: 13px; color: var(--gris); flex-wrap: wrap; }
.info-l span { display: inline-flex; align-items: center; gap: 4px; }

/* ---- panier flottant + onglets ---- */
#barre-panier { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); width: calc(min(640px, 100%) - 24px); bottom: calc(var(--tab) + 10px + env(safe-area-inset-bottom)); animation: monte .3s cubic-bezier(.2, .9, .25, 1); }
.sans-onglets #barre-panier { bottom: calc(12px + env(safe-area-inset-bottom)); }
@keyframes monte { from { transform: translate(-50%, 30px); opacity: 0; } }
#barre-panier button { width: 100%; border: 0; border-radius: 14px; background: var(--bleu); color: #fff; height: 54px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 8px 24px rgba(28, 116, 233, .35); }
#barre-panier .n { background: rgba(255, 255, 255, .22); border-radius: 8px; padding: 3px 9px; font-size: 14px; }
#onglets { position: fixed; z-index: 25; bottom: 0; left: 50%; transform: translateX(-50%); width: min(640px, 100%); height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); border-top: 1px solid var(--ligne); display: grid; grid-template-columns: repeat(4, 1fr); }
#onglets a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--gris-c); }
#onglets a svg { width: 24px; height: 24px; }
#onglets a.actif { color: var(--noir); }
.sans-onglets #onglets { display: none; }

/* ---- feuille produit ---- */
#feuille-fond { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45); animation: fondu .2s both; }
#feuille { position: fixed; z-index: 60; left: 50%; bottom: 0; transform: translateX(-50%); width: min(640px, 100%); max-height: 94vh; background: #fff; border-radius: 22px 22px 0 0; overflow: clip; display: flex; flex-direction: column; animation: feuille .35s cubic-bezier(.2, .9, .25, 1) both; }
#feuille.ferme { animation: feuille-out .25s ease-in both; }
@keyframes feuille { from { transform: translate(-50%, 100%); } }
@keyframes feuille-out { to { transform: translate(-50%, 100%); } }
.f-defile { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.f-photo { aspect-ratio: 4/3; background: var(--surface); position: relative; }
.f-photo img, .f-photo svg { width: 100%; height: 100%; object-fit: cover; }
.f-fermer { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--ombre); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.f-poignee { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .9); z-index: 2; }
.f-corps { padding: 16px; }
.f-corps h2 { font-size: 22px; font-weight: 800; }
.f-px { font-size: 16px; margin-top: 4px; }
.f-desc { color: var(--gris); margin-top: 8px; }
.allerg { margin-top: 14px; background: var(--surface); border-radius: 12px; padding: 12px; font-size: 13px; }
.allerg b { display: block; font-size: 13px; margin-bottom: 6px; }
.allerg .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.allerg .tag { background: #fff; border: 1px solid var(--ligne); border-radius: 999px; padding: 4px 9px; font-weight: 600; font-size: 12px; }
.allerg .tag.trace { color: var(--gris); font-weight: 500; border-style: dashed; }
.allerg small { display: block; color: var(--gris); margin-top: 8px; }
.groupe { margin-top: 18px; }
.groupe-t { display: flex; align-items: center; justify-content: space-between; background: var(--surface); margin: 0 -16px; padding: 10px 16px; }
.groupe-t b { font-size: 15px; }
.groupe-t small { color: var(--gris); }
.groupe-t .req { font-size: 11px; font-weight: 700; color: var(--gris); background: #E5E7EB; border-radius: 6px; padding: 3px 7px; }
.groupe-t .req.ok { background: #DCFCE7; color: var(--vert); }
.groupe-t .req.manque { background: #FEE2E2; color: var(--rouge); }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ligne); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { position: absolute; left: 0; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.opt .coche { flex: none; width: 22px; height: 22px; border: 2px solid #D1D5DB; display: grid; place-items: center; transition: .15s; }
.opt .coche.rond { border-radius: 50%; }
.opt .coche.carre { border-radius: 6px; }
.opt input:checked + .coche { border-color: var(--bleu); background: var(--bleu); }
.opt input:checked + .coche::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.opt input:checked + .coche.carre::after { width: 10px; height: 5px; border-radius: 0; background: none; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt span.l { flex: 1; }
.opt span.l small { display: block; color: var(--gris); font-size: 12px; }
.opt span.p { color: var(--gris); font-size: 14px; }
.note-f { width: 100%; margin-top: 14px; border: 1px solid var(--ligne); border-radius: 12px; padding: 12px; font: inherit; resize: none; }
.f-bas { border-top: 1px solid var(--ligne); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; background: #fff; }
.qte { display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 12px; padding: 0 4px; }
.qte button { width: 40px; height: 48px; border: 0; background: none; font-size: 22px; cursor: pointer; }
.qte b { min-width: 22px; text-align: center; font-size: 16px; }

/* ---- boutons ---- */
.btn { border: 0; border-radius: 14px; height: 52px; padding: 0 18px; font-weight: 700; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); color: var(--noir); }
.btn:active { transform: scale(.98); }
.btn.bleu { background: var(--bleu); color: #fff; }
.btn.noir { background: var(--noir); color: #fff; }
.btn.plein { width: 100%; }
.btn.petit { height: 40px; font-size: 14px; border-radius: 10px; padding: 0 14px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.flex1 { flex: 1; }

/* ---- listes, formulaires ---- */
.bloc { padding: 16px; border-bottom: 8px solid var(--surface); }
.bloc:last-child { border-bottom: 0; }
.bloc > h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.ligne-p { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.ligne-p:last-child { border-bottom: 0; }
.ligne-p .ph { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface); flex: none; }
.ligne-p .ph img, .ligne-p .ph svg { width: 100%; height: 100%; object-fit: cover; }
.ligne-p .t { flex: 1; min-width: 0; }
.ligne-p .t b { display: block; font-weight: 600; }
.ligne-p .t small { display: block; color: var(--gris); font-size: 13px; }
.ligne-p .d { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qte-s { display: flex; align-items: center; background: var(--surface); border-radius: 10px; }
.qte-s button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qte-s b { min-width: 18px; text-align: center; font-size: 14px; }
.rangee { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.mini { flex: none; width: 112px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.mini .ph { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface); position: relative; }
.mini .ph img, .mini .ph svg { width: 100%; height: 100%; object-fit: cover; }
.mini .ph i { position: absolute; right: 5px; bottom: 5px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: var(--ombre); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.mini b { display: block; font-size: 13px; font-weight: 600; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini small { color: var(--gris); font-size: 12px; }
.tot { display: flex; justify-content: space-between; padding: 4px 0; }
.tot.g { font-weight: 800; font-size: 18px; padding-top: 10px; }
.tot.vert { color: var(--vert); font-weight: 600; }
.msg { border-radius: 12px; padding: 11px 13px; font-size: 14px; font-weight: 500; margin: 10px 0; }
.msg.ok { background: #DCFCE7; color: #166534; } .msg.ko { background: #FEE2E2; color: #991B1B; } .msg.info { background: var(--bleu-c); color: #1E40AF; }
.msg a { color: inherit; font-weight: 700; }
.champ { display: block; margin-bottom: 12px; }
.champ span { display: block; font-size: 13px; color: var(--gris); margin-bottom: 5px; font-weight: 500; }
.champ input, .champ textarea, .champ select { width: 100%; border: 1px solid #E5E7EB; border-radius: 12px; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: var(--noir); outline: none; transition: border-color .15s; }
.champ textarea { height: auto; padding: 12px 14px; resize: none; }
.champ input:focus, .champ textarea:focus { border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-c); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.auto { position: relative; }
.auto ul { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% - 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: var(--ombre-l); }
.auto li { padding: 11px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.auto li:hover { background: var(--surface); }
.creneaux { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.creneaux label { flex: none; position: relative; }
.creneaux input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.creneaux span { display: block; border: 1px solid #E5E7EB; border-radius: 12px; padding: 8px 12px; text-align: center; font-weight: 700; cursor: pointer; min-width: 76px; }
.creneaux span small { display: block; font-size: 11px; color: var(--gris); font-weight: 500; }
.creneaux input:checked + span { border-color: var(--bleu); background: var(--bleu-c); color: var(--bleu-f); }
.creneaux input:disabled + span { opacity: .35; text-decoration: line-through; }
.choix-l { display: grid; gap: 8px; }
.choix-l label { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid #E5E7EB; border-radius: 12px; padding: 14px; cursor: pointer; }
.choix-l input { position: absolute; left: 0; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; }
.choix-l .coche { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #D1D5DB; display: grid; place-items: center; }
.choix-l input:checked ~ .coche { border-color: var(--bleu); background: var(--bleu); }
.choix-l input:checked ~ .coche::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.choix-l label:has(input:checked) { border-color: var(--bleu); background: #F7FAFF; }
.choix-l .t { flex: 1; } .choix-l .t small { display: block; color: var(--gris); font-size: 13px; }
.carte-fid { background: linear-gradient(135deg, #1C74E9, #3B8CF0); color: #fff; border-radius: 18px; padding: 16px; }
.carte-fid .tp { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 12px 0 8px; }
.carte-fid .tp span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .55); display: grid; place-items: center; font-size: 11px; }
.carte-fid .tp span.ok { background: var(--jaune); border: 0; color: var(--noir); }
.carte-fid .tp span.cadeau { background: #fff; border: 0; color: var(--bleu); font-size: 13px; }

/* ---- suivi ---- */
.suivi-h { padding: 16px; }
.suivi-h small { color: var(--gris); font-weight: 600; font-size: 13px; }
.suivi-h h2 { font-size: 26px; font-weight: 800; margin-top: 2px; }
.suivi-h .eta { font-size: 15px; color: var(--gris); margin-top: 4px; }
.suivi-h .eta b { color: var(--noir); }
.barre-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.barre-prog i { height: 5px; border-radius: 4px; background: #E5E7EB; position: relative; overflow: hidden; }
.barre-prog i.fait { background: var(--bleu); }
.barre-prog i.cours::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--bleu); border-radius: 4px; animation: charge 1.4s ease-in-out infinite; }
@keyframes charge { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
#carte-suivi { height: 260px; background: var(--surface); }
.pastille { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); background: #fff; }
.pastille.liv { background: var(--bleu); }
.etapes-l { list-style: none; margin: 0; padding: 0; }
.etapes-l li { display: flex; gap: 12px; padding: 8px 0; color: var(--gris-c); }
.etapes-l li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #E5E7EB; flex: none; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.etapes-l li.fait { color: var(--noir); }
.etapes-l li.fait i { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.etapes-l li.cours { color: var(--noir); font-weight: 700; }
.etapes-l li.cours i { border-color: var(--bleu); }
.etapes-l li small { display: block; font-weight: 400; color: var(--gris); font-size: 12px; }

/* ---- divers ---- */
#toast { position: fixed; z-index: 100; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -20px); opacity: 0; background: var(--noir); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
#toast.vu { opacity: 1; transform: translate(-50%, 0); }
.squelette { background: linear-gradient(90deg, var(--surface) 0%, #fafafa 50%, var(--surface) 100%); background-size: 200% 100%; animation: brille 1.2s infinite; border-radius: var(--r); }
@keyframes brille { to { background-position: -200% 0; } }
.liste-i { list-style: none; margin: 0; padding: 0; }
.liste-i li, .liste-i a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.liste-i li:last-child, .liste-i a:last-child { border-bottom: 0; }
.liste-i .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; flex: none; }
.liste-i .tx { flex: 1; } .liste-i .tx small { display: block; color: var(--gris); font-size: 13px; }
table.al { width: 100%; border-collapse: collapse; font-size: 12px; }
table.al th, table.al td { border-bottom: 1px solid var(--ligne); padding: 6px 4px; text-align: center; }
table.al th:first-child, table.al td:first-child { text-align: left; font-weight: 600; }
table.al th { font-size: 16px; position: sticky; top: 0; background: #fff; }
.tab-al { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.st { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: var(--surface); }
.st.ok { background: #DCFCE7; color: #166534; } .st.ko { background: #FEE2E2; color: #991B1B; } .st.cours { background: var(--bleu-c); color: var(--bleu-f); }
.lien { color: var(--bleu); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }

/* animation d'ouverture (appli) */
.intro { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: #fff; transition: opacity .4s ease, transform .4s ease; }
.intro.fin { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro img { width: 170px; height: auto; margin: 0 auto; animation: intro-logo .8s cubic-bezier(.3, 1.5, .4, 1) both; }
.intro i { display: block; width: 0; height: 4px; border-radius: 4px; background: var(--bleu); margin: 22px auto 0; animation: intro-barre 1s .3s ease-out both; }
@keyframes intro-logo { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
@keyframes intro-barre { from { width: 0; } to { width: 64px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---- espace client ---- */
.cpt-haut { background: linear-gradient(160deg, #0D1320 0%, #16294a 55%, #1C74E9 140%); color: #fff; padding: calc(18px + env(safe-area-inset-top)) 16px 22px; border-radius: 0 0 26px 26px; }
.cpt-id { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--bleu); display: grid; place-items: center; font-size: 24px; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.cpt-id small { display: block; opacity: .7; font-size: 13px; }
.cpt-id h2 { font-size: 26px; font-weight: 800; line-height: 1.1; }
.cpt-id span:not(.avatar) { font-size: 13px; opacity: .7; }
.carte-pro { margin-top: 18px; border-radius: 20px; padding: 16px; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); position: relative; overflow: hidden; }
.carte-pro::before { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(28, 116, 233, .55), transparent 70%); }
.cp-l { display: flex; align-items: center; gap: 10px; position: relative; }
.cp-l img { width: 44px; height: 44px; object-fit: contain; }
.cp-l b { display: block; font-size: 15px; }
.cp-l small { font-size: 12px; opacity: .7; }
.cp-n { margin-left: auto; font-size: 30px; font-weight: 800; }
.cp-n i { font-style: normal; font-size: 15px; opacity: .6; }
.carte-pro .tp { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 14px 0 10px; position: relative; }
.carte-pro .tp span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .45); display: grid; place-items: center; font-size: 12px; }
.carte-pro .tp span.ok { background: var(--jaune); border: 0; color: var(--noir); box-shadow: 0 3px 8px rgba(255, 197, 49, .4); }
.carte-pro .tp span.cadeau { background: #fff; border: 0; font-size: 13px; }
.carte-pro .tp span.cadeau.pret { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.carte-pro p { font-size: 13px; opacity: .9; position: relative; }
.der-cmd { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 16px; padding: 10px; }
.der-cmd .ph { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: #fff; }
.der-cmd .ph img, .der-cmd .ph svg { width: 100%; height: 100%; object-fit: cover; }
.der-cmd .t { min-width: 0; }
.der-cmd .t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.der-cmd .t small { display: block; color: var(--gris); font-size: 13px; margin: 2px 0 6px; }
.raccourcis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.raccourcis a { background: var(--surface); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.raccourcis a:active { transform: scale(.97); }
.raccourcis span { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin-bottom: 8px; font-size: 20px; color: var(--bleu); box-shadow: var(--ombre); }
.raccourcis b { font-size: 14px; }
.raccourcis small { color: var(--gris); font-size: 12px; }
.cpt-accueil { text-align: center; padding: calc(26px + env(safe-area-inset-top)) 20px 8px; background: linear-gradient(180deg, var(--bleu-c), #fff); }
.cpt-accueil img { width: 120px; height: auto; margin: 0 auto 10px; }
.cpt-accueil h2 { font-size: 24px; font-weight: 800; }
.cpt-accueil ul { list-style: none; padding: 0; margin: 14px auto 4px; display: grid; gap: 8px; max-width: 280px; text-align: left; }
.cpt-accueil li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.cpt-accueil li span { width: 32px; height: 32px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: var(--ombre); }
.segment { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.segment button { border: 0; background: none; height: 40px; border-radius: 9px; font-weight: 700; color: var(--gris); cursor: pointer; }
.segment button.actif { background: #fff; color: var(--noir); box-shadow: var(--ombre); }

/* ---- ecran pub a l'ouverture ---- */
.pub { position: fixed; inset: 0; z-index: 900; background: #0D1320; color: #fff; overflow: hidden; display: flex; align-items: flex-end; animation: fondu .3s both; transition: opacity .35s, transform .35s; }
.pub.fin { opacity: 0; transform: scale(1.03); pointer-events: none; }
.pub-fond { position: absolute; inset: 0; background: center/cover no-repeat; transform: scale(1.12); animation: pub-zoom 9s ease-out forwards; }
.pub::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 32, .25) 0%, rgba(13, 19, 32, .35) 35%, rgba(13, 19, 32, .92) 72%, #0D1320 100%), radial-gradient(circle at 85% 10%, rgba(28, 116, 233, .45), transparent 45%); }
@keyframes pub-zoom { to { transform: scale(1); } }
.pub-contenu { position: relative; z-index: 2; width: 100%; max-width: 640px; margin: 0 auto; padding: 0 24px calc(40px + env(safe-area-inset-bottom)); }
.pub-logo { width: 118px; height: auto; margin-bottom: 14px; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .5)); animation: pub-haut .7s .15s both; }
.pub small { display: block; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: #8FBFFF; animation: pub-haut .6s .3s both; }
.pub h2 { font-size: clamp(38px, 11vw, 58px); line-height: .98; font-weight: 900; letter-spacing: -.03em; margin: 8px 0 14px; animation: pub-haut .7s .4s both; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.pub-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--bleu); color: #fff; font-weight: 800; font-size: 15px; padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(28, 116, 233, .55); animation: pub-haut .6s .55s both, pub-brille 2.4s 1.2s ease-in-out infinite; }
.pub-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 0 4px rgba(255, 197, 49, .3); }
.pub p { margin-top: 16px; font-size: 15px; opacity: .85; max-width: 34ch; animation: pub-haut .6s .65s both; }
.pub-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; animation: pub-haut .6s .75s both; }
.pub-pastilles span { font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
@keyframes pub-haut { from { opacity: 0; transform: translateY(16px); } }
@keyframes pub-brille { 50% { box-shadow: 0 10px 40px rgba(28, 116, 233, .9); } }
.pub-x { position: absolute; z-index: 3; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); color: #fff; font-weight: 800; font-size: 16px; display: grid; place-items: center; cursor: default; padding: 0; }
.pub-x svg { position: absolute; inset: 4px; width: 36px; height: 36px; transform: rotate(-90deg); }
.pub-x circle { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 3; }
.pub-x circle.arc { stroke: #fff; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; animation: pub-arc linear forwards; }
@keyframes pub-arc { to { stroke-dashoffset: 0; } }
.pub-x.pret { cursor: pointer; background: #fff; color: var(--noir); }
.pub-x.pret svg { display: none; }
.pub-x span { position: relative; }
