/* ============================================================
   Vendly — Liquid Glass · charte v2 (monochrome)
   Teal + Encre + neutres glacés. Action clé = encre glossy.
   Jaune réservé à l'étincelle du logo. Rouge = sémantique seule.
   ============================================================ */

:root {
  --teal: #0C8F84;
  --teal-deep: #066A62;
  --teal-vif: #16C7B5;
  --corail: #FF6A4D;
  --jaune: #FFC24B;

  --encre: #0A2B29;
  --ardoise: #14403C;
  --sauge: #52706B;
  --menthe: #E2F4F0;
  --brume: #F6F8F7;

  --succes: #1FA971;
  --attention: #F5A524;
  --alerte: #E5484D;

  --bg: #E9F2EF;

  /* matériau verre */
  --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.10)), rgba(255, 255, 255, 0.28);
  --glass-blur: blur(28px) saturate(1.8) contrast(1.04);
  --glass-edge: rgba(255, 255, 255, 0.58);
  --glass-inner: rgba(255, 255, 255, 0.26);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.14),
    0 12px 40px rgba(10, 43, 41, 0.10),
    0 2px 8px rgba(10, 43, 41, 0.05);

  /* verre sombre (teal profond) */
  --glass-dark-fill: linear-gradient(150deg, rgba(17, 122, 112, 0.92), rgba(7, 82, 75, 0.95));
  --glass-dark-edge: rgba(255, 255, 255, 0.16);
  --glass-dark-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 16px 44px rgba(10, 43, 41, 0.30);

  --shadow-soft: 0 8px 28px rgba(10, 43, 41, 0.08);
  --radius: 24px;
  --radius-s: 15px;
  --spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-title: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --tabbar-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--encre);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* ---------- Scène de fond : aurora + grain ---------- */
.bg-scene {
  position: fixed; inset: 0; z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% -10%, #F2F8F6, transparent 70%),
    var(--bg);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.blob.b1 {
  width: 64vmax; height: 64vmax; top: -28vmax; left: -18vmax;
  background: radial-gradient(circle, rgba(22, 199, 181, 0.34), transparent 62%);
  animation: drift-a 36s ease-in-out infinite alternate;
}
.blob.b2 {
  width: 52vmax; height: 52vmax; bottom: -24vmax; right: -16vmax;
  background: radial-gradient(circle, rgba(255, 244, 224, 0.28), transparent 62%);
  animation: drift-b 44s ease-in-out infinite alternate;
}
.blob.b3 {
  width: 44vmax; height: 44vmax; top: 34%; left: -22vmax;
  background: radial-gradient(circle, rgba(12, 143, 132, 0.20), transparent 62%);
  animation: drift-c 52s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(9vmax, 7vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-8vmax, -6vmax) scale(1.08); } }
@keyframes drift-c { to { transform: translate(12vmax, -5vmax) scale(1.15); } }

/* grain photographique, fixe, sans coût de repaint au scroll */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 80;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-title); letter-spacing: -0.01em; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; color: var(--encre); }
img { display: block; }

#view {
  max-width: 520px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px calc(var(--tabbar-h) + var(--safe-b) + 28px);
}
#view.no-tab { padding-bottom: 32px; }

/* cascade d'apparition des blocs de chaque écran */
#view > * { animation: rise 0.5s var(--ease-out) both; }
#view > *:nth-child(2) { animation-delay: 0.045s; }
#view > *:nth-child(3) { animation-delay: 0.09s; }
#view > *:nth-child(4) { animation-delay: 0.135s; }
#view > *:nth-child(5) { animation-delay: 0.18s; }
#view > *:nth-child(6) { animation-delay: 0.225s; }
#view > *:nth-child(7) { animation-delay: 0.27s; }
#view > *:nth-child(n+8) { animation-delay: 0.31s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   MATÉRIAU VERRE — la recette centrale
   couche 1 : fond translucide dégradé + blur saturé
   couche 2 (::before) : reflet spéculaire haut-gauche
   couche 3 (::after)  : liseré interne réfractif
   ============================================================ */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  border: 1px solid var(--glass-edge);
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(130% 80% at 18% -8%, rgba(255, 255, 255, 0.50), transparent 46%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 38%, rgba(255, 255, 255, 0.10) 82%);
}
.glass::after {
  content: ""; position: absolute; inset: 1px; z-index: 2;
  border-radius: inherit; pointer-events: none;
  border: 1px solid var(--glass-inner);
}
.card { padding: 18px; }
.card + .card, .stack > * + * { margin-top: 14px; }

