/* Poof Windows — même design que l'app macOS (PoofMacApp : 3 colonnes de
   400 × 860). Les positions reprennent les offsets SwiftUI, mesurés depuis le
   centre de chaque colonne (x 200, y 430). SF Pro → Inter, SF Symbols →
   Phosphor (les deux sont réservés aux plateformes Apple). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: block;
}

:root {
  --sky-top: #005eff;
  --sky-bottom: #797979;
  --card-top: #0a91ff;
  --card-bottom: #0a78ff;
  --orb-top: #0ae2ff;
  --orb-bottom: #0000ff;
  --online: #3ceb82;
  --glass-fill: rgba(255, 255, 255, 0.14);
  --glass-rim: rgba(255, 255, 255, 0.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* `hidden` doit toujours gagner, même sur un élément en display: grid. */
[hidden] { display: none !important; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1020;
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Icônes : SVG Phosphor utilisés comme masque, donc colorables en CSS. */
.ic {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}

/* ---------- Fenêtre ---------- */


/* La fenêtre garde toujours la taille de l'app Mac (1200 × 860). Dans
   l'app Windows, elle remplit exactement la fenêtre ; dans un navigateur,
   elle est centrée et réduite si l'écran est plus petit (voir fit.js). */
.window {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  width: 1200px;
  height: 860px;
  transform: translate(-50%, -50%);
  transform-origin: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.window.native { border-radius: 0; box-shadow: none; }
/* Bandeau « nouvelle version de l'app Windows ». */
.update-bar {
  position: absolute; left: 50%; top: 14px; z-index: 40; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
  border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.update-bar .update-go { padding: 7px 16px; border-radius: 999px; background: #fff; color: #1546e0; font-weight: 700; }
.update-bar .update-go:disabled { opacity: 0.6; }
.update-bar .update-later { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
/* Plein écran : le ciel déborde sur les côtés, sans bord noir. */
.fill body { background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom)); }

.col {
  position: relative;
  flex: 0 0 400px;
  height: 860px;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
}
.col + .col { box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.28); }

.header {
  position: absolute;
  top: 8px;
  left: 20px;
  right: 20px;
  height: 44px;
  display: flex;
  align-items: center;
  z-index: 5;
}
.header-right { justify-content: flex-end; }
.wordmark {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
}
.account {
  font-size: 34px;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.25));
}

.label {
  font-size: 13px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

/* Liquid glass (équivalent de .glassEffect(.regular) d'iOS 26) :
   - un fond translucide légèrement dégradé, flouté et saturé ;
   - un liseré lumineux en diagonale (plus vif en haut à gauche, qui s'éteint
     au milieu et revient en bas à droite), dessiné par ::before ;
   - un reflet spéculaire fixe en haut, plus une tache de lumière qui suit la
     souris (--mx / --my, mis à jour par app.js), dans ::after ;
   - dans Chromium (app Windows), une vraie réfraction des bords via le
     filtre SVG #lg-refract (classe .refraction sur <html>). */
.glass {
  --mx: 50%;
  --my: 0%;
  --hl: 0;
  isolation: isolate;
  background: linear-gradient(160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.05) 68%,
    rgba(255, 255, 255, 0.13) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.7) brightness(1.06);
  backdrop-filter: blur(16px) saturate(1.7) brightness(1.06);
  border: 0;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px rgba(255, 255, 255, 0.14),
    inset 0 0 20px rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(0, 25, 90, 0.18);
}
.glass::before,
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}
.glass::before {
  padding: 1.2px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.22) 28%,
    rgba(255, 255, 255, 0.05) 52%,
    rgba(255, 255, 255, 0.18) 78%,
    rgba(255, 255, 255, 0.65) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.glass::after {
  background:
    radial-gradient(130% 55% at 25% -5%, rgba(255, 255, 255, 0.26), transparent 55%);
}

/* Lumière du curseur, comme une petite source posée au-dessus du verre :
   - un halo large et doux (la lumière diffusée dans l'épaisseur du verre) ;
   - un cœur plus vif et plus petit (le reflet direct) ;
   - le liseré s'allume du côté du curseur (la tranche du verre accroche la
     lumière) ;
   - elle s'allume et s'éteint en fondu (--hl animé), suit la souris avec un
     peu d'inertie (app.js) et s'intensifie au clic. */
