/* Carte démo MM Agentia.
   Chaque commerce pose ses variables sur <body> (couleurs page + carte, police de titre) ;
   les classes .s-<métier> et .fc-<métier> ajoutent ce qui le rend unique (matière, tampons, ombres). */

:root {
  --page: #0C0A08; --pt: #F3ECE0; --pd: #A89F92; --surf: #16120E; --lg: #2E2720; --lien: #FF7A3D;
  --btn: #FF6B2C; --btnt: #0C0A08;
  --f: #16120E; --t: #F3ECE0; --d: #A89F92; --a: #FF6B2C; --e: #0C0A08;
  --police: 'Space Grotesk';
  --ui: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --rayon: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--pt); font-family: var(--ui); line-height: 1.45; -webkit-font-smoothing: antialiased; transition: background-color .35s ease, color .35s ease; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lien); outline-offset: 3px; border-radius: 6px; }
.marque-mm { background-image: radial-gradient(rgba(243, 236, 224, .06) 1px, transparent 1.3px); background-size: 16px 16px; }
.chargement { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--pd); text-align: center; padding: 120px 0; }

/* ---------- barre du haut + bascule Client / Gérant ---------- */
.app-barre {
  position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--page) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--lg) 70%, transparent);
}
.mini-marque { font-weight: 700; font-size: 14px; letter-spacing: .02em; text-decoration: none; color: var(--pt); }
.mini-marque i { font-style: normal; color: var(--lien); }
.bascule { display: flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--pt) 8%, transparent); border: 1px solid color-mix(in srgb, var(--pt) 12%, transparent); }
.bascule a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--pd); }
.bascule a[aria-current] { background: var(--btn); color: var(--btnt); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .35); }

.page { width: 100%; max-width: 480px; margin: 0 auto; padding: 18px 16px calc(env(safe-area-inset-bottom) + 40px); display: flex; flex-direction: column; gap: 16px; }
.page.large { max-width: 1100px; }
.page.etroite { max-width: 400px; padding-top: 48px; }
.sous { margin: 0; color: var(--pd); font-size: 15px; text-wrap: pretty; }
.mention { margin: 6px 0 0; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--pd); text-transform: uppercase; text-wrap: balance; }
.petit { margin: 0; font-size: 12.5px; color: var(--pd); text-wrap: pretty; }
.centre { text-align: center; }

/* ---------- en-tête du commerce ---------- */
.commerce-tete { display: flex; align-items: center; gap: 14px; }
.commerce-logo { width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center; border-radius: 16px; background: var(--f); color: var(--a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 35%, transparent); }
.commerce-tete > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.commerce-nom { font-family: var(--police), Georgia, serif; font-weight: 600; font-size: 28px; line-height: 1.05; letter-spacing: -.01em; }
.commerce-tete small { color: var(--pd); font-size: 14px; }
.salut { margin: -4px 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.salut small { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--pd); }
.scan-ok { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--lien); border: 1px solid color-mix(in srgb, var(--lien) 40%, transparent); background: color-mix(in srgb, var(--lien) 9%, transparent); border-radius: 999px; padding: 6px 11px; }
.invite { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--a); background: var(--f); color: var(--t); font-size: 14px; }
.invite > svg:first-child { color: var(--a); flex-shrink: 0; }
.invite span { flex: 1; }