/* ---------- Boutons — verre teinté glossy ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 14px 20px;
  border-radius: 17px; font-weight: 700; font-size: 16px;
  transition: transform 0.3s var(--spring), box-shadow 0.25s ease, opacity 0.2s, filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.05) 46%, transparent 60%);
}
.btn:active { transform: scale(0.96); filter: brightness(0.97); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn-corail {
  /* action clé — encre glossy (charte v2) */
  background: linear-gradient(180deg, #1A4B46, #0A2B29);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 16px rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(10, 43, 41, 0.35),
    0 2px 8px rgba(10, 43, 41, 0.22);
}
.btn-teal {
  background: linear-gradient(180deg, #12A093, #0A7C72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -8px 16px rgba(4, 70, 64, 0.28),
    0 12px 32px rgba(12, 143, 132, 0.38),
    0 2px 8px rgba(12, 143, 132, 0.22);
}
.btn-vif {
  background: linear-gradient(180deg, #2BD8C6, #12BBA9);
  color: var(--encre);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -8px 16px rgba(8, 120, 108, 0.25),
    0 12px 30px rgba(22, 199, 181, 0.40);
}
.btn-ghost {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-edge);
  color: var(--ardoise);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 20px rgba(10, 43, 41, 0.07);
}
.btn-danger {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08)), rgba(229, 72, 77, 0.10);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 72, 77, 0.22);
  color: var(--alerte);
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; width: auto; border-radius: 13px; }

.link { color: var(--teal); font-weight: 600; text-decoration: none; background: none; font-size: 14px; }

/* ---------- En-têtes d'écran ---------- */
.screen-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.screen-head h1 { font-size: 22px; font-weight: 800; flex: 1; }
.back-btn {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 18px rgba(10, 43, 41, 0.08);
  font-size: 18px; color: var(--ardoise);
  transition: transform 0.3s var(--spring);
}
.back-btn:active { transform: scale(0.9); }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sauge);
}

