/* =====================================================================
   BoîteZen - minimaliste & futuriste
   Couleurs des catégories : palette validée (daltonisme, contraste) sur --bg.
   ===================================================================== */
:root {
  color-scheme: dark;
  --bg: #0b0d1f;
  --bg-deep: #05060f;
  --text: #eef1ff;
  --text-2: #a3a9c9;
  --text-3: #6d7396;
  --glass: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .09);
  --cyan: #00e5ff;
  --pink: #ff2bd6;
  --violet: #8b5cff;
  --good: #2ef2a0;
  --bad: #ff5470;
  --c-urgent: #eb6263;
  --c-action: #338ced;
  --c-info: #00a888;
  --c-newsletter: #d28e05;
  --c-promo: #e24d8b;
  --c-social: #0aac23;
  --c-spam: #9887ef;
  --c-other: #7d84a6;
  --c-suggest: #00e5ff;
  --c-alert: #ff5470;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 700px at 75% -10%, #1a1050 0%, transparent 60%),
              radial-gradient(900px 700px at -10% 40%, #062a4a 0%, transparent 55%), var(--bg-deep);
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Décor ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aurora { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(100px); opacity: .5; }
.aurora span { position: absolute; width: 42vmax; height: 42vmax; border-radius: 50%; }
.aurora span:nth-child(1) { background: #00e5ff; left: 0; top: 5%; opacity: .3; animation: drift1 24s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { background: #ff2bd6; right: 0; bottom: 0; opacity: .25; animation: drift2 28s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(20vw, 15vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-20vw, -10vh) scale(.9); } }
.grid-floor {
  position: fixed; left: -50%; right: -50%; bottom: -10vh; height: 40vh; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0, 229, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 43, 214, .14) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(520px) rotateX(64deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,.85), transparent 85%); animation: floor 5s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }

/* ---------- Éléments communs ---------- */
.glass { background: rgba(14, 16, 38, .72); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
/* Bordure lumineuse animée : dessinée en arrière-plan de la fenêtre elle-même, elle ne défile
   pas avec le contenu (corrige la ligne qui traversait les fenêtres longues sur mobile). */
.glass.neon-border { border: 1.5px solid transparent;
  background: linear-gradient(rgb(13, 15, 36), rgb(13, 15, 36)) padding-box,
              conic-gradient(from var(--angle, 0deg), var(--cyan), var(--violet), var(--pink), var(--cyan)) border-box;
  animation: spin 6s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
@keyframes gradientMove { 50% { background-position: 100% 50%; } }
@keyframes float { 50% { transform: translateY(-8px); } }

.btn-neon { position: relative; overflow: hidden; border: 0; border-radius: 14px; padding: 13px 26px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; font-size: 14px; color: #fff;
  background: linear-gradient(120deg, #00b8d4, #7b2ff7, #ff2bd6, #00b8d4); background-size: 300% 300%; animation: gradientMove 6s ease infinite;
  box-shadow: 0 0 24px rgba(123, 47, 247, .5), inset 0 0 0 1px rgba(255,255,255,.25); transition: transform .2s, box-shadow .2s; }
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(255, 43, 214, .65), inset 0 0 0 1px rgba(255,255,255,.4); }
.btn-neon:active { transform: scale(.97); }
.btn-neon[disabled] { opacity: .55; pointer-events: none; }
.btn-neon .btn-glow { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.5) 50%, transparent 80%); transform: translateX(-120%); animation: sheen 3.4s ease-in-out infinite; }
.btn-neon .btn-label { position: relative; }
.btn-ghost { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; border-radius: 14px; padding: 12px 24px;
  background: var(--glass); border: 1px solid var(--line); font-weight: 500; transition: border-color .25s, box-shadow .25s; }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 229, 255, .3); }
.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--cyan); font-weight: 500; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(0, 229, 255, .35); }
#syncBtn:hover svg { animation: turn 1s ease; }
#syncBtn.spinning svg { animation: turn 1s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.spark { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink); animation: blink 1.6s infinite; flex: none; }

