/* oui. · direction artistique « fine tech » : noir bleuté, verre, un accent électrique, menthe pour la confiance. */
:root {
  --bg: #06080E;
  --bg2: #0B0F1C;
  --verre: rgba(255, 255, 255, .045);
  --verre2: rgba(255, 255, 255, .08);
  --trait: rgba(255, 255, 255, .09);
  --texte: #F3F5FA;
  --doux: #8C93A6;
  --pale: #5B6275;
  --acc: #8B9BFF;
  --acc2: #5EE6C8;
  --alerte: #FFB27A;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #000; }
body { font-family: "Geist", system-ui, sans-serif; color: var(--texte); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

#cadre { position: fixed; inset: 0; background: var(--bg); overflow: hidden; }
@media (min-width: 640px) {
  body { display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #141a2e, #000 70%); }
  #cadre { position: relative; width: 390px; height: min(844px, calc(100vh - 32px)); border-radius: 52px; box-shadow: 0 0 0 10px #111, 0 0 0 11px #2a2a2e, 0 40px 120px rgba(0,0,0,.6); }
}
#app { position: absolute; inset: 0; }

/* Aurore animée, très lente */
.aurore { position: absolute; inset: -20%; pointer-events: none; filter: blur(60px); opacity: .55; transition: opacity .8s var(--ease); }
.aurore i { position: absolute; border-radius: 50%; animation: flotte 18s ease-in-out infinite alternate; }
.aurore i:nth-child(1) { width: 60%; height: 40%; left: 10%; top: 0; background: #3442C9; }
.aurore i:nth-child(2) { width: 50%; height: 35%; right: 0; top: 20%; background: #1B8F86; animation-duration: 22s; }
.aurore i:nth-child(3) { width: 45%; height: 30%; left: 25%; top: 45%; background: #6A2FB8; animation-duration: 26s; opacity: .6; }
@keyframes flotte { to { transform: translate(8%, 6%) scale(1.15); } }
body.calme .aurore { opacity: .22; }

/* Écrans */
.ecran { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--sat) + 18px) 20px calc(var(--sab) + 18px); overflow-y: auto; scrollbar-width: none; }
.ecran::-webkit-scrollbar { display: none; }
.ecran.entre { animation: entre .6s var(--ease) both; }
.ecran.sort { animation: sort .35s var(--ease) both; pointer-events: none; }
@keyframes entre { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } }
@keyframes sort { to { opacity: 0; transform: translateY(-10px) scale(.99); filter: blur(3px); } }
.r { animation: monte .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } }

.haut { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -.05em; }
.logo b { color: var(--acc2); }
.rond { width: 40px; height: 40px; border-radius: 50%; background: var(--verre); border: 1px solid var(--trait); display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; }
.rond:active { transform: scale(.92); }
.rond svg { width: 18px; height: 18px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 999px; background: var(--texte); color: #06080E; font-weight: 600; font-size: 16px; width: 100%; transition: transform .2s var(--ease), opacity .2s; position: relative; overflow: hidden; }
.btn:active { transform: scale(.975); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: reflet 4.5s ease-in-out 1.2s infinite; }
@keyframes reflet { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn.fantome { background: var(--verre); color: var(--texte); border: 1px solid var(--trait); }
.btn.fantome::after { display: none; }
.btn svg { width: 18px; height: 18px; }

.verre { background: var(--verre); border: 1px solid var(--trait); border-radius: 24px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* 1 · Accueil */
.accueil { justify-content: space-between; }
.hero { margin-top: 3vh; position: relative; height: 320px; flex: none; }
.flotte-carte { position: absolute; left: 50%; width: 280px; padding: 18px; transform: translateX(-50%); }
.flotte-carte.a { top: 0; animation: plane 6s ease-in-out infinite alternate; }
.flotte-carte.b { top: 236px; width: 250px; margin-left: 30px; animation: plane 7s ease-in-out -2s infinite alternate; }
@keyframes plane { to { transform: translateX(-50%) translateY(-10px) rotate(-.6deg); } }
.ligne-ok { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 9px 0; border-top: 1px solid var(--trait); }
.ligne-ok:first-of-type { border-top: 0; }
.ok { color: var(--acc2); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.ok svg { width: 14px; height: 14px; }
.gros { font-size: 40px; font-weight: 600; letter-spacing: -.04em; }
.titre { font-size: 38px; line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.titre em { font-style: normal; background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sous { color: var(--doux); font-size: 15px; line-height: 1.45; margin-top: 12px; }
.garantie { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--acc2); background: rgba(94,230,200,.08); border: 1px solid rgba(94,230,200,.18); border-radius: 999px; padding: 8px 12px; margin-top: 18px; }
.garantie svg { width: 14px; height: 14px; }

/* 2 · Demande */
.question { font-size: 32px; line-height: 1.05; letter-spacing: -.04em; font-weight: 600; margin: 26px 0 18px; }
.saisie { padding: 18px; min-height: 130px; display: flex; flex-direction: column; transition: border-color .3s, box-shadow .3s; }
.saisie:focus-within { border-color: rgba(139,155,255,.5); box-shadow: 0 0 0 4px rgba(139,155,255,.12); }
.saisie textarea { flex: 1; background: none; border: 0; outline: 0; resize: none; color: var(--texte); font: 400 18px/1.4 "Geist", sans-serif; letter-spacing: -.01em; }
.saisie textarea::placeholder { color: var(--pale); }
.saisie .bas { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.envoyer { width: 44px; height: 44px; border-radius: 50%; background: var(--texte); color: #06080E; display: grid; place-items: center; transition: transform .25s var(--spring), opacity .2s; }
.envoyer:disabled { opacity: .25; transform: scale(.9); }
.envoyer svg { width: 18px; height: 18px; }
.idees { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.idee { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--verre); border: 1px solid var(--trait); text-align: left; font-size: 14.5px; transition: transform .2s var(--ease), background .2s; }
.idee:active { transform: scale(.98); background: var(--verre2); }
.idee .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--verre2); display: grid; place-items: center; flex: none; }
.idee .ic svg { width: 17px; height: 17px; color: var(--acc); }
.idee small { display: block; color: var(--doux); font-size: 12px; margin-top: 2px; }

/* 3 · Recherche */
.recherche { justify-content: center; }
.orbe { width: 150px; height: 150px; margin: 0 auto 34px; position: relative; }
.orbe i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--acc); animation: tourne 1.4s linear infinite; }
.orbe i:nth-child(2) { inset: 14px; border-top-color: var(--acc2); animation-duration: 2s; animation-direction: reverse; }
.orbe i:nth-child(3) { inset: 28px; border-top-color: #E58BFF; animation-duration: 2.8s; }
.orbe b { position: absolute; inset: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--acc) 45%, #2a2f7a); box-shadow: 0 0 60px rgba(139,155,255,.6); animation: respire 2s ease-in-out infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes respire { 50% { transform: scale(.88); } }
.etapes-r { display: flex; flex-direction: column; gap: 10px; }
.etape-r { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; opacity: .3; transition: opacity .4s; }
.etape-r.on { opacity: 1; }
.etape-r .val { font-weight: 600; font-size: 17px; }
.etape-r .coche { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--pale); display: grid; place-items: center; transition: all .3s var(--spring); }
.etape-r.fini .coche { background: var(--acc2); border-color: var(--acc2); color: #06080E; transform: scale(1.05); }
.etape-r .coche svg { width: 12px; height: 12px; opacity: 0; }
.etape-r.fini .coche svg { opacity: 1; }

/* 4 · Propositions */
.props { }
.budget { text-align: center; margin-top: 4px; }
.cercle { position: relative; width: 230px; height: 230px; margin: 6px auto 0; }
.cercle svg { position: absolute; inset: 0; overflow: visible; }
.cercle line { transform-origin: 115px 115px; animation: trait .5s var(--ease) both; }
@keyframes trait { from { opacity: 0; transform: scale(.7); } }
.cercle .centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cercle .centre .gros { font-size: 40px; }
.eco { margin-top: 8px; font-size: 11.5px; color: var(--acc2); background: rgba(94,230,200,.1); border-radius: 999px; padding: 5px 10px; }
.eco.trop { color: var(--alerte); background: rgba(255,178,122,.1); }
.liste { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.item { padding: 14px; border-radius: 22px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.item.off { opacity: .45; }
.item .l1 { display: flex; align-items: center; gap: 12px; }
.pastille { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; position: relative; }
.pastille::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: .14; }
.pastille svg { width: 19px; height: 19px; position: relative; }
.item .nom { flex: 1; min-width: 0; }
.item .nom b { font-weight: 600; font-size: 15px; display: block; letter-spacing: -.01em; }
.item .nom span { font-size: 12.5px; color: var(--doux); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .prix { font-weight: 600; font-size: 16px; text-align: right; }
.tag { display: inline-block; font-family: "Geist Mono", monospace; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; margin-top: 4px; background: var(--verre2); color: var(--doux); }
.tag.Obligatoire, .tag.Formalité { color: #FFB27A; background: rgba(255,178,122,.1); }
.tag.Oubli { color: #E58BFF; background: rgba(229,139,255,.1); }
.why { font-size: 12.5px; color: var(--doux); line-height: 1.4; margin: 10px 0 0 54px; display: flex; gap: 6px; }
.why svg { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--acc); }
.seg { display: flex; margin: 12px 0 0 54px; background: rgba(0,0,0,.35); border-radius: 12px; padding: 3px; position: relative; }
.seg button { flex: 1; font-size: 12px; font-weight: 500; padding: 8px 4px; border-radius: 9px; color: var(--doux); position: relative; z-index: 1; transition: color .25s; }
.seg button.on { color: #06080E; }
.seg .curseur { position: absolute; top: 3px; bottom: 3px; border-radius: 9px; background: var(--texte); transition: left .35s var(--spring), width .35s var(--spring); }
.inter { width: 44px; height: 26px; border-radius: 999px; background: var(--verre2); position: relative; flex: none; transition: background .25s; }
.inter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--texte); transition: transform .3s var(--spring); }
.inter.on { background: var(--acc2); }
.inter.on::after { transform: translateX(18px); background: #06080E; }

.barre-payer { position: sticky; bottom: calc(-1 * (var(--sab) + 18px)); margin: auto -20px calc(-1 * (var(--sab) + 18px)); padding: 14px 20px calc(var(--sab) + 16px); background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 5; }
.barre-payer .det { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--doux); margin-bottom: 10px; padding: 0 4px; }
.pomme { width: 17px; height: 17px; }

/* 5 · Apple Pay (simulé) */
.voile { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 20; animation: fondu .3s var(--ease) both; }
@keyframes fondu { from { opacity: 0; } }
.feuille { position: absolute; left: 8px; right: 8px; bottom: calc(var(--sab) + 8px); background: #1C1C1E; border-radius: 38px; padding: 20px 20px 24px; z-index: 21; animation: feuille .55s var(--spring) both; font-family: -apple-system, "SF Pro Text", "Geist", sans-serif; }
@keyframes feuille { from { transform: translateY(105%); } }
.feuille .entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.feuille .entete b { font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.feuille .x { width: 30px; height: 30px; border-radius: 50%; background: #3A3A3C; color: #aaa; display: grid; place-items: center; font-size: 14px; }
.feuille .row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid #2C2C2E; font-size: 15px; }
.feuille .row small { display: block; font-size: 13px; color: #8E8E93; margin-top: 1px; }
.mini-carte { width: 44px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #3442C9, #0B0F1C); flex: none; }
.feuille .tot { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; border-top: 1px solid #2C2C2E; }
.feuille .tot span { color: #8E8E93; font-size: 13px; }
.feuille .tot b { font-size: 30px; font-weight: 600; }
.faceid { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: #d4d4d8; }
.faceid button { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fi { width: 64px; height: 64px; color: #fff; }
.fi .scan { stroke-dasharray: 200; stroke-dashoffset: 200; }
.faceid.scan .fi .scan { animation: scan 1.1s var(--ease) forwards; }
.faceid.scan .fi { color: #34C77B; }
@keyframes scan { to { stroke-dashoffset: 0; } }

/* 6 · Achat */
.carte3d { perspective: 1000px; margin: 22px 0 18px; }
.carte { height: 200px; border-radius: 26px; padding: 22px; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(130% 140% at 0% 0%, #3442C9 0%, #121736 50%, #05070D 100%);
  box-shadow: 0 30px 60px -20px rgba(52,66,201,.55), inset 0 0 0 1px rgba(255,255,255,.12);
  transform-style: preserve-3d; transition: transform .2s ease-out; animation: carte-in .9s var(--spring) both; }
@keyframes carte-in { from { transform: rotateX(25deg) translateY(30px) scale(.92); opacity: 0; } }
.carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 62%); animation: reflet 3.5s ease-in-out infinite; }
.carte .puce { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #F1DDA8, #B38E52); }
.carte .type { position: absolute; top: 22px; right: 22px; }
.carte .type.mono { color: rgba(255,255,255,.7); }
.carte .numero { position: absolute; left: 22px; bottom: 58px; font-family: "Geist Mono", monospace; font-size: 18px; letter-spacing: .18em; }
.carte .marchand { position: absolute; left: 22px; bottom: 24px; font-size: 13px; color: rgba(255,255,255,.75); }
.carte .montant { position: absolute; right: 22px; bottom: 20px; font-size: 26px; font-weight: 600; }
.chiffre-flip { display: inline-block; animation: flip .4s var(--ease); }
@keyframes flip { from { transform: translateY(-60%); opacity: 0; } }
.achats { display: flex; flex-direction: column; gap: 8px; }
.achat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; transition: all .3s; }
.achat .nom { flex: 1; font-size: 14px; }
.achat .nom small { display: block; color: var(--doux); font-size: 12px; margin-top: 1px; }
.etat { font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 999px; background: var(--verre2); color: var(--doux); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.etat.cours { color: var(--acc); background: rgba(139,155,255,.12); }
.etat.cours::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: pulse 1s infinite; }
.etat.paye { color: var(--acc2); background: rgba(94,230,200,.12); }
@keyframes pulse { 50% { opacity: .3; } }
.secu { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--doux); line-height: 1.45; margin-top: 16px; padding: 0 4px; }
.secu svg { width: 16px; height: 16px; color: var(--acc2); flex: none; margin-top: 1px; }

/* 7 · Ticket */
.ticket { background: #F6F7F9; color: #0A0C12; border-radius: 30px; margin-top: 14px; position: relative; animation: ticket .8s var(--spring) both; }
@keyframes ticket { from { transform: translateY(60px) scale(.96); opacity: 0; } }
.ticket .tete { text-align: center; padding: 28px 22px 20px; }
.coche-anim { width: 64px; height: 64px; margin: 0 auto 14px; }
.coche-anim circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: trace .7s var(--ease) .3s forwards; }
.coche-anim path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: trace .45s var(--ease) .85s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.ticket .tete .mono { color: #6B7180; }
.ticket .tete .gros { color: #0A0C12; margin: 4px 0; }
.ticket .coupe { position: relative; border-top: 2px dashed #DADDE3; margin: 0 22px; }
.ticket .coupe::before, .ticket .coupe::after { content: ""; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); }
.ticket .coupe::before { left: -36px; } .ticket .coupe::after { right: -36px; }
.ticket .corps { padding: 16px 22px; }
.ticket .rl { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; color: #2A2E38; }
.ticket .rl span small { display: block; font-size: 11.5px; color: #8A8F9C; }
.ticket .rl b { font-weight: 600; }
.ticket .rl.frais { color: #8A8F9C; }
.ticket .pied { padding: 6px 18px 20px; }
.ticket .rassure { text-align: center; color: #12806A; font-size: 12.5px; font-weight: 600; padding: 14px 0 12px; }
.ticket .btn { background: #0A0C12; color: #fff; }
.toast { position: absolute; left: 50%; bottom: calc(var(--sab) + 96px); transform: translateX(-50%); background: var(--texte); color: #06080E; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 40; animation: toast 2.4s var(--ease) both; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 20px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

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

/* ===== v2 : accueil avec orbe, chat, facture, historique ===== */
.accueil2 { }
.orbe-zone { position: relative; height: 300px; margin: 0 -20px; flex: none; }
#orbe { position: absolute; inset: 0; width: 100%; height: 100%; }
.salut { text-align: center; margin-top: -26px; position: relative; }
.salut h1 { font-size: 30px; line-height: 1.08; letter-spacing: -.045em; font-weight: 600; }
.salut h1 em { font-style: normal; background: linear-gradient(90deg, var(--acc), var(--acc2), #E58BFF); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: degrade 6s linear infinite; }
@keyframes degrade { to { background-position: 200% 0; } }
.salut p { color: var(--doux); font-size: 14px; margin-top: 8px; }
.puces { display: flex; gap: 8px; overflow-x: auto; margin: 20px -20px 0; padding: 0 20px; scrollbar-width: none; }
.puces::-webkit-scrollbar { display: none; }
.puce { flex: none; font-size: 13px; padding: 10px 14px; border-radius: 999px; background: var(--verre); border: 1px solid var(--trait); white-space: nowrap; transition: transform .2s var(--ease), background .2s; }
.puce:active { transform: scale(.96); background: var(--verre2); }
.section-t { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 4px 10px; }
.section-t b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.histo { display: flex; flex-direction: column; gap: 8px; }
.h-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 20px; text-align: left; width: 100%; transition: transform .2s var(--ease); }
.h-item:active { transform: scale(.985); }
.h-item .nom { flex: 1; min-width: 0; }
.h-item .nom b { font-weight: 600; font-size: 14.5px; display: block; }
.h-item .nom span { font-size: 12px; color: var(--doux); }
.h-item .mt { text-align: right; font-weight: 600; font-size: 15px; }
.h-item .mt small { display: block; font-size: 11px; font-weight: 500; color: var(--acc2); margin-top: 2px; }
.vide { text-align: center; color: var(--pale); font-size: 13px; padding: 18px; border: 1px dashed var(--trait); border-radius: 18px; }

.saisie-bas { position: sticky; bottom: calc(-1 * (var(--sab) + 18px)); margin: auto -20px calc(-1 * (var(--sab) + 18px)); padding: 12px 16px calc(var(--sab) + 14px); background: linear-gradient(to top, var(--bg) 65%, transparent); z-index: 6; }
.champ { display: flex; align-items: flex-end; gap: 8px; background: rgba(20,24,38,.85); border: 1px solid var(--trait); border-radius: 28px; padding: 6px 6px 6px 18px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: border-color .3s, box-shadow .3s; }
.champ:focus-within { border-color: rgba(139,155,255,.45); box-shadow: 0 0 0 4px rgba(139,155,255,.1), 0 0 40px rgba(139,155,255,.15); }
.champ textarea { flex: 1; background: none; border: 0; outline: 0; resize: none; color: var(--texte); font: 400 16px/1.35 "Geist", sans-serif; padding: 10px 0; max-height: 110px; }
.champ textarea::placeholder { color: var(--pale); }

.chat { }
.chat-tete { display: flex; align-items: center; gap: 12px; position: sticky; top: calc(-1 * (var(--sat) + 18px)); margin: calc(-1 * (var(--sat) + 18px)) -20px 0; padding: calc(var(--sat) + 14px) 20px 12px; background: linear-gradient(to bottom, var(--bg) 70%, transparent); z-index: 4; }
.chat-tete .qui { flex: 1; }
.chat-tete .qui b { font-weight: 700; letter-spacing: -.04em; font-size: 18px; }
.chat-tete .qui b i { font-style: normal; color: var(--acc2); }
.chat-tete .qui span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--doux); }
.chat-tete .qui span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 8px var(--acc2); }
.fil { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bulle { max-width: 84%; padding: 12px 15px; border-radius: 22px; font-size: 15px; line-height: 1.42; animation: bulle .45s var(--spring) both; }
@keyframes bulle { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.bulle.moi { align-self: flex-end; background: var(--texte); color: #06080E; border-bottom-right-radius: 8px; }
.bulle.ia { align-self: flex-start; background: var(--verre); border: 1px solid var(--trait); border-bottom-left-radius: 8px; }
.ecrit { display: flex; gap: 5px; padding: 16px 18px; }
.ecrit i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: saute 1.2s ease-in-out infinite; }
.ecrit i:nth-child(2) { animation-delay: .15s; background: var(--acc2); }
.ecrit i:nth-child(3) { animation-delay: .3s; background: #E58BFF; }
@keyframes saute { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
.rapides { display: flex; gap: 6px; flex-wrap: wrap; align-self: flex-start; animation: bulle .45s var(--spring) .1s both; }
.rapides button { font-size: 13px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(139,155,255,.35); color: var(--acc); background: rgba(139,155,255,.07); }
.carte-rech { align-self: stretch; padding: 14px 16px; animation: bulle .45s var(--spring) both; }
.carte-rech .lr { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--doux); }
.carte-rech .lr b { color: var(--texte); font-weight: 600; }
.barre-prog { height: 3px; border-radius: 3px; background: var(--verre2); overflow: hidden; margin-top: 10px; }
.barre-prog i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 3px; animation: prog 1.6s ease-in-out infinite; }
@keyframes prog { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.offre { align-self: stretch; padding: 16px; animation: bulle .55s var(--spring) both; }
.offre .t { display: flex; justify-content: space-between; align-items: baseline; }
.offre .t b { font-size: 16px; font-weight: 600; }
.offre .t .gros { font-size: 26px; }
.offre .sl { font-size: 12px; color: var(--doux); margin: 2px 0 10px; }
.offre .ol { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--trait); font-size: 13.5px; }
.offre .ol .pastille { width: 30px; height: 30px; border-radius: 10px; }
.offre .ol .pastille svg { width: 15px; height: 15px; }
.offre .ol span { flex: 1; min-width: 0; }
.offre .ol span small { display: block; color: var(--doux); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offre .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.offre .btn { height: 52px; font-size: 15px; }

/* Facture */
.facture { background: #fff; color: #0A0C12; border-radius: 22px; padding: 22px 20px; margin-top: 12px; font-size: 13px; animation: ticket .7s var(--spring) both; }
.facture .ft { display: flex; justify-content: space-between; align-items: flex-start; }
.facture .ft .lg { font-weight: 800; font-size: 24px; letter-spacing: -.05em; }
.facture .ft .lg i { font-style: normal; color: #12806A; }
.facture .ft .ref { text-align: right; font-size: 11.5px; color: #6B7180; line-height: 1.5; }
.facture .ft .ref b { color: #0A0C12; font-size: 13px; }
.facture h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8A8F9C; margin: 18px 0 6px; font-weight: 600; }
.facture .par { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; line-height: 1.5; color: #2A2E38; }
.facture table { width: 100%; border-collapse: collapse; }
.facture td { padding: 8px 0; border-bottom: 1px solid #EEF0F3; vertical-align: top; }
.facture td small { display: block; color: #8A8F9C; font-size: 11px; }
.facture td.m { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.facture .totaux { margin-top: 10px; }
.facture .totaux div { display: flex; justify-content: space-between; padding: 4px 0; color: #4A4F5C; font-variant-numeric: tabular-nums; }
.facture .totaux .grand { font-size: 17px; font-weight: 700; color: #0A0C12; border-top: 2px solid #0A0C12; margin-top: 6px; padding-top: 10px; }
.facture .mention { font-size: 10.5px; color: #8A8F9C; line-height: 1.45; margin-top: 16px; }
.facture .tampon { display: inline-flex; align-items: center; gap: 6px; color: #12806A; background: #E5F4EE; border-radius: 999px; padding: 5px 10px; font-weight: 600; font-size: 11.5px; margin-top: 12px; }
@media print {
  body { background: #fff !important; display: block !important; overflow: visible !important; }
  #cadre { position: static !important; width: auto !important; height: auto !important; box-shadow: none !important; background: #fff !important; border-radius: 0 !important; overflow: visible !important; }
  .aurore, .pas-imprimer, .haut { display: none !important; }
  .ecran { position: static !important; padding: 0 !important; overflow: visible !important; animation: none !important; }
  .facture { animation: none !important; box-shadow: none; border-radius: 0; padding: 0; font-size: 12px; }
}
.mini-orbe { width: 38px; height: 38px; border-radius: 50%; position: relative; flex: none; background: conic-gradient(from 0deg, #8B9BFF, #5EE6C8, #E58BFF, #8B9BFF); animation: tourne 6s linear infinite; filter: saturate(1.2); }
.mini-orbe::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(139,155,255,.4) 40%, #0B0F1C 75%); }
.mini-orbe.pense { animation-duration: 1.2s; box-shadow: 0 0 24px rgba(139,155,255,.6); }
.sur { position: absolute; inset: 0; z-index: 12; background: var(--bg); }

.offre .t .gros { white-space: nowrap; margin-left: 10px; }
.salut h1 { font-size: 28px; }

.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#8B9BFF,#5EE6C8); display: grid; place-items: center; font-weight: 700; color: #06080E; }
.puces, .stats, .histo, .section-t, .salut, .metal-zone, .liste, .achats, .fil { flex: none; }