/* ---------- Champs ---------- */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sauge); margin-bottom: 6px;
}
.input, select.input, textarea.input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-s);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 2px 5px rgba(10, 43, 41, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s ease;
  appearance: none; -webkit-appearance: none;
}
.input:focus {
  border-color: rgba(12, 143, 132, 0.55);
  box-shadow:
    inset 0 2px 5px rgba(10, 43, 41, 0.04),
    0 0 0 4px rgba(12, 143, 132, 0.14),
    0 4px 16px rgba(12, 143, 132, 0.12);
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23587370' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55));
  background-repeat: no-repeat, no-repeat;
  background-position: right 14px center, center;
  background-size: 14px, cover;
  padding-right: 40px;
}
textarea.input { resize: vertical; min-height: 130px; line-height: 1.55; }
.field.warn .input {
  border-color: rgba(245, 165, 36, 0.6);
  box-shadow: inset 0 2px 5px rgba(10, 43, 41, 0.04), 0 0 0 4px rgba(245, 165, 36, 0.16);
}
.field.warn .field-label::after { content: " · à confirmer"; color: var(--attention); text-transform: none; letter-spacing: 0; }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.chip-succes { background: rgba(31, 169, 113, 0.16); color: #147A52; border-color: rgba(31, 169, 113, 0.25); }
.chip-warn { background: rgba(245, 165, 36, 0.18); color: #96650B; border-color: rgba(245, 165, 36, 0.3); }
.chip-teal { background: rgba(22, 199, 181, 0.16); color: var(--teal-deep); border-color: rgba(22, 199, 181, 0.3); }
.chip-corail { background: rgba(10, 43, 41, 0.10); color: var(--encre); border-color: rgba(10, 43, 41, 0.14); }
.chip-encre { background: rgba(10, 43, 41, 0.10); color: var(--encre); border-color: rgba(10, 43, 41, 0.14); }
.chip-neutre { background: rgba(10, 43, 41, 0.06); color: var(--sauge); }

/* filtres */
.filters { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.filter-chip {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge); color: var(--sauge);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 14px rgba(10, 43, 41, 0.06);
  transition: all 0.25s var(--ease-out);
}
.filter-chip.active {
  background: linear-gradient(180deg, #12A093, #0A7C72);
  color: #fff; border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 22px rgba(12, 143, 132, 0.32);
}

.segmented {
  display: flex; gap: 6px; padding: 5px; border-radius: 15px;
  background: rgba(10, 43, 41, 0.06);
  box-shadow: inset 0 1px 3px rgba(10, 43, 41, 0.08);
}
.segmented button {
  flex: 1; padding: 10px 6px; border-radius: 11px; font-size: 13px; font-weight: 700; color: var(--sauge);
  transition: all 0.3s var(--spring);
}
.segmented button.active {
  background: linear-gradient(180deg, #FFFFFF, #F2F8F6);
  color: var(--teal-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 10px rgba(10, 43, 41, 0.14);
}

/* ---------- Tab bar flottante — la lentille ---------- */
#tabbar {
  position: fixed; z-index: 60;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + var(--safe-b));
  width: min(480px, calc(100% - 32px));
  height: var(--tabbar-h);
  display: flex; align-items: stretch; justify-content: space-around;
  border-radius: 999px; padding: 0 8px;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.20)),
    rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(36px) saturate(2) contrast(1.05);
  backdrop-filter: blur(36px) saturate(2) contrast(1.05);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(255, 255, 255, 0.20),
    0 20px 50px rgba(10, 43, 41, 0.18),
    0 4px 14px rgba(10, 43, 41, 0.08);
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}
#tabbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 120% at 22% -30%, rgba(255, 255, 255, 0.55), transparent 55%);
}
#tabbar.hidden { transform: translateX(-50%) translateY(150%); opacity: 0; pointer-events: none; }
.tab {
  position: relative; isolation: isolate;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; color: var(--sauge);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s ease;
}
.tab svg { width: 22px; height: 22px; stroke: currentColor; transition: transform 0.3s var(--spring); }
.tab:active svg { transform: scale(0.85); }
.tab.active { color: var(--teal-deep); }
.tab.active::before {
  content: ""; position: absolute; inset: 11px 3px; z-index: -1;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px rgba(10, 43, 41, 0.10);
  animation: lensIn 0.35s var(--spring);
}
@keyframes lensIn { from { transform: scale(0.7); opacity: 0; } }
.tab-new {
  align-self: center; flex: none;
  position: relative; isolation: isolate; overflow: hidden;
  width: 58px; height: 58px; margin: 0 6px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #1A4B46, #0A2B29);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -6px 12px rgba(0, 0, 0, 0.28),
    0 12px 30px rgba(10, 43, 41, 0.42),
    0 0 0 6px rgba(10, 43, 41, 0.08);
  transition: transform 0.3s var(--spring);
}
.tab-new::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(80% 60% at 30% 0%, rgba(255, 255, 255, 0.45), transparent 55%);
}
.tab-new:active { transform: scale(0.88); }
.tab-new svg { width: 26px; height: 26px; }

/* ---------- Accueil ---------- */
.greet { margin: 6px 0 18px; display: flex; align-items: flex-start; gap: 12px; }
.greet .txt { flex: 1; }
.greet .hello { font-size: 14px; color: var(--sauge); font-weight: 600; }
.greet h1 { font-size: 27px; font-weight: 800; line-height: 1.12; margin-top: 2px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(226, 244, 240, 0.95), rgba(200, 232, 226, 0.85));
  color: var(--teal-deep);
  font-family: var(--font-title); font-weight: 800; font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 16px rgba(10, 43, 41, 0.10);
}