@property --hl { syntax: "<number>"; inherits: true; initial-value: 0; }
.glass { transition: --hl 0.45s cubic-bezier(0.25, 0.8, 0.3, 1); }
.glass:hover { --hl: 1; }
.glass:active { --hl: 1.5; transition-duration: 0.12s; }
.glass::after { mix-blend-mode: plus-lighter; }
.glass::after {
  background:
    radial-gradient(circle 46px at var(--mx) var(--my),
      rgba(255, 255, 255, calc(0.2 * var(--hl))),
      rgba(255, 255, 255, calc(0.07 * var(--hl))) 60%,
      transparent),
    radial-gradient(circle 190px at var(--mx) var(--my),
      rgba(200, 225, 255, calc(0.16 * var(--hl))),
      rgba(200, 225, 255, calc(0.05 * var(--hl))) 45%,
      transparent 80%),
    radial-gradient(130% 55% at 25% -5%, rgba(255, 255, 255, 0.26), transparent 55%);
}
.glass::before {
  background:
    radial-gradient(circle 120px at var(--mx) var(--my), rgba(255, 255, 255, calc(0.95 * var(--hl))), transparent 75%),
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.22) 28%,
      rgba(255, 255, 255, 0.05) 52%,
      rgba(255, 255, 255, 0.18) 78%,
      rgba(255, 255, 255, 0.65) 100%);
}
.phone .glass:hover { --hl: 0; }
.reduce-motion .glass { transition: none; }

.refraction .glass {
  -webkit-backdrop-filter: url(#lg-refract) blur(14px) saturate(1.7) brightness(1.06);
  backdrop-filter: url(#lg-refract) blur(14px) saturate(1.7) brightness(1.06);
}

/* ---------- Colonne 1 · Home ---------- */

.card {
  position: absolute;
  left: 15px;
  width: 370px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--card-top), var(--card-bottom));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent 33%, transparent 67%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}
.card-title {
  position: relative;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: rgba(255, 255, 255, 0.92);
}

.card-transfer { top: 83px; height: 394px; }
.card-transfer .card-title { margin-top: 26px; }
.transfer-glow {
  position: absolute;
  left: 50%;
  top: 112px;
  width: 140px;
  height: 100px;
  transform: translateX(-50%) rotate(45deg) scale(0.75, 1);
  border: 20px solid rgba(0, 0, 0, 0.5);
  filter: blur(40px);
}
.transfer-cloud {
  position: absolute;
  left: 50%;
  top: 96px;
  font-size: 118px;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}