/* ---------- Page publique ---------- */
.landing { position: relative; z-index: 1; }
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px 14vh; position: relative; }
.mark-xl { width: 96px; height: 96px; filter: drop-shadow(0 0 24px rgba(0, 229, 255, .6)); animation: float 6s ease-in-out infinite; }
.mark-xl svg { width: 100%; height: 100%; }
.brand { font-family: var(--font-display); font-weight: 900; font-size: clamp(42px, 9vw, 84px); letter-spacing: .04em; margin: 18px 0 10px; }
.brand b { background: linear-gradient(90deg, var(--cyan), var(--pink), var(--cyan)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }
.tagline { color: var(--text-2); font-size: clamp(16px, 2.4vw, 20px); font-weight: 300; line-height: 1.6; margin: 0 0 26px; }
.price-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(0, 229, 255, .35);
  background: rgba(0, 229, 255, .07); font-size: 14px; margin: 0 0 30px; box-shadow: 0 0 24px rgba(0, 229, 255, .15); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero > :nth-child(2) { animation-delay: .12s; } .hero > :nth-child(3) { animation-delay: .24s; }
.hero > :nth-child(4) { animation-delay: .36s; } .hero > :nth-child(5) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Accueil connecté ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(16px, 4vw, 32px); }
.mark-sm { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(0, 229, 255, .55)); }
.mark-sm svg { width: 100%; height: 100%; }
.top-actions { display: flex; gap: 10px; position: relative; }
.menu { position: absolute; right: 0; top: 52px; width: 250px; padding: 8px; display: grid; gap: 2px; animation: pop .25s cubic-bezier(.2,1.4,.4,1); }
.menu button { text-align: left; background: none; border: 0; padding: 11px 12px; border-radius: 12px; font-size: 14px; }
.menu button:hover { background: rgba(255,255,255,.06); }
.menu-credits { margin: 4px 12px 8px; font-size: 13px; color: var(--text-2); }
.menu-credits b { font-family: var(--font-display); color: var(--text); font-size: 16px; }
.menu-credits small { color: var(--text-3); font-size: 12px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

.home { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; padding: 6vh 16px 22vh; }
.hello { font-family: var(--font-display); font-size: clamp(22px, 4vw, 30px); margin: 0 0 6px; opacity: 0; animation: rise .8s forwards; }
.sub { color: var(--text-3); font-size: 13px; margin: 0 0 28px; opacity: 0; animation: rise .8s .1s forwards; }

/* Lecture vocale */
.hello-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.voice-btn { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(0, 229, 255, .5);
  background: radial-gradient(circle at 35% 30%, rgba(0, 229, 255, .35), rgba(139, 92, 255, .25) 60%, rgba(14,16,38,.8));
  display: grid; place-items: center; box-shadow: 0 0 22px rgba(0, 229, 255, .35); transition: transform .25s, box-shadow .25s; }
.voice-btn:hover { transform: scale(1.06); box-shadow: 0 0 34px rgba(255, 43, 214, .55); }
.voice-btn svg { width: 20px; height: 20px; fill: #fff; position: relative; }
.voice-btn .ic-stop, .voice-btn.speaking .ic-play { display: none; }
.voice-btn.speaking .ic-stop { display: block; }
.vb-ring { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(0, 229, 255, .45); animation: ringPulse 2.4s ease-out infinite; }
.voice-btn.speaking .vb-ring { border-color: var(--pink); animation-duration: 1s; }
.voice-btn.loading .vb-ring { border-style: dashed; animation: turn 1.2s linear infinite; }
@keyframes ringPulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.voice-panel { margin: 0 0 22px; padding: 16px 18px; border-radius: 18px; background: rgba(14,16,38,.6); border: 1px solid rgba(0, 229, 255, .25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: rise .5s forwards; }
.wave { display: flex; gap: 4px; align-items: center; height: 28px; margin-bottom: 10px; }
.wave i { width: 4px; height: 6px; border-radius: 4px; background: linear-gradient(var(--cyan), var(--pink)); box-shadow: 0 0 8px rgba(0, 229, 255, .6); }
.voice-panel.on .wave i { animation: bar .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.7s !important; } .wave i:nth-child(3) { animation-delay: -.2s !important; }
.wave i:nth-child(4) { animation-delay: -.5s !important; } .wave i:nth-child(5) { animation-delay: -.1s !important; }
.wave i:nth-child(6) { animation-delay: -.6s !important; } .wave i:nth-child(7) { animation-delay: -.3s !important; }
.wave i:nth-child(8) { animation-delay: -.8s !important; } .wave i:nth-child(9) { animation-delay: -.4s !important; }
@keyframes bar { 50% { height: 26px; } }
.voice-panel { text-align: center; }
.voice-panel .wave { justify-content: center; }
.voice-text { margin: 0; min-height: 3.3em; display: grid; place-items: center; font-size: clamp(18px, 3.2vw, 22px); font-weight: 500;
  line-height: 1.5; color: #fff; text-shadow: 0 0 18px rgba(0, 229, 255, .35); }
.voice-text.show { animation: captionIn .55s cubic-bezier(.2,.9,.2,1); }
@keyframes captionIn { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
.voice-engine { margin: 8px 0 0; font-size: 11px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.btn-ms { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; border-radius: 14px; text-decoration: none; font-weight: 600;
  background: #fff; color: #1b1b1b; box-shadow: 0 0 26px rgba(0, 164, 239, .35); transition: transform .2s, box-shadow .2s; }
.btn-ms:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0, 164, 239, .55); }
.btn-ms svg { width: 20px; height: 20px; }
.btn-ms.disabled { opacity: .45; pointer-events: none; }
.mini.unsub:hover { border-color: var(--c-newsletter); box-shadow: 0 0 12px var(--c-newsletter); color: var(--c-newsletter); }
.analysing { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 13px; margin: 0 0 14px; }
.analysing::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--cyan); animation: turn .9s linear infinite; }

/* Tarifs selon les options */
.rates { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.rates li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); padding: 7px 10px; border-radius: 10px; background: rgba(0,0,0,.25); }
.rates li b { font-family: var(--font-display); color: var(--text); font-size: 12.5px; white-space: nowrap; }
.mode { position: relative; }
.mode .rate { position: absolute; top: 14px; right: 14px; font-family: var(--font-display); font-size: 11px; letter-spacing: .03em; color: var(--cyan);
  padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(0, 229, 255, .35); background: rgba(0, 229, 255, .08); }
.mode b { padding-right: 110px; }
.voice-opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px dashed rgba(255, 43, 214, .45); background: rgba(255, 43, 214, .05); transition: all .3s; }
.voice-opt .sw { flex: none; width: 44px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.1); position: relative; transition: background .3s, box-shadow .3s; }
.voice-opt .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
.voice-opt.on { border-style: solid; border-color: var(--pink); box-shadow: 0 0 22px rgba(255, 43, 214, .3); }
.voice-opt.on .sw { background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.voice-opt.on .sw::after { transform: translateX(20px); }
.voice-opt span:last-child { display: grid; gap: 2px; }
.voice-opt b { font-size: 14.5px; }
.voice-opt small { color: var(--text-3); font-size: 12.5px; }
.total-rate { margin: 2px 0 0; text-align: center; font-size: 14px; color: var(--text-2); }
.total-rate b { font-family: var(--font-display); font-size: 18px; background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Les bandes */
.slides { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slide { --c: var(--c-other); position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px 10px 18px;
  border-radius: 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, rgba(14,16,38,.7)), rgba(14,16,38,.55) 55%);
  border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: pointer;
  opacity: 0; transform: translateX(60px) skewX(-6deg); transition: border-color .3s, box-shadow .3s, transform .3s; }
.slide.in { opacity: 1; transform: none; transition: opacity .7s, transform .8s cubic-bezier(.2,.9,.2,1), border-color .3s, box-shadow .3s; }
.slide::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c), 0 0 24px var(--c); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--c) 30%, transparent) 50%, transparent 70%); transform: translateX(-110%); pointer-events: none; }
.slide.in::after { animation: sweep 1.4s .2s ease-out; }
.slide:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 35%, transparent); transform: translateX(4px); }
.slide:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.slide.gone { transform: translateX(-110%); opacity: 0; transition: transform .5s cubic-bezier(.6,-.2,.7,1), opacity .5s; }
@keyframes sweep { to { transform: translateX(110%); } }
.slide .ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.slide .ico svg { width: 18px; height: 18px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slide .txt { flex: 1; min-width: 0; }
.slide .txt b { display: block; font-weight: 600; font-size: 15px; }
.slide .txt b em { font-style: normal; font-family: var(--font-display); font-weight: 700; }
.slide .txt small { display: block; color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide .go { flex: none; color: var(--text-3); font-size: 18px; transition: transform .3s, color .3s; }
.slide:hover .go { transform: translateX(3px); color: var(--text); }
.pill-btn { flex: none; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; transition: background .25s, box-shadow .25s; }
.pill-btn:hover { background: color-mix(in srgb, var(--c) 28%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 45%, transparent); }
.pill-btn.confirm { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: 0 0 18px var(--bad); animation: blink 1s infinite; }

.calm { text-align: center; padding: 10vh 0; color: var(--text-2); font-family: var(--font-display); letter-spacing: .12em; }
.orb { width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 30%, var(--violet) 65%, transparent 70%);
  box-shadow: 0 0 70px var(--cyan); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); box-shadow: 0 0 120px var(--pink); } }