/* ---------- la carte : base commune ---------- */
.fcarte {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 16px;
  background: var(--f); color: var(--t);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 26px 50px -26px rgba(0, 0, 0, .75);
  animation: entree .5s cubic-bezier(.2, .8, .2, 1);
}
.fcarte::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .08) 48%, transparent 62%); }
@keyframes entree { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.fc-haut { display: flex; align-items: center; gap: 11px; }
.fc-logo { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--a); color: var(--e); display: grid; place-items: center; }
.fc-nom { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.fc-nom b { font-family: var(--police), Georgia, serif; font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.fc-nom small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--d); text-transform: uppercase; margin-top: 3px; }
.fc-nfc { color: var(--d); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--d) 40%, transparent); }
.fc-compte { display: flex; align-items: baseline; gap: 8px; }
.fc-n { font-family: var(--police), Georgia, serif; font-size: 60px; font-weight: 600; line-height: .85; letter-spacing: -.03em; display: inline-block; }
.fc-sur { font-family: var(--mono); font-size: 12.5px; color: var(--d); letter-spacing: .04em; }
.fc-grille { display: grid; gap: 8px; }
.fc-case { aspect-ratio: 1; max-height: 66px; border-radius: 12px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--t) 18%, transparent); color: var(--d); font-family: var(--mono); font-size: 11px; transition: background .3s; }
.fc-case.palier { border: 1.5px dashed var(--a); color: var(--a); }
.fc-case.pleine { background: var(--a); color: var(--e); border-color: transparent; }
.fc-bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--t) 15%, transparent); }
.fc-titulaire { display: flex; flex-direction: column; min-width: 0; }
.fc-titulaire small { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--d); }
.fc-titulaire b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-num { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--d); white-space: nowrap; }
.pop { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1); }
.fc-case.pop { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1), halo 1.1s ease-out; }
@keyframes pop { 0% { transform: scale(.3) rotate(var(--r, 0deg)); } 60% { transform: scale(1.2) rotate(var(--r, 0deg)); } 100% { transform: scale(1) rotate(var(--r, 0deg)); } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a) 70%, transparent); } 100% { box-shadow: 0 0 0 20px transparent; } }