.stats-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; }
.stat { padding: 14px 12px; border-radius: 20px; text-align: left; }
.stat .n { font-family: var(--font-title); font-weight: 800; font-size: 22px; color: var(--teal-deep); }
.stat .l { font-size: 11.5px; color: var(--sauge); font-weight: 600; margin-top: 2px; }
.stat.dark {
  background: var(--glass-dark-fill);
  border-color: var(--glass-dark-edge);
  box-shadow: var(--glass-dark-shadow);
}
.stat.dark::before {
  background: radial-gradient(130% 80% at 18% -8%, rgba(255, 255, 255, 0.14), transparent 46%);
}
.stat.dark::after { border-color: rgba(255, 255, 255, 0.08); }
.stat.dark .n { color: #FFFFFF; }
.stat.dark .l { color: rgba(255, 255, 255, 0.78); }
/* marge : teal si positive, brique sémantique si négative */
.stat .n.pos { color: var(--teal); }
.stat .n.neg { color: #C4553B; }
.stat.dark .n.pos { color: #4BE3D2; }
.stat.dark .n.neg { color: #F0A18C; }

.hero-cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 14px; padding: 20px;
  border-radius: 26px; color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 45%),
    linear-gradient(160deg, rgba(17, 150, 137, 0.94), rgba(6, 106, 98, 0.96));
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 30px rgba(4, 70, 64, 0.35),
    0 18px 44px rgba(6, 106, 98, 0.32);
}
.hero-cta::before {
  content: ""; position: absolute; z-index: -1;
  top: -60px; right: -50px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 199, 181, 0.5), transparent 65%);
}
.hero-cta::after {
  content: ""; position: absolute; inset: 1px; border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14); pointer-events: none;
}
.hero-cta .eyebrow { color: rgba(255, 255, 255, 0.78); }
.hero-cta h2 { font-size: 21px; font-weight: 800; line-height: 1.2; margin: 6px 0 16px; }

.section-row { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 12px; }
.section-row h2 { font-size: 17px; font-weight: 800; }

/* liste d'annonces */
.item-row {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  width: 100%; text-align: left;
  transition: transform 0.3s var(--spring), box-shadow 0.25s ease;
}
.item-row:active { transform: scale(0.98); }
.item-row + .item-row { margin-top: 10px; }
.item-thumb {
  width: 52px; height: 52px; border-radius: 15px; object-fit: cover; flex: none;
  background: var(--menthe);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 3px 10px rgba(10, 43, 41, 0.10);
}
.item-thumb.ph { display: flex; align-items: center; justify-content: center; font-size: 22px; }
.item-info { flex: 1; min-width: 0; }
.item-info .t { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-info .s { font-size: 12.5px; color: var(--sauge); margin-top: 2px; }

/* ---------- Onboarding ---------- */
.onb { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; }
.onb-visual {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 30px 0 10px;
}
.onb-art {
  position: relative; isolation: isolate;
  width: 190px; height: 190px; border-radius: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), 0 24px 60px rgba(10, 43, 41, 0.12);
  animation: floaty 5.5s ease-in-out infinite;
}
.onb-art::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 80% at 20% -10%, rgba(255, 255, 255, 0.6), transparent 50%);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.onb-art svg { width: 90px; height: 90px; }
.onb-art .spark { position: absolute; top: -12px; right: -10px; font-size: 34px; }
.onb h1 { font-size: 30px; font-weight: 800; text-align: center; line-height: 1.15; margin: 22px 0 12px; }
.onb p { text-align: center; color: var(--sauge); font-size: 15.5px; line-height: 1.55; max-width: 320px; margin: 0 auto 26px; }
.dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 26px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(10, 43, 41, 0.15); transition: all 0.3s var(--spring); }
.dots i.on { width: 24px; background: linear-gradient(90deg, var(--teal), var(--teal-vif)); box-shadow: 0 2px 8px rgba(12, 143, 132, 0.35); }
.onb-stats { display: flex; gap: 12px; justify-content: center; }
.onb-stats .stat { width: 120px; }