/* ---------- Fenêtres ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(3, 4, 12, .72); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .35s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-panel { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; display: grid; gap: 14px;
  transform: translateY(30px) scale(.94); transition: transform .5s cubic-bezier(.2,1.3,.4,1); }
.modal.open .modal-panel { transform: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal h2 { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; margin: 0; line-height: 1.35; }
.modal label { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.modal label small { color: var(--text-3); }
.modal input:not([type=checkbox]) { padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .25s, box-shadow .25s; }
.modal input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .16), 0 0 20px rgba(0, 229, 255, .22); }
.check { display: flex !important; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--text) !important; font-size: 13.5px !important; line-height: 1.45; }
.check input { position: absolute; opacity: 0; }
.check i { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line); background: rgba(0,0,0,.35); display: grid; place-items: center; transition: all .25s; }
.check input:checked + i { background: linear-gradient(135deg, var(--cyan), var(--pink)); border-color: transparent; box-shadow: 0 0 14px rgba(255, 43, 214, .45); }
.check input:checked + i::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 700; }
.check input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-error { margin: 0; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; background: rgba(255, 84, 112, .1); border: 1px solid rgba(255, 84, 112, .45); }
.switch { text-align: center; font-size: 13.5px; color: var(--text-2); margin: 0; }
.offer { border-radius: 16px; padding: 16px; text-align: center; background: linear-gradient(135deg, rgba(0, 229, 255, .1), rgba(255, 43, 214, .1)); border: 1px solid rgba(0, 229, 255, .3); }
.offer-big { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; }
.offer-big b { font-family: var(--font-display); font-size: 40px; font-weight: 900; background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.offer-big span { font-weight: 500; }
.offer p { margin: 8px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.offer p b { color: var(--text); }

/* Assistant */
.wizard-panel { width: min(500px, 100%); min-height: 380px; align-content: start; }
.steps { position: relative; display: flex; justify-content: space-between; margin: 2px 6px 8px; }
.steps span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); z-index: 1; transition: background .4s, box-shadow .4s; }
.steps span.on { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.steps::before { content: ""; position: absolute; left: 5px; right: 5px; top: 4px; height: 2px; background: rgba(255,255,255,.08); }
.steps i { position: absolute; left: 5px; top: 4px; height: 2px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); box-shadow: 0 0 10px var(--pink); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.step { display: none; gap: 16px; }
.step.active { display: grid; animation: stepIn .55s cubic-bezier(.2,.9,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } }
.lead { color: var(--text-2); font-size: 14px; line-height: 1.6; margin: 0; }
.center { text-align: center; }
.providers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.providers button { padding: 18px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); display: grid; gap: 4px; transition: all .3s; }
.providers button:last-child { grid-column: span 2; }
.providers button b { font-family: var(--font-display); font-size: 15px; letter-spacing: .04em; }
.providers button small { color: var(--text-3); font-size: 12px; }
.providers button:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(0, 229, 255, .3); transform: translateY(-2px); }
.guide { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: g; display: grid; gap: 10px; }
.guide li { counter-increment: g; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.guide li::before { content: counter(g); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 12px;
  border: 1px solid var(--cyan); color: var(--cyan); box-shadow: 0 0 10px rgba(0, 229, 255, .35); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: grid; gap: 14px; }
.testing { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.loader { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--cyan); border-right-color: var(--pink); animation: turn .8s linear infinite; }
.modes { display: grid; gap: 10px; }
.mode { text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); display: grid; gap: 4px; transition: all .3s; }
.mode b { font-size: 15px; }
.mode small { color: var(--text-3); font-size: 13px; line-height: 1.45; }
.mode:hover { border-color: rgba(0, 229, 255, .5); }
.mode.on { border-color: var(--cyan); background: rgba(0, 229, 255, .1); box-shadow: 0 0 24px rgba(0, 229, 255, .28); }
.done-check { width: 92px; height: 92px; margin: 10px auto 0; }
.done-check svg { width: 100%; height: 100%; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done-check circle { stroke: var(--cyan); stroke-dasharray: 151; stroke-dashoffset: 151; filter: drop-shadow(0 0 8px var(--cyan)); }
.done-check path { stroke: var(--pink); stroke-dasharray: 40; stroke-dashoffset: 40; filter: drop-shadow(0 0 8px var(--pink)); }
.step.active .done-check circle { animation: draw .8s .1s ease forwards; }
.step.active .done-check path { animation: draw .5s .8s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Détail d'une bande */
.sheet .modal-panel { width: min(560px, 100%); }
.bulk { display: flex; gap: 8px; flex-wrap: wrap; }
.bulk .pill-btn { --c: var(--cyan); }
.bulk .pill-btn.danger { --c: var(--bad); }
.mails { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mail { --c: var(--c-other); position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 12px 16px; border-radius: 14px; background: rgba(255,255,255,.035);
  opacity: 0; transform: translateY(10px); animation: rise .5s forwards; transition: transform .45s, opacity .45s; }
.mail::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.mail.gone { transform: translateX(110%); opacity: 0; }
.mail .body { flex: 1; min-width: 0; }
.mail .who { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; }
.mail .who time { color: var(--text-3); font-weight: 400; font-size: 12px; white-space: nowrap; }
.mail .subj { font-size: 13px; margin: 2px 0; }
.mail .sum { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.mail .acts { display: flex; gap: 6px; flex: none; }
.mini { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); display: grid; place-items: center; transition: all .2s; }
.mini svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(0, 229, 255, .4); }
.mini.danger:hover { border-color: var(--bad); box-shadow: 0 0 12px var(--bad); color: var(--bad); }
.mini.confirm { background: var(--bad); border-color: var(--bad); color: #fff; }
.empty { color: var(--text-3); font-size: 14px; text-align: center; padding: 18px 0; }

/* ---------- Analyse ---------- */
.scan { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 26px; background: rgba(3, 4, 12, .84); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .4s; }
.scan.open { opacity: 1; pointer-events: auto; }
.radar { width: 220px; height: 220px; border-radius: 50%; position: relative; overflow: hidden; border: 1px solid rgba(0, 229, 255, .5);
  box-shadow: 0 0 40px rgba(0, 229, 255, .35), inset 0 0 40px rgba(0, 229, 255, .2); background: repeating-radial-gradient(circle, transparent 0 36px, rgba(0, 229, 255, .22) 37px 38px); }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(0, 229, 255, .6), transparent 30%); animation: turn 1.6s linear infinite; }
.radar i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 14px var(--pink); animation: ping 1.6s ease-out infinite; }
.radar i:nth-of-type(1) { top: 30%; left: 62%; } .radar i:nth-of-type(2) { top: 64%; left: 30%; animation-delay: .6s; } .radar i:nth-of-type(3) { top: 48%; left: 78%; animation-delay: 1.1s; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.scan-text { font-family: var(--font-display); letter-spacing: .14em; margin: 0; animation: blink 1.4s infinite; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 13px 16px; border-radius: 14px; background: rgba(12, 14, 34, .96); border: 1px solid var(--line); font-size: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.5); animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
.toast.ok { border-color: rgba(46, 242, 160, .5); box-shadow: 0 0 22px rgba(46, 242, 160, .2); }
.toast.err { border-color: rgba(255, 84, 112, .55); box-shadow: 0 0 22px rgba(255, 84, 112, .2); }
.toast.out { opacity: 0; transition: opacity .35s; }

@media (max-width: 520px) {
  .modal-panel { padding: 20px; }
  .slide { padding-left: 16px; gap: 10px; }
  .pill-btn { padding: 7px 11px; }
  .mail { flex-wrap: wrap; }
  .mail .acts { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #stars, .grid-floor { display: none; }
}


/* =====================================================================
   Briefing : apparitions synchronisées avec la voix, animations renforcées
   ===================================================================== */
.slide.pending { opacity: 0; transform: translateX(90px) rotateY(-28deg) scale(.9); filter: blur(10px); pointer-events: none; transition: none; }
.slides { perspective: 1200px; }
.slide.burst { animation: slideBurst 1s cubic-bezier(.2,.9,.2,1) both; }
@keyframes slideBurst {
  0%   { opacity: 0; transform: translateX(140px) skewX(-14deg) rotateY(-30deg) scale(.82); filter: blur(12px) brightness(2.2); }
  45%  { opacity: 1; filter: blur(0) brightness(1.7); }
  65%  { transform: translateX(-10px) skewX(3deg) rotateY(4deg) scale(1.03); }
  82%  { transform: translateX(4px) skewX(-1deg) scale(.995); filter: brightness(1.1); }
  100% { opacity: 1; transform: none; filter: none; }
}
.slide.burst::after { animation: sweep 1.1s .25s ease-out; }
.slide .ico { position: relative; }
.slide.burst .ico::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--c);
  animation: icoRing 1.1s .2s ease-out both; }