/* points (boutique) */
.fc-points { display: grid; grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.fc-anneau { grid-row: 1 / 3; width: 132px; height: 132px; transform: rotate(-90deg); }
.fond-anneau { fill: none; stroke: color-mix(in srgb, var(--t) 12%, transparent); stroke-width: 9; }
.plein-anneau { fill: none; stroke: var(--a); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.fc-points-txt { display: flex; flex-direction: column; gap: 4px; align-self: end; }
.fc-regle { display: flex; flex-direction: column; gap: 2px; align-self: start; margin-top: 10px; font-size: 13px; color: var(--d); }
.fc-regle b { color: var(--a); font-size: 14px; }

/* ---------- les six cartes ---------- */
/* Coiffeur : carte noire fine rayure, tampons ronds champagne métallisés, titre Bodoni italique. */
.fc-coiffeur { background: repeating-linear-gradient(135deg, rgba(217, 180, 143, .055) 0 1px, transparent 1px 9px), var(--f); box-shadow: inset 0 0 0 1px rgba(217, 180, 143, .3), 0 26px 50px -26px #000; }
.fc-coiffeur .fc-nom b, .fc-coiffeur .fc-n { font-style: italic; }
.fc-coiffeur .fc-logo { border-radius: 50%; background: radial-gradient(circle at 30% 25%, #F6E3C6, #C99B6B 72%); }
.fc-coiffeur .fc-case { border-radius: 50%; }
.fc-coiffeur .fc-case.pleine { background: radial-gradient(circle at 30% 25%, #F6E3C6, #C99B6B 72%); box-shadow: 0 2px 6px -2px #000, inset 0 -2px 3px rgba(0, 0, 0, .25); }

/* Restaurant : vert bouteille encadré façon menu, assiettes en tampons, Fraunces. */
.fc-restaurant { box-shadow: inset 0 0 0 7px var(--f), inset 0 0 0 8px rgba(233, 196, 106, .55), 0 26px 50px -24px rgba(29, 43, 35, .6); padding: 22px; }
.fc-restaurant .fc-case { border-radius: 50%; box-shadow: inset 0 0 0 5px var(--f), inset 0 0 0 6px color-mix(in srgb, var(--t) 18%, transparent); }
.fc-restaurant .fc-case.pleine { box-shadow: inset 0 0 0 5px var(--a), inset 0 0 0 6.5px color-mix(in srgb, var(--e) 35%, transparent); }
.fc-restaurant .fc-case.palier { box-shadow: none; }

/* Boulangerie : papier kraft perforé, coups de tampon encreur inclinés, Young Serif. */
.fc-boulangerie {
  background: radial-gradient(rgba(43, 29, 18, .07) 1px, transparent 1.3px) 0 0 / 6px 6px, linear-gradient(160deg, #F6EAD4, var(--f) 60%, #E8D3B0);
  outline: 2px dashed rgba(156, 79, 28, .35); outline-offset: -9px; box-shadow: 0 18px 36px -22px rgba(80, 45, 15, .55);
}
.fc-boulangerie .fc-case { border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--t) 28%, transparent); }
.fc-boulangerie .fc-case.pleine { background: transparent; color: var(--a); border: 2.5px solid var(--a); transform: rotate(var(--r)); box-shadow: inset 0 0 0 3px rgba(156, 79, 28, .14); opacity: .92; }
.fc-boulangerie::after { display: none; }

/* Boutique : nuit et rose poudré, anneau de points, Syne capitales. */
.fc-boutique { background: linear-gradient(var(--a), var(--a)) 0 0 / 100% 3px no-repeat, var(--f); }
.fc-boutique .fc-nom b { font-family: 'Syne', var(--ui); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 18px; }
.fc-boutique .fc-n { font-family: 'Syne', var(--ui); font-weight: 800; font-size: 54px; }
.fc-boutique .fc-logo { border-radius: 4px; }

/* Institut : nacre, tampons en perles, Cormorant italique. */
.fc-institut { background: radial-gradient(120% 90% at 88% 0%, #FFFFFF 0%, var(--f) 55%, #E7CBC2 100%); box-shadow: inset 0 0 0 1px rgba(158, 63, 91, .15), 0 22px 44px -24px rgba(110, 45, 65, .45); }
.fc-institut .fc-nom b { font-style: italic; font-size: 26px; }
.fc-institut .fc-n { font-style: italic; font-size: 68px; }
.fc-institut .fc-logo { border-radius: 50%; }
.fc-institut .fc-case { border-radius: 50%; border-color: rgba(158, 63, 91, .25); background: rgba(255, 255, 255, .45); }
.fc-institut .fc-case.pleine { background: radial-gradient(circle at 32% 28%, #D98AA2, var(--a) 70%); box-shadow: 0 3px 8px -3px rgba(110, 45, 65, .6); }

/* Snack : autocollant rouge, bords noirs épais, ombre dure, Bowlby One. */
.fc-snack { border: 3px solid #2A0907; box-shadow: 6px 6px 0 #2A0907; border-radius: 18px; }
.fc-snack .fc-nom b, .fc-snack .fc-n { font-weight: 400; text-transform: uppercase; }
.fc-snack .fc-n { font-size: 54px; }
.fc-snack .fc-logo { border: 2.5px solid #2A0907; border-radius: 10px; }
.fc-snack .fc-case { border-radius: 9px; border: 2px solid rgba(255, 244, 224, .4); }
.fc-snack .fc-case.pleine { border: 2.5px solid #2A0907; transform: rotate(calc(var(--r) / 2)); box-shadow: 2px 2px 0 #2A0907; }
.fc-snack .fc-case.palier { border: 2px dashed var(--a); }
.fc-snack .fc-nfc { border-color: rgba(255, 244, 224, .5); }

/* ---------- blocs sous la carte ---------- */
.statut { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surf); border: 1px solid var(--lg); font-size: 15px; color: var(--pd); }
.statut b { color: var(--pt); }
.statut-n { font-family: var(--police), Georgia, serif; font-size: 34px; font-weight: 600; line-height: 1; color: var(--pt); }
.statut.dispo { background: var(--btn); color: var(--btnt); border-color: transparent; animation: brille 2.4s ease-in-out infinite; }
.statut.dispo b { color: inherit; display: block; font-size: 17px; }
.statut.dispo > svg { flex-shrink: 0; }
@keyframes brille { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--btn) 25%, transparent); } }
.bloc { padding: 16px; border-radius: 16px; background: var(--surf); border: 1px solid var(--lg); display: flex; flex-direction: column; gap: 10px; }
.bloc h2, .panneau h2, .portefeuille h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pd); }
.bloc p { margin: 0; font-size: 15px; text-wrap: pretty; }
.offre-moment { background: color-mix(in srgb, var(--btn) 11%, var(--surf)); border-color: color-mix(in srgb, var(--btn) 40%, var(--lg)); }
.offre-moment p { font-size: 17px; font-weight: 600; }
.offres-recues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.offres-recues li { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--pt) 5%, transparent); display: flex; flex-direction: column; gap: 4px; }
.offres-recues li.neuve { background: color-mix(in srgb, var(--btn) 14%, transparent); box-shadow: inset 3px 0 0 var(--btn); }
.offres-recues p { margin: 0; font-weight: 600; }
.offres-recues time { font-family: var(--mono); font-size: 11px; color: var(--pd); }
.histo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.histo li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--lg); font-size: 14px; }
.histo li:first-child { border-top: 0; padding-top: 2px; }
.histo li span { display: flex; align-items: center; gap: 8px; }
.histo li span svg { color: var(--lien); flex-shrink: 0; }
.histo li.recompense span, .histo li.bienvenue span { font-weight: 700; }
.histo time { font-family: var(--mono); font-size: 11px; color: var(--pd); white-space: nowrap; }

/* portefeuille de cartes */
.portefeuille { display: flex; flex-direction: column; gap: 10px; }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini { position: relative; min-height: 92px; text-align: left; padding: 10px; border-radius: 14px; border: 0; background: var(--f); color: var(--t); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 18px -12px rgba(0, 0, 0, .6); transition: transform .15s; }
.mini:active { transform: scale(.96); }
.mini b { font-family: var(--police), Georgia, serif; font-weight: 600; font-size: 13px; line-height: 1.1; }
.mini small { font-family: var(--mono); font-size: 10px; color: var(--d); }
.mini-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--a); color: var(--e); display: grid; place-items: center; }
.mini.actuelle { box-shadow: 0 0 0 2.5px var(--page), 0 0 0 4.5px var(--a); }
.mini.absente { opacity: .55; }
.lien-inscription { display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 64px; border-radius: 16px; border: 1px solid var(--lg); background: var(--surf); text-decoration: none; }
.lien-inscription > svg:first-child { color: var(--lien); flex-shrink: 0; }
.lien-inscription > svg:last-child { color: var(--pd); flex-shrink: 0; }
.lien-inscription span { flex: 1; display: flex; flex-direction: column; }
.lien-inscription small { color: var(--pd); font-size: 13px; }

/* ---------- inscription ---------- */
.puces-commerces { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.puces-commerces::-webkit-scrollbar { display: none; }
.puce-commerce { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--pt) 16%, transparent); background: transparent; color: var(--pd); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.puce-commerce.actif { background: var(--f); color: var(--t); border-color: var(--a); }
.puce-commerce.actif svg { color: var(--a); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; counter-reset: etape; }
.etapes li { counter-increment: etape; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--pd); line-height: 1.25; }
.etapes li::before { content: ''; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--pt) 14%, transparent); }
.etapes li.faite::before { background: color-mix(in srgb, var(--btn) 55%, transparent); }
.etapes li.en-cours { color: var(--pt); font-weight: 700; }
.etapes li.en-cours::before { background: var(--btn); }
.titre-inscription { margin: 0; font-family: var(--police), Georgia, serif; font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.formulaire { display: flex; flex-direction: column; gap: 14px; }
.champs-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pd); }
.champ input { height: 54px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--lg); background: var(--surf); color: var(--pt); font-size: 17px; font-weight: 500; }
.champ input:focus { outline: none; border-color: var(--lien); }
.coche { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--pd); cursor: pointer; }
.coche input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--btn); }
.erreur-form { margin: 0; min-height: 1px; color: #D2361F; font-weight: 600; font-size: 14px; }
.vue-client.s-coiffeur .erreur-form, .vue-client.s-boutique .erreur-form, .marque-mm .erreur-form { color: #FF9C80; }
.btn-principal { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; width: 100%; border: 0; border-radius: 16px; background: var(--btn); color: var(--btnt); font-size: 18px; font-weight: 700; text-decoration: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 12px 24px -14px var(--btn); transition: transform .12s; }
.btn-principal:active { transform: scale(.98); }
.btn-principal:disabled { opacity: .5; }
.bienvenue-coeur { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 8px 8px; }
.bienvenue-coeur p { margin: 0; color: var(--pd); font-size: 16px; }
.bienvenue-check { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--btnt); animation: pop .7s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 0 0 10px color-mix(in srgb, var(--btn) 18%, transparent); }
.sms-parti { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--surf); border: 1px solid var(--lg); color: var(--pt) !important; font-size: 14px !important; }

