/* ==========================================================================
   Rencontres en Weppes — feuille de style principale
   Palette et rythme issus de la maquette : prune #5C2540, terre #C56A46, rose #E3A98C
   ========================================================================== */

:root {
  --plum: #5C2540;
  --plum-deep: #3E192C;
  --terra: #C56A46;
  --rose: #E3A98C;
  --plum-rgb: 92, 37, 64;
  --terra-rgb: 197, 106, 70;
  --rose-rgb: 227, 169, 140;
  --sand: #F3E4DC;
  --cream: #FBF2EC;
  --cream-2: #FDF8F5;
  --cream-3: #FEF9F6;
  --paper: #FBF5F1;
  --line: #E7D9D2;
  --line-2: #E9C9B6;
  --line-3: #F0E5DF;
  --line-4: #EADBD3;
  --text: #4E4038;
  --muted: #6B5A50;
  --wine-light: #F1E2E9;
  --wine-soft: #E8CFDC;
  --white: #FFFFFF;
  --danger: #B3402E;
  --success: #3F7A57;
  --ok-bg: #E4F1E8;
  --ok-ink: #2E6B45;
  --bad-bg: #FBE3DF;
  --bad-ink: #9A3224;
  --info-bg: var(--wine-light);
  --info-ink: var(--plum);
  --shadow-soft: 0 22px 44px -40px rgba(var(--plum-rgb), 0.5);
  --shadow-card: 0 26px 50px -34px rgba(var(--plum-rgb), 0.42);
  --shadow-modal: 0 40px 80px -40px rgba(var(--plum-rgb), 0.6);
  --radius-xl: 30px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font: Poppins, Helvetica, Arial, sans-serif;
  --pad-page: clamp(18px, 3.4vw, 40px);
  --pad-x: clamp(16px, 3vw, 36px);
  --nav-h: 64px; /* visible ≤1024px (téléphone + tablette, y compris iPad paysage) */
  --kb: 0px;
  --ob-foot-h: 96px;
  --fg: var(--plum);
  --ink: var(--fg);
  --page-from: #FFFFFF;
  --page-mid: #FEF9F6;
  --page-to: #FBF2EC;
  --ob-from: #FDF8F5;
  --ob-mid: #FBF2EC;
  --ob-to: #F6EEE7;
  --surface: rgba(255,255,255,0.72);
  --surface-2: rgba(255,255,255,0.78);
  --btn-wash: rgba(255,255,255,0.7);
}

html[data-tint="rose"] {
  --plum: #6E2A45;
  --plum-deep: #4A1C30;
  --terra: #D0586A;
  --rose: #F0A8B0;
  --plum-rgb: 110, 42, 69;
  --terra-rgb: 208, 88, 106;
  --rose-rgb: 240, 168, 176;
  --wine-light: #F4DCE6;
  --wine-soft: #EAD0DC;
  --text: #4E383E;
  --muted: #6B5057;
}
html[data-tint="pourpre"] {
  --fg: #F0E9E7;
  --plum: #3A0C21;
  --plum-deep: #280010;
  --terra: #E45458;
  --rose: #E88487;
  --plum-rgb: 58, 12, 33;
  --terra-rgb: 228, 84, 88;
  --rose-rgb: 232, 132, 135;
  --sand: #4A1830;
  --cream: #300018;
  --cream-2: #37061C;
  --cream-3: #400820;
  --paper: #3A1024;
  --line: #5C2840;
  --line-2: #6A3050;
  --line-3: #4A2034;
  --line-4: #542438;
  --text: #F0E9E7;
  --muted: #C4A8B0;
  --wine-light: #4A1830;
  --wine-soft: #5C2840;
  --page-from: #500D28;
  --page-mid: #37061C;
  --page-to: #280010;
  --ob-from: #400820;
  --ob-mid: #37061C;
  --ob-to: #280010;
  --surface: rgba(240, 233, 231, 0.08);
  --surface-2: rgba(240, 233, 231, 0.12);
  --btn-wash: rgba(240, 233, 231, 0.08);
  --info-ink: var(--fg);
  --ok-bg: #2A1C24;
  --ok-ink: #E8D4D8;
  --bad-bg: #4A1828;
  --bad-ink: #F0B8B8;
}
html[data-tint="cuivre"] {
  --fg: #F0E9E7;
  --plum: #2A1C16;
  --plum-deep: #140E0C;
  --terra: #E08A4A;
  --rose: #E8B07A;
  --plum-rgb: 42, 28, 22;
  --terra-rgb: 224, 138, 74;
  --rose-rgb: 232, 176, 122;
  --sand: #3A2C24;
  --cream: #1C1410;
  --cream-2: #241C18;
  --cream-3: #2A2018;
  --paper: #241C18;
  --line: #4A3C34;
  --line-2: #5A4A40;
  --line-3: #3A3028;
  --line-4: #443830;
  --text: #F0E9E7;
  --muted: #C4B4A8;
  --wine-light: #3A2C24;
  --wine-soft: #4A3C34;
  --page-from: #2A1C16;
  --page-mid: #1C1410;
  --page-to: #120C0A;
  --ob-from: #241C18;
  --ob-mid: #1C1410;
  --ob-to: #120C0A;
  --surface: rgba(240, 233, 231, 0.08);
  --surface-2: rgba(240, 233, 231, 0.12);
  --btn-wash: rgba(240, 233, 231, 0.08);
  --info-ink: var(--fg);
  --ok-bg: #2A241C;
  --ok-ink: #E8DCC8;
  --bad-bg: #3A2420;
  --bad-ink: #F0B8B0;
}
html[data-tint-mode="dark"] {
  color-scheme: dark;
  --shadow-modal: 0 28px 64px -12px rgba(0, 0, 0, 0.62);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--page-from);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-wrap: pretty;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--fg); }
input, textarea, button, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--fg); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 12px; color: #fff; }
:focus-visible { outline: 3px solid rgba(var(--terra-rgb), 0.55); outline-offset: 2px; border-radius: 6px; }

/* ---------- Animations ---------- */
@keyframes lt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ob-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ob-in-back { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes ob-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-14px); } }
@keyframes ob-out-back { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px); } }
@keyframes lt-seal { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes lt-driftA { 0% { transform: translate3d(-6%, -4%, 0) scale(1); } 50% { transform: translate3d(6%, 6%, 0) scale(1.14); } 100% { transform: translate3d(-6%, -4%, 0) scale(1); } }
@keyframes lt-driftB { 0% { transform: translate3d(5%, 6%, 0) scale(1.08); } 50% { transform: translate3d(-7%, -5%, 0) scale(0.94); } 100% { transform: translate3d(5%, 6%, 0) scale(1.08); } }
@keyframes lt-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
@keyframes lt-reveal { from { opacity: 0; filter: blur(10px); transform: scale(0.96); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes lt-chosen { 0%, 14% { transform: scale(1); border-color: rgba(var(--terra-rgb),0.28); } 22%, 62% { transform: scale(1.1); border-color: var(--terra); } 70%, 100% { transform: scale(1); border-color: rgba(var(--terra-rgb),0.28); } }
@keyframes lt-dimmed { 0%, 14% { opacity: 1; } 22%, 62% { opacity: 0.28; } 70%, 100% { opacity: 1; } }
@keyframes lt-satellite { 0%, 20% { opacity: 0; } 28%, 58% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes lt-vmsg { 0%, 4% { opacity: 0; transform: translateY(8px); } 12%, 100% { opacity: 1; transform: none; } }
@keyframes lt-vpills { 0%, 22% { opacity: 0; transform: translateY(6px); } 30%, 100% { opacity: 1; transform: none; } }
@keyframes lt-vpick { 0%, 48% { background: #FFFFFF; color: var(--terra); transform: scale(1); } 56%, 100% { background: var(--terra); color: #FFFFFF; transform: scale(1.08); } }
@keyframes lt-vpick-dark { 0%, 48% { background: var(--paper); color: var(--terra); transform: scale(1); } 56%, 100% { background: var(--terra); color: #FFFFFF; transform: scale(1.08); } }
@keyframes lt-vgauge { 0%, 56% { width: 18%; } 70%, 100% { width: 44%; } }
@keyframes lt-vbadge { 0%, 56% { opacity: 0; transform: translateY(8px); } 64%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes lt-swTrack { 0%, 34% { background: var(--terra); } 44%, 100% { background: #D2BFB2; } }
@keyframes lt-swKnob { 0%, 34% { transform: translateX(18px); } 44%, 100% { transform: translateX(0); } }
@keyframes lt-swOn { 0%, 34% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes lt-swOff { 0%, 34% { opacity: 0; } 44%, 100% { opacity: 1; } }
@keyframes lt-rowFade { 0%, 40% { opacity: 1; } 50%, 100% { opacity: 0.42; } }
@keyframes lt-s1 { 0%, 6% { opacity: 0; transform: translateY(6px); } 12%, 100% { opacity: 1; transform: none; } }
@keyframes lt-s2 { 0%, 28% { opacity: 0; transform: translateY(6px); } 34%, 100% { opacity: 1; transform: none; } }
@keyframes lt-s3 { 0%, 50% { opacity: 0; transform: translateY(6px); } 56%, 100% { opacity: 1; transform: none; } }
@keyframes lt-s4 { 0%, 72% { opacity: 0; transform: translateY(6px); } 78%, 100% { opacity: 1; transform: none; } }
@keyframes lt-gauge { 0% { width: 4%; } 12% { width: 24%; } 34% { width: 48%; } 56% { width: 72%; } 78%, 100% { width: 100%; } }
@keyframes lt-unblur { 0%, 72% { filter: blur(6px); } 78%, 100% { filter: blur(0); } }
@keyframes lt-ping { 0%, 72% { opacity: 0; transform: scale(0.8); } 78% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lt-spark { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-150px) scale(1); opacity: 0; } }
@keyframes lt-pop { 0% { transform: scale(0.82); opacity: 0; } 60% { transform: scale(1.03); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes lt-fade { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
@keyframes lt-floatA { 0% { transform: translate3d(0,0,0); } 33% { transform: translate3d(14px,-22px,0); } 66% { transform: translate3d(-12px,-10px,0); } 100% { transform: translate3d(0,0,0); } }
@keyframes lt-floatB { 0% { transform: translate3d(0,0,0); } 40% { transform: translate3d(-18px,16px,0); } 75% { transform: translate3d(10px,26px,0); } 100% { transform: translate3d(0,0,0); } }
@keyframes lt-floatC { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(20px,14px,0); } 100% { transform: translate3d(0,0,0); } }
@keyframes lt-dots { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes flash-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flash-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(28px); } }
@keyframes notif-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes notif-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(14deg); } 28% { transform: rotate(-12deg); } 44% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 76% { transform: rotate(3deg); } }
@keyframes notif-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes lt-radar { 0% { transform: translate(-50%, -50%) scale(.32); opacity: .45; } 70% { opacity: .1; } 100% { transform: translate(-50%, -50%) scale(2.05); opacity: 0; } }
@keyframes lt-core { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .7; } 50% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; } }
@keyframes lost-appear-left {
  from { opacity: 0; transform: translate(-14px, 12px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes lost-appear-right {
  from { opacity: 0; transform: translate(14px, 12px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes lost-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(10px, -18px, 0) rotate(3deg); }
}
@keyframes home-bubble-wander {
  0%, 100% { opacity: 0; transform: translate3d(0, 22px, 0) scale(.82); }
  9% { opacity: var(--bubble-opacity, .42); }
  48% { opacity: var(--bubble-opacity, .42); transform: translate3d(var(--bubble-x, 22px), var(--bubble-y, -34px), 0) scale(1.08); }
  79% { opacity: var(--bubble-opacity, .42); }
  94% { opacity: 0; transform: translate3d(var(--bubble-exit-x, -8px), var(--bubble-exit-y, -52px), 0) scale(.9); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Page & fond ---------- */
.page {
  position: relative;
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--pad-page) + env(safe-area-inset-top, 0px)) var(--pad-x) 28px;
  background: linear-gradient(168deg, var(--page-from) 0%, var(--page-mid) 42%, var(--page-to) 100%);
}
.page--onboarding { background: linear-gradient(150deg, var(--ob-from) 0%, var(--ob-mid) 55%, var(--ob-to) 100%); }
.page--app { padding-bottom: calc(28px + var(--nav-h) + env(safe-area-inset-bottom)); }
.blob { position: absolute; border-radius: 999px; pointer-events: none; filter: blur(30px); }
.blob--a { top: -22%; left: -14%; width: 78vw; height: 78vw; background: radial-gradient(circle at 50% 50%, rgba(var(--terra-rgb),0.20) 0%, rgba(var(--terra-rgb),0.07) 45%, rgba(var(--terra-rgb),0) 70%); animation: lt-driftA 26s ease-in-out infinite, lt-breathe 14s ease-in-out infinite; }
.blob--b { bottom: -30%; right: -16%; width: 70vw; height: 70vw; background: radial-gradient(circle at 50% 50%, rgba(var(--plum-rgb),0.12) 0%, rgba(var(--plum-rgb),0.06) 48%, rgba(var(--plum-rgb),0) 72%); animation: lt-driftB 32s ease-in-out infinite; }
.blob--a.blob--right { left: auto; right: -14%; }
.blob--b.blob--left { right: auto; left: -16%; }
.home-bubbles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.home-bubble {
  --bubble-opacity: .42;
  --bubble-x: 24px;
  --bubble-y: -38px;
  position: absolute;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--terra-rgb), .34);
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9), rgba(var(--rose-rgb),.2) 58%, rgba(var(--terra-rgb),.1));
  box-shadow: inset 0 0 24px rgba(255,255,255,.62), 0 18px 44px -28px rgba(var(--plum-rgb),.46);
  opacity: 0;
  animation: home-bubble-wander 24s ease-in-out infinite;
  will-change: transform, opacity;
}
.home-bubble--1 { left: 5%; top: 24%; width: 46px; height: 46px; animation-delay: -3s; animation-duration: 21s; }
.home-bubble--2 { left: 16%; top: 60%; width: 92px; height: 92px; --bubble-x: -32px; --bubble-y: -54px; --bubble-opacity: .32; animation-delay: -14s; animation-duration: 29s; }
.home-bubble--3 { left: 33%; top: 18%; width: 34px; height: 34px; --bubble-x: 38px; --bubble-y: -28px; animation-delay: -9s; animation-duration: 19s; }
.home-bubble--4 { right: 31%; top: 48%; width: 58px; height: 58px; --bubble-x: -24px; --bubble-y: -46px; --bubble-opacity: .36; animation-delay: -19s; animation-duration: 27s; }
.home-bubble--5 { right: 16%; top: 20%; width: 106px; height: 106px; --bubble-x: 30px; --bubble-y: -60px; --bubble-opacity: .3; animation-delay: -6s; animation-duration: 32s; }
.home-bubble--6 { right: 5%; top: 66%; width: 42px; height: 42px; --bubble-x: -38px; --bubble-y: -34px; animation-delay: -16s; animation-duration: 23s; }
.home-bubble--7 { left: 43%; bottom: 8%; width: 28px; height: 28px; --bubble-x: 42px; --bubble-y: -48px; animation-delay: -12s; animation-duration: 20s; }
.home-bubble--8 { right: 40%; top: 7%; width: 74px; height: 74px; --bubble-x: -22px; --bubble-y: -32px; --bubble-opacity: .3; animation-delay: -24s; animation-duration: 30s; }
.page--door .home-bubbles { display: none; }
.home-faces {
  --face-size: clamp(84px, 11vw, 128px);
  --face-gap: clamp(18px, 2.4vw, 36px);
  position: absolute;
  z-index: 0;
  left: -40px;
  right: -40px;
  top: clamp(88px, 14vh, 150px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vh, 32px);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.32;
}
.home-faces__row { overflow: hidden; }
.home-faces__track {
  display: flex;
  width: max-content;
  animation: home-faces-left 92s linear infinite;
  will-change: transform;
}
.home-faces__row--right .home-faces__track { animation-name: home-faces-right; animation-duration: 108s; }
.home-faces__row:nth-child(3) .home-faces__track { animation-duration: 76s; }
.home-faces__set { display: flex; gap: var(--face-gap); padding-right: var(--face-gap); }
.home-faces__photo {
  flex: none;
  width: var(--face-size);
  height: var(--face-size);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 18%, rgba(0,0,0,.55) 46%, transparent 78%);
  mask-image: radial-gradient(circle closest-side, #000 18%, rgba(0,0,0,.55) 46%, transparent 78%);
}
.home-faces__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: blur(3px);
  transform: scale(1.15);
}
@keyframes home-faces-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes home-faces-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@media (max-height: 680px) {
  .home-faces__row:nth-child(3) { display: none; }
}
html[data-tint-mode="dark"] .blob--a {
  background: radial-gradient(circle at 50% 50%, rgba(var(--terra-rgb),0.22) 0%, rgba(var(--plum-rgb),0.42) 42%, rgba(0,0,0,0) 70%);
}
html[data-tint-mode="dark"] .blob--b {
  background: radial-gradient(circle at 50% 50%, rgba(var(--plum-rgb),0.7) 0%, rgba(var(--plum-rgb),0.4) 48%, rgba(0,0,0,0) 72%);
}
html[data-tint-mode="dark"] .home-bubble {
  background: radial-gradient(circle at 34% 30%, rgba(240,233,231,.18), rgba(var(--rose-rgb),.18) 58%, rgba(var(--terra-rgb),.12));
  border-color: rgba(var(--terra-rgb), .42);
  box-shadow: inset 0 0 24px rgba(228,84,88,.16), 0 18px 44px -28px rgba(40, 0, 16, .7);
}
html[data-tint-mode="dark"] .btn--primary:hover {
  background: var(--rose);
  color: var(--plum-deep);
}
html[data-tint-mode="dark"] .btn--ghost:hover,
html[data-tint-mode="dark"] .btn--outline:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: rgba(var(--terra-rgb), 0.12);
}
html[data-tint-mode="dark"] .btn--soft:hover {
  color: var(--plum-deep);
}
html[data-tint-mode="dark"] a:hover { color: var(--fg); }
html[data-tint-mode="dark"] .input:focus,
html[data-tint-mode="dark"] .textarea:focus,
html[data-tint-mode="dark"] .input--round,
html[data-tint-mode="dark"] .textarea--round,
html[data-tint-mode="dark"] .combo.is-open .input--round,
html[data-tint-mode="dark"] .combo.is-picked .input--round {
  background: var(--paper);
  color: var(--fg);
}
html[data-tint-mode="dark"] .combo__list,
html[data-tint-mode="dark"] .range-box,
html[data-tint-mode="dark"] .cookie,
html[data-tint-mode="dark"] .step,
html[data-tint-mode="dark"] .faq details,
html[data-tint-mode="dark"] .post-card,
html[data-tint-mode="dark"] .card--solid {
  background: var(--paper);
  color: var(--fg);
  border-color: var(--line);
}
html[data-tint-mode="dark"] .modal,
html[data-tint-mode="dark"] .modal--intro {
  background: rgba(0, 0, 0, 0.64);
}
html[data-tint-mode="dark"] .modal__box:not(.modal__box--video) {
  background: var(--sand);
  color: var(--fg);
  border: 1.5px solid var(--line-2);
  box-shadow: var(--shadow-modal), 0 0 0 1px rgba(240, 233, 231, 0.1);
}
html[data-tint-mode="dark"] .modal__box:not(.modal__box--video) .modal__close {
  background: rgba(240, 233, 231, 0.12);
  color: var(--fg);
}
html[data-tint-mode="dark"] .page--door .stat { background: var(--surface); }
html[data-tint-mode="dark"] .tint-pick,
html[data-tint-mode="dark"] .bubble__hint,
html[data-tint-mode="dark"] .faq summary,
html[data-tint-mode="dark"] .profil-col h3 {
  color: var(--fg);
}
html[data-tint-mode="dark"] .tint-pick { background: var(--surface-2); }

.container { position: relative; display: flex; flex-direction: column; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; }
.container--narrow { max-width: 880px; }
.container--article { max-width: 720px; }
#main { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }

/* ---------- Barre haute ---------- */
.topbar { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.topbar--app { flex-wrap: nowrap; }
.topbar__logo { height: clamp(40px, 5vw, 56px); width: auto; display: block; }
.topbar__logo--big { height: clamp(52px, 8vw, 104px); margin: 0 auto; }
.site-logo--dark { display: none; }
html[data-tint-mode="dark"] .site-logo--light { display: none; }
html[data-tint-mode="dark"] .site-logo--dark { display: block; }
.topbar__actions { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.topbar--app .topbar__actions { flex-wrap: nowrap; }
.topbar--door { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 20px; }
.topbar--door .topbar__side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar--door .topbar__side--left { justify-content: flex-start; }
.topbar--door .topbar__side--right { justify-content: flex-end; }
.topbar--door .topbar__brand { justify-self: center; }
.topbar__conv { position: relative; }
.topbar__meta { font-size: 12px; font-weight: 600; color: var(--terra); font-variant-numeric: normal; font-feature-settings: "frac" 0, "numr" 0, "dnom" 0; letter-spacing: 0.02em; }
.topbar__conv:hover .topbar__meta { color: #fff; }
.topbar__conv .badge { margin-left: 2px; }
.topbar__conv:hover .badge { background: #fff; color: var(--terra); }
.topbar__conv.is-ringing .badge, .mobnav a.is-ringing .badge { animation: notif-pop .6s ease; }
.topbar__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--terra-rgb),0.35);
  background: rgba(255,255,255,0.7);
  color: var(--fg);
  flex: none;
}
.topbar__burger svg { width: 22px; height: 22px; }
.topbar__burger:hover, .topbar__burger[aria-expanded="true"] { border-color: var(--terra); color: var(--terra); }
.topbar__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: min(300px, calc(100% - 8px));
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-modal);
}
.topbar__menu.is-open { display: grid; gap: 4px; }
.topbar__menu a, .topbar__menu button { display: block; text-align: left; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 500; color: var(--fg); width: 100%; }
.topbar__menu a:hover, .topbar__menu button:hover { background: var(--sand); }
.topbar__menu [data-conversation-open-count] { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--terra); }

/* ---------- Boutons & pilules ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center;
  cursor: pointer; border: 1.5px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 15px; }
.btn--md { min-height: 52px; padding: 0 28px; font-size: 15px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn--xs { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--plum); color: #fff; }
.btn--plum { background: var(--plum); color: #fff; }
.btn--plum:hover { background: var(--terra); color: #fff; }
.btn--soft { background: var(--sand); color: var(--fg); }
.btn--soft:hover { background: var(--terra); color: #fff; }
.btn--outline { border-color: rgba(var(--terra-rgb),0.35); background: var(--btn-wash); backdrop-filter: blur(6px); color: var(--fg); }
.btn--outline:hover { border-color: var(--terra); color: var(--terra); }
.btn--ghost { border-color: var(--line); background: var(--btn-wash); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn--white { background: #fff; color: var(--fg); border-color: #fff; }
.btn--white:hover { background: var(--sand); }
.btn--danger { background: #fff; border-color: rgba(179,64,46,0.4); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn--link { min-height: 0; padding: 0; color: var(--terra); font-weight: 500; }
.btn--link:hover { color: var(--fg); }
.btn--block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,0.7); border: 1.5px solid var(--line-2); backdrop-filter: blur(6px); font-size: 13px; font-weight: 500; color: var(--fg); }
a.pill { text-decoration: none; }
a.pill:hover { border-color: var(--terra); background: #fff; }
.pill--credits strong { font-size: 15px; font-weight: 600; color: var(--terra); }
.pill__home { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; background: rgba(255,255,255,0.7); border: 1.5px solid var(--line-2); backdrop-filter: blur(6px); color: var(--terra); text-decoration: none; flex: none; margin-right: 8px; }
.pill__home:hover { border-color: var(--terra); background: #fff; }
.pill__home svg { width: 20px; height: 20px; }
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--sand); color: var(--terra); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tag--plum { background: var(--plum); color: #fff; }
.tag--outline { background: #fff; border: 1.5px solid var(--line-2); color: var(--fg); }
.tag--terra { background: var(--terra); color: #fff; }
.certif-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--terra); font-weight: 600; line-height: 1; vertical-align: middle; }
.certif-badge__icon { width: 16px; height: 16px; flex: none; }
.certif-badge__label { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.certif-badge--md .certif-badge__icon { width: 18px; height: 18px; }
.certif-badge--md .certif-badge__label { font-size: 12px; }
.certif-badge--icon { gap: 0; }
.certif-badge--icon .certif-badge__icon { width: 18px; height: 18px; }
.pill .certif-badge { color: var(--terra); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 11px; font-weight: 600; }
.badge[hidden] { display: none !important; }
.badge--label { padding-inline: 8px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Typographie ---------- */
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); }
.kicker--tight { letter-spacing: .16em; }
.kicker--rose { color: var(--rose); }
.lead { font-size: clamp(16px, 1.8vw, 21px); line-height: 1.6; color: var(--muted); }
.lead--sm { font-size: clamp(15px, 1.6vw, 18px); }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-center { text-align: center; }
.h-display { font-size: clamp(34px, 6.8vw, 82px); line-height: 1.03; letter-spacing: -0.025em; max-width: 17em; }
.h-display--sm { font-size: clamp(32px, 6.2vw, 76px); max-width: 18em; }
.h-1 { font-size: clamp(28px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.025em; }
.h-2 { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.15; }
.h-3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.2; }
.h-4 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.prose p { margin: 0 0 20px; font-size: 16px; line-height: 1.75; color: var(--text); }
.prose h2 { margin: 34px 0 14px; font-size: clamp(20px, 2.4vw, 26px); scroll-margin-top: 72px; }
.prose h3 { margin: 28px 0 10px; font-size: 18px; scroll-margin-top: 72px; }
.prose ul, .prose ol { margin: 0 0 20px 0; padding-left: 20px; color: var(--text); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-3); vertical-align: top; color: var(--text); }
.prose th { color: var(--fg); font-weight: 600; }
.prose blockquote { margin: 0 0 24px; padding: 18px 22px; border-left: 3px solid var(--terra); background: rgba(255,255,255,0.7); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 17px; line-height: 1.65; color: var(--fg); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .article-note { margin: 0 0 24px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--paper); border: 1.5px solid var(--line); }
.prose .article-note p, .prose .article-note li { font-size: 15px; }
.prose .article-note p:last-child { margin-bottom: 0; }
.prose .article-links { margin: 0 0 24px; padding: 18px 20px; border-radius: var(--radius-md); background: rgba(255,255,255,0.76); border: 1px solid rgba(var(--terra-rgb),0.16); }
.prose .article-links .kicker { display: block; margin-bottom: 10px; }
.prose .article-links ul { margin-bottom: 0; }
.prose .faq { margin: 0 0 24px; }
@media (max-width: 767px) {
  .prose table {
    display: block;
    width: 100%;
    overflow: visible;
    border: 0;
  }
  .prose thead { display: none; }
  .prose tbody { display: block; }
  .prose tr {
    display: grid;
    gap: 6px;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
  }
  .prose th, .prose td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: break-word;
  }
  .prose td:first-child {
    font-weight: 600;
    color: var(--fg);
  }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(20px, 2.6vw, 30px); padding: clamp(34px, 7vw, 80px) 0; animation: lt-in .7s ease both; }