.transfer-word {
  position: absolute;
  left: 0;
  right: 0;
  top: 178px;
  font-size: 50px;
  font-weight: 600;
  color: rgba(220, 225, 235, 0.95);
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
}
.transfer-strike,
.transfer-sub {
  position: absolute;
  left: 0;
  right: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
/* Ligne de 145 px sous « Discover exclusivity » (le Rectangle 145 × 1 de PoofHomeView). */
.transfer-strike { top: 328px; }
.transfer-strike::after {
  content: "";
  display: block;
  width: 145px;
  height: 1px;
  margin: 3px auto 0;
  background: rgba(255, 255, 255, 0.9);
}
.transfer-sub { top: 351px; }

.card-help { top: 503px; height: 194px; }
.card-help .card-title { margin-top: 20px; }
.help-icon {
  position: relative;
  display: block;
  margin: 14px auto 0;
  font-size: 100px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

/* ---------- Colonne 2 · Send ---------- */

.hero-clouds {
  position: absolute;
  left: 0;
  top: 22px;
  width: 400px;
  filter: drop-shadow(0 5px 1px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.send-orb {
  position: absolute;
  left: 150px;
  top: 160px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--orb-top), var(--orb-bottom));
  border: 1px solid #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  font-size: 54px;
  transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.hero-device {
  position: absolute;
  top: 178px;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-left { left: 20px; }
.hero-left .ic { font-size: 62px; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.35)); }
.hero-right { left: 260px; top: 180px; }
.add-slot {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-right .label { margin-top: -2px; }

.panel { position: absolute; left: 15px; width: 370px; border-radius: 34px; }
.panel-top { top: 315px; height: 230px; }
.panel-bottom { top: 560px; height: 200px; }

.chip {
  position: absolute;
  top: 325px;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 40px;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.chip .ic { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.chip:hover, .bubble:hover { transform: scale(1.06); }
.chip-1 { left: 40px; }
.chip-2 { left: 150px; }
.chip-3 { left: 260px; }

.premium-bar {
  position: absolute;
  left: 40px;
  top: 435px;
  width: 320px;
  height: 100px;
  border-radius: 24px;
  display: flex;
}

.bubble-slot {
  position: absolute;
  top: 580px;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.slot-1 { left: 41px; }
.slot-2 { left: 150px; }
.slot-3 { left: 259px; }
.bubble {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 40px;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.bubble .ic { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.bubble.empty { font-size: 26px; color: rgba(255, 255, 255, 0.75); }
.dot {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9b9b9b;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
}
.dot.online {
  background: var(--online);
  box-shadow: 0 0 6px rgba(60, 235, 130, 0.5);
}
.dot.online::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--online);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes pulse {
  from { transform: scale(0.75); opacity: 0.45; }
  to { transform: scale(1.1); opacity: 0.04; }
}

/* ---------- Colonne 3 · Received ---------- */

.received-clouds {
  position: absolute;
  left: -100px;
  bottom: -30px;
  width: 600px;
  opacity: 0.75;
  pointer-events: none;
}

.received-panel {
  position: absolute;
  left: 15px;
  top: 150px;
  width: 370px;
  height: 480px;
  border-radius: 34px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
}
.received-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.received-title {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
.received-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
.received-all .ic { font-size: 11px; }
.received-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 30px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 0.6px solid rgba(255, 255, 255, 0.18);
  font-size: 40px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.empty-title { font-size: 18px; font-weight: 800; }
.empty-sub { margin-top: 6px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.65); }

/* ---------- Interaction (souris et clavier, Windows) ---------- */

/* Sur Windows on navigue aussi au clavier (Tab) : l'anneau de focus doit
   rester visible sur le ciel bleu comme sur le verre. */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.send-orb:focus-visible,
.bubble:focus-visible { outline-offset: 4px; border-radius: 50%; }

.chip:active,
.bubble:active { transform: scale(0.97); }
.card-help { cursor: pointer; transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1); }
.card-help:active { transform: scale(0.985); }
.received-all:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Envoi : états interactifs ---------- */

/* Le panneau d'aperçu prend la place du panneau du haut et pousse le reste
   de 242 px vers le bas, comme `panelShift` dans PoofSendView. */
.shiftable {
  position: absolute;
  inset: 0;
  transition: transform 0.5s cubic-bezier(0.25, 1.15, 0.4, 1);
  pointer-events: none;
}
.shiftable > * { pointer-events: auto; }
.col-send.panel-open .shiftable { transform: translateY(242px); }

.panel-preview {
  top: 315px;
  height: 230px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  z-index: 2;
  animation: panel-in 0.45s cubic-bezier(0.25, 1.2, 0.4, 1);
}
@keyframes panel-in { from { opacity: 0; transform: scale(0.9); } }
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.preview-title { font-size: 15px; font-weight: 700; }
.preview-close {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.16);
}
.preview-close:hover { background: rgba(255, 255, 255, 0.26); }
.preview-strip {
  flex: 1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.preview-strip::-webkit-scrollbar { display: none; }
.tile {
  position: relative;
  flex: 0 0 110px;
  height: 150px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  text-align: center;
}
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .ic { font-size: 36px; }
.tile-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 8px 7px;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.tile-meta { display: block; font-weight: 500; opacity: 0.8; font-size: 9px; }
.tile.clip { flex-basis: 100%; padding: 14px; align-items: flex-start; justify-content: flex-start; font-size: 13px; line-height: 1.4; text-align: left; overflow-y: auto; }
.tile-state {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.35);
  font-size: 13px; font-weight: 700;
}
.tile-state.done { background: rgba(20, 160, 90, 0.35); }
.tile-state.failed { background: rgba(200, 40, 40, 0.4); }

.chip.active { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.55); }
.orb-icon { font-size: 54px; }
.send-orb[data-kind="photo"] .orb-icon,
.send-orb[data-kind="file"] .orb-icon,
.send-orb[data-kind="clipboard"] .orb-icon { font-size: 42px; }
.send-orb.dragging { transition: none; }
.send-orb.ready { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 40, 255, 0.45); }

.send-pill {
  position: absolute;
  left: 50%;
  top: 270px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  background: rgba(40, 110, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 18px rgba(0, 60, 255, 0.25);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 3;
  animation: pop-in 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.send-pill .ic { font-size: 16px; }
.send-pill:hover { background: rgba(40, 110, 255, 0.7); }
@keyframes pop-in { from { opacity: 0; transform: translateX(-50%) scale(0.7); } }

.hero-right .dev-icon { font-size: 60px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35)); }
.col-send .hint-shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.bubble.selected { outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: -2px; transform: scale(1.04); }
.bubble .ic { pointer-events: none; }

.drop-veil {
  position: absolute; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: rgba(0, 60, 255, 0.35);
  border: 3px dashed rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  font-size: 28px; font-weight: 800;
  pointer-events: none;
}

/* ---------- Reçus ---------- */

.received-count { margin-left: 6px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.65); }
.received-grid {
  flex: 1;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 108px;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: none;
  align-content: start;
}
.received-grid::-webkit-scrollbar { display: none; }
.received-grid .tile { height: auto; cursor: pointer; }
.received-grid .tile:hover { border-color: rgba(255, 255, 255, 0.5); }
.tile-lock { position: absolute; top: 7px; right: 7px; font-size: 13px; }
.account { font-size: 34px; display: grid; }

/* ---------- Feuilles (modales) ---------- */

.sheet-backdrop {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(0, 10, 40, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}
.sheet {
  width: 440px;
  max-height: 760px;
  overflow-y: auto;
  padding: 26px 26px 24px;
  border-radius: 30px;
  background: linear-gradient(to bottom, #1d63ff, #4a70c8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  animation: panel-in 0.35s cubic-bezier(0.25, 1.2, 0.4, 1);
}
.sheet.wide { width: 700px; }
.sheet h3 { font-size: 22px; font-weight: 800; }
.sheet p.sub { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.75); line-height: 1.45; }
.sheet-close { float: right; margin: -6px -6px 0 0; }
.sheet .option {
  width: 100%;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.sheet .option:hover { background: rgba(255, 255, 255, 0.22); }
.option .ic { font-size: 26px; flex: none; }
.option b { display: block; font-size: 15px; }
.option small { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.qr-box {
  margin: 20px auto 0;
  width: 220px; height: 220px;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  display: grid; place-items: center;
}
.qr-box svg { width: 100%; height: 100%; }
.pair-code {
  margin-top: 16px;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 6px;
}
.pair-note { margin-top: 6px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.code-input {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
}
.code-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.code-input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.sheet .primary, .sheet .secondary {
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
}
.sheet .primary { background: #fff; color: #1546e0; }
.sheet .primary:disabled { opacity: 0.5; cursor: default; }
.sheet .secondary { background: rgba(255, 255, 255, 0.14); }
.sheet .danger { background: rgba(255, 70, 70, 0.85); color: #fff; }
.sheet .error { margin-top: 10px; font-size: 13px; color: #ffd4d4; text-align: center; }
.history-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.history-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}
.history-row .ic { font-size: 26px; justify-self: center; }
.history-row b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-row small { font-size: 11px; color: rgba(255, 255, 255, 0.7); }
.row-actions { display: flex; gap: 6px; }
.row-actions button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); font-size: 15px; }
.row-actions button:hover { background: rgba(255, 255, 255, 0.28); }
.history-empty { margin-top: 30px; text-align: center; color: rgba(255, 255, 255, 0.75); }

/* ---------- Toasts ---------- */

.toasts {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(10, 20, 50, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: toast-in 0.3s ease-out;
}
.toast.success { background: rgba(14, 120, 70, 0.9); }
.toast.error { background: rgba(170, 30, 30, 0.9); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Bannière Premium (PremiumUpsellBar : 320 × 100, verre) ---------- */

.premium-bar { align-items: center; gap: 14px; padding: 0 18px; text-align: left; }
.premium-bar .upsell-icon { flex: none; width: 40px; font-size: 24px; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35)); }
.upsell-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.upsell-text b { font-size: 15px; font-weight: 800; }
.upsell-text small { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.premium-bar .upsell-chevron { flex: none; width: 13px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Menu du nuage (PoofCloudMenu : arc de 3 bulles 40 px) ---------- */

.header-right { z-index: 8; }
.account { position: relative; z-index: 2; transition: transform 0.2s; }
.header-right.menu-open .account { transform: scale(0.92); }
.cloud-menu { position: absolute; right: 0; top: 2px; width: 40px; height: 40px; }
.menu-circle {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  opacity: 0;
  transform: translate(0, 0) scale(0.3);
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.3, 1.45, 0.5, 1) var(--d), opacity 0.25s ease var(--d);
}
.header-right.menu-open .menu-circle {
  opacity: 1;
  transform: translate(var(--x), var(--y)) scale(1);
  pointer-events: auto;
}
.menu-circle:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- Fausse Dynamic Island ---------- */

.island {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  z-index: 9;
  padding: 16px 18px 12px;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: island-in 0.45s cubic-bezier(0.25, 1.3, 0.4, 1);
  transform-origin: top center;
}
@keyframes island-in { from { transform: scaleX(0.35) scaleY(0.4); border-radius: 22px; opacity: 0.6; } }
.island-top { display: flex; align-items: center; gap: 12px; }
.island-thumb {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(#1a5a8a, #0f3d63);
  font-size: 22px;
}
.island-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.island-text b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island-text small { font-size: 12px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island-text small .ic { font-size: 11px; vertical-align: -1px; }
.island-ring {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, #000 82%, transparent 84% 100%),
    conic-gradient(#1e9bff calc(var(--p) * 1%), #2c2c2e 0);
  font-size: 13px;
}
.island-ring b { font-size: 12px; font-weight: 700; }
.island.done .island-ring {
  background: radial-gradient(closest-side, #12391f 82%, transparent 84% 100%), conic-gradient(#30d158 100%, #30d158 0);
  color: #30d158;
  font-size: 18px;
}
.island.failed .island-ring { color: #ff453a; background: radial-gradient(closest-side, #3a1212 82%, transparent 84% 100%), conic-gradient(#ff453a 100%, #ff453a 0); }
.island-bar { margin: 12px 2px 0; height: 5px; border-radius: 3px; background: #2c2c2e; overflow: hidden; }
.island-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #1e9bff, #2fd0ff); box-shadow: 0 0 8px rgba(47, 208, 255, 0.6); transition: width 0.2s; }
.island.done .island-bar i { background: #30d158; box-shadow: 0 0 8px rgba(48, 209, 88, 0.6); }
.island-foot { margin-top: 9px; display: flex; align-items: center; gap: 10px; font-size: 11px; color: #8e8e93; white-space: nowrap; }
.island-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #2c2c2e; color: #c7c7cc; font-weight: 600; }
.island-rate { margin-left: auto; }

/* ---------- Feuilles : réglages, compte, aide, chat, fichier ---------- */

.sheet { position: relative; }
.sheet h3 { padding-right: 40px; }
.sheet h3.center, .sub.center { text-align: center; padding: 0; }
.sheet-back { float: left; margin: -6px 10px 0 -6px; }
.sheet h4.field-label { margin-top: 18px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.set-section { margin-top: 18px; }
.set-section h4 { margin: 0 4px 8px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.75); }
.set-group { border-radius: 18px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.set-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  text-align: left;
}
.set-row + .set-row { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.set-row b { display: block; font-size: 14px; font-weight: 600; }
.set-row small { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.set-row.disabled { opacity: 0.55; }
.set-row.link:hover { background: rgba(255, 255, 255, 0.08); }
.set-row .ic { flex: none; font-size: 13px; opacity: 0.7; }
.set-value { flex: none; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.set-row kbd { flex: none; padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.18); font: inherit; font-size: 12px; font-weight: 700; }
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch input:disabled { cursor: default; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.25); transition: background 0.2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.switch input:checked + i { background: #30d158; }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.sheet .secondary.danger-text, .danger-text { color: #ffd4d4; }
.avatar {
  width: 84px; height: 84px;
  margin: 16px auto 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(#0ae2ff, #0000ff);
  border: 1px solid #fff;
  font-size: 36px; font-weight: 800;
}
.text-input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 15px;
}
.text-input:focus, .chat-input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.premium-hero { margin: 4px auto 6px; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 36px; background: rgba(255, 255, 255, 0.16); }
.feature-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.feature { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); }
.feature .ic { flex: none; font-size: 24px; }
.feature b { display: block; font-size: 14px; }
.feature small { font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.help-footer { margin-top: 18px; display: flex; justify-content: center; gap: 18px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.help-footer a { text-decoration: underline; text-underline-offset: 3px; }
.faq { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.faq details { padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); }
.faq summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.faq p { margin-top: 8px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.news { margin: 10px 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.chat-list { margin-top: 14px; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.bubble-msg { align-self: flex-end; max-width: 75%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: #fff; color: #1546e0; font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 3px; }
.bubble-msg.admin { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, 0.16); color: #fff; }
.bubble-msg small { font-size: 10px; font-weight: 700; opacity: 0.75; }
.bubble-msg .msg-time { align-self: flex-end; font-weight: 500; }
.chat-compose { margin-top: 12px; display: flex; gap: 10px; align-items: flex-end; }
.chat-input { flex: 1; resize: none; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12); color: #fff; font: inherit; font-size: 14px; }
.chat-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.chat-send { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1546e0; font-size: 20px; }
.chat-send:disabled { opacity: 0.5; }
.segmented { margin-top: 16px; display: flex; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.18); }
.segmented button { flex: 1; padding: 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.segmented button.on { background: rgba(255, 255, 255, 0.9); color: #1546e0; }
.history-row.clickable { width: 100%; text-align: left; }
.history-row.clickable:hover { background: rgba(255, 255, 255, 0.2); }
.row-chevron { font-size: 13px !important; opacity: 0.7; }
.row-time { font-size: 11px; color: rgba(255, 255, 255, 0.7); }
.plan-note { margin-top: 14px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.file-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-preview {
  margin-top: 16px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 0;
}
.file-preview > .ic { font-size: 64px; }
.file-preview p { font-size: 15px; font-weight: 700; }
.file-preview small { max-width: 360px; font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.file-preview img, .file-preview video { width: 100%; height: 100%; object-fit: contain; }
.file-preview iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.file-actions { margin-top: 14px; display: flex; gap: 10px; }
.file-action { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); font-size: 14px; font-weight: 700; }
.file-action:hover { background: rgba(255, 255, 255, 0.24); }
.qr-wait { color: #1546e0; font-weight: 700; }
.qr-error { color: #c62828; font-weight: 700; text-align: center; }

/* Réglage « Reduce motion » de Poof (en plus de celui de Windows). */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }

.text-preview { width: 100%; height: 100%; margin: 0; padding: 16px; overflow: auto; text-align: left; white-space: pre-wrap; word-break: break-word; font: 13px/1.5 ui-monospace, Consolas, monospace; color: #fff; }

/* Bandeau hors ligne */
.net-banner {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 20, 50, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff9f0a; animation: pulse 1.2s ease-in-out infinite alternate; }

.chip.hint-pulse { animation: chip-pulse 0.9s ease-out 2; }
@keyframes chip-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }

/* Sign in with Apple — bouton blanc, logo Apple, coins arrondis (HIG). */
.apple-signin {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
}
.apple-signin .ic { font-size: 19px; margin-top: -2px; }
.apple-signin:hover { background: #f2f2f2; }
.center-row { margin-top: 16px; }

/* Barre Premium débloquée : 5 fonctions, comme premiumUnlockedBar. */
.premium-bar.unlocked { gap: 0; padding: 0; cursor: default; }
.feature-chip {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 18px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.feature-chip .ic { font-size: 22px; color: #fff; }
.feature-chip:hover { background: rgba(255, 255, 255, 0.1); }
.feature-chip:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* Fonction active : puce allumée, avec un point vert comme sur iPhone. */
.feature-chip { position: relative; }
.feature-chip.on { background: rgba(255, 255, 255, 0.2); color: #fff; }
.feature-chip.on::after {
  content: ""; position: absolute; top: 12px; right: calc(50% - 20px);
  width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 6px rgba(48, 209, 88, 0.8);
}

/* Réglages Premium et règles d'un fichier reçu. */
.code-input.inline { margin-top: 10px; text-align: center; letter-spacing: 6px; }
.set-section .chat-input { width: 100%; }
.file-message, .file-rule {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 14px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.14); font-size: 13px;
}
.file-message { font-weight: 600; }
.file-rule { color: rgba(255, 255, 255, 0.85); }
.file-message .ic, .file-rule .ic { flex: none; font-size: 16px; }
.file-preview { position: relative; overflow: hidden; }
.watermark {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  display: grid; grid-template-columns: repeat(3, 1fr); align-content: space-around; gap: 30px;
  transform: rotate(-24deg) scale(1.3);
  font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.35); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.watermark span { text-align: center; white-space: nowrap; }

/* ---------- Téléphone (Android) : comme l'app iOS ---------- */

.phone-header, .tabbar { display: none; }

.phone body { background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom)); }
.phone .window {
  display: block;
  width: 400px;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  /* Un seul ciel pour tout l'écran : pas de coupure entre l'écran et les bords. */
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
}
.phone .col {
  position: absolute;
  left: calc(50% - 200px);
  top: 0;
  width: 400px;
  height: 100%;
  background: none;
  box-shadow: none !important;
  display: none;
}
/* Les nuages débordent jusqu'aux bords de l'écran (l'écran Send défile, il garde son cadre). */
.phone .col-home, .phone .col-received { overflow: visible; }
.phone .col.active { display: block; }
.phone .col-home .header { display: none; }
.phone .phone-header {
  display: flex;
  position: absolute;
  top: 8px;
  left: 20px;
  height: 44px;
  align-items: center;
  z-index: 8;
}
/* Le nuage du compte passe dans l'en-tête partagé (déplacé par app.js). */
.phone .window > .header-right { position: absolute; top: 8px; right: 20px; left: auto; z-index: 8; }

/* Positions de PoofHomeView sur iPhone (.offset(y: -80) et +320). */
.phone .card-transfer { top: 160px; }
.phone .card-help { top: 580px; }

.phone .tabbar {
  display: flex;
  position: absolute;
  left: 60px;
  right: 60px;
  bottom: 12px;
  height: 62px;
  padding: 5px;
  border-radius: 999px;
  z-index: 7;
}
.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.tabbar .ic { font-size: 22px; }
.tabbar button[aria-current="page"] { background: rgba(40, 50, 70, 0.55); color: #2fa4ff; }

.phone .sheet, .phone .sheet.wide { width: 376px; max-height: 760px; padding: 22px 20px 20px; }
.phone .file-preview { height: 300px; }
.phone .chat-list { height: 330px; }
.phone .drop-veil { display: none; }
.phone .net-banner { top: 60px; }
.tabbar button { text-shadow: 0 1px 2px rgba(0, 20, 60, 0.45); }
.tabbar .ic { filter: drop-shadow(0 1px 2px rgba(0, 20, 60, 0.45)); }
.tabbar button[aria-current="page"] { text-shadow: none; }

/* Glisser le nuage au doigt : sans ça, Android prend le geste pour un défilement et l'annule. */
.send-orb{touch-action:none}

/* Avec un fichier choisi, l'aperçu pousse les appareils sous la barre
   d'onglets : l'écran Send défile alors, comme sur iPhone. Le ciel reste fixe. */
.phone .col-send { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.phone .col-send::-webkit-scrollbar { display: none; }
.phone .col-send.panel-open::after { content: ""; position: absolute; top: 1120px; width: 1px; height: 1px; }
/* Les notifications passent au-dessus de la barre d'onglets. */
.phone .toasts { bottom: 92px; }

/* ---------- Onboarding (premier lancement sur téléphone) ---------- */

.onboarding {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: 62px 24px 30px;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  animation: toast-in 0.35s ease;
}
.onboarding.leaving { opacity: 0; transform: scale(1.03); transition: opacity 0.28s, transform 0.28s; }
.ob-clouds {
  position: absolute;
  inset: 0 0 auto;
  height: 300px;
  background: url("img/clouds.png?v=25") center 10px / 520px auto no-repeat;
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.ob-dots { display: flex; gap: 6px; justify-content: center; }
.ob-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); transition: background 0.3s; }
.ob-dots i.on { background: #fff; }
.ob-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.ob-step { display: flex; flex-direction: column; gap: 14px; animation: toast-in 0.35s ease; }
.ob-title { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
.ob-sub { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }

.ob-hero { position: relative; height: 230px; display: grid; place-items: center; }
.ob-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 78px;
  background: linear-gradient(to bottom, var(--orb-top), var(--orb-bottom));
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 60, 0.35);
}
.ob-orb.done { font-size: 64px; }
.ob-flying {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  position: absolute;
  animation: ob-vanish 2.6s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes ob-vanish {
  0% { transform: translate(-120px, 70px) scale(1); opacity: 0; }
  15% { opacity: 1; }
  55% { transform: translate(0, 0) scale(0.7); opacity: 1; }
  70%, 100% { transform: translate(0, -10px) scale(0.1); opacity: 0; }
}

.ob-picks { display: grid; gap: 10px; margin-top: 8px; }
.ob-picks.grid { grid-template-columns: 1fr 1fr; }
.ob-pick, .ob-why-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  text-align: left;
  color: #fff;
}
.ob-picks.grid .ob-pick { flex-direction: column; align-items: flex-start; padding: 16px; min-height: 110px; justify-content: space-between; }
.ob-pick[aria-pressed="true"] { background: rgba(255, 255, 255, 0.32); box-shadow: inset 0 0 0 2px #fff, 0 10px 30px rgba(0, 25, 90, 0.18); }
.ob-pick-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.18);
}
.ob-pick-text { flex: 1; min-width: 0; }
.ob-pick-text b { display: block; font-size: 16px; }
.ob-pick-text small { display: block; margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }
.ob-check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: transparent;
}
.ob-picks.grid .ob-check { position: absolute; top: 14px; right: 14px; }
.ob-pick[aria-pressed="true"] .ob-check { background: #fff; border-color: #fff; color: #1546e0; }

.ob-why { display: grid; gap: 6px; margin-top: 6px; }
.ob-why-row { padding: 10px 0; }

.ob-notifs { display: grid; gap: 10px; margin-bottom: 18px; }
.ob-notif { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; }
.ob-notif:nth-child(2) { opacity: 0.75; transform: scale(0.96); }
.ob-notif-app {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(to bottom, var(--orb-top), var(--orb-bottom));
}
.ob-notif time { align-self: flex-start; font-size: 11px; color: rgba(255, 255, 255, 0.7); }

.ob-steps { list-style: none; display: grid; gap: 14px; padding: 18px; border-radius: 22px; margin-top: 6px; }
.ob-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.ob-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #fff;
  color: #1546e0;
}

.ob-actions { display: grid; gap: 6px; }
.ob-primary {
  height: 56px;
  border-radius: 999px;
  background: #fff;
  color: #1546e0;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 25, 90, 0.25);
  transition: transform 0.15s, opacity 0.2s;
}
.ob-primary:active { transform: scale(0.97); }
.ob-primary:disabled { opacity: 0.45; }
.ob-secondary { height: 44px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.onboarding:focus { outline: none; }

/* ---------- Scanner un QR (téléphone) ---------- */
.scan-box {
  position: relative;
  margin: 18px auto 0;
  width: 260px;
  height: 260px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame {
  position: absolute;
  inset: 40px;
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 20, 70, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.scan-status { margin: 14px 0 6px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.85); line-height: 1.4; }
.scan-status.error { color: #ffd4d4; }
.phone .file-actions { display: grid; grid-template-columns: 1fr 1fr; }

/* Mode sombre du téléphone : Poof garde ses couleurs (voir la balise
   color-scheme). Le même ciel bleu dans les deux modes. */
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }

/* Téléphone : verre plus léger à calculer (flou plus court, pas de
   réfraction). Le rendu reste le même à l'œil. */
.phone .glass { backdrop-filter: blur(12px) saturate(1.5); -webkit-backdrop-filter: blur(12px) saturate(1.5); }
/* Les puces, la barre Premium et les bulles sont posées sur un panneau déjà
   en verre : un second flou ne change presque rien à l'œil mais double le
   travail de la puce graphique. Sur téléphone, seul le panneau floute. */
.phone .chip.glass, .phone .premium-bar.glass, .phone .bubble.glass { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* « Nearby » dans Add a device : appareils Poof du même Wi‑Fi. */
.nearby-list { display: grid; gap: 0; }
.nearby-empty { margin: 8px 2px 4px; font-size: 13px; color: rgba(255, 255, 255, 0.75); line-height: 1.45; }
.sheet .option.nearby-device.waiting { background: rgba(255, 255, 255, 0.24); }
.sheet .option.nearby-device.waiting small { animation: pulse-text 1.2s ease-in-out infinite alternate; }
@keyframes pulse-text { from { opacity: 0.55; } to { opacity: 1; } }
.sheet h4.field-label + .nearby-list .option:first-child { margin-top: 8px; }

/* Écran d'achat Premium (Lemon Squeezy) : 3 offres, mêmes prix que l'App Store. */
.plan-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 8px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18); transition: background 0.2s, box-shadow 0.2s;
}
.plan-card:hover { background: rgba(255, 255, 255, 0.18); }
.plan-card.on { background: rgba(255, 255, 255, 0.24); box-shadow: inset 0 0 0 2.5px #fff; }
.plan-card b { font-size: 13px; font-weight: 700; }
.plan-price { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.plan-card small { font-size: 11px; color: rgba(255, 255, 255, 0.75); }
.plan-note {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; background: #30d158; color: #fff; font-size: 10px; font-weight: 800;
}
.plan-waiting { margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; animation: pulse-text 1.2s ease-in-out infinite alternate; }
.plan-legal { margin-top: 12px; text-align: center; font-size: 11px; line-height: 1.45; color: rgba(255, 255, 255, 0.65); }
.plan-links { margin-top: 8px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.plan-links button { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: rgba(255, 255, 255, 0.9); }
.license-input { font-size: 15px; letter-spacing: 1px; text-align: center; }
/* Écran d'achat : avantages en 2 colonnes compactes, sans défilement. */
.plan-cards { margin-top: 22px; }
.plan-card { padding-top: 24px; }
.plan-note { top: -10px; line-height: 16px; }
.plan-cards ~ .feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.plan-cards ~ .feature-list .feature { padding: 9px 12px; gap: 10px; }
.plan-cards ~ .feature-list .feature small { display: none; }
.plan-cards ~ .feature-list .feature .ic { font-size: 20px; }
.plan-cards ~ .feature-list .feature:last-child { grid-column: 1 / -1; }
.plan-cards ~ .primary { margin-top: 16px; }