/* ---------- notification + toast ---------- */
.notif {
  position: fixed; z-index: 60; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 10px); max-width: 456px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 12px; border-radius: 20px;
  background: rgba(28, 26, 24, .88); color: #F5F2EE; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .7); transform: translateY(-150%); transition: transform .5s cubic-bezier(.2, .9, .2, 1);
}
.notif.visible { transform: none; }
.notif-logo { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; background: var(--f); color: var(--a); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.notif-txt { flex: 1; display: flex; flex-direction: column; font-size: 15px; font-weight: 500; line-height: 1.3; }
.notif-txt small { font-size: 12px; color: #B9B3AC; font-weight: 500; }
.notif button { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: none; color: #B9B3AC; display: grid; place-items: center; }
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px); transform: translate(-50%, 180%);
  display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 999px;
  background: #1C1A18; color: #F5F2EE; font-weight: 600; font-size: 15px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); transition: transform .4s cubic-bezier(.2, .9, .2, 1);
}
.toast.visible { transform: translate(-50%, 0); }
.toast.erreur { background: #FFE1D6; color: #5A1600; }
.toast.cadeau { background: var(--btn); color: var(--btnt); }

/* ---------- gérant ---------- */
.porte { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.porte h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.porte p { margin: 0; color: var(--pd); }
.porte input { width: 100%; height: 64px; text-align: center; font-size: 30px; letter-spacing: .4em; border-radius: 14px; border: 1.5px solid var(--lg); background: var(--surf); }
.porte input:focus { outline: none; border-color: var(--lien); }
.porte-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--btn); color: var(--btnt); }

.bandeau-commerce { background: var(--f); color: var(--t); padding: 16px 0 10px; border-bottom: 1px solid color-mix(in srgb, var(--t) 12%, transparent); }
.s-coiffeur .bandeau-commerce { background: repeating-linear-gradient(135deg, rgba(217, 180, 143, .05) 0 1px, transparent 1px 9px), var(--f); }
.s-boulangerie .bandeau-commerce { background: radial-gradient(rgba(43, 29, 18, .07) 1px, transparent 1.3px) 0 0 / 6px 6px, var(--f); }
.s-snack .bandeau-commerce { border-bottom: 3px solid #2A0907; }
.bandeau-in { max-width: 1100px; margin: 0 auto; padding: 0 16px 12px; display: flex; align-items: center; gap: 14px; }
.bandeau-in .commerce-logo { background: var(--a); color: var(--e); box-shadow: none; }
.bandeau-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bandeau-txt small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--d); }
.bandeau-commerce .puces-commerces { max-width: 1100px; margin: 0 auto; }
.bandeau-commerce .puce-commerce { color: var(--d); border-color: color-mix(in srgb, var(--t) 18%, transparent); }
.bandeau-commerce .puce-commerce.actif { background: var(--a); color: var(--e); border-color: transparent; }
.bandeau-commerce .puce-commerce.actif svg { color: var(--e); }
.en-direct { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--d); white-space: nowrap; }
.point { width: 8px; height: 8px; border-radius: 50%; background: #3FB950; flex-shrink: 0; animation: pouls 2s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(63, 185, 80, .55); } 70% { box-shadow: 0 0 0 8px rgba(63, 185, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); } }

.scan { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--lg); background: var(--surf); font-size: 14px; color: var(--pd); }
.scan b { color: var(--pt); }
.scan .point { background: color-mix(in srgb, var(--pd) 60%, transparent); animation: none; }
.scan.frais { border-color: var(--lien); background: color-mix(in srgb, var(--lien) 12%, var(--surf)); }
.scan.frais .point { background: var(--lien); animation: pouls 1.2s infinite; }