@keyframes icoRing { from { transform: scale(.6); opacity: 1; box-shadow: 0 0 22px var(--c); } to { transform: scale(2.4); opacity: 0; } }
.slide.burst .txt b em { display: inline-block; animation: numPop .8s .35s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes numPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* Bande dont la voix est en train de parler */
.slide.speaking { transform: translateX(6px) scale(1.025); border-color: var(--c);
  box-shadow: 0 0 0 1px var(--c), 0 0 36px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 30px color-mix(in srgb, var(--c) 18%, transparent);
  animation: speakGlow 1.4s ease-in-out infinite; }
.slide.burst.speaking { animation: slideBurst 1s cubic-bezier(.2,.9,.2,1) both, speakGlow 1.4s 1s ease-in-out infinite; }
@keyframes speakGlow { 50% { box-shadow: 0 0 0 1px var(--c), 0 0 60px color-mix(in srgb, var(--c) 75%, transparent), inset 0 0 40px color-mix(in srgb, var(--c) 28%, transparent); } }
.slide.speaking::before { width: 4px; animation: barPulse .7s ease-in-out infinite alternate; }
@keyframes barPulse { to { box-shadow: 0 0 20px var(--c), 0 0 44px var(--c); } }

/* Salutation tapée lettre par lettre */
.hello.typing::after { content: ""; display: inline-block; width: .55em; height: .9em; margin-left: 4px; vertical-align: -2px;
  background: linear-gradient(var(--cyan), var(--pink)); box-shadow: 0 0 12px var(--cyan); animation: blink .8s steps(2) infinite; }

/* Panneau de voix holographique */
.voice-panel.holo { position: relative; overflow: hidden; border: 1px solid rgba(0, 229, 255, .35);
  background: linear-gradient(135deg, rgba(0, 229, 255, .08), rgba(139, 92, 255, .08) 50%, rgba(255, 43, 214, .08)), rgba(10, 12, 30, .7);
  box-shadow: 0 0 40px rgba(0, 229, 255, .18), inset 0 0 40px rgba(139, 92, 255, .12); animation: holoIn .6s cubic-bezier(.2,1.3,.4,1); }
@keyframes holoIn { from { opacity: 0; transform: scaleY(.2) scaleX(.9); filter: brightness(3); } }
.voice-panel .scan-line { position: absolute; left: 0; right: 0; height: 40%; top: -40%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, .12), transparent); animation: scanDown 2.6s linear infinite; }
@keyframes scanDown { to { top: 110%; } }
body.briefing .voice-btn { transform: scale(1.12); }
body.briefing .grid-floor { animation-duration: 1.6s; }
body.briefing .aurora { opacity: .75; transition: opacity 1s; }