/* ---------- Capture plein écran ---------- */
.capture-screen {
  position: fixed; inset: 0; z-index: 50;
  background:
    radial-gradient(70% 45% at 80% -5%, rgba(22, 199, 181, 0.14), transparent 60%),
    radial-gradient(60% 40% at 0% 100%, rgba(12, 143, 132, 0.12), transparent 60%),
    #06302C;
  display: flex; flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 18px calc(16px + var(--safe-b));
  color: #fff;
  animation: viewIn 0.3s ease;
}
.capture-head { display: flex; align-items: center; gap: 12px; }
.capture-head h1 { font-size: 18px; font-weight: 800; flex: 1; text-align: center; }
.capture-head .back-btn {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.capture-head .spacer { width: 42px; flex: none; }

.viewfinder {
  position: relative; flex: 1; margin: 16px 0 12px;
  border-radius: 30px; overflow: hidden;
  background: #0A3D38;
  border: 1px solid rgba(22, 199, 181, 0.16);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf-fallback { position: relative; text-align: center; color: rgba(255, 255, 255, 0.55); font-size: 14px; padding: 0 30px; line-height: 1.5; }
.vf-fallback .big { font-size: 44px; margin-bottom: 10px; }
.corner {
  position: absolute; width: 34px; height: 34px; z-index: 2;
  border: 3px solid var(--teal-vif);
  filter: drop-shadow(0 0 6px rgba(22, 199, 181, 0.55));
}
.corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.vf-tip {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(6, 48, 44, 0.65); color: var(--teal-vif);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid rgba(22, 199, 181, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}
.vf-step {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2;
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: var(--encre);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 18px rgba(0, 0, 0, 0.25);
}

.thumbs { display: flex; gap: 10px; min-height: 66px; overflow-x: auto; padding: 4px 2px; }
.thumb { position: relative; flex: none; }
.thumb img {
  width: 54px; height: 54px; border-radius: 15px; object-fit: cover;
  border: 2px solid var(--teal-vif);
  box-shadow: 0 0 12px rgba(22, 199, 181, 0.35);
}
.thumb .tag {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 99px;
  background: rgba(10, 43, 41, 0.9); color: var(--teal-vif); white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(22, 199, 181, 0.4);
}
.thumb-ghost {
  width: 54px; height: 54px; border-radius: 15px; flex: none;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; color: rgba(255, 255, 255, 0.45); text-align: center;
}

.capture-controls { display: flex; align-items: center; justify-content: space-between; padding: 10px 26px 6px; }
.ctrl-btn {
  width: 52px; height: 52px; border-radius: 19px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.20);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
  transition: transform 0.3s var(--spring);
}
.ctrl-btn:active { transform: scale(0.88); }
.shutter {
  position: relative; isolation: isolate; overflow: hidden;
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(180deg, #FFFFFF, #DCE9E5);
  border: 5px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    0 0 0 7px rgba(255, 255, 255, 0.14),
    0 0 34px rgba(22, 199, 181, 0.35),
    0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--spring), box-shadow 0.25s ease;
}
.shutter::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(70% 55% at 32% 8%, rgba(255, 255, 255, 0.55), transparent 55%);
}
.shutter:active { transform: scale(0.88); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2), 0 0 20px rgba(22, 199, 181, 0.4), 0 6px 16px rgba(0, 0, 0, 0.35); }