.onglets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--surf); border: 1px solid var(--lg); }
.onglet { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; border: 0; border-radius: 12px; background: transparent; color: var(--pd); font-weight: 600; font-size: 14.5px; }
.onglet.actif { background: var(--btn); color: var(--btnt); }
.contenu-onglet { display: flex; flex-direction: column; gap: 14px; }

.caisse-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 880px) { .caisse-grille { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; } .col-carte { position: sticky; top: 76px; } }
.col-carte, .col-actions { display: flex; flex-direction: column; gap: 14px; }
.fiche { display: flex; align-items: center; gap: 12px; }
.fiche-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fiche-txt b { font-size: 18px; }
.fiche-txt small { color: var(--pd); font-size: 13px; }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--f); color: var(--a); font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 40%, transparent); }
.avatar.grand { width: 52px; height: 52px; font-size: 17px; }
.statut-caisse { display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 14px; color: var(--pd); }
.statut-caisse.dispo { padding: 12px 14px; border-radius: 12px; background: var(--btn); color: var(--btnt); font-weight: 700; }

.panneau { padding: 16px; border-radius: 16px; background: var(--surf); border: 1px solid var(--lg); display: flex; flex-direction: column; gap: 12px; }
.panneau label { font-size: 14px; color: var(--pd); }
.aide { margin: 0; font-size: 13px; color: var(--pd); text-align: center; }
.btn-geant { width: 100%; min-height: 74px; border: 0; border-radius: 16px; background: var(--btn); color: var(--btnt); font-size: 23px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 14px 28px -16px var(--btn); transition: transform .1s, filter .1s; }
.btn-geant:active { transform: scale(.98); filter: brightness(.95); }
.btn-geant:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-plein { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--btn); color: var(--btnt); font-weight: 700; font-size: 14px; }
.btn-contour { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; width: 100%; border: 1.5px solid var(--lg); border-radius: 14px; background: var(--surf); color: var(--pt); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn-contour:hover { border-color: var(--pd); }
.btn-fantome { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--pd); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 10px; }
.btn-fantome:hover { color: var(--pt); }
.actions-fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.saisie { display: flex; flex-direction: column; gap: 10px; }
.saisie-ligne { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--lg); border-radius: 14px; background: var(--page); padding: 0 16px; }
.saisie-ligne:focus-within { border-color: var(--lien); }
.saisie-ligne input { flex: 1; min-width: 0; height: 64px; border: 0; background: none; outline: none; font-size: 32px; font-weight: 700; }
.saisie-ligne span { font-size: 24px; color: var(--pd); font-weight: 600; }
.raccourcis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.raccourcis button { min-height: 44px; border: 1px solid var(--lg); border-radius: 10px; background: var(--page); font-weight: 600; }
.lots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lots li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--page); border: 1px solid var(--lg); }
.lots li.dispo { border-color: var(--lien); }
.lots li span { display: flex; flex-direction: column; }
.lots small { font-family: var(--mono); font-size: 11px; color: var(--pd); }
.etiquette { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--pd); border: 1px solid var(--lg); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 14px; border-radius: 14px; background: var(--surf); border: 1px solid var(--lg); display: flex; flex-direction: column; gap: 4px; }
.stat small { font-size: 12.5px; color: var(--pd); }
.stat b { font-family: var(--police), Georgia, serif; font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stat.alerte b { color: var(--lien); }
.recherche { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--lg); background: var(--surf); color: var(--pd); }
.recherche:focus-within { border-color: var(--lien); }
.recherche input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; outline: none; font-size: 16px; color: var(--pt); }
.filtres { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtre { flex-shrink: 0; min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--lg); background: transparent; color: var(--pd); font-size: 13.5px; font-weight: 600; }
.filtre.actif { background: var(--pt); color: var(--page); border-color: transparent; }
.liste-clients { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.client-ligne { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 64px; text-align: left; border-radius: 14px; border: 1px solid var(--lg); background: var(--surf); color: var(--pt); }
.client-ligne:hover { border-color: var(--pd); }
.client-ligne.choisi { border-color: var(--lien); box-shadow: inset 3px 0 0 var(--lien); }
.client-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.client-infos b { font-size: 15.5px; }
.client-infos small { font-family: var(--mono); font-size: 11.5px; color: var(--pd); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--pt) 9%, transparent); color: var(--pd); }
.badge.toi { background: var(--btn); color: var(--btnt); }
.badge.neuf { background: #3FB950; color: #0B1F0E; }
.badge.pret { background: color-mix(in srgb, var(--lien) 20%, transparent); color: var(--lien); }
.badge.absent { background: color-mix(in srgb, #E5534B 18%, transparent); color: #E5534B; }
.client-prog { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; width: 64px; flex-shrink: 0; }
.client-prog b { font-family: var(--mono); font-size: 13px; }
.jauge { width: 64px; height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--pt) 12%, transparent); overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--lien); border-radius: inherit; }
.vide-liste { padding: 24px; text-align: center; color: var(--pd); font-size: 14px; }