/* Orbe « Écouter votre briefing » (son automatique refusé par le navigateur) */
.brief-tap { display: grid; justify-items: center; gap: 14px; padding: 24px 0 30px; animation: rise .6s forwards; }
.tap-orb { position: relative; width: 120px; height: 120px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 28%, var(--violet) 62%, #2a0d55 100%);
  box-shadow: 0 0 60px var(--cyan), 0 0 120px rgba(255, 43, 214, .45); animation: breathe 3s ease-in-out infinite; }
.tap-orb svg { width: 38px; height: 38px; fill: #fff; position: relative; filter: drop-shadow(0 0 8px rgba(0,0,0,.4)); }
.tap-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0, 229, 255, .6); animation: ringPulse 2.4s ease-out infinite; }
.tap-orb .ring:nth-child(2) { animation-delay: .8s; border-color: rgba(255, 43, 214, .6); }
.tap-orb .ring:nth-child(3) { animation-delay: 1.6s; }
.tap-title { margin: 6px 0 0; font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: 14px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--cyan)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3s linear infinite; }


/* =====================================================================
   Performances : uniquement transform / opacity dans les animations,
   aucune ombre ni flou animés, pas de débordement horizontal.
   ===================================================================== */
html, body { overflow-x: hidden; }
.home { overflow-x: clip; padding-left: 20px; padding-right: 20px; }
.slide { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.slide.pending { opacity: 0; transform: translateX(48px) scale(.96); filter: none; }

@keyframes slideBurst {
  0%   { opacity: 0; transform: translateX(56px) skewX(-10deg) scale(.9); }
  55%  { opacity: 1; transform: translateX(-6px) skewX(2deg) scale(1.02); }
  80%  { transform: translateX(2px) scale(.997); }
  100% { opacity: 1; transform: none; }
}
/* Halo de la bande en cours : couche lumineuse dont seule l'opacité varie. */
.slide.speaking { transform: scale(1.015); border-color: var(--c);
  box-shadow: 0 0 0 1px var(--c), 0 0 30px color-mix(in srgb, var(--c) 45%, transparent); animation: none; }
.slide.burst.speaking { animation: slideBurst .9s cubic-bezier(.2,.9,.2,1) both; }
.slide .glow { display: none; }
.slide.speaking::before { animation: barPulse .8s ease-in-out infinite alternate; }
@keyframes barPulse { from { opacity: .55; transform: scaleY(.85); } to { opacity: 1; transform: scaleY(1); } }
@keyframes holoIn { from { opacity: 0; transform: scaleY(.3); } }
.voice-panel .scan-line { top: 0; height: 40%; transform: translateY(-100%); animation: scanDown 2.6s linear infinite; }
@keyframes scanDown { to { transform: translateY(260%); } }
.wave i { height: 24px; transform: scaleY(.25); transform-origin: center; }
@keyframes bar { 50% { transform: scaleY(1); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .9; } }
.voice-panel.waiting .voice-wait { display: block; }
.voice-wait { display: none; width: 26px; height: 26px; margin: 4px auto 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.12);
  border-top-color: var(--cyan); border-right-color: var(--pink); animation: turn .8s linear infinite; }
.voice-panel.waiting .wave i { animation-play-state: paused; }

/* Pendant le briefing, le décor se met en pause : toute la puissance va à la voix et aux bandes. */
body.briefing .aurora span, body.briefing .grid-floor, body.briefing .glass.neon-border { animation-play-state: paused; }
body.briefing .grid-floor { animation-duration: 5s; }

/* Mode allégé : téléphones et appareils modestes */
.lite .aurora { filter: blur(70px); opacity: .4; }
.lite .aurora span, .lite .grid-floor { animation: none; }
.lite .glass, .lite .slide, .lite .voice-panel, .lite .topbar, .lite .scan {
  backdrop-filter: none; -webkit-backdrop-filter: none; }
.lite .slide { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, #0e1026), #0e1026 60%); }
.lite .glass { background: rgba(14, 16, 38, .96); }
.lite .glass.neon-border { animation: none; }
.lite .btn-neon, .lite .brand b, .lite .tap-title { animation: none; }
.lite .btn-neon .btn-glow { animation-duration: 6s; }
.lite .modal { backdrop-filter: none; }
.lite .slide.speaking { box-shadow: 0 0 0 1px var(--c); }

/* =====================================================================
   Briefing sans défilement : sous-titres fixés en bas, bandes compactes.
   À la fin, tout reprend sa taille et la page remonte (priorités en haut).
   ===================================================================== */
.slide { transition: min-height .5s ease, padding .5s ease, border-color .3s, box-shadow .3s, transform .3s; }
.slide .txt small { transition: opacity .4s, max-height .5s; max-height: 2em; }
body.briefing .home { padding-bottom: 170px; }
body.briefing .hello-row { margin-bottom: 6px; }
body.briefing .sub { margin-bottom: 14px; }
body.briefing .slides { gap: 7px; }
body.briefing .slide { min-height: 50px; padding-top: 6px; padding-bottom: 6px; scroll-margin-bottom: 160px; scroll-margin-top: 90px; }
body.briefing .slide .ico { width: 30px; height: 30px; }
body.briefing .slide .txt b { font-size: 14.5px; }
body.briefing .slide .txt small { font-size: 12px; }
body.briefing .slide .pill-btn { padding: 5px 11px; font-size: 12px; }

body.briefing .voice-panel {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(14px, env(safe-area-inset-bottom));
  width: auto; max-width: 560px; margin: 0 auto; padding: 10px 16px 12px; border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(0, 229, 255, .18);
  animation: dockIn .55s cubic-bezier(.2,1.2,.4,1);
}
@keyframes dockIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }
body.briefing .voice-panel .wave { height: 16px; margin-bottom: 4px; }
body.briefing .voice-panel .wave i { height: 16px; }
body.briefing .voice-text { min-height: 0; font-size: 16px; line-height: 1.45; }
body.briefing .voice-engine { display: none; }
body.briefing .voice-wait { width: 18px; height: 18px; margin-top: 0; }
.lite body.briefing .voice-panel, .lite.briefing .voice-panel { background: rgba(12, 14, 34, .97); }