/* ---------- Analyse ---------- */
.analyzing {
  position: fixed; inset: 0; z-index: 50;
  background:
    radial-gradient(80% 50% at 85% 0%, rgba(22, 199, 181, 0.35), transparent 60%),
    radial-gradient(70% 45% at 0% 100%, rgba(255, 194, 75, 0.14), transparent 55%),
    linear-gradient(170deg, #0D9587, var(--teal-deep));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px; color: #fff; text-align: center;
  animation: viewIn 0.3s ease;
}
.pulse-ring {
  width: 124px; height: 124px; border-radius: 50%; position: relative;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 50px rgba(22, 199, 181, 0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 30px;
}
.pulse-ring::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: ring 1.8s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.pulse-ring .spark { font-size: 44px; animation: sparkle 1.6s ease-in-out infinite; }
@keyframes sparkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.18) rotate(12deg); } }
.analyzing h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.analyzing .sub { color: rgba(255, 255, 255, 0.78); font-size: 14.5px; margin-bottom: 28px; }
.steps { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.step {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 16px; font-size: 14px; font-weight: 600; text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  opacity: 0.35; transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.step.on { opacity: 1; transform: none; }
.step .ok { color: var(--teal-vif); }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Vérification / Résultat ---------- */
.banner-warn {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--radius-s);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05)), rgba(245, 165, 36, 0.14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 165, 36, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 13.5px; font-weight: 600; color: #8A5E08; line-height: 1.45;
  margin-bottom: 16px;
}
.copy-card { padding: 16px; }
.copy-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.copy-btn {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: linear-gradient(180deg, rgba(226, 244, 240, 0.95), rgba(200, 234, 228, 0.85));
  color: var(--teal-deep);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 10px rgba(12, 143, 132, 0.12);
  transition: transform 0.25s var(--spring), background 0.2s;
}
.copy-btn:active { transform: scale(0.92); }
.copy-card input.raw, .copy-card textarea.raw {
  position: relative; z-index: 3;
  width: 100%; border: 0; background: transparent; outline: none;
  font-size: 15px; line-height: 1.55; font-weight: 600;
}
.copy-card textarea.raw { font-weight: 500; min-height: 150px; resize: vertical; }

.price-card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--glass-dark-fill);
  border: 1px solid var(--glass-dark-edge);
  box-shadow: var(--glass-dark-shadow);
  border-radius: var(--radius); padding: 18px;
  display: flex; align-items: center; gap: 14px; color: #fff;
}
.price-card::before {
  content: ""; position: absolute; z-index: -1;
  top: -50px; right: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 75, 0.22), transparent 65%);
}
.price-card::after {
  content: ""; position: absolute; inset: 1px; border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none;
}
.price-card .p { flex: 1; }
.price-card .amount { font-family: var(--font-title); font-weight: 800; font-size: 30px; color: #FFFFFF; }
.price-card .amount small { font-size: 15px; color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.price-card .just { font-size: 12.5px; color: rgba(255, 255, 255, 0.68); margin-top: 5px; line-height: 1.45; }
.price-card .copy-btn {
  background: linear-gradient(180deg, #12A093, #0A7C72);
  color: #fff; flex: none; padding: 12px 16px; border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(12, 143, 132, 0.4);
}

.platform-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.platform-tabs button {
  flex: 1; padding: 11px 8px; border-radius: 14px; font-size: 13.5px; font-weight: 700;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge); color: var(--sauge);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 14px rgba(10, 43, 41, 0.06);
  transition: all 0.25s var(--ease-out);
}
.platform-tabs button.active {
  background: linear-gradient(180deg, #12A093, #0A7C72);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(12, 143, 132, 0.35);
}

/* ---------- Détail article ---------- */
.photo-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px; margin-bottom: 16px; }
.photo-strip img {
  width: 96px; height: 96px; border-radius: 18px; object-fit: cover; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 18px rgba(10, 43, 41, 0.12);
}
.attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attr { padding: 12px 14px; border-radius: var(--radius-s); }
.attr .k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sauge); }
.attr .v { font-size: 14.5px; font-weight: 700; margin-top: 3px; }