.modeles { display: flex; flex-direction: column; gap: 6px; }
.modeles button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--lg); background: transparent; color: var(--pd); font-size: 13.5px; }
.modeles button:hover { border-color: var(--pd); color: var(--pt); }
textarea { width: 100%; resize: vertical; min-height: 88px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--lg); background: var(--page); color: var(--pt); font-size: 16px; line-height: 1.4; }
textarea:focus { outline: none; border-color: var(--lien); }
.compteur { margin-top: -6px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--pd); }
.cibles { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cibles legend { padding: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--pd); }
.cible { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--lg); background: var(--page); cursor: pointer; font-size: 15px; color: var(--pt) !important; }
.cible.actif { border-color: var(--lien); }
.cible input { width: 18px; height: 18px; margin: 0; accent-color: var(--btn); }
.info-envoi { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--pd); }
.info-envoi svg { flex-shrink: 0; margin-top: 2px; color: var(--lien); }
.info-envoi b { color: var(--pt); }
.offres-envoyees { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.offres-envoyees li { padding: 12px 0; border-top: 1px solid var(--lg); display: flex; flex-direction: column; gap: 4px; }
.offres-envoyees li:first-child { border-top: 0; padding-top: 0; }
.offres-envoyees p { margin: 0; font-weight: 600; }
.offres-envoyees small { font-family: var(--mono); font-size: 11px; color: var(--pd); }
.pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 8px; }