/* Confidentialité */
.trust-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text-2);
  font-size: 14px; padding: 8px 12px; border-radius: 999px; transition: color .25s, background .25s; }
.trust-link svg { width: 16px; height: 16px; fill: none; stroke: var(--good); stroke-width: 2; stroke-linecap: round; }
.trust-link:hover { color: var(--text); background: rgba(46, 242, 160, .08); }
.privacy { width: min(560px, 100%); }
.pv { border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.pv h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.pv h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pv); box-shadow: 0 0 10px var(--pv); }
.pv ul, .pv ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.pv li b { color: var(--text); }
.pv li::marker { color: var(--pv); }
.pv .note { margin: 10px 0 0; font-size: 12px; color: var(--text-3); }
.pv.never { --pv: var(--bad); border-color: rgba(255, 84, 112, .3); }
.pv.how { --pv: var(--cyan); }
.pv.safe { --pv: var(--good); }
.pv.control { --pv: var(--pink); }
.menu .menu-danger { color: var(--bad); }
.btn-danger { border: 0; border-radius: 14px; padding: 13px 20px; font-weight: 600; color: #fff; background: var(--bad); box-shadow: 0 0 20px rgba(255, 84, 112, .35); }
.btn-danger[disabled] { opacity: .6; }
.trust-link { justify-content: center; text-align: center; max-width: 360px; line-height: 1.4; }
.trust-link svg { flex: none; }


/* Soutenir */
.menu .menu-support { color: var(--pink); font-weight: 600; }
.support { width: min(440px, 100%); text-align: center; }
.heart { font-size: 46px; line-height: 1; margin: 2px auto 0; color: var(--pink); text-shadow: 0 0 24px var(--pink); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.note-box { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; color: var(--text-2);
  background: rgba(46, 242, 160, .07); border: 1px solid rgba(46, 242, 160, .3); }
.note-box b { color: var(--text); }
.center-text { display: flex; justify-content: center; text-decoration: none; }


/* Recharger */
.menu .menu-topup { color: var(--cyan); font-weight: 600; }
.topup { width: min(480px, 100%); }
.balance { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, .1), rgba(255, 43, 214, .1)); border: 1px solid rgba(0, 229, 255, .3); }
.balance span { color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.balance b { font-family: var(--font-display); font-size: 28px; background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.balance small { width: 100%; text-align: center; color: var(--text-3); font-size: 12.5px; }
.balance.bump b { animation: numPop .8s cubic-bezier(.2,1.6,.4,1); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.pack b { display: block; font-family: var(--font-display); font-size: 18px; }
.pack small { color: var(--text-3); font-size: 12px; }
.topup-steps { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 12px; }
.topup-steps li { counter-increment: t; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; }
.topup-steps li::before { content: counter(t); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 12px;
  border: 1px solid var(--cyan); color: var(--cyan); }
.topup-steps li > :not(span) { grid-column: 2; }
.code-chip { justify-self: start; font-family: var(--font-display); letter-spacing: .12em; font-size: 16px; padding: 10px 16px; border-radius: 12px;
  border: 1px dashed var(--pink); background: rgba(255, 43, 214, .08); color: var(--text); }
.code-chip.copied { border-style: solid; border-color: var(--good); background: rgba(46, 242, 160, .1); }
.topup-wait { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.topup-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.topup-history li { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.topup-history li b { color: var(--good); font-weight: 600; }
.btn-neon.disabled { opacity: .45; pointer-events: none; }
.topup .help { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); text-align: center; }

/* Pendant une analyse, l'écran d'accueil s'efface derrière le radar. */
body.scanning #calm, body.scanning .home .slides { visibility: hidden; }
.scan { background: rgba(3, 4, 12, .94); }

/* Notifications avec « Annuler » */
.toast { display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; }
.toast > span { flex: 1; }
.toast-undo { flex: none; border: 1px solid rgba(0, 229, 255, .6); background: rgba(0, 229, 255, .12); color: var(--cyan);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .03em; cursor: pointer; }
.toast-undo:hover { background: rgba(0, 229, 255, .25); box-shadow: 0 0 14px rgba(0, 229, 255, .45); }
.toast-timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--cyan);
  transform-origin: left; animation: toastTimer 7s linear forwards; }
@keyframes toastTimer { to { transform: scaleX(0); } }
html.lite .toast-timer { animation: none; display: none; }

/* Actions instantanées */
.mail { transition: transform .4s cubic-bezier(.6,-.2,.7,1), opacity .4s; }

/* Historique */
.history-search { width: 100%; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 15px; }
.history-search:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .18); }
.mail.hist .what { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12px; margin-top: 3px; }
.mail.hist .what b { color: var(--c); font-weight: 600; }
.mail.hist .what em { color: var(--text-3); font-style: normal; }
.mail.hist.undone .what b { text-decoration: line-through; opacity: .7; }
.mail.hist .acts { align-self: center; }
.pill-btn.restore { --c: var(--cyan); }
.restored { color: var(--good, #2ef2a0); font-size: 13px; font-weight: 600; white-space: nowrap; }
.history-more { --c: var(--cyan); display: block; margin: 14px auto 4px; }

/* Raccourci sur l'écran d'accueil */
.menu-install { color: var(--cyan) !important; }
.install-steps { margin: 6px 0 4px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.install-steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 52px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); line-height: 1.45; }
.install-steps li::before { content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: #05060f; background: linear-gradient(135deg, var(--cyan), var(--magenta, #ff2bd6)); }
.install-steps b { color: var(--cyan); font-weight: 600; }
/* Ouvert depuis l'icône : on tient compte des zones système (encoche, barre de gestes). */
@media (display-mode: standalone) { body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); } }