.benefit-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 20px; padding: 18px; color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(160deg, rgba(17, 150, 137, 0.95), rgba(6, 106, 98, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 34px rgba(6, 106, 98, 0.28);
}
.benefit-card::before {
  content: ""; position: absolute; z-index: -1;
  top: -40px; right: -30px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 75, 0.28), transparent 65%);
}
.benefit-card.neg {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(160deg, rgba(196, 85, 59, 0.95), rgba(150, 58, 38, 0.97));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 34px rgba(150, 58, 38, 0.28);
}
.benefit-card.neg::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}
.benefit-card .l { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); font-weight: 600; }
.benefit-card .amount { font-family: var(--font-title); font-weight: 800; font-size: 32px; margin-top: 2px; }
.benefit-card .badges { display: flex; gap: 8px; margin-top: 10px; }
.benefit-card .chip {
  background: rgba(255, 255, 255, 0.16); color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* ---------- Conseils ---------- */
.tip-hero {
  background: var(--glass-dark-fill);
  border: 1px solid var(--glass-dark-edge);
  box-shadow: var(--glass-dark-shadow);
  border-radius: 26px; padding: 20px; color: #fff;
  position: relative; isolation: isolate; overflow: hidden;
}
.tip-hero::before {
  content: ""; position: absolute; z-index: -1;
  top: -40px; right: -40px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 199, 181, 0.45), transparent 65%);
}
.tip-hero::after {
  content: ""; position: absolute; inset: 1px; border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none;
}
.tip-hero .chip {
  background: rgba(255, 255, 255, 0.14); color: #A9E8DF;
  border-color: rgba(255, 255, 255, 0.22);
  margin-bottom: 12px;
}
.tip-hero h2 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.tip-hero p { font-size: 14px; color: rgba(255, 255, 255, 0.78); line-height: 1.55; margin-top: 8px; }
.tip-row { display: flex; gap: 13px; align-items: flex-start; padding: 15px; }
.tip-row .ico {
  width: 42px; height: 42px; border-radius: 15px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: linear-gradient(180deg, rgba(226, 244, 240, 0.95), rgba(204, 235, 229, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.tip-row .t { font-weight: 700; font-size: 14.5px; }
.tip-row .x { font-size: 13px; color: var(--sauge); line-height: 1.5; margin-top: 3px; }

/* ---------- Paywall / Plans ---------- */
.plan-card {
  padding: 17px; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  transition: transform 0.3s var(--spring), box-shadow 0.25s ease, border-color 0.25s;
}
.plan-card:active { transform: scale(0.98); }
.plan-card.selected {
  border-color: rgba(12, 143, 132, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 0 0 3px rgba(12, 143, 132, 0.16),
    0 12px 34px rgba(12, 143, 132, 0.16);
}
.plan-card .info { flex: 1; }
.plan-card .name { font-family: var(--font-title); font-weight: 800; font-size: 17px; }
.plan-card .desc { font-size: 12.5px; color: var(--sauge); margin-top: 2px; }
.plan-card .price { font-family: var(--font-title); font-weight: 800; font-size: 19px; color: var(--teal-deep); text-align: right; }
.plan-card .price small { display: block; font-family: var(--font-body); font-size: 11px; color: var(--sauge); font-weight: 600; }
.pop-badge {
  position: absolute; top: -9px; right: 14px; z-index: 3;
  padding: 3px 10px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  background: linear-gradient(180deg, #12A093, #0A7C72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(12, 143, 132, 0.4);
}
.quota-bar {
  height: 9px; border-radius: 99px;
  background: rgba(10, 43, 41, 0.08);
  box-shadow: inset 0 1px 3px rgba(10, 43, 41, 0.10);
  overflow: hidden; margin-top: 10px;
}
.quota-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--teal-vif));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 10px rgba(22, 199, 181, 0.45);
  transition: width 0.5s var(--ease-out);
}

/* ---------- Toggles ---------- */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; }
.toggle-row .t { font-weight: 700; font-size: 14.5px; }
.toggle-row .x { font-size: 12.5px; color: var(--sauge); margin-top: 2px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; z-index: 3; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 2; }
.switch i {
  position: absolute; inset: 0; border-radius: 99px;
  background: rgba(10, 43, 41, 0.14);
  box-shadow: inset 0 1px 3px rgba(10, 43, 41, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(180deg, #FFFFFF, #F0F6F4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(10, 43, 41, 0.28);
  transition: transform 0.3s var(--spring);
}
.switch input:checked + i {
  background: linear-gradient(180deg, #12A093, #0C8F84);
  box-shadow: inset 0 1px 3px rgba(4, 70, 64, 0.4), 0 0 12px rgba(12, 143, 132, 0.3);
}
.switch input:checked + i::after { transform: translateX(20px); }

/* ---------- Toast ---------- */
#toasts {
  position: fixed; z-index: 100; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: max-content; max-width: calc(100% - 40px);
  pointer-events: none;
}
.toast {
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: linear-gradient(150deg, rgba(16, 106, 97, 0.92), rgba(6, 72, 66, 0.95));
  color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 36px rgba(10, 43, 41, 0.35);
  animation: toastIn 0.4s var(--spring);
  text-align: center;
}
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.94); } }