.page--door .hero { padding: 0 0 9vh; }
.page--door .hero .lead { max-width: 44em; }
.hero--compact { padding: clamp(28px, 5vw, 60px) 0 clamp(24px, 4vw, 42px); gap: 12px; }
.hero--letter { padding: clamp(34px, 7vw, 78px) 0 clamp(26px, 4vw, 48px); gap: clamp(16px, 2vw, 24px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.hero__note { margin-top: 6px; font-size: 13px; color: var(--muted); }
.promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.promises li { display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--terra); letter-spacing: .01em; }
.promises li + li::before { content: "·"; margin: 0 14px; color: rgba(var(--terra-rgb), .5); font-weight: 700; }
.page--door { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100dvh; padding: var(--pad-page); }
.page--door > *:not(.blob):not(.home-bubbles):not(.home-faces) { position: relative; z-index: 1; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 14px; }
.grid--facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--settings { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--posts { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.grid--communes { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.card { background: var(--surface); border: 1px solid rgba(var(--terra-rgb),0.14); backdrop-filter: blur(6px); border-radius: var(--radius-md); padding: 20px 22px; }
.card--solid { background: rgba(255,255,255,0.78); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); }
.card--paper { background: var(--paper); border: 0; border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); }
.card--plum { background: var(--plum); color: #fff; border: 0; border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 26px); }
.card--plum .kicker { color: var(--rose); }
.card--plum p { color: #F1E2E9; }
.card--plum h2, .card--plum h3 { color: #fff; }
.card--hover { cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.card--hover:hover { border-color: var(--terra); }
.fact__k { margin-bottom: 8px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); }
.fact__v { margin-bottom: 6px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--fg); }
.fact__d { font-size: 13px; line-height: 1.55; color: var(--muted); }
.dotline { display: flex; gap: 12px; align-items: flex-start; }
.dotline__dot { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 999px; background: var(--terra); }
.dotline p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* ---------- Pied de page ---------- */
.footlinks { margin-top: auto; border-top: 1px solid rgba(var(--terra-rgb),0.18); padding: 16px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.footlinks__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(14px, 2.4vw, 24px); }
.footlinks a, .footlinks button { font-size: 13px; font-weight: 500; color: var(--fg); }
.footlinks a:hover, .footlinks button:hover { color: var(--terra); }
.footlinks__legal { gap: 8px clamp(12px, 2vw, 20px); }
.footlinks__legal a { font-size: 12px; color: var(--muted); font-weight: 400; }
.footlinks__legal a:hover { color: var(--terra); }
.footlinks__copy { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
/* Variante inline : footer minimal des pages auth/erreur, liens centrés sur une ligne. */
.footlinks--inline { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px clamp(12px, 2vw, 20px); }
.footlinks--inline a { font-size: 12px; color: var(--muted); font-weight: 400; }
.footlinks--inline a:hover { color: var(--terra); }

/* ---------- Sections « comment ça marche » ---------- */
.steps { display: grid; gap: clamp(20px, 3vw, 34px); padding-bottom: clamp(34px, 5vw, 60px); }
.step { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(22px, 3.4vw, 44px); padding: clamp(22px, 3.4vw, 36px); border-radius: var(--radius-xl); background: rgba(255,255,255,0.72); border: 1px solid rgba(var(--terra-rgb),0.16); backdrop-filter: blur(6px); }
.step--plum { background: var(--plum); border-color: var(--fg); }
.step__text { flex: 1 1 280px; min-width: 0; }
.step__text .kicker { display: block; margin-bottom: 10px; letter-spacing: .16em; }
.step__text h2 { margin-bottom: 12px; }
.step__text p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.step--plum .step__text .kicker { color: var(--rose); }
.step--plum h2 { color: #fff; }
.step--plum .step__text p { color: #F1E2E9; }
.step--plum .step__text p + p { margin-top: 14px; font-size: 15px; color: var(--wine-soft); }
.step__visual { flex: 1 1 300px; min-width: 0; }
.demo-circle { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 74px 24px; padding: 54px 0 58px; }
.demo-bubble { flex: 0 0 auto; border-radius: 999px; background: rgba(255,255,255,0.8); border: 1.5px solid rgba(var(--terra-rgb),0.28); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); animation: lt-dimmed 10s ease-in-out infinite; }
.demo-bubble--main { position: relative; width: 104px; height: 104px; background: #fff; flex-direction: column; gap: 2px; animation: lt-chosen 10s ease-in-out infinite; }
.demo-bubble--main strong { font-size: 12px; font-weight: 600; color: var(--fg); }
.demo-bubble__sat { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; padding: 6px 12px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 500; animation: lt-satellite 10s ease-in-out infinite; }
.demo-bubble__sat--down { top: 100%; margin-top: 10px; background: var(--terra); }
.demo-bubble__sat--up { bottom: 100%; margin-bottom: 10px; background: var(--plum); }
.demo-vote { padding: clamp(18px, 2.6vw, 26px); border-radius: 24px; background: rgba(255,255,255,0.08); }
.demo-vote__msg { margin-bottom: 14px; max-width: 88%; padding: 13px 16px; border-radius: 18px 18px 18px 6px; background: var(--paper); color: var(--text); font-size: 14px; line-height: 1.55; animation: lt-vmsg 10s ease-in-out infinite; }
.demo-vote__pills { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; animation: lt-vpills 10s ease-in-out infinite; }
.demo-vote__pills span:first-child { font-size: 12px; color: var(--wine-soft); }
.vpill { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 999px; background: #fff; color: var(--terra); font-size: 13px; font-weight: 600; }
.vpill--pick { animation: lt-vpick 10s ease-in-out infinite; }
.demo-vote__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.demo-vote__row .kicker { font-size: 11px; letter-spacing: .14em; color: var(--rose); }
.demo-vote__row strong { font-size: 12px; font-weight: 600; color: #fff; animation: lt-vbadge 10s ease-in-out infinite; }
.gauge { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.gauge--dark { background: rgba(255,255,255,0.18); }
.gauge__bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rose), var(--terra)); transition: width .6s cubic-bezier(.2,.8,.3,1); }
.gauge__bar--demo { animation: lt-vgauge 10s ease-in-out infinite; }
.gauge__bar--ladder { animation: lt-gauge 14s linear infinite; }
.demo-reveal { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 2.6vw, 30px); }
.demo-reveal__avatar { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.avatar-blur { position: relative; width: 116px; height: 116px; border-radius: 999px; overflow: hidden; border: 1.5px solid var(--line-2); background: repeating-linear-gradient(135deg, #F7EBE4 0 8px, #EFDDD3 8px 16px); animation: lt-unblur 14s linear infinite; }
.avatar-blur span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0 5px; background: rgba(var(--plum-rgb),0.72); color: #fff; font-size: 9px; font-weight: 500; letter-spacing: .08em; text-align: center; text-transform: uppercase; animation: lt-ping 14s linear infinite; }
.demo-reveal__list { flex: 1 1 220px; min-width: 0; }
.demo-reveal__list .gauge { margin-bottom: 16px; }
.ladder { display: grid; gap: 9px; }
.ladder__row { display: flex; align-items: center; gap: 10px; }
.ladder__row:nth-child(1) { animation: lt-s1 14s linear infinite; }
.ladder__row:nth-child(2) { animation: lt-s2 14s linear infinite; }
.ladder__row:nth-child(3) { animation: lt-s3 14s linear infinite; }
.ladder__row:nth-child(4) { animation: lt-s4 14s linear infinite; }
.ladder__pts { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 12px; font-weight: 600; }
.ladder__row span:last-child { font-size: 14px; color: var(--text); }
.ladder__row strong { font-weight: 600; color: var(--fg); }
.demo-switch { display: grid; gap: 12px; }
.demo-switch__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line-2); }
.demo-switch__lbl { display: block; font-size: 15px; font-weight: 500; color: var(--fg); }
.demo-switch__states { position: relative; display: block; height: 20px; font-size: 13px; }
.demo-switch__states span { position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--muted); }
.demo-switch__states span:first-child { animation: lt-swOn 9s ease-in-out infinite; }
.demo-switch__states span:last-child { animation: lt-swOff 9s ease-in-out infinite; }
.demo-switch__track { flex: none; display: inline-flex; align-items: center; width: 40px; height: 22px; padding: 2px; border-radius: 999px; animation: lt-swTrack 9s ease-in-out infinite; }
.demo-switch__knob { display: block; width: 18px; height: 18px; border-radius: 999px; background: #fff; animation: lt-swKnob 9s ease-in-out infinite; }
.demo-switch__faded { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: 20px; background: var(--paper); animation: lt-rowFade 9s ease-in-out infinite; font-size: 14px; color: var(--muted); }
.demo-switch__faded span:last-child { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.demo-radius { display: grid; place-items: center; padding: 4px 0 2px; }
.demo-radius__map { position: relative; width: min(100%, 280px); aspect-ratio: 1; }
.demo-radius__pulse,
.demo-radius__core { position: absolute; left: 50%; top: 50%; border-radius: 999px; }
.demo-radius__pulse { width: 70%; height: 70%; border: 1.5px solid rgba(var(--terra-rgb), .32); animation: lt-radar 5.6s ease-out infinite; }
.demo-radius__pulse--late { animation-delay: 2.5s; border-color: rgba(var(--plum-rgb), .16); }
.demo-radius__core { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1.5px solid var(--terra); font-size: 11px; font-weight: 600; color: var(--fg); animation: lt-core 5.6s ease-in-out infinite; }
.demo-radius__dot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid rgba(var(--terra-rgb), .22); font-size: 11px; color: var(--muted); animation: lt-satellite 10s ease-in-out infinite; }
.demo-radius__dot--mid { animation-delay: 1.2s; }
.demo-radius__dot--far { animation-delay: 2.4s; }
.article-demo--plum .demo-radius__core { background: var(--paper); }
.article-demo--plum .demo-radius__dot { background: rgba(255, 255, 255, .1); color: var(--wine-soft); border-color: rgba(255, 255, 255, .2); }
.demo-walk { padding: 4px 2px 0; }
.demo-walk__scene { position: relative; height: 124px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #D7E6DA 0 38%, #E8DCCE 55% 100%); }
.demo-walk__water { position: absolute; left: 0; right: 0; top: 38%; height: 17%; background: linear-gradient(90deg, #8AA4AC, #6E8E98, #8AA4AC); animation: lt-breathe 6s ease-in-out infinite; }
.demo-walk__path { position: absolute; left: 8%; right: 8%; top: 72%; height: 3px; border-radius: 999px; background: rgba(var(--terra-rgb), .35); }
.demo-walk__me,
.demo-walk__you { position: absolute; top: 58%; width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; }
.demo-walk__me { left: 14%; background: var(--terra); animation: lt-walkA 9s ease-in-out infinite; }
.demo-walk__you { right: 14%; background: var(--plum); animation: lt-walkB 9s ease-in-out infinite; }
@keyframes lt-walkA { 0%, 18% { transform: translateX(0); } 58%, 100% { transform: translateX(58px); } }
@keyframes lt-walkB { 0%, 18% { transform: translateX(0); } 58%, 100% { transform: translateX(-58px); } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head p { max-width: 30em; font-size: 15px; line-height: 1.55; color: var(--muted); }
.cta-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: clamp(16px, 3vw, 30px) 0 clamp(6px, 1vw, 12px); }
.cta-block__title { max-width: 26em; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--fg); }
.cta-block p { max-width: 32em; font-size: 15px; line-height: 1.6; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-md); background: rgba(255,255,255,0.78); border: 1.5px solid var(--line); padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; color: var(--fg); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--terra); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- Journal ---------- */
.post-card { display: flex; flex-direction: column; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: rgba(255,255,255,0.76); border: 1px solid rgba(var(--terra-rgb),0.16); backdrop-filter: blur(6px); transition: border-color .2s ease; }
.post-card:hover { border-color: var(--terra); }
.post-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.post-card h2 { margin-bottom: 10px; }
.post-card h2 a { color: var(--fg); }
.post-card p { margin-bottom: 18px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.post-card__more { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--terra); }
.article { width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(28px, 5vw, 60px) 0 clamp(30px, 5vw, 54px); }
.article__back { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 20px; font-size: 13px; font-weight: 500; color: var(--terra); }
.article__header { max-width: 720px; }
.article__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.article h1 { margin-bottom: 18px; font-size: clamp(26px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
.article__chapo { margin-bottom: 28px; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; color: var(--text); }
.article-layout { display: flex; flex-direction: column; gap: 8px; }
.article-toc { position: sticky; top: 0; z-index: 18; margin: 0 0 20px; }
.article-toc__box { border-radius: var(--radius-md); background: rgba(255,255,255,0.92); border: 1.5px solid var(--line); backdrop-filter: blur(10px); padding: 4px 16px 8px; }
.article-toc summary { cursor: pointer; padding: 12px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::after { content: '+'; color: var(--fg); font-size: 18px; line-height: 1; font-weight: 500; }
.article-toc details[open] summary::after { content: '−'; }
.article-toc ol { margin: 0 0 10px; padding: 0; list-style: none; }
.article-toc li { margin: 0; }
.article-toc a { display: block; padding: 6px 0; font-size: 13px; line-height: 1.4; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; padding-left: 10px; }
.article-toc__lvl-3 a { padding-left: 20px; font-size: 12px; }
.article-toc a:hover { color: var(--fg); }
.article-toc a.is-active { color: var(--fg); font-weight: 500; border-left-color: var(--terra); }
.article__cta { margin-top: 34px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: rgba(255,255,255,0.76); border: 1px solid rgba(var(--terra-rgb),0.16); max-width: 720px; }
.article__cta p { margin-bottom: 12px; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.article__nocomments { max-width: 720px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.article-demo { margin: 8px 0 28px; padding: clamp(16px, 2.4vw, 24px); border-radius: var(--radius-lg); background: rgba(255,255,255,0.72); border: 1px solid rgba(var(--terra-rgb),0.16); overflow: visible; }
.article-demo--plum { background: var(--plum); border-color: var(--fg); }
.article-demo .demo-circle { padding: 52px 8px 56px; gap: 62px 18px; }
.article-demo__caption { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; }
.article-demo--plum .article-demo__caption { color: var(--wine-soft); }
@media (min-width: 960px) {
  .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 40px; align-items: start; }
  .article-layout--solo { grid-template-columns: minmax(0, 720px); }
  .article-toc { grid-column: 2; grid-row: 1; top: 24px; margin: 34px 0 0; }
  .article__body { grid-column: 1; grid-row: 1; min-width: 0; }
  .article-toc__box { padding: 16px 18px 18px; }
  .article-toc summary { pointer-events: none; padding-top: 0; }
  .article-toc summary::after { display: none; }
  .article-toc details { display: block; }
  .article-toc details[open] nav, .article-toc nav { display: block; }
  .prose h2, .prose h3 { scroll-margin-top: 24px; }
}

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; font-size: 13px; font-weight: 500; color: var(--fg); }
.field__hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.field__hint.is-ok { color: var(--success); }
.field__hint.is-bad { color: var(--danger); }
.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--cream-2);
  font-size: 16px; font-weight: 400; color: var(--fg); transition: border-color .2s ease, background .2s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--terra); background: #fff; }
.textarea { min-height: 120px; padding: 14px 18px; line-height: 1.55; resize: vertical; }
.input--round { height: 62px; min-height: 62px; max-width: 520px; padding: 0 22px; border-radius: 999px; background: #fff; font-size: 18px; }

.ob-name { position: relative; max-width: 520px; }
.ob-name .input--round { max-width: none; padding-right: 58px; }
.ob-name__help {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--terra); border-radius: 999px;
}
.ob-name__help:hover { background: rgba(var(--terra-rgb), 0.12); }
.ob-name__help:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.ob-name__help svg { width: 22px; height: 22px; display: block; }

.combo { position: relative; max-width: 520px; }
.combo .input--round { max-width: none; }
.combo.is-open .input--round, .combo.is-picked .input--round { border-color: var(--terra); background: #fff; }
.combo.is-picked .input--round { padding-right: 52px; }
.combo__ok {
  display: none; position: absolute; right: 18px; top: 0; width: 22px; height: 62px;
  align-items: center; justify-content: center; pointer-events: none;
}
.combo.is-picked .combo__ok { display: flex; }
.combo__ok::before {
  content: ""; width: 22px; height: 22px; border-radius: 999px; background: var(--terra);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5 9-10'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}
.combo__list {
  position: relative; z-index: 12; max-height: min(340px, 52vh); overflow: auto;
  margin: 8px 0 0; padding: 8px; list-style: none;
  background: #fff; border: 1.5px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-modal);
}
.combo__opt {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 14px; cursor: pointer;
  color: var(--text); font-size: 15px; font-weight: 500;
}
.combo__opt small { font-weight: 400; font-size: 12px; color: var(--muted); }
.combo__opt:hover, .combo__opt.is-active { background: var(--sand); }
.combo__opt.is-selected { background: var(--terra); color: #fff; }
.combo__opt.is-selected small { color: rgba(255,255,255,0.86); }
.combo__none { padding: 14px 16px; font-size: 13.5px; font-weight: 500; color: var(--muted); line-height: 1.45; }
.textarea--round { padding: 18px 22px; border-radius: 22px; background: #fff; font-size: 17px; line-height: 1.6; }

/* Compteur de caractères (étape 7 — bio) */
form[data-step="7"] .ob__help { max-width: none; padding-right: 180px; }
.bio-wrap { position: relative; }
.bio-counter {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 10px 16px 8px;
  border-radius: 16px;
  background: var(--cream-2);
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 14px rgba(60, 30, 20, 0.08);
  pointer-events: none;
  min-width: 132px;
}
.bio-counter::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: var(--cream-2);
  border-right: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  transform: rotate(45deg);
}
.bio-counter__num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--terra);
}
.bio-counter__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bio-counter__sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bio-counter[data-state="ok"] .bio-counter__num { color: var(--success, #2e7d4f); }
.bio-counter[data-state="ok"] { border-color: rgba(46, 125, 79, 0.35); }
.bio-counter.is-full .bio-counter__num { color: var(--muted); }
.bio-counter.is-full .bio-counter__sub { color: var(--danger, #b3261e); }
@media (max-width: 1024px) {
  form[data-step="7"] .ob__help { padding-right: 0; }
  .bio-wrap { display: flex; flex-direction: column; }
  .bio-counter {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px 8px;
    min-width: 0;
    margin-bottom: 10px;
    padding: 8px 12px;
  }
  .bio-counter::after { display: none; }
  .bio-counter__num { font-size: 20px; }
  .bio-counter__label { font-size: 11px; letter-spacing: .04em; }
  .bio-counter__sub { font-size: 12px; margin-left: auto; }
}
@media (max-width: 380px) {
  .bio-counter { padding: 6px 10px; }
  .bio-counter__num { font-size: 20px; }
  .bio-counter__sub { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .bio-counter { transition: border-color .2s ease, background .2s ease; }
}
.bio-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 14px 0 28px;
}
.bio-suggest--lead { margin: 0 0 12px; }
.bio-suggest .btn { flex: none; }
.bio-suggest__hint { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.textarea--round.is-suggested { box-shadow: 0 0 0 3px rgba(var(--terra-rgb), 0.22); }
@media (prefers-reduced-motion: no-preference) {
  .textarea--round.is-suggested { animation: bio-suggest-in .45s ease; }
}
@keyframes bio-suggest-in {
  from { box-shadow: 0 0 0 0 rgba(var(--terra-rgb), 0.28); }
  to { box-shadow: 0 0 0 3px rgba(var(--terra-rgb), 0.22); }
}
@media (max-width: 1024px) {
  .bio-suggest { margin-top: 10px; margin-bottom: 22px; gap: 8px 12px; }
  .bio-suggest .btn { min-height: 44px; }
}

.select { appearance: none; 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='%235C2540' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; color: var(--text); cursor: pointer; line-height: 1.5; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--terra); }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.field-list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.field-list .check { padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); transition: border-color .15s ease, background .15s ease; }
.field-list .check:has(input:checked) { border-color: rgba(var(--terra-rgb), 0.6); background: rgba(var(--rose-rgb), 0.1); }
.field-list__hint { margin: -8px 0 14px; font-size: 12px; font-weight: 500; color: var(--terra); }
.nudge-fields { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.nudge-fields[hidden] { display: none; }
.nudge-fields li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(var(--rose-rgb), 0.12); color: var(--plum); font-size: 13px; font-weight: 500; }
.nudge-fields li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }
.form__error { padding: 12px 16px; border-radius: 14px; background: var(--bad-bg); color: var(--bad-ink); font-size: 14px; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.range { width: 100%; accent-color: var(--terra); }
.range-box { max-width: 560px; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 22px; }
.range-box__label { margin-bottom: 16px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--terra); }
.range-box__legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ---------- Pace (étape 6) ---------- */
.pace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
@media (max-width: 720px) { .pace { grid-template-columns: 1fr; gap: 18px; } }
.pace__slider { width: 100%; max-width: none; }
.pace-slider { position: relative; padding: 18px 0 6px; }
.pace-slider__track { position: relative; height: 8px; border-radius: 999px; background: rgba(var(--terra-rgb), .15); }
.pace-slider__fill { position: absolute; inset: 0 auto 0 0; width: var(--pace-fill, 50%); border-radius: 999px; background: var(--terra); transition: width .28s cubic-bezier(.4, .2, .2, 1); }
.pace-slider__thumb { position: absolute; top: 50%; left: var(--pace-thumb, 50%); width: 26px; height: 26px; margin: 0; border-radius: 50%; background: #fff; border: 3px solid var(--terra); box-shadow: 0 3px 10px rgba(0, 0, 0, .16); transform: translate(-50%, -50%) scale(1); transition: left .28s cubic-bezier(.4, .2, .2, 1), transform .15s ease, box-shadow .15s ease; pointer-events: none; }
.pace-slider__input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: grab; }
.pace-slider__input:active { cursor: grabbing; }
.pace-slider__input:focus-visible ~ .pace-slider__track .pace-slider__thumb { box-shadow: 0 0 0 6px rgba(var(--terra-rgb), .25), 0 3px 10px rgba(0, 0, 0, .16); transform: translate(-50%, -50%) scale(1.08); }
.pace-slider.is-pressing .pace-slider__thumb { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.pace__hint { padding: 4px 4px 4px 22px; border-left: 2px solid rgba(var(--terra-rgb), .25); }
.pace__hint-title { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.pace__keywords { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pace__keywords li { padding: 6px 12px; border-radius: 999px; background: rgba(var(--terra-rgb), .1); color: var(--ink); font-size: 13.5px; font-weight: 500; animation: pace-kw-in .28s ease both; }
.pace__keywords li:nth-child(2) { animation-delay: .04s; }
.pace__keywords li:nth-child(3) { animation-delay: .08s; }
.pace__keywords li:nth-child(4) { animation-delay: .12s; }
@keyframes pace-kw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.pace__hint-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips--dense { gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--fg); font-size: 16px; font-weight: 500; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; user-select: none; }
.chip:hover { border-color: var(--terra); }
.chip--sm { min-height: 46px; padding: 0 18px; font-size: 14px; }
.chip--xs { min-height: 42px; padding: 0 16px; font-size: 14px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.is-on, .chip:has(input:checked) { background: var(--terra); border-color: var(--terra); color: #fff; }
.chip--plum.is-on, .chip--plum:has(input:checked) { background: var(--plum); border-color: var(--fg); }
.chips + .chips__hint, .chips__hint { margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
.chips__counter { display: inline-block; min-width: 3em; padding: 2px 9px; margin-right: 6px; border-radius: 999px; background: rgba(var(--terra-rgb), .12); color: var(--terra); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.chips--stack { flex-direction: column; gap: 8px; }
.chips--communes { gap: 8px; margin-bottom: 20px; }
.chips--communes .chip--sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.chip--choice { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 0; height: auto; border-radius: 16px; padding: 12px 16px; gap: 4px; white-space: normal; line-height: 1.35; }
.chip__title { font-weight: 600; font-size: 14px; }
.chip__sub { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.chip--choice:has(input:checked) .chip__sub { color: rgba(255,255,255,.88); }

/* ---------- Onboarding ---------- */
.page--onboarding { display: grid; grid-template-rows: auto 1fr auto; padding: var(--pad-page); }
.ob__head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ob__head img { height: 40px; width: auto; }
.ob__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.ob__meta .counter { color: var(--terra); }
.ob__meta a { color: var(--muted); }
.ob__meta a:hover { color: var(--fg); }
.ob__body { position: relative; max-width: 880px; width: 100%; margin: 0 auto; align-self: center; padding: clamp(28px, 6vw, 60px) 0; }
.ob__body .kicker { display: block; margin-bottom: 22px; letter-spacing: .18em; }
.ob__q { margin-bottom: 18px; font-size: clamp(28px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.ob__help { margin-bottom: 36px; max-width: 34em; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.65; color: var(--muted); }
.ob__help:has(+ .ob__zone) { margin-bottom: 10px; }
.ob__zone { margin: 0 0 28px; max-width: 34em; font-size: 15px; line-height: 1.5; font-weight: 600; }
.ob__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; border-top: 1px solid rgba(var(--terra-rgb),0.18); padding-top: 18px; flex-wrap: wrap; }
.ob__bars { display: flex; gap: 6px; order: 1; }
.ob__bars span { flex: 1 1 auto; width: 34px; height: 4px; border-radius: 999px; background: var(--line-4); }
.ob__bars span.is-done { background: var(--terra); }
.ob__bars span.is-current { background: var(--rose); }
.ob__nav { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; order: 2; }
.ob__block { flex: 1 0 100%; order: 3; margin: 0; font-size: 13px; line-height: 1.45; color: var(--danger); overflow-wrap: anywhere; }
.ob__block[hidden] { display: none !important; }
.ob__nav .back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.ob__nav .back:hover { color: var(--fg); }
.ob-app__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 420px; }
.ob-app__actions .btn { width: 100%; white-space: normal; }
.ob-app__note { margin: 18px 0 0; max-width: 34em; font-size: 14px; line-height: 1.5; color: var(--muted); }
body:has(#cookie-notice) .page--onboarding:has(.ob-app) { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
.chips__hint--top { margin-top: 0; margin-bottom: 14px; }
@media (max-width: 1024px) {
  .page--onboarding {
    overflow-x: clip;
    overflow-y: visible;
    min-height: 100dvh;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 0;
  }
  .page--onboarding:has(.ob__done) {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  body:has(#cookie-notice) .page--onboarding:has(.ob__done) {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
  .ob__head { gap: 8px; flex-wrap: nowrap; }
  .ob__head img { height: 36px; }
  .ob__meta a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
  .ob__body { padding: 10px 0 8px; max-width: none; }
  .ob__body .kicker { margin-bottom: 10px; letter-spacing: .14em; }
  .ob__q {
    margin-bottom: 10px;
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.15;
    overflow-wrap: break-word;
    hyphens: manual;
  }
  .ob__help { margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
  .ob__zone { margin-bottom: 14px; }
  .page--onboarding .mt-4 { margin-top: 18px; }
  .page--onboarding .h-4 { font-size: 15px; }
  .ob__foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--kb, 0px);
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ob-to);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(var(--terra-rgb), 0.18);
  }
  .ob__bars { width: 100%; gap: 4px; }
  .ob__bars span { width: auto; min-width: 0; }
  .ob__nav { width: 100%; justify-content: space-between; gap: 12px; }
  .ob__nav .btn { flex: 1 1 auto; min-height: 48px; }
  .ob__block { padding: 0 2px; }
  #onboarding-form { padding-bottom: calc(var(--ob-foot-h, 96px) + 16px + var(--kb, 0px)); scroll-padding-bottom: calc(var(--ob-foot-h, 96px) + 24px + var(--kb, 0px)); }
  #onboarding-form[data-step="8"] { padding-bottom: calc(var(--ob-foot-h, 96px) + 28px + var(--kb, 0px)); }
  form[data-step="8"] .ob__help { margin-bottom: 12px; }
  form[data-step="8"] .account-form .form { margin-bottom: 12px; gap: 10px; }
  form[data-step="8"] .field { gap: 5px; }
  form[data-step="8"] .field__hint:empty { display: none; }
  form[data-step="8"] .account-consents { margin-top: 8px; }
  form[data-step="8"] .account-consents__required .check { padding: 10px 12px; min-height: 44px; }
  form[data-step="8"] .account-consents__optional { margin-top: 6px; }
  form[data-step="8"] .account-consents__optional .check { min-height: 40px; }
  form[data-step="8"] .mt-2 { margin-top: 10px; margin-bottom: 4px; }
  body:has(#cookie-notice) #onboarding-form { padding-bottom: calc(var(--ob-foot-h, 96px) + 16px + var(--kb, 0px) + 120px); }
  body:has(#cookie-notice) #onboarding-form[data-step="8"] { padding-bottom: calc(var(--ob-foot-h, 96px) + 28px + var(--kb, 0px) + 120px); }
  .input--round {
    max-width: none;
    height: 52px;
    min-height: 52px;
    font-size: 16px;
    padding: 0 18px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ob-name { max-width: none; }
  .ob-name .input--round { padding-right: 52px; }
  .ob-name__help { right: 4px; }
  .combo, .account-form { max-width: none; }
  .combo__list { max-height: min(220px, 40dvh); }
  .page--onboarding .chips { gap: 8px; }
  .page--onboarding .chip {
    max-width: 100%;
    white-space: nowrap;
    justify-content: center;
    text-align: center;
    height: auto;
    line-height: 1.25;
    min-height: 46px;
    padding: 10px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #onboarding-form > *:not([type="hidden"]):not(script):not(.ob__foot),
  .ob__done > * { animation-duration: .3s; }
  .page--onboarding .chips:not(.chips--dense) .chip {
    flex: 1 1 calc(48% - 8px);
  }
  form[data-step="1"] .chips:not(.chips--dense) .chip,
  form[data-step="3"] .chips:not(.chips--dense) .chip {
    flex: 1 1 calc(30% - 8px);
    font-size: 14px;
    padding: 10px 8px;
  }
  .page--onboarding form[data-step="4"] .chips .chip {
    flex: 1 1 100%;
    justify-content: flex-start;
    text-align: left;
    min-height: 48px;
    padding: 12px 16px;
    white-space: normal;
  }
  .page--onboarding form[data-step="5"] .chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page--onboarding form[data-step="5"] .chips .chip {
    flex: none;
    max-width: none;
    width: auto;
    justify-content: center;
    text-align: center;
    align-items: center;
    white-space: normal;
  }
  .page--onboarding .chips--dense .chip {
    flex: 1 1 calc(30% - 8px);
    max-width: calc(33.333% - 6px);
    min-height: 44px;
    padding: 8px 6px;
    font-size: 13px;
  }
  .range-box { padding: 16px; }
  .range-box__label { font-size: 17px; margin-bottom: 12px; }
  .pace-slider { padding: 22px 0 14px; min-height: 44px; }
  .pace-slider__track { height: 10px; }
  .pace-slider__thumb { width: 30px; height: 30px; }
  .pace-slider__input { top: 50%; height: 44px; transform: translateY(-50%); }
  .pace__hint { padding: 2px 0 0; border-left: 0; }
  .account-consents__required .check { padding: 12px 14px; min-height: 48px; font-size: 14px; }
  .account-consents__optional .check { min-height: 44px; align-items: center; }
  .account-consents .check a { display: inline; padding: 2px 0; text-decoration: underline; text-underline-offset: 2px; }
  .check input { width: 22px; height: 22px; margin-top: 2px; }
  body:has(.page--onboarding) .cookie {
    bottom: calc(var(--ob-foot-h, 96px) + 12px + var(--kb, 0px));
    z-index: 25;
  }
  body:has(.page--onboarding):has(.ob__done) .cookie {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
  }
}
/* Très petit écran : 3 colonnes coupent « Un homme » et « Peu importe ». */
@media (max-width: 340px) {
  form[data-step="1"] .chips:not(.chips--dense) .chip,
  form[data-step="3"] .chips:not(.chips--dense) .chip,
  .page--onboarding .chips--dense .chip {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 4px);
  }
}
/* Petit téléphone en hauteur : le pied fixe ne doit pas couvrir les choix. */
@media (max-width: 1024px) and (max-height: 700px) {
  .page--onboarding { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .ob__body { padding-top: 2px; }
  .ob__body .kicker { margin-bottom: 6px; }
  .ob__q { margin-bottom: 6px; }
  .ob__help { margin-bottom: 8px; }
  .ob__zone { margin-bottom: 10px; }
  .page--onboarding .mt-4 { margin-top: 12px; }
}
#onboarding-form > *:not([type="hidden"]):not(script):not(.ob__foot),
.ob__done > * {
  animation: ob-in .48s cubic-bezier(.22,.82,.24,1) both;
}
.page--onboarding.is-enter-back #onboarding-form > *:not([type="hidden"]):not(script):not(.ob__foot) { animation-name: ob-in-back; }
#onboarding-form > *:nth-child(1), .ob__done > *:nth-child(1) { animation-delay: 0s; }
#onboarding-form > *:nth-child(2), .ob__done > *:nth-child(2) { animation-delay: .05s; }
#onboarding-form > *:nth-child(3), .ob__done > *:nth-child(3) { animation-delay: .1s; }
#onboarding-form > *:nth-child(4), .ob__done > *:nth-child(4) { animation-delay: .15s; }
#onboarding-form > *:nth-child(5), .ob__done > *:nth-child(5) { animation-delay: .2s; }
#onboarding-form > *:nth-child(6), .ob__done > *:nth-child(6) { animation-delay: .25s; }
#onboarding-form > *:nth-child(7), .ob__done > *:nth-child(7) { animation-delay: .3s; }
#onboarding-form > *:nth-child(8), .ob__done > *:nth-child(8) { animation-delay: .34s; }
#onboarding-form > *:nth-child(9), .ob__done > *:nth-child(9) { animation-delay: .38s; }
#onboarding-form > *:nth-child(10), .ob__done > *:nth-child(10) { animation-delay: .42s; }
#onboarding-form > *:nth-child(n+11), .ob__done > *:nth-child(n+11) { animation-delay: .45s; }
.page--onboarding.is-leaving { pointer-events: none; }
.page--onboarding.is-leaving #onboarding-form > *:not([type="hidden"]):not(script):not(.ob__foot),
.page--onboarding.is-leaving .ob__done > * {
  animation-name: ob-out;
  animation-duration: .32s;
  animation-delay: 0s;
  animation-timing-function: ease;
  animation-fill-mode: both;
}
.page--onboarding.is-leaving-back #onboarding-form > *:not([type="hidden"]):not(script):not(.ob__foot) { animation-name: ob-out-back; }
.ob__done { display: flex; flex-direction: column; align-items: center; text-align: center; }
.seal { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 999px; background: var(--terra); margin-bottom: 28px; }
.ob__done > .seal { animation: lt-seal .6s cubic-bezier(.2,.8,.3,1) both; }
.ob__done h1 { margin-bottom: 18px; font-size: clamp(28px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.ob__done .lead { max-width: 32em; margin-bottom: 14px; color: var(--text); line-height: 1.68; }
.credit-box { display: inline-flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 24px; padding: 18px 26px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line-2); }
.credit-box p:first-child { font-size: 16px; font-weight: 600; color: var(--fg); }
.credit-box p:first-child span { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--sand); color: var(--terra); }
.credit-box p:last-child { font-size: 13px; color: var(--muted); }
#modal-welcome-credits .modal__box { position: relative; z-index: 1; box-shadow: var(--shadow-modal), 0 0 36px rgba(var(--terra-rgb), 0.28); }
.fw-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ob__fine { margin-bottom: 32px; max-width: 34em; font-size: 13px; font-weight: 500; letter-spacing: .04em; line-height: 1.8; color: var(--muted); }
.account-form { max-width: 560px; }
.account-form .form { margin-bottom: 18px; }
@media (min-width: 1025px) {
  form[data-step="8"] .ob__help { margin-bottom: 24px; }
}
.account-consents { margin-top: 12px; }
.account-consents__required {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--cream-2);
}
.account-consents__required .check { padding: 9px 12px; font-size: 13px; line-height: 1.4; }
.account-consents__required .check ~ .check { border-top: 1px solid var(--line); }
.account-consents__required .form__error { margin: 0 14px 10px !important; }
.account-consents__optional { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 8px; padding: 0 4px; }
.account-consents__optional .check { color: var(--muted); font-size: 12px; line-height: 1.4; }
@media (max-width: 540px) {
  .account-consents__optional { grid-template-columns: 1fr; }
  .grid--facts { grid-template-columns: 1fr; }
}

/* ---------- Espace / cercle ---------- */
.cercle { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 92px clamp(26px, 3.4vw, 46px); padding: clamp(70px, 8vw, 110px) 0 clamp(80px, 9vw, 120px); }
.bubble { position: relative; flex: 0 1 142px; max-width: 162px; width: 142px; aspect-ratio: 1; transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.3,1); z-index: 1; }
.bubble:nth-child(5n+1) { animation: lt-floatA 19s ease-in-out infinite; }
.bubble:nth-child(5n+2) { margin-top: 26px; animation: lt-floatB 23s ease-in-out infinite; }
.bubble:nth-child(5n+3) { margin-top: 8px; animation: lt-floatC 21s ease-in-out infinite; }
.bubble:nth-child(5n+4) { margin-top: 30px; animation: lt-floatA 26s ease-in-out infinite; }
.bubble:nth-child(5n+5) { margin-top: 14px; animation: lt-floatC 24s ease-in-out infinite; }
.cercle.has-focus .bubble { opacity: .32; transform: scale(.94); }
.cercle.has-focus .bubble.is-focus { opacity: 1; transform: scale(1.12); z-index: 5; animation: none; }
.bubble__face { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,0.72); border: 1.5px solid rgba(var(--terra-rgb),0.28); backdrop-filter: blur(6px); box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px; cursor: pointer; width: 100%; transition: border-color .2s ease; }
.bubble.is-focus .bubble__face { border-color: var(--terra); }
.bubble__certif { position: absolute; top: 10px; right: 12px; z-index: 2; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(255,255,255,0.8)); }
.bubble__certif .certif-badge__icon { width: 18px; height: 18px; }
.bubble__code { font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.bubble__hint { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--fg); }
.bubble__dist { font-size: 11px; color: var(--muted); }
.bubble__sat { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(280px, calc(100vw - 40px)); display: none; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; animation: lt-fade .3s ease both; }
.bubble__sat--up { bottom: 100%; padding-bottom: 12px; }
.bubble__sat--down { top: 100%; padding-top: 12px; animation-duration: .4s; }
.bubble.is-focus .bubble__sat { display: flex; }
.bubble__sat span { display: inline-flex; align-items: center; white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.sat--plum { background: var(--plum); color: #fff; }
.sat--white { background: #fff; border: 1.5px solid var(--line-2); color: var(--fg); }
.sat--terra { background: var(--terra); color: #fff; pointer-events: auto; cursor: pointer; }

/* Bulle de conversation active (lien vers le fil) */
.bubble--conv { display: block; text-decoration: none; color: inherit; }
.bubble--conv .bubble__face { border-color: rgba(var(--terra-rgb),.55); background: rgba(255,248,244,.82); overflow: visible; }
.bubble--conv.is-focus .bubble__face, .bubble--conv:hover .bubble__face { border-color: var(--terra); }
.bubble--conv .bubble__code { color: var(--terra); }
.bubble--conv:hover .bubble__sat, .bubble--conv:focus .bubble__sat, .bubble--conv:focus-within .bubble__sat { display: flex; }
.bubble--conv .bubble__code, .bubble--conv .bubble__hint, .bubble--conv .bubble__dist { position: relative; z-index: 1; }

/* L'eau est clipée au cercle ; le badge certifié peut dépasser, comme les bulles de découverte */
.bubble__clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.bubble__water { position: absolute; left: 0; right: 0; bottom: 0; height: calc(26px + (100% - 26px) * var(--pct, 0) / 100); }
.bubble__wave { position: absolute; left: 0; bottom: 0; width: 200%; height: calc(100% + 22px); animation: bubble-wave 5.5s linear infinite; will-change: transform; }
.bubble__wave svg { display: block; width: 100%; height: 100%; fill: rgba(var(--terra-rgb), .26); }
@keyframes bubble-wave { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .bubble__wave { animation: none; } }

.bubble__badge { position: absolute; top: 8px; left: 10px; z-index: 2; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(var(--terra-rgb),.4); }
.bubble__badge--label { background: var(--plum); box-shadow: 0 2px 6px rgba(var(--plum-rgb),.4); font-weight: 600; }
.cercle__widen { max-width: 38em; margin: 0 auto; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cercle__renew { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 44px); transition: opacity .3s ease; }
.cercle.has-focus ~ .cercle__renew { opacity: 0; }
.cercle__empty { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: min(42vh, 420px); margin: 0 auto; padding: clamp(20px, 3vw, 36px) 0; overflow: hidden; text-align: center; }
#main:not(:has(.convlist)) > .cercle__empty { flex: 1 1 auto; }
#main:not(:has(.convlist)) .cercle-wrap .cercle__empty { flex: 1 1 auto; }
.cercle__search { position: absolute; inset: -8% -2%; pointer-events: none; }
.cercle__radar { position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; border-radius: 999px; border: 1.5px solid rgba(var(--terra-rgb),.32); transform: translate(-50%, -50%); animation: lt-radar 5.6s ease-out infinite; animation-fill-mode: both; }
.cercle__radar:nth-child(2) { animation-delay: 2.5s; border-color: rgba(var(--plum-rgb),.16); }
.cercle__core { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 999px; background: var(--terra); box-shadow: 0 0 0 10px rgba(var(--terra-rgb),.12); animation: lt-core 3s ease-in-out infinite; }
.cercle__orb { position: absolute; border-radius: 999px; background: rgba(255,255,255,.48); border: 1.5px solid rgba(var(--terra-rgb),.2); box-shadow: var(--shadow-card); }
.cercle__orb::after { content: ""; position: absolute; inset: 30%; border-radius: 999px; background: rgba(var(--terra-rgb),.12); }
html[data-tint-mode="dark"] .cercle__orb {
  background: radial-gradient(circle at 34% 30%, rgba(240,233,231,.12), rgba(var(--rose-rgb),.08) 54%, rgba(var(--terra-rgb),.04));
  border-color: rgba(var(--terra-rgb), .28);
  box-shadow: inset 0 0 20px rgba(var(--terra-rgb), .1);
}
html[data-tint-mode="dark"] .cercle__orb::after {
  background: rgba(var(--terra-rgb), .06);
}
.cercle__orb--1 { width: 78px; height: 78px; left: 6%; top: 16%; animation: lt-floatA 18s ease-in-out infinite; }
.cercle__orb--2 { width: 54px; height: 54px; right: 10%; top: 12%; animation: lt-floatB 22s ease-in-out infinite; }
.cercle__orb--3 { width: 66px; height: 66px; left: 12%; bottom: 14%; animation: lt-floatC 20s ease-in-out infinite; }
.cercle__orb--4 { width: 44px; height: 44px; right: 8%; bottom: 18%; animation: lt-floatA 24s ease-in-out infinite; }
.cercle__orb--5 { width: 36px; height: 36px; left: 48%; top: 6%; opacity: .72; animation: lt-floatC 16s ease-in-out infinite; }
html[data-tint-mode="dark"] .cercle__orb--5 { opacity: .48; }
.cercle__empty-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 24em; padding: 40px 24px; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--cream-2) 96%, transparent) 0%, color-mix(in srgb, var(--cream-2) 82%, transparent) 46%, transparent 74%); }
.cercle__empty-copy .h-2 { margin: 8px 0 8px; }
.cercle__empty-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.cercle__empty .hero__actions { margin-top: 2px; width: 100%; }
.cercle__empty .hero__actions form { display: flex; }
.cercle__empty .hero__actions .btn { flex: 0 0 auto; }
.cercle__empty-hint { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty; overflow-wrap: anywhere; max-width: 22em; }
.cercle__empty-hint a { text-decoration: underline; }
.cercle-wrap { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#main:not(:has(.convlist)) > .cercle-wrap { flex: 1 1 auto; }
.cercle-wrap.is-loading #cercle-result { display: none; }
.cercle__loading { display: none; }
.cercle-wrap.is-loading .cercle__loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1 1 auto; width: 100%; min-height: min(48vh, 460px);
  padding: clamp(20px, 3vw, 36px) 0; overflow: hidden; text-align: center;
  animation: cercle-fade-in .5s ease both;
}
.cercle-wrap.is-fading .cercle__loading { opacity: 0; transform: scale(.97); transition: opacity .45s ease, transform .45s ease; }
.cercle__loading-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 24em; padding: 40px 24px; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--cream-2) 96%, transparent) 0%, color-mix(in srgb, var(--cream-2) 82%, transparent) 46%, transparent 74%); animation: cercle-copy-in .7s .12s ease both; }
.cercle__loading-copy .kicker { margin: 0; }
.cercle__loading-t { font-size: 16px; line-height: 1.5; color: var(--muted); }
#cercle-result { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; opacity: 0; }
#cercle-result.is-revealed { opacity: 1; transition: opacity .5s ease; }
#main:not(:has(.convlist)) #cercle-result > .cercle__empty { flex: 1 1 auto; }
#cercle-result.is-revealed .cercle__empty { animation: cercle-empty-in .6s ease both; }
#cercle-result.is-revealed .bubble { animation: cercle-bubble-in .55s cubic-bezier(.2,.7,.3,1) both; }
#cercle-result.is-revealed .bubble:nth-child(1) { animation-delay: 40ms; }
#cercle-result.is-revealed .bubble:nth-child(2) { animation-delay: 110ms; }
#cercle-result.is-revealed .bubble:nth-child(3) { animation-delay: 180ms; }
#cercle-result.is-revealed .bubble:nth-child(4) { animation-delay: 250ms; }
#cercle-result.is-revealed .bubble:nth-child(5) { animation-delay: 320ms; }
#cercle-result.is-revealed .bubble:nth-child(6) { animation-delay: 390ms; }
#cercle-result.is-revealed .bubble:nth-child(7) { animation-delay: 460ms; }
#cercle-result.is-revealed .bubble:nth-child(8) { animation-delay: 530ms; }
.cercle-wrap.is-loading .cercle__orb {
  animation: none;
  transition: transform 1s cubic-bezier(.45,.05,.25,1);
  transform: translate3d(0,0,0);
}
.cercle-wrap.is-gathered .cercle__orb { transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0); }
.cercle-wrap.is-fading .cercle__orb { transition: transform .45s ease; transform: translate3d(0,0,0); }
@keyframes cercle-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cercle-copy-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cercle-bubble-in { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes cercle-empty-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.convlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 720px; margin: 0 auto clamp(10px, 2vw, 20px); width: 100%; }
.convlist__item { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: rgba(255,255,255,0.78); border: 1.5px solid var(--line); text-decoration: none; color: var(--fg); transition: border-color .2s ease; }
.convlist__item--new { border-color: rgba(var(--terra-rgb),.48); background: rgba(255,248,244,.92); }
.convlist__item:hover { border-color: var(--terra); color: var(--fg); }
.convlist__face { flex: none; position: relative; width: 46px; height: 46px; }
.convlist__avatar { flex: none; display: block; width: 46px; height: 46px; border-radius: 999px; overflow: hidden; background: repeating-linear-gradient(135deg, #F7EBE4 0 8px, #EFDDD3 8px 16px); border: 1.5px solid #EFDDD3; }
.convlist__face .presence-dot { right: 0; bottom: 0; width: 12px; height: 12px; border-color: #fff; }
.convlist__avatar img { width: 100%; height: 100%; object-fit: cover; }
.convlist__body { min-width: 0; flex: 1; }
.convlist__name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.convlist__presence { display: block; margin: 1px 0 2px; font-size: 12px; font-weight: 500; color: var(--success); }
.convlist__presence.is-off { color: var(--muted); }
.convlist__last { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convlist__read { color: var(--terra); font-weight: 500; }
.convlist__read--pending { color: var(--muted); font-weight: 400; }
.convlist__score { flex: none; font-size: 12px; font-weight: 600; color: var(--terra); }
.conv-empty { display: flex; flex-direction: column; align-items: center; flex: 1 1 auto; width: 100%; max-width: 720px; margin: 0 auto; padding: 4px 0 clamp(28px, 4vw, 44px); text-align: center; }
.conv-empty__mark { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 999px; background: rgba(255,255,255,.78); border: 1.5px solid rgba(var(--terra-rgb),.28); color: var(--terra); box-shadow: var(--shadow-card); }
.conv-empty__mark svg { width: 28px; height: 28px; }
.conv-empty .convlist { margin-bottom: 8px; }
.convlist__item--ghost { pointer-events: none; user-select: none; }
.convlist--ghost .convlist__item--ghost:nth-child(1) { opacity: .7; }
.convlist--ghost .convlist__item--ghost:nth-child(2) { opacity: .42; transform: scale(.985); }
.convlist--ghost .convlist__item--ghost:nth-child(3) { opacity: .2; transform: scale(.97); }
.conv-empty__skel { display: block; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 22%, transparent); }
.conv-empty__skel--name { width: 38%; height: 12px; margin-bottom: 10px; }
.conv-empty__skel--last { width: 74%; }
.conv-empty__copy { max-width: 26em; padding: 8px 12px 0; }
.conv-empty__copy .h-2 { margin: 0 0 8px; }
.conv-empty__copy .lead { margin: 0 0 4px; }
.conv-empty__copy .hero__actions { margin-top: 14px; }
.conv-empty__notice { max-width: 32em; margin: 0 auto 20px; }
#main:has(.conv-empty) > .conv-empty { flex: 1 1 auto; justify-content: center; }
@media (max-width: 1024px) {
  .convlist--ghost .convlist__item--ghost:nth-child(3) { display: none; }
  .conv-empty__mark { width: 64px; height: 64px; margin-bottom: 14px; }
}

/* ---------- Visite guidée ---------- */
.tour-anchor { position: relative; display: inline-flex; }
.tour-tip { position: absolute; left: 0; top: 100%; width: max-content; max-width: min(290px, calc(100vw - 48px)); margin-top: 12px; padding: 16px 18px; border-radius: 20px; background: var(--plum); color: #fff; box-shadow: 0 30px 60px -36px rgba(var(--plum-rgb),0.7); animation: lt-fade .3s ease both; z-index: 40; text-align: left; }
.tour-tip--right { left: auto; right: 0; }
.tour-tip--center { position: relative; top: auto; left: auto; max-width: min(420px, calc(100vw - 48px)); margin-top: 8px; }
.tour-tip__k { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.tour-tip__t { display: block; margin-bottom: 12px; font-size: 14px; line-height: 1.55; white-space: normal; }
.is-tour-ring { box-shadow: 0 0 0 3px rgba(var(--terra-rgb),0.45); }
.is-tour-border { border-color: var(--terra) !important; }
.is-tour-arrow::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 14px); width: 30px; height: 44px; margin-left: -15px; background: var(--terra); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 44' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2v38M4 29l11 11 11-11'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 44' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2v38M4 29l11 11 11-11'/%3E%3C/svg%3E") center / contain no-repeat; animation: lt-tour-arrow 1.5s ease-in-out infinite; pointer-events: none; z-index: 3; }
.cercle.has-focus .is-tour-arrow::before { display: none; }
@keyframes lt-tour-arrow { 0%, 100% { transform: translateY(0); opacity: .85; } 50% { transform: translateY(8px); opacity: 1; } }
.profil-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--sand); color: var(--fg); font-size: 13px; font-weight: 500; }
.profil-pill:hover { background: var(--terra); color: #fff; }
.profil-pill__bar { width: 54px; height: 5px; border-radius: 999px; background: rgba(var(--plum-rgb),0.16); overflow: hidden; }
.profil-pill__bar span { display: block; height: 100%; border-radius: 999px; background: var(--terra); }
.profil-pill:hover .profil-pill__bar span { background: #fff; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(62,25,44,0.46); backdrop-filter: blur(4px); animation: lt-in .3s ease both; }
.modal[hidden] { display: none; }
.modal [hidden] { display: none !important; }
.modal__box { position: relative; max-width: 460px; width: 100%; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 34px); box-shadow: var(--shadow-modal); }
.modal__box--form { max-width: 520px; }
.textarea--compact { min-height: 88px; }
.modal__box--celebrate { max-width: 440px; text-align: center; border-radius: 30px; padding: clamp(26px, 4vw, 38px); animation: lt-pop .5s cubic-bezier(.2,.8,.3,1) both; }
.modal__box--intro { position: relative; max-width: 520px; text-align: center; border-radius: 30px; padding: clamp(26px, 4vw, 40px); overflow: hidden; animation: lt-pop .5s cubic-bezier(.2,.8,.3,1) both; }
.modal--intro { background: rgba(62,25,44,0.5); }
.chat-intro__glow { position: absolute; inset: -40% -20% auto -20%; height: 180px; background: radial-gradient(60% 100% at 50% 0%, rgba(var(--terra-rgb),0.22), rgba(var(--rose-rgb),0.08) 45%, transparent 70%); pointer-events: none; animation: lt-fade .6s ease both; }
.modal__box--intro .modal__k { position: relative; }
.modal__box--intro .modal__t { position: relative; }
.modal__box--intro .modal__p { position: relative; }
.modal__box--intro .modal__actions { position: relative; justify-content: center; }
.chat-intro__bio { position: relative; margin: 0 0 18px; padding: 16px 18px; border-radius: 18px; background: var(--plum); color: #fff; text-align: left; box-shadow: 0 18px 36px -28px rgba(var(--plum-rgb), 0.8); }
.chat-intro__bio-k { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.chat-intro__bio p { margin: 0; font-size: 15px; line-height: 1.55; color: #F1E2E9; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.chat-intro__bio.is-open p { -webkit-line-clamp: unset; display: block; max-height: 34vh; overflow-y: auto; }
.chat-intro__more { display: inline-flex; align-items: center; min-height: 30px; margin-top: 10px; padding: 0; font-size: 13px; font-weight: 500; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; background: transparent; border: 0; cursor: pointer; }
.chat-intro__more:hover { color: #fff; }
.chat-intro__more[hidden] { display: none; }
.modal__k { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.modal__t { margin-bottom: 12px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--fg); }
.modal__p { margin-bottom: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal__actions--stack { flex-direction: column; align-items: stretch; }
.modal__actions--stack .btn { width: 100%; white-space: normal; }
.modal__box .field + .modal__actions { margin-top: 16px; }
.modal__actions--row { flex-wrap: nowrap; }
.modal__actions--row .btn { flex: 1 1 0; min-width: 0; padding-left: 14px; padding-right: 14px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 999px; background: var(--sand); color: var(--fg); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal__box--video {
  --video-pad: 28px;
  width: min(1280px, 100%, calc((100vh - 2 * var(--video-pad)) * 16 / 9));
  width: min(1280px, 100%, calc((100svh - 2 * var(--video-pad)) * 16 / 9));
  max-width: 100%;
  max-height: calc(100vh - 2 * var(--video-pad));
  max-height: calc(100svh - 2 * var(--video-pad));
  padding: 0;
  overflow: visible;
  border-radius: 10px;
  background: #000;
  box-shadow: none;
}
.modal__box--video .modal__close {
  z-index: 2;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  transform: translate(8px, -8px);
  background: rgba(28, 12, 22, 0.72);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(28, 12, 22, 0.28);
}
.modal__box--video .modal__close:hover { background: rgba(28, 12, 22, 0.88); }
.modal__video { position: relative; aspect-ratio: 16 / 9; width: 100%; height: auto; overflow: hidden; border-radius: inherit; background: #000; }
.modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.modal__video-pending { margin: 0; display: flex; align-items: center; justify-content: center; height: 100%; padding: 24px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.78); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.celebrate__pts { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 74px; margin-bottom: 22px; border-radius: 999px; background: var(--terra); font-size: 26px; font-weight: 600; color: #fff; }
.celebrate__pts--icon { font-size: 0; }
.celebrate__pts--icon svg { width: 34px; height: 34px; }
.modal__box--first-offline .modal__p { margin-bottom: 24px; }
.celebrate__pts.is-tick { animation: lt-credit-tick .16s ease-out; }
.celebrate__pts.is-land { animation: lt-credit-land .5s cubic-bezier(.2,.85,.3,1); }
@keyframes lt-credit-tick { 0% { transform: scale(1); } 50% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes lt-credit-land { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.celebrate__value { margin: 0 0 24px; padding: 16px 20px; border-radius: 20px; background: var(--paper); font-size: clamp(17px, 1.9vw, 20px); font-weight: 600; line-height: 1.4; color: var(--fg); }
.sparks { position: absolute; left: 50%; top: 84px; width: 0; height: 0; pointer-events: none; }
.sparks span { position: absolute; left: 0; top: 0; }
.sparks span i { display: block; border-radius: 999px; animation: lt-spark 1.8s ease-out infinite; }
@media (max-width: 560px) {
  .modal { align-items: flex-end; padding: 0; padding-bottom: var(--kb, 0px); }
  .modal__box { border-radius: 26px 26px 0 0; max-height: min(92vh, calc(100dvh - var(--kb, 0px))); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .modal__box--celebrate { border-radius: 26px 26px 0 0; }
  .modal:has(.modal__box--video) {
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .modal__box--video {
    --video-pad: 12px;
    width: min(100%, calc((100vh - 2 * var(--video-pad) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9));
    width: min(100%, calc((100svh - 2 * var(--video-pad) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9));
    max-height: calc(100vh - 2 * var(--video-pad) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100svh - 2 * var(--video-pad) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 16px;
    padding-bottom: 0;
  }
  .modal__box--video .modal__close { width: 44px; height: 44px; top: 0; right: 0; transform: translate(4px, -4px); }
  .modal__actions .btn { flex: 1 1 auto; }
  .modal__actions--row { flex-direction: column; flex-wrap: wrap; }
  .modal__actions--row .btn { flex: 1 1 auto; width: 100%; font-size: 14px; padding-left: 10px; padding-right: 10px; }
}
@media (max-height: 500px) {
  .modal:has(.modal__box--video) { padding: 8px; }
  .modal__box--video { --video-pad: 8px; border-radius: 12px; }
}

/* ---------- Profil ---------- */
.profil-cols { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.4vw, 28px); align-items: flex-start; padding-bottom: clamp(30px, 5vw, 54px); }
.profil-col { flex: 1 1 300px; min-width: 0; }
.profil-col--sm { flex: 1 1 260px; }
#reglages, #compte, #certification, #apparence, #field-photo { scroll-margin-top: 24px; }
.profil-col .kicker { display: block; margin-bottom: 16px; letter-spacing: .14em; }
.profil-col h3 { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.profil-col .chips { margin-bottom: 22px; }
.profil-col .chips--tight { margin-bottom: 10px; }
.tint-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tint-pick {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 12px 0 8px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--fg); font-size: 13px; font-weight: 500;
  transition: border-color .2s ease, background .2s ease;
}
.tint-pick:hover { border-color: var(--terra); }
.tint-pick.is-on { border-color: var(--fg); background: var(--sand); }
.tint-pick__dot {
  display: flex; flex: none; width: 52px; height: 22px; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}
.tint-pick__dot > i { flex: 1; display: block; }
.tint-pick__dot > i:first-child { background: var(--dot-a); }
.tint-pick__dot > i:nth-child(2) { background: var(--dot-b); }
.tint-pick__dot > i:last-child { background: var(--dot-c); }
.kv { display: grid; gap: 10px; }
.kv__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-3); padding-bottom: 10px; font-size: 14px; }
.kv__row span:first-child { color: var(--text); }
.kv__row span:last-child, .kv__row strong { font-weight: 600; color: var(--fg); text-align: right; }
.kv__row select { max-width: 160px; min-height: 40px; padding: 0 34px 0 12px; font-size: 16px; }
.kv__row--stack { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.kv__row--stack .chips { margin: 0; }
.kv__row--stack .chips__hint { margin: 0; font-weight: 400; text-align: left; color: var(--muted); }
.kv__row--stack select { max-width: 220px; align-self: flex-start; }
.fields { display: grid; gap: 8px; margin-bottom: 16px; }
.fcard { padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; }
.fcard.is-todo { background: var(--cream-2); border: 1.5px dashed rgba(var(--terra-rgb),.45); }
.fcard.is-filled { background: #fff; border: 1.5px solid var(--line); }
.fcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 12px; }
.fcard.is-filled .fcard__top { align-items: center; }
.fcard__copy { min-width: 0; flex: 1; }
.fcard__label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.fcard.is-todo .fcard__label { font-size: 15px; color: var(--fg); }
.fcard__value { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.fcard.is-filled .fcard__value { margin-top: 3px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--fg); }
.fcard.is-todo .fcard__value { font-style: italic; }
.fcard__action { flex: none; font-size: 12px; font-weight: 600; color: var(--terra); min-height: 32px; display: inline-flex; align-items: center; }
.fcard.is-todo .fcard__action { padding: 0 14px; border-radius: 999px; background: var(--terra); color: #fff; }
.fcard.is-todo .fcard__action:hover { background: var(--plum); color: #fff; }
.fcard__action--icon { width: 32px; justify-content: center; border-radius: 999px; color: var(--terra); }
.fcard__action--icon svg { width: 17px; height: 17px; display: block; }
.fcard.is-filled .fcard__action { color: var(--terra); }
.fcard.is-filled .fcard__action:hover { color: var(--fg); background: var(--sand); }
.fcard.is-todo .photo-zone { border-color: transparent; background: rgba(255,255,255,.6); }
.switch { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); appearance: none; -webkit-appearance: none; overflow: visible; text-align: left; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { flex: none; display: inline-flex; align-items: center; width: 40px; height: 22px; padding: 2px; border-radius: 999px; background: #DCCCC2; transition: background .25s ease; overflow: visible; }
.switch__knob { display: block; width: 18px; height: 18px; border-radius: 999px; background: #fff; transform: translateX(0); transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.switch.is-on .switch__track, .switch:has(input:checked) .switch__track { background: var(--terra); }
.switch.is-on .switch__knob, .switch:has(input:checked) .switch__knob { transform: translateX(18px); }
.switch.is-on, .switch:has(input:checked) { color: var(--fg); }
.switch--compact { position: relative; z-index: 1; flex: none; margin: 0; }
.switch--compact:hover, .switch--compact:focus-visible { z-index: 5; }
.switch__tip { position: absolute; left: calc(100% + 10px); top: 50%; padding: 7px 12px; border-radius: 12px; background: var(--plum); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; opacity: 0; transform: translateY(-50%) translateX(-4px); pointer-events: none; box-shadow: var(--shadow-modal); transition: opacity .15s ease, transform .15s ease; }
.switch__tip::after { content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-color: var(--fg); }
.switch--compact:hover .switch__tip, .switch--compact:focus-visible .switch__tip, .switch--compact.is-tip .switch__tip { opacity: 1; transform: translateY(-50%); }
.big-number { margin-bottom: 18px; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--fg); }
.photo-zone { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed rgba(var(--terra-rgb),.38); background: var(--cream-2); cursor: pointer; text-align: left; width: 100%; }
.photo-zone:hover, .photo-zone:focus-within, .photo-zone.is-over { border-color: var(--terra); border-style: solid; background: #fff; }
.photo-zone.is-filled { border-style: solid; border-color: var(--line-2); background: #fff; }
.photo-preview { flex: none; width: 64px; height: 64px; border-radius: 999px; overflow: hidden; border: 1.5px solid var(--line-2); background: var(--sand); color: var(--terra); display: flex; align-items: center; justify-content: center; }
.photo-preview svg { width: 28px; height: 28px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-zone__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.photo-zone__copy strong { font-size: 14px; font-weight: 600; color: var(--fg); }
.photo-zone__copy > span:not(.tag) { font-size: 12px; line-height: 1.4; color: var(--muted); }
.photo-zone__copy .tag { margin: 2px 0; }
.photo-zone__delete { margin-top: 8px; color: var(--danger); }
.photo-zone__delete:hover { color: var(--danger); }
.is-busy { opacity: .55; pointer-events: none; }
.danger-zone { border: 1.5px solid rgba(179,64,46,0.25); background: #FFF7F5; }
.danger-zone .kicker { color: var(--danger); }

/* ---------- Formules ---------- */
.plans { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.2vw, 26px); align-items: stretch; justify-content: center; padding-bottom: clamp(30px, 5vw, 54px); }
.plan { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 30px); border-radius: 28px; background: rgba(255,255,255,0.78); border: 1.5px solid var(--line); backdrop-filter: blur(6px); box-shadow: 0 22px 44px -40px rgba(var(--plum-rgb),0.4); }
.plan--featured { background: var(--plum); border-color: var(--fg); box-shadow: 0 34px 64px -44px rgba(var(--plum-rgb),0.7); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.plan__name { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.plan--featured .plan__name { color: var(--rose); }
.plan__price { margin-bottom: 4px; font-size: clamp(32px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--fg); }
.plan__price small { font-size: .38em; font-weight: 600; letter-spacing: .06em; margin-left: .2em; vertical-align: .35em; }
.plan--featured .plan__price { color: #fff; }
.plan__sub { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.plan--featured .plan__sub { color: var(--wine-soft); }
.plan__credits { margin-bottom: 20px; padding: 12px 16px; border-radius: 16px; background: var(--paper); font-size: 15px; font-weight: 600; color: var(--terra); }
.plan--featured .plan__credits { background: rgba(255,255,255,0.14); color: #fff; }
.plan__lines { display: grid; gap: 10px; margin-bottom: 24px; }
.plan__lines div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--text); }
.plan__lines i { flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 999px; background: var(--terra); }
.plan--featured .plan__lines div { color: #F1E2E9; }
.plan--featured .plan__lines i { background: var(--rose); }
.plan .btn { margin-top: auto; }
.plan--current { border-color: var(--terra); }
.checkout { max-width: 560px; margin: 0 auto; width: 100%; padding-top: clamp(20px, 4vw, 44px); }
.checkout .h-1 { margin-bottom: 8px; }
.checkout .lead { margin-bottom: 18px; }
.checkout__summary { display: grid; gap: 10px; margin: 20px 0; }
.checkout .form__actions { justify-content: center; }
.checkout .form__actions .btn { width: 100%; justify-content: center; text-align: center; }
.notice { padding: 14px 18px; border-radius: 18px; background: var(--sand); color: var(--fg); font-size: 14px; line-height: 1.55; }
.notice--info { background: var(--wine-light); }
.notice--warn { background: #FBEBD9; }
.account-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  flex: none;
  margin: 10px 0 0;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--wine-light);
  color: var(--fg);
  font-size: 13.5px;
  line-height: 1.45;
}
.account-nudge p { margin: 0; flex: 1 1 16rem; }
.account-nudge form, .account-nudge a.btn { margin: 0; flex: none; }
.page:has(.fil) .account-nudge { display: none; }

/* Essai gratuit : pastille du header, bandeau du tableau de bord, pop-up des formules */
.pill--trial { gap: 6px; padding: 0 14px; color: var(--terra); font-weight: 600; white-space: nowrap; }
.pill--trial svg { width: 17px; height: 17px; flex: none; }
.pill--trial.is-soon { border-color: var(--terra); background: #FBEBD9; }
.pill--trial.is-expired { border-color: var(--terra); background: var(--terra); color: #fff; }
a.pill--trial.is-expired:hover { background: var(--terra); color: #fff; filter: brightness(1.05); }
.trial-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; max-width: 760px; margin: 12px auto 18px; padding: 14px 18px; border-radius: 18px; background: var(--wine-light); color: var(--fg); }
.trial-notice.is-soon { background: #FBEBD9; }
.trial-notice.is-expired { background: #FBEBD9; border: 1.5px solid var(--terra); }
.trial-notice__txt { flex: 1 1 18rem; min-width: 0; }
.trial-notice__k { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.trial-notice p { margin: 0; font-size: 14px; line-height: 1.5; }
.trial-notice__bar { display: block; height: 5px; margin-top: 10px; border-radius: 999px; background: rgba(255,255,255,0.7); overflow: hidden; }
.trial-notice__bar span { display: block; height: 100%; border-radius: inherit; background: var(--terra); }
.trial-notice .btn { flex: none; }
.modal__box--paywall { max-width: 560px; }
.paywall-plans { display: grid; gap: 10px; margin: 6px 0 18px; }
.paywall-plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line-2); background: #fff; color: var(--fg); text-decoration: none; transition: border-color .15s, transform .15s; }
.paywall-plan:hover { border-color: var(--terra); transform: translateY(-1px); }
.paywall-plan--featured { background: var(--plum); border-color: var(--plum); color: #fff; }
.paywall-plan__head { display: flex; align-items: center; gap: 8px; }
.paywall-plan__name { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.paywall-plan--featured .paywall-plan__name { color: var(--rose); }
.paywall-plan__price { grid-row: span 2; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; text-align: right; }
.paywall-plan__price small { font-size: 12px; font-weight: 500; opacity: .75; }
.paywall-plan__meta { font-size: 13px; color: var(--muted); }
.paywall-plan__meta > span + span::before { content: " · "; }
.modal__box--paywall .modal__k { padding-right: 44px; }
.paywall-plan__head { flex-wrap: wrap; row-gap: 4px; }
.paywall-plan .tag { white-space: nowrap; }
@media (max-width: 480px) {
  .paywall-plan { padding: 13px 14px; }
  .paywall-plan__price { grid-row: 1; grid-column: 2; font-size: 20px; }
  .paywall-plan__meta { grid-column: 1 / -1; margin-top: 4px; }
  .paywall-plan__meta > span { display: block; }
  .paywall-plan__meta > span + span::before { content: none; }
}
.paywall-plan--featured .paywall-plan__meta { color: var(--wine-soft); }
.paywall-plan__cta { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--terra); }
.paywall-plan--featured .paywall-plan__cta { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.msg--locked .msg__bubble { display: grid; gap: 7px; width: min(340px, 72%); padding: 14px 16px; filter: blur(1.5px); opacity: .55; user-select: none; }
.msg--locked .msg__bubble span { display: block; height: 9px; border-radius: 999px; background: currentColor; opacity: .35; }
.fil-paywall-cta p { margin: 0; }
html[data-tint-mode="dark"] .trial-notice,
html[data-tint-mode="dark"] .trial-notice.is-soon,
html[data-tint-mode="dark"] .trial-notice.is-expired { background: var(--wine-light); color: var(--fg); }
html[data-tint-mode="dark"] .pill--trial.is-soon { background: var(--paper); }
html[data-tint-mode="dark"] .paywall-plan:not(.paywall-plan--featured) { background: var(--paper); color: var(--fg); }

/* ---------- Fil de conversation ---------- */
.fil {
  --fil-pad-top: clamp(26px, 4vw, 48px);
  --fil-pad-bottom: clamp(20px, 3vw, 32px);
  display: flex; flex-wrap: nowrap; gap: clamp(20px, 2.6vw, 34px); align-items: stretch;
  padding: var(--fil-pad-top) 0 var(--fil-pad-bottom); flex: 1; min-height: 0;
}
/* Sur desktop (≥1025px), la page grandit avec la colonne de droite (bio + paliers)
   et défile au niveau du document. La colonne de chat garde une hauteur
   d'écran pour que le compositeur reste en bas au premier regard ; les
   messages défilent en interne. Jusqu'à 1024px (téléphone et tablette),
   le panneau latéral passe sous le fil et la page défile pour l'atteindre. */
@media (min-width: 1025px) and (min-height: 500px) {
  .page:has(.fil) {
    --fil-topbar-h: 56px;
    height: auto;
    min-height: 100dvh;
  }
  .page:has(.fil) > .container { min-height: 0; }
  .page:has(.fil) .topbar--app { height: var(--fil-topbar-h); }
  /* Le fil occupe toute la hauteur visible : on masque le pied de page
     (les liens légaux restent accessibles depuis la nav mobile / le menu). */
  .page:has(.fil) .footlinks { display: none; }
  .fil {
    --fil-main-h: calc(100dvh - var(--pad-page) - 28px - var(--fil-topbar-h) - var(--fil-pad-top) - var(--fil-pad-bottom));
    align-items: flex-start;
  }
  .fil__main {
    height: var(--fil-main-h);
    max-height: var(--fil-main-h);
  }
}
/* Téléphones en paysage (large mais court) : on retombe sur la mise en page
   mobile (compositeur collé, panneau latéral sous le fil) pour éviter une
   hauteur de messages nulle. */
@media (min-width: 768px) and (max-height: 499px) {
  .page:has(.fil) { display: block; overflow-x: clip; overflow-y: visible; height: auto; min-height: 100dvh; }
  .page:has(.fil) > .container { display: block; flex: none; min-height: 0; }
  .page:has(.fil) #main { display: block; flex: none; }
  .page:has(.fil) .fil { display: block; flex: none; flex-wrap: wrap; }
  .page:has(.fil) .fil__main { display: flex; flex: none; height: calc(100dvh - 108px - var(--kb, 0px)); min-height: 0; }
  .page:has(.fil) .fil__side { display: block; flex: none; }
  .page:has(.fil) .footlinks { display: none; }
  .messages { flex: 1 1 auto; height: auto; max-height: none; margin-bottom: 12px; }
  .fil__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 44px 44px;
    grid-template-areas: "face who score sound more";
    gap: 8px 12px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .fil__face, .fil__avatar { width: 44px; height: 44px; }
  .fil__face { grid-area: face; }
  .fil__who { flex: 1 1 auto; min-width: 0; }
  .fil__who { grid-area: who; }
  .fil__meta { display: none; }
  .fil__sound { grid-area: sound; }
  .fil__head > div:last-child { grid-area: more; }
  .fil__sound, .fil__more { min-width: 44px; min-height: 44px; }
  .fil__score-row { grid-area: score; }
  .fil__menu { min-width: 200px; }
  .composer { position: relative; bottom: auto; z-index: 40; margin: 0 -4px; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); }
  .composer__hint { display: none; }
  .emoji-bar { position: absolute; left: 0; right: 0; bottom: 100%; z-index: 45; max-height: min(48dvh, 220px); overflow-y: auto; }
}
.fil__main { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.fil__side { flex: 1 1 290px; min-width: 0; display: grid; gap: 18px; align-content: start; }
.fil__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(var(--terra-rgb),0.18); margin-bottom: 22px; }
.fil__face { flex: none; position: relative; width: 62px; height: 62px; }
.fil__avatar { flex: none; position: relative; width: 62px; height: 62px; border-radius: 999px; overflow: hidden; background: repeating-linear-gradient(135deg, #F7EBE4 0 8px, #EFDDD3 8px 16px); filter: blur(3px); border: 1.5px solid #EFDDD3; display: flex; align-items: flex-end; justify-content: center; transition: filter .6s ease; }
.fil__avatar.is-open { filter: none; }
.fil__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fil__avatar span { position: relative; width: 100%; padding: 3px 0 4px; background: rgba(var(--plum-rgb),0.72); color: #fff; font-size: 8px; font-weight: 500; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.presence-dot { position: absolute; right: 1px; bottom: 1px; z-index: 1; width: 13px; height: 13px; border-radius: 999px; background: var(--success); border: 2px solid var(--cream-2); box-shadow: 0 0 0 1px rgba(63,122,87,0.28); pointer-events: none; }
.presence-dot--off { background: #C4B4AA; box-shadow: 0 0 0 1px rgba(107,90,80,0.22); }
.presence-dot[hidden] { display: none; }
.fil__face.is-typing .presence-dot { background: var(--terra); box-shadow: 0 0 0 1px rgba(var(--terra-rgb),0.35); }
.fil__who { min-width: 0; flex: 1; }
.fil__name { margin-bottom: 4px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--fg); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fil__presence { margin: 0 0 2px; font-size: 13px; font-weight: 500; color: var(--success); }
.fil__presence--off { color: var(--muted); }
.fil__presence--typing { color: var(--terra); }
.fil__meta { font-size: 14px; color: var(--muted); }
.fil__score { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,0.75); border: 1.5px solid var(--line-2); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; color: var(--terra); text-decoration: none; }
.fil__sound { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(255,255,255,0.75); display: inline-flex; align-items: center; justify-content: center; color: var(--fg); cursor: pointer; transition: background .2s ease, color .2s ease; }
.fil__sound:hover { background: var(--sand); }
.fil__sound.is-off { color: var(--muted); }
.fil__sound svg { width: 20px; height: 20px; }
.fil__more { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(255,255,255,0.75); display: inline-flex; align-items: center; justify-content: center; color: var(--fg); font-size: 20px; line-height: 1; }
.fil__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; padding: 8px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-modal); display: grid; gap: 2px; }
.fil__menu[hidden] { display: none; }
.fil__menu button, .fil__menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--fg); }
.fil__menu button:hover, .fil__menu a:hover { background: var(--sand); }
.fil__menu .is-danger { color: var(--danger); }
.messages { display: grid; gap: 14px; align-content: start; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 14px; margin-bottom: 20px; overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.msg--me { align-items: flex-end; }
.msg__bubble { position: relative; max-width: 78%; padding: 14px 18px; border-radius: 18px 18px 18px 6px; background: var(--paper); color: var(--text); font-size: 15px; line-height: 1.55; box-shadow: 0 14px 30px -26px rgba(var(--plum-rgb),0.5); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--me .msg__bubble { border-radius: 18px 18px 6px 18px; background: var(--plum); color: #fff; }
.msg__foot { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg--me .msg__foot { justify-content: flex-end; }
.msg__time { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.msg__read { font-weight: 500; color: var(--terra); }
.msg__vote { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.msg__vote button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,0.75); border: 1.5px solid var(--line-2); color: var(--terra); font-size: 13px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.msg__vote button:hover { background: var(--terra); color: #fff; border-color: var(--terra); }
.msg__voted { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 12px; font-weight: 500; }
.msg__voted--me { background: var(--sand); color: var(--terra); }
.msg__react { position: absolute; top: -12px; right: -6px; z-index: 2; width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--terra); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(4px) scale(.9); transition: opacity .15s ease, transform .15s ease, background .2s ease; box-shadow: 0 6px 14px -10px rgba(var(--plum-rgb),0.6); }
.msg--me .msg__react { right: auto; left: -6px; }
.msg__bubble:hover .msg__react { opacity: 1; transform: none; }
.msg__react:hover { background: var(--sand); }
@media (hover: none) { .msg__react { opacity: 1; transform: none; } }
.msg__react svg { width: 16px; height: 16px; }
.msg__pop { position: fixed; z-index: 30; display: inline-flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 18px 40px -22px rgba(var(--plum-rgb),0.6); }
.msg__pop button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,0.75); color: var(--terra); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease; }
.msg__pop button:hover { background: var(--terra); color: #fff; border-color: var(--terra); }
.msg__pop--emoji button { width: 38px; height: 38px; border: 1.5px solid var(--line-2); background: #fff; font-size: 20px; line-height: 1; padding: 0; color: inherit; }
.msg__pop--emoji button:hover { background: var(--sand); border-color: var(--terra); color: inherit; transform: scale(1.08); }
.msg__pop--emoji button { transition: background .15s ease, transform .15s ease, border-color .15s ease; }

/* Pastilles de réactions émoticônes agrégées sous un message. */
.msg__reacts { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg__reacts[hidden] { display: none; }
.msg__react-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 2px 10px 2px 6px; border-radius: 999px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,0.7); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.msg__react-pill:hover { background: var(--sand); border-color: var(--terra); transform: translateY(-1px); }
.msg__react-pill.is-mine { background: var(--terra); color: #fff; border-color: var(--terra); }
.msg__react-pill.is-mine:hover { background: var(--plum); border-color: var(--fg); }
.msg__react-emoji { font-size: 15px; line-height: 1; }
.msg__react-count { font-variant-numeric: tabular-nums; }
.msg__tuto { max-width: 90%; padding: 14px 18px; border-radius: 18px 18px 18px 6px; background: var(--plum); color: #fff; animation: lt-fade .5s ease both; }
.msg__tuto .tour-tip__t { font-size: 14px; }
.msg--system { align-items: center; }
.msg--system p { font-size: 12px; color: var(--muted); text-align: center; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.7); }
.typing { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.typing[hidden] { display: none !important; }
.typing__bubble { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 48px; min-height: 36px; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--paper); box-shadow: 0 14px 30px -26px rgba(var(--plum-rgb),0.5); }
.typing__bubble i { display: block; width: 6px; height: 6px; border-radius: 999px; background: var(--muted); animation: lt-dots 1.2s infinite; }
.typing__bubble i:nth-child(2) { animation-delay: .2s; }
.typing__bubble i:nth-child(3) { animation-delay: .4s; }
.typing__label { font-size: 13px; font-style: italic; color: var(--muted); }
.composer-dock { position: relative; flex: none; }
.fil-unanswered { margin: 0 0 10px; }
.fil-unanswered p { margin: 0; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 26px; background: rgba(255,255,255,0.82); border: 1.5px solid var(--line); backdrop-filter: blur(8px); box-shadow: 0 22px 44px -38px rgba(var(--plum-rgb),0.5); transition: border-color .2s ease; }
.composer.is-max { border-color: var(--danger); }
.composer__emoji { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; font-size: 19px; transition: background .2s ease; }
.composer__emoji:hover, .composer__emoji.is-on { background: var(--sand); }
.composer textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 120px; padding: 12px 0; border: 0; background: transparent; color: var(--fg); font-size: 16px; line-height: 1.5; resize: none; outline: none; }
.composer__send { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #8A6A55; color: #fff; font-size: 14px; font-weight: 500; transition: background .2s ease; }
.composer__send.is-ready { background: var(--terra); }
.composer__send:hover { background: var(--plum); }
.composer__hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.composer__limit { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--terra); }
.composer__limit[hidden] { display: none; }
.composer__limit.is-max { color: var(--danger); }
.composer__limit:not([hidden]) + .composer__hint { margin-top: 4px; }
/* Animation d'attraction du composer : léger balayage en arrière-plan tant que l'utilisateur n'a pas commencé à écrire. */
.composer.is-enticing { position: relative; border-color: rgba(var(--terra-rgb), 0.55); box-shadow: 0 22px 44px -38px rgba(var(--plum-rgb),0.5), 0 0 0 4px rgba(var(--rose-rgb), 0.18); animation: lt-pulse 2.6s ease-in-out infinite; overflow: hidden; }
.composer.is-enticing::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 0%, rgba(var(--rose-rgb), 0.16) 42%, rgba(var(--terra-rgb), 0.12) 50%, rgba(var(--rose-rgb), 0.16) 58%, transparent 100%); background-size: 220% 100%; animation: lt-sheen 3.2s ease-in-out infinite; pointer-events: none; border-radius: inherit; }
.composer.is-enticing textarea::placeholder { animation: lt-breathe 2.6s ease-in-out infinite; }
@keyframes lt-pulse { 0%, 100% { box-shadow: 0 22px 44px -38px rgba(var(--plum-rgb),0.5), 0 0 0 4px rgba(var(--rose-rgb), 0.14); } 50% { box-shadow: 0 22px 44px -38px rgba(var(--plum-rgb),0.5), 0 0 0 8px rgba(var(--rose-rgb), 0.22); } }
@keyframes lt-sheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes lt-breathe { 0%, 100% { opacity: 0.62; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .composer.is-enticing, .composer.is-enticing::before, .composer.is-enticing textarea::placeholder { animation: none; } }
.emoji-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding: 12px 14px; border-radius: 22px; background: rgba(255,255,255,0.86); border: 1.5px solid var(--line); backdrop-filter: blur(8px); animation: lt-fade .25s ease both; }
.emoji-bar[hidden] { display: none; }
.emoji-bar button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
.emoji-bar button:hover { background: var(--sand); }
.fil-bio-inline { display: none; }
.bio-card p.bio { margin-bottom: 10px; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; color: #fff; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bio-card.is-open p.bio { -webkit-line-clamp: unset; display: block; max-height: 38vh; overflow-y: auto; }
.bio-card .kicker { display: block; margin-bottom: 12px; letter-spacing: .14em; }
.bio-card__kicker { display: inline-flex; align-items: center; gap: 6px; }
.bio-card__info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: var(--rose); cursor: help; transition: background-color .15s ease; outline: none; }
.bio-card__info:hover, .bio-card__info:focus { background: rgba(255, 255, 255, 0.12); }
.bio-card__info::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px; padding: 8px 10px; border-radius: 8px; background: var(--plum); color: #fff; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.45; white-space: normal; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 5; }
.bio-card__info::before { content: ""; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--fg); opacity: 0; transition: opacity .15s ease; }
.bio-card__info:hover::after, .bio-card__info:hover::before, .bio-card__info:focus::after, .bio-card__info:focus::before { opacity: 1; }
.bio-card__more { display: inline-flex; align-items: center; min-height: 34px; margin: 0 0 12px auto; font-size: 13px; font-weight: 500; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.bio-card__more:hover { color: #fff; }
.tiers-card .kicker { letter-spacing: .14em; }
.tiers-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.tiers-card__who { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tiers-card__head strong { font-size: 13px; font-weight: 600; color: var(--fg); }
.tiers-card__next { margin-bottom: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.tiers-card .gauge { margin-bottom: 20px; }
.gauge--score { position: relative; height: 30px; background: var(--sand); }
.gauge--score .gauge__bar { position: absolute; inset: 0 auto 0 0; height: 100%; }
.gauge__mark { position: absolute; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: var(--plum); opacity: .55; pointer-events: none; }
.gauge__mark.is-open { background: #fff; opacity: 1; }
.gauge__mark::before { content: ""; position: absolute; left: 50%; top: -5px; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--plum); box-shadow: 0 0 0 2px var(--sand); }
.gauge__mark.is-open::before { background: #fff; box-shadow: 0 0 0 2px var(--terra); }
.tiers-card__nudge { margin-top: 24px; width: 100%; }
.tiers { display: grid; gap: 10px; }
.tier { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-3); }
.tier__pts { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: var(--sand); color: var(--muted); font-size: 12px; font-weight: 600; }
.tier.is-open .tier__pts { background: var(--terra); color: #fff; }
.tier__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tier__title { margin-bottom: 2px; font-size: 15px; font-weight: 600; color: var(--muted); }
.tier.is-open .tier__title { color: var(--fg); }
.tier__state { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tier.is-open .tier__state { color: var(--terra); }
.tier__value { font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.tier.is-open .tier__value { color: var(--text); }
.tier--absent { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0 5px 50px; border-bottom: 1px solid #F5EBE6; font-size: 13px; color: var(--muted); }
.tier--absent span:last-child { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tier__photo { margin-top: 8px; width: 120px; height: 120px; border-radius: 18px; overflow: hidden; border: 1.5px solid var(--line-2); }
.tier__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Navigation compacte (téléphone + tablette ≤1024px) ---------- */
.mobnav { display: none; }
@media (max-width: 1024px) {
  .mobnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding-top: 6px; font-size: 11px; font-weight: 500; color: var(--muted); position: relative; }
  .mobnav a.is-active { color: var(--terra); }
  .mobnav svg { width: 22px; height: 22px; }
  .mobnav .badge { position: absolute; top: 8px; left: calc(50% + 6px); }
  .topbar__actions .hide-mobile { display: none; }
  .topbar--app { min-width: 0; gap: 8px; }
  .topbar--app .topbar__logo { height: 40px; max-height: 40px; }
  .topbar--app .topbar__actions { gap: 6px; min-width: 0; }
  .topbar--app .pill--credits { padding: 0 12px; min-height: 40px; gap: 4px; }
  .topbar--app .pill__home { width: 40px; height: 40px; margin-right: 4px; }
  .account-nudge { font-size: 13px; padding: 9px 14px; }
  .topbar__menu {
    left: auto;
    right: 0;
    width: min(320px, calc(100vw - 24px));
    max-height: min(72dvh, calc(100dvh - 88px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .topbar__menu a, .topbar__menu button { min-height: 44px; display: flex; align-items: center; }
  .topbar--door {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    grid-template-columns: none;
    grid-template-areas: none;
  }
  .topbar--door .topbar__brand { flex: 0 1 auto; min-width: 0; }
  .topbar--door .topbar__side--left { display: none; }
  .topbar--door .topbar__side--right { display: flex; flex: none; margin-left: auto; }
  .topbar--door .topbar__side--right .btn { min-height: 40px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .topbar--door .topbar__logo { height: 46px; width: auto; max-width: 100%; }
  .topbar:not(.topbar--app):not(.topbar--door) {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }
  .topbar:not(.topbar--app):not(.topbar--door) .topbar__logo { height: 40px; }
  .topbar:not(.topbar--app) .topbar__actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }
  .topbar:not(.topbar--app) .topbar__actions .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .home-faces { --face-size: clamp(76px, 24vw, 104px); --face-gap: 16px; gap: 16px; top: 76px; }
  .home-bubble--2, .home-bubble--4, .home-bubble--8 { display: none; }
  .home-bubble--1 { left: 2%; top: 34%; }
  .home-bubble--3 { left: 24%; top: 20%; }
  .home-bubble--5 { right: -5%; top: 28%; width: 82px; height: 82px; }
  .home-bubble--6 { right: 5%; top: 72%; }
  .home-bubble--7 { left: 42%; bottom: 12%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero { animation: none; }
  .h-display { max-width: none; font-size: clamp(30px, 8.4vw, 40px); }
  .promises { flex-direction: column; align-items: center; gap: 6px; }
  .promises li + li::before { content: none; margin: 0; }
  .page--door { padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 20px; }
  .page--door .hero { padding: 8px 0 28px; gap: 14px; }
  .cercle { gap: 36px 16px; padding: 28px 0 40px; }
  .bubble { flex: 0 0 auto; width: clamp(120px, 40vw, 152px); }
  .bubble__face { max-width: 100%; padding: 10px; }
  .bubble__code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .bubble__hint { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
  @media (hover: none) {
    .cercle.has-focus ~ .cercle__renew { opacity: 1; }
  }
  .cercle__empty { min-height: min(38vh, 320px); }
  .cercle__radar { width: 180px; height: 180px; }
  .cercle__orb--1 { width: 56px; height: 56px; }
  .cercle__orb--2 { width: 40px; height: 40px; }
  .cercle__orb--3 { width: 48px; height: 48px; }
  .cercle__orb--4, .cercle__orb--5 { width: 32px; height: 32px; }
  .cercle__empty-copy { padding: 28px 16px; }
  .bubble__sat--up { display: none !important; }
  .messages { flex: 1 1 auto; height: auto; max-height: none; margin-bottom: 12px; }
  .fil { flex-wrap: wrap; align-items: flex-start; --fil-pad-top: 8px; --fil-pad-bottom: 8px; }
  .fil__head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 44px 44px;
    grid-template-areas:
      "face who sound more"
      "score score score score";
    gap: 10px 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .fil__face, .fil__avatar { width: 46px; height: 46px; }
  .fil__face { grid-area: face; }
  .fil__who { flex: 1 1 auto; min-width: 0; }
  .fil__who { grid-area: who; }
  .fil__sound { grid-area: sound; }
  .fil__head > div:last-child { grid-area: more; }
  .fil__name { font-size: 17px; margin-bottom: 1px; }
  .fil__presence { font-size: 12px; }
  .fil__meta { overflow: hidden; font-size: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
  .fil__sound, .fil__more { width: 44px; height: 44px; }
  .fil__more { font-size: 18px; }
  .fil__score-row { grid-area: score; }
  .fil__score { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .fil__menu { min-width: 200px; }
  .fil__menu button, .fil__menu a { min-height: 44px; }
  /* Le compositeur reste au bas de la colonne de chat (hauteur fixe).
     position:sticky + overflow:clip sur .page le collait au viewport et
     recouvrait la bio / les paliers au défilement. */
  .composer { position: relative; bottom: auto; z-index: 4; margin: 0 -4px; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); }
  .composer textarea { font-size: 16px; }
  .composer__send { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .composer__emoji { width: 44px; height: 44px; }
  .composer__hint { display: none; }
  .page--app .footlinks { display: none; }
  .fil__side .bio-card { display: none; }
  .fil-bio-inline {
    display: block;
    margin: 0 0 4px;
    padding: 12px 14px 10px;
    border-radius: 16px;
    background: var(--plum);
    color: #fff;
    text-align: left;
  }
  .fil-bio-inline .kicker { color: var(--rose); margin-bottom: 6px; }
  .fil-bio-inline p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #F1E2E9;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
  }
  .fil-bio-inline.is-open p { -webkit-line-clamp: unset; display: block; max-height: 36vh; overflow-y: auto; }
  .fil-bio-inline__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 4px;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--rose);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .fil-bio-inline__more[hidden] { display: none; }
  .emoji-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    z-index: 5;
    max-height: min(44dvh, 280px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 0 8px;
  }
  .emoji-bar button { width: 44px; height: 44px; }
  .msg__vote button { min-width: 44px; height: 44px; }
  .msg__react::after { content: ""; position: absolute; inset: -9px; border-radius: 999px; }
  .msg__pop--emoji button { width: 44px; height: 44px; }
  .msg__react-pill { min-height: 44px; padding-inline: 10px; }
  .bio-card__info { width: 44px; height: 44px; margin: -13px; margin-left: -7px; }
  .bio-card__more { min-height: 44px; }
  .tiers-card__nudge { min-height: 44px; }
  .modal__close { width: 44px; height: 44px; top: 8px; right: 8px; }
  /* Sur mobile, le panneau latéral passe sous le fil : on laisse la page
     défiler normalement pour l'atteindre (au lieu de la bloquer à 100dvh
     avec overflow:clip comme sur desktop). À cause de la chaîne flex
     "flex:1 + min-height:0" (page > container > #main > .fil > .fil__main),
     la page ne grandissait pas avec son contenu : le panneau latéral et le
     compositeur se retrouvaient clipped et invisibles, et la page ne
     pouvait plus défiler. On repasse toute la chaîne en bloc : chaque
     niveau prend la hauteur de son contenu, la page grandit normalement et
     le document défile. Les messages gardent leur hauteur fixe (52dvh) et
     défilent en interne. */
  .page:has(.fil) { display: block; overflow-x: clip; overflow-y: visible; height: auto; min-height: 100dvh; }
  .page:has(.fil) .container { display: block; flex: none; }
  .page:has(.fil) #main { display: block; flex: none; }
  .page:has(.fil) .fil { display: block; flex: none; }
  .page:has(.fil) .fil__main {
    display: flex;
    flex: none;
    height: calc(100dvh - var(--nav-h) - env(safe-area-inset-bottom) - var(--pad-page) - env(safe-area-inset-top, 0px) - 56px - var(--fil-pad-top) - var(--fil-pad-bottom) - var(--kb, 0px));
    min-height: 0;
  }
  .page:has(.fil) .fil__side { display: block; flex: none; }
  .page:has(.fil) .footlinks { display: none; }
  .footlinks__copy { margin-left: 0; flex-basis: 100%; }
  .ob__foot .btn { min-height: 48px; }
  .chip { min-height: 50px; padding: 0 20px; font-size: 15px; }
  .plan { max-width: none; }
  .auth-card { margin: 4px auto 16px; padding: 22px 16px 20px; border-radius: 22px; }
  .ob__done h1 { font-size: clamp(24px, 7vw, 32px); }
  .ob__done .hero__actions { width: 100%; }
  .form__actions { flex-direction: column; align-items: stretch; }
  .form__actions .btn { width: 100%; justify-content: center; }
  .checkout { padding-top: 8px; }
  .kv__row select { max-width: 100%; }
  .hero--compact { padding: 12px 0 18px; }
  .h-1 { font-size: clamp(22px, 6.4vw, 28px); }
  .lead--sm { font-size: 15px; line-height: 1.55; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: revert !important; }
  .fcard.is-todo .fcard__action { min-height: 44px; padding: 0 16px; }
  .fcard__action--icon { width: 44px; height: 44px; }
  .switch--compact::after { content: ""; position: absolute; inset: -11px -6px; }
  .account-nudge a.btn { padding-block: 13px; margin-block: -13px; }
  .footlinks__row { row-gap: 0; }
  .footlinks a { display: inline-flex; align-items: center; min-height: 44px; }
  .chips--dense .chip {
    min-height: 44px;
    height: auto;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .kv__row { flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; }
  .kv__row span:first-child { flex: 1 1 100%; }
  .kv__row strong, .kv__row span:last-child { flex: 1 1 100%; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  .card .switch:not(.switch--compact) { display: flex; width: 100%; align-items: flex-start; }
  .card .switch:not(.switch--compact) > span:last-child { flex: 1 1 auto; min-width: 0; }
  .checkout .check { align-items: flex-start; min-height: 44px; font-size: 13px; line-height: 1.45; }
  .checkout .check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
  .checkout .btn, .form__actions .btn { white-space: normal; height: auto; min-height: 48px; padding: 12px 16px; line-height: 1.3; }
  .profil-cols { flex-direction: column; }
  .profil-col { flex: 1 1 auto; width: 100%; max-width: 100%; min-width: 0; }
  .kv__row--stack { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .kv__row--stack .chips { width: 100%; max-width: 100%; }
  .card, .card--solid { max-width: 100%; min-width: 0; }
  .plans { padding-bottom: 12px; }
  .plan { padding: 20px 18px; }
  .step { padding: 18px 16px; }
  .demo-circle { gap: 36px 12px; padding: 28px 0 44px; }
  .demo-bubble__sat { max-width: min(200px, calc(100vw - 64px)); white-space: normal; text-align: center; line-height: 1.25; }
  .demo-vote__pills { flex-wrap: wrap; }
  .demo-switch__states span { white-space: normal; }
  .grid--communes { grid-template-columns: 1fr; }
  .grid--posts { grid-template-columns: 1fr; }
  .hero--letter { padding: 16px 0 20px; }
  .article { padding: 8px 0 24px; }
  .legal-toc { gap: 6px; }
  .prose p, .prose li { overflow-wrap: anywhere; }
  .commune-card { min-height: 52px; }
  .stat { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .hero--compact .stat-row { justify-content: flex-start; }
  .ob__done .hero__actions .btn { flex: 1 1 100%; }
  .check { overflow-wrap: anywhere; }
  .switch__tip {
    left: 0;
    right: auto;
    top: calc(100% + 6px);
    white-space: normal;
    max-width: min(280px, calc(100vw - 48px));
    transform: none;
  }
  .switch__tip::after {
    right: auto;
    left: 16px;
    top: auto;
    bottom: 100%;
    transform: none;
    border: 6px solid transparent;
    border-bottom-color: var(--plum);
  }
  .switch--compact:hover .switch__tip,
  .switch--compact:focus-visible .switch__tip,
  .switch--compact.is-tip .switch__tip { transform: none; }
  #tiers-card { scroll-margin-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); }
  .auth-card__foot a { display: inline-flex; min-height: 44px; align-items: center; }
}
/* Très petits écrans : on compacte encore l'en-tête et la zone de messages
   pour que le compositeur reste visible sans défiler. */
@media (max-width: 380px) {
  .fil__head {
    grid-template-columns: 40px minmax(0, 1fr) 44px 44px;
    gap: 8px 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .fil__face, .fil__avatar { width: 40px; height: 40px; }
  .fil__name { font-size: 16px; }
  .fil__meta { display: none; }
  .fil__more { font-size: 16px; }
  .composer__emoji { font-size: 17px; }
  .composer textarea { min-height: 42px; font-size: 16px; }
  .composer__send { min-height: 44px; padding: 0 14px; font-size: 13px; }
}
/* Conversation en plein écran (téléphone + tablette) : comme dans une messagerie,
   la barre haute et la nav basse laissent la place aux messages ; le bouton
   retour (avec le badge des nouveautés) les remplace dans l'en-tête du fil. */
.fil__back { display: none; }
@media (max-width: 1024px) {
  body:has(.fil) .mobnav,
  .page:has(.fil) .topbar--app { display: none; }
  .page--app:has(.fil) { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  body.has-mobnav:has(.fil) .flash-stack { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
  body:has(.fil) .notif-stack { top: calc(12px + env(safe-area-inset-top)); }
  body.has-mobnav:has(.fil) .cookie { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .fil__back { grid-area: back; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px; border-radius: 999px; color: var(--fg); }
  .fil__back:hover, .fil__back:focus-visible { background: var(--sand); }
  .fil__back svg { width: 24px; height: 24px; }
  .fil__back .badge { position: absolute; top: 0; right: -4px; }
  .fil__head {
    grid-template-columns: 32px 46px minmax(0, 1fr) 44px 44px;
    grid-template-areas:
      "back face who sound more"
      "score score score score score";
    gap: 8px 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .page:has(.fil) .fil__main {
    height: calc(100dvh - var(--pad-page) - env(safe-area-inset-top, 0px) - var(--fil-pad-top) - var(--fil-pad-bottom) - env(safe-area-inset-bottom) - var(--kb, 0px));
  }
}
@media (max-width: 380px) {
  .fil__head { grid-template-columns: 32px 40px minmax(0, 1fr) 44px 44px; }
}
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 499px) {
  .fil__head {
    grid-template-columns: 32px 44px minmax(0, 1fr) auto 44px 44px;
    grid-template-areas: "back face who score sound more";
  }
  .fil__meta { display: none; }
}
@media (min-width: 1025px) {
  .page--app { padding-bottom: 28px; }
}

/* ---------- Flash, cookies, divers ---------- */
.flash-stack { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: grid; gap: 10px; width: min(520px, calc(100% - 28px)); pointer-events: none; }
.flash {
  --flash-bg: var(--info-bg);
  --flash-ink: var(--info-ink);
  --flash-line: rgba(var(--terra-rgb), 0.38);
  --flash-mark: var(--terra);
  --flash-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6'/%3E%3Ccircle cx='12' cy='7.5' r='1.15' fill='%23fff' stroke='none'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 10px 13px 16px;
  border-radius: 18px;
  background: var(--flash-bg);
  border: 1.5px solid var(--flash-line);
  box-shadow: 0 4px 18px rgba(var(--plum-rgb), 0.14), 0 1px 4px rgba(var(--plum-rgb), 0.08), inset 5px 0 0 var(--flash-mark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--flash-ink);
  animation: flash-in .4s cubic-bezier(.2,.8,.3,1) both;
  pointer-events: auto;
}
.flash::before {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: var(--flash-mark);
  background-image: var(--flash-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
}
.flash > span { flex: 1; min-width: 0; }
.flash.is-out { animation: flash-out .35s ease both; }
.flash--success {
  --flash-bg: var(--ok-bg);
  --flash-ink: var(--ok-ink);
  --flash-line: rgba(63, 122, 87, 0.38);
  --flash-mark: var(--success);
  --flash-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5 10.2 17 18 8'/%3E%3C/svg%3E");
}
.flash--error {
  --flash-bg: var(--bad-bg);
  --flash-ink: var(--bad-ink);
  --flash-line: rgba(179, 64, 46, 0.42);
  --flash-mark: var(--danger);
  --flash-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5.2'/%3E%3Ccircle cx='12' cy='16.3' r='1.15' fill='%23fff' stroke='none'/%3E%3C/svg%3E");
}
.flash--info {
  --flash-bg: var(--info-bg);
  --flash-ink: var(--info-ink);
  --flash-line: rgba(var(--terra-rgb), 0.38);
  --flash-mark: var(--terra);
}
.flash button {
  flex: none;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 999px;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  opacity: .55;
}
.flash button:hover { opacity: 1; background: rgba(255, 255, 255, 0.45); }
@media (max-width: 1024px) {
  body.has-mobnav .flash-stack { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); }
}
.notif-stack {
  position: fixed;
  top: calc(var(--pad-page) + 62px + env(safe-area-inset-top));
  right: 14px;
  z-index: 88;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100% - 28px));
  pointer-events: none;
}
.notif-toast {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 13px 16px 13px 14px;
  border-radius: 18px;
  background: var(--plum);
  border: 0;
  box-shadow: 0 8px 28px rgba(62, 25, 44, 0.28), 0 2px 8px rgba(62, 25, 44, 0.12);
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
  animation: notif-in .35s cubic-bezier(.2,.8,.3,1) both;
}
.notif-toast:hover { color: #fff; background: var(--plum-deep); }
.notif-toast.is-out { animation: notif-out .3s ease both; }
.notif-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--rose);
}
.notif-toast__icon svg { width: 20px; height: 20px; }
.notif-toast__k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); }
.notif-toast__t { display: block; margin-top: 2px; font-size: 15px; line-height: 1.35; font-weight: 500; color: #fff; }
.notif-toast__hint { display: block; margin-top: 4px; font-size: 12px; color: var(--wine-soft); }
.cookie { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; width: min(390px, calc(100% - 32px)); padding: 13px 15px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-modal); font-size: 12px; line-height: 1.45; color: var(--text); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie p { flex: 1 1 100%; margin: 0; }
.cookie .btn { flex: 0 0 auto; }
@media (max-width: 1024px) {
  .cookie { left: 12px; right: 12px; width: auto; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); }
  .cookie .btn { min-height: 44px; }
  body:not(.has-mobnav) .cookie { bottom: calc(12px + env(safe-area-inset-bottom)); }
  body:has(.page--onboarding) .cookie {
    bottom: calc(var(--ob-foot-h, 96px) + 12px + var(--kb, 0px));
    z-index: 25;
  }
  body:has(.page--onboarding):has(.ob__done) .cookie {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
  }
}
.divider { border: 0; border-top: 1px solid rgba(var(--terra-rgb),0.18); margin: 0; }
.error-page { text-align: center; padding: clamp(40px, 8vw, 100px) 0; max-width: 34em; margin: 0 auto; }
.error-page h1 { font-size: clamp(28px, 5vw, 56px); margin: 16px 0; }
.error-page__lead { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.error-page--404 {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: clamp(12px, 3.4vw, 48px);
  max-width: none;
  width: 100%;
  text-align: left;
  padding: clamp(8px, 2vw, 20px) 0 4px;
  margin-block: auto;
}
.error-page--404 .error-page__copy { min-width: 0; }
.error-page--404 .kicker { margin-bottom: 10px; }
.error-page--404 h1 { font-size: clamp(26px, 4.2vw, 46px); margin: 0 0 12px; max-width: 14em; }
.error-page--404 .error-page__lead { margin-bottom: 22px; max-width: 32em; }
.error-page--404 .hero__actions { justify-content: flex-start; margin-top: 0; }
.lost-chat { position: relative; justify-self: center; width: min(100%, 400px); margin: 0; padding: 22px 34px 16px 26px; }
.lost-chat__code { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); z-index: 0; font-size: clamp(72px, 10vw, 112px); font-weight: 600; letter-spacing: -0.07em; line-height: 1; color: var(--fg); opacity: 0.07; pointer-events: none; user-select: none; }
.lost-thread { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 0; padding: 16px 14px 14px; text-align: left; background: rgba(255,255,255,0.72); border: 1.5px solid rgba(var(--terra-rgb),0.16); border-radius: 26px; backdrop-filter: blur(8px); box-shadow: var(--shadow-card); }
.lost-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 86%; }
.lost-msg--me { align-self: flex-end; align-items: flex-end; }
.lost-msg__who { font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted); padding-left: 4px; }
.lost-msg__bubble { position: relative; margin: 0; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--paper); color: var(--text); font-size: 14px; line-height: 1.45; box-shadow: 0 14px 30px -26px rgba(var(--plum-rgb),0.5); }
.lost-msg--me .lost-msg__bubble { border-radius: 18px 18px 6px 18px; background: var(--plum); color: #fff; }
.lost-msg__bubble--dots { display: inline-flex; align-items: center; gap: 5px; min-width: 48px; min-height: 36px; padding: 12px 16px; }
.lost-msg__bubble--dots i { display: block; width: 6px; height: 6px; border-radius: 999px; background: var(--muted); animation: lt-dots 1.2s infinite; }
.lost-msg__bubble--dots i:nth-child(2) { animation-delay: .2s; }
.lost-msg__bubble--dots i:nth-child(3) { animation-delay: .4s; }
.lost-float { position: absolute; z-index: 3; pointer-events: none; user-select: none; opacity: 0.55; }
.lost-float--a, .lost-float--c, .lost-float--e { display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,0.86); border: 1.5px solid rgba(var(--terra-rgb),0.24); color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .06em; box-shadow: var(--shadow-soft); }
.lost-float--b, .lost-float--d { padding: 8px 14px; border-radius: 16px 16px 16px 6px; background: rgba(255,255,255,0.82); border: 1.5px solid rgba(var(--terra-rgb),0.18); color: var(--muted); font-size: 12px; white-space: nowrap; box-shadow: var(--shadow-soft); }
.lost-float--a { top: 0; left: 4px; width: 54px; height: 54px; }
.lost-float--b { top: 10px; right: 0; }
.lost-float--c { bottom: 8px; left: 0; width: 42px; height: 42px; }
.lost-float--d { bottom: 0; right: 4px; border-radius: 16px 16px 6px 16px; }
.lost-float--e { top: 46%; left: -4px; width: 36px; height: 36px; font-size: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .lost-msg { opacity: 0; }
  .lost-msg--1 { animation: lost-appear-left .55s cubic-bezier(.2,.8,.3,1) 0.15s forwards; }
  .lost-msg--2 { animation: lost-appear-right .55s cubic-bezier(.2,.8,.3,1) 1.35s forwards; }
  .lost-msg--3 { animation: lost-appear-left .55s cubic-bezier(.2,.8,.3,1) 2.55s forwards; }
  .lost-msg--4 { animation: lost-appear-right .55s cubic-bezier(.2,.8,.3,1) 3.75s forwards; }
  .lost-msg--5 { animation: lost-appear-left .45s cubic-bezier(.2,.8,.3,1) 5s forwards; }
  .lost-float--a { animation: lt-floatA 19s ease-in-out infinite; }
  .lost-float--b { animation: lost-drift 11s ease-in-out infinite; }
  .lost-float--c { animation: lt-floatB 23s ease-in-out infinite; }
  .lost-float--d { animation: lt-floatC 17s ease-in-out infinite; }
  .lost-float--e { animation: lt-floatA 21s ease-in-out infinite; animation-delay: -6s; }
}
@media (max-width: 767px) {
  .error-page--404 { grid-template-columns: 1fr; text-align: center; padding: clamp(8px, 3vw, 20px) 0 12px; gap: 8px; }
  .error-page--404 h1 { margin-left: auto; margin-right: auto; }
  .error-page--404 .error-page__lead { margin-left: auto; margin-right: auto; }
  .error-page--404 .hero__actions { justify-content: center; }
  .error-page--404 .error-page__copy { order: -1; }
  .lost-chat { padding: 4px 0 8px; }
  .lost-thread { margin: 0 auto; }
  .lost-float { display: none; }
}
.auth-card { max-width: 460px; width: 100%; margin: clamp(30px, 6vw, 70px) auto; padding: clamp(24px, 4vw, 34px); border-radius: 28px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-card); }
.auth-card .modal__k { margin-bottom: 8px; }
.auth-card .form { margin-bottom: 18px; }
.auth-card__foot { margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-card--status { text-align: center; }
.auth-card--status .seal { margin: 0 auto 22px; }
.auth-card--status .modal__p { margin-bottom: 24px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.legal-toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--sand); color: var(--fg); font-size: 13px; font-weight: 500; }
.commune-card { display: block; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.78); border: 1.5px solid var(--line); color: var(--fg); font-size: 14px; font-weight: 500; transition: border-color .2s ease; }
.commune-card:hover { border-color: var(--terra); color: var(--fg); }
.commune-card small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.commune-card--ring { border-color: rgba(var(--terra-rgb), 0.4); }
.how-shot { margin: 0 auto clamp(28px, 4vw, 48px); max-width: 760px; }
.how-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1.5px solid var(--line); }
.how-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.page--door .stat { background: rgba(255,255,255,0.72); border-color: rgba(var(--terra-rgb),0.14); }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { flex: 1 1 140px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,0.78); border: 1.5px solid var(--line); }
.stat strong { display: block; font-size: 24px; font-weight: 600; color: var(--fg); letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--muted); }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.is-hidden { display: none !important; }
@media (min-width: 768px) {
  .show-mobile { display: none !important; }
}

/* Tablette (768–1024px) : chrome compact (nav bas, fil empilé)
   déjà appliqué ci-dessus, mais on garde les mises en page 2 colonnes
   qui tiennent encore — sans retomber sur le mode « téléphone étroit ». */
@media (min-width: 768px) and (max-width: 1024px) {
  .hide-mobile { display: revert !important; }
  .topbar--app .hide-mobile { display: none !important; }
  .topbar--app .pill--credits .hide-mobile { display: inline !important; }
  .topbar--app .pill--trial .hide-mobile { display: inline !important; }
  .show-mobile { display: none !important; }

  .topbar--door {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-content: unset;
    gap: 14px 20px;
  }
  .topbar--door .topbar__brand { min-width: auto; }
  .topbar--door .topbar__side { display: flex; }
  .topbar--door .topbar__side--right { margin-left: 0; }
  .topbar--door .topbar__logo { height: clamp(52px, 8vw, 104px); max-width: none; }

  .page--door { padding: var(--pad-page); }
  .page--door .hero { padding: 0 0 9vh; gap: clamp(20px, 2.6vw, 30px); }
  .hero__actions .btn { flex: 0 0 auto; }
  .promises { flex-direction: row; align-items: center; gap: 0; }
  .promises li + li::before { content: "·"; margin: 0 14px; color: rgba(var(--terra-rgb), .5); font-weight: 700; }
  .h-display { max-width: 17em; font-size: clamp(34px, 6.8vw, 82px); }
  .h-1 { font-size: clamp(28px, 4.6vw, 54px); }
  .lead--sm { font-size: clamp(15px, 1.6vw, 18px); }

  .profil-cols { flex-direction: row; }
  .profil-col { flex: 1 1 300px; width: auto; max-width: none; }
  .kv__row { flex-wrap: nowrap; align-items: center; gap: 14px; }
  .kv__row span:first-child { flex: none; }
  .kv__row strong, .kv__row span:last-child { flex: none; text-align: right; }
  .kv__row--stack { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .kv__row--stack .chips { width: 100%; max-width: 100%; }

  .grid--posts { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
  .grid--communes { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .stat { flex: 1 1 140px; }

  .plan { flex: 1 1 200px; max-width: none; }
  .demo-circle { gap: 74px 24px; padding: 54px 0 58px; }
  .cercle { gap: 92px clamp(26px, 3.4vw, 46px); padding: clamp(70px, 8vw, 110px) 0 clamp(80px, 9vw, 120px); }
  .bubble { flex: 0 1 142px; width: 142px; }
  .form__actions { flex-direction: row; align-items: center; }
  .form__actions .btn { width: auto; }
}

@media (min-width: 1025px) {
  .grid--facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Surfaces sombres : plus de cartes blanches ni d’encre prune illisible. */
html[data-tint-mode="dark"] .auth-card,
html[data-tint-mode="dark"] .cookie,
html[data-tint-mode="dark"] .fcard,
html[data-tint-mode="dark"] .fcard.is-filled,
html[data-tint-mode="dark"] .credit-box,
html[data-tint-mode="dark"] .fil__menu,
html[data-tint-mode="dark"] .commune-card,
html[data-tint-mode="dark"] .convlist__item,
html[data-tint-mode="dark"] .conv-empty__mark,
html[data-tint-mode="dark"] .stat,
html[data-tint-mode="dark"] .page--door .stat,
html[data-tint-mode="dark"] .photo-zone,
html[data-tint-mode="dark"] .photo-zone.is-filled,
html[data-tint-mode="dark"] .photo-zone:hover,
html[data-tint-mode="dark"] .photo-zone:focus-within,
html[data-tint-mode="dark"] .plan:not(.plan--featured),
html[data-tint-mode="dark"] .post-card,
html[data-tint-mode="dark"] .card--solid,
html[data-tint-mode="dark"] .combo__list,
html[data-tint-mode="dark"] .range-box,
html[data-tint-mode="dark"] .lost-thread,
html[data-tint-mode="dark"] .prose blockquote,
html[data-tint-mode="dark"] .prose .article-links,
html[data-tint-mode="dark"] .topbar__menu,
html[data-tint-mode="dark"] .topbar__burger,
html[data-tint-mode="dark"] .pill,
html[data-tint-mode="dark"] .pill__home,
html[data-tint-mode="dark"] .btn--white,
html[data-tint-mode="dark"] .tag--outline,
html[data-tint-mode="dark"] .notice {
  background: var(--paper);
  color: var(--fg);
  border-color: var(--line);
}
html[data-tint-mode="dark"] .input,
html[data-tint-mode="dark"] .textarea,
html[data-tint-mode="dark"] .input--round,
html[data-tint-mode="dark"] .textarea--round {
  background: rgba(240, 233, 231, 0.08);
  color: var(--fg);
  border-color: var(--line);
}
html[data-tint-mode="dark"] .select {
  background-color: rgba(240, 233, 231, 0.08);
  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='%23F0E9E7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: var(--fg);
  border-color: var(--line);
}
html[data-tint-mode="dark"] .input:focus,
html[data-tint-mode="dark"] .textarea:focus,
html[data-tint-mode="dark"] .combo.is-open .input--round,
html[data-tint-mode="dark"] .combo.is-picked .input--round {
  background: var(--cream-3);
  color: var(--fg);
}
html[data-tint-mode="dark"] .select:focus {
  background-color: var(--cream-3);
}
html[data-tint-mode="dark"] .field,
html[data-tint-mode="dark"] .check,
html[data-tint-mode="dark"] .modal__t,
html[data-tint-mode="dark"] .modal__p,
html[data-tint-mode="dark"] .auth-card__foot,
html[data-tint-mode="dark"] .fcard.is-todo .fcard__label,
html[data-tint-mode="dark"] .fcard.is-filled .fcard__value,
html[data-tint-mode="dark"] .credit-box p:first-child,
html[data-tint-mode="dark"] .commune-card,
html[data-tint-mode="dark"] .commune-card:hover,
html[data-tint-mode="dark"] .convlist__item,
html[data-tint-mode="dark"] .convlist__item:hover,
html[data-tint-mode="dark"] .stat strong,
html[data-tint-mode="dark"] .fil__name,
html[data-tint-mode="dark"] .fil__menu button,
html[data-tint-mode="dark"] .fil__menu a,
html[data-tint-mode="dark"] .composer textarea,
html[data-tint-mode="dark"] .plan:not(.plan--featured) .plan__price,
html[data-tint-mode="dark"] .big-number,
html[data-tint-mode="dark"] .kv__row span:last-child,
html[data-tint-mode="dark"] .kv__row strong,
html[data-tint-mode="dark"] .legal-toc a,
html[data-tint-mode="dark"] .prose th,
html[data-tint-mode="dark"] .prose blockquote,
html[data-tint-mode="dark"] .post-card h2 a,
html[data-tint-mode="dark"] .cta-block__title,
html[data-tint-mode="dark"] .article__cta p,
html[data-tint-mode="dark"] .photo-zone__copy strong,
html[data-tint-mode="dark"] .topbar__menu a,
html[data-tint-mode="dark"] .topbar__menu button,
html[data-tint-mode="dark"] .pill,
html[data-tint-mode="dark"] .tag--outline,
html[data-tint-mode="dark"] .notice,
html[data-tint-mode="dark"] .btn--white,
html[data-tint-mode="dark"] .btn--ghost:hover,
html[data-tint-mode="dark"] .btn--link:hover,
html[data-tint-mode="dark"] .ob__meta a:hover,
html[data-tint-mode="dark"] .ob__nav .back:hover {
  color: var(--fg);
}
html[data-tint-mode="dark"] .conv-empty__skel {
  background: rgba(240, 233, 231, 0.14);
}
html[data-tint-mode="dark"] .conv-empty__mark {
  color: var(--terra);
}
html[data-tint-mode="dark"] .btn--danger {
  background: var(--bad-bg);
  color: var(--bad-ink);
  border-color: var(--bad-ink);
}
html[data-tint-mode="dark"] .danger-zone {
  background: var(--bad-bg);
  border-color: var(--bad-ink);
}
html[data-tint-mode="dark"] .notice--warn {
  background: var(--bad-bg);
  color: var(--bad-ink);
}
html[data-tint-mode="dark"] .legal-toc a {
  background: var(--sand);
  color: var(--fg);
}
html[data-tint-mode="dark"] .step--plum .step__text p + p {
  color: var(--muted);
}
html[data-tint-mode="dark"] .demo-bubble {
  background: rgba(240, 233, 231, 0.12);
  color: var(--fg);
  border-color: rgba(var(--terra-rgb), 0.35);
}
html[data-tint-mode="dark"] .demo-bubble--main {
  background: var(--paper);
}
html[data-tint-mode="dark"] .demo-bubble--main strong {
  color: var(--terra);
}
html[data-tint-mode="dark"] .demo-vote__pills span:first-child {
  color: var(--muted);
}
html[data-tint-mode="dark"] .vpill {
  background: var(--paper);
  color: var(--terra);
}
html[data-tint-mode="dark"] .vpill--pick {
  animation-name: lt-vpick-dark;
}
html[data-tint-mode="dark"] .ladder__row strong {
  color: var(--fg);
}
html[data-tint-mode="dark"] .demo-switch__row {
  background: var(--paper);
  border-color: var(--line);
}
html[data-tint-mode="dark"] .demo-switch__lbl {
  color: var(--fg);
}
html[data-tint-mode="dark"] .article-toc__box,
html[data-tint-mode="dark"] .article__cta,
html[data-tint-mode="dark"] .article-demo {
  background: var(--paper);
  border-color: var(--line);
  color: var(--fg);
}
html[data-tint-mode="dark"] .article-toc a,
html[data-tint-mode="dark"] .article-toc a:hover,
html[data-tint-mode="dark"] .article-toc a.is-active,
html[data-tint-mode="dark"] .article-toc summary::after {
  color: var(--fg);
}
html[data-tint-mode="dark"] .article-toc a.is-active {
  border-left-color: var(--terra);
}
html[data-tint-mode="dark"] .article-demo--plum .article-demo__caption {
  color: var(--muted);
}
html[data-tint-mode="dark"] .demo-radius__core {
  background: var(--paper);
}
html[data-tint-mode="dark"] .demo-walk__scene {
  background: linear-gradient(180deg, #2A322C 0 42%, #3A4540 42% 58%, #3A332E 58% 100%);
}
html[data-tint-mode="dark"] .plan--featured .btn--white {
  background: #F0E9E7;
  color: var(--plum-deep);
  border-color: #F0E9E7;
}
html[data-tint-mode="dark"] .plan--featured .plan__credits {
  color: var(--fg);
}
html[data-tint-mode="dark"] .plan--featured .plan__sub,
html[data-tint-mode="dark"] .plan--featured .plan__lines div {
  color: var(--muted);
}
html[data-tint-mode="dark"] .input::placeholder,
html[data-tint-mode="dark"] .textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
html[data-tint-mode="dark"] a.pill:hover,
html[data-tint-mode="dark"] .pill__home:hover {
  background: var(--paper);
}
html[data-tint-mode="dark"] .sat--white,
html[data-tint-mode="dark"] .composer,
html[data-tint-mode="dark"] .emoji-bar,
html[data-tint-mode="dark"] .msg__react,
html[data-tint-mode="dark"] .msg__pop,
html[data-tint-mode="dark"] .msg__pop--emoji button,
html[data-tint-mode="dark"] .fil__sound,
html[data-tint-mode="dark"] .fil__more,
html[data-tint-mode="dark"] .msg--system p,
html[data-tint-mode="dark"] .lost-float--a,
html[data-tint-mode="dark"] .lost-float--b,
html[data-tint-mode="dark"] .lost-float--c,
html[data-tint-mode="dark"] .lost-float--d,
html[data-tint-mode="dark"] .lost-float--e {
  background: var(--paper);
  color: var(--fg);
  border-color: var(--line);
}
html[data-tint-mode="dark"] .lost-msg__bubble {
  background: var(--cream-2);
  color: var(--fg);
}
html[data-tint-mode="dark"] .lost-msg--me .lost-msg__bubble {
  background: var(--plum-deep);
  color: var(--fg);
}
html[data-tint-mode="dark"] .field__hint.is-ok {
  color: var(--ok-ink);
}
html[data-tint-mode="dark"] .notice--info,
html[data-tint-mode="dark"] .account-nudge {
  background: var(--wine-light);
  color: var(--fg);
}

/* Panneau de test, réservé aux administrateurs sur une discussion. */
.lab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(340px, calc(100vw - 24px));
  pointer-events: none;
}
.lab__panel,
.lab__toggle,
.lab-banner { pointer-events: auto; }
.lab__panel {
  width: 100%;
  max-height: min(70dvh, 540px);
  overflow: auto;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: var(--paper);
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px -28px rgba(var(--plum-rgb), 0.55);
  display: grid;
  gap: 10px;
}
.lab__panel[hidden] { display: none; }
.lab__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terra);
}
.lab__panel h2 { margin: 0; font-size: 16px; font-weight: 600; }
.lab__hint { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.lab__label { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--fg); }
.lab__date,
.lab__events { display: grid; gap: 8px; }
.lab__date .field { gap: 4px; font-size: 13px; }
.lab__date .input { min-height: 40px; }
.lab__actions,
.lab__events { display: flex; flex-wrap: wrap; gap: 6px; }
.lab__events { display: grid; }
.lab__events form { display: contents; }
.lab .btn.is-on { border-color: var(--terra); color: var(--plum); background: var(--sand); }
.lab__toggle {
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  background: var(--plum);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -16px rgba(var(--plum-rgb), 0.8);
}
.lab__toggle.is-on { background: var(--terra); }
.lab-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 28px -16px rgba(var(--plum-rgb), 0.8);
}
.lab-banner .btn { background: #fff; }
body.is-preview .page--app { padding-bottom: calc(96px + var(--nav-h) + env(safe-area-inset-bottom)); }
.preview-banner {
  width: min(720px, calc(100vw - 24px));
  border-radius: 18px;
  align-items: center;
  line-height: 1.35;
  text-align: left;
}
.preview-banner strong { font-weight: 600; }
.preview-banner .btn { flex: none; }
@media (max-width: 1024px) {
  .lab { bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); }
  .lab-banner { bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); }
}