/* Fenêtre de confirmation */
.confirm-panel { max-width: 440px; }
.confirm-list { margin: 4px 0 18px; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.confirm-actions button { flex: 1 1 140px; }

/* Compteur pendant l'analyse */
.scan-progress { display: grid; justify-items: center; gap: 10px; width: min(320px, calc(100vw - 48px)); }
.scan-count { margin: 0; font-family: var(--font-display); font-size: 34px; letter-spacing: .04em; }
.scan-count b { background: linear-gradient(90deg, var(--cyan), #ff2bd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scan-count span { color: var(--text-3); font-size: 20px; }
.scan-bar { width: 100%; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.scan-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), #ff2bd6);
  box-shadow: 0 0 12px rgba(0, 229, 255, .6); transform-origin: left; transform: scaleX(0); transition: transform .6s ease; }
.scan-sub { margin: 0; color: var(--text-2); font-size: 13px; text-align: center; min-height: 1.2em; }

/* Compteur du titre : petite pulsation quand il change */
#detailTitle.bump { animation: countBump .35s ease; }
@keyframes countBump { 40% { transform: scale(1.06); color: var(--cyan); } }
html.lite #detailTitle.bump { animation: none; }

/* Mise à jour sur place de l'accueil */
.slide.steady::after { animation: none; }
.slide.bump .txt b em { display: inline-block; animation: countBump .35s ease; }

/* Mails regroupés par expéditeur */
.mail.group { flex-wrap: wrap; background: rgba(255,255,255,.05);
  box-shadow: 4px 4px 0 -1px rgba(255,255,255,.03), 8px 8px 0 -2px rgba(255,255,255,.02); }
.mail.group .subj { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.mail.group .latest { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail.group .badge { flex: none; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px;
  border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.group-toggle { margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer; }
.group-toggle:hover { color: var(--cyan); border-color: var(--cyan); }
.mail.group > .mails.sub { flex-basis: 100%; margin-top: 10px; padding-left: 10px; border-left: 1px dashed color-mix(in srgb, var(--c) 40%, transparent); }
.mail.group > .mails.sub .mail { background: rgba(255,255,255,.03); }

.confirm-modal { z-index: 58; }  /* par-dessus la fenêtre de détail */
.confirm-actions .btn-danger { width: auto; }

/* Résumé condensé, déployable */
.mail .sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mail.group .sum { -webkit-line-clamp: 1; }
.mail.open .sum { display: block; -webkit-line-clamp: unset; overflow: visible; }
.mail.expandable .body { cursor: pointer; border-radius: 10px; outline-offset: 4px; }
.mail .facts { display: none; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 0; font-size: 12.5px; }
.mail.open .facts { display: grid; animation: factsIn .3s ease; }
.mail .facts dt { color: var(--c); font-weight: 600; }
.mail .facts dd { margin: 0; color: var(--text-2); }
.mail .more { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--cyan); }
.mail .more::after { content: " ⌄"; }
.mail.open .more::after { content: " ⌃"; }
@keyframes factsIn { from { opacity: 0; transform: translateY(-4px); } }
html.lite .mail.open .facts { animation: none; }

/* Largeur des fenêtres : un mot très long (lien, référence de commande...) ne doit jamais
   élargir les cartes au-delà de l'écran ; il passe à la ligne. */
.modal-panel { overflow-x: hidden; }
.mails { grid-template-columns: minmax(0, 1fr); }
.mail, .mail .body { min-width: 0; }
.mail .who span, .mail .subj, .mail .sum, .mail .facts dd, .mail.group .latest { overflow-wrap: anywhere; }
.mail .who { min-width: 0; }
.mail .who span { min-width: 0; }

/* Administration : marge réelle */
.menu-admin { color: var(--text-2) !important; }
.admin-panel { width: min(760px, 100%) !important; }
.period { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.period button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.period button.on { color: #05060f; background: var(--cyan); border-color: var(--cyan); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0; }
.kpi span { font-size: 12px; color: var(--text-2); }
.kpi b { font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; color: var(--text, #e8ecff); font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.kpi.good { border-color: rgba(46, 242, 160, .45); }
.kpi.warn { border-color: rgba(255, 196, 61, .5); }
.kpi.bad { border-color: rgba(255, 84, 112, .55); }
.margin-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.margin-table caption { text-align: left; color: var(--text-2); font-size: 12px; margin-bottom: 6px; }
.margin-table th, .margin-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.margin-table th[scope="row"], .margin-table thead th:first-child { text-align: left; font-weight: 500; }
.margin-table thead th { color: var(--text-3); font-weight: 500; font-size: 12px; }
.margin-notes p { margin: 0 0 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 520px) {
  .margin-table thead th:nth-child(3), .margin-table td:nth-child(3) { display: none; }  /* tokens masqués sur téléphone */
}

/* Plus de crédits */
.no-credit { max-width: 440px; text-align: center; }
.no-credit .panel-head { text-align: left; }
.no-credit-icon { width: 64px; height: 64px; margin: 4px auto 2px; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
  background: radial-gradient(circle, rgba(255, 84, 112, .25), transparent 70%); border: 1px solid rgba(255, 84, 112, .5);
  box-shadow: 0 0 24px rgba(255, 84, 112, .35); }
.no-credit-sub { margin: 0 0 6px; color: var(--text-2); font-size: 13px; }

/* Fenêtres : toujours contenues dans la zone réellement visible (sur téléphone, 100vh inclut la
   barre d'adresse du navigateur, d'où un haut de fenêtre coupé) ; titre et ✕ restent visibles. */
.modal-panel { --pad: 26px; max-height: calc(100vh - 32px); }
@supports (height: 100dvh) {
  .modal { inset: auto; top: 0; left: 0; width: 100%; height: 100dvh; }
  .modal-panel { max-height: calc(100dvh - 32px); }
}
@media (max-width: 520px) { .modal-panel { --pad: 20px; } }
.modal .panel-head { position: sticky; top: calc(-1 * var(--pad)); z-index: 3;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0; padding: var(--pad) var(--pad) 10px;
  background: linear-gradient(rgb(11, 13, 31) 80%, rgba(11, 13, 31, 0)); border-radius: 22px 22px 0 0; }

/* Administration : onglets et comptes */
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); width: fit-content; }
.tabs button { padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; }
.tabs button.on { background: linear-gradient(90deg, var(--cyan), #7b5cff); color: #05060f; font-weight: 600; }
.tab-pane { display: grid; gap: 10px; min-width: 0; }
.tab-pane[hidden] { display: none; }
.admin-total { margin: 0; font-size: 12.5px; color: var(--text-2); }
.admin-users { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.admin-user { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 12px 14px;
  border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.admin-user.flash { animation: flashOk 1s ease; }
@keyframes flashOk { 30% { border-color: rgba(46, 242, 160, .8); box-shadow: 0 0 18px rgba(46, 242, 160, .3); } }
.au-main { min-width: 0; }
.au-who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.au-who b { font-size: 14px; overflow-wrap: anywhere; }
.au-tags { font-size: 12px; color: var(--cyan); }
.au-meta { display: block; margin-top: 3px; font-size: 12px; color: var(--text-3); }
.au-balance { text-align: right; display: grid; }
.au-balance b { font-family: var(--font-display); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.au-balance small { font-size: 12px; color: var(--text-2); }
.admin-user.empty-balance .au-balance b { color: var(--bad, #ff5470); }
.au-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.au-actions .pill-btn { --c: var(--cyan); }
.au-actions input { width: 110px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.3);
  color: inherit; font: inherit; font-size: 13px; }
.au-actions input:focus { outline: none; border-color: var(--cyan); }
.modal .au-actions input { width: 104px; padding: 7px 12px; border-radius: 999px; font-size: 13px; }

/* Page publique : contenu lisible par les moteurs de recherche */
h1.tagline { font-weight: 300; }
h1.tagline span:not(.sr-brand) { color: var(--text-3); }
.sr-brand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--text-3); font-size: 28px;
  text-decoration: none; animation: float 3s ease-in-out infinite; }
.hero > .scroll-hint { opacity: .8; transform: translateX(-50%); animation: float 3s ease-in-out infinite; }
.lp-section { max-width: 980px; margin: 0 auto; padding: 72px 20px 24px; text-align: center; }
.lp-section h2 { font-family: var(--font-display); font-size: clamp(22px, 4vw, 32px); letter-spacing: .03em; line-height: 1.3; margin: 0 0 14px; }
.lp-lead { max-width: 680px; margin: 0 auto 30px; color: var(--text-2); font-size: 16.5px; line-height: 1.7; }
.lp-lead strong { color: var(--text); font-weight: 600; }
.lp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; text-align: left; }
.lp-card { padding: 20px 20px 18px; border-radius: 18px; background: rgba(14, 16, 38, .6); border: 1px solid var(--line); position: relative; overflow: hidden; }
.lp-card::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.lp-card h3, .lp-steps h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.lp-card p, .lp-steps p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.lp-steps { list-style: none; counter-reset: lp; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; text-align: left; }
.lp-steps li { counter-increment: lp; padding: 22px 20px 20px 66px; border-radius: 18px; background: rgba(14, 16, 38, .6); border: 1px solid var(--line); position: relative; }
.lp-steps li::before { content: counter(lp); position: absolute; left: 18px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #05060f; background: linear-gradient(135deg, var(--cyan), var(--pink)); }
.lp-price { max-width: 560px; margin: 0 auto; padding: 28px 24px; border-radius: 22px; background: rgba(14, 16, 38, .7); border: 1px solid rgba(0, 229, 255, .35);
  box-shadow: 0 0 40px rgba(0, 229, 255, .12); display: grid; gap: 12px; justify-items: center; }
.lp-price-main { margin: 0; font-family: var(--font-display); font-size: clamp(18px, 3vw, 24px); line-height: 1.4; }
.lp-price p:not(.lp-price-main) { margin: 0 0 6px; color: var(--text-2); line-height: 1.6; }
.lp-checks { list-style: none; max-width: 640px; margin: 0 auto 12px; padding: 0; display: grid; gap: 10px; text-align: left; }
.lp-checks li { padding-left: 30px; position: relative; color: var(--text-2); line-height: 1.6; }
.lp-checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--good, #2ef2a0); font-weight: 700; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; text-align: left; }
.faq-item { border-radius: 16px; background: rgba(14, 16, 38, .6); border: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary h3 { margin: 0; font-size: 15.5px; font-weight: 600; display: inline; }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--text-2); line-height: 1.65; font-size: 14.5px; }
.lp-final { padding-bottom: 60px; }
.lp-footer { max-width: 980px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; color: var(--text-3); font-size: 13px; }
.lp-footer p { margin: 0; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.lp-footer a, .linklike { color: var(--text-2); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.lp-footer a:hover, .linklike:hover { color: var(--cyan); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.lp-card.c-urgent { --c: var(--c-urgent); }
.lp-card.c-spam { --c: var(--c-spam); }
.lp-card.c-newsletter { --c: var(--c-newsletter); }
.lp-card.c-promo { --c: var(--c-promo); }
.lp-card.c-info { --c: var(--c-info); }
.lp-card.c-action { --c: var(--c-action); }

/* Fenêtres fermées : invisibles aussi pour le clavier et les lecteurs d'écran */
.modal:not(.open) { visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.modal.open { visibility: visible; transition: opacity .35s, visibility 0s; }