/* ---------- Overlay Studio ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 43, 41, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.overlay-card {
  position: relative; isolation: isolate;
  width: 100%; max-width: 340px; padding: 26px; text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 24px 70px rgba(10, 43, 41, 0.35);
  animation: rise 0.4s var(--spring);
}
.overlay-card h3 { font-size: 18px; font-weight: 800; margin: 12px 0 6px; }
.overlay-card p { font-size: 13.5px; color: var(--sauge); line-height: 1.5; }
.overlay-card .spinner { width: 34px; height: 34px; border-width: 3px; margin: 0 auto; border-color: rgba(12, 143, 132, 0.2); border-top-color: var(--teal); }

/* ---------- Installation écran d'accueil ---------- */
.install-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 34px 14px 15px;
}
.install-card .ico { font-size: 26px; flex: none; }
.install-card .tx { flex: 1; min-width: 0; }
.install-card .t { font-weight: 700; font-size: 14px; }
.install-card .x { font-size: 12px; color: var(--sauge); margin-top: 1px; }
.install-card .btn-sm { flex: none; min-height: 38px; }
.install-hide {
  position: absolute; top: 8px; right: 10px; z-index: 3;
  padding: 4px 6px; font-size: 12px; color: var(--sauge);
}
.install-steps { list-style: none; margin: 14px 0 0; display: flex; flex-direction: column; gap: 13px; }
.install-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ardoise); }
.stepn {
  width: 22px; height: 22px; flex: none; border-radius: 50%; margin-top: 1px;
  background: var(--menthe); color: var(--teal-deep);
  font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.share-ico { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; color: var(--teal); }

/* ---------- Divers ---------- */
.muted { color: var(--sauge); font-size: 13.5px; line-height: 1.55; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.disclaimer {
  display: flex; gap: 10px; padding: 14px 15px; border-radius: var(--radius-s);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1)), rgba(22, 199, 181, 0.14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(22, 199, 181, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 12.5px; color: var(--teal-deep); line-height: 1.5; font-weight: 500;
}
.logo-row { display: flex; align-items: center; gap: 8px; }
.logo-row svg { width: 30px; height: 30px; }
.logo-row .w { font-family: var(--font-title); font-weight: 800; font-size: 20px; color: var(--teal-deep); }

@media (min-width: 560px) {
  body { background: #E3EEE9; }
  .glass:hover { box-shadow: var(--glass-shadow), 0 18px 50px rgba(10, 43, 41, 0.10); }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob, #view > *, .onb-art, .pulse-ring::before, .pulse-ring .spark,
  .tab.active::before, .toast, .overlay-card {
    animation: none !important;
  }
  .capture-screen, .analyzing, .overlay { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .btn-ghost, .filter-chip, .platform-tabs button, .back-btn,
  .input, select.input, textarea.input, #tabbar, .overlay-card {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .stat.dark, .price-card, .tip-hero, .toast {
    background: var(--teal-deep);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .blob { display: none; }
}