/* ---------- touches propres à chaque univers (page entière) ---------- */
.s-coiffeur { background-image: repeating-linear-gradient(135deg, rgba(217, 180, 143, .025) 0 1px, transparent 1px 11px); }
.s-coiffeur .commerce-nom, .s-coiffeur .titre-inscription, .s-coiffeur .statut-n { font-style: italic; }
.s-boulangerie { background-image: radial-gradient(rgba(43, 29, 18, .05) 1px, transparent 1.3px); background-size: 7px 7px; }
.s-boutique .commerce-nom, .s-boutique .titre-inscription { font-family: 'Syne', var(--ui); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.s-boutique .stat b, .s-boutique .statut-n { font-family: 'Syne', var(--ui); font-weight: 800; }
.s-institut { background-image: radial-gradient(90% 50% at 100% 0%, rgba(158, 63, 91, .08), transparent 70%); background-repeat: no-repeat; }
.s-institut .commerce-nom, .s-institut .titre-inscription, .s-institut .stat b, .s-institut .statut-n { font-style: italic; }
.s-institut .commerce-nom { font-size: 32px; }
.s-snack .commerce-nom, .s-snack .titre-inscription { font-weight: 400; text-transform: uppercase; }
.s-snack .stat b, .s-snack .statut-n { font-weight: 400; }
.s-snack .bloc, .s-snack .panneau, .s-snack .stat, .s-snack .statut, .s-snack .lien-inscription, .s-snack .client-ligne, .s-snack .scan, .s-snack .onglets { border: 2px solid #2A0907; box-shadow: 4px 4px 0 #2A0907; }
.s-snack .btn-principal, .s-snack .btn-geant, .s-snack .bascule a[aria-current], .s-snack .onglet.actif { border: 2.5px solid #2A0907; box-shadow: 3px 3px 0 #2A0907; }
.s-snack .mini { border: 2px solid #2A0907; box-shadow: 3px 3px 0 #2A0907; }
.s-snack .commerce-logo { background: var(--a); color: #2A0907; border: 2.5px solid #2A0907; box-shadow: 3px 3px 0 #2A0907; }
.s-restaurant .commerce-logo, .s-boulangerie .commerce-logo, .s-institut .commerce-logo { background: var(--f); color: var(--a); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- cadeaux automatiques : bons + annonce ---------- */
.aide.gauche { text-align: left; }
.cadeaux { display: flex; flex-direction: column; gap: 10px; }
.bon {
  position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr); border-radius: 16px; overflow: hidden;
  background: var(--f); color: var(--t); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6), inset 0 0 0 1px color-mix(in srgb, var(--a) 45%, transparent);
  animation: entree .5s cubic-bezier(.2, .8, .2, 1);
}
.bon-g { display: grid; place-items: center; background: var(--a); color: var(--e); border-right: 2px dashed color-mix(in srgb, var(--e) 45%, transparent); }
.bon::before, .bon::after { content: ''; position: absolute; left: 63px; width: 22px; height: 22px; border-radius: 50%; background: var(--page); }
.bon::before { top: -11px; }
.bon::after { bottom: -11px; }
.bon-d { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.bon-d small { font-size: 12px; color: var(--d); }
.bon-d b { font-family: var(--police), Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.15; }
.bon-code { align-self: flex-start; margin: 4px 0 2px; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--t) 10%, transparent); font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: .22em; }
.s-snack .bon { border: 2.5px solid #2A0907; box-shadow: 4px 4px 0 #2A0907; }

.fete { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--page) 70%, rgba(0, 0, 0, .55)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fondu .3s ease; }
@keyframes fondu { from { opacity: 0; } }
.fete-carte {
  position: relative; z-index: 1; width: 100%; max-width: 380px; padding: 28px 22px 22px; border-radius: 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--f); color: var(--t);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px color-mix(in srgb, var(--a) 40%, transparent);
  animation: pop .7s cubic-bezier(.3, 1.6, .5, 1);
}
.fete-carte small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--d); }
.fete-carte h2 { margin: 2px 0 0; font-family: var(--police), Georgia, serif; font-weight: 600; font-size: 36px; line-height: 1; }
.fete-carte p { margin: 0; color: var(--d); }
.fete-carte > b { font-family: var(--police), Georgia, serif; font-weight: 600; font-size: 24px; line-height: 1.15; color: var(--a); }
.fete-carte .petit { color: var(--d); margin-bottom: 8px; }
.fete-carte .btn-principal { background: var(--a); color: var(--e); }
.fete-ic { width: 92px; height: 92px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--a); color: var(--e); box-shadow: 0 0 0 10px color-mix(in srgb, var(--a) 22%, transparent); animation: balance 1.6s ease-in-out infinite; }
@keyframes balance { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.fete-confettis { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fete-confettis i { position: absolute; top: -20px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; background: var(--a); opacity: .9; animation: chute 2.6s cubic-bezier(.3, .6, .6, 1) var(--d) forwards; }
.fete-confettis i:nth-child(3n) { background: var(--t); width: 7px; height: 7px; border-radius: 50%; }
.fete-confettis i:nth-child(3n + 1) { background: color-mix(in srgb, var(--a) 55%, var(--f)); }
@keyframes chute { to { transform: translateY(110vh) rotate(540deg); opacity: .3; } }
.s-snack .fete-carte { border: 3px solid #2A0907; box-shadow: 8px 8px 0 #2A0907; }
.btn-qr { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--a); color: var(--e); font-weight: 700; font-size: 14px; white-space: nowrap; }
.qr-panneau { max-width: 560px; gap: 10px; }
.qr-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; width: 100%; margin: 6px 0 8px; }
.qr-duo figure { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.qr-duo img { width: 100%; max-width: 230px; height: auto; background: #fff; border-radius: 14px; padding: 8px; }
.qr-duo figcaption { display: flex; flex-direction: column; font-size: 13px; color: var(--d); }
.qr-duo figcaption b { color: var(--t); font-size: 15px; }
